@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/subot.js
CHANGED
|
@@ -3,73 +3,73 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var index$2 = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
8
|
-
var index$3 = require('./index-
|
|
6
|
+
var index$2 = require('./index-dc4824a2.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-b6943142.js');
|
|
8
|
+
var index$3 = require('./index-691519e5.js');
|
|
9
9
|
var Cookies = require('js-cookie');
|
|
10
10
|
var fd = require('fastdom');
|
|
11
11
|
var fastdomPromised = require('fastdom/extensions/fastdom-promised');
|
|
12
|
-
var togetherComponentGlobalContext = require('./utils-
|
|
12
|
+
var togetherComponentGlobalContext = require('./utils-9c054e84.js');
|
|
13
13
|
var formatString = require('string-format');
|
|
14
|
-
var index$1 = require('./index-
|
|
14
|
+
var index$1 = require('./index-7433da7a.js');
|
|
15
15
|
var dayjs = require('dayjs');
|
|
16
16
|
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
17
17
|
var core = require('@mantine/core');
|
|
18
|
-
var
|
|
19
|
-
var index$b = require('./index-
|
|
20
|
-
var index$a = require('./index-
|
|
18
|
+
var cn = require('classnames');
|
|
19
|
+
var index$b = require('./index-7a178e88.js');
|
|
20
|
+
var index$a = require('./index-6bd5d1da.js');
|
|
21
21
|
var framerMotion = require('framer-motion');
|
|
22
22
|
var styled = require('@emotion/styled');
|
|
23
|
-
var utils = require('./utils-
|
|
24
|
-
var index$4 = require('./index-
|
|
23
|
+
var utils = require('./utils-f307adb6.js');
|
|
24
|
+
var index$4 = require('./index-a14a82f8.js');
|
|
25
25
|
var remarkable = require('remarkable');
|
|
26
26
|
var other = require('@hhgtech/icons/other');
|
|
27
27
|
var reactIntersectionObserver = require('react-intersection-observer');
|
|
28
|
-
var index$5 = require('./index-
|
|
28
|
+
var index$5 = require('./index-e8b262c2.js');
|
|
29
29
|
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
|
|
30
|
-
var constants = require('./constants-
|
|
30
|
+
var constants = require('./constants-541de17c.js');
|
|
31
31
|
var uuid = require('uuid');
|
|
32
|
-
var index$6 = require('./index-
|
|
32
|
+
var index$6 = require('./index-9f4ce9f4.js');
|
|
33
33
|
var miscTheme = require('./miscTheme.js');
|
|
34
34
|
var constantsIsProduction = require('./constantsIsProduction.js');
|
|
35
|
-
var index$7 = require('./index-
|
|
35
|
+
var index$7 = require('./index-7d42a4af.js');
|
|
36
36
|
require('@mantine/dates');
|
|
37
|
-
require('./index-
|
|
38
|
-
require('./index-
|
|
39
|
-
require('./index.styles-
|
|
40
|
-
require('./translationsContext-
|
|
37
|
+
require('./index-98abef60.js');
|
|
38
|
+
require('./index-25d10ba2.js');
|
|
39
|
+
require('./index.styles-494c4585.js');
|
|
40
|
+
require('./translationsContext-c9d11485.js');
|
|
41
41
|
require('@mantine/hooks');
|
|
42
|
-
require('./index-
|
|
42
|
+
require('./index-d76b9c69.js');
|
|
43
43
|
var isEmpty = require('lodash/isEmpty');
|
|
44
44
|
var reactHookForm = require('react-hook-form');
|
|
45
45
|
var PhoneInputBase = require('react-phone-number-input');
|
|
46
46
|
var api = require('@react-google-maps/api');
|
|
47
|
-
var usePlacesAutocomplete = require('./usePlacesAutocomplete-
|
|
47
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-b8dc2910.js');
|
|
48
48
|
var miscDefaultClassWrapper = require('./miscDefaultClassWrapper.js');
|
|
49
|
-
var InputDate = require('./InputDate-
|
|
50
|
-
var index$8 = require('./index-
|
|
51
|
-
var index$9 = require('./index-
|
|
52
|
-
var store = require('./store-
|
|
53
|
-
var utils$1 = require('./utils-
|
|
54
|
-
var index$c = require('./index-
|
|
49
|
+
var InputDate = require('./InputDate-16952a6c.js');
|
|
50
|
+
var index$8 = require('./index-8981d733.js');
|
|
51
|
+
var index$9 = require('./index-b2308092.js');
|
|
52
|
+
var store = require('./store-5d9e3ee8.js');
|
|
53
|
+
var utils$1 = require('./utils-1ee79a65.js');
|
|
54
|
+
var index$c = require('./index-6e54e26b.js');
|
|
55
55
|
var StarRatings = require('react-star-ratings');
|
|
56
56
|
var moleculesArticleCard = require('./moleculesArticleCard.js');
|
|
57
|
-
var index$d = require('./index-
|
|
58
|
-
var index$e = require('./index-
|
|
57
|
+
var index$d = require('./index-9d6f439c.js');
|
|
58
|
+
var index$e = require('./index-a5b6ec13.js');
|
|
59
59
|
require('date-fns/locale');
|
|
60
60
|
require('./constantsSite.js');
|
|
61
61
|
require('./constantsRiskScreener.js');
|
|
62
62
|
require('./miscCookieHelper.js');
|
|
63
63
|
require('slugify');
|
|
64
64
|
require('./togetherApiPaths.js');
|
|
65
|
-
require('./index-
|
|
66
|
-
require('./WhatsApp-
|
|
67
|
-
require('./Spinner-
|
|
68
|
-
require('./index-
|
|
69
|
-
require('./shared-
|
|
70
|
-
require('./index-
|
|
65
|
+
require('./index-50bc68b4.js');
|
|
66
|
+
require('./WhatsApp-264e0c50.js');
|
|
67
|
+
require('./Spinner-d03ec234.js');
|
|
68
|
+
require('./index-7c45e8fb.js');
|
|
69
|
+
require('./shared-34a0c7f7.js');
|
|
70
|
+
require('./index-b3e883f9.js');
|
|
71
71
|
require('@mantine/carousel');
|
|
72
|
-
require('./useUniqueId-
|
|
72
|
+
require('./useUniqueId-7f03fbaa.js');
|
|
73
73
|
require('@hhgtech/icons/core');
|
|
74
74
|
require('lodash/debounce');
|
|
75
75
|
require('lodash/throttle');
|
|
@@ -78,9 +78,9 @@ require('vaul');
|
|
|
78
78
|
require('@emotion/react');
|
|
79
79
|
require('@mantine/notifications');
|
|
80
80
|
require('zustand');
|
|
81
|
-
require('./index-
|
|
82
|
-
require('./routing-
|
|
83
|
-
require('./healthTools-
|
|
81
|
+
require('./index-62bdd6b8.js');
|
|
82
|
+
require('./routing-cae1d792.js');
|
|
83
|
+
require('./healthTools-396edb10.js');
|
|
84
84
|
|
|
85
85
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
86
86
|
|
|
@@ -90,7 +90,7 @@ var fd__default = /*#__PURE__*/_interopDefault(fd);
|
|
|
90
90
|
var fastdomPromised__default = /*#__PURE__*/_interopDefault(fastdomPromised);
|
|
91
91
|
var formatString__default = /*#__PURE__*/_interopDefault(formatString);
|
|
92
92
|
var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
93
|
-
var
|
|
93
|
+
var cn__default = /*#__PURE__*/_interopDefault(cn);
|
|
94
94
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
95
95
|
var isSameOrBefore__default = /*#__PURE__*/_interopDefault(isSameOrBefore);
|
|
96
96
|
var isEmpty__default = /*#__PURE__*/_interopDefault(isEmpty);
|
|
@@ -519,9 +519,99 @@ const KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD = 'other';
|
|
|
519
519
|
|
|
520
520
|
const STATE_SUBOT_INLINE_KEY = 'stateInlineSSO';
|
|
521
521
|
|
|
522
|
-
const
|
|
522
|
+
const SUBOT_INLINE_SSO_QUERY_KEYS = [
|
|
523
|
+
'bot_id',
|
|
524
|
+
'mode',
|
|
525
|
+
'embeddedType',
|
|
526
|
+
'toolName',
|
|
527
|
+
];
|
|
528
|
+
/**
|
|
529
|
+
* Remove subot-inline SSO returnUrl params from the address bar after a successful
|
|
530
|
+
* post-login restore so a later SSO attempt is not stuck when redirect() compares URLs.
|
|
531
|
+
*/
|
|
532
|
+
const stripSubotInlineSsoQueryFromUrl = () => {
|
|
533
|
+
if (typeof window === 'undefined')
|
|
534
|
+
return false;
|
|
535
|
+
try {
|
|
536
|
+
const url = new URL(window.location.href);
|
|
537
|
+
let changed = false;
|
|
538
|
+
for (const key of SUBOT_INLINE_SSO_QUERY_KEYS) {
|
|
539
|
+
if (url.searchParams.has(key)) {
|
|
540
|
+
url.searchParams.delete(key);
|
|
541
|
+
changed = true;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
if (url.searchParams.get('source') === 'subot-inline') {
|
|
545
|
+
url.searchParams.delete('source');
|
|
546
|
+
changed = true;
|
|
547
|
+
}
|
|
548
|
+
if (!changed)
|
|
549
|
+
return false;
|
|
550
|
+
const search = url.searchParams.toString();
|
|
551
|
+
const next = `${url.pathname}${search ? `?${search}` : ''}${url.hash}`;
|
|
552
|
+
window.history.replaceState(window.history.state, '', next);
|
|
553
|
+
return true;
|
|
554
|
+
}
|
|
555
|
+
catch (_a) {
|
|
556
|
+
return false;
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
/** Current page URL without subot-inline SSO query noise (for SSO V2 popup returnUrl). */
|
|
560
|
+
const buildSubotInlineSsoReturnUrl = () => {
|
|
561
|
+
stripSubotInlineSsoQueryFromUrl();
|
|
562
|
+
return window.location.href;
|
|
563
|
+
};
|
|
564
|
+
const isActiveSubotInlineSsoNode = (listNodes, activeId) => {
|
|
565
|
+
const found = listNodes.find((n) => n.id == activeId);
|
|
566
|
+
return (found === null || found === void 0 ? void 0 : found.position) === index$2.NodePosition.SSO;
|
|
567
|
+
};
|
|
568
|
+
const hasPendingSubotInlineSsoState = (botId) => {
|
|
569
|
+
var _a;
|
|
523
570
|
try {
|
|
524
|
-
|
|
571
|
+
const raw = localStorage.getItem(STATE_SUBOT_INLINE_KEY);
|
|
572
|
+
if (!raw)
|
|
573
|
+
return false;
|
|
574
|
+
const json = JSON.parse(raw);
|
|
575
|
+
const timeToExist = 30 * 60 * 1000;
|
|
576
|
+
if ((json === null || json === void 0 ? void 0 : json.botId) !== botId ||
|
|
577
|
+
!json.listNodes ||
|
|
578
|
+
!json.activeId ||
|
|
579
|
+
json.createdAt + timeToExist <= Date.now()) {
|
|
580
|
+
return false;
|
|
581
|
+
}
|
|
582
|
+
return ((_a = json.listNodes.slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.position) === index$2.NodePosition.SSO;
|
|
583
|
+
}
|
|
584
|
+
catch (_b) {
|
|
585
|
+
return false;
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
const restoreSubotInlineFromSsoStorage = (botId, { getParams, accountId, }) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
589
|
+
var _a, _b, _c;
|
|
590
|
+
const previousState = getPreviousStateFromStorage(botId, {
|
|
591
|
+
getParams,
|
|
592
|
+
accountId,
|
|
593
|
+
});
|
|
594
|
+
if (!((_a = previousState === null || previousState === void 0 ? void 0 : previousState.params) === null || _a === void 0 ? void 0 : _a.action_id) ||
|
|
595
|
+
!((_b = previousState === null || previousState === void 0 ? void 0 : previousState.params) === null || _b === void 0 ? void 0 : _b.action_value)) {
|
|
596
|
+
return null;
|
|
597
|
+
}
|
|
598
|
+
const resResultInline = yield subotInlineMessage$1(previousState.params);
|
|
599
|
+
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)) {
|
|
600
|
+
return null;
|
|
601
|
+
}
|
|
602
|
+
const activeId = String(resResultInline._data.node.id);
|
|
603
|
+
const listNodes = [...previousState.listNodes];
|
|
604
|
+
listNodes[listNodes.length - 1] = resResultInline._data.node;
|
|
605
|
+
return {
|
|
606
|
+
listNodes,
|
|
607
|
+
activeId,
|
|
608
|
+
params: previousState.params,
|
|
609
|
+
};
|
|
610
|
+
});
|
|
611
|
+
const getPreviousStateFromStorage = (botId, { getParams, accountId, }) => {
|
|
612
|
+
try {
|
|
613
|
+
const resolvedAccountId = accountId != null && accountId !== '' ? accountId : index$1.getUserIdFromCookie();
|
|
614
|
+
if (!resolvedAccountId)
|
|
525
615
|
return null;
|
|
526
616
|
const json = JSON.parse(localStorage.getItem(STATE_SUBOT_INLINE_KEY) || '');
|
|
527
617
|
const timeToExist = 30 * 60 * 1000; // 30 minutes
|
|
@@ -535,7 +625,7 @@ const getPreviousStateFromStorage = (botId, { getParams }) => {
|
|
|
535
625
|
return {
|
|
536
626
|
listNodes: json.listNodes,
|
|
537
627
|
activeId: json.activeId,
|
|
538
|
-
params: Object.assign(Object.assign(Object.assign({}, getParams()), json.params), { account_id:
|
|
628
|
+
params: Object.assign(Object.assign(Object.assign({}, getParams()), json.params), { account_id: resolvedAccountId || null, cookie_id: index$1.getSubotCookieId(json.params.cookie_id) }),
|
|
539
629
|
};
|
|
540
630
|
}
|
|
541
631
|
}
|
|
@@ -546,7 +636,7 @@ const getPreviousStateFromStorage = (botId, { getParams }) => {
|
|
|
546
636
|
}
|
|
547
637
|
};
|
|
548
638
|
const getSubotInlineLogs = (botItem) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
549
|
-
var
|
|
639
|
+
var _d, _e;
|
|
550
640
|
try {
|
|
551
641
|
if (!botItem)
|
|
552
642
|
return null;
|
|
@@ -556,7 +646,7 @@ const getSubotInlineLogs = (botItem) => tslib_es6.__awaiter(void 0, void 0, void
|
|
|
556
646
|
accountId: index$1.getUserIdFromCookie() || '',
|
|
557
647
|
type: 'inline',
|
|
558
648
|
}), 'GET');
|
|
559
|
-
if (!((
|
|
649
|
+
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')
|
|
560
650
|
return null;
|
|
561
651
|
const subotLogsJson = JSON.parse(response._data.data);
|
|
562
652
|
const nodesLogs = subotLogsJson.nodes;
|
|
@@ -846,11 +936,12 @@ const SubotInlineContext$1 = React.createContext({
|
|
|
846
936
|
setLoading: () => null,
|
|
847
937
|
userInfo: null,
|
|
848
938
|
});
|
|
849
|
-
const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer, bgColor: _bgColor, primaryColor: _primaryColor, textColor, textButtonColor, bgContentColor, bgImgFullContainer, isDisabledAnimationOnMobile, onCloseMobile, userInfo, typeFormProps, customUrl, isMobile, locale, }) => {
|
|
939
|
+
const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer, bgColor: _bgColor, primaryColor: _primaryColor, textColor, textButtonColor, bgContentColor, bgImgFullContainer, isDisabledAnimationOnMobile, onCloseMobile, userInfo, typeFormProps, customUrl, isMobile, locale, hostHandlers, }) => {
|
|
850
940
|
const { formatMessage: f, action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
851
941
|
const ref = React.useRef(null);
|
|
852
942
|
// const { formatMessage: f } = useIntl()
|
|
853
943
|
const refAccountIdFromLogs = React.useRef(null);
|
|
944
|
+
const resumeFromSsoLoginRef = React.useRef(false);
|
|
854
945
|
const [loading, setLoading] = React.useState(true);
|
|
855
946
|
const [activeId, setActiveId] = React.useState('');
|
|
856
947
|
const [listNodes, setListNodes] = React.useState([]);
|
|
@@ -953,30 +1044,26 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
953
1044
|
newActiveId = subotLogs.activeId;
|
|
954
1045
|
refAccountIdFromLogs.current = ((_a = subotLogs.params) === null || _a === void 0 ? void 0 : _a.account_id) || 0;
|
|
955
1046
|
}
|
|
956
|
-
/** [Subot Inline] Show result page
|
|
957
|
-
const
|
|
1047
|
+
/** [Subot Inline] Show result after SSO (full-page return from legacy SSO) */
|
|
1048
|
+
const restored = yield restoreSubotInlineFromSsoStorage(params.bot_id, {
|
|
958
1049
|
getParams,
|
|
1050
|
+
accountId: userInfo === null || userInfo === void 0 ? void 0 : userInfo.id,
|
|
959
1051
|
});
|
|
960
|
-
if (
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
});
|
|
974
|
-
setTimeout(() => {
|
|
975
|
-
elementScrollIntoView();
|
|
976
|
-
}, 100);
|
|
977
|
-
}
|
|
1052
|
+
if (restored) {
|
|
1053
|
+
newActiveId = restored.activeId;
|
|
1054
|
+
nodes = restored.listNodes;
|
|
1055
|
+
saveSubotInlineLogs({
|
|
1056
|
+
nodes,
|
|
1057
|
+
activeId: newActiveId,
|
|
1058
|
+
params: restored.params,
|
|
1059
|
+
accountIdFromLogs: refAccountIdFromLogs.current,
|
|
1060
|
+
});
|
|
1061
|
+
setTimeout(() => {
|
|
1062
|
+
elementScrollIntoView();
|
|
1063
|
+
}, 100);
|
|
1064
|
+
stripSubotInlineSsoQueryFromUrl();
|
|
978
1065
|
}
|
|
979
|
-
const newParams = (
|
|
1066
|
+
const newParams = (restored === null || restored === void 0 ? void 0 : restored.params) || (subotLogs === null || subotLogs === void 0 ? void 0 : subotLogs.params) || params;
|
|
980
1067
|
const [computedActiveId, computedNodes] = detectToSkipNodeStart(nodes[0], newActiveId, nodes);
|
|
981
1068
|
setLoading(false);
|
|
982
1069
|
setActiveId(computedActiveId);
|
|
@@ -1080,6 +1167,7 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1080
1167
|
// elementScrollIntoView()
|
|
1081
1168
|
}, [listNodes, activeId]);
|
|
1082
1169
|
const onStartOver = React.useCallback(() => {
|
|
1170
|
+
resumeFromSsoLoginRef.current = false;
|
|
1083
1171
|
const params = getParams();
|
|
1084
1172
|
getFirstNode(params, false);
|
|
1085
1173
|
const botItem = listNodes[0];
|
|
@@ -1106,6 +1194,51 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1106
1194
|
return prevNodes;
|
|
1107
1195
|
});
|
|
1108
1196
|
}, [activeId]);
|
|
1197
|
+
const tryResumeSubotInlineAfterLogin = React.useCallback(() => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
1198
|
+
const accountId = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) || index$1.getUserIdFromCookie();
|
|
1199
|
+
if (!accountId)
|
|
1200
|
+
return;
|
|
1201
|
+
if (!listNodes.length || !isActiveSubotInlineSsoNode(listNodes, activeId)) {
|
|
1202
|
+
return;
|
|
1203
|
+
}
|
|
1204
|
+
if (!hasPendingSubotInlineSsoState(subotId))
|
|
1205
|
+
return;
|
|
1206
|
+
if (resumeFromSsoLoginRef.current)
|
|
1207
|
+
return;
|
|
1208
|
+
resumeFromSsoLoginRef.current = true;
|
|
1209
|
+
setLoading(true);
|
|
1210
|
+
const restored = yield restoreSubotInlineFromSsoStorage(subotId, {
|
|
1211
|
+
getParams,
|
|
1212
|
+
accountId,
|
|
1213
|
+
});
|
|
1214
|
+
if (!restored) {
|
|
1215
|
+
resumeFromSsoLoginRef.current = false;
|
|
1216
|
+
setLoading(false);
|
|
1217
|
+
return;
|
|
1218
|
+
}
|
|
1219
|
+
saveSubotInlineLogs({
|
|
1220
|
+
nodes: restored.listNodes,
|
|
1221
|
+
activeId: restored.activeId,
|
|
1222
|
+
params: restored.params,
|
|
1223
|
+
accountIdFromLogs: refAccountIdFromLogs.current,
|
|
1224
|
+
});
|
|
1225
|
+
stripSubotInlineSsoQueryFromUrl();
|
|
1226
|
+
const [computedActiveId, computedNodes] = detectToSkipNodeStart(restored.listNodes[0], restored.activeId, restored.listNodes);
|
|
1227
|
+
setActiveId(computedActiveId);
|
|
1228
|
+
setListNodes(computedNodes);
|
|
1229
|
+
setParams(Object.assign(Object.assign({}, getParams()), restored.params));
|
|
1230
|
+
setLoading(false);
|
|
1231
|
+
setTimeout(() => {
|
|
1232
|
+
elementScrollIntoView();
|
|
1233
|
+
}, 100);
|
|
1234
|
+
}), [
|
|
1235
|
+
userInfo === null || userInfo === void 0 ? void 0 : userInfo.id,
|
|
1236
|
+
listNodes,
|
|
1237
|
+
activeId,
|
|
1238
|
+
subotId,
|
|
1239
|
+
getParams,
|
|
1240
|
+
elementScrollIntoView,
|
|
1241
|
+
]);
|
|
1109
1242
|
React.useEffect(() => {
|
|
1110
1243
|
if (!Cookies__default["default"].get(index$3.GA_TOKEN_COOKIE)) {
|
|
1111
1244
|
index$1.checkUntilFinished({
|
|
@@ -1121,6 +1254,9 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1121
1254
|
getFirstNode(params);
|
|
1122
1255
|
}
|
|
1123
1256
|
}, []);
|
|
1257
|
+
React.useEffect(() => {
|
|
1258
|
+
void tryResumeSubotInlineAfterLogin();
|
|
1259
|
+
}, [tryResumeSubotInlineAfterLogin]);
|
|
1124
1260
|
React.useEffect(() => {
|
|
1125
1261
|
if (!listNodes.length) {
|
|
1126
1262
|
return;
|
|
@@ -1152,6 +1288,7 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1152
1288
|
typeFormProps,
|
|
1153
1289
|
isMobile,
|
|
1154
1290
|
locale,
|
|
1291
|
+
hostHandlers,
|
|
1155
1292
|
}), [
|
|
1156
1293
|
activeId,
|
|
1157
1294
|
onNext,
|
|
@@ -1173,6 +1310,7 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1173
1310
|
typeFormProps,
|
|
1174
1311
|
isMobile,
|
|
1175
1312
|
locale,
|
|
1313
|
+
hostHandlers,
|
|
1176
1314
|
]);
|
|
1177
1315
|
if (!listNodes.length) {
|
|
1178
1316
|
return null;
|
|
@@ -1869,7 +2007,7 @@ const getMDInstance = () => {
|
|
|
1869
2007
|
const Markdown = (_a) => {
|
|
1870
2008
|
var { children, className } = _a, restProps = tslib_es6.__rest(_a, ["children", "className"]);
|
|
1871
2009
|
const md = React.useMemo(() => getMDInstance(), []);
|
|
1872
|
-
const classes =
|
|
2010
|
+
const classes = cn__default["default"](className, 'markdown');
|
|
1873
2011
|
const props = React.useMemo(() => {
|
|
1874
2012
|
const newProps = Object.assign({}, restProps);
|
|
1875
2013
|
if (typeof children === 'string') {
|
|
@@ -2175,7 +2313,7 @@ const Container$s = ({ node, onClickStart }) => {
|
|
|
2175
2313
|
onNext();
|
|
2176
2314
|
onClickStart === null || onClickStart === void 0 ? void 0 : onClickStart();
|
|
2177
2315
|
};
|
|
2178
|
-
return (React__default["default"].createElement(StyledContainer, { ref: ref, className:
|
|
2316
|
+
return (React__default["default"].createElement(StyledContainer, { ref: ref, className: cn__default["default"]({
|
|
2179
2317
|
'si-acuvue-wrap': botType === 'ACUVUE',
|
|
2180
2318
|
}) },
|
|
2181
2319
|
React__default["default"].createElement("h2", null, node.inline_title),
|
|
@@ -4126,7 +4264,7 @@ function GoogleAddressField({ action, formError, control, initValue, onChange, }
|
|
|
4126
4264
|
console.log('props', props);
|
|
4127
4265
|
return (React__default["default"].createElement(index$7.Select, { data: options, icon: React__default["default"].createElement(Location, null), itemComponent: SelectItem,
|
|
4128
4266
|
// Always display the suggestions
|
|
4129
|
-
filter: () => true, searchable: true, className:
|
|
4267
|
+
filter: () => true, searchable: true, className: cn__default["default"]({
|
|
4130
4268
|
isEmpty: options.length === 0 ||
|
|
4131
4269
|
(options.length === 1 && options[0].label === address),
|
|
4132
4270
|
}), onChange: (newAddress) => {
|
|
@@ -5538,7 +5676,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5538
5676
|
id: 'subot.sendOTP.button',
|
|
5539
5677
|
defaultMessage: 'Send OTP',
|
|
5540
5678
|
})))))),
|
|
5541
|
-
sentOTP && (React__default["default"].createElement("div", { className:
|
|
5679
|
+
sentOTP && (React__default["default"].createElement("div", { className: cn__default["default"]('input-row input-row--verify', {
|
|
5542
5680
|
'verified-otp': verifiedOTP,
|
|
5543
5681
|
'error-verify-otp': errors['otpCode'],
|
|
5544
5682
|
}) },
|
|
@@ -6198,20 +6336,11 @@ Container$4.displayName = 'SubotinlineNodePoll';
|
|
|
6198
6336
|
const StyledWrap$1 = styled__default["default"].div ``;
|
|
6199
6337
|
|
|
6200
6338
|
const Container$3 = ({ node }) => {
|
|
6201
|
-
const
|
|
6202
|
-
const {
|
|
6203
|
-
const { params, setIsShowFooter, listNodes, activeId } = React.useContext(SubotInlineContext$1);
|
|
6339
|
+
const { formatMessage: f } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
6340
|
+
const { params, setIsShowFooter, listNodes, activeId, hostHandlers } = React.useContext(SubotInlineContext$1);
|
|
6204
6341
|
React.useMemo(() => {
|
|
6205
6342
|
setIsShowFooter(true);
|
|
6206
6343
|
}, []);
|
|
6207
|
-
React.useEffect(() => {
|
|
6208
|
-
var _a;
|
|
6209
|
-
const actionSSO = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$2.NodeActionType.ACTION_SSO_REDIRECT);
|
|
6210
|
-
if ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) && actionSSO && !refIsTrigger.current) {
|
|
6211
|
-
refIsTrigger.current = true;
|
|
6212
|
-
handleOnChange(actionSSO);
|
|
6213
|
-
}
|
|
6214
|
-
}, [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
6215
6344
|
const { triggerLogin } = store.useSSOV2Store();
|
|
6216
6345
|
const handleOnChange = (action) => {
|
|
6217
6346
|
if (params.bot_id &&
|
|
@@ -6225,20 +6354,31 @@ const Container$3 = ({ node }) => {
|
|
|
6225
6354
|
botId: params.bot_id,
|
|
6226
6355
|
};
|
|
6227
6356
|
localStorage.setItem(STATE_SUBOT_INLINE_KEY, JSON.stringify(currentState));
|
|
6228
|
-
const urlObj = utils$1.getURLwithSSOTracking(window.location.href, {
|
|
6229
|
-
botItem: listNodes[0],
|
|
6230
|
-
});
|
|
6231
|
-
urlObj.searchParams.set('bot_id', String(params.bot_id));
|
|
6232
|
-
urlObj.searchParams.set('mode', 'inline');
|
|
6233
|
-
urlObj.searchParams.set('source', 'subot-inline');
|
|
6234
|
-
const returnUrl = urlObj.href;
|
|
6235
6357
|
if (store.IS_SSOV2_ENABLED()) {
|
|
6236
|
-
|
|
6358
|
+
const returnUrl = buildSubotInlineSsoReturnUrl();
|
|
6359
|
+
const payload = {
|
|
6360
|
+
botId: params.bot_id,
|
|
6237
6361
|
returnUrl,
|
|
6238
6362
|
source: 'subot-inline',
|
|
6239
|
-
}
|
|
6363
|
+
};
|
|
6364
|
+
if (hostHandlers === null || hostHandlers === void 0 ? void 0 : hostHandlers.onRequireLogin) {
|
|
6365
|
+
hostHandlers.onRequireLogin(payload);
|
|
6366
|
+
}
|
|
6367
|
+
else {
|
|
6368
|
+
triggerLogin({
|
|
6369
|
+
returnUrl,
|
|
6370
|
+
source: payload.source,
|
|
6371
|
+
});
|
|
6372
|
+
}
|
|
6240
6373
|
}
|
|
6241
6374
|
else {
|
|
6375
|
+
const urlObj = utils$1.getURLwithSSOTracking(window.location.href, {
|
|
6376
|
+
botItem: listNodes[0],
|
|
6377
|
+
});
|
|
6378
|
+
urlObj.searchParams.set('bot_id', String(params.bot_id));
|
|
6379
|
+
urlObj.searchParams.set('mode', 'inline');
|
|
6380
|
+
urlObj.searchParams.set('source', 'subot-inline');
|
|
6381
|
+
const returnUrl = urlObj.href;
|
|
6242
6382
|
window.location.href = `${index$3.SSO_URL}?returnUrl=${encodeURIComponent(returnUrl)}`;
|
|
6243
6383
|
}
|
|
6244
6384
|
}
|
|
@@ -6426,7 +6566,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
|
|
|
6426
6566
|
};
|
|
6427
6567
|
const isFullScreenMobile = isDisplayFullMobile || isDisabledAnimationOnMobile;
|
|
6428
6568
|
const rendered = (React__default["default"].createElement(SubotInlineRevampContainer, null,
|
|
6429
|
-
React__default["default"].createElement(framerMotion.motion.div, { style: style, layout: true, transition: isDisabledAnimationOnMobile ? undefined : transition, className:
|
|
6569
|
+
React__default["default"].createElement(framerMotion.motion.div, { style: style, layout: true, transition: isDisabledAnimationOnMobile ? undefined : transition, className: cn__default["default"]('si-inline-revamp-container', {
|
|
6430
6570
|
'si-container-open': isFullScreenMobile,
|
|
6431
6571
|
'si-full-container-config': isFullContainer,
|
|
6432
6572
|
'si-typeform': Boolean(typeFormProps),
|
|
@@ -7380,18 +7520,18 @@ const SubotInlineTextArea = ({ action, value, onChange, }) => {
|
|
|
7380
7520
|
};
|
|
7381
7521
|
const SubotInlineLikeChoice = ({ action, active, onChange, }) => {
|
|
7382
7522
|
return (React__default["default"].createElement(SubotInlineActionItemContainer, { width: "40%", className: 'item-image-container' },
|
|
7383
|
-
React__default["default"].createElement(SubotInlineButtonReaction, { className:
|
|
7523
|
+
React__default["default"].createElement(SubotInlineButtonReaction, { className: cn__default["default"](!!active && 'active'), onClick: () => onChange && onChange(action) },
|
|
7384
7524
|
React__default["default"].createElement(LikeIcon, { viewBox: "0 0 24 24" }),
|
|
7385
7525
|
React__default["default"].createElement(Markdown, null, action === null || action === void 0 ? void 0 : action.label))));
|
|
7386
7526
|
};
|
|
7387
7527
|
const SubotInlineDislikeChoice = ({ action, active, onChange, }) => {
|
|
7388
7528
|
return (React__default["default"].createElement(SubotInlineActionItemContainer, { width: "40%", className: 'item-image-container' },
|
|
7389
|
-
React__default["default"].createElement(SubotInlineButtonReaction, { className:
|
|
7529
|
+
React__default["default"].createElement(SubotInlineButtonReaction, { className: cn__default["default"](!!active && 'active'), onClick: () => onChange && onChange(action) },
|
|
7390
7530
|
React__default["default"].createElement(DislikeIcon, { viewBox: "0 0 24 24" }),
|
|
7391
7531
|
React__default["default"].createElement(Markdown, null, action === null || action === void 0 ? void 0 : action.label))));
|
|
7392
7532
|
};
|
|
7393
7533
|
const SubotInlineReviewChoice = ({ active, action, onChange, }) => (React__default["default"].createElement(SubotInlineActionItemContainer, { width: "auto", className: "review-choice" },
|
|
7394
|
-
React__default["default"].createElement(SubotInlineButtonReview, { className:
|
|
7534
|
+
React__default["default"].createElement(SubotInlineButtonReview, { className: cn__default["default"](!!active && 'active'), onClick: () => onChange &&
|
|
7395
7535
|
onChange({
|
|
7396
7536
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
7397
7537
|
control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
@@ -7438,13 +7578,13 @@ const SubotInlineFooter = ({ onBack, onNext: onSubmit, hideBack, hideNext, nextT
|
|
|
7438
7578
|
};
|
|
7439
7579
|
const actionSubmitMultiple = (_b = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.actions) === null || _b === void 0 ? void 0 : _b.find((act) => act.type === index$2.NodeActionType.ACTION_MULTIPLE_BUTTON);
|
|
7440
7580
|
return (React__default["default"].createElement(SubotInlineFooterStyled, null,
|
|
7441
|
-
!hideBack && (React__default["default"].createElement(ButtonBackStyled, Object.assign({ size: "md", color: "secondary", onClick: onBack }, backProps, { className:
|
|
7581
|
+
!hideBack && (React__default["default"].createElement(ButtonBackStyled, Object.assign({ size: "md", color: "secondary", onClick: onBack }, backProps, { className: cn__default["default"]('pointer-event-child-none', backProps === null || backProps === void 0 ? void 0 : backProps.className) }, trackingCommonInline, { "data-event-action": "Back Click" }),
|
|
7442
7582
|
React__default["default"].createElement(ArrowLeft, { style: { marginRight: 10 } }),
|
|
7443
7583
|
f({
|
|
7444
7584
|
id: 'riskScreener.back',
|
|
7445
7585
|
defaultMessage: 'Back',
|
|
7446
7586
|
}))),
|
|
7447
|
-
!hideNext && (React__default["default"].createElement(ButtonStyled, Object.assign({ size: "md", color: "primary", onClick: actionNextChoice ? handleNextChoice : onSubmit }, nextProps, { className:
|
|
7587
|
+
!hideNext && (React__default["default"].createElement(ButtonStyled, Object.assign({ size: "md", color: "primary", onClick: actionNextChoice ? handleNextChoice : onSubmit }, nextProps, { className: cn__default["default"]('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) ||
|
|
7448
7588
|
(actionNextChoice === null || actionNextChoice === void 0 ? void 0 : actionNextChoice.id) ||
|
|
7449
7589
|
((_c = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage._message) === null || _c === void 0 ? void 0 : _c.action_id) }),
|
|
7450
7590
|
!nextText
|
|
@@ -9179,16 +9319,7 @@ const SubotInlineNodeReview = ({ node, indexNumber, }) => {
|
|
|
9179
9319
|
};
|
|
9180
9320
|
|
|
9181
9321
|
const SubotInlineNodeSSO = ({ node, indexNumber, }) => {
|
|
9182
|
-
const
|
|
9183
|
-
const { params, onPrev, nodes, activeId, userInfo } = React.useContext(SubotInlineContext);
|
|
9184
|
-
React.useEffect(() => {
|
|
9185
|
-
var _a;
|
|
9186
|
-
const actionSSO = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$2.NodeActionType.ACTION_SSO_REDIRECT);
|
|
9187
|
-
if ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) && actionSSO && !refIsTrigger.current) {
|
|
9188
|
-
refIsTrigger.current = true;
|
|
9189
|
-
handleOnChange(actionSSO);
|
|
9190
|
-
}
|
|
9191
|
-
}, [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
9322
|
+
const { params, onPrev, nodes, activeId, hostHandlers } = React.useContext(SubotInlineContext);
|
|
9192
9323
|
const { formatMessage: f } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
9193
9324
|
const handleOnChange = (action) => {
|
|
9194
9325
|
if (action && action.type === index$2.NodeActionType.ACTION_SSO_REDIRECT) {
|
|
@@ -9200,20 +9331,31 @@ const SubotInlineNodeSSO = ({ node, indexNumber, }) => {
|
|
|
9200
9331
|
botId: params.bot_id,
|
|
9201
9332
|
};
|
|
9202
9333
|
localStorage.setItem(STATE_SUBOT_INLINE_KEY, JSON.stringify(currentState));
|
|
9203
|
-
const urlObj = utils$1.getURLwithSSOTracking(window.location.href, {
|
|
9204
|
-
botItem: nodes[0],
|
|
9205
|
-
});
|
|
9206
|
-
urlObj.searchParams.set('bot_id', String(params.bot_id));
|
|
9207
|
-
urlObj.searchParams.set('mode', 'inline');
|
|
9208
|
-
urlObj.searchParams.set('source', 'subot-inline');
|
|
9209
|
-
const returnUrl = urlObj.href;
|
|
9210
9334
|
if (store.IS_SSOV2_ENABLED()) {
|
|
9211
|
-
|
|
9335
|
+
const returnUrl = buildSubotInlineSsoReturnUrl();
|
|
9336
|
+
const payload = {
|
|
9337
|
+
botId: params.bot_id,
|
|
9212
9338
|
returnUrl,
|
|
9213
|
-
source:
|
|
9214
|
-
}
|
|
9339
|
+
source: 'subot-inline',
|
|
9340
|
+
};
|
|
9341
|
+
if (hostHandlers === null || hostHandlers === void 0 ? void 0 : hostHandlers.onRequireLogin) {
|
|
9342
|
+
hostHandlers.onRequireLogin(payload);
|
|
9343
|
+
}
|
|
9344
|
+
else {
|
|
9345
|
+
store.useSSOV2Store.getState().triggerLogin({
|
|
9346
|
+
returnUrl,
|
|
9347
|
+
source: payload.source,
|
|
9348
|
+
});
|
|
9349
|
+
}
|
|
9215
9350
|
}
|
|
9216
9351
|
else {
|
|
9352
|
+
const urlObj = utils$1.getURLwithSSOTracking(window.location.href, {
|
|
9353
|
+
botItem: nodes[0],
|
|
9354
|
+
});
|
|
9355
|
+
urlObj.searchParams.set('bot_id', String(params.bot_id));
|
|
9356
|
+
urlObj.searchParams.set('mode', 'inline');
|
|
9357
|
+
urlObj.searchParams.set('source', 'subot-inline');
|
|
9358
|
+
const returnUrl = urlObj.href;
|
|
9217
9359
|
window.location.href = `${index$3.SSO_URL}?returnUrl=${encodeURIComponent(returnUrl)}`;
|
|
9218
9360
|
}
|
|
9219
9361
|
}
|
|
@@ -9522,9 +9664,10 @@ const SubotInlineLoadingContainer = styled__default["default"].div `
|
|
|
9522
9664
|
margin-left: -1rem;
|
|
9523
9665
|
}
|
|
9524
9666
|
`;
|
|
9525
|
-
const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
9667
|
+
const SubotInline = ({ id, isMobile, articleLink, customUrl, hostHandlers, }) => {
|
|
9526
9668
|
const currentUrl = useCurrentUrl();
|
|
9527
9669
|
const refAccountIdFromLogs = React.useRef(null);
|
|
9670
|
+
const resumeFromSsoLoginRef = React.useRef(false);
|
|
9528
9671
|
const flag = React.useRef(null);
|
|
9529
9672
|
const [loading, setLoading] = React.useState(true);
|
|
9530
9673
|
const [state, setState] = React.useState({
|
|
@@ -9763,30 +9906,25 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
|
9763
9906
|
refAccountIdFromLogs.current = ((_b = subotLogs.params) === null || _b === void 0 ? void 0 : _b.account_id) || 0;
|
|
9764
9907
|
}
|
|
9765
9908
|
}
|
|
9766
|
-
|
|
9767
|
-
const previousState = getPreviousStateFromStorage(params.bot_id, {
|
|
9909
|
+
const restored = yield restoreSubotInlineFromSsoStorage(params.bot_id, {
|
|
9768
9910
|
getParams,
|
|
9911
|
+
accountId: userInfo === null || userInfo === void 0 ? void 0 : userInfo.id,
|
|
9769
9912
|
});
|
|
9770
|
-
if (
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
activeId
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
});
|
|
9784
|
-
setTimeout(() => {
|
|
9785
|
-
elementScrollIntoView();
|
|
9786
|
-
}, 100);
|
|
9787
|
-
}
|
|
9913
|
+
if (restored) {
|
|
9914
|
+
activeId = restored.activeId;
|
|
9915
|
+
nodes = restored.listNodes;
|
|
9916
|
+
saveSubotInlineLogs({
|
|
9917
|
+
nodes,
|
|
9918
|
+
activeId,
|
|
9919
|
+
params: restored.params,
|
|
9920
|
+
accountIdFromLogs: refAccountIdFromLogs.current,
|
|
9921
|
+
});
|
|
9922
|
+
setTimeout(() => {
|
|
9923
|
+
elementScrollIntoView();
|
|
9924
|
+
}, 100);
|
|
9925
|
+
stripSubotInlineSsoQueryFromUrl();
|
|
9788
9926
|
}
|
|
9789
|
-
const newParams = (
|
|
9927
|
+
const newParams = (restored === null || restored === void 0 ? void 0 : restored.params) || (subotLogs === null || subotLogs === void 0 ? void 0 : subotLogs.params) || params;
|
|
9790
9928
|
const _state = Object.assign(Object.assign({}, state), { params: newParams, activeId, nodes: nodes });
|
|
9791
9929
|
setLoading(false);
|
|
9792
9930
|
setState(_state);
|
|
@@ -9812,6 +9950,44 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
|
9812
9950
|
getFirstAPI(params);
|
|
9813
9951
|
}
|
|
9814
9952
|
}, []);
|
|
9953
|
+
React.useEffect(() => {
|
|
9954
|
+
const accountId = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) || index$1.getUserIdFromCookie();
|
|
9955
|
+
if (!accountId)
|
|
9956
|
+
return;
|
|
9957
|
+
if (!state.nodes.length ||
|
|
9958
|
+
!isActiveSubotInlineSsoNode(state.nodes, state.activeId)) {
|
|
9959
|
+
return;
|
|
9960
|
+
}
|
|
9961
|
+
if (!hasPendingSubotInlineSsoState(id))
|
|
9962
|
+
return;
|
|
9963
|
+
if (resumeFromSsoLoginRef.current)
|
|
9964
|
+
return;
|
|
9965
|
+
resumeFromSsoLoginRef.current = true;
|
|
9966
|
+
setLoading(true);
|
|
9967
|
+
(() => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
9968
|
+
const restored = yield restoreSubotInlineFromSsoStorage(id, {
|
|
9969
|
+
getParams,
|
|
9970
|
+
accountId,
|
|
9971
|
+
});
|
|
9972
|
+
if (!restored) {
|
|
9973
|
+
resumeFromSsoLoginRef.current = false;
|
|
9974
|
+
setLoading(false);
|
|
9975
|
+
return;
|
|
9976
|
+
}
|
|
9977
|
+
saveSubotInlineLogs({
|
|
9978
|
+
nodes: restored.listNodes,
|
|
9979
|
+
activeId: restored.activeId,
|
|
9980
|
+
params: restored.params,
|
|
9981
|
+
accountIdFromLogs: refAccountIdFromLogs.current,
|
|
9982
|
+
});
|
|
9983
|
+
stripSubotInlineSsoQueryFromUrl();
|
|
9984
|
+
setState((prev) => (Object.assign(Object.assign({}, prev), { nodes: restored.listNodes, activeId: restored.activeId, params: Object.assign(Object.assign({}, getParams()), restored.params) })));
|
|
9985
|
+
setLoading(false);
|
|
9986
|
+
setTimeout(() => {
|
|
9987
|
+
elementScrollIntoView();
|
|
9988
|
+
}, 100);
|
|
9989
|
+
}))();
|
|
9990
|
+
}, [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id, state.activeId, state.nodes, id, getParams]);
|
|
9815
9991
|
if (state.nodes.length && !state.nodes[0].inline_active) {
|
|
9816
9992
|
return null;
|
|
9817
9993
|
}
|
|
@@ -9823,8 +9999,9 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
|
9823
9999
|
onNext,
|
|
9824
10000
|
onReset,
|
|
9825
10001
|
trackingCommonInline,
|
|
9826
|
-
userInfo
|
|
9827
|
-
|
|
10002
|
+
userInfo,
|
|
10003
|
+
hostHandlers }) },
|
|
10004
|
+
React__default["default"].createElement(SubotInlineLoadingContainer, { className: cn__default["default"]('hhg-subot', `hhg-subot-${id}`, !!state.nodes.length && 'hhg-subot-style') }, !!state.nodes.length && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
9828
10005
|
React__default["default"].createElement("div", { ref: flag, className: "hhg-flag", style: {
|
|
9829
10006
|
position: 'absolute',
|
|
9830
10007
|
top: -150,
|
|
@@ -9921,6 +10098,12 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
9921
10098
|
subotInlineClick: subotInlineClick$1,
|
|
9922
10099
|
subotInlineImpression: subotInlineImpression$1,
|
|
9923
10100
|
PATHS: PATHS$1,
|
|
10101
|
+
SUBOT_INLINE_SSO_QUERY_KEYS: SUBOT_INLINE_SSO_QUERY_KEYS,
|
|
10102
|
+
stripSubotInlineSsoQueryFromUrl: stripSubotInlineSsoQueryFromUrl,
|
|
10103
|
+
buildSubotInlineSsoReturnUrl: buildSubotInlineSsoReturnUrl,
|
|
10104
|
+
isActiveSubotInlineSsoNode: isActiveSubotInlineSsoNode,
|
|
10105
|
+
hasPendingSubotInlineSsoState: hasPendingSubotInlineSsoState,
|
|
10106
|
+
restoreSubotInlineFromSsoStorage: restoreSubotInlineFromSsoStorage,
|
|
9924
10107
|
getPreviousStateFromStorage: getPreviousStateFromStorage,
|
|
9925
10108
|
getSubotInlineLogs: getSubotInlineLogs,
|
|
9926
10109
|
extractUnifiedAnswers: extractUnifiedAnswers,
|
|
@@ -9955,12 +10138,14 @@ exports.ssoIntents = index$1.ssoIntents;
|
|
|
9955
10138
|
exports.KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD = KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD;
|
|
9956
10139
|
exports.Markdown = Markdown;
|
|
9957
10140
|
exports.PATHS = PATHS$1;
|
|
10141
|
+
exports.SUBOT_INLINE_SSO_QUERY_KEYS = SUBOT_INLINE_SSO_QUERY_KEYS;
|
|
9958
10142
|
exports.SubotInline = SubotInline;
|
|
9959
10143
|
exports.SubotInlineIntentBase = SubotInlineIntentBase$1;
|
|
9960
10144
|
exports.SubotInlineIntentBaseTarget = SubotInlineIntentBaseTarget;
|
|
9961
10145
|
exports.SubotInlineRevampWithTheme = SubotInlineRevampWithTheme;
|
|
9962
10146
|
exports.SubotInlineVoucherLeftUI = SubotInlineVoucherLeftUI;
|
|
9963
10147
|
exports.UserInfoForm = UserInfoForm;
|
|
10148
|
+
exports.buildSubotInlineSsoReturnUrl = buildSubotInlineSsoReturnUrl;
|
|
9964
10149
|
exports.checkSyncDataOnFrisoCampaign = checkSyncDataOnFrisoCampaign;
|
|
9965
10150
|
exports.computeExtraSettingsForBot = computeExtraSettingsForBot$1;
|
|
9966
10151
|
exports["default"] = ContainerWithProvider;
|
|
@@ -9974,9 +10159,13 @@ exports.getPreviousStateFromStorage = getPreviousStateFromStorage;
|
|
|
9974
10159
|
exports.getSubotApiPath = getSubotApiPath;
|
|
9975
10160
|
exports.getSubotInlineLogs = getSubotInlineLogs;
|
|
9976
10161
|
exports.handleFrisoRedirecition = handleFrisoRedirecition;
|
|
10162
|
+
exports.hasPendingSubotInlineSsoState = hasPendingSubotInlineSsoState;
|
|
9977
10163
|
exports.hexRgb = hexRgb;
|
|
10164
|
+
exports.isActiveSubotInlineSsoNode = isActiveSubotInlineSsoNode;
|
|
9978
10165
|
exports.replaceTextWithVariables = replaceTextWithVariables;
|
|
10166
|
+
exports.restoreSubotInlineFromSsoStorage = restoreSubotInlineFromSsoStorage;
|
|
9979
10167
|
exports.saveSubotInlineLogs = saveSubotInlineLogs;
|
|
10168
|
+
exports.stripSubotInlineSsoQueryFromUrl = stripSubotInlineSsoQueryFromUrl;
|
|
9980
10169
|
exports.subotInlineClick = subotInlineClick$1;
|
|
9981
10170
|
exports.subotInlineFirstNode = subotInlineFirstNode$1;
|
|
9982
10171
|
exports.subotInlineImpression = subotInlineImpression$1;
|