@hhgtech/hhg-components 1.29.566 → 1.29.567-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-b8118635.js → InputDate-16952a6c.js} +8 -8
- package/build/{LastPeriod-19ebeec0.js → LastPeriod-3e72cc10.js} +1 -1
- package/build/LeadGenCore-18dafb12.js +5131 -0
- package/build/{MobileBottomNavigationIcon-cb65e80f.js → MobileBottomNavigationIcon-28dd33ab.js} +3 -3
- package/build/{SiteWideBanner-b573e41b.js → SiteWideBanner-47cc1c7d.js} +13 -13
- package/build/{Spinner-17016453.js → Spinner-d03ec234.js} +1 -1
- package/build/{WhatsApp-61b6804a.js → WhatsApp-264e0c50.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-541de17c.js} +1 -1
- package/build/{constants-9c92ac99.js → constants-ad043b51.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-f24c1352.js} +1 -1
- package/build/{dataTransform-7082636e.js → dataTransform-b774a32c.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-1288ad52.js → editor-67cb8bf3.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-586a5896.js} +7 -7
- package/build/esm/{LastPeriod-183056b0.js → LastPeriod-22c39fab.js} +1 -1
- package/build/esm/LeadGenCore-da4c032b.js +5092 -0
- package/build/esm/{MobileBottomNavigationIcon-a2272251.js → MobileBottomNavigationIcon-5a352482.js} +3 -3
- package/build/esm/{SiteWideBanner-50495984.js → SiteWideBanner-f4706c43.js} +13 -13
- package/build/esm/{Spinner-4149d426.js → Spinner-a77c1e1e.js} +1 -1
- package/build/esm/{WhatsApp-257bb520.js → WhatsApp-a73993e8.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-01414f26.js} +1 -1
- package/build/esm/{constants-e9074c24.js → constants-f3655eec.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-1df026e9.js} +1 -1
- package/build/esm/{dataTransform-778cd3ef.js → dataTransform-6f608409.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-51c6ab7f.js → editor-2cfeaf6d.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-d7f4ff5c.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +49 -44
- package/build/esm/helpers-b7e5bd81.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-9511e069.js → index-028c41b1.js} +21 -21
- package/build/esm/{index-e98cb26c.js → index-093c24d3.js} +14 -14
- package/build/esm/{index-e7c2cf9a.js → index-0a708dbe.js} +2 -2
- package/build/esm/{index-e6ca570a.js → index-190c1c3b.js} +13 -13
- package/build/esm/{index-1184f030.js → index-1a8ab504.js} +2 -2
- package/build/esm/{index-658e788d.js → index-1aaa109b.js} +6 -6
- package/build/esm/{index-8fb32013.js → index-1cfaf6b1.js} +2 -2
- package/build/esm/{index-e37aaa01.js → index-22fb7341.js} +2 -2
- package/build/esm/{index-f649b51f.js → index-24585de3.js} +6 -6
- package/build/esm/{index-f0561210.js → index-273416c0.js} +1 -1
- package/build/esm/{index-b78e3b4c.js → index-2f657683.js} +22 -22
- package/build/esm/{index-c917904f.js → index-30e94681.js} +3 -3
- package/build/esm/{index-a71e34e6.js → index-34135bb0.js} +3 -3
- package/build/esm/{index-f1fbfcc4.js → index-37df6ffc.js} +1 -1
- package/build/esm/{index-18e92ec2.js → index-384d2069.js} +16 -16
- package/build/esm/{index-cdf32b80.js → index-3a0023d0.js} +21 -23
- package/build/esm/{index-91cb311b.js → index-3c4fec9b.js} +2 -2
- package/build/esm/{index-db63bfc2.js → index-411399cd.js} +1 -1
- package/build/esm/{index-10f17701.js → index-428ba4d3.js} +1 -1
- package/build/esm/{index-50bc9f66.js → index-4300330d.js} +22 -24
- package/build/esm/{index-12e7060b.js → index-4a9c0b10.js} +6 -6
- package/build/esm/{index-b9588ecd.js → index-5167a9e1.js} +5 -5
- package/build/esm/{index-de82b7bf.js → index-5baf0f98.js} +17 -17
- package/build/esm/{index-8a909dde.js → index-6297d26a.js} +2 -2
- package/build/esm/{index-52a87433.js → index-6432d682.js} +12 -12
- package/build/esm/{index-9c66d982.js → index-6a22b9dc.js} +2 -2
- package/build/esm/{index-353fb019.js → index-6cc59c36.js} +13 -13
- package/build/esm/{index-79d58f00.js → index-6ff4ad0e.js} +7 -7
- package/build/esm/{index-8beb6254.js → index-70ef7c5f.js} +16 -16
- package/build/esm/{index-b9d6ae82.js → index-77f9376e.js} +16 -16
- package/build/esm/{index-9cefd633.js → index-78e9e154.js} +1 -1
- package/build/esm/{index-4e22812e.js → index-7a4566db.js} +5 -5
- package/build/esm/{index-f99307d8.js → index-7a971531.js} +2 -2
- package/build/esm/{index-9d2e6a1f.js → index-7c8ab7f0.js} +2 -2
- package/build/esm/{index-671b3b3f.js → index-88974c03.js} +2 -2
- package/build/esm/{index-21bd3377.js → index-8b09633f.js} +33 -61
- package/build/esm/{index-73384536.js → index-8cfb5acc.js} +31 -31
- package/build/esm/{index-9ca62747.js → index-8eb4deb4.js} +5 -5
- package/build/esm/{index-cf5f1a4a.js → index-90c848b1.js} +1 -1
- package/build/esm/{index-36934467.js → index-9413b8c5.js} +3 -3
- package/build/esm/{index-6e1ffe82.js → index-9896f62b.js} +31 -31
- package/build/esm/{index-c257c93a.js → index-9ae3c9fb.js} +2 -2
- package/build/esm/{index-f84cb48a.js → index-9e35d4be.js} +18 -18
- package/build/esm/{index-9199f963.js → index-a0d66146.js} +17 -17
- package/build/esm/{index-6271239c.js → index-a3a6aab0.js} +7 -7
- package/build/esm/{index-20210b3b.js → index-a3ad0876.js} +20 -20
- package/build/esm/{index-794f95cb.js → index-aac21bd6.js} +2 -2
- package/build/esm/{index-904ce25d.js → index-aaecac13.js} +4 -4
- package/build/esm/index-ac25de08.js +543 -0
- package/build/esm/{index-513bf860.js → index-ae8af2d0.js} +2 -2
- package/build/esm/{index-762f57c9.js → index-b4d87247.js} +24 -24
- package/build/esm/{index-1de2c3cc.js → index-b5c54bb4.js} +34 -34
- package/build/esm/{index-bfd2a793.js → index-bd7d0f9d.js} +3 -3
- package/build/esm/{index-bedafd4d.js → index-c5b0ed29.js} +40 -26
- package/build/esm/{index-70718aa4.js → index-c7fe4937.js} +9 -9
- package/build/esm/{index-bb049c6d.js → index-cdf46754.js} +3 -3
- package/build/esm/{index-1451adb4.js → index-d215f536.js} +3 -3
- package/build/esm/{index-d0b3a132.js → index-d802036f.js} +7 -7
- package/build/esm/{index-c4856541.js → index-d84646ca.js} +14 -14
- package/build/esm/{index-c258af48.js → index-d88ecf7d.js} +2 -2
- package/build/esm/{index-146c3b8f.js → index-dbcc3c14.js} +29 -29
- package/build/esm/{index-52f91d02.js → index-e0ae8e85.js} +7 -7
- package/build/esm/{index-f9634c10.js → index-e2c9da23.js} +21 -23
- package/build/esm/{index-346d44b5.js → index-e376abd2.js} +1 -1
- package/build/esm/{index-5cf34dcc.js → index-e8323d0a.js} +2 -2
- package/build/esm/{index-5375eb4d.js → index-ebf61ce7.js} +3 -3
- package/build/esm/{index-351ff3dd.js → index-ec0a9dce.js} +19 -19
- package/build/esm/{index-c93f4d6c.js → index-ed3aa604.js} +13 -13
- package/build/esm/{index-c8ecca0a.js → index-f39f5739.js} +3 -3
- package/build/esm/{index-908862a2.js → index-f4cac6eb.js} +2 -2
- package/build/esm/index-f6ba0de2.js +55 -0
- package/build/esm/{index-72ef4bd7.js → index-f9a0d18c.js} +2 -2
- package/build/esm/{index-23a4bd81.js → index-fe942a24.js} +15 -15
- package/build/esm/index.js +133 -128
- package/build/esm/{labelSorting-2876ebd7.js → labelSorting-ef362cb4.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-b3648dab.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-f85200c5.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-a7a5c8e6.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-e47097fc.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-1e45f8cf.js} +40 -45
- package/build/esm/{translationsProvider-2251f83e.js → translationsProvider-46a9b414.js} +1 -1
- package/build/esm/{treePopoverMenu-44ecfb21.js → treePopoverMenu-108cbbd7.js} +18 -18
- package/build/esm/{types-7eaccf70.js → types-cc6fa8ec.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCartCareService-2561ea09.js → useCartCareService-bf840ca9.js} +1 -1
- package/build/esm/{useHealthToolCache-48928f66.js → useHealthToolCache-06ab9bab.js} +1 -1
- package/build/esm/{usePhoneValidator-89435b8d.js → usePhoneValidator-fdf69560.js} +4 -4
- package/build/esm/{usePlacesAutocomplete-476d8fe2.js → usePlacesAutocomplete-b2cd114b.js} +1 -1
- package/build/esm/{useResolvedCaptureUrls-f065f5ae.js → useResolvedCaptureUrls-b6a4c452.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-e4361e09.js → utils-5a68a1b0.js} +2 -2
- package/build/esm/{utils-d75af55c.js → utils-6dad1238.js} +1 -1
- package/build/esm/{utils-4aeb889a.js → utils-7ae1ea3d.js} +4 -4
- package/build/esm/{utils-e6d6df3b.js → utils-91bb99ef.js} +5 -5
- package/build/esm/{utils-f2c8141d.js → utils-ecf18619.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-396edb10.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +49 -44
- package/build/helpers-a331ad64.js +38 -0
- package/build/hooks.js +14 -14
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-912a45b4.js → index-04512593.js} +22 -24
- package/build/{index-4e5bdbe6.js → index-1512f07f.js} +15 -15
- package/build/{index-cf6f3108.js → index-1669687a.js} +1 -1
- package/build/{index-e933aea7.js → index-16af7f18.js} +3 -3
- package/build/{index-bf9f580e.js → index-24f1439c.js} +30 -30
- package/build/{index-135d8ff2.js → index-2dbf0a9b.js} +1 -1
- package/build/index-362cc312.js +574 -0
- package/build/{index-849069c2.js → index-385b3050.js} +13 -13
- package/build/{index-01da09ab.js → index-3a7d4f2e.js} +5 -5
- package/build/{index-f53241d8.js → index-3b5d891f.js} +21 -21
- package/build/{index-2087185c.js → index-3bbe389c.js} +16 -16
- package/build/{index-226b48ab.js → index-3d981ed3.js} +9 -9
- package/build/{index-91d7b888.js → index-438001e7.js} +22 -22
- package/build/{index-821aaa28.js → index-445c9a53.js} +1 -1
- package/build/{index-b388c399.js → index-4618264d.js} +8 -8
- package/build/{index-2f3e9748.js → index-5022244d.js} +2 -2
- package/build/{index-d19a4627.js → index-50bc68b4.js} +3 -3
- package/build/{index-273307da.js → index-5346f94a.js} +33 -61
- package/build/{index-20d85026.js → index-5b630715.js} +7 -7
- package/build/{index-6125b213.js → index-5b631551.js} +2 -2
- package/build/{index-177d6b04.js → index-62bdd6b8.js} +40 -25
- package/build/{index-2191645e.js → index-62d4d236.js} +24 -24
- package/build/{index-771c2016.js → index-6648513a.js} +16 -16
- package/build/{index-a5a79577.js → index-6726aca7.js} +5 -5
- package/build/{index-f329e7f7.js → index-691519e5.js} +1 -1
- package/build/{index-95e097b6.js → index-6bd5d1da.js} +2 -2
- package/build/{index-b4f99103.js → index-6be309f8.js} +17 -17
- package/build/{index-b2535512.js → index-6e54e26b.js} +3 -3
- package/build/{index-d32e1388.js → index-6e690d2d.js} +3 -3
- package/build/{index-075c7c9c.js → index-724a968a.js} +2 -2
- package/build/{index-f0175001.js → index-7433da7a.js} +2 -2
- package/build/{index-1d81a574.js → index-792cdbcc.js} +6 -6
- package/build/{index-0ef6baaf.js → index-7c45e8fb.js} +1 -1
- package/build/{index-32d4bfd2.js → index-7d42a4af.js} +20 -20
- package/build/{index-87e052af.js → index-7fbb2a87.js} +2 -2
- package/build/index-80b3cf2c.js +61 -0
- package/build/{index-a7298f68.js → index-84e5d4d6.js} +6 -6
- package/build/{index-5dde95b0.js → index-8981d733.js} +2 -2
- package/build/{index-40b30c51.js → index-8dba5040.js} +1 -1
- package/build/{index-0997422b.js → index-95ae31d3.js} +2 -2
- package/build/{index-85558956.js → index-98abef60.js} +7 -7
- package/build/{index-2b99975a.js → index-9d6f439c.js} +13 -13
- package/build/{index-1063ece9.js → index-9f4ce9f4.js} +2 -2
- package/build/{index-9ec0cffe.js → index-9f8bcb30.js} +1 -1
- package/build/{index-b086dd2b.js → index-a11e2981.js} +14 -14
- package/build/{index-2add1c1e.js → index-a14a82f8.js} +3 -3
- package/build/{index-9ed771ec.js → index-a1f6accb.js} +14 -14
- package/build/{index-523fb746.js → index-a5b6ec13.js} +2 -2
- package/build/{index-1623c4f5.js → index-aad16cda.js} +2 -2
- package/build/{index-df9d7260.js → index-aba5f27c.js} +31 -31
- package/build/{index-23abdc72.js → index-ae61f8e4.js} +20 -20
- package/build/{index-5c375c62.js → index-aeb128a9.js} +16 -16
- package/build/{index-8fae2b8f.js → index-b3e883f9.js} +2 -2
- package/build/{index-07f2c258.js → index-b7a8f9d8.js} +17 -17
- package/build/{index-ee069894.js → index-c0a43f81.js} +7 -7
- package/build/{index-926ac7ab.js → index-c68a7eb6.js} +3 -3
- package/build/{index-c0cfd756.js → index-cb832e8d.js} +12 -12
- package/build/{index-a010b836.js → index-d76b9c69.js} +3 -3
- package/build/{index-9fd967d1.js → index-db0dbf62.js} +2 -2
- package/build/{index-421ae364.js → index-db47483b.js} +21 -23
- package/build/{index-12dabf7b.js → index-dc334bad.js} +7 -7
- package/build/{index-1e7bd5b2.js → index-e0d724d1.js} +2 -2
- package/build/{index-bcbe1933.js → index-e2e3ce61.js} +18 -18
- package/build/{index-1aef3f36.js → index-e463fca5.js} +4 -4
- package/build/{index-742f546c.js → index-e508e6cb.js} +2 -2
- package/build/{index-18a9d890.js → index-e609356a.js} +34 -34
- package/build/{index-0f7ba91c.js → index-e66f78e2.js} +31 -31
- package/build/{index-5a67a69a.js → index-ec8a3677.js} +21 -23
- package/build/{index-597603d4.js → index-ed628694.js} +2 -2
- package/build/{index-afdd332d.js → index-edb96b9e.js} +3 -3
- package/build/{index-1a367679.js → index-f02323ca.js} +14 -14
- package/build/{index-14a9eb86.js → index-f7dee6e0.js} +2 -2
- package/build/{index-43e702aa.js → index-fd06cb15.js} +5 -5
- package/build/index.js +234 -220
- package/build/{labelSorting-a219f387.js → labelSorting-1844c416.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-6f5f5693.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-c7c1e562.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-5d9e3ee8.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-f3b256da.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-baa2ac38.js} +40 -47
- package/build/{translationsProvider-7f20f84d.js → translationsProvider-69eb57aa.js} +1 -1
- package/build/{treePopoverMenu-7d5203c4.js → treePopoverMenu-6612e89a.js} +18 -18
- package/build/{types-5a399b55.js → types-bd3b6910.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCartCareService-3a922f59.js → useCartCareService-1103ff1b.js} +1 -1
- package/build/{useHealthToolCache-80115703.js → useHealthToolCache-35adcd47.js} +1 -1
- package/build/{usePhoneValidator-a1c693c4.js → usePhoneValidator-7397c4bd.js} +4 -4
- package/build/{usePlacesAutocomplete-f33a811e.js → usePlacesAutocomplete-b8dc2910.js} +1 -1
- package/build/{useResolvedCaptureUrls-dd10e0e8.js → useResolvedCaptureUrls-9ec7d3df.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-b500bd16.js → utils-01b50016.js} +1 -1
- package/build/{utils-0ee3e792.js → utils-1ee79a65.js} +4 -4
- package/build/{utils-1aa31278.js → utils-46affe8a.js} +2 -2
- package/build/{utils-ca6cc1e2.js → utils-9c054e84.js} +4 -4
- package/build/{utils-260db2f3.js → utils-fdd642d2.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-6a330e16.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-8c4fef13.js → BMI_BOYS.percentile.weekly-c6133977.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-b265c416.js → BMI_BOYS.percentile.yearly-f22b9a99.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-889bc073.js → BMI_BOYS.zscore.monthly-dc2486fa.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-9cbce300.js → BMI_BOYS.zscore.weekly-19b62836.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-18e05e84.js → BMI_BOYS.zscore.yearly-01063821.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-32435a09.js → BMI_GIRLS.percentile.monthly-ec895112.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d7dc3e09.js → BMI_GIRLS.percentile.weekly-23bf80f0.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-383398db.js → BMI_GIRLS.percentile.yearly-f8123ae9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-1afc1815.js → BMI_GIRLS.zscore.monthly-9e831f45.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-996e85c6.js → BMI_GIRLS.zscore.weekly-752ae2f3.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-48121995.js → BMI_GIRLS.zscore.yearly-28b081e2.js} +0 -0
- /package/build/{ChevronDown-cfaa5f37.js → ChevronDown-0aa6dab7.js} +0 -0
- /package/build/{Google-ca3ed617.js → Google-7c552369.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-69c2b1b5.js → HEAD CIRCUM_BOYS.percentile.monthly-79b9ec01.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-845e68e8.js → HEAD CIRCUM_BOYS.percentile.weekly-5e4c6be5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-593a9857.js → HEAD CIRCUM_BOYS.percentile.yearly-bf74f892.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-dd1ac392.js → HEAD CIRCUM_BOYS.zscore.monthly-19207efc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9dd699dc.js → HEAD CIRCUM_BOYS.zscore.weekly-08bfa929.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0d4ebda7.js → HEAD CIRCUM_BOYS.zscore.yearly-2345c472.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-026b4b65.js → HEAD CIRCUM_GIRLS.percentile.monthly-76d50df9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-45672230.js → HEAD CIRCUM_GIRLS.percentile.weekly-88a57331.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-bce812ad.js → HEAD CIRCUM_GIRLS.percentile.yearly-0fa9d887.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-24394b6e.js → HEAD CIRCUM_GIRLS.zscore.monthly-5fe68496.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-7f504018.js → HEAD CIRCUM_GIRLS.zscore.weekly-a96524dc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-4733c33d.js → HEAD CIRCUM_GIRLS.zscore.yearly-6d0885ee.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-3d7f65c9.js → HEIGHT_BOYS.percentile.monthly-ec61e7ab.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-5439e48b.js → HEIGHT_BOYS.percentile.weekly-37e83dfe.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-c203bed3.js → HEIGHT_BOYS.percentile.yearly-56ad57c3.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-8271f5c8.js → HEIGHT_BOYS.zscore.monthly-2b9bd211.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-bfba099e.js → HEIGHT_BOYS.zscore.weekly-7c9402ad.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-52dbe5a8.js → HEIGHT_BOYS.zscore.yearly-881e5313.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-1c8181d0.js → HEIGHT_GIRLS.percentile.monthly-1474650a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-f079f13e.js → HEIGHT_GIRLS.percentile.weekly-2dd9bda4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-d266800c.js → HEIGHT_GIRLS.percentile.yearly-6450d9d0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-41ca67ef.js → HEIGHT_GIRLS.zscore.monthly-e3331b55.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-e48478f0.js → HEIGHT_GIRLS.zscore.weekly-560b2ee0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-793193e2.js → HEIGHT_GIRLS.zscore.yearly-e43e13e5.js} +0 -0
- /package/build/{Visible-e6fd31fe.js → Visible-c4aa5635.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-539260bf.js → WEIGHT_BOYS.percentile.monthly-6bd2113e.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-6399c894.js → WEIGHT_BOYS.percentile.weekly-1e9c7d6b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-0b4506a0.js → WEIGHT_BOYS.percentile.yearly-0cda9b49.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-b02535fc.js → WEIGHT_BOYS.zscore.monthly-4d25eeeb.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-6a440e5e.js → WEIGHT_BOYS.zscore.weekly-0140fc1b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-5bdd7652.js → WEIGHT_BOYS.zscore.yearly-0058e432.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-544b48b4.js → WEIGHT_GIRLS.percentile.monthly-6fe7d121.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-2f89e0a2.js → WEIGHT_GIRLS.percentile.weekly-60ba0a1f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-e1fee70f.js → WEIGHT_GIRLS.percentile.yearly-0f90e388.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-b255d997.js → WEIGHT_GIRLS.zscore.monthly-db6c5759.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-5bc5ee2b.js → WEIGHT_GIRLS.zscore.weekly-53a4dff9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-969f7d88.js → WEIGHT_GIRLS.zscore.yearly-758cb807.js} +0 -0
- /package/build/{ageGenerate-70274de8.js → ageGenerate-2c8b68b1.js} +0 -0
- /package/build/{animation-545c3845.js → animation-76f354d1.js} +0 -0
- /package/build/{constants-5c34eb19.js → constants-13a83424.js} +0 -0
- /package/build/{constants-e2534f67.js → constants-16308d83.js} +0 -0
- /package/build/{constants-879264ec.js → constants-7d1984a4.js} +0 -0
- /package/build/{context-1ed1d238.js → context-3e6914b2.js} +0 -0
- /package/build/{dataTransform-ccd3d254.js → dataTransform-a9cab1ad.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-0b5b180c.js → BMI_BOYS.percentile.monthly-6d2573e9.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b070fd21.js → BMI_BOYS.percentile.weekly-505ba25b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-8f711651.js → BMI_BOYS.percentile.yearly-dd5889ce.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-a4e99b76.js → BMI_BOYS.zscore.monthly-63ea97fc.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-8ce08c86.js → BMI_BOYS.zscore.weekly-34d5c90b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-9f487efb.js → BMI_BOYS.zscore.yearly-9ef852c6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-20d86c35.js → BMI_GIRLS.percentile.monthly-9f97272c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-be2e5522.js → BMI_GIRLS.percentile.weekly-5d7b2094.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-ab0a7178.js → BMI_GIRLS.percentile.yearly-0079feed.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-0e994dff.js → BMI_GIRLS.zscore.monthly-89ddcac7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-b3c834c6.js → BMI_GIRLS.zscore.weekly-6094b6d3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e7c1d220.js → BMI_GIRLS.zscore.yearly-2102189d.js} +0 -0
- /package/build/esm/{ChevronDown-cf7a70be.js → ChevronDown-a26df514.js} +0 -0
- /package/build/esm/{Google-6f30a87a.js → Google-bfb3d6fc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a018ba09.js → HEAD CIRCUM_BOYS.percentile.monthly-10fcb06c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d0888d5f.js → HEAD CIRCUM_BOYS.percentile.weekly-80440466.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f6049e93.js → HEAD CIRCUM_BOYS.percentile.yearly-37cef57a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4c3676e5.js → HEAD CIRCUM_BOYS.zscore.monthly-d8a45360.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8d968dc3.js → HEAD CIRCUM_BOYS.zscore.weekly-dad69a86.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1ad17b59.js → HEAD CIRCUM_BOYS.zscore.yearly-00469046.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-00188cf9.js → HEAD CIRCUM_GIRLS.percentile.monthly-4a98517d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-7b9cef12.js → HEAD CIRCUM_GIRLS.percentile.weekly-2c4e29fa.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a7534ab8.js → HEAD CIRCUM_GIRLS.percentile.yearly-8ddc589e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7a014836.js → HEAD CIRCUM_GIRLS.zscore.monthly-87f9f555.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f7bb13a4.js → HEAD CIRCUM_GIRLS.zscore.weekly-e2531eb2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-1c571a77.js → HEAD CIRCUM_GIRLS.zscore.yearly-93bd8fbb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-3f81f2e6.js → HEIGHT_BOYS.percentile.monthly-23ea6479.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e1c7b47e.js → HEIGHT_BOYS.percentile.weekly-b6033694.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-32a74cc8.js → HEIGHT_BOYS.percentile.yearly-ffb40a06.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-afac958e.js → HEIGHT_BOYS.zscore.monthly-da298b9f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b683490f.js → HEIGHT_BOYS.zscore.weekly-17ff6793.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3bc5cfcd.js → HEIGHT_BOYS.zscore.yearly-b550e028.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-1555c683.js → HEIGHT_GIRLS.percentile.monthly-6d0d75f7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-ac266729.js → HEIGHT_GIRLS.percentile.weekly-e33213c5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-b2a33450.js → HEIGHT_GIRLS.percentile.yearly-8a07e212.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c59d7023.js → HEIGHT_GIRLS.zscore.monthly-d468f95d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3bc0b400.js → HEIGHT_GIRLS.zscore.weekly-da13cb0e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-11ebfac2.js → HEIGHT_GIRLS.zscore.yearly-9cef635e.js} +0 -0
- /package/build/esm/{Visible-9531b61a.js → Visible-2e90980f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-a56b2d16.js → WEIGHT_BOYS.percentile.monthly-628bb2a5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-c8549ae9.js → WEIGHT_BOYS.percentile.weekly-8a3b102d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-21b55b63.js → WEIGHT_BOYS.percentile.yearly-0023338e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-f86871d6.js → WEIGHT_BOYS.zscore.monthly-85f2e198.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5af8c3a2.js → WEIGHT_BOYS.zscore.weekly-59fece93.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-86a5dc0a.js → WEIGHT_BOYS.zscore.yearly-bf57fbe4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a7bad001.js → WEIGHT_GIRLS.percentile.monthly-e5b5bf35.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-03afc028.js → WEIGHT_GIRLS.percentile.weekly-88107f18.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-02eb5aaf.js → WEIGHT_GIRLS.percentile.yearly-48196342.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-23b8102a.js → WEIGHT_GIRLS.zscore.monthly-a4533131.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-387726b9.js → WEIGHT_GIRLS.zscore.weekly-fc6fa0ab.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-8e2739a7.js → WEIGHT_GIRLS.zscore.yearly-437fe569.js} +0 -0
- /package/build/esm/{ageGenerate-c1872d67.js → ageGenerate-b2218e34.js} +0 -0
- /package/build/esm/{animation-ac253c4a.js → animation-826e1d58.js} +0 -0
- /package/build/esm/{constants-2f160865.js → constants-3bdcd664.js} +0 -0
- /package/build/esm/{constants-5f6b363c.js → constants-c079f029.js} +0 -0
- /package/build/esm/{constants-3d1898d5.js → constants-c212b81a.js} +0 -0
- /package/build/esm/{context-d599e7dc.js → context-35f52bad.js} +0 -0
- /package/build/esm/{dataTransform-5a962134.js → dataTransform-d23a4e0a.js} +0 -0
- /package/build/esm/{index-4477435c.js → index-1cb17a42.js} +0 -0
- /package/build/esm/{index-47ba3e18.js → index-2b42049a.js} +0 -0
- /package/build/esm/{index-d7c385e9.js → index-403a3eec.js} +0 -0
- /package/build/esm/{index-32875b05.js → index-4046ee2e.js} +0 -0
- /package/build/esm/{index-1c980507.js → index-7bc5f2f2.js} +0 -0
- /package/build/esm/{index-53bd0bdf.js → index-8507ddd7.js} +0 -0
- /package/build/esm/{index-62f1463f.js → index-90972b91.js} +0 -0
- /package/build/esm/{index-407dcda5.js → index-ec87e8b2.js} +0 -0
- /package/build/esm/{index-21130e1b.js → index-ee6f157b.js} +0 -0
- /package/build/esm/{index.styles-b0090ff0.js → index.styles-7597a44e.js} +0 -0
- /package/build/esm/{localizeNumberFormat-1f1e811d.js → localizeNumberFormat-c7326354.js} +0 -0
- /package/build/esm/{number-107806ff.js → number-0d6835e8.js} +0 -0
- /package/build/esm/{paths-1cfcec63.js → paths-a0fb43da.js} +0 -0
- /package/build/esm/{routing-ea8d670a.js → routing-8c46c2b2.js} +0 -0
- /package/build/esm/{shared-b3ef7840.js → shared-9f223841.js} +0 -0
- /package/build/esm/{translationsContext-76fa891e.js → translationsContext-acece8fa.js} +0 -0
- /package/build/esm/{tslib.es6-f8676dd9.js → tslib.es6-55db3c85.js} +0 -0
- /package/build/esm/{types-5434e92d.js → types-411535b1.js} +0 -0
- /package/build/esm/{useImageAspectRatio-3e071148.js → useImageAspectRatio-bb25f275.js} +0 -0
- /package/build/esm/{useOutsideClick-aec33dda.js → useOutsideClick-c6a3e348.js} +0 -0
- /package/build/esm/{useScrollbarSize-e34ea237.js → useScrollbarSize-37514a56.js} +0 -0
- /package/build/esm/{useUniqueId-700011ed.js → useUniqueId-9c41f60f.js} +0 -0
- /package/build/esm/{utils-d418c7c0.js → utils-c22b2d6b.js} +0 -0
- /package/build/esm/{utils-835c2ec3.js → utils-cbf7d169.js} +0 -0
- /package/build/{index-3511d6a1.js → index-25d10ba2.js} +0 -0
- /package/build/{index-e1172b9b.js → index-562323b6.js} +0 -0
- /package/build/{index-f52bbbfa.js → index-68e2d632.js} +0 -0
- /package/build/{index-72a354b2.js → index-7a178e88.js} +0 -0
- /package/build/{index-11bf8414.js → index-833d9331.js} +0 -0
- /package/build/{index-f95654ce.js → index-b2308092.js} +0 -0
- /package/build/{index-6668a83f.js → index-dc4824a2.js} +0 -0
- /package/build/{index-524d268b.js → index-e8b262c2.js} +0 -0
- /package/build/{index-688d1f65.js → index-fd06bec3.js} +0 -0
- /package/build/{index.styles-0b3a8242.js → index.styles-494c4585.js} +0 -0
- /package/build/{localizeNumberFormat-44ed977f.js → localizeNumberFormat-0df85c8a.js} +0 -0
- /package/build/{number-e6c2753e.js → number-17deffea.js} +0 -0
- /package/build/{paths-25e926f2.js → paths-79769afc.js} +0 -0
- /package/build/{routing-12e9d94b.js → routing-cae1d792.js} +0 -0
- /package/build/{shared-07989997.js → shared-34a0c7f7.js} +0 -0
- /package/build/{translationsContext-3fabf462.js → translationsContext-c9d11485.js} +0 -0
- /package/build/{tslib.es6-8606a9a8.js → tslib.es6-b6943142.js} +0 -0
- /package/build/{types-0ee94296.js → types-0fe9831f.js} +0 -0
- /package/build/{useImageAspectRatio-7b6f55e8.js → useImageAspectRatio-8f640360.js} +0 -0
- /package/build/{useOutsideClick-eacb034a.js → useOutsideClick-591c2456.js} +0 -0
- /package/build/{useScrollbarSize-527836e9.js → useScrollbarSize-ab0ad851.js} +0 -0
- /package/build/{useUniqueId-064a28fa.js → useUniqueId-7f03fbaa.js} +0 -0
- /package/build/{utils-19268855.js → utils-df72ae47.js} +0 -0
- /package/build/{utils-fac8b1d4.js → utils-f307adb6.js} +0 -0
package/build/esm/subot.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import React__default, { createContext, useContext, useRef, useState, useEffect, useCallback, useMemo, forwardRef, useImperativeHandle, memo, useLayoutEffect } from 'react';
|
|
2
|
-
import { d as NodeType, E as ELEMENT_CONTROL_INPUT_TYPE, f as NodeActionType, c as NodePosition, e as NodeFinalTypes, g as NodeMultipleOptions, N as NodeIntentType, L as LOCALE, F as FULL_KEY_ADDRESS, C as COMMON_DATE_TRANSLATE_KEY, h as SubotType } from './index-
|
|
3
|
-
import { _ as __awaiter, a as __rest } from './tslib.es6-
|
|
4
|
-
import { b as basePath, G as GA_TOKEN_COOKIE, A as API_DATE_FORMAT, I as ISO_FORMAT, l as SSO_URL } from './index-
|
|
2
|
+
import { d as NodeType, E as ELEMENT_CONTROL_INPUT_TYPE, f as NodeActionType, c as NodePosition, e as NodeFinalTypes, g as NodeMultipleOptions, N as NodeIntentType, L as LOCALE, F as FULL_KEY_ADDRESS, C as COMMON_DATE_TRANSLATE_KEY, h as SubotType } from './index-4046ee2e.js';
|
|
3
|
+
import { _ as __awaiter, a as __rest } from './tslib.es6-55db3c85.js';
|
|
4
|
+
import { b as basePath, G as GA_TOKEN_COOKIE, A as API_DATE_FORMAT, I as ISO_FORMAT, l as SSO_URL } from './index-428ba4d3.js';
|
|
5
5
|
import Cookies from 'js-cookie';
|
|
6
6
|
import fd from 'fastdom';
|
|
7
7
|
import fastdomPromised from 'fastdom/extensions/fastdom-promised';
|
|
8
|
-
import { G as GlobalData, c as callApi, u as locale, T as TogetherComponentGlobalContext } from './utils-
|
|
8
|
+
import { G as GlobalData, c as callApi, u as locale, T as TogetherComponentGlobalContext } from './utils-7ae1ea3d.js';
|
|
9
9
|
import formatString from 'string-format';
|
|
10
|
-
import { b as getUserIdFromCookie, d as getSubotCookieId, e as getUserInfoFromCookie, f as getWindowId, o as overrideParamsByQuery, c as checkUntilFinished, g as getHelloSitesUrl, h as checkMobile, i as clickAndOpenInNewTab, j as formatUrlWithEncrypedGa, T as TIME_RESET_RESEND_OTP, k as isFakeEmail, s as ssoIntents, l as getHhgIdFromCookie } from './index-
|
|
11
|
-
export { T as TIME_RESET_RESEND_OTP, h as checkMobile, c as checkUntilFinished, i as clickAndOpenInNewTab, j as formatUrlWithEncrypedGa, g as getHelloSitesUrl, l as getHhgIdFromCookie, d as getSubotCookieId, b as getUserIdFromCookie, e as getUserInfoFromCookie, f as getWindowId, k as isFakeEmail, o as overrideParamsByQuery, s as ssoIntents } from './index-
|
|
10
|
+
import { b as getUserIdFromCookie, d as getSubotCookieId, e as getUserInfoFromCookie, f as getWindowId, o as overrideParamsByQuery, c as checkUntilFinished, g as getHelloSitesUrl, h as checkMobile, i as clickAndOpenInNewTab, j as formatUrlWithEncrypedGa, T as TIME_RESET_RESEND_OTP, k as isFakeEmail, s as ssoIntents, l as getHhgIdFromCookie } from './index-f9a0d18c.js';
|
|
11
|
+
export { T as TIME_RESET_RESEND_OTP, h as checkMobile, c as checkUntilFinished, i as clickAndOpenInNewTab, j as formatUrlWithEncrypedGa, g as getHelloSitesUrl, l as getHhgIdFromCookie, d as getSubotCookieId, b as getUserIdFromCookie, e as getUserInfoFromCookie, f as getWindowId, k as isFakeEmail, o as overrideParamsByQuery, s as ssoIntents } from './index-f9a0d18c.js';
|
|
12
12
|
import dayjs from 'dayjs';
|
|
13
13
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
14
14
|
import { Box, Textarea, clsx, Stack, Flex, Skeleton } from '@mantine/core';
|
|
15
|
-
import
|
|
16
|
-
import { C as Container$w } from './index-
|
|
17
|
-
import { L as Loading } from './index-
|
|
15
|
+
import cn from 'classnames';
|
|
16
|
+
import { C as Container$w } from './index-7bc5f2f2.js';
|
|
17
|
+
import { L as Loading } from './index-6297d26a.js';
|
|
18
18
|
import { motion } from 'framer-motion';
|
|
19
19
|
import styled from '@emotion/styled';
|
|
20
|
-
import { M as MediaQueries } from './utils-
|
|
21
|
-
import { B as Button } from './index-
|
|
20
|
+
import { M as MediaQueries } from './utils-c22b2d6b.js';
|
|
21
|
+
import { B as Button } from './index-ebf61ce7.js';
|
|
22
22
|
import { Remarkable } from 'remarkable';
|
|
23
23
|
import { ArrowRight as ArrowRight$1 } from '@hhgtech/icons/other';
|
|
24
24
|
import { useInView } from 'react-intersection-observer';
|
|
25
|
-
import { C as CommonGAssets } from './index-
|
|
25
|
+
import { C as CommonGAssets } from './index-ec87e8b2.js';
|
|
26
26
|
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
27
|
-
import { d as LEAD_TOKEN_COOKIE } from './constants-
|
|
27
|
+
import { d as LEAD_TOKEN_COOKIE } from './constants-f3655eec.js';
|
|
28
28
|
import { v4 } from 'uuid';
|
|
29
|
-
import { T as Text } from './index-
|
|
29
|
+
import { T as Text } from './index-aac21bd6.js';
|
|
30
30
|
import { theme } from './miscTheme.js';
|
|
31
31
|
import { isProduction } from './constantsIsProduction.js';
|
|
32
|
-
import { S as Select } from './index-
|
|
32
|
+
import { S as Select } from './index-ec0a9dce.js';
|
|
33
33
|
import '@mantine/dates';
|
|
34
|
-
import './index-
|
|
35
|
-
import './index-
|
|
36
|
-
import './index.styles-
|
|
37
|
-
import './translationsContext-
|
|
34
|
+
import './index-e0ae8e85.js';
|
|
35
|
+
import './index-1cb17a42.js';
|
|
36
|
+
import './index.styles-7597a44e.js';
|
|
37
|
+
import './translationsContext-acece8fa.js';
|
|
38
38
|
import '@mantine/hooks';
|
|
39
|
-
import './index-
|
|
39
|
+
import './index-34135bb0.js';
|
|
40
40
|
import isEmpty from 'lodash/isEmpty';
|
|
41
41
|
import { Controller, useForm } from 'react-hook-form';
|
|
42
42
|
import PhoneInputBase, { getCountryCallingCode, isPossiblePhoneNumber, parsePhoneNumber } from 'react-phone-number-input';
|
|
43
43
|
import { LoadScript } from '@react-google-maps/api';
|
|
44
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY, a as GOOGLE_API_LANGUAGE } from './usePlacesAutocomplete-
|
|
44
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY, a as GOOGLE_API_LANGUAGE } from './usePlacesAutocomplete-b2cd114b.js';
|
|
45
45
|
import { setDefaultClass } from './miscDefaultClassWrapper.js';
|
|
46
|
-
import { I as InputDate } from './InputDate-
|
|
47
|
-
import { B as Button$1 } from './index-
|
|
48
|
-
import { D as Dropdown } from './index-
|
|
49
|
-
import { u as useSSOV2Store, I as IS_SSOV2_ENABLED } from './store-
|
|
50
|
-
import { g as getURLwithSSOTracking } from './utils-
|
|
51
|
-
import { T as TextArea } from './index-
|
|
46
|
+
import { I as InputDate } from './InputDate-586a5896.js';
|
|
47
|
+
import { B as Button$1 } from './index-22fb7341.js';
|
|
48
|
+
import { D as Dropdown } from './index-8507ddd7.js';
|
|
49
|
+
import { u as useSSOV2Store, I as IS_SSOV2_ENABLED } from './store-a7a5c8e6.js';
|
|
50
|
+
import { g as getURLwithSSOTracking } from './utils-ecf18619.js';
|
|
51
|
+
import { T as TextArea } from './index-d215f536.js';
|
|
52
52
|
import StarRatings from 'react-star-ratings';
|
|
53
53
|
import { ArticleCard } from './moleculesArticleCard.js';
|
|
54
|
-
import { T as Text$1 } from './index-
|
|
55
|
-
import { H as Heading$1 } from './index-
|
|
54
|
+
import { T as Text$1 } from './index-190c1c3b.js';
|
|
55
|
+
import { H as Heading$1 } from './index-7c8ab7f0.js';
|
|
56
56
|
import 'date-fns/locale';
|
|
57
57
|
import './constantsSite.js';
|
|
58
58
|
import './constantsRiskScreener.js';
|
|
59
59
|
import './miscCookieHelper.js';
|
|
60
60
|
import 'slugify';
|
|
61
61
|
import './togetherApiPaths.js';
|
|
62
|
-
import './index-
|
|
63
|
-
import './WhatsApp-
|
|
64
|
-
import './Spinner-
|
|
65
|
-
import './index-
|
|
66
|
-
import './shared-
|
|
67
|
-
import './index-
|
|
62
|
+
import './index-bd7d0f9d.js';
|
|
63
|
+
import './WhatsApp-a73993e8.js';
|
|
64
|
+
import './Spinner-a77c1e1e.js';
|
|
65
|
+
import './index-411399cd.js';
|
|
66
|
+
import './shared-9f223841.js';
|
|
67
|
+
import './index-88974c03.js';
|
|
68
68
|
import '@mantine/carousel';
|
|
69
|
-
import './useUniqueId-
|
|
69
|
+
import './useUniqueId-9c41f60f.js';
|
|
70
70
|
import '@hhgtech/icons/core';
|
|
71
71
|
import 'lodash/debounce';
|
|
72
72
|
import 'lodash/throttle';
|
|
@@ -75,9 +75,9 @@ import 'vaul';
|
|
|
75
75
|
import '@emotion/react';
|
|
76
76
|
import '@mantine/notifications';
|
|
77
77
|
import 'zustand';
|
|
78
|
-
import './index-
|
|
79
|
-
import './routing-
|
|
80
|
-
import './healthTools-
|
|
78
|
+
import './index-c5b0ed29.js';
|
|
79
|
+
import './routing-8c46c2b2.js';
|
|
80
|
+
import './healthTools-d7f4ff5c.js';
|
|
81
81
|
|
|
82
82
|
// extend fastdom
|
|
83
83
|
const fastdom = fd.extend(fastdomPromised);
|
|
@@ -501,9 +501,99 @@ const KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD = 'other';
|
|
|
501
501
|
|
|
502
502
|
const STATE_SUBOT_INLINE_KEY = 'stateInlineSSO';
|
|
503
503
|
|
|
504
|
-
const
|
|
504
|
+
const SUBOT_INLINE_SSO_QUERY_KEYS = [
|
|
505
|
+
'bot_id',
|
|
506
|
+
'mode',
|
|
507
|
+
'embeddedType',
|
|
508
|
+
'toolName',
|
|
509
|
+
];
|
|
510
|
+
/**
|
|
511
|
+
* Remove subot-inline SSO returnUrl params from the address bar after a successful
|
|
512
|
+
* post-login restore so a later SSO attempt is not stuck when redirect() compares URLs.
|
|
513
|
+
*/
|
|
514
|
+
const stripSubotInlineSsoQueryFromUrl = () => {
|
|
515
|
+
if (typeof window === 'undefined')
|
|
516
|
+
return false;
|
|
517
|
+
try {
|
|
518
|
+
const url = new URL(window.location.href);
|
|
519
|
+
let changed = false;
|
|
520
|
+
for (const key of SUBOT_INLINE_SSO_QUERY_KEYS) {
|
|
521
|
+
if (url.searchParams.has(key)) {
|
|
522
|
+
url.searchParams.delete(key);
|
|
523
|
+
changed = true;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
if (url.searchParams.get('source') === 'subot-inline') {
|
|
527
|
+
url.searchParams.delete('source');
|
|
528
|
+
changed = true;
|
|
529
|
+
}
|
|
530
|
+
if (!changed)
|
|
531
|
+
return false;
|
|
532
|
+
const search = url.searchParams.toString();
|
|
533
|
+
const next = `${url.pathname}${search ? `?${search}` : ''}${url.hash}`;
|
|
534
|
+
window.history.replaceState(window.history.state, '', next);
|
|
535
|
+
return true;
|
|
536
|
+
}
|
|
537
|
+
catch (_a) {
|
|
538
|
+
return false;
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
/** Current page URL without subot-inline SSO query noise (for SSO V2 popup returnUrl). */
|
|
542
|
+
const buildSubotInlineSsoReturnUrl = () => {
|
|
543
|
+
stripSubotInlineSsoQueryFromUrl();
|
|
544
|
+
return window.location.href;
|
|
545
|
+
};
|
|
546
|
+
const isActiveSubotInlineSsoNode = (listNodes, activeId) => {
|
|
547
|
+
const found = listNodes.find((n) => n.id == activeId);
|
|
548
|
+
return (found === null || found === void 0 ? void 0 : found.position) === NodePosition.SSO;
|
|
549
|
+
};
|
|
550
|
+
const hasPendingSubotInlineSsoState = (botId) => {
|
|
551
|
+
var _a;
|
|
505
552
|
try {
|
|
506
|
-
|
|
553
|
+
const raw = localStorage.getItem(STATE_SUBOT_INLINE_KEY);
|
|
554
|
+
if (!raw)
|
|
555
|
+
return false;
|
|
556
|
+
const json = JSON.parse(raw);
|
|
557
|
+
const timeToExist = 30 * 60 * 1000;
|
|
558
|
+
if ((json === null || json === void 0 ? void 0 : json.botId) !== botId ||
|
|
559
|
+
!json.listNodes ||
|
|
560
|
+
!json.activeId ||
|
|
561
|
+
json.createdAt + timeToExist <= Date.now()) {
|
|
562
|
+
return false;
|
|
563
|
+
}
|
|
564
|
+
return ((_a = json.listNodes.slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.position) === NodePosition.SSO;
|
|
565
|
+
}
|
|
566
|
+
catch (_b) {
|
|
567
|
+
return false;
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
const restoreSubotInlineFromSsoStorage = (botId, { getParams, accountId, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
571
|
+
var _a, _b, _c;
|
|
572
|
+
const previousState = getPreviousStateFromStorage(botId, {
|
|
573
|
+
getParams,
|
|
574
|
+
accountId,
|
|
575
|
+
});
|
|
576
|
+
if (!((_a = previousState === null || previousState === void 0 ? void 0 : previousState.params) === null || _a === void 0 ? void 0 : _a.action_id) ||
|
|
577
|
+
!((_b = previousState === null || previousState === void 0 ? void 0 : previousState.params) === null || _b === void 0 ? void 0 : _b.action_value)) {
|
|
578
|
+
return null;
|
|
579
|
+
}
|
|
580
|
+
const resResultInline = yield subotInlineMessage$1(previousState.params);
|
|
581
|
+
if ((resResultInline === null || resResultInline === void 0 ? void 0 : resResultInline._status) !== 1 || !((_c = resResultInline === null || resResultInline === void 0 ? void 0 : resResultInline._data) === null || _c === void 0 ? void 0 : _c.node)) {
|
|
582
|
+
return null;
|
|
583
|
+
}
|
|
584
|
+
const activeId = String(resResultInline._data.node.id);
|
|
585
|
+
const listNodes = [...previousState.listNodes];
|
|
586
|
+
listNodes[listNodes.length - 1] = resResultInline._data.node;
|
|
587
|
+
return {
|
|
588
|
+
listNodes,
|
|
589
|
+
activeId,
|
|
590
|
+
params: previousState.params,
|
|
591
|
+
};
|
|
592
|
+
});
|
|
593
|
+
const getPreviousStateFromStorage = (botId, { getParams, accountId, }) => {
|
|
594
|
+
try {
|
|
595
|
+
const resolvedAccountId = accountId != null && accountId !== '' ? accountId : getUserIdFromCookie();
|
|
596
|
+
if (!resolvedAccountId)
|
|
507
597
|
return null;
|
|
508
598
|
const json = JSON.parse(localStorage.getItem(STATE_SUBOT_INLINE_KEY) || '');
|
|
509
599
|
const timeToExist = 30 * 60 * 1000; // 30 minutes
|
|
@@ -517,7 +607,7 @@ const getPreviousStateFromStorage = (botId, { getParams }) => {
|
|
|
517
607
|
return {
|
|
518
608
|
listNodes: json.listNodes,
|
|
519
609
|
activeId: json.activeId,
|
|
520
|
-
params: Object.assign(Object.assign(Object.assign({}, getParams()), json.params), { account_id:
|
|
610
|
+
params: Object.assign(Object.assign(Object.assign({}, getParams()), json.params), { account_id: resolvedAccountId || null, cookie_id: getSubotCookieId(json.params.cookie_id) }),
|
|
521
611
|
};
|
|
522
612
|
}
|
|
523
613
|
}
|
|
@@ -528,7 +618,7 @@ const getPreviousStateFromStorage = (botId, { getParams }) => {
|
|
|
528
618
|
}
|
|
529
619
|
};
|
|
530
620
|
const getSubotInlineLogs = (botItem) => __awaiter(void 0, void 0, void 0, function* () {
|
|
531
|
-
var
|
|
621
|
+
var _d, _e;
|
|
532
622
|
try {
|
|
533
623
|
if (!botItem)
|
|
534
624
|
return null;
|
|
@@ -538,7 +628,7 @@ const getSubotInlineLogs = (botItem) => __awaiter(void 0, void 0, void 0, functi
|
|
|
538
628
|
accountId: getUserIdFromCookie() || '',
|
|
539
629
|
type: 'inline',
|
|
540
630
|
}), 'GET');
|
|
541
|
-
if (!((
|
|
631
|
+
if (!((_d = response === null || response === void 0 ? void 0 : response._data) === null || _d === void 0 ? void 0 : _d.data) || ((_e = response === null || response === void 0 ? void 0 : response._data) === null || _e === void 0 ? void 0 : _e.type) !== 'inline')
|
|
542
632
|
return null;
|
|
543
633
|
const subotLogsJson = JSON.parse(response._data.data);
|
|
544
634
|
const nodesLogs = subotLogsJson.nodes;
|
|
@@ -828,11 +918,12 @@ const SubotInlineContext$1 = createContext({
|
|
|
828
918
|
setLoading: () => null,
|
|
829
919
|
userInfo: null,
|
|
830
920
|
});
|
|
831
|
-
const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer, bgColor: _bgColor, primaryColor: _primaryColor, textColor, textButtonColor, bgContentColor, bgImgFullContainer, isDisabledAnimationOnMobile, onCloseMobile, userInfo, typeFormProps, customUrl, isMobile, locale, }) => {
|
|
921
|
+
const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer, bgColor: _bgColor, primaryColor: _primaryColor, textColor, textButtonColor, bgContentColor, bgImgFullContainer, isDisabledAnimationOnMobile, onCloseMobile, userInfo, typeFormProps, customUrl, isMobile, locale, hostHandlers, }) => {
|
|
832
922
|
const { formatMessage: f, action: { pushNotifications }, } = useContext(TogetherComponentGlobalContext);
|
|
833
923
|
const ref = useRef(null);
|
|
834
924
|
// const { formatMessage: f } = useIntl()
|
|
835
925
|
const refAccountIdFromLogs = useRef(null);
|
|
926
|
+
const resumeFromSsoLoginRef = useRef(false);
|
|
836
927
|
const [loading, setLoading] = useState(true);
|
|
837
928
|
const [activeId, setActiveId] = useState('');
|
|
838
929
|
const [listNodes, setListNodes] = useState([]);
|
|
@@ -935,30 +1026,26 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
935
1026
|
newActiveId = subotLogs.activeId;
|
|
936
1027
|
refAccountIdFromLogs.current = ((_a = subotLogs.params) === null || _a === void 0 ? void 0 : _a.account_id) || 0;
|
|
937
1028
|
}
|
|
938
|
-
/** [Subot Inline] Show result page
|
|
939
|
-
const
|
|
1029
|
+
/** [Subot Inline] Show result after SSO (full-page return from legacy SSO) */
|
|
1030
|
+
const restored = yield restoreSubotInlineFromSsoStorage(params.bot_id, {
|
|
940
1031
|
getParams,
|
|
1032
|
+
accountId: userInfo === null || userInfo === void 0 ? void 0 : userInfo.id,
|
|
941
1033
|
});
|
|
942
|
-
if (
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
});
|
|
956
|
-
setTimeout(() => {
|
|
957
|
-
elementScrollIntoView();
|
|
958
|
-
}, 100);
|
|
959
|
-
}
|
|
1034
|
+
if (restored) {
|
|
1035
|
+
newActiveId = restored.activeId;
|
|
1036
|
+
nodes = restored.listNodes;
|
|
1037
|
+
saveSubotInlineLogs({
|
|
1038
|
+
nodes,
|
|
1039
|
+
activeId: newActiveId,
|
|
1040
|
+
params: restored.params,
|
|
1041
|
+
accountIdFromLogs: refAccountIdFromLogs.current,
|
|
1042
|
+
});
|
|
1043
|
+
setTimeout(() => {
|
|
1044
|
+
elementScrollIntoView();
|
|
1045
|
+
}, 100);
|
|
1046
|
+
stripSubotInlineSsoQueryFromUrl();
|
|
960
1047
|
}
|
|
961
|
-
const newParams = (
|
|
1048
|
+
const newParams = (restored === null || restored === void 0 ? void 0 : restored.params) || (subotLogs === null || subotLogs === void 0 ? void 0 : subotLogs.params) || params;
|
|
962
1049
|
const [computedActiveId, computedNodes] = detectToSkipNodeStart(nodes[0], newActiveId, nodes);
|
|
963
1050
|
setLoading(false);
|
|
964
1051
|
setActiveId(computedActiveId);
|
|
@@ -1062,6 +1149,7 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1062
1149
|
// elementScrollIntoView()
|
|
1063
1150
|
}, [listNodes, activeId]);
|
|
1064
1151
|
const onStartOver = useCallback(() => {
|
|
1152
|
+
resumeFromSsoLoginRef.current = false;
|
|
1065
1153
|
const params = getParams();
|
|
1066
1154
|
getFirstNode(params, false);
|
|
1067
1155
|
const botItem = listNodes[0];
|
|
@@ -1088,6 +1176,51 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1088
1176
|
return prevNodes;
|
|
1089
1177
|
});
|
|
1090
1178
|
}, [activeId]);
|
|
1179
|
+
const tryResumeSubotInlineAfterLogin = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
1180
|
+
const accountId = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) || getUserIdFromCookie();
|
|
1181
|
+
if (!accountId)
|
|
1182
|
+
return;
|
|
1183
|
+
if (!listNodes.length || !isActiveSubotInlineSsoNode(listNodes, activeId)) {
|
|
1184
|
+
return;
|
|
1185
|
+
}
|
|
1186
|
+
if (!hasPendingSubotInlineSsoState(subotId))
|
|
1187
|
+
return;
|
|
1188
|
+
if (resumeFromSsoLoginRef.current)
|
|
1189
|
+
return;
|
|
1190
|
+
resumeFromSsoLoginRef.current = true;
|
|
1191
|
+
setLoading(true);
|
|
1192
|
+
const restored = yield restoreSubotInlineFromSsoStorage(subotId, {
|
|
1193
|
+
getParams,
|
|
1194
|
+
accountId,
|
|
1195
|
+
});
|
|
1196
|
+
if (!restored) {
|
|
1197
|
+
resumeFromSsoLoginRef.current = false;
|
|
1198
|
+
setLoading(false);
|
|
1199
|
+
return;
|
|
1200
|
+
}
|
|
1201
|
+
saveSubotInlineLogs({
|
|
1202
|
+
nodes: restored.listNodes,
|
|
1203
|
+
activeId: restored.activeId,
|
|
1204
|
+
params: restored.params,
|
|
1205
|
+
accountIdFromLogs: refAccountIdFromLogs.current,
|
|
1206
|
+
});
|
|
1207
|
+
stripSubotInlineSsoQueryFromUrl();
|
|
1208
|
+
const [computedActiveId, computedNodes] = detectToSkipNodeStart(restored.listNodes[0], restored.activeId, restored.listNodes);
|
|
1209
|
+
setActiveId(computedActiveId);
|
|
1210
|
+
setListNodes(computedNodes);
|
|
1211
|
+
setParams(Object.assign(Object.assign({}, getParams()), restored.params));
|
|
1212
|
+
setLoading(false);
|
|
1213
|
+
setTimeout(() => {
|
|
1214
|
+
elementScrollIntoView();
|
|
1215
|
+
}, 100);
|
|
1216
|
+
}), [
|
|
1217
|
+
userInfo === null || userInfo === void 0 ? void 0 : userInfo.id,
|
|
1218
|
+
listNodes,
|
|
1219
|
+
activeId,
|
|
1220
|
+
subotId,
|
|
1221
|
+
getParams,
|
|
1222
|
+
elementScrollIntoView,
|
|
1223
|
+
]);
|
|
1091
1224
|
useEffect(() => {
|
|
1092
1225
|
if (!Cookies.get(GA_TOKEN_COOKIE)) {
|
|
1093
1226
|
checkUntilFinished({
|
|
@@ -1103,6 +1236,9 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1103
1236
|
getFirstNode(params);
|
|
1104
1237
|
}
|
|
1105
1238
|
}, []);
|
|
1239
|
+
useEffect(() => {
|
|
1240
|
+
void tryResumeSubotInlineAfterLogin();
|
|
1241
|
+
}, [tryResumeSubotInlineAfterLogin]);
|
|
1106
1242
|
useEffect(() => {
|
|
1107
1243
|
if (!listNodes.length) {
|
|
1108
1244
|
return;
|
|
@@ -1134,6 +1270,7 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1134
1270
|
typeFormProps,
|
|
1135
1271
|
isMobile,
|
|
1136
1272
|
locale,
|
|
1273
|
+
hostHandlers,
|
|
1137
1274
|
}), [
|
|
1138
1275
|
activeId,
|
|
1139
1276
|
onNext,
|
|
@@ -1155,6 +1292,7 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1155
1292
|
typeFormProps,
|
|
1156
1293
|
isMobile,
|
|
1157
1294
|
locale,
|
|
1295
|
+
hostHandlers,
|
|
1158
1296
|
]);
|
|
1159
1297
|
if (!listNodes.length) {
|
|
1160
1298
|
return null;
|
|
@@ -1851,7 +1989,7 @@ const getMDInstance = () => {
|
|
|
1851
1989
|
const Markdown = (_a) => {
|
|
1852
1990
|
var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
|
|
1853
1991
|
const md = useMemo(() => getMDInstance(), []);
|
|
1854
|
-
const classes =
|
|
1992
|
+
const classes = cn(className, 'markdown');
|
|
1855
1993
|
const props = useMemo(() => {
|
|
1856
1994
|
const newProps = Object.assign({}, restProps);
|
|
1857
1995
|
if (typeof children === 'string') {
|
|
@@ -2157,7 +2295,7 @@ const Container$s = ({ node, onClickStart }) => {
|
|
|
2157
2295
|
onNext();
|
|
2158
2296
|
onClickStart === null || onClickStart === void 0 ? void 0 : onClickStart();
|
|
2159
2297
|
};
|
|
2160
|
-
return (React__default.createElement(StyledContainer, { ref: ref, className:
|
|
2298
|
+
return (React__default.createElement(StyledContainer, { ref: ref, className: cn({
|
|
2161
2299
|
'si-acuvue-wrap': botType === 'ACUVUE',
|
|
2162
2300
|
}) },
|
|
2163
2301
|
React__default.createElement("h2", null, node.inline_title),
|
|
@@ -4108,7 +4246,7 @@ function GoogleAddressField({ action, formError, control, initValue, onChange, }
|
|
|
4108
4246
|
console.log('props', props);
|
|
4109
4247
|
return (React__default.createElement(Select, { data: options, icon: React__default.createElement(Location, null), itemComponent: SelectItem,
|
|
4110
4248
|
// Always display the suggestions
|
|
4111
|
-
filter: () => true, searchable: true, className:
|
|
4249
|
+
filter: () => true, searchable: true, className: cn({
|
|
4112
4250
|
isEmpty: options.length === 0 ||
|
|
4113
4251
|
(options.length === 1 && options[0].label === address),
|
|
4114
4252
|
}), onChange: (newAddress) => {
|
|
@@ -5520,7 +5658,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5520
5658
|
id: 'subot.sendOTP.button',
|
|
5521
5659
|
defaultMessage: 'Send OTP',
|
|
5522
5660
|
})))))),
|
|
5523
|
-
sentOTP && (React__default.createElement("div", { className:
|
|
5661
|
+
sentOTP && (React__default.createElement("div", { className: cn('input-row input-row--verify', {
|
|
5524
5662
|
'verified-otp': verifiedOTP,
|
|
5525
5663
|
'error-verify-otp': errors['otpCode'],
|
|
5526
5664
|
}) },
|
|
@@ -6180,20 +6318,11 @@ Container$4.displayName = 'SubotinlineNodePoll';
|
|
|
6180
6318
|
const StyledWrap$1 = styled.div ``;
|
|
6181
6319
|
|
|
6182
6320
|
const Container$3 = ({ node }) => {
|
|
6183
|
-
const
|
|
6184
|
-
const {
|
|
6185
|
-
const { params, setIsShowFooter, listNodes, activeId } = useContext(SubotInlineContext$1);
|
|
6321
|
+
const { formatMessage: f } = useContext(TogetherComponentGlobalContext);
|
|
6322
|
+
const { params, setIsShowFooter, listNodes, activeId, hostHandlers } = useContext(SubotInlineContext$1);
|
|
6186
6323
|
useMemo(() => {
|
|
6187
6324
|
setIsShowFooter(true);
|
|
6188
6325
|
}, []);
|
|
6189
|
-
useEffect(() => {
|
|
6190
|
-
var _a;
|
|
6191
|
-
const actionSSO = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === NodeActionType.ACTION_SSO_REDIRECT);
|
|
6192
|
-
if ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) && actionSSO && !refIsTrigger.current) {
|
|
6193
|
-
refIsTrigger.current = true;
|
|
6194
|
-
handleOnChange(actionSSO);
|
|
6195
|
-
}
|
|
6196
|
-
}, [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
6197
6326
|
const { triggerLogin } = useSSOV2Store();
|
|
6198
6327
|
const handleOnChange = (action) => {
|
|
6199
6328
|
if (params.bot_id &&
|
|
@@ -6207,20 +6336,31 @@ const Container$3 = ({ node }) => {
|
|
|
6207
6336
|
botId: params.bot_id,
|
|
6208
6337
|
};
|
|
6209
6338
|
localStorage.setItem(STATE_SUBOT_INLINE_KEY, JSON.stringify(currentState));
|
|
6210
|
-
const urlObj = getURLwithSSOTracking(window.location.href, {
|
|
6211
|
-
botItem: listNodes[0],
|
|
6212
|
-
});
|
|
6213
|
-
urlObj.searchParams.set('bot_id', String(params.bot_id));
|
|
6214
|
-
urlObj.searchParams.set('mode', 'inline');
|
|
6215
|
-
urlObj.searchParams.set('source', 'subot-inline');
|
|
6216
|
-
const returnUrl = urlObj.href;
|
|
6217
6339
|
if (IS_SSOV2_ENABLED()) {
|
|
6218
|
-
|
|
6340
|
+
const returnUrl = buildSubotInlineSsoReturnUrl();
|
|
6341
|
+
const payload = {
|
|
6342
|
+
botId: params.bot_id,
|
|
6219
6343
|
returnUrl,
|
|
6220
6344
|
source: 'subot-inline',
|
|
6221
|
-
}
|
|
6345
|
+
};
|
|
6346
|
+
if (hostHandlers === null || hostHandlers === void 0 ? void 0 : hostHandlers.onRequireLogin) {
|
|
6347
|
+
hostHandlers.onRequireLogin(payload);
|
|
6348
|
+
}
|
|
6349
|
+
else {
|
|
6350
|
+
triggerLogin({
|
|
6351
|
+
returnUrl,
|
|
6352
|
+
source: payload.source,
|
|
6353
|
+
});
|
|
6354
|
+
}
|
|
6222
6355
|
}
|
|
6223
6356
|
else {
|
|
6357
|
+
const urlObj = getURLwithSSOTracking(window.location.href, {
|
|
6358
|
+
botItem: listNodes[0],
|
|
6359
|
+
});
|
|
6360
|
+
urlObj.searchParams.set('bot_id', String(params.bot_id));
|
|
6361
|
+
urlObj.searchParams.set('mode', 'inline');
|
|
6362
|
+
urlObj.searchParams.set('source', 'subot-inline');
|
|
6363
|
+
const returnUrl = urlObj.href;
|
|
6224
6364
|
window.location.href = `${SSO_URL}?returnUrl=${encodeURIComponent(returnUrl)}`;
|
|
6225
6365
|
}
|
|
6226
6366
|
}
|
|
@@ -6408,7 +6548,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
|
|
|
6408
6548
|
};
|
|
6409
6549
|
const isFullScreenMobile = isDisplayFullMobile || isDisabledAnimationOnMobile;
|
|
6410
6550
|
const rendered = (React__default.createElement(SubotInlineRevampContainer, null,
|
|
6411
|
-
React__default.createElement(motion.div, { style: style, layout: true, transition: isDisabledAnimationOnMobile ? undefined : transition, className:
|
|
6551
|
+
React__default.createElement(motion.div, { style: style, layout: true, transition: isDisabledAnimationOnMobile ? undefined : transition, className: cn('si-inline-revamp-container', {
|
|
6412
6552
|
'si-container-open': isFullScreenMobile,
|
|
6413
6553
|
'si-full-container-config': isFullContainer,
|
|
6414
6554
|
'si-typeform': Boolean(typeFormProps),
|
|
@@ -7362,18 +7502,18 @@ const SubotInlineTextArea = ({ action, value, onChange, }) => {
|
|
|
7362
7502
|
};
|
|
7363
7503
|
const SubotInlineLikeChoice = ({ action, active, onChange, }) => {
|
|
7364
7504
|
return (React__default.createElement(SubotInlineActionItemContainer, { width: "40%", className: 'item-image-container' },
|
|
7365
|
-
React__default.createElement(SubotInlineButtonReaction, { className:
|
|
7505
|
+
React__default.createElement(SubotInlineButtonReaction, { className: cn(!!active && 'active'), onClick: () => onChange && onChange(action) },
|
|
7366
7506
|
React__default.createElement(LikeIcon, { viewBox: "0 0 24 24" }),
|
|
7367
7507
|
React__default.createElement(Markdown, null, action === null || action === void 0 ? void 0 : action.label))));
|
|
7368
7508
|
};
|
|
7369
7509
|
const SubotInlineDislikeChoice = ({ action, active, onChange, }) => {
|
|
7370
7510
|
return (React__default.createElement(SubotInlineActionItemContainer, { width: "40%", className: 'item-image-container' },
|
|
7371
|
-
React__default.createElement(SubotInlineButtonReaction, { className:
|
|
7511
|
+
React__default.createElement(SubotInlineButtonReaction, { className: cn(!!active && 'active'), onClick: () => onChange && onChange(action) },
|
|
7372
7512
|
React__default.createElement(DislikeIcon, { viewBox: "0 0 24 24" }),
|
|
7373
7513
|
React__default.createElement(Markdown, null, action === null || action === void 0 ? void 0 : action.label))));
|
|
7374
7514
|
};
|
|
7375
7515
|
const SubotInlineReviewChoice = ({ active, action, onChange, }) => (React__default.createElement(SubotInlineActionItemContainer, { width: "auto", className: "review-choice" },
|
|
7376
|
-
React__default.createElement(SubotInlineButtonReview, { className:
|
|
7516
|
+
React__default.createElement(SubotInlineButtonReview, { className: cn(!!active && 'active'), onClick: () => onChange &&
|
|
7377
7517
|
onChange({
|
|
7378
7518
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
7379
7519
|
control: ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
@@ -7420,13 +7560,13 @@ const SubotInlineFooter = ({ onBack, onNext: onSubmit, hideBack, hideNext, nextT
|
|
|
7420
7560
|
};
|
|
7421
7561
|
const actionSubmitMultiple = (_b = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.actions) === null || _b === void 0 ? void 0 : _b.find((act) => act.type === NodeActionType.ACTION_MULTIPLE_BUTTON);
|
|
7422
7562
|
return (React__default.createElement(SubotInlineFooterStyled, null,
|
|
7423
|
-
!hideBack && (React__default.createElement(ButtonBackStyled, Object.assign({ size: "md", color: "secondary", onClick: onBack }, backProps, { className:
|
|
7563
|
+
!hideBack && (React__default.createElement(ButtonBackStyled, Object.assign({ size: "md", color: "secondary", onClick: onBack }, backProps, { className: cn('pointer-event-child-none', backProps === null || backProps === void 0 ? void 0 : backProps.className) }, trackingCommonInline, { "data-event-action": "Back Click" }),
|
|
7424
7564
|
React__default.createElement(ArrowLeft, { style: { marginRight: 10 } }),
|
|
7425
7565
|
f({
|
|
7426
7566
|
id: 'riskScreener.back',
|
|
7427
7567
|
defaultMessage: 'Back',
|
|
7428
7568
|
}))),
|
|
7429
|
-
!hideNext && (React__default.createElement(ButtonStyled, Object.assign({ size: "md", color: "primary", onClick: actionNextChoice ? handleNextChoice : onSubmit }, nextProps, { className:
|
|
7569
|
+
!hideNext && (React__default.createElement(ButtonStyled, Object.assign({ size: "md", color: "primary", onClick: actionNextChoice ? handleNextChoice : onSubmit }, nextProps, { className: cn('pointer-event-child-none', nextProps === null || nextProps === void 0 ? void 0 : nextProps.className) }, trackingCommonInline, { "data-event-action": "Answer Click", "data-response-id": (actionSubmitMultiple === null || actionSubmitMultiple === void 0 ? void 0 : actionSubmitMultiple.id) ||
|
|
7430
7570
|
(actionNextChoice === null || actionNextChoice === void 0 ? void 0 : actionNextChoice.id) ||
|
|
7431
7571
|
((_c = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage._message) === null || _c === void 0 ? void 0 : _c.action_id) }),
|
|
7432
7572
|
!nextText
|
|
@@ -9161,16 +9301,7 @@ const SubotInlineNodeReview = ({ node, indexNumber, }) => {
|
|
|
9161
9301
|
};
|
|
9162
9302
|
|
|
9163
9303
|
const SubotInlineNodeSSO = ({ node, indexNumber, }) => {
|
|
9164
|
-
const
|
|
9165
|
-
const { params, onPrev, nodes, activeId, userInfo } = useContext(SubotInlineContext);
|
|
9166
|
-
useEffect(() => {
|
|
9167
|
-
var _a;
|
|
9168
|
-
const actionSSO = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === NodeActionType.ACTION_SSO_REDIRECT);
|
|
9169
|
-
if ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) && actionSSO && !refIsTrigger.current) {
|
|
9170
|
-
refIsTrigger.current = true;
|
|
9171
|
-
handleOnChange(actionSSO);
|
|
9172
|
-
}
|
|
9173
|
-
}, [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
9304
|
+
const { params, onPrev, nodes, activeId, hostHandlers } = useContext(SubotInlineContext);
|
|
9174
9305
|
const { formatMessage: f } = useContext(TogetherComponentGlobalContext);
|
|
9175
9306
|
const handleOnChange = (action) => {
|
|
9176
9307
|
if (action && action.type === NodeActionType.ACTION_SSO_REDIRECT) {
|
|
@@ -9182,20 +9313,31 @@ const SubotInlineNodeSSO = ({ node, indexNumber, }) => {
|
|
|
9182
9313
|
botId: params.bot_id,
|
|
9183
9314
|
};
|
|
9184
9315
|
localStorage.setItem(STATE_SUBOT_INLINE_KEY, JSON.stringify(currentState));
|
|
9185
|
-
const urlObj = getURLwithSSOTracking(window.location.href, {
|
|
9186
|
-
botItem: nodes[0],
|
|
9187
|
-
});
|
|
9188
|
-
urlObj.searchParams.set('bot_id', String(params.bot_id));
|
|
9189
|
-
urlObj.searchParams.set('mode', 'inline');
|
|
9190
|
-
urlObj.searchParams.set('source', 'subot-inline');
|
|
9191
|
-
const returnUrl = urlObj.href;
|
|
9192
9316
|
if (IS_SSOV2_ENABLED()) {
|
|
9193
|
-
|
|
9317
|
+
const returnUrl = buildSubotInlineSsoReturnUrl();
|
|
9318
|
+
const payload = {
|
|
9319
|
+
botId: params.bot_id,
|
|
9194
9320
|
returnUrl,
|
|
9195
|
-
source:
|
|
9196
|
-
}
|
|
9321
|
+
source: 'subot-inline',
|
|
9322
|
+
};
|
|
9323
|
+
if (hostHandlers === null || hostHandlers === void 0 ? void 0 : hostHandlers.onRequireLogin) {
|
|
9324
|
+
hostHandlers.onRequireLogin(payload);
|
|
9325
|
+
}
|
|
9326
|
+
else {
|
|
9327
|
+
useSSOV2Store.getState().triggerLogin({
|
|
9328
|
+
returnUrl,
|
|
9329
|
+
source: payload.source,
|
|
9330
|
+
});
|
|
9331
|
+
}
|
|
9197
9332
|
}
|
|
9198
9333
|
else {
|
|
9334
|
+
const urlObj = getURLwithSSOTracking(window.location.href, {
|
|
9335
|
+
botItem: nodes[0],
|
|
9336
|
+
});
|
|
9337
|
+
urlObj.searchParams.set('bot_id', String(params.bot_id));
|
|
9338
|
+
urlObj.searchParams.set('mode', 'inline');
|
|
9339
|
+
urlObj.searchParams.set('source', 'subot-inline');
|
|
9340
|
+
const returnUrl = urlObj.href;
|
|
9199
9341
|
window.location.href = `${SSO_URL}?returnUrl=${encodeURIComponent(returnUrl)}`;
|
|
9200
9342
|
}
|
|
9201
9343
|
}
|
|
@@ -9504,9 +9646,10 @@ const SubotInlineLoadingContainer = styled.div `
|
|
|
9504
9646
|
margin-left: -1rem;
|
|
9505
9647
|
}
|
|
9506
9648
|
`;
|
|
9507
|
-
const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
9649
|
+
const SubotInline = ({ id, isMobile, articleLink, customUrl, hostHandlers, }) => {
|
|
9508
9650
|
const currentUrl = useCurrentUrl();
|
|
9509
9651
|
const refAccountIdFromLogs = useRef(null);
|
|
9652
|
+
const resumeFromSsoLoginRef = useRef(false);
|
|
9510
9653
|
const flag = useRef(null);
|
|
9511
9654
|
const [loading, setLoading] = useState(true);
|
|
9512
9655
|
const [state, setState] = useState({
|
|
@@ -9745,30 +9888,25 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
|
9745
9888
|
refAccountIdFromLogs.current = ((_b = subotLogs.params) === null || _b === void 0 ? void 0 : _b.account_id) || 0;
|
|
9746
9889
|
}
|
|
9747
9890
|
}
|
|
9748
|
-
|
|
9749
|
-
const previousState = getPreviousStateFromStorage(params.bot_id, {
|
|
9891
|
+
const restored = yield restoreSubotInlineFromSsoStorage(params.bot_id, {
|
|
9750
9892
|
getParams,
|
|
9893
|
+
accountId: userInfo === null || userInfo === void 0 ? void 0 : userInfo.id,
|
|
9751
9894
|
});
|
|
9752
|
-
if (
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
activeId
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
});
|
|
9766
|
-
setTimeout(() => {
|
|
9767
|
-
elementScrollIntoView();
|
|
9768
|
-
}, 100);
|
|
9769
|
-
}
|
|
9895
|
+
if (restored) {
|
|
9896
|
+
activeId = restored.activeId;
|
|
9897
|
+
nodes = restored.listNodes;
|
|
9898
|
+
saveSubotInlineLogs({
|
|
9899
|
+
nodes,
|
|
9900
|
+
activeId,
|
|
9901
|
+
params: restored.params,
|
|
9902
|
+
accountIdFromLogs: refAccountIdFromLogs.current,
|
|
9903
|
+
});
|
|
9904
|
+
setTimeout(() => {
|
|
9905
|
+
elementScrollIntoView();
|
|
9906
|
+
}, 100);
|
|
9907
|
+
stripSubotInlineSsoQueryFromUrl();
|
|
9770
9908
|
}
|
|
9771
|
-
const newParams = (
|
|
9909
|
+
const newParams = (restored === null || restored === void 0 ? void 0 : restored.params) || (subotLogs === null || subotLogs === void 0 ? void 0 : subotLogs.params) || params;
|
|
9772
9910
|
const _state = Object.assign(Object.assign({}, state), { params: newParams, activeId, nodes: nodes });
|
|
9773
9911
|
setLoading(false);
|
|
9774
9912
|
setState(_state);
|
|
@@ -9794,6 +9932,44 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
|
9794
9932
|
getFirstAPI(params);
|
|
9795
9933
|
}
|
|
9796
9934
|
}, []);
|
|
9935
|
+
useEffect(() => {
|
|
9936
|
+
const accountId = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) || getUserIdFromCookie();
|
|
9937
|
+
if (!accountId)
|
|
9938
|
+
return;
|
|
9939
|
+
if (!state.nodes.length ||
|
|
9940
|
+
!isActiveSubotInlineSsoNode(state.nodes, state.activeId)) {
|
|
9941
|
+
return;
|
|
9942
|
+
}
|
|
9943
|
+
if (!hasPendingSubotInlineSsoState(id))
|
|
9944
|
+
return;
|
|
9945
|
+
if (resumeFromSsoLoginRef.current)
|
|
9946
|
+
return;
|
|
9947
|
+
resumeFromSsoLoginRef.current = true;
|
|
9948
|
+
setLoading(true);
|
|
9949
|
+
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
9950
|
+
const restored = yield restoreSubotInlineFromSsoStorage(id, {
|
|
9951
|
+
getParams,
|
|
9952
|
+
accountId,
|
|
9953
|
+
});
|
|
9954
|
+
if (!restored) {
|
|
9955
|
+
resumeFromSsoLoginRef.current = false;
|
|
9956
|
+
setLoading(false);
|
|
9957
|
+
return;
|
|
9958
|
+
}
|
|
9959
|
+
saveSubotInlineLogs({
|
|
9960
|
+
nodes: restored.listNodes,
|
|
9961
|
+
activeId: restored.activeId,
|
|
9962
|
+
params: restored.params,
|
|
9963
|
+
accountIdFromLogs: refAccountIdFromLogs.current,
|
|
9964
|
+
});
|
|
9965
|
+
stripSubotInlineSsoQueryFromUrl();
|
|
9966
|
+
setState((prev) => (Object.assign(Object.assign({}, prev), { nodes: restored.listNodes, activeId: restored.activeId, params: Object.assign(Object.assign({}, getParams()), restored.params) })));
|
|
9967
|
+
setLoading(false);
|
|
9968
|
+
setTimeout(() => {
|
|
9969
|
+
elementScrollIntoView();
|
|
9970
|
+
}, 100);
|
|
9971
|
+
}))();
|
|
9972
|
+
}, [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id, state.activeId, state.nodes, id, getParams]);
|
|
9797
9973
|
if (state.nodes.length && !state.nodes[0].inline_active) {
|
|
9798
9974
|
return null;
|
|
9799
9975
|
}
|
|
@@ -9805,8 +9981,9 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
|
9805
9981
|
onNext,
|
|
9806
9982
|
onReset,
|
|
9807
9983
|
trackingCommonInline,
|
|
9808
|
-
userInfo
|
|
9809
|
-
|
|
9984
|
+
userInfo,
|
|
9985
|
+
hostHandlers }) },
|
|
9986
|
+
React__default.createElement(SubotInlineLoadingContainer, { className: cn('hhg-subot', `hhg-subot-${id}`, !!state.nodes.length && 'hhg-subot-style') }, !!state.nodes.length && (React__default.createElement(React__default.Fragment, null,
|
|
9810
9987
|
React__default.createElement("div", { ref: flag, className: "hhg-flag", style: {
|
|
9811
9988
|
position: 'absolute',
|
|
9812
9989
|
top: -150,
|
|
@@ -9903,6 +10080,12 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
9903
10080
|
subotInlineClick: subotInlineClick$1,
|
|
9904
10081
|
subotInlineImpression: subotInlineImpression$1,
|
|
9905
10082
|
PATHS: PATHS$1,
|
|
10083
|
+
SUBOT_INLINE_SSO_QUERY_KEYS: SUBOT_INLINE_SSO_QUERY_KEYS,
|
|
10084
|
+
stripSubotInlineSsoQueryFromUrl: stripSubotInlineSsoQueryFromUrl,
|
|
10085
|
+
buildSubotInlineSsoReturnUrl: buildSubotInlineSsoReturnUrl,
|
|
10086
|
+
isActiveSubotInlineSsoNode: isActiveSubotInlineSsoNode,
|
|
10087
|
+
hasPendingSubotInlineSsoState: hasPendingSubotInlineSsoState,
|
|
10088
|
+
restoreSubotInlineFromSsoStorage: restoreSubotInlineFromSsoStorage,
|
|
9906
10089
|
getPreviousStateFromStorage: getPreviousStateFromStorage,
|
|
9907
10090
|
getSubotInlineLogs: getSubotInlineLogs,
|
|
9908
10091
|
extractUnifiedAnswers: extractUnifiedAnswers,
|
|
@@ -9920,4 +10103,4 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
9920
10103
|
replaceTextWithVariables: replaceTextWithVariables
|
|
9921
10104
|
});
|
|
9922
10105
|
|
|
9923
|
-
export { KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD, Markdown, PATHS$1 as PATHS, SubotInline, SubotInlineIntentBase$1 as SubotInlineIntentBase, SubotInlineIntentBaseTarget, SubotInlineRevampWithTheme, SubotInlineVoucherLeftUI, UserInfoForm, checkSyncDataOnFrisoCampaign, computeExtraSettingsForBot$1 as computeExtraSettingsForBot, ContainerWithProvider as default, detectToSkipNodeStart, extractUnifiedAnswers, extractVoucherAnswers, getColorWithOpacity, getCurrentTotalDynamicScore, getDynamicScore, getPreviousStateFromStorage, getSubotApiPath, getSubotInlineLogs, handleFrisoRedirecition, hexRgb, replaceTextWithVariables, saveSubotInlineLogs, subotInlineClick$1 as subotInlineClick, subotInlineFirstNode$1 as subotInlineFirstNode, subotInlineImpression$1 as subotInlineImpression, subotInlineMessage$1 as subotInlineMessage };
|
|
10106
|
+
export { KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD, Markdown, PATHS$1 as PATHS, SUBOT_INLINE_SSO_QUERY_KEYS, SubotInline, SubotInlineIntentBase$1 as SubotInlineIntentBase, SubotInlineIntentBaseTarget, SubotInlineRevampWithTheme, SubotInlineVoucherLeftUI, UserInfoForm, buildSubotInlineSsoReturnUrl, checkSyncDataOnFrisoCampaign, computeExtraSettingsForBot$1 as computeExtraSettingsForBot, ContainerWithProvider as default, detectToSkipNodeStart, extractUnifiedAnswers, extractVoucherAnswers, getColorWithOpacity, getCurrentTotalDynamicScore, getDynamicScore, getPreviousStateFromStorage, getSubotApiPath, getSubotInlineLogs, handleFrisoRedirecition, hasPendingSubotInlineSsoState, hexRgb, isActiveSubotInlineSsoNode, replaceTextWithVariables, restoreSubotInlineFromSsoStorage, saveSubotInlineLogs, stripSubotInlineSsoQueryFromUrl, subotInlineClick$1 as subotInlineClick, subotInlineFirstNode$1 as subotInlineFirstNode, subotInlineImpression$1 as subotInlineImpression, subotInlineMessage$1 as subotInlineMessage };
|