@hhgtech/hhg-components 1.29.566 → 1.29.567-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-b8118635.js → InputDate-397c8601.js} +8 -8
- package/build/{LastPeriod-19ebeec0.js → LastPeriod-f4f7cdf5.js} +1 -1
- package/build/LeadGenCore-77a3b75a.js +5131 -0
- package/build/{MobileBottomNavigationIcon-cb65e80f.js → MobileBottomNavigationIcon-02ce1df1.js} +3 -3
- package/build/{SiteWideBanner-b573e41b.js → SiteWideBanner-4076d406.js} +13 -13
- package/build/{Spinner-17016453.js → Spinner-95a8206a.js} +1 -1
- package/build/{WhatsApp-61b6804a.js → WhatsApp-1df2f07b.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +62 -51
- package/build/babyGrowth.js +85 -85
- package/build/cache.js +2 -2
- package/build/care.js +21 -21
- package/build/careBookingSearchBar.js +13 -13
- package/build/careBookingSearchBarV2.js +18 -18
- package/build/components/atoms/datePickerV2/Calendar.d.ts +6 -0
- package/build/components/atoms/datePickerV2/DatePickerInput.d.ts +20 -0
- package/build/components/atoms/datePickerV2/helpers.d.ts +33 -0
- package/build/components/atoms/datePickerV2/index.d.ts +27 -0
- package/build/components/atoms/datePickerV2/index.styled.d.ts +31 -0
- package/build/components/atoms/index.d.ts +1 -0
- package/build/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +2 -1
- package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +1 -0
- package/build/components/molecules/embeddedHeathToolCards/helpers.d.ts +1 -0
- package/build/components/molecules/healthTools/common.d.ts +18 -0
- package/build/components/molecules/healthTools/components/healthToolDatePicker/index.d.ts +20 -0
- package/build/components/molecules/index.d.ts +1 -1
- package/build/components.js +171 -157
- package/build/{constants-db94bbec.js → constants-a38503a0.js} +1 -1
- package/build/{constants-9c92ac99.js → constants-ed4d3dad.js} +1 -1
- package/build/constants.js +2 -2
- package/build/constantsRiskScreener.js +1 -1
- package/build/constantsSite.js +1 -1
- package/build/{core-f766176d.js → core-d085d6ea.js} +1 -1
- package/build/{dataTransform-7082636e.js → dataTransform-bef671ff.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-1288ad52.js → editor-f6696e41.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/embeddedHeathToolCards_babyPoop.js +21 -21
- package/build/embeddedHeathToolCards_babyVaccine.js +28 -23
- package/build/embeddedHeathToolCards_bmi_bmi.js +40 -34
- package/build/embeddedHeathToolCards_bmrBmr.js +28 -28
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +28 -23
- package/build/embeddedHeathToolCards_helpers.js +8 -6
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +28 -23
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +33 -28
- package/build/esm/{InputDate-6e39208b.js → InputDate-5481c766.js} +7 -7
- package/build/esm/{LastPeriod-183056b0.js → LastPeriod-75052a7c.js} +1 -1
- package/build/esm/LeadGenCore-2127f371.js +5092 -0
- package/build/esm/{MobileBottomNavigationIcon-a2272251.js → MobileBottomNavigationIcon-46dc9509.js} +3 -3
- package/build/esm/{SiteWideBanner-50495984.js → SiteWideBanner-60f7f4d5.js} +13 -13
- package/build/esm/{Spinner-4149d426.js → Spinner-bb08205e.js} +1 -1
- package/build/esm/{WhatsApp-257bb520.js → WhatsApp-b8d3f09e.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +56 -51
- package/build/esm/babyGrowth.js +85 -85
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +21 -21
- package/build/esm/careBookingSearchBar.js +13 -13
- package/build/esm/careBookingSearchBarV2.js +18 -18
- package/build/esm/components/atoms/datePickerV2/Calendar.d.ts +6 -0
- package/build/esm/components/atoms/datePickerV2/DatePickerInput.d.ts +20 -0
- package/build/esm/components/atoms/datePickerV2/helpers.d.ts +33 -0
- package/build/esm/components/atoms/datePickerV2/index.d.ts +27 -0
- package/build/esm/components/atoms/datePickerV2/index.styled.d.ts +31 -0
- package/build/esm/components/atoms/index.d.ts +1 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +2 -1
- package/build/esm/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +1 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/helpers.d.ts +1 -0
- package/build/esm/components/molecules/healthTools/common.d.ts +18 -0
- package/build/esm/components/molecules/healthTools/components/healthToolDatePicker/index.d.ts +20 -0
- package/build/esm/components/molecules/index.d.ts +1 -1
- package/build/esm/components.js +114 -109
- package/build/esm/{constants-02901273.js → constants-058c8ed7.js} +1 -1
- package/build/esm/{constants-e9074c24.js → constants-c6ab232c.js} +1 -1
- package/build/esm/constants.js +2 -2
- package/build/esm/constantsRiskScreener.js +1 -1
- package/build/esm/constantsSite.js +1 -1
- package/build/esm/{core-23212ef2.js → core-0c80d693.js} +1 -1
- package/build/esm/{dataTransform-778cd3ef.js → dataTransform-431891d1.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-51c6ab7f.js → editor-1cbb58e4.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/esm/embeddedHeathToolCards_babyPoop.js +21 -21
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +28 -23
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +40 -34
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +28 -28
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +28 -23
- package/build/esm/embeddedHeathToolCards_helpers.js +2 -7
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +28 -23
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +33 -28
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{healthTools-6202ae58.js → healthTools-1a573942.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +49 -44
- package/build/esm/helpers-a6471d83.js +31 -0
- package/build/esm/hooks.js +14 -14
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-f9634c10.js → index-03147090.js} +21 -23
- package/build/esm/{index-b78e3b4c.js → index-10ada16a.js} +22 -22
- package/build/esm/{index-cf5f1a4a.js → index-1460a253.js} +1 -1
- package/build/esm/{index-904ce25d.js → index-1a391ff2.js} +4 -4
- package/build/esm/{index-52f91d02.js → index-1ca19789.js} +7 -7
- package/build/esm/{index-36934467.js → index-1d90703e.js} +3 -3
- package/build/esm/{index-c258af48.js → index-1e96320a.js} +2 -2
- package/build/esm/{index-658e788d.js → index-20a46b41.js} +6 -6
- package/build/esm/index-2165908f.js +543 -0
- package/build/esm/{index-c8ecca0a.js → index-21966f8e.js} +3 -3
- package/build/esm/{index-5375eb4d.js → index-2b318cda.js} +3 -3
- package/build/esm/{index-91cb311b.js → index-2ee7e680.js} +2 -2
- package/build/esm/{index-72ef4bd7.js → index-305d81b8.js} +2 -2
- package/build/esm/{index-794f95cb.js → index-3323e2a1.js} +2 -2
- package/build/esm/{index-c917904f.js → index-352ee637.js} +3 -3
- package/build/esm/{index-f649b51f.js → index-37071ed8.js} +6 -6
- package/build/esm/{index-73384536.js → index-37211c4e.js} +31 -31
- package/build/esm/{index-9d2e6a1f.js → index-375dffbe.js} +2 -2
- package/build/esm/{index-cdf32b80.js → index-43aecfbd.js} +21 -23
- package/build/esm/{index-70718aa4.js → index-4752084c.js} +9 -9
- package/build/esm/{index-762f57c9.js → index-4968973d.js} +24 -24
- package/build/esm/{index-b9588ecd.js → index-49ae0d29.js} +5 -5
- package/build/esm/{index-1451adb4.js → index-58681afc.js} +3 -3
- package/build/esm/{index-db63bfc2.js → index-5a4be252.js} +1 -1
- package/build/esm/{index-9511e069.js → index-5b4d2f0a.js} +21 -21
- package/build/esm/{index-513bf860.js → index-5f34101d.js} +2 -2
- package/build/esm/{index-f0561210.js → index-5f8466a2.js} +1 -1
- package/build/esm/{index-d0b3a132.js → index-667379d3.js} +7 -7
- package/build/esm/{index-e7c2cf9a.js → index-6e7b8fb6.js} +2 -2
- package/build/esm/{index-1de2c3cc.js → index-6f96d8c0.js} +34 -34
- package/build/esm/{index-10f17701.js → index-74f45300.js} +1 -1
- package/build/esm/{index-351ff3dd.js → index-752a2bb8.js} +19 -19
- package/build/esm/{index-23a4bd81.js → index-7a1c7bc0.js} +15 -15
- package/build/esm/{index-6e1ffe82.js → index-7c51542a.js} +31 -31
- package/build/esm/{index-12e7060b.js → index-7c66a6cc.js} +6 -6
- package/build/esm/{index-346d44b5.js → index-7f2fcae2.js} +1 -1
- package/build/esm/{index-e98cb26c.js → index-82ebb108.js} +14 -14
- package/build/esm/{index-b9d6ae82.js → index-83d2d536.js} +16 -16
- package/build/esm/{index-50bc9f66.js → index-88bd60e5.js} +22 -24
- package/build/esm/{index-de82b7bf.js → index-8f5c5b27.js} +17 -17
- package/build/esm/{index-9cefd633.js → index-8f7915d2.js} +1 -1
- package/build/esm/{index-c93f4d6c.js → index-93f917bc.js} +13 -13
- package/build/esm/{index-8fb32013.js → index-95fbd496.js} +2 -2
- package/build/esm/{index-bfd2a793.js → index-9643f840.js} +3 -3
- package/build/esm/{index-9c66d982.js → index-982f302c.js} +2 -2
- package/build/esm/index-986b3ece.js +55 -0
- package/build/esm/{index-e37aaa01.js → index-98d4687c.js} +2 -2
- package/build/esm/{index-1184f030.js → index-99ee62b7.js} +2 -2
- package/build/esm/{index-8a909dde.js → index-9afb69b1.js} +2 -2
- package/build/esm/{index-9199f963.js → index-9b067333.js} +17 -17
- package/build/esm/{index-4e22812e.js → index-9b3f7d0c.js} +5 -5
- package/build/esm/{index-a71e34e6.js → index-9cc99840.js} +3 -3
- package/build/esm/{index-f84cb48a.js → index-a3034c8c.js} +18 -18
- package/build/esm/{index-21bd3377.js → index-a32c6d8d.js} +33 -61
- package/build/esm/{index-79d58f00.js → index-b1448016.js} +7 -7
- package/build/esm/{index-908862a2.js → index-b29d0926.js} +2 -2
- package/build/esm/{index-c4856541.js → index-b46584bd.js} +14 -14
- package/build/esm/{index-f99307d8.js → index-b6eeafd8.js} +2 -2
- package/build/esm/{index-5cf34dcc.js → index-ba528b67.js} +2 -2
- package/build/esm/{index-bedafd4d.js → index-bf573425.js} +40 -26
- package/build/esm/{index-18e92ec2.js → index-c87e1d3b.js} +16 -16
- package/build/esm/{index-671b3b3f.js → index-cc9b7f96.js} +2 -2
- package/build/esm/{index-20210b3b.js → index-d1e23dcd.js} +20 -20
- package/build/esm/{index-353fb019.js → index-d7f80b6e.js} +13 -13
- package/build/esm/{index-52a87433.js → index-da76994a.js} +12 -12
- package/build/esm/{index-c257c93a.js → index-e40d2a0a.js} +2 -2
- package/build/esm/{index-bb049c6d.js → index-e7ec4460.js} +3 -3
- package/build/esm/{index-146c3b8f.js → index-edfbe3e3.js} +29 -29
- package/build/esm/{index-9ca62747.js → index-ee0713fb.js} +5 -5
- package/build/esm/{index-f1fbfcc4.js → index-f3ec1f03.js} +1 -1
- package/build/esm/{index-e6ca570a.js → index-f75bd9d8.js} +13 -13
- package/build/esm/{index-8beb6254.js → index-fcacaa71.js} +16 -16
- package/build/esm/{index-6271239c.js → index-fcc0cebc.js} +7 -7
- package/build/esm/index.js +133 -128
- package/build/esm/{labelSorting-2876ebd7.js → labelSorting-f6295f21.js} +4 -4
- package/build/esm/lead/LeadGenCore.d.ts +75 -0
- package/build/esm/lead/LeadGenSlim.d.ts +33 -0
- package/build/esm/lead/LeadGenTranslationContext.d.ts +4 -1
- package/build/esm/lead/i18n/index.d.ts +1 -1
- package/build/esm/lead/i18n/leadTranslations.d.ts +6 -0
- package/build/esm/lead/index.d.ts +2 -40
- package/build/esm/lead.js +104 -5135
- package/build/esm/leadSlim.d.ts +1 -0
- package/build/esm/leadSlim.js +74 -0
- package/build/esm/{logoIcon-d86d3e4e.js → logoIcon-691bb5ef.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc.js +17 -17
- package/build/esm/miscGetDynamicHealthTool.js +3 -3
- package/build/esm/miscGetSocialList.js +6 -6
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +87 -82
- package/build/esm/moleculesArticleCard.js +5 -5
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +50 -50
- package/build/esm/navigationLogoutPopup.js +10 -10
- package/build/esm/navigationProfileButton.js +26 -26
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +63 -63
- package/build/esm/{post-79dbcaf8.js → post-1a68c2c7.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2/api/index.d.ts +4 -2
- package/build/esm/ssoV2/index.d.ts +10 -1
- package/build/esm/ssoV2/phoneVerifyConflict.d.ts +18 -0
- package/build/esm/ssoV2/ssoDismiss.d.ts +18 -0
- package/build/esm/ssoV2/ssoStateManager/store.d.ts +17 -0
- package/build/esm/ssoV2.js +155 -66
- package/build/esm/{store-e8671705.js → store-b807e0fd.js} +53 -35
- package/build/esm/subot/index.d.ts +1 -0
- package/build/esm/subot/subotInline/index.d.ts +1 -1
- package/build/esm/subot/subotInline/subotInline.config.d.ts +3 -0
- package/build/esm/subot/subotInlineRevamp/context.d.ts +1 -1
- package/build/esm/subot/subotInlineRevamp/types.d.ts +12 -0
- package/build/esm/subot/subotInlineRevamp/utils.d.ts +21 -1
- package/build/esm/subot.js +324 -141
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-ad00aaa6.js → surveyThankyouCard-e59cfa17.js} +5 -5
- package/build/esm/together/interfaces/types.d.ts +5 -0
- package/build/esm/together.js +57 -57
- package/build/esm/togetherApiUtils.js +6 -6
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +6 -6
- package/build/esm/togetherMolecules.js +51 -51
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +13 -13
- package/build/esm/togetherMoleculesProfileDetail.js +39 -39
- package/build/esm/togetherOrganisms.js +50 -50
- package/build/esm/togetherRichTextEditor.js +20 -20
- package/build/esm/togetherShareBox.js +12 -12
- package/build/esm/{transform-e6b60164.js → transform-7acc6abd.js} +40 -45
- package/build/esm/{translationsProvider-2251f83e.js → translationsProvider-5922e853.js} +1 -1
- package/build/esm/{treePopoverMenu-44ecfb21.js → treePopoverMenu-fb7c6e1c.js} +18 -18
- package/build/esm/{types-7eaccf70.js → types-7c9f01ea.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCartCareService-2561ea09.js → useCartCareService-24b7cba7.js} +1 -1
- package/build/esm/{useHealthToolCache-48928f66.js → useHealthToolCache-e48938a1.js} +1 -1
- package/build/esm/{usePhoneValidator-89435b8d.js → usePhoneValidator-ed7a0166.js} +4 -4
- package/build/esm/{usePlacesAutocomplete-476d8fe2.js → usePlacesAutocomplete-37bae726.js} +1 -1
- package/build/esm/{useResolvedCaptureUrls-f065f5ae.js → useResolvedCaptureUrls-550aaa14.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-e4361e09.js → utils-09f39b45.js} +2 -2
- package/build/esm/{utils-d75af55c.js → utils-3cb4f1db.js} +1 -1
- package/build/esm/{utils-f2c8141d.js → utils-3f1516aa.js} +4 -4
- package/build/esm/{utils-e6d6df3b.js → utils-dbfd1b52.js} +5 -5
- package/build/esm/{utils-4aeb889a.js → utils-e9300dc8.js} +4 -4
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +22 -22
- package/build/gAssets.js +1 -1
- package/build/{healthTools-ca7a5d43.js → healthTools-fed3efef.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +49 -44
- package/build/helpers-81fb2423.js +38 -0
- package/build/hooks.js +14 -14
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-a5a79577.js → index-007f5d82.js} +5 -5
- package/build/{index-273307da.js → index-0813b8f2.js} +33 -61
- package/build/{index-f0175001.js → index-082b3975.js} +2 -2
- package/build/{index-5dde95b0.js → index-12ef20fe.js} +2 -2
- package/build/{index-8fae2b8f.js → index-13776efe.js} +2 -2
- package/build/{index-d19a4627.js → index-14d167b4.js} +3 -3
- package/build/{index-a010b836.js → index-161f0140.js} +3 -3
- package/build/{index-b086dd2b.js → index-1df181e6.js} +14 -14
- package/build/{index-912a45b4.js → index-1faf8a38.js} +22 -24
- package/build/{index-2b99975a.js → index-2360480b.js} +13 -13
- package/build/{index-40b30c51.js → index-2723cc10.js} +1 -1
- package/build/{index-2191645e.js → index-28f1b91b.js} +24 -24
- package/build/{index-2add1c1e.js → index-2cfb5742.js} +3 -3
- package/build/{index-5a67a69a.js → index-2d2d9342.js} +21 -23
- package/build/{index-1e7bd5b2.js → index-35284c09.js} +2 -2
- package/build/{index-df9d7260.js → index-383dae53.js} +31 -31
- package/build/{index-421ae364.js → index-397b7318.js} +21 -23
- package/build/{index-742f546c.js → index-3fbcaaf5.js} +2 -2
- package/build/{index-20d85026.js → index-40afb815.js} +7 -7
- package/build/index-414ed8d8.js +61 -0
- package/build/{index-0ef6baaf.js → index-491f8081.js} +1 -1
- package/build/{index-1623c4f5.js → index-4e2aae2d.js} +2 -2
- package/build/{index-1aef3f36.js → index-4ee38cc0.js} +4 -4
- package/build/{index-18a9d890.js → index-59f5c5b7.js} +34 -34
- package/build/{index-9ed771ec.js → index-5be65b58.js} +14 -14
- package/build/{index-ee069894.js → index-5d830acf.js} +7 -7
- package/build/{index-afdd332d.js → index-613b48f3.js} +3 -3
- package/build/{index-849069c2.js → index-61986bbe.js} +13 -13
- package/build/{index-1a367679.js → index-61c767ec.js} +14 -14
- package/build/{index-177d6b04.js → index-6438d592.js} +40 -25
- package/build/{index-cf6f3108.js → index-6cc722f1.js} +1 -1
- package/build/{index-c0cfd756.js → index-75051daa.js} +12 -12
- package/build/{index-b388c399.js → index-76638714.js} +8 -8
- package/build/{index-821aaa28.js → index-7e4ae1d5.js} +1 -1
- package/build/{index-5c375c62.js → index-7ead871b.js} +16 -16
- package/build/index-80a16668.js +574 -0
- package/build/{index-87e052af.js → index-8250b5c5.js} +2 -2
- package/build/{index-12dabf7b.js → index-85eed114.js} +7 -7
- package/build/{index-2087185c.js → index-87e2ba44.js} +16 -16
- package/build/{index-771c2016.js → index-94c2f78a.js} +16 -16
- package/build/{index-f329e7f7.js → index-94c84988.js} +1 -1
- package/build/{index-01da09ab.js → index-99135b1a.js} +5 -5
- package/build/{index-1d81a574.js → index-9978b339.js} +6 -6
- package/build/{index-0997422b.js → index-9b78baac.js} +2 -2
- package/build/{index-a7298f68.js → index-a15abb1a.js} +6 -6
- package/build/{index-91d7b888.js → index-a261aaef.js} +22 -22
- package/build/{index-14a9eb86.js → index-a426faf5.js} +2 -2
- package/build/{index-9ec0cffe.js → index-a4918c9e.js} +1 -1
- package/build/{index-2f3e9748.js → index-a6a834b6.js} +2 -2
- package/build/{index-f53241d8.js → index-a75553d3.js} +21 -21
- package/build/{index-6125b213.js → index-a8c61084.js} +2 -2
- package/build/{index-43e702aa.js → index-aa3522ac.js} +5 -5
- package/build/{index-95e097b6.js → index-bb1761f4.js} +2 -2
- package/build/{index-075c7c9c.js → index-c0850e10.js} +2 -2
- package/build/{index-d32e1388.js → index-c4efa0fb.js} +3 -3
- package/build/{index-523fb746.js → index-c9c3f182.js} +2 -2
- package/build/{index-4e5bdbe6.js → index-cd2137ca.js} +15 -15
- package/build/{index-9fd967d1.js → index-cead536f.js} +2 -2
- package/build/{index-0f7ba91c.js → index-d254892d.js} +31 -31
- package/build/{index-bcbe1933.js → index-d514cd7c.js} +18 -18
- package/build/{index-bf9f580e.js → index-dce41ebb.js} +30 -30
- package/build/{index-135d8ff2.js → index-dfc8560a.js} +1 -1
- package/build/{index-597603d4.js → index-e03e97d6.js} +2 -2
- package/build/{index-32d4bfd2.js → index-e18fe0bf.js} +20 -20
- package/build/{index-e933aea7.js → index-e2239e04.js} +3 -3
- package/build/{index-b4f99103.js → index-e724ceb0.js} +17 -17
- package/build/{index-226b48ab.js → index-e873bcc0.js} +9 -9
- package/build/{index-926ac7ab.js → index-eb7a3d3f.js} +3 -3
- package/build/{index-85558956.js → index-ebb5801e.js} +7 -7
- package/build/{index-07f2c258.js → index-f484a89e.js} +17 -17
- package/build/{index-b2535512.js → index-f5bae7dd.js} +3 -3
- package/build/{index-1063ece9.js → index-fe6995a7.js} +2 -2
- package/build/{index-23abdc72.js → index-ffac1054.js} +20 -20
- package/build/index.js +234 -220
- package/build/{labelSorting-a219f387.js → labelSorting-9a03f481.js} +4 -4
- package/build/lead/LeadGenCore.d.ts +75 -0
- package/build/lead/LeadGenSlim.d.ts +33 -0
- package/build/lead/LeadGenTranslationContext.d.ts +4 -1
- package/build/lead/i18n/index.d.ts +1 -1
- package/build/lead/i18n/leadTranslations.d.ts +6 -0
- package/build/lead/index.d.ts +2 -40
- package/build/lead.js +166 -5217
- package/build/leadSlim.d.ts +1 -0
- package/build/leadSlim.js +82 -0
- package/build/{logoIcon-fc4f478b.js → logoIcon-bfd33227.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc.js +17 -17
- package/build/miscGetDynamicHealthTool.js +3 -3
- package/build/miscGetSocialList.js +6 -6
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +92 -84
- package/build/moleculesArticleCard.js +5 -5
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +50 -50
- package/build/navigationLogoutPopup.js +10 -10
- package/build/navigationProfileButton.js +26 -26
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +63 -63
- package/build/{post-1cc3827e.js → post-b052490d.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/index.d.ts +4 -2
- package/build/ssoV2/index.d.ts +10 -1
- package/build/ssoV2/phoneVerifyConflict.d.ts +18 -0
- package/build/ssoV2/ssoDismiss.d.ts +18 -0
- package/build/ssoV2/ssoStateManager/store.d.ts +17 -0
- package/build/ssoV2.js +153 -64
- package/build/{store-d844608d.js → store-f00177a2.js} +53 -35
- package/build/subot/index.d.ts +1 -0
- package/build/subot/subotInline/index.d.ts +1 -1
- package/build/subot/subotInline/subotInline.config.d.ts +3 -0
- package/build/subot/subotInlineRevamp/context.d.ts +1 -1
- package/build/subot/subotInlineRevamp/types.d.ts +12 -0
- package/build/subot/subotInlineRevamp/utils.d.ts +21 -1
- package/build/subot.js +329 -140
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-1d8cf859.js → surveyThankyouCard-892e0a56.js} +5 -5
- package/build/together/interfaces/types.d.ts +5 -0
- package/build/together.js +57 -57
- package/build/togetherApiUtils.js +6 -6
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +6 -6
- package/build/togetherMolecules.js +51 -51
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +13 -13
- package/build/togetherMoleculesProfileDetail.js +39 -39
- package/build/togetherOrganisms.js +50 -50
- package/build/togetherRichTextEditor.js +20 -20
- package/build/togetherShareBox.js +12 -12
- package/build/{transform-16f1f623.js → transform-66b0fec5.js} +40 -47
- package/build/{translationsProvider-7f20f84d.js → translationsProvider-a0416eb0.js} +1 -1
- package/build/{treePopoverMenu-7d5203c4.js → treePopoverMenu-836e71ef.js} +18 -18
- package/build/{types-5a399b55.js → types-8defdc84.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCartCareService-3a922f59.js → useCartCareService-07b90a0a.js} +1 -1
- package/build/{useHealthToolCache-80115703.js → useHealthToolCache-943c5870.js} +1 -1
- package/build/{usePhoneValidator-a1c693c4.js → usePhoneValidator-8ee4076b.js} +4 -4
- package/build/{usePlacesAutocomplete-f33a811e.js → usePlacesAutocomplete-b29c04d3.js} +1 -1
- package/build/{useResolvedCaptureUrls-dd10e0e8.js → useResolvedCaptureUrls-d87898c2.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-0ee3e792.js → utils-383efe03.js} +4 -4
- package/build/{utils-b500bd16.js → utils-41840b72.js} +1 -1
- package/build/{utils-1aa31278.js → utils-8d8065cf.js} +2 -2
- package/build/{utils-ca6cc1e2.js → utils-a9f03361.js} +4 -4
- package/build/{utils-260db2f3.js → utils-ab0a0aba.js} +5 -5
- package/build/vaccination.js +21 -21
- package/package.json +5 -7
- /package/build/{BMI_BOYS.percentile.monthly-7a335916.js → BMI_BOYS.percentile.monthly-d5b25ed2.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-8c4fef13.js → BMI_BOYS.percentile.weekly-2194c963.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-b265c416.js → BMI_BOYS.percentile.yearly-20e6a318.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-889bc073.js → BMI_BOYS.zscore.monthly-d11450a3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-9cbce300.js → BMI_BOYS.zscore.weekly-55bb6fc5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-18e05e84.js → BMI_BOYS.zscore.yearly-a89701bf.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-32435a09.js → BMI_GIRLS.percentile.monthly-582b2303.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d7dc3e09.js → BMI_GIRLS.percentile.weekly-c356dd16.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-383398db.js → BMI_GIRLS.percentile.yearly-01dc5052.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-1afc1815.js → BMI_GIRLS.zscore.monthly-038e5c01.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-996e85c6.js → BMI_GIRLS.zscore.weekly-c4715ae5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-48121995.js → BMI_GIRLS.zscore.yearly-543c4b30.js} +0 -0
- /package/build/{ChevronDown-cfaa5f37.js → ChevronDown-bfa64729.js} +0 -0
- /package/build/{Google-ca3ed617.js → Google-d2dacf90.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-69c2b1b5.js → HEAD CIRCUM_BOYS.percentile.monthly-7a455df3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-845e68e8.js → HEAD CIRCUM_BOYS.percentile.weekly-f3549ff3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-593a9857.js → HEAD CIRCUM_BOYS.percentile.yearly-a2582632.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-dd1ac392.js → HEAD CIRCUM_BOYS.zscore.monthly-1fd3f1f1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9dd699dc.js → HEAD CIRCUM_BOYS.zscore.weekly-e8cf9d4c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0d4ebda7.js → HEAD CIRCUM_BOYS.zscore.yearly-1d8b0759.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-026b4b65.js → HEAD CIRCUM_GIRLS.percentile.monthly-bfd89c62.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-45672230.js → HEAD CIRCUM_GIRLS.percentile.weekly-9e77f8a3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-bce812ad.js → HEAD CIRCUM_GIRLS.percentile.yearly-5607748b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-24394b6e.js → HEAD CIRCUM_GIRLS.zscore.monthly-ba03b259.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-7f504018.js → HEAD CIRCUM_GIRLS.zscore.weekly-9c5751f2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-4733c33d.js → HEAD CIRCUM_GIRLS.zscore.yearly-9f8581fb.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-3d7f65c9.js → HEIGHT_BOYS.percentile.monthly-dd5b6c36.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-5439e48b.js → HEIGHT_BOYS.percentile.weekly-c963498d.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-c203bed3.js → HEIGHT_BOYS.percentile.yearly-71db60ad.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-8271f5c8.js → HEIGHT_BOYS.zscore.monthly-ca21ad98.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-bfba099e.js → HEIGHT_BOYS.zscore.weekly-619d75de.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-52dbe5a8.js → HEIGHT_BOYS.zscore.yearly-f0f4e7fb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-1c8181d0.js → HEIGHT_GIRLS.percentile.monthly-82c67e7c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-f079f13e.js → HEIGHT_GIRLS.percentile.weekly-d750b7c0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-d266800c.js → HEIGHT_GIRLS.percentile.yearly-b2010713.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-41ca67ef.js → HEIGHT_GIRLS.zscore.monthly-809a3759.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-e48478f0.js → HEIGHT_GIRLS.zscore.weekly-d680fc04.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-793193e2.js → HEIGHT_GIRLS.zscore.yearly-d94f9914.js} +0 -0
- /package/build/{Visible-e6fd31fe.js → Visible-81451213.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-539260bf.js → WEIGHT_BOYS.percentile.monthly-26d9a614.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-6399c894.js → WEIGHT_BOYS.percentile.weekly-1291f192.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-0b4506a0.js → WEIGHT_BOYS.percentile.yearly-16385aa5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-b02535fc.js → WEIGHT_BOYS.zscore.monthly-976d2fb5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-6a440e5e.js → WEIGHT_BOYS.zscore.weekly-a96b3de6.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-5bdd7652.js → WEIGHT_BOYS.zscore.yearly-4a747c4b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-544b48b4.js → WEIGHT_GIRLS.percentile.monthly-3f1459ad.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-2f89e0a2.js → WEIGHT_GIRLS.percentile.weekly-7161b3b3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-e1fee70f.js → WEIGHT_GIRLS.percentile.yearly-4bf3195b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-b255d997.js → WEIGHT_GIRLS.zscore.monthly-e684687d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-5bc5ee2b.js → WEIGHT_GIRLS.zscore.weekly-c4585e17.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-969f7d88.js → WEIGHT_GIRLS.zscore.yearly-7778db33.js} +0 -0
- /package/build/{ageGenerate-70274de8.js → ageGenerate-9c076eca.js} +0 -0
- /package/build/{animation-545c3845.js → animation-d6a10c90.js} +0 -0
- /package/build/{constants-e2534f67.js → constants-4b6b5cad.js} +0 -0
- /package/build/{constants-5c34eb19.js → constants-94570c7f.js} +0 -0
- /package/build/{constants-879264ec.js → constants-bb0acb02.js} +0 -0
- /package/build/{context-1ed1d238.js → context-92b7ac0c.js} +0 -0
- /package/build/{dataTransform-ccd3d254.js → dataTransform-d851865c.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-0b5b180c.js → BMI_BOYS.percentile.monthly-262afa98.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b070fd21.js → BMI_BOYS.percentile.weekly-576d761a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-8f711651.js → BMI_BOYS.percentile.yearly-dca336d5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-a4e99b76.js → BMI_BOYS.zscore.monthly-c7e992db.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-8ce08c86.js → BMI_BOYS.zscore.weekly-0158a1ab.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-9f487efb.js → BMI_BOYS.zscore.yearly-870ff855.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-20d86c35.js → BMI_GIRLS.percentile.monthly-e26a0420.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-be2e5522.js → BMI_GIRLS.percentile.weekly-258e8b8e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-ab0a7178.js → BMI_GIRLS.percentile.yearly-4254e4f8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-0e994dff.js → BMI_GIRLS.zscore.monthly-67752536.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-b3c834c6.js → BMI_GIRLS.zscore.weekly-60405074.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e7c1d220.js → BMI_GIRLS.zscore.yearly-42241555.js} +0 -0
- /package/build/esm/{ChevronDown-cf7a70be.js → ChevronDown-cd89130e.js} +0 -0
- /package/build/esm/{Google-6f30a87a.js → Google-e5912197.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a018ba09.js → HEAD CIRCUM_BOYS.percentile.monthly-da7e82a0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d0888d5f.js → HEAD CIRCUM_BOYS.percentile.weekly-1897b293.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f6049e93.js → HEAD CIRCUM_BOYS.percentile.yearly-361fc2bb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4c3676e5.js → HEAD CIRCUM_BOYS.zscore.monthly-170700c4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8d968dc3.js → HEAD CIRCUM_BOYS.zscore.weekly-82ddcaca.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1ad17b59.js → HEAD CIRCUM_BOYS.zscore.yearly-29446f65.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-00188cf9.js → HEAD CIRCUM_GIRLS.percentile.monthly-6ac079fc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-7b9cef12.js → HEAD CIRCUM_GIRLS.percentile.weekly-da040d52.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a7534ab8.js → HEAD CIRCUM_GIRLS.percentile.yearly-16e4363b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7a014836.js → HEAD CIRCUM_GIRLS.zscore.monthly-1b1b2e8c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f7bb13a4.js → HEAD CIRCUM_GIRLS.zscore.weekly-faeb2f8d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-1c571a77.js → HEAD CIRCUM_GIRLS.zscore.yearly-e2aeca6d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-3f81f2e6.js → HEIGHT_BOYS.percentile.monthly-e6f44c7b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e1c7b47e.js → HEIGHT_BOYS.percentile.weekly-485eef27.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-32a74cc8.js → HEIGHT_BOYS.percentile.yearly-55eb392c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-afac958e.js → HEIGHT_BOYS.zscore.monthly-e47dc6da.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b683490f.js → HEIGHT_BOYS.zscore.weekly-ff14eeec.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3bc5cfcd.js → HEIGHT_BOYS.zscore.yearly-1257d2a9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-1555c683.js → HEIGHT_GIRLS.percentile.monthly-3374a801.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-ac266729.js → HEIGHT_GIRLS.percentile.weekly-07136ca4.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-b2a33450.js → HEIGHT_GIRLS.percentile.yearly-d016405c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c59d7023.js → HEIGHT_GIRLS.zscore.monthly-cc18f4b0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3bc0b400.js → HEIGHT_GIRLS.zscore.weekly-551931f8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-11ebfac2.js → HEIGHT_GIRLS.zscore.yearly-e728bd13.js} +0 -0
- /package/build/esm/{Visible-9531b61a.js → Visible-995e42c6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-a56b2d16.js → WEIGHT_BOYS.percentile.monthly-d66be6bb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-c8549ae9.js → WEIGHT_BOYS.percentile.weekly-7f424ab1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-21b55b63.js → WEIGHT_BOYS.percentile.yearly-73859429.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-f86871d6.js → WEIGHT_BOYS.zscore.monthly-47f71992.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5af8c3a2.js → WEIGHT_BOYS.zscore.weekly-43638bc0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-86a5dc0a.js → WEIGHT_BOYS.zscore.yearly-55294f25.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a7bad001.js → WEIGHT_GIRLS.percentile.monthly-95a392f2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-03afc028.js → WEIGHT_GIRLS.percentile.weekly-3e44632a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-02eb5aaf.js → WEIGHT_GIRLS.percentile.yearly-99732e7c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-23b8102a.js → WEIGHT_GIRLS.zscore.monthly-7c28ac4e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-387726b9.js → WEIGHT_GIRLS.zscore.weekly-cb0f9a64.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-8e2739a7.js → WEIGHT_GIRLS.zscore.yearly-e238310e.js} +0 -0
- /package/build/esm/{ageGenerate-c1872d67.js → ageGenerate-c1c363b1.js} +0 -0
- /package/build/esm/{animation-ac253c4a.js → animation-2790b4fe.js} +0 -0
- /package/build/esm/{constants-5f6b363c.js → constants-1f65f7ef.js} +0 -0
- /package/build/esm/{constants-3d1898d5.js → constants-93f3016a.js} +0 -0
- /package/build/esm/{constants-2f160865.js → constants-fb704095.js} +0 -0
- /package/build/esm/{context-d599e7dc.js → context-ecf40da4.js} +0 -0
- /package/build/esm/{dataTransform-5a962134.js → dataTransform-68613f05.js} +0 -0
- /package/build/esm/{index-62f1463f.js → index-0cff1a1e.js} +0 -0
- /package/build/esm/{index-407dcda5.js → index-5eb29e82.js} +0 -0
- /package/build/esm/{index-53bd0bdf.js → index-5fdd2f20.js} +0 -0
- /package/build/esm/{index-d7c385e9.js → index-689c12da.js} +0 -0
- /package/build/esm/{index-47ba3e18.js → index-83c2d1ee.js} +0 -0
- /package/build/esm/{index-1c980507.js → index-877ea076.js} +0 -0
- /package/build/esm/{index-4477435c.js → index-91d53453.js} +0 -0
- /package/build/esm/{index-32875b05.js → index-c854dd10.js} +0 -0
- /package/build/esm/{index-21130e1b.js → index-f8b70f99.js} +0 -0
- /package/build/esm/{index.styles-b0090ff0.js → index.styles-a535325a.js} +0 -0
- /package/build/esm/{localizeNumberFormat-1f1e811d.js → localizeNumberFormat-f1fb6717.js} +0 -0
- /package/build/esm/{number-107806ff.js → number-8894e65c.js} +0 -0
- /package/build/esm/{paths-1cfcec63.js → paths-10dbd4eb.js} +0 -0
- /package/build/esm/{routing-ea8d670a.js → routing-2e624a17.js} +0 -0
- /package/build/esm/{shared-b3ef7840.js → shared-44b78446.js} +0 -0
- /package/build/esm/{translationsContext-76fa891e.js → translationsContext-8df9c8dc.js} +0 -0
- /package/build/esm/{tslib.es6-f8676dd9.js → tslib.es6-45498420.js} +0 -0
- /package/build/esm/{types-5434e92d.js → types-85ce45e7.js} +0 -0
- /package/build/esm/{useImageAspectRatio-3e071148.js → useImageAspectRatio-6007719f.js} +0 -0
- /package/build/esm/{useOutsideClick-aec33dda.js → useOutsideClick-f2473cf7.js} +0 -0
- /package/build/esm/{useScrollbarSize-e34ea237.js → useScrollbarSize-94c0b85d.js} +0 -0
- /package/build/esm/{useUniqueId-700011ed.js → useUniqueId-3d63fffd.js} +0 -0
- /package/build/esm/{utils-d418c7c0.js → utils-470881a4.js} +0 -0
- /package/build/esm/{utils-835c2ec3.js → utils-b98359e5.js} +0 -0
- /package/build/{index-f52bbbfa.js → index-075da3fe.js} +0 -0
- /package/build/{index-3511d6a1.js → index-193bf832.js} +0 -0
- /package/build/{index-6668a83f.js → index-262ee0e1.js} +0 -0
- /package/build/{index-e1172b9b.js → index-3c48b84c.js} +0 -0
- /package/build/{index-11bf8414.js → index-3e1adb93.js} +0 -0
- /package/build/{index-72a354b2.js → index-7cc165f3.js} +0 -0
- /package/build/{index-688d1f65.js → index-8e89baaf.js} +0 -0
- /package/build/{index-f95654ce.js → index-8f1045ef.js} +0 -0
- /package/build/{index-524d268b.js → index-eeb0c672.js} +0 -0
- /package/build/{index.styles-0b3a8242.js → index.styles-78092dc7.js} +0 -0
- /package/build/{localizeNumberFormat-44ed977f.js → localizeNumberFormat-0fb90963.js} +0 -0
- /package/build/{number-e6c2753e.js → number-2e2f0f13.js} +0 -0
- /package/build/{paths-25e926f2.js → paths-02660123.js} +0 -0
- /package/build/{routing-12e9d94b.js → routing-74eee274.js} +0 -0
- /package/build/{shared-07989997.js → shared-c2577ee1.js} +0 -0
- /package/build/{translationsContext-3fabf462.js → translationsContext-e3345472.js} +0 -0
- /package/build/{tslib.es6-8606a9a8.js → tslib.es6-c60aa772.js} +0 -0
- /package/build/{types-0ee94296.js → types-ffccd0c4.js} +0 -0
- /package/build/{useImageAspectRatio-7b6f55e8.js → useImageAspectRatio-2033084a.js} +0 -0
- /package/build/{useOutsideClick-eacb034a.js → useOutsideClick-083df983.js} +0 -0
- /package/build/{useScrollbarSize-527836e9.js → useScrollbarSize-67577f25.js} +0 -0
- /package/build/{useUniqueId-064a28fa.js → useUniqueId-d56aa72c.js} +0 -0
- /package/build/{utils-fac8b1d4.js → utils-967402f8.js} +0 -0
- /package/build/{utils-19268855.js → utils-c7ae8544.js} +0 -0
package/build/esm/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-c854dd10.js';
|
|
3
|
+
import { _ as __awaiter, a as __rest } from './tslib.es6-45498420.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-74f45300.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-e9300dc8.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-305d81b8.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-305d81b8.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-877ea076.js';
|
|
17
|
+
import { L as Loading } from './index-9afb69b1.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-470881a4.js';
|
|
21
|
+
import { B as Button } from './index-2b318cda.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-5eb29e82.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-c6ab232c.js';
|
|
28
28
|
import { v4 } from 'uuid';
|
|
29
|
-
import { T as Text } from './index-
|
|
29
|
+
import { T as Text } from './index-3323e2a1.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-752a2bb8.js';
|
|
33
33
|
import '@mantine/dates';
|
|
34
|
-
import './index-
|
|
35
|
-
import './index-
|
|
36
|
-
import './index.styles-
|
|
37
|
-
import './translationsContext-
|
|
34
|
+
import './index-1ca19789.js';
|
|
35
|
+
import './index-91d53453.js';
|
|
36
|
+
import './index.styles-a535325a.js';
|
|
37
|
+
import './translationsContext-8df9c8dc.js';
|
|
38
38
|
import '@mantine/hooks';
|
|
39
|
-
import './index-
|
|
39
|
+
import './index-9cc99840.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-37bae726.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-5481c766.js';
|
|
47
|
+
import { B as Button$1 } from './index-98d4687c.js';
|
|
48
|
+
import { D as Dropdown } from './index-5fdd2f20.js';
|
|
49
|
+
import { u as useSSOV2Store, I as IS_SSOV2_ENABLED } from './store-b807e0fd.js';
|
|
50
|
+
import { g as getURLwithSSOTracking } from './utils-3f1516aa.js';
|
|
51
|
+
import { T as TextArea } from './index-58681afc.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-f75bd9d8.js';
|
|
55
|
+
import { H as Heading$1 } from './index-375dffbe.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-9643f840.js';
|
|
63
|
+
import './WhatsApp-b8d3f09e.js';
|
|
64
|
+
import './Spinner-bb08205e.js';
|
|
65
|
+
import './index-5a4be252.js';
|
|
66
|
+
import './shared-44b78446.js';
|
|
67
|
+
import './index-cc9b7f96.js';
|
|
68
68
|
import '@mantine/carousel';
|
|
69
|
-
import './useUniqueId-
|
|
69
|
+
import './useUniqueId-3d63fffd.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-bf573425.js';
|
|
79
|
+
import './routing-2e624a17.js';
|
|
80
|
+
import './healthTools-1a573942.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 };
|