@hhgtech/hhg-components 1.29.405 → 1.29.407-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-926c7a26.js → InputDate-4dffce63.js} +3 -3
- package/build/{LastPeriod-2c6a248a.js → LastPeriod-740882ee.js} +1 -1
- package/build/{MobileBottomNavigationIcon-cb2c6d45.js → MobileBottomNavigationIcon-25f2f6e6.js} +3 -3
- package/build/{Spinner-54ccb044.js → Spinner-5ec49888.js} +1 -1
- package/build/{WhatsApp-b4917e75.js → WhatsApp-30b60676.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +48 -48
- package/build/babyGrowth.js +83 -83
- package/build/cache.js +2 -2
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/molecules/impressionTrackingWrapper/index.d.ts +9 -0
- package/build/components.js +97 -97
- package/build/{constants-60697265.js → constants-c02ceb69.js} +1 -1
- package/build/constants.js +3 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-290248c4.js → core-f481838d.js} +1 -1
- package/build/{dataTransform-bee6ab22.js → dataTransform-63011806.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-9b73a9f7.js → editor-5e0d67bf.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/{InputDate-4ab03ef5.js → InputDate-9b1a4f17.js} +3 -3
- package/build/esm/{LastPeriod-6fa2c177.js → LastPeriod-576ad038.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-17b4d024.js → MobileBottomNavigationIcon-76c468a5.js} +3 -3
- package/build/esm/{Spinner-2de4053c.js → Spinner-7c25d326.js} +1 -1
- package/build/esm/{WhatsApp-aea301c2.js → WhatsApp-65e7919a.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +48 -48
- package/build/esm/babyGrowth.js +83 -83
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/molecules/impressionTrackingWrapper/index.d.ts +9 -0
- package/build/esm/components.js +97 -97
- package/build/esm/{constants-32069fe5.js → constants-3ea66179.js} +1 -1
- package/build/esm/constants.js +3 -3
- package/build/esm/constantsDomainLocales.js +1 -1
- package/build/esm/constantsRiskScreener.js +2 -2
- package/build/esm/constantsSite.js +2 -2
- package/build/esm/{core-ef5d28da.js → core-e20eded4.js} +1 -1
- package/build/esm/{dataTransform-c3236da3.js → dataTransform-c24be13e.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-f1bcba79.js → editor-30c684fa.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/footer.js +21 -21
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-92f1412d.js → healthTools-8b678da9.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n-values/id-ID.js +1 -1
- package/build/esm/i18n-values/ms-MY.js +1 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-4817b6fb.js → index-01cd18a9.js} +1 -1
- package/build/esm/{index-1e5324cc.js → index-031a7c4c.js} +2 -2
- package/build/esm/{index-b8c58518.js → index-0e6915c5.js} +2 -2
- package/build/esm/{index-1f23a42d.js → index-148087e8.js} +6 -6
- package/build/esm/{index-5f342fe5.js → index-1764f0ce.js} +1 -1
- package/build/esm/{index-5fc3cc59.js → index-18a922bf.js} +2 -2
- package/build/esm/{index-2b0ae2b6.js → index-1d6ea3f5.js} +2 -2
- package/build/esm/{index-903b4042.js → index-1e57ec38.js} +13 -13
- package/build/esm/{index-4541764a.js → index-28caa5f7.js} +7 -7
- package/build/esm/{index-553fa3bf.js → index-2b57ed65.js} +2 -2
- package/build/esm/{index-1d4236f6.js → index-2f542af7.js} +4 -4
- package/build/esm/{index-f8a0c44a.js → index-32459b5c.js} +6 -6
- package/build/esm/{index-95970813.js → index-32c57f34.js} +17 -17
- package/build/esm/{index-51203f5c.js → index-3703d47e.js} +2 -2
- package/build/esm/{index-7fe6d273.js → index-39247481.js} +1 -1
- package/build/esm/{index-7a70ac70.js → index-39e589eb.js} +16 -16
- package/build/esm/{index-bc24b8a9.js → index-3a335d82.js} +1 -1
- package/build/esm/{index-2b3a4a7e.js → index-3ae3a9de.js} +3 -3
- package/build/esm/{index-9a5acaef.js → index-3c36aefc.js} +16 -16
- package/build/esm/{index-6a0f58a2.js → index-3e01d805.js} +3 -3
- package/build/esm/{index-52583e9e.js → index-3f30aea7.js} +3 -3
- package/build/esm/{index-177b719c.js → index-49d1f753.js} +3 -3
- package/build/esm/{index-8f702423.js → index-54c92982.js} +3 -3
- package/build/esm/{index-25d860e1.js → index-5a46c4db.js} +22 -22
- package/build/esm/{index-7f202a12.js → index-5ac2b7e3.js} +1 -1
- package/build/esm/{index-5233bef3.js → index-5d0bcb5f.js} +16 -16
- package/build/esm/{index-c35193c7.js → index-609ecbd9.js} +1 -1
- package/build/esm/{index-e3c889fc.js → index-691b3c1a.js} +13 -13
- package/build/esm/{index-7f0fb92c.js → index-71310e76.js} +1 -1
- package/build/esm/{index-18e42349.js → index-74d90ae7.js} +21 -21
- package/build/esm/{index-c57832ef.js → index-764f82fd.js} +13 -13
- package/build/esm/{index-b39ea3e4.js → index-76f9ed24.js} +18 -18
- package/build/esm/{index-cc8507de.js → index-7cfc5837.js} +2 -2
- package/build/esm/{index-27938ee5.js → index-7e44db69.js} +32 -32
- package/build/esm/{index-ef1dc9b1.js → index-7fd86ab5.js} +10 -10
- package/build/esm/{index-3814b903.js → index-85766625.js} +2 -2
- package/build/esm/{index-2489691e.js → index-8b3720e2.js} +3 -3
- package/build/esm/{index-92babb26.js → index-8d37e482.js} +2 -2
- package/build/esm/{index-8c558e96.js → index-90c04fa9.js} +2 -2
- package/build/esm/{index-0f575835.js → index-990fbc21.js} +6 -6
- package/build/esm/{index-62ab1e02.js → index-9ccfc9ec.js} +25 -25
- package/build/esm/{index-2ac3e592.js → index-9f910143.js} +11 -11
- package/build/esm/{index-bb371c10.js → index-a98c740c.js} +17 -17
- package/build/esm/{index-87f1d493.js → index-aacfdec7.js} +6 -6
- package/build/esm/{index-7a833f64.js → index-b7b7629d.js} +24 -24
- package/build/esm/{index-78b4e90b.js → index-b9f01e1a.js} +30 -30
- package/build/esm/{index-3970f28a.js → index-c622b6f0.js} +16 -16
- package/build/esm/{index-040c30d3.js → index-c8b79312.js} +5 -5
- package/build/esm/{index-caee75db.js → index-caa52d50.js} +7 -7
- package/build/esm/{index-0eee03a5.js → index-d0547035.js} +15 -15
- package/build/esm/{index-6443a126.js → index-d4f33e65.js} +1 -1
- package/build/esm/{index-9128c48a.js → index-d6245c27.js} +2 -2
- package/build/esm/{index-3bb092d2.js → index-d6cc7c9f.js} +17 -17
- package/build/esm/{index-9dc7408f.js → index-d810776f.js} +1 -1
- package/build/esm/{index-e9014616.js → index-d916ce5a.js} +11 -11
- package/build/esm/{index-942e7604.js → index-dabd1bfc.js} +13 -13
- package/build/esm/{index-592e52aa.js → index-de601b59.js} +6 -6
- package/build/esm/{index-6a38412d.js → index-de615c57.js} +2 -2
- package/build/esm/{index-14391ebe.js → index-e384f5f1.js} +5 -5
- package/build/esm/{index-c40a5354.js → index-e62941d8.js} +4 -4
- package/build/esm/{index-1801b6ac.js → index-e8282da2.js} +31 -31
- package/build/esm/{index-2d2f032d.js → index-eada8cec.js} +2 -2
- package/build/esm/{index-dfd1bbe2.js → index-f025cabc.js} +2 -2
- package/build/esm/{index-1653034a.js → index-f928c61d.js} +17 -17
- package/build/esm/{index-215a5937.js → index-f94a7f96.js} +18 -18
- package/build/esm/index.js +118 -118
- package/build/esm/{labelSorting-14c473b5.js → labelSorting-d7513b1b.js} +4 -4
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +15 -9
- package/build/esm/lead/layouts/inline.d.ts +5 -3
- package/build/esm/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/esm/lead/services/index.d.ts +14 -0
- package/build/esm/lead.js +342 -200
- package/build/esm/{logoIcon-fa695a3d.js → logoIcon-7fdfa704.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +17 -17
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- 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 +74 -74
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +46 -46
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +26 -26
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +50 -50
- package/build/esm/{post-7d90605b.js → post-0775fcc2.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/featureFlag.d.ts +2 -1
- package/build/esm/ssoV2.js +52 -40
- package/build/esm/{store-61732839.js → store-9c88b3bf.js} +3 -3
- package/build/esm/subot.js +36 -36
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-9eef1a4b.js → surveyThankyouCard-2278d513.js} +5 -5
- package/build/esm/together.js +56 -56
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +51 -51
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +39 -39
- package/build/esm/togetherOrganisms.js +50 -50
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-20266cbb.js → translationsProvider-c99a9f14.js} +1 -1
- package/build/esm/{treePopoverMenu-7901d856.js → treePopoverMenu-c9104334.js} +19 -19
- package/build/esm/{types-e1ee79c6.js → types-1f358b9c.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-3d87bc53.js → useCategory-fff01251.js} +5 -5
- package/build/esm/{useHealthToolCache-7f1c8e27.js → useHealthToolCache-bb72aa42.js} +1 -1
- package/build/esm/{useMantineLocale-255491dc.js → useMantineLocale-cf9ef2cd.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-46dd7177.js → usePlacesAutocomplete-9a493eb4.js} +1 -1
- package/build/esm/{useScreenSize-1fc99ffb.js → useScreenSize-d80a35eb.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-3134b1b6.js → utils-5852e212.js} +5 -5
- package/build/esm/{utils-fab23c47.js → utils-c6cd3f21.js} +2 -2
- package/build/esm/{utils-451862e4.js → utils-d80ef102.js} +2 -2
- package/build/esm/{utils-867c0cbb.js → utils-de1b8290.js} +3 -3
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-c995fc11.js → healthTools-a50f9994.js} +1 -1
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n-values/id-ID.js +1 -1
- package/build/i18n-values/ms-MY.js +1 -1
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-2baa2bb1.js → index-0131b4bd.js} +1 -1
- package/build/{index-84cbd016.js → index-022441e1.js} +1 -1
- package/build/{index-f89a8ed4.js → index-0d080f21.js} +22 -22
- package/build/{index-3ba6f818.js → index-0e8420b3.js} +30 -30
- package/build/{index-d9767fd2.js → index-11794dcd.js} +2 -2
- package/build/{index-72aed9e3.js → index-1b08c13d.js} +6 -6
- package/build/{index-3cbb460f.js → index-23d69ddf.js} +2 -2
- package/build/{index-72481e92.js → index-2be78b9b.js} +16 -16
- package/build/{index-0ce3466b.js → index-2c97797f.js} +3 -3
- package/build/{index-1481d67f.js → index-2ebe299c.js} +2 -2
- package/build/{index-be48e256.js → index-2f662a09.js} +18 -18
- package/build/{index-3eebb693.js → index-2fd2668e.js} +2 -2
- package/build/{index-40aaeaf5.js → index-311e17aa.js} +13 -13
- package/build/{index-86a6f833.js → index-37a21bc5.js} +4 -4
- package/build/{index-be817e96.js → index-39f12ce5.js} +15 -15
- package/build/{index-d2be824e.js → index-3aa66c1c.js} +2 -2
- package/build/{index-5a504e3b.js → index-3f44722c.js} +1 -1
- package/build/{index-4dfa0e22.js → index-4c364aa6.js} +3 -3
- package/build/{index-f84293ae.js → index-4d21e7a4.js} +11 -11
- package/build/{index-fff4ad3e.js → index-4e1604fc.js} +25 -25
- package/build/{index-8764cbee.js → index-52dfa1b1.js} +1 -1
- package/build/{index-6780d887.js → index-52e6aeec.js} +6 -6
- package/build/{index-9a3cdb91.js → index-615eb3d0.js} +1 -1
- package/build/{index-092a91d9.js → index-65bb73f8.js} +3 -3
- package/build/{index-e92cfefa.js → index-69887da9.js} +13 -13
- package/build/{index-3651c3b3.js → index-6d049ab8.js} +17 -17
- package/build/{index-8fb2ab05.js → index-779de2a7.js} +7 -7
- package/build/{index-2bd79615.js → index-85feb827.js} +24 -24
- package/build/{index-6e49bbff.js → index-87e6e2d3.js} +2 -2
- package/build/{index-04c41314.js → index-89b61af0.js} +7 -7
- package/build/{index-c55f22c1.js → index-91a56ef7.js} +1 -1
- package/build/{index-ba13c196.js → index-971ee8b5.js} +2 -2
- package/build/{index-4ab6cdf6.js → index-99dd9e37.js} +2 -2
- package/build/{index-3b3f34cd.js → index-9e24ab8f.js} +11 -11
- package/build/{index-8c82b438.js → index-a15f1dfa.js} +2 -2
- package/build/{index-d5b26cc7.js → index-a1d3da71.js} +13 -13
- package/build/{index-dc2e7f29.js → index-a61ea5cb.js} +17 -17
- package/build/{index-b0429dab.js → index-aae4fd42.js} +2 -2
- package/build/{index-f788c425.js → index-aed89ddf.js} +2 -2
- package/build/{index-f062abe5.js → index-af47e718.js} +1 -1
- package/build/{index-b84440f7.js → index-afd82e6d.js} +16 -16
- package/build/{index-2ae4fa54.js → index-b07436a5.js} +32 -32
- package/build/{index-2f404f54.js → index-b38e1226.js} +3 -3
- package/build/{index-36e5d4e8.js → index-b9fd9139.js} +16 -16
- package/build/{index-04ce842a.js → index-bb799f44.js} +31 -31
- package/build/{index-ad8e30b9.js → index-bd561cd5.js} +16 -16
- package/build/{index-42b21267.js → index-bdbf4a5a.js} +3 -3
- package/build/{index-554495c4.js → index-c0b9c678.js} +17 -17
- package/build/{index-45ca7463.js → index-c38a9f8e.js} +6 -6
- package/build/{index-20e138b3.js → index-c85a498d.js} +6 -6
- package/build/{index-0dc28efe.js → index-d064c78b.js} +1 -1
- package/build/{index-87a0a84d.js → index-d5199a61.js} +13 -13
- package/build/{index-348bd5ea.js → index-db002e38.js} +6 -6
- package/build/{index-aa09c75d.js → index-de801fe5.js} +21 -21
- package/build/{index-5eb6495e.js → index-e1975e76.js} +2 -2
- package/build/{index-f21bae47.js → index-e2b474d6.js} +2 -2
- package/build/{index-1d42d9bf.js → index-e355bf41.js} +18 -18
- package/build/{index-28228122.js → index-e404781f.js} +1 -1
- package/build/{index-b3038deb.js → index-e7bfe936.js} +4 -4
- package/build/{index-e15c03da.js → index-f377b5ce.js} +2 -2
- package/build/{index-53311e38.js → index-fbfad7b0.js} +5 -5
- package/build/{index-b721f5c0.js → index-fcfb8a23.js} +17 -17
- package/build/{index-46a44671.js → index-fe4f2ea4.js} +3 -3
- package/build/{index-dbe0b6cf.js → index-fe7fbf40.js} +10 -10
- package/build/{index-1ce51920.js → index-fffeac23.js} +5 -5
- package/build/index.js +118 -118
- package/build/{labelSorting-5c6b0bca.js → labelSorting-924491e0.js} +4 -4
- package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +15 -9
- package/build/lead/layouts/inline.d.ts +5 -3
- package/build/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/lead/services/index.d.ts +14 -0
- package/build/lead.js +341 -199
- package/build/{logoIcon-7d83fee2.js → logoIcon-7ff27b45.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +17 -17
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +74 -74
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +46 -46
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +26 -26
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +50 -50
- package/build/{post-88df517f.js → post-baa2564a.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/featureFlag.d.ts +2 -1
- package/build/ssoV2.js +50 -38
- package/build/{store-f7b33d38.js → store-a3d8854b.js} +3 -3
- package/build/subot.js +35 -35
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-91561af7.js → surveyThankyouCard-1a7ca5fc.js} +5 -5
- package/build/together.js +56 -56
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +51 -51
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +39 -39
- package/build/togetherOrganisms.js +50 -50
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-8d5df267.js → translationsProvider-c4a4a94b.js} +1 -1
- package/build/{treePopoverMenu-5d5967ad.js → treePopoverMenu-16375305.js} +19 -19
- package/build/{types-24fd04de.js → types-633fb4b2.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-9d817d57.js → useCategory-5e76a07d.js} +5 -5
- package/build/{useHealthToolCache-ac1d2cea.js → useHealthToolCache-d2c5f4fd.js} +1 -1
- package/build/{useMantineLocale-1e970fcb.js → useMantineLocale-bde62872.js} +6 -6
- package/build/{usePlacesAutocomplete-c1e3dcb7.js → usePlacesAutocomplete-31cab0ec.js} +1 -1
- package/build/{useScreenSize-c1c8bf0b.js → useScreenSize-0f0ff7e3.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-c73477d9.js → utils-29b91bba.js} +2 -2
- package/build/{utils-e657f8d9.js → utils-51ebb680.js} +3 -3
- package/build/{utils-c738e51e.js → utils-938e2937.js} +5 -5
- package/build/{utils-cf5d5be2.js → utils-d1adff64.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-d26f3e66.js → BMI_BOYS.percentile.monthly-3d029f08.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-41d497d6.js → BMI_BOYS.percentile.weekly-29f2d84b.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-47c04f08.js → BMI_BOYS.percentile.yearly-68583804.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-c243a228.js → BMI_BOYS.zscore.monthly-f9ac61cf.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-e73c7c93.js → BMI_BOYS.zscore.weekly-2a0578a8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-2d709837.js → BMI_BOYS.zscore.yearly-505483c3.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-a185799a.js → BMI_GIRLS.percentile.monthly-205dd972.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-14dc7dde.js → BMI_GIRLS.percentile.weekly-4a1d081d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-91c8ff95.js → BMI_GIRLS.percentile.yearly-4a3b3229.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-5c6f097e.js → BMI_GIRLS.zscore.monthly-abfc0901.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-0b9314f5.js → BMI_GIRLS.zscore.weekly-24ba5575.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-e4bbdbd9.js → BMI_GIRLS.zscore.yearly-f5631242.js} +0 -0
- /package/build/{ChevronDown-401a85c7.js → ChevronDown-c4916965.js} +0 -0
- /package/build/{Close-20277205.js → Close-272bf37e.js} +0 -0
- /package/build/{Google-402454c3.js → Google-33f10993.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b79eb7de.js → HEAD CIRCUM_BOYS.percentile.monthly-f73f5149.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-38b7f8f7.js → HEAD CIRCUM_BOYS.percentile.weekly-4681dd9c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-c8da0e53.js → HEAD CIRCUM_BOYS.percentile.yearly-30530a49.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-63d313ce.js → HEAD CIRCUM_BOYS.zscore.monthly-ef0b610a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-3623fb54.js → HEAD CIRCUM_BOYS.zscore.weekly-6028067e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-85c5a541.js → HEAD CIRCUM_BOYS.zscore.yearly-847a701c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f5e3ff78.js → HEAD CIRCUM_GIRLS.percentile.monthly-52fa4096.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-2c9bd4d3.js → HEAD CIRCUM_GIRLS.percentile.weekly-bdf5db0c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e8197a16.js → HEAD CIRCUM_GIRLS.percentile.yearly-b199edfc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-aaab18f8.js → HEAD CIRCUM_GIRLS.zscore.monthly-9299705e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-dbd4115b.js → HEAD CIRCUM_GIRLS.zscore.weekly-a1743c71.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5fe975ce.js → HEAD CIRCUM_GIRLS.zscore.yearly-301bb073.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-dd41b0ac.js → HEIGHT_BOYS.percentile.monthly-eada4583.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-eafba6e0.js → HEIGHT_BOYS.percentile.weekly-bca42c7a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-4d2dc2e8.js → HEIGHT_BOYS.percentile.yearly-52381b02.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-1374e396.js → HEIGHT_BOYS.zscore.monthly-8067de13.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-e74df470.js → HEIGHT_BOYS.zscore.weekly-f004399f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-56b58cbd.js → HEIGHT_BOYS.zscore.yearly-ca39b78a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-32fc9f2f.js → HEIGHT_GIRLS.percentile.monthly-e5cbf9c7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-8953368e.js → HEIGHT_GIRLS.percentile.weekly-ae65fb3d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-b4b78baa.js → HEIGHT_GIRLS.percentile.yearly-0632ad69.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-f00d7160.js → HEIGHT_GIRLS.zscore.monthly-2e6ced3a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-3fabe52d.js → HEIGHT_GIRLS.zscore.weekly-359f070a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-cb9b0d99.js → HEIGHT_GIRLS.zscore.yearly-0dea441d.js} +0 -0
- /package/build/{Locale-bd7a10ae.js → Locale-9bb2fb2f.js} +0 -0
- /package/build/{Visible-a39968f4.js → Visible-3045737c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-6aa97aa0.js → WEIGHT_BOYS.percentile.monthly-f54d24e1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-435f9dfb.js → WEIGHT_BOYS.percentile.weekly-a7f3cce6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-808bace0.js → WEIGHT_BOYS.percentile.yearly-7da13f49.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e4c2c184.js → WEIGHT_BOYS.zscore.monthly-a0c03623.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-450c0d37.js → WEIGHT_BOYS.zscore.weekly-165cfd42.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-67638d07.js → WEIGHT_BOYS.zscore.yearly-21abe9ad.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-22808439.js → WEIGHT_GIRLS.percentile.monthly-bf7551db.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-a6762119.js → WEIGHT_GIRLS.percentile.weekly-6631b8c0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-8ba04579.js → WEIGHT_GIRLS.percentile.yearly-9eab0afc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4b3ff237.js → WEIGHT_GIRLS.zscore.monthly-76a19cbd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-49912fc4.js → WEIGHT_GIRLS.zscore.weekly-b1a5824e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-f8b1bce8.js → WEIGHT_GIRLS.zscore.yearly-9dbefe10.js} +0 -0
- /package/build/{animation-627e40e1.js → animation-8222ea76.js} +0 -0
- /package/build/{constants-ff097b2f.js → constants-02e70393.js} +0 -0
- /package/build/{constants-2614d9f4.js → constants-bada0bfc.js} +0 -0
- /package/build/{constants-87c22ac6.js → constants-c87e6cac.js} +0 -0
- /package/build/{dataTransform-9ca67190.js → dataTransform-528a6f85.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-80c44e26.js → BMI_BOYS.percentile.monthly-f7e5ad68.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-51caaacf.js → BMI_BOYS.percentile.weekly-ea72fad9.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-ecf87a4d.js → BMI_BOYS.percentile.yearly-2a1f80df.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-a86cac6b.js → BMI_BOYS.zscore.monthly-d001abe1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-72a975e2.js → BMI_BOYS.zscore.weekly-10b11be2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-573813de.js → BMI_BOYS.zscore.yearly-98c091c1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-801ff224.js → BMI_GIRLS.percentile.monthly-542a4326.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-b792850f.js → BMI_GIRLS.percentile.weekly-c30817c9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-a8d4f8c9.js → BMI_GIRLS.percentile.yearly-b0f88c14.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-244db734.js → BMI_GIRLS.zscore.monthly-41b5cd09.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-e10b0bdd.js → BMI_GIRLS.zscore.weekly-d05ffd16.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-936fd8d6.js → BMI_GIRLS.zscore.yearly-367f3823.js} +0 -0
- /package/build/esm/{ChevronDown-4874306c.js → ChevronDown-58c4c246.js} +0 -0
- /package/build/esm/{Close-33a553b5.js → Close-b34f8c4b.js} +0 -0
- /package/build/esm/{Google-09e397e8.js → Google-b0c61cc7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-11f46383.js → HEAD CIRCUM_BOYS.percentile.monthly-258964ce.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c8231bdc.js → HEAD CIRCUM_BOYS.percentile.weekly-1b73d47e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-a46cf76a.js → HEAD CIRCUM_BOYS.percentile.yearly-97d6b741.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c3196aa1.js → HEAD CIRCUM_BOYS.zscore.monthly-ef35f1c2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8dab52bf.js → HEAD CIRCUM_BOYS.zscore.weekly-65af66bf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b8f42563.js → HEAD CIRCUM_BOYS.zscore.yearly-e1ade5d7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0a9f78c2.js → HEAD CIRCUM_GIRLS.percentile.monthly-0695a429.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-bc6e1a9f.js → HEAD CIRCUM_GIRLS.percentile.weekly-3e97cced.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e47fd635.js → HEAD CIRCUM_GIRLS.percentile.yearly-e6006652.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-1a150f28.js → HEAD CIRCUM_GIRLS.zscore.monthly-f9cddb70.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e511b4c9.js → HEAD CIRCUM_GIRLS.zscore.weekly-241b31e9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b45b85c9.js → HEAD CIRCUM_GIRLS.zscore.yearly-6755fded.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-48c1f044.js → HEIGHT_BOYS.percentile.monthly-73cfc64a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-ea858eeb.js → HEIGHT_BOYS.percentile.weekly-76edaab1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-d93c26db.js → HEIGHT_BOYS.percentile.yearly-163687fb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-089b682a.js → HEIGHT_BOYS.zscore.monthly-3e8791b6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e6add158.js → HEIGHT_BOYS.zscore.weekly-696b69a8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-fb222952.js → HEIGHT_BOYS.zscore.yearly-a516d58a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-b254bd16.js → HEIGHT_GIRLS.percentile.monthly-02062252.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f5ac8cfe.js → HEIGHT_GIRLS.percentile.weekly-c1affaa0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-d57277e5.js → HEIGHT_GIRLS.percentile.yearly-e2fa462d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-bd15ac10.js → HEIGHT_GIRLS.zscore.monthly-636cadfd.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-b30da4a4.js → HEIGHT_GIRLS.zscore.weekly-492507fc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-49ddcabf.js → HEIGHT_GIRLS.zscore.yearly-748c95eb.js} +0 -0
- /package/build/esm/{Locale-195d354b.js → Locale-08991360.js} +0 -0
- /package/build/esm/{Visible-82268433.js → Visible-1b5bc00f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-2896f774.js → WEIGHT_BOYS.percentile.monthly-480fe88d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a27e0725.js → WEIGHT_BOYS.percentile.weekly-c2951ed1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-3cf0bd05.js → WEIGHT_BOYS.percentile.yearly-07b42ac4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-1b22ac16.js → WEIGHT_BOYS.zscore.monthly-764a2a2b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-4827e847.js → WEIGHT_BOYS.zscore.weekly-fd17d551.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-0105e7d6.js → WEIGHT_BOYS.zscore.yearly-61f33e93.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-824eee53.js → WEIGHT_GIRLS.percentile.monthly-421f1b03.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-c092dfcb.js → WEIGHT_GIRLS.percentile.weekly-dbb118f4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f54bdf64.js → WEIGHT_GIRLS.percentile.yearly-63dabec6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-e9b5d068.js → WEIGHT_GIRLS.zscore.monthly-9d19efe4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f3ff3cf7.js → WEIGHT_GIRLS.zscore.weekly-63bad63c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c47918d6.js → WEIGHT_GIRLS.zscore.yearly-1fe81de3.js} +0 -0
- /package/build/esm/{animation-1e759e01.js → animation-9101b804.js} +0 -0
- /package/build/esm/{constants-dfd4fec2.js → constants-660a984e.js} +0 -0
- /package/build/esm/{constants-787d1047.js → constants-7cccca31.js} +0 -0
- /package/build/esm/{constants-b91a6387.js → constants-ce0dd631.js} +0 -0
- /package/build/esm/{dataTransform-24704549.js → dataTransform-5773b013.js} +0 -0
- /package/build/esm/{index-fae47190.js → index-198578c8.js} +0 -0
- /package/build/esm/{index-5881649f.js → index-50ea224e.js} +0 -0
- /package/build/esm/{index-f26595dd.js → index-6eb969d6.js} +0 -0
- /package/build/esm/{index-bde09734.js → index-87bf3dce.js} +0 -0
- /package/build/esm/{index-f7c78a98.js → index-98c3f3eb.js} +0 -0
- /package/build/esm/{index-e767a5ce.js → index-d07cc929.js} +0 -0
- /package/build/esm/{index-107190c6.js → index-d66ab88e.js} +0 -0
- /package/build/esm/{index-1a1b91b9.js → index-db6cae09.js} +0 -0
- /package/build/esm/{index.styles-4cdbea78.js → index.styles-6a12d627.js} +0 -0
- /package/build/esm/{localizeNumberFormat-ca7b01c6.js → localizeNumberFormat-2fd0fd54.js} +0 -0
- /package/build/esm/{normalizeLink-16f982aa.js → normalizeLink-519d8555.js} +0 -0
- /package/build/esm/{number-8bcabfaf.js → number-fafd87ca.js} +0 -0
- /package/build/esm/{other-02f43079.js → other-7d1d67f0.js} +0 -0
- /package/build/esm/{paths-86ff00ad.js → paths-5a7e1603.js} +0 -0
- /package/build/esm/{translationsContext-b2dc340c.js → translationsContext-5e26c458.js} +0 -0
- /package/build/esm/{tslib.es6-61a5e155.js → tslib.es6-f29498df.js} +0 -0
- /package/build/esm/{types-8c1739a1.js → types-468e73fb.js} +0 -0
- /package/build/esm/{useIsInit-572bb275.js → useIsInit-18292fa9.js} +0 -0
- /package/build/esm/{useOutsideClick-3da10969.js → useOutsideClick-450734ab.js} +0 -0
- /package/build/esm/{useScrollbarSize-dcafed17.js → useScrollbarSize-71467a48.js} +0 -0
- /package/build/esm/{useUniqueId-2e1f61a7.js → useUniqueId-f6f89767.js} +0 -0
- /package/build/esm/{utils-6fe70468.js → utils-e5a0e2cc.js} +0 -0
- /package/build/{index-7c86d056.js → index-432bab1f.js} +0 -0
- /package/build/{index-993665ec.js → index-49208c2d.js} +0 -0
- /package/build/{index-c6a7dd24.js → index-64eff3d9.js} +0 -0
- /package/build/{index-d589d7c3.js → index-82a24d15.js} +0 -0
- /package/build/{index-7fd91055.js → index-956a0ddf.js} +0 -0
- /package/build/{index-27f3b644.js → index-dbcbb1ee.js} +0 -0
- /package/build/{index-0f53ccd0.js → index-dd883248.js} +0 -0
- /package/build/{index-423fcd07.js → index-e90d08c3.js} +0 -0
- /package/build/{index.styles-6a861840.js → index.styles-f5ca1d8f.js} +0 -0
- /package/build/{localizeNumberFormat-54e706f5.js → localizeNumberFormat-33cfe92d.js} +0 -0
- /package/build/{normalizeLink-881a333f.js → normalizeLink-e19a8951.js} +0 -0
- /package/build/{number-4f82eab1.js → number-e2fcf9a0.js} +0 -0
- /package/build/{other-be45c1fc.js → other-738abc87.js} +0 -0
- /package/build/{paths-2f37bbaf.js → paths-81315bde.js} +0 -0
- /package/build/{translationsContext-6dc487d0.js → translationsContext-f32717b5.js} +0 -0
- /package/build/{tslib.es6-e7c9ab79.js → tslib.es6-3152cc92.js} +0 -0
- /package/build/{types-167beb92.js → types-48391099.js} +0 -0
- /package/build/{useIsInit-f8cc3bdc.js → useIsInit-e454cbe8.js} +0 -0
- /package/build/{useOutsideClick-e33b7ee7.js → useOutsideClick-ded5783d.js} +0 -0
- /package/build/{useScrollbarSize-18803479.js → useScrollbarSize-ec75adbf.js} +0 -0
- /package/build/{useUniqueId-a27907fa.js → useUniqueId-f6102b6d.js} +0 -0
- /package/build/{utils-085bd563.js → utils-c49470cc.js} +0 -0
package/build/lead.js
CHANGED
|
@@ -2,56 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-3152cc92.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var core = require('@mantine/core');
|
|
8
8
|
var debounce = require('lodash/debounce');
|
|
9
9
|
var form = require('@mantine/form');
|
|
10
10
|
var dayjs = require('dayjs');
|
|
11
|
-
var index = require('./index-
|
|
11
|
+
var index = require('./index-e7bfe936.js');
|
|
12
12
|
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
13
|
-
var index$1 = require('./index-
|
|
14
|
-
var translationsContext = require('./translationsContext-
|
|
15
|
-
var utils$1 = require('./utils-
|
|
16
|
-
var index$2 = require('./index-
|
|
17
|
-
var index$3 = require('./index-
|
|
18
|
-
var index$5 = require('./index-
|
|
19
|
-
var index$4 = require('./index-
|
|
20
|
-
require('./index.styles-
|
|
13
|
+
var index$1 = require('./index-af47e718.js');
|
|
14
|
+
var translationsContext = require('./translationsContext-f32717b5.js');
|
|
15
|
+
var utils$1 = require('./utils-c49470cc.js');
|
|
16
|
+
var index$2 = require('./index-e2b474d6.js');
|
|
17
|
+
var index$3 = require('./index-9e24ab8f.js');
|
|
18
|
+
var index$5 = require('./index-c38a9f8e.js');
|
|
19
|
+
var index$4 = require('./index-52dfa1b1.js');
|
|
20
|
+
require('./index.styles-f5ca1d8f.js');
|
|
21
21
|
var hooks = require('@mantine/hooks');
|
|
22
|
-
require('./useMantineLocale-
|
|
23
|
-
var index$9 = require('./index-
|
|
24
|
-
require('./index-
|
|
25
|
-
var index$7 = require('./index-
|
|
26
|
-
require('./other-
|
|
27
|
-
require('./index-
|
|
28
|
-
var utils = require('./utils-
|
|
22
|
+
require('./useMantineLocale-bde62872.js');
|
|
23
|
+
var index$9 = require('./index-022441e1.js');
|
|
24
|
+
require('./index-956a0ddf.js');
|
|
25
|
+
var index$7 = require('./index-87e6e2d3.js');
|
|
26
|
+
require('./other-738abc87.js');
|
|
27
|
+
require('./index-2c97797f.js');
|
|
28
|
+
var utils = require('./utils-29b91bba.js');
|
|
29
29
|
var dates = require('@mantine/dates');
|
|
30
|
-
var usePlacesAutocomplete = require('./usePlacesAutocomplete-
|
|
31
|
-
var index$6 = require('./index-
|
|
32
|
-
var translationsProvider = require('./translationsProvider-
|
|
33
|
-
var Locale = require('./Locale-
|
|
30
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-31cab0ec.js');
|
|
31
|
+
var index$6 = require('./index-23d69ddf.js');
|
|
32
|
+
var translationsProvider = require('./translationsProvider-c4a4a94b.js');
|
|
33
|
+
var Locale = require('./Locale-9bb2fb2f.js');
|
|
34
34
|
var uuid = require('uuid');
|
|
35
|
+
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
35
36
|
var PhoneInputBase = require('react-phone-number-input');
|
|
36
37
|
var styled = require('@emotion/styled');
|
|
37
38
|
var miscTheme = require('./miscTheme.js');
|
|
38
39
|
var react = require('@emotion/react');
|
|
39
|
-
var togetherComponentGlobalContext = require('./utils-
|
|
40
|
-
var index$8 = require('./index-
|
|
41
|
-
var useScreenSize = require('./useScreenSize-
|
|
40
|
+
var togetherComponentGlobalContext = require('./utils-51ebb680.js');
|
|
41
|
+
var index$8 = require('./index-e90d08c3.js');
|
|
42
|
+
var useScreenSize = require('./useScreenSize-0f0ff7e3.js');
|
|
42
43
|
var framerMotion = require('framer-motion');
|
|
43
44
|
var ReactDOM = require('react-dom');
|
|
44
|
-
var index$a = require('./index-
|
|
45
|
-
var InputDate = require('./InputDate-
|
|
46
|
-
var index$b = require('./index-
|
|
47
|
-
var Close = require('./Close-
|
|
45
|
+
var index$a = require('./index-3aa66c1c.js');
|
|
46
|
+
var InputDate = require('./InputDate-4dffce63.js');
|
|
47
|
+
var index$b = require('./index-f377b5ce.js');
|
|
48
|
+
var Close = require('./Close-272bf37e.js');
|
|
48
49
|
require('./constantsIsProduction.js');
|
|
49
|
-
require('./normalizeLink-
|
|
50
|
-
require('./constantsDomainLocales.js');
|
|
50
|
+
require('./normalizeLink-e19a8951.js');
|
|
51
51
|
require('@hhgtech/icons/other');
|
|
52
52
|
require('@mantine/carousel');
|
|
53
53
|
require('classnames');
|
|
54
|
-
require('./useUniqueId-
|
|
54
|
+
require('./useUniqueId-f6102b6d.js');
|
|
55
55
|
require('./constantsSite.js');
|
|
56
56
|
require('@hhgtech/icons/core');
|
|
57
57
|
require('@mantine/notifications');
|
|
@@ -69,11 +69,11 @@ require('./i18n-values/vi-VN.js');
|
|
|
69
69
|
require('./i18n-values/vi-VN_MB.js');
|
|
70
70
|
require('./i18n-values/zh-SG.js');
|
|
71
71
|
require('./i18n-values/zh-TW.js');
|
|
72
|
-
require('./index-
|
|
72
|
+
require('./index-dd883248.js');
|
|
73
73
|
require('slugify');
|
|
74
74
|
require('string-format');
|
|
75
75
|
require('./togetherApiPaths.js');
|
|
76
|
-
require('./constants-
|
|
76
|
+
require('./constants-bada0bfc.js');
|
|
77
77
|
require('vaul');
|
|
78
78
|
|
|
79
79
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -188,11 +188,6 @@ const LEAD_TIMEZONE_DATA = {
|
|
|
188
188
|
9: 'Asia/Manila', // Philippines / Filipinos Site
|
|
189
189
|
};
|
|
190
190
|
|
|
191
|
-
const LEADGEN_ACTIONS = {
|
|
192
|
-
SHOW: 'SHOW',
|
|
193
|
-
SCROLL: 'SCROLL',
|
|
194
|
-
TIME: 'TIME',
|
|
195
|
-
};
|
|
196
191
|
var LEADGEN_LAYOUT;
|
|
197
192
|
(function (LEADGEN_LAYOUT) {
|
|
198
193
|
LEADGEN_LAYOUT["LightBoxA"] = "LightBoxA";
|
|
@@ -591,6 +586,13 @@ const campaignPostImpression = ({ code, action, title_article, ga_client_id, coo
|
|
|
591
586
|
},
|
|
592
587
|
});
|
|
593
588
|
};
|
|
589
|
+
const trackingSubscription = (data) => {
|
|
590
|
+
return leadApi.call({
|
|
591
|
+
url: `api/collection/tracking-subscription`,
|
|
592
|
+
method: METHOD.POST,
|
|
593
|
+
data,
|
|
594
|
+
});
|
|
595
|
+
};
|
|
594
596
|
const Service = {
|
|
595
597
|
campaignGetById,
|
|
596
598
|
getCampaignByCode,
|
|
@@ -598,6 +600,7 @@ const Service = {
|
|
|
598
600
|
postSubscriptionBoxLead,
|
|
599
601
|
postUserInfoFromLeadGen,
|
|
600
602
|
campaignPostImpression,
|
|
603
|
+
trackingSubscription,
|
|
601
604
|
validateEmailOrPhoneOnSubot,
|
|
602
605
|
validateEmailOrPhoneOnLeadGen,
|
|
603
606
|
validatePhoneNumberOnLeadGen,
|
|
@@ -2012,27 +2015,30 @@ const LeadGenContext = React.createContext({
|
|
|
2012
2015
|
LeadLog('** LeadGen SubmitSubscriptionBox : ', value);
|
|
2013
2016
|
return Promise.reject(value);
|
|
2014
2017
|
},
|
|
2015
|
-
impression(
|
|
2018
|
+
impression(type) {
|
|
2016
2019
|
/** Init for FAKING function */
|
|
2017
|
-
LeadLog('** LeadGen Impression : ',
|
|
2018
|
-
return Promise.reject(
|
|
2020
|
+
LeadLog('** LeadGen Impression : ', type);
|
|
2021
|
+
return Promise.reject();
|
|
2019
2022
|
},
|
|
2020
2023
|
/** For Subscription Box */
|
|
2021
2024
|
subscriptionIcon: '',
|
|
2022
2025
|
subscriptionTitle: '',
|
|
2026
|
+
subscriptionPhoneType: '',
|
|
2023
2027
|
});
|
|
2024
2028
|
const LeadGenContextProvider = (props) => {
|
|
2025
|
-
const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues, articleId = 1, categoryId = 1, siteDomain: site_domain, children } = props, restProps = tslib_es6.__rest(props, ["campaign_code", "apiSsoUrl", "apiLeadUrl", "apiSubotUrl", "locale", "forceCampaign", "extraValues", "articleId", "categoryId", "siteDomain", "children"]);
|
|
2029
|
+
const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues, articleId = 1, categoryId = 1, siteDomain: site_domain, children, userInfo } = props, restProps = tslib_es6.__rest(props, ["campaign_code", "apiSsoUrl", "apiLeadUrl", "apiSubotUrl", "locale", "forceCampaign", "extraValues", "articleId", "categoryId", "siteDomain", "children", "userInfo"]);
|
|
2030
|
+
const { t } = index$1.useTranslations();
|
|
2026
2031
|
const [forceCampaign, setForceCampaign] = React.useState(forceCampaignProps);
|
|
2027
2032
|
const [subscriptionInfo, setSubscriptionInfo] = React.useState({
|
|
2028
2033
|
subscriptionIcon: '',
|
|
2029
2034
|
subscriptionTitle: '',
|
|
2030
2035
|
subscriptionType: 'TypeA',
|
|
2036
|
+
subscriptionPhoneType: '',
|
|
2031
2037
|
});
|
|
2032
2038
|
const locale = React.useMemo(() => {
|
|
2033
2039
|
return localeProps || Locale.LOCALE['PhilippinesEnglish'];
|
|
2034
2040
|
}, [localeProps]);
|
|
2035
|
-
const { url, campaign_id,
|
|
2041
|
+
const { url, campaign_id, cookie_id, ga_client_id, category_id, article_id, article_title, category_name, } = React.useMemo(() => ({
|
|
2036
2042
|
url: location.href.toLowerCase() || '',
|
|
2037
2043
|
cookie_id: miscCookieHelper.getCookie('hhg-id') || null,
|
|
2038
2044
|
ga_client_id: miscCookieHelper.getCookie('_ga'),
|
|
@@ -2041,27 +2047,33 @@ const LeadGenContextProvider = (props) => {
|
|
|
2041
2047
|
category_id: categoryId,
|
|
2042
2048
|
article_id: articleId,
|
|
2043
2049
|
article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
|
|
2050
|
+
category_name: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name) || '',
|
|
2044
2051
|
}), [
|
|
2045
2052
|
campaignCodeProps,
|
|
2046
2053
|
articleId,
|
|
2047
2054
|
categoryId,
|
|
2048
2055
|
forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
|
|
2049
2056
|
extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
|
|
2057
|
+
extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
|
|
2050
2058
|
]);
|
|
2051
|
-
const fetchCampaign =
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
}
|
|
2059
|
+
// const fetchCampaign = useCallback(
|
|
2060
|
+
// (campaign_code: string) => {
|
|
2061
|
+
// Service.getCampaignByCode(campaign_code).then((res) => {
|
|
2062
|
+
// const { _data } = res || {}
|
|
2063
|
+
// const { campaigns } = _data || {}
|
|
2064
|
+
// LeadLog('** LeadGen Campaign : ', campaigns)
|
|
2065
|
+
// setForceCampaign(formatCampaignDetail(campaigns))
|
|
2066
|
+
// })
|
|
2067
|
+
// },
|
|
2068
|
+
// [campaignCodeProps],
|
|
2069
|
+
// )
|
|
2059
2070
|
// TODO : Update form for LeadGen
|
|
2060
2071
|
const submit = React.useCallback((data) => {
|
|
2061
2072
|
return Service.postSubscriptionBoxLead({ data });
|
|
2062
2073
|
}, []);
|
|
2063
2074
|
const submitSubscriptionBox = React.useCallback((value) => {
|
|
2064
|
-
const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), {
|
|
2075
|
+
const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), {
|
|
2076
|
+
// campaign_id,
|
|
2065
2077
|
site_domain, url: (value === null || value === void 0 ? void 0 : value.url) || url, cookie_id, ga_client_id: (value === null || value === void 0 ? void 0 : value.ga_client_id) || ga_client_id }), extraValues), { article_id,
|
|
2066
2078
|
category_id,
|
|
2067
2079
|
article_title });
|
|
@@ -2077,33 +2089,36 @@ const LeadGenContextProvider = (props) => {
|
|
|
2077
2089
|
cookie_id,
|
|
2078
2090
|
ga_client_id,
|
|
2079
2091
|
]);
|
|
2080
|
-
const impression = React.useCallback((
|
|
2092
|
+
const impression = React.useCallback((type) => {
|
|
2093
|
+
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
2081
2094
|
const impression = {
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2095
|
+
subscription_title: subscriptionInfo.subscriptionTitle,
|
|
2096
|
+
name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || '',
|
|
2097
|
+
area_code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '',
|
|
2098
|
+
phone_number: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) || '',
|
|
2099
|
+
site_domain: constantsDomainLocales.domainLocales[locale],
|
|
2100
|
+
url: location.href.toLowerCase(),
|
|
2101
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
2102
|
+
ga_client_id: gaCookie,
|
|
2103
|
+
article_title,
|
|
2104
|
+
article_id,
|
|
2105
|
+
category_id,
|
|
2106
|
+
category_name,
|
|
2107
|
+
type,
|
|
2091
2108
|
};
|
|
2092
|
-
|
|
2093
|
-
delete impression.extra.subscription_title;
|
|
2094
|
-
}
|
|
2095
|
-
return Service.campaignPostImpression(impression);
|
|
2109
|
+
return Service.trackingSubscription(impression);
|
|
2096
2110
|
}, [
|
|
2097
|
-
extraValues,
|
|
2098
2111
|
campaign_id,
|
|
2099
2112
|
url,
|
|
2100
|
-
campaign_code,
|
|
2101
2113
|
article_title,
|
|
2102
2114
|
cookie_id,
|
|
2103
2115
|
ga_client_id,
|
|
2116
|
+
categoryId,
|
|
2104
2117
|
article_id,
|
|
2105
2118
|
subscriptionInfo.subscriptionTitle,
|
|
2106
|
-
|
|
2119
|
+
userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
|
|
2120
|
+
userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code,
|
|
2121
|
+
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
2107
2122
|
]);
|
|
2108
2123
|
React.useEffect(() => {
|
|
2109
2124
|
if (forceCampaignProps) {
|
|
@@ -2118,21 +2133,138 @@ const LeadGenContextProvider = (props) => {
|
|
|
2118
2133
|
slug: location === null || location === void 0 ? void 0 : location.pathname,
|
|
2119
2134
|
}).then((res) => {
|
|
2120
2135
|
const { _data } = res || {};
|
|
2121
|
-
const { item, campaign_code } = _data || {};
|
|
2136
|
+
const { item, campaign_code, btn_type = 'zalo' } = _data || {};
|
|
2122
2137
|
const { icon, content } = item || {};
|
|
2123
2138
|
LeadLog('** LeadGen SubscriptionBox campaign_code : ', campaign_code);
|
|
2124
2139
|
LeadLog('** LeadGen SubscriptionBox subscription_icon : ', icon);
|
|
2125
2140
|
LeadLog('** LeadGen SubscriptionBox subscription_title : ', content);
|
|
2126
|
-
setSubscriptionInfo((prev) => (Object.assign(Object.assign({}, prev), { subscriptionIcon: icon, subscriptionTitle: content })));
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2141
|
+
setSubscriptionInfo((prev) => (Object.assign(Object.assign({}, prev), { subscriptionIcon: icon, subscriptionTitle: content, subscriptionPhoneType: btn_type })));
|
|
2142
|
+
setForceCampaign(formatCampaignDetail({
|
|
2143
|
+
id: 6993,
|
|
2144
|
+
name: '',
|
|
2145
|
+
code: '49qvztwzzlfvmk6',
|
|
2146
|
+
site: {
|
|
2147
|
+
id: index$7.LOCALE_SPECS[locale].SITE_ID || 1,
|
|
2148
|
+
name: constantsDomainLocales.domainLocales[locale],
|
|
2149
|
+
},
|
|
2150
|
+
thank_you_image: 'https://cdn-lead.hellohealthgroup.com/2025/05/1747009374_68213f5e5fa5a9.58533462.png',
|
|
2151
|
+
extra_fields: {
|
|
2152
|
+
actionBlocks: `{"submitBlock":{"data":{"value":"${t('subscriptionBox.ctaBtn')}"}},"linkButtonBlock":{"data":{"value":"Join now","url":"","newtab":true}}}`,
|
|
2153
|
+
currentLayout: 'LightBoxB',
|
|
2154
|
+
imageBlocks: '{"imageMobile":{"data":{"url":"","newtab":true}},"imageDesktop":{"data":{"url":"","newtab":true}},"imageBackground":{"data":{}},"imageOverlayMobile":{"data":{}},"imageOverlayDesktop":{"data":{}},"imageThankYou":{"data":{}}}',
|
|
2155
|
+
listBlockAdded: `[{"name":"TextBlock","id":"c9be7202-05af-4d62-94bb-0001f8ad50de","data":{"placeholder":"${t('subscriptionBox.name')}","value":"name","required":true, "requiredMessage": "${t('subscriptionBox.nameRequire')}"}},{"name":"PhoneBlock","id":1744087889773,"data":{"value":"phone","required":true,"requiredMessage": "${t('subscriptionBox.phoneRequire')}","placeholder":"${t('subscriptionBox.phone')}"}}]`,
|
|
2156
|
+
listBlockThankyou: `[{"name":"TitleBlock","id":"c74d5525-b7ae-4714-b5f1-552f50160ac1","data":{"value":"${t('subscriptionBox.thankyouTitle')}","align":"center"}},{"name":"SubtitleBlock","id":"f9a6ac63-b532-41d4-9c2e-3f3e71124e05","data":{"value":"${t('subscriptionBox.thankyou')}","align":"center"}}]`,
|
|
2157
|
+
textBlocks: '{"titleBlock":{"data":{"value":"VN - Campaign SUBSCRIPTION BOX "}},"subtitleBlock":{"data":{"value":"Sample description"}}}',
|
|
2158
|
+
},
|
|
2159
|
+
total_lead: 0,
|
|
2160
|
+
total_submit: 0,
|
|
2161
|
+
total_click: 0,
|
|
2162
|
+
started_at: null,
|
|
2163
|
+
ended_at: null,
|
|
2164
|
+
created_at: '2025-04-08 04:54:32',
|
|
2165
|
+
updated_at: '2025-05-12 00:22:54',
|
|
2166
|
+
site_logo: 'https://hhg-common.hellobacsi.com/common/logo/hellobacsi.png',
|
|
2167
|
+
custom_logo: null,
|
|
2168
|
+
status: 1,
|
|
2169
|
+
formatted_status: 1,
|
|
2170
|
+
creator: 'admin@hellohealthgroup.com',
|
|
2171
|
+
total_impression: 4237940,
|
|
2172
|
+
conversion_rate: 0,
|
|
2173
|
+
total_visitor: 0,
|
|
2174
|
+
total_habit_exit: 0,
|
|
2175
|
+
total_intentional_exit: 0,
|
|
2176
|
+
trigger_type: 'on_landing',
|
|
2177
|
+
targets: [
|
|
2178
|
+
{
|
|
2179
|
+
is_import: 0,
|
|
2180
|
+
option: 'start_with',
|
|
2181
|
+
sub_target: [],
|
|
2182
|
+
target: 'https://hellobacsi.com/sample',
|
|
2183
|
+
type: 1,
|
|
2184
|
+
},
|
|
2185
|
+
],
|
|
2186
|
+
forms: [
|
|
2187
|
+
{
|
|
2188
|
+
control: 'TextBlock',
|
|
2189
|
+
default: null,
|
|
2190
|
+
name: 'TextBlock',
|
|
2191
|
+
options: [],
|
|
2192
|
+
required: 1,
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
control: 'PhoneBlock',
|
|
2196
|
+
default: null,
|
|
2197
|
+
name: 'PhoneBlock',
|
|
2198
|
+
options: [],
|
|
2199
|
+
required: 1,
|
|
2200
|
+
requiredMessage: t('subscriptionBox.phoneRequire'),
|
|
2201
|
+
},
|
|
2202
|
+
],
|
|
2203
|
+
rules: [
|
|
2204
|
+
{
|
|
2205
|
+
rule: 'campaign_popup_exit',
|
|
2206
|
+
value: '7',
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
rule: 'site_popup_exit',
|
|
2210
|
+
value: '7',
|
|
2211
|
+
},
|
|
2212
|
+
{
|
|
2213
|
+
rule: 'show_again_after_submit',
|
|
2214
|
+
value: '0',
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
rule: 'show_again_after_exit',
|
|
2218
|
+
value: '0',
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
rule: 'appearance_time',
|
|
2222
|
+
value: {
|
|
2223
|
+
endTime: null,
|
|
2224
|
+
startTime: null,
|
|
2225
|
+
},
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
rule: 'exclude_sponsored',
|
|
2229
|
+
value: '1',
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
rule: 'exclude_sponsored_list',
|
|
2233
|
+
value: [],
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
rule: 'days_to_show_again',
|
|
2237
|
+
value: '7',
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
rule: 'time',
|
|
2241
|
+
value: '3',
|
|
2242
|
+
},
|
|
2243
|
+
],
|
|
2244
|
+
is_scheduled: true,
|
|
2245
|
+
last_step: null,
|
|
2246
|
+
kpis: {
|
|
2247
|
+
lead: 500,
|
|
2248
|
+
},
|
|
2249
|
+
forever: 1,
|
|
2250
|
+
is_target_import: 0,
|
|
2251
|
+
is_expired: 0,
|
|
2252
|
+
score: 6,
|
|
2253
|
+
price: 2.5,
|
|
2254
|
+
type: 0,
|
|
2255
|
+
is_testing_running: 0,
|
|
2256
|
+
campaign_group_id: 0,
|
|
2257
|
+
bot_id: [],
|
|
2258
|
+
}));
|
|
2259
|
+
// if (campaign_code) {
|
|
2260
|
+
// fetchCampaign(campaign_code)
|
|
2261
|
+
// }
|
|
2130
2262
|
});
|
|
2131
2263
|
return;
|
|
2132
2264
|
}
|
|
2133
|
-
if (campaignCodeProps) {
|
|
2134
|
-
|
|
2135
|
-
}
|
|
2265
|
+
// if (campaignCodeProps) {
|
|
2266
|
+
// fetchCampaign(campaignCodeProps)
|
|
2267
|
+
// }
|
|
2136
2268
|
}, [forceCampaignProps, campaignCodeProps, categoryId]);
|
|
2137
2269
|
React.useEffect(() => {
|
|
2138
2270
|
leadStore.apiSsoUrl = apiSsoUrl;
|
|
@@ -2142,7 +2274,7 @@ const LeadGenContextProvider = (props) => {
|
|
|
2142
2274
|
if (!forceCampaign || !(forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id)) {
|
|
2143
2275
|
return null;
|
|
2144
2276
|
}
|
|
2145
|
-
return (React__default["default"].createElement(LeadGenContext.Provider, { value: Object.assign(Object.assign(Object.assign({}, restProps), subscriptionInfo), { campaign_code: campaignCodeProps, apiSsoUrl,
|
|
2277
|
+
return (React__default["default"].createElement(LeadGenContext.Provider, { value: Object.assign(Object.assign(Object.assign({}, restProps), subscriptionInfo), { userInfo, campaign_code: campaignCodeProps, apiSsoUrl,
|
|
2146
2278
|
apiLeadUrl,
|
|
2147
2279
|
apiSubotUrl, locale: localeProps, extraValues,
|
|
2148
2280
|
articleId,
|
|
@@ -2157,6 +2289,39 @@ const useLeadGenContext = () => {
|
|
|
2157
2289
|
return Object.assign(Object.assign({}, context), { apiSsoUrl: context.apiSsoUrl || leadStore.apiSsoUrl, apiLeadUrl: context.apiLeadUrl || leadStore.apiLeadUrl, apiSubotUrl: context.apiSubotUrl || leadStore.apiSubotUrl });
|
|
2158
2290
|
};
|
|
2159
2291
|
|
|
2292
|
+
const ImpressionTrackingWrapper = ({ children, stayDuration = 3, onImpression, dependency = '', }) => {
|
|
2293
|
+
const { ref, entry } = hooks.useIntersection({
|
|
2294
|
+
threshold: 1,
|
|
2295
|
+
});
|
|
2296
|
+
const [tracked, setTracked] = React.useState(false);
|
|
2297
|
+
React.useEffect(() => {
|
|
2298
|
+
let timer = null;
|
|
2299
|
+
let count = 1;
|
|
2300
|
+
if ((entry === null || entry === void 0 ? void 0 : entry.isIntersecting) && !tracked) {
|
|
2301
|
+
timer = setInterval(() => {
|
|
2302
|
+
console.log('Impression count: ', count);
|
|
2303
|
+
if (count >= stayDuration) {
|
|
2304
|
+
setTracked(true);
|
|
2305
|
+
}
|
|
2306
|
+
else {
|
|
2307
|
+
count += 1;
|
|
2308
|
+
}
|
|
2309
|
+
}, 1000);
|
|
2310
|
+
}
|
|
2311
|
+
return () => clearInterval(timer);
|
|
2312
|
+
}, [entry === null || entry === void 0 ? void 0 : entry.isIntersecting, tracked]);
|
|
2313
|
+
React.useEffect(() => {
|
|
2314
|
+
if (tracked) {
|
|
2315
|
+
onImpression();
|
|
2316
|
+
console.log('Impression call API');
|
|
2317
|
+
}
|
|
2318
|
+
}, [tracked]);
|
|
2319
|
+
React.useEffect(() => {
|
|
2320
|
+
setTracked(false);
|
|
2321
|
+
}, [dependency]);
|
|
2322
|
+
return (React__default["default"].createElement(core.Box, { "data-impression": true, ref: ref }, children));
|
|
2323
|
+
};
|
|
2324
|
+
|
|
2160
2325
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
2161
2326
|
const customParseFormat = require('dayjs/plugin/customParseFormat');
|
|
2162
2327
|
dayjs__default["default"].extend(customParseFormat);
|
|
@@ -2193,7 +2358,7 @@ const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validating
|
|
|
2193
2358
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2194
2359
|
block) => {
|
|
2195
2360
|
return (value) => {
|
|
2196
|
-
var _a;
|
|
2361
|
+
var _a, _b;
|
|
2197
2362
|
const isBLockRequired = (_a = block === null || block === void 0 ? void 0 : block.data) === null || _a === void 0 ? void 0 : _a.required;
|
|
2198
2363
|
if (!formRef.current.isTouched(name))
|
|
2199
2364
|
return;
|
|
@@ -2201,7 +2366,7 @@ const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validating
|
|
|
2201
2366
|
typeof value === 'undefined' ||
|
|
2202
2367
|
(Array.isArray(value) && value.length === 0)) {
|
|
2203
2368
|
return isBLockRequired
|
|
2204
|
-
? t('validator.required')
|
|
2369
|
+
? ((_b = block === null || block === void 0 ? void 0 : block.data) === null || _b === void 0 ? void 0 : _b.requiredMessage) || t('validator.required')
|
|
2205
2370
|
: cb === null || cb === void 0 ? void 0 : cb(value);
|
|
2206
2371
|
}
|
|
2207
2372
|
return cb === null || cb === void 0 ? void 0 : cb(value);
|
|
@@ -2450,12 +2615,25 @@ const StyledLeadGenSubscriptionBox = styled__default["default"].div `
|
|
|
2450
2615
|
border: 1px solid ${miscTheme.theme.colors.neutral100};
|
|
2451
2616
|
background: linear-gradient(
|
|
2452
2617
|
180.71deg,
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2618
|
+
rgba(44, 183, 66, 0.8) -18.54%,
|
|
2619
|
+
rgba(44, 183, 66, 0.1) 17.12%,
|
|
2620
|
+
rgba(44, 183, 66, 0) 99.25%
|
|
2456
2621
|
);
|
|
2457
2622
|
border-radius: 12px;
|
|
2458
2623
|
margin-inline: auto;
|
|
2624
|
+
&[data-phone-type='zalo'] {
|
|
2625
|
+
background: linear-gradient(
|
|
2626
|
+
180.71deg,
|
|
2627
|
+
#7bc2ff -18.54%,
|
|
2628
|
+
#e3f2ff 17.12%,
|
|
2629
|
+
#ffffff 99.25%
|
|
2630
|
+
);
|
|
2631
|
+
}
|
|
2632
|
+
&[data-phone-type]:not([data-phone-type='zalo']) {
|
|
2633
|
+
.leadgen-btn {
|
|
2634
|
+
background-color: #2cb742 !important;
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2459
2637
|
.leadgen-form_inputs {
|
|
2460
2638
|
.leadgen-form_input {
|
|
2461
2639
|
width: 100%;
|
|
@@ -3131,10 +3309,9 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3131
3309
|
const { image, extra_fields, id: campaign_id, bot_id: campaign_subot_id = [], ThankYouBlock, } = forceCampaign || {};
|
|
3132
3310
|
const { textBlocks, listBlockAdded, actionBlocks } = extra_fields || {};
|
|
3133
3311
|
const { submitBlock } = actionBlocks || {};
|
|
3134
|
-
const { apiLeadUrl, subscriptionIcon, subscriptionTitle,
|
|
3312
|
+
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impression, } = useLeadGenContext();
|
|
3135
3313
|
const { t } = index$1.useTranslations();
|
|
3136
3314
|
const { action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
3137
|
-
const refContainer = React.useRef(null);
|
|
3138
3315
|
const [loading, setLoading] = React.useState(false);
|
|
3139
3316
|
const [showThankyou, setShowThankyou] = React.useState(false);
|
|
3140
3317
|
const validatingEmailRef = React.useRef(false);
|
|
@@ -3154,17 +3331,6 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3154
3331
|
t('leadgen.message.title.default');
|
|
3155
3332
|
}, [subscriptionTitle, (_b = (_a = textBlocks === null || textBlocks === void 0 ? void 0 : textBlocks.titleBlock) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.value]);
|
|
3156
3333
|
const { image: thankyouImage, title: thankyouTitle, description: thankyouDescription, button: thankyouButton, } = ThankYouBlock || {};
|
|
3157
|
-
const intersectionObserverCallback = React.useCallback((entries) => {
|
|
3158
|
-
entries.forEach((entry) => {
|
|
3159
|
-
const { isIntersecting, target } = entry;
|
|
3160
|
-
if (!showThankyou &&
|
|
3161
|
-
isIntersecting &&
|
|
3162
|
-
target === refContainer.current) {
|
|
3163
|
-
impression();
|
|
3164
|
-
}
|
|
3165
|
-
});
|
|
3166
|
-
}, [impression, showThankyou]);
|
|
3167
|
-
const IObserver = new IntersectionObserver(intersectionObserverCallback);
|
|
3168
3334
|
const middlewareOnSubmit = React.useCallback((values) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
3169
3335
|
const newValues = {
|
|
3170
3336
|
subscription_title,
|
|
@@ -3201,7 +3367,11 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3201
3367
|
setLoading(true);
|
|
3202
3368
|
try {
|
|
3203
3369
|
const reqValues = Object.assign(Object.assign({}, newValues), ssoValues);
|
|
3204
|
-
const
|
|
3370
|
+
const [res] = yield Promise.all([
|
|
3371
|
+
submitSubscriptionBox(reqValues),
|
|
3372
|
+
impression('submit_form'),
|
|
3373
|
+
]);
|
|
3374
|
+
const { _data } = res || {};
|
|
3205
3375
|
const { model } = _data || {};
|
|
3206
3376
|
if (model && (model === null || model === void 0 ? void 0 : model.id)) {
|
|
3207
3377
|
setShowThankyou(true);
|
|
@@ -3245,16 +3415,8 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3245
3415
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
|
|
3246
3416
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
3247
3417
|
]);
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
IObserver.observe(refContainer.current);
|
|
3251
|
-
}
|
|
3252
|
-
return () => {
|
|
3253
|
-
IObserver.disconnect();
|
|
3254
|
-
};
|
|
3255
|
-
}, [categoryId]);
|
|
3256
|
-
return (React__default["default"].createElement("div", { ref: refContainer },
|
|
3257
|
-
React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-type": "subscription_box_A" },
|
|
3418
|
+
return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impression('impression') },
|
|
3419
|
+
React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-phone-type": subscriptionPhoneType, "data-type": "subscription_box_A" },
|
|
3258
3420
|
showThankyou && (React__default["default"].createElement(LeadGenThankYou, { image: Object.assign(Object.assign({}, thankyouImage), { src: thankyouImage.src || `${apiLeadUrl}admin/img/thanksyou.png` }), title: thankyouTitle, description: thankyouDescription, button: thankyouButton })),
|
|
3259
3421
|
!showThankyou && (React__default["default"].createElement(LeadGenSubscriptionBoxA, { loading: loading, image: subscriptionIcon || image, title: subscription_title, submitText: (_c = submitBlock === null || submitBlock === void 0 ? void 0 : submitBlock.data) === null || _c === void 0 ? void 0 : _c.value, blocks: listBlockAdded, locale: locale, form: form, rules: validateObj, onFinish: middlewareOnSubmit })))));
|
|
3260
3422
|
};
|
|
@@ -3269,8 +3431,12 @@ const Container = () => {
|
|
|
3269
3431
|
return (React__default["default"].createElement(LeadGenSubscriptionBox$1, { locale: locale, siteId: siteId, siteDomain: siteDomain, userInfo: userInfo, forceCampaign: forceCampaign, campaign_code: campaign_code }));
|
|
3270
3432
|
};
|
|
3271
3433
|
Container.displayName = 'LeadGenSubscriptionBox';
|
|
3434
|
+
const ALLOW_LOCALE = [Locale.LOCALE.Vietnam, Locale.LOCALE.Malaysia, Locale.LOCALE.Indonesia];
|
|
3272
3435
|
const LeadGenSubscriptionBoxContainer = (props) => {
|
|
3273
|
-
const { apiUrl, apiSubotUrl } = props;
|
|
3436
|
+
const { apiUrl, apiSubotUrl, locale } = props;
|
|
3437
|
+
if (!ALLOW_LOCALE.includes(locale)) {
|
|
3438
|
+
return null;
|
|
3439
|
+
}
|
|
3274
3440
|
return (React__default["default"].createElement(LeadGenContextProvider, Object.assign({}, props, { apiLeadUrl: apiUrl, apiSubotUrl: apiSubotUrl }),
|
|
3275
3441
|
React__default["default"].createElement(Container, null)));
|
|
3276
3442
|
};
|
|
@@ -3397,6 +3563,35 @@ const FloatingLayout = ({ popupId, url, title, urlText, titleAlign, subtitle, su
|
|
|
3397
3563
|
React__default["default"].createElement(CloseButton, { onClose: onClose, containerClassName: "close-button-top-right" }))))));
|
|
3398
3564
|
};
|
|
3399
3565
|
|
|
3566
|
+
const useViewportDimensions = () => {
|
|
3567
|
+
const dimensionsRef = React.useRef({ width: 0, height: 0 });
|
|
3568
|
+
const [dimensions, setDimensions] = React.useState(() => ({
|
|
3569
|
+
width: window.screen.availWidth,
|
|
3570
|
+
height: window.screen.availHeight,
|
|
3571
|
+
}));
|
|
3572
|
+
React.useEffect(() => {
|
|
3573
|
+
var _a;
|
|
3574
|
+
function visualViewport(e) {
|
|
3575
|
+
if (dimensionsRef.current.width === e.target.width &&
|
|
3576
|
+
dimensionsRef.current.height === e.target.height) {
|
|
3577
|
+
return;
|
|
3578
|
+
}
|
|
3579
|
+
const newDimensions = {
|
|
3580
|
+
width: e.target.width,
|
|
3581
|
+
height: e.target.height,
|
|
3582
|
+
};
|
|
3583
|
+
dimensionsRef.current = newDimensions;
|
|
3584
|
+
setDimensions(newDimensions);
|
|
3585
|
+
}
|
|
3586
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3587
|
+
return () => {
|
|
3588
|
+
var _a;
|
|
3589
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3590
|
+
};
|
|
3591
|
+
}, []);
|
|
3592
|
+
return React.useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3593
|
+
};
|
|
3594
|
+
|
|
3400
3595
|
function isMac() {
|
|
3401
3596
|
return testPlatform(/^Mac/);
|
|
3402
3597
|
}
|
|
@@ -3672,35 +3867,6 @@ function isInput(target) {
|
|
|
3672
3867
|
(target instanceof HTMLElement && target.isContentEditable));
|
|
3673
3868
|
}
|
|
3674
3869
|
|
|
3675
|
-
const useViewportDimensions = () => {
|
|
3676
|
-
const dimensionsRef = React.useRef({ width: 0, height: 0 });
|
|
3677
|
-
const [dimensions, setDimensions] = React.useState(() => ({
|
|
3678
|
-
width: window.screen.availWidth,
|
|
3679
|
-
height: window.screen.availHeight,
|
|
3680
|
-
}));
|
|
3681
|
-
React.useEffect(() => {
|
|
3682
|
-
var _a;
|
|
3683
|
-
function visualViewport(e) {
|
|
3684
|
-
if (dimensionsRef.current.width === e.target.width &&
|
|
3685
|
-
dimensionsRef.current.height === e.target.height) {
|
|
3686
|
-
return;
|
|
3687
|
-
}
|
|
3688
|
-
const newDimensions = {
|
|
3689
|
-
width: e.target.width,
|
|
3690
|
-
height: e.target.height,
|
|
3691
|
-
};
|
|
3692
|
-
dimensionsRef.current = newDimensions;
|
|
3693
|
-
setDimensions(newDimensions);
|
|
3694
|
-
}
|
|
3695
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3696
|
-
return () => {
|
|
3697
|
-
var _a;
|
|
3698
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3699
|
-
};
|
|
3700
|
-
}, []);
|
|
3701
|
-
return React.useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3702
|
-
};
|
|
3703
|
-
|
|
3704
3870
|
const StyledLeadGenLightBoxBFooter = styled__default["default"].div `
|
|
3705
3871
|
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3706
3872
|
padding-inline: var(--spacing-x, 20px);
|
|
@@ -3901,7 +4067,8 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
|
|
|
3901
4067
|
React__default["default"].createElement(index$4.Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
|
|
3902
4068
|
};
|
|
3903
4069
|
|
|
3904
|
-
const InlineLayout = ({ content, inlinePosition, }) => {
|
|
4070
|
+
const InlineLayout = ({ action, content, inlinePosition, campaignCode, }) => {
|
|
4071
|
+
const { apiUrl } = React.useContext(LeadGenContext$1);
|
|
3905
4072
|
const target = React.useMemo(() => {
|
|
3906
4073
|
if (!inlinePosition)
|
|
3907
4074
|
return null;
|
|
@@ -4008,7 +4175,22 @@ const InlineLayout = ({ content, inlinePosition, }) => {
|
|
|
4008
4175
|
}, [inlinePosition]);
|
|
4009
4176
|
if (!inlinePosition || !target)
|
|
4010
4177
|
return null;
|
|
4011
|
-
return ReactDOM.createPortal(
|
|
4178
|
+
return ReactDOM.createPortal(React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
4179
|
+
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
4180
|
+
fetch(`${apiUrl}api/campaign/${campaignCode}/impression`, {
|
|
4181
|
+
method: 'POST',
|
|
4182
|
+
headers: {
|
|
4183
|
+
'Content-Type': 'application/json',
|
|
4184
|
+
},
|
|
4185
|
+
body: JSON.stringify({
|
|
4186
|
+
action,
|
|
4187
|
+
url: location.href.toLowerCase(),
|
|
4188
|
+
title_article: document.title,
|
|
4189
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
4190
|
+
ga_client_id: gaCookie,
|
|
4191
|
+
}),
|
|
4192
|
+
});
|
|
4193
|
+
}) }, content), target);
|
|
4012
4194
|
};
|
|
4013
4195
|
|
|
4014
4196
|
const SideBarLayout = ({ content }) => {
|
|
@@ -4775,7 +4957,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4775
4957
|
];
|
|
4776
4958
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4777
4959
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
4778
|
-
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
4960
|
+
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
|
|
4779
4961
|
var _a, _b;
|
|
4780
4962
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
4781
4963
|
const { isMobile } = useScreenSize.useScreenSize();
|
|
@@ -4800,7 +4982,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4800
4982
|
}
|
|
4801
4983
|
};
|
|
4802
4984
|
const { height } = useViewportDimensions();
|
|
4803
|
-
usePreventScroll()
|
|
4985
|
+
// usePreventScroll()
|
|
4804
4986
|
const formActiveTime = React.useRef(0);
|
|
4805
4987
|
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
4806
4988
|
const listBlockAdded = JSON.parse(extraFields.listBlockAdded);
|
|
@@ -4887,47 +5069,8 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4887
5069
|
return false;
|
|
4888
5070
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4889
5071
|
const onFocus = (e) => {
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
const $Input = e.target;
|
|
4893
|
-
const $TextField = $Input.closest('.leadgen-form_field');
|
|
4894
|
-
const scrollIntoView = {
|
|
4895
|
-
block: 'center',
|
|
4896
|
-
behavior: 'auto',
|
|
4897
|
-
};
|
|
4898
|
-
if ($TextField.classList.contains('DropdownBlock')) {
|
|
4899
|
-
scrollIntoView.block = 'start';
|
|
4900
|
-
const tfOffsetTop = ($TextField === null || $TextField === void 0 ? void 0 : $TextField.offsetTop) || 0;
|
|
4901
|
-
const tfHeight = $TextField.clientHeight;
|
|
4902
|
-
const $ScrollableElement = getParentScroll($TextField);
|
|
4903
|
-
if ($ScrollableElement) {
|
|
4904
|
-
// https://hhgdev.atlassian.net/browse/EL-682
|
|
4905
|
-
const scrollHeight = $ScrollableElement.scrollHeight;
|
|
4906
|
-
if (scrollHeight - (tfOffsetTop + tfHeight) < 192) {
|
|
4907
|
-
scrollIntoView.block = 'end';
|
|
4908
|
-
}
|
|
4909
|
-
}
|
|
4910
|
-
}
|
|
4911
|
-
if (isMobile) {
|
|
4912
|
-
window.scrollTo(0, 0);
|
|
4913
|
-
}
|
|
4914
|
-
$TextField.scrollIntoView(scrollIntoView);
|
|
4915
|
-
}
|
|
4916
|
-
let time = 0;
|
|
4917
|
-
function requestFrame(timestamp) {
|
|
4918
|
-
if (time === 0) {
|
|
4919
|
-
time = timestamp;
|
|
4920
|
-
}
|
|
4921
|
-
if (timestamp - time <= 250) {
|
|
4922
|
-
requestAnimationFrame(requestFrame);
|
|
4923
|
-
}
|
|
4924
|
-
else {
|
|
4925
|
-
scrollIntoView();
|
|
4926
|
-
}
|
|
4927
|
-
}
|
|
4928
|
-
if (isMobile) {
|
|
4929
|
-
requestAnimationFrame(requestFrame);
|
|
4930
|
-
}
|
|
5072
|
+
// EL-926 Temporary turn off handling focus form on mobile to fix scrolling bug on lightbox A
|
|
5073
|
+
return false;
|
|
4931
5074
|
};
|
|
4932
5075
|
const middlewareOnSubmit = (e) => {
|
|
4933
5076
|
e.preventDefault();
|
|
@@ -5110,7 +5253,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5110
5253
|
return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
|
|
5111
5254
|
}
|
|
5112
5255
|
else if (isInline) {
|
|
5113
|
-
return (React__default["default"].createElement(InlineLayout, { content: PopupContainer, inlinePosition: extraFields.popupInlinePosition }));
|
|
5256
|
+
return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition }));
|
|
5114
5257
|
}
|
|
5115
5258
|
return null;
|
|
5116
5259
|
};
|
|
@@ -5208,19 +5351,20 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, showThan
|
|
|
5208
5351
|
const { apiUrl, siteDomain } = React.useContext(LeadGenContext$1);
|
|
5209
5352
|
React.useEffect(() => {
|
|
5210
5353
|
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5354
|
+
!currentLayout.includes('Inline') &&
|
|
5355
|
+
fetch(`${apiUrl}api/campaign/${code}/impression`, {
|
|
5356
|
+
method: 'POST',
|
|
5357
|
+
headers: {
|
|
5358
|
+
'Content-Type': 'application/json',
|
|
5359
|
+
},
|
|
5360
|
+
body: JSON.stringify({
|
|
5361
|
+
action,
|
|
5362
|
+
url: location.href.toLowerCase(),
|
|
5363
|
+
title_article: document.title,
|
|
5364
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
5365
|
+
ga_client_id: gaCookie,
|
|
5366
|
+
}),
|
|
5367
|
+
});
|
|
5224
5368
|
}, []);
|
|
5225
5369
|
const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
|
|
5226
5370
|
const { currentLayout } = extra_fields;
|
|
@@ -5322,7 +5466,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, showThan
|
|
|
5322
5466
|
currentLayout == 'Fullscreen' ||
|
|
5323
5467
|
currentLayout == 'Sidebar' ||
|
|
5324
5468
|
currentLayout == 'Slider') {
|
|
5325
|
-
return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo }));
|
|
5469
|
+
return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
|
|
5326
5470
|
}
|
|
5327
5471
|
else if (currentLayout.includes('Skin')) {
|
|
5328
5472
|
return (React__default["default"].createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
|
|
@@ -5713,8 +5857,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5713
5857
|
leadStartTimeRef.current = Date.now();
|
|
5714
5858
|
}
|
|
5715
5859
|
}, [showCampaign]);
|
|
5716
|
-
if (!currentLayout.includes('Inline'))
|
|
5717
|
-
return null;
|
|
5718
5860
|
return (React__default["default"].createElement(LeadGenContext$1.Provider, { value: {
|
|
5719
5861
|
primaryColor,
|
|
5720
5862
|
apiUrl,
|