@hhgtech/hhg-components 1.29.406 → 1.29.407-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-1fb694a1.js → InputDate-25cf65d0.js} +3 -3
- package/build/{LastPeriod-7c6ea28e.js → LastPeriod-6b0b6e25.js} +1 -1
- package/build/{MobileBottomNavigationIcon-34838fc9.js → MobileBottomNavigationIcon-9ae128e6.js} +3 -3
- package/build/{Spinner-a2aa80eb.js → Spinner-edd61382.js} +1 -1
- package/build/{WhatsApp-b6da3116.js → WhatsApp-ac98a996.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-f06272bc.js → constants-11099a17.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-c5275fcf.js → core-bfa02993.js} +1 -1
- package/build/{dataTransform-797323d1.js → dataTransform-d61b0cfa.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-01b497b9.js → editor-d82512eb.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-3b4c9453.js → InputDate-884a30eb.js} +3 -3
- package/build/esm/{LastPeriod-da7b38f8.js → LastPeriod-7d22a89e.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-d51e07e5.js → MobileBottomNavigationIcon-623ec6f1.js} +3 -3
- package/build/esm/{Spinner-5f576920.js → Spinner-d53eb47c.js} +1 -1
- package/build/esm/{WhatsApp-3506a0f5.js → WhatsApp-339ae07a.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-8a0fa237.js → constants-d13fab58.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-176ed0f5.js → core-fbdd92ec.js} +1 -1
- package/build/esm/{dataTransform-8be73d0a.js → dataTransform-6f29cc58.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-2243541f.js → editor-3002cf4c.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-02b963ba.js → healthTools-7fc1b2d1.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-174970d9.js → index-036f3d00.js} +1 -1
- package/build/esm/{index-723c3203.js → index-05280423.js} +7 -7
- package/build/esm/{index-b797cc43.js → index-07316832.js} +16 -16
- package/build/esm/{index-a31cfb02.js → index-0790f7d2.js} +13 -13
- package/build/esm/{index-d3411682.js → index-08a3dd34.js} +16 -16
- package/build/esm/{index-7f71d4e8.js → index-0c2a7709.js} +6 -6
- package/build/esm/{index-b7898112.js → index-11294e28.js} +30 -30
- package/build/esm/{index-5ebd1d0f.js → index-139ebe3f.js} +2 -2
- package/build/esm/{index-10db4cc2.js → index-14fb2b3c.js} +16 -16
- package/build/esm/{index-b06aabae.js → index-1ac89439.js} +16 -16
- package/build/esm/{index-d567c370.js → index-1ced43c4.js} +17 -17
- package/build/esm/{index-071f5708.js → index-28ef7ff0.js} +2 -2
- package/build/esm/{index-e46789b6.js → index-2a6ba90c.js} +18 -18
- package/build/esm/{index-ac20f08a.js → index-2a728ee1.js} +4 -4
- package/build/esm/{index-b41ed641.js → index-2af29f0e.js} +3 -3
- package/build/esm/{index-7c2a2eee.js → index-30d16c50.js} +2 -2
- package/build/esm/{index-508a1d04.js → index-3f24f4fe.js} +3 -3
- package/build/esm/{index-530501db.js → index-3f8a3a02.js} +2 -2
- package/build/esm/{index-2864c9d0.js → index-412c07d4.js} +4 -4
- package/build/esm/{index-623cd2e2.js → index-43c4e10d.js} +2 -2
- package/build/esm/{index-11087b3c.js → index-48415e87.js} +13 -13
- package/build/esm/{index-20b12515.js → index-4c4ce8cd.js} +6 -6
- package/build/esm/{index-9e644028.js → index-54179b13.js} +17 -17
- package/build/esm/{index-86d3e7bf.js → index-58734934.js} +1 -1
- package/build/esm/{index-1fde2437.js → index-5fb324fe.js} +3 -3
- package/build/esm/{index-7b3306c8.js → index-6832616b.js} +17 -17
- package/build/esm/{index-1af264a4.js → index-69383eba.js} +6 -6
- package/build/esm/{index-0f90c5a5.js → index-69d9df53.js} +22 -22
- package/build/esm/{index-0777adf2.js → index-6bb12709.js} +5 -5
- package/build/esm/{index-7b4ba23e.js → index-6c266118.js} +25 -25
- package/build/esm/{index-ff44a25f.js → index-804005a3.js} +18 -18
- package/build/esm/{index-8b48b398.js → index-865b7ca1.js} +21 -21
- package/build/esm/{index-32f69dc3.js → index-880674f8.js} +1 -1
- package/build/esm/{index-92ea69ad.js → index-8a353ff2.js} +11 -11
- package/build/esm/{index-8df813c8.js → index-8c42251a.js} +5 -5
- package/build/esm/{index-1d59d866.js → index-8cc11322.js} +1 -1
- package/build/esm/{index-a8e6f6d0.js → index-90b9102d.js} +2 -2
- package/build/esm/{index-db188c66.js → index-91bd09e2.js} +10 -10
- package/build/esm/{index-5a244dc4.js → index-94248636.js} +11 -11
- package/build/esm/{index-2db660c3.js → index-944a4df1.js} +2 -2
- package/build/esm/{index-d82818aa.js → index-99644f85.js} +2 -2
- package/build/esm/{index-718eb885.js → index-9a64e49c.js} +31 -31
- package/build/esm/{index-34d3e999.js → index-9c2382d3.js} +13 -13
- package/build/esm/{index-14b4e7a4.js → index-a386377d.js} +1 -1
- package/build/esm/{index-4b3d27fd.js → index-ac119ad9.js} +2 -2
- package/build/esm/{index-39835389.js → index-afdf9b2b.js} +2 -2
- package/build/esm/{index-5eb1dcb5.js → index-b39ee999.js} +6 -6
- package/build/esm/{index-3aa54756.js → index-b648f88c.js} +3 -3
- package/build/esm/{index-ba8a3063.js → index-b7f92612.js} +3 -3
- package/build/esm/{index-551b7a7c.js → index-b8d7ef9e.js} +3 -3
- package/build/esm/{index-800ce298.js → index-bc9d349f.js} +13 -13
- package/build/esm/{index-a82157e7.js → index-c108c6d2.js} +2 -2
- package/build/esm/{index-906f8fe6.js → index-c8e0f8e4.js} +7 -7
- package/build/esm/{index-b2d6bbca.js → index-d11b568c.js} +1 -1
- package/build/esm/{index-0e422a96.js → index-d67ec678.js} +1 -1
- package/build/esm/{index-277b063b.js → index-d77488d8.js} +1 -1
- package/build/esm/{index-b4f61d89.js → index-db2cb4fb.js} +2 -2
- package/build/esm/{index-2e302c4e.js → index-e0a644ec.js} +17 -17
- package/build/esm/{index-cef2ca3c.js → index-e3b6bcf9.js} +2 -2
- package/build/esm/{index-27159181.js → index-e5ce5e00.js} +32 -32
- package/build/esm/{index-a1b7740f.js → index-f57a7d16.js} +15 -15
- package/build/esm/{index-d10851aa.js → index-f74c8482.js} +6 -6
- package/build/esm/{index-9ac9d9c8.js → index-fe4803f6.js} +1 -1
- package/build/esm/{index-caff8004.js → index-fefd118d.js} +24 -24
- package/build/esm/{index-fc7273b6.js → index-ff0dbf55.js} +2 -2
- package/build/esm/index.js +118 -118
- package/build/esm/{labelSorting-5fc6f05a.js → labelSorting-07e739d1.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/utils/formatFormData.d.ts +1 -0
- package/build/esm/lead.js +370 -218
- package/build/esm/{logoIcon-b5715544.js → logoIcon-9f768d1c.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-c808569f.js → post-a49354df.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-42c528f7.js → store-363e96a6.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-e950ee7e.js → surveyThankyouCard-36f58672.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-0785fcb4.js → translationsProvider-3ec04b76.js} +1 -1
- package/build/esm/{treePopoverMenu-dc4ed426.js → treePopoverMenu-c71861a4.js} +19 -19
- package/build/esm/{types-c67d78d4.js → types-b00afa05.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-273a950d.js → useCategory-1ef28aba.js} +5 -5
- package/build/esm/{useHealthToolCache-38fa7093.js → useHealthToolCache-9361dc64.js} +1 -1
- package/build/esm/{useMantineLocale-6f656d28.js → useMantineLocale-730c8a73.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-1ece1b52.js → usePlacesAutocomplete-fc0589c3.js} +1 -1
- package/build/esm/{useScreenSize-48cfd1bc.js → useScreenSize-b82e414c.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-c921c188.js → utils-048fca6f.js} +5 -5
- package/build/esm/{utils-ba5b6d1d.js → utils-49030cc0.js} +3 -3
- package/build/esm/{utils-0f0e3a73.js → utils-8179d599.js} +2 -2
- package/build/esm/{utils-d652bb24.js → utils-939511b6.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-e0481de3.js → healthTools-1b2a6f09.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-b0016f00.js → index-00e45013.js} +4 -4
- package/build/{index-adffc56b.js → index-0418b783.js} +11 -11
- package/build/{index-e8bce397.js → index-0c781ebb.js} +1 -1
- package/build/{index-e870af88.js → index-0d776bf3.js} +5 -5
- package/build/{index-9155e1c5.js → index-0fbc4fe4.js} +24 -24
- package/build/{index-793593a5.js → index-1157d07c.js} +2 -2
- package/build/{index-4b0d549e.js → index-13d41eb0.js} +2 -2
- package/build/{index-8c36e8d2.js → index-13d49b37.js} +17 -17
- package/build/{index-e7901523.js → index-210347c7.js} +5 -5
- package/build/{index-c51a7d55.js → index-21adbd80.js} +1 -1
- package/build/{index-9cd176b6.js → index-25b5a601.js} +13 -13
- package/build/{index-b35f6874.js → index-264d6a0e.js} +17 -17
- package/build/{index-ac634c58.js → index-2a6794d8.js} +6 -6
- package/build/{index-c2841e4d.js → index-2e87e916.js} +3 -3
- package/build/{index-b12997ee.js → index-30ab140f.js} +1 -1
- package/build/{index-c6b759aa.js → index-3356d456.js} +30 -30
- package/build/{index-d6a3baa7.js → index-33f4e324.js} +3 -3
- package/build/{index-f82703e7.js → index-3aac7cb6.js} +2 -2
- package/build/{index-17626f65.js → index-3d0abb02.js} +1 -1
- package/build/{index-a25c07c8.js → index-4261bb0d.js} +2 -2
- package/build/{index-55919fca.js → index-50c386f9.js} +16 -16
- package/build/{index-55649a03.js → index-547afddd.js} +2 -2
- package/build/{index-8f5fc0cc.js → index-56becedc.js} +7 -7
- package/build/{index-7ba201ae.js → index-5851deb7.js} +6 -6
- package/build/{index-eb2febbf.js → index-5da8ca66.js} +17 -17
- package/build/{index-ec3e1292.js → index-6012453f.js} +6 -6
- package/build/{index-6958b244.js → index-62a58501.js} +16 -16
- package/build/{index-5ebf229f.js → index-66782023.js} +31 -31
- package/build/{index-ccf6bc00.js → index-6766da9b.js} +6 -6
- package/build/{index-8fde9846.js → index-7bf82acf.js} +3 -3
- package/build/{index-679a2e98.js → index-7ce9d7e9.js} +2 -2
- package/build/{index-f90bea5e.js → index-8484a323.js} +22 -22
- package/build/{index-f4131cbb.js → index-8d7dfa08.js} +6 -6
- package/build/{index-b4fbb00f.js → index-8e26493c.js} +1 -1
- package/build/{index-f54da377.js → index-9035e05e.js} +10 -10
- package/build/{index-1bbd327d.js → index-9344fdb1.js} +2 -2
- package/build/{index-cdbe94db.js → index-937c6190.js} +1 -1
- package/build/{index-0605ea8f.js → index-958e3fbc.js} +1 -1
- package/build/{index-cce68115.js → index-960ba602.js} +2 -2
- package/build/{index-75c0855f.js → index-9796ee7b.js} +16 -16
- package/build/{index-08f2ffee.js → index-98fd7223.js} +18 -18
- package/build/{index-f0532f09.js → index-9c14260c.js} +1 -1
- package/build/{index-fcb6100a.js → index-9cb37cdc.js} +13 -13
- package/build/{index-6548f1ab.js → index-9eb18b73.js} +4 -4
- package/build/{index-4d82ff67.js → index-a1bd10b4.js} +3 -3
- package/build/{index-8c906ecd.js → index-a3754c0f.js} +18 -18
- package/build/{index-c3023a5f.js → index-a3d52108.js} +16 -16
- package/build/{index-c5382192.js → index-a400412d.js} +2 -2
- package/build/{index-ac19405c.js → index-ab1cc233.js} +13 -13
- package/build/{index-14cf9607.js → index-b22a45db.js} +21 -21
- package/build/{index-b5fd93b0.js → index-b4dc7385.js} +32 -32
- package/build/{index-5f23560d.js → index-b8877c6d.js} +2 -2
- package/build/{index-7d03b1cc.js → index-b90c4e03.js} +2 -2
- package/build/{index-18d6bf15.js → index-c3112171.js} +11 -11
- package/build/{index-9d9144aa.js → index-c6aafde1.js} +2 -2
- package/build/{index-747f5f86.js → index-cec69250.js} +13 -13
- package/build/{index-d75d922c.js → index-d2803790.js} +2 -2
- package/build/{index-24e3a655.js → index-d2885174.js} +7 -7
- package/build/{index-583fa029.js → index-d932ff2f.js} +2 -2
- package/build/{index-a18249e5.js → index-d9ca6ff5.js} +3 -3
- package/build/{index-bbf8c014.js → index-e84907aa.js} +1 -1
- package/build/{index-d52c72da.js → index-f2152805.js} +15 -15
- package/build/{index-745a1475.js → index-f78494c4.js} +3 -3
- package/build/{index-07f3d4dc.js → index-fa80737f.js} +17 -17
- package/build/{index-44849e36.js → index-fecf1359.js} +25 -25
- package/build/index.js +118 -118
- package/build/{labelSorting-2f83c4ea.js → labelSorting-fd6dd4dc.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/utils/formatFormData.d.ts +1 -0
- package/build/lead.js +369 -217
- package/build/{logoIcon-27d14ab7.js → logoIcon-dfeb5ff5.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-8c03ba04.js → post-6fe1e891.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-daff0960.js → store-e61a71de.js} +3 -3
- package/build/subot.js +35 -35
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-ae887b3c.js → surveyThankyouCard-d9521b7a.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-26ea8c26.js → translationsProvider-85a121ac.js} +1 -1
- package/build/{treePopoverMenu-408f841a.js → treePopoverMenu-478bbc5f.js} +19 -19
- package/build/{types-b8dfc575.js → types-39070ca0.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-01ff8cec.js → useCategory-32ce9519.js} +5 -5
- package/build/{useHealthToolCache-14a8c866.js → useHealthToolCache-e88aff91.js} +1 -1
- package/build/{useMantineLocale-73ad4b92.js → useMantineLocale-31c506b0.js} +6 -6
- package/build/{usePlacesAutocomplete-f3af8e47.js → usePlacesAutocomplete-d90e7f2d.js} +1 -1
- package/build/{useScreenSize-48a58621.js → useScreenSize-ab8a61ac.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-fa1b78cb.js → utils-31c75602.js} +3 -3
- package/build/{utils-e24e2403.js → utils-6808e437.js} +2 -2
- package/build/{utils-3169c46a.js → utils-bf605377.js} +2 -2
- package/build/{utils-22c22258.js → utils-dfc99d1d.js} +5 -5
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-f5d35644.js → BMI_BOYS.percentile.monthly-ef05c54d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-d09ef477.js → BMI_BOYS.percentile.weekly-4cdb2239.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-f7e5de53.js → BMI_BOYS.percentile.yearly-b7be1b5a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b69a476e.js → BMI_BOYS.zscore.monthly-afba7ba3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-0450476d.js → BMI_BOYS.zscore.weekly-41771492.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-801956d1.js → BMI_BOYS.zscore.yearly-028107a7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-3e79f479.js → BMI_GIRLS.percentile.monthly-5115e912.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-27303348.js → BMI_GIRLS.percentile.weekly-c2c0d5eb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-20fd5aa2.js → BMI_GIRLS.percentile.yearly-feb4476c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-cfac2195.js → BMI_GIRLS.zscore.monthly-1d136aa2.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-bb9a399e.js → BMI_GIRLS.zscore.weekly-11abb7ae.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-e5d8581f.js → BMI_GIRLS.zscore.yearly-3d4d8ede.js} +0 -0
- /package/build/{ChevronDown-ba68f6bf.js → ChevronDown-a3f9319c.js} +0 -0
- /package/build/{Close-630b43b9.js → Close-da29a21c.js} +0 -0
- /package/build/{Google-4b0315d9.js → Google-ce54f50e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7bda0461.js → HEAD CIRCUM_BOYS.percentile.monthly-5a0f1cad.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-d844a6aa.js → HEAD CIRCUM_BOYS.percentile.weekly-66e20f01.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-5606e3aa.js → HEAD CIRCUM_BOYS.percentile.yearly-e1d00dc3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-eaf10e03.js → HEAD CIRCUM_BOYS.zscore.monthly-be26e5e8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c8e9f0e1.js → HEAD CIRCUM_BOYS.zscore.weekly-ad60fba9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-4bf1ce97.js → HEAD CIRCUM_BOYS.zscore.yearly-4abafb2c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-fec68dab.js → HEAD CIRCUM_GIRLS.percentile.monthly-423194a2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-5035bcba.js → HEAD CIRCUM_GIRLS.percentile.weekly-9e6db969.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-42e96f7e.js → HEAD CIRCUM_GIRLS.percentile.yearly-14a5c011.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-f70669b1.js → HEAD CIRCUM_GIRLS.zscore.monthly-e3af15a1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-f8342d25.js → HEAD CIRCUM_GIRLS.zscore.weekly-f746dd0a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-2f08d781.js → HEAD CIRCUM_GIRLS.zscore.yearly-b503903a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-976a1e34.js → HEIGHT_BOYS.percentile.monthly-b7e4b6bf.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-2ed75dca.js → HEIGHT_BOYS.percentile.weekly-da509b31.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-7882cae1.js → HEIGHT_BOYS.percentile.yearly-fe066a6a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-e7602d7e.js → HEIGHT_BOYS.zscore.monthly-6ee80d6a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-fa5db7f9.js → HEIGHT_BOYS.zscore.weekly-17f97f17.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-48ea6d19.js → HEIGHT_BOYS.zscore.yearly-d783b79a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-8ec74cfb.js → HEIGHT_GIRLS.percentile.monthly-c9a84692.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-01108585.js → HEIGHT_GIRLS.percentile.weekly-806fcdd7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-bf885f9a.js → HEIGHT_GIRLS.percentile.yearly-8d1c91e6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-800f8d45.js → HEIGHT_GIRLS.zscore.monthly-977c553f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-1c19f40e.js → HEIGHT_GIRLS.zscore.weekly-7cafcbe4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-8da5e072.js → HEIGHT_GIRLS.zscore.yearly-04ab0195.js} +0 -0
- /package/build/{Locale-74978eb4.js → Locale-6e6aabd6.js} +0 -0
- /package/build/{Visible-712a5270.js → Visible-ba990704.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-663017dc.js → WEIGHT_BOYS.percentile.monthly-db3899d3.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-91d765e7.js → WEIGHT_BOYS.percentile.weekly-7a9bf25a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-2c4aed81.js → WEIGHT_BOYS.percentile.yearly-02b65659.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-937a82d7.js → WEIGHT_BOYS.zscore.monthly-fb7a290c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-d6400f44.js → WEIGHT_BOYS.zscore.weekly-dbf25584.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-0794f912.js → WEIGHT_BOYS.zscore.yearly-ef1e5822.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-2e63c5fc.js → WEIGHT_GIRLS.percentile.monthly-3d60d0e2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-88d1b94e.js → WEIGHT_GIRLS.percentile.weekly-c013a21e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-d5a3a899.js → WEIGHT_GIRLS.percentile.yearly-1924eee4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-ad25e1bb.js → WEIGHT_GIRLS.zscore.monthly-94d9cd72.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-73022787.js → WEIGHT_GIRLS.zscore.weekly-86f8261e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-91032798.js → WEIGHT_GIRLS.zscore.yearly-5be19723.js} +0 -0
- /package/build/{animation-1e953124.js → animation-6add51a8.js} +0 -0
- /package/build/{constants-b946c55e.js → constants-06b4f39e.js} +0 -0
- /package/build/{constants-aac0f9a5.js → constants-265b447a.js} +0 -0
- /package/build/{constants-b84181b5.js → constants-3a4d2a58.js} +0 -0
- /package/build/{dataTransform-d82b7045.js → dataTransform-23616a28.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-61085804.js → BMI_BOYS.percentile.monthly-e8d5dd22.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-853990c1.js → BMI_BOYS.percentile.weekly-834b66ec.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-4620d726.js → BMI_BOYS.percentile.yearly-d7a66067.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-05fb8b76.js → BMI_BOYS.zscore.monthly-faa2ec70.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-8799321e.js → BMI_BOYS.zscore.weekly-a1bfc992.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8fb9b200.js → BMI_BOYS.zscore.yearly-85901f86.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-be59e70e.js → BMI_GIRLS.percentile.monthly-272445a8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-f218d3a7.js → BMI_GIRLS.percentile.weekly-9207a006.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-c2556b07.js → BMI_GIRLS.percentile.yearly-81abe66e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-da114123.js → BMI_GIRLS.zscore.monthly-5d0ffe30.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-233b27d6.js → BMI_GIRLS.zscore.weekly-b3e33823.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-7f767d9f.js → BMI_GIRLS.zscore.yearly-796970f9.js} +0 -0
- /package/build/esm/{ChevronDown-f3ec9ac6.js → ChevronDown-aa17f34e.js} +0 -0
- /package/build/esm/{Close-5b2aeef4.js → Close-c4f4cf2f.js} +0 -0
- /package/build/esm/{Google-26145047.js → Google-b3296862.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-be6de289.js → HEAD CIRCUM_BOYS.percentile.monthly-e18b7a58.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-cb3595d6.js → HEAD CIRCUM_BOYS.percentile.weekly-6257a163.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-271db11d.js → HEAD CIRCUM_BOYS.percentile.yearly-f18d09d2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-36f170c0.js → HEAD CIRCUM_BOYS.zscore.monthly-dfc46c76.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-05d9686c.js → HEAD CIRCUM_BOYS.zscore.weekly-058687c5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-d668f732.js → HEAD CIRCUM_BOYS.zscore.yearly-9cd77c0a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-e650eb46.js → HEAD CIRCUM_GIRLS.percentile.monthly-aac1f2eb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-4cc1c029.js → HEAD CIRCUM_GIRLS.percentile.weekly-75086802.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-05ceab8f.js → HEAD CIRCUM_GIRLS.percentile.yearly-e1f96e0d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-bb480f21.js → HEAD CIRCUM_GIRLS.zscore.monthly-8118e300.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a3c1eed3.js → HEAD CIRCUM_GIRLS.zscore.weekly-83f61bbb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-24ca0022.js → HEAD CIRCUM_GIRLS.zscore.yearly-47a8e82f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-4d0135d2.js → HEIGHT_BOYS.percentile.monthly-f19f6662.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-c1007dce.js → HEIGHT_BOYS.percentile.weekly-cae20fee.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f5ceb369.js → HEIGHT_BOYS.percentile.yearly-ea8af089.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-ab830d9c.js → HEIGHT_BOYS.zscore.monthly-18698e4b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-14d78ca6.js → HEIGHT_BOYS.zscore.weekly-ef1a2e02.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-823e5fa9.js → HEIGHT_BOYS.zscore.yearly-b6c22f9d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ecbad43c.js → HEIGHT_GIRLS.percentile.monthly-a7dde3b1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-8b3e9b9c.js → HEIGHT_GIRLS.percentile.weekly-cbe15744.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-45a8a544.js → HEIGHT_GIRLS.percentile.yearly-62826a7b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-9d1b744c.js → HEIGHT_GIRLS.zscore.monthly-96bd4cc9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-1639371f.js → HEIGHT_GIRLS.zscore.weekly-7f72ca9a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-fffcfe7a.js → HEIGHT_GIRLS.zscore.yearly-77dea334.js} +0 -0
- /package/build/esm/{Locale-3d4c841b.js → Locale-e33e5c57.js} +0 -0
- /package/build/esm/{Visible-9f369a4b.js → Visible-359b4cc6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-89c61778.js → WEIGHT_BOYS.percentile.monthly-b9bb1804.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-5108a082.js → WEIGHT_BOYS.percentile.weekly-0c9ce57d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-2764c572.js → WEIGHT_BOYS.percentile.yearly-24f63c14.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-103ce77a.js → WEIGHT_BOYS.zscore.monthly-6ca0dacf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6d11c499.js → WEIGHT_BOYS.zscore.weekly-216d9421.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-c514433d.js → WEIGHT_BOYS.zscore.yearly-93d2bde5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-54453150.js → WEIGHT_GIRLS.percentile.monthly-ba72ea96.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-22024a25.js → WEIGHT_GIRLS.percentile.weekly-52de3f3c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9a9ded29.js → WEIGHT_GIRLS.percentile.yearly-4096b0b7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-00447d43.js → WEIGHT_GIRLS.zscore.monthly-254923c0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-73650cf1.js → WEIGHT_GIRLS.zscore.weekly-b8876196.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-eb770530.js → WEIGHT_GIRLS.zscore.yearly-08ee9837.js} +0 -0
- /package/build/esm/{animation-f211761b.js → animation-77bc3285.js} +0 -0
- /package/build/esm/{constants-45dc55e9.js → constants-b733dd57.js} +0 -0
- /package/build/esm/{constants-e7243bc4.js → constants-c7d2b6ae.js} +0 -0
- /package/build/esm/{constants-c647ea9f.js → constants-d784a13b.js} +0 -0
- /package/build/esm/{dataTransform-c560012d.js → dataTransform-09371dbc.js} +0 -0
- /package/build/esm/{index-e8b63997.js → index-07d99df9.js} +0 -0
- /package/build/esm/{index-e7f08812.js → index-2d386ba8.js} +0 -0
- /package/build/esm/{index-91f2cfd2.js → index-35aaddfc.js} +0 -0
- /package/build/esm/{index-8260f136.js → index-42ba4ab6.js} +0 -0
- /package/build/esm/{index-f076afa3.js → index-7a26f5db.js} +0 -0
- /package/build/esm/{index-bc5fd573.js → index-aa88b199.js} +0 -0
- /package/build/esm/{index-cdb7391f.js → index-bef5d5be.js} +0 -0
- /package/build/esm/{index-aaca91dd.js → index-d737a01f.js} +0 -0
- /package/build/esm/{index.styles-487c4776.js → index.styles-fe2663e9.js} +0 -0
- /package/build/esm/{localizeNumberFormat-8f2b44c2.js → localizeNumberFormat-0fb603f6.js} +0 -0
- /package/build/esm/{normalizeLink-d82e683b.js → normalizeLink-a6b0962b.js} +0 -0
- /package/build/esm/{number-f2d43edb.js → number-f7d0fa6a.js} +0 -0
- /package/build/esm/{other-5aa57b9c.js → other-bf8496b8.js} +0 -0
- /package/build/esm/{paths-5ac08283.js → paths-d61ce0a0.js} +0 -0
- /package/build/esm/{translationsContext-c575a4a1.js → translationsContext-004915f2.js} +0 -0
- /package/build/esm/{tslib.es6-fd45caee.js → tslib.es6-3a5afd52.js} +0 -0
- /package/build/esm/{types-f85ce519.js → types-a75c6c23.js} +0 -0
- /package/build/esm/{useIsInit-1a9c850f.js → useIsInit-c3df944f.js} +0 -0
- /package/build/esm/{useOutsideClick-f30ef16e.js → useOutsideClick-569f4818.js} +0 -0
- /package/build/esm/{useScrollbarSize-46bb915e.js → useScrollbarSize-57814755.js} +0 -0
- /package/build/esm/{useUniqueId-1b56b562.js → useUniqueId-2a14c546.js} +0 -0
- /package/build/esm/{utils-2fc80087.js → utils-2dbd7a3a.js} +0 -0
- /package/build/{index-0b414e68.js → index-01d883c4.js} +0 -0
- /package/build/{index-f3ed20ef.js → index-1b89f3a8.js} +0 -0
- /package/build/{index-7aa88c84.js → index-384c12ea.js} +0 -0
- /package/build/{index-8eb072aa.js → index-3b1bdfd2.js} +0 -0
- /package/build/{index-68048bfe.js → index-4311b40b.js} +0 -0
- /package/build/{index-bd4f2ade.js → index-4599320e.js} +0 -0
- /package/build/{index-8913f7e4.js → index-6e32ec77.js} +0 -0
- /package/build/{index-e34fc9e5.js → index-85ff7835.js} +0 -0
- /package/build/{index.styles-5d10f3a2.js → index.styles-b7f230c7.js} +0 -0
- /package/build/{localizeNumberFormat-1298ecf4.js → localizeNumberFormat-6d589ee0.js} +0 -0
- /package/build/{normalizeLink-af167230.js → normalizeLink-196eff9b.js} +0 -0
- /package/build/{number-d1a4bc34.js → number-1e845fdb.js} +0 -0
- /package/build/{other-272f3575.js → other-5662c73b.js} +0 -0
- /package/build/{paths-b9a2cd50.js → paths-d145d402.js} +0 -0
- /package/build/{translationsContext-7bce8baa.js → translationsContext-204a693b.js} +0 -0
- /package/build/{tslib.es6-4e9cd996.js → tslib.es6-ce340795.js} +0 -0
- /package/build/{types-91e97d0f.js → types-b619b057.js} +0 -0
- /package/build/{useIsInit-00eb0386.js → useIsInit-8e92e935.js} +0 -0
- /package/build/{useOutsideClick-090d88a0.js → useOutsideClick-b2e06374.js} +0 -0
- /package/build/{useScrollbarSize-93bc8446.js → useScrollbarSize-9d3bf196.js} +0 -0
- /package/build/{useUniqueId-4fa71ab2.js → useUniqueId-2a430bf7.js} +0 -0
- /package/build/{utils-82e41a76.js → utils-5519e02d.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-ce340795.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-00e45013.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-937c6190.js');
|
|
14
|
+
var translationsContext = require('./translationsContext-204a693b.js');
|
|
15
|
+
var utils$1 = require('./utils-5519e02d.js');
|
|
16
|
+
var index$2 = require('./index-4261bb0d.js');
|
|
17
|
+
var index$3 = require('./index-0418b783.js');
|
|
18
|
+
var index$5 = require('./index-8d7dfa08.js');
|
|
19
|
+
var index$4 = require('./index-8e26493c.js');
|
|
20
|
+
require('./index.styles-b7f230c7.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-31c506b0.js');
|
|
23
|
+
var index$9 = require('./index-21adbd80.js');
|
|
24
|
+
require('./index-384c12ea.js');
|
|
25
|
+
var index$7 = require('./index-a400412d.js');
|
|
26
|
+
require('./other-5662c73b.js');
|
|
27
|
+
require('./index-2e87e916.js');
|
|
28
|
+
var utils = require('./utils-6808e437.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-d90e7f2d.js');
|
|
31
|
+
var index$6 = require('./index-13d41eb0.js');
|
|
32
|
+
var translationsProvider = require('./translationsProvider-85a121ac.js');
|
|
33
|
+
var Locale = require('./Locale-6e6aabd6.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-31c75602.js');
|
|
41
|
+
var index$8 = require('./index-3b1bdfd2.js');
|
|
42
|
+
var useScreenSize = require('./useScreenSize-ab8a61ac.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-b90c4e03.js');
|
|
46
|
+
var InputDate = require('./InputDate-25cf65d0.js');
|
|
47
|
+
var index$b = require('./index-7ce9d7e9.js');
|
|
48
|
+
var Close = require('./Close-da29a21c.js');
|
|
48
49
|
require('./constantsIsProduction.js');
|
|
49
|
-
require('./normalizeLink-
|
|
50
|
-
require('./constantsDomainLocales.js');
|
|
50
|
+
require('./normalizeLink-196eff9b.js');
|
|
51
51
|
require('@hhgtech/icons/other');
|
|
52
52
|
require('@mantine/carousel');
|
|
53
53
|
require('classnames');
|
|
54
|
-
require('./useUniqueId-
|
|
54
|
+
require('./useUniqueId-2a430bf7.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-01d883c4.js');
|
|
73
73
|
require('slugify');
|
|
74
74
|
require('string-format');
|
|
75
75
|
require('./togetherApiPaths.js');
|
|
76
|
-
require('./constants-
|
|
76
|
+
require('./constants-06b4f39e.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,
|
|
@@ -1021,15 +1024,15 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1021
1024
|
case 'TextBlock':
|
|
1022
1025
|
return (React__default["default"].createElement(index$3.Input, Object.assign({ key: index, withAsterisk: required, spellCheck: false, type: "text", placeholder: placeholder, className: cx('leadgen-control', classes.control),
|
|
1023
1026
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
1024
|
-
label: placeholder, "data-control": "text", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
1027
|
+
label: placeholder, "data-control": "text", "data-lead-control": name, "data-is-required": required, name: value }, form.getInputProps(value))));
|
|
1025
1028
|
case 'NumberBlock':
|
|
1026
1029
|
return (React__default["default"].createElement(index$3.NumberInput, Object.assign({ key: index, withAsterisk: required, spellCheck: false, type: "number", placeholder: placeholder, className: cx('leadgen-control', classes.control),
|
|
1027
1030
|
// onChange={(e) => inputOnChange('number', e)}
|
|
1028
|
-
label: placeholder, "data-control": "number", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
1031
|
+
label: placeholder, "data-control": "number", "data-lead-control": name, "data-is-required": required, name: value }, form.getInputProps(value))));
|
|
1029
1032
|
case 'EmailBlock':
|
|
1030
1033
|
return (React__default["default"].createElement(index$3.Input, Object.assign({ key: index, withAsterisk: required, spellCheck: false,
|
|
1031
1034
|
// type="email"
|
|
1032
|
-
placeholder: placeholder, className: cx('leadgen-control', classes.control), label: placeholder, "data-control": "email", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
1035
|
+
placeholder: placeholder, className: cx('leadgen-control', classes.control), label: placeholder, "data-control": "email", "data-lead-control": name, "data-is-required": required, name: value }, form.getInputProps(value))));
|
|
1033
1036
|
case 'PhoneOtpBlock':
|
|
1034
1037
|
case 'WhatsappOtpBlock':
|
|
1035
1038
|
case 'ZaloOtpBlock':
|
|
@@ -1044,14 +1047,14 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1044
1047
|
form.setFieldValue(value, v);
|
|
1045
1048
|
},
|
|
1046
1049
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
1047
|
-
id: id, defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name })));
|
|
1050
|
+
id: id, defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name, "data-is-required": required })));
|
|
1048
1051
|
}
|
|
1049
1052
|
case 'LocationBlock': {
|
|
1050
1053
|
return (React__default["default"].createElement(LocationBlock, { key: index, name: value, placeholder: placeholder, locale: locale, required: required }));
|
|
1051
1054
|
}
|
|
1052
1055
|
case 'DateBlock':
|
|
1053
1056
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1054
|
-
React__default["default"].createElement(index$5.DatePicker, Object.assign({ withAsterisk: required, key: index, type: "default", name: value, placeholder: placeholder, className: cx('leadgen-control', classes.control), label: placeholder, "data-control": "date", "data-lead-control": name, popoverProps: popoverProps }, form.getInputProps(value))),
|
|
1057
|
+
React__default["default"].createElement(index$5.DatePicker, Object.assign({ withAsterisk: required, key: index, type: "default", name: value, placeholder: placeholder, className: cx('leadgen-control', classes.control), label: placeholder, "data-control": "date", "data-lead-control": name, "data-is-required": required, popoverProps: popoverProps }, form.getInputProps(value))),
|
|
1055
1058
|
React__default["default"].createElement("input", { type: "hidden", name: value, "data-control": "date" })));
|
|
1056
1059
|
case 'LinkButtonBlock':
|
|
1057
1060
|
return (React__default["default"].createElement("div", { key: index },
|
|
@@ -1069,14 +1072,14 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1069
1072
|
display: 'flex',
|
|
1070
1073
|
flexDirection: 'column',
|
|
1071
1074
|
gap: 8,
|
|
1072
|
-
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default["default"].createElement(index$3.Checkbox, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "checkbox", "data-lead-control": name }))))));
|
|
1075
|
+
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default["default"].createElement(index$3.Checkbox, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }))))));
|
|
1073
1076
|
case 'RadioBlock':
|
|
1074
1077
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1075
1078
|
isSendMailChimp && (React__default["default"].createElement(index$3.Input, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
1076
|
-
React__default["default"].createElement(index$3.Radio.Group, Object.assign({ withAsterisk: required, className: cx('leadgen-control', classes.control), key: index, label: placeholder, size: "md" }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default["default"].createElement(index$3.Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio", "data-lead-control": name }))))));
|
|
1079
|
+
React__default["default"].createElement(index$3.Radio.Group, Object.assign({ withAsterisk: required, className: cx('leadgen-control', classes.control), key: index, label: placeholder, size: "md" }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default["default"].createElement(index$3.Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio", "data-lead-control": name, "data-is-required": required }))))));
|
|
1077
1080
|
case 'DropdownBlock':
|
|
1078
1081
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1079
|
-
React__default["default"].createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown', "data-lead-control": name }),
|
|
1082
|
+
React__default["default"].createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown', "data-lead-control": name, "data-is-required": required }),
|
|
1080
1083
|
React__default["default"].createElement(index$3.Select, Object.assign({ key: index, className: cx('leadgen-control', classes.control), label: placeholder, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
1081
1084
|
value: l.value,
|
|
1082
1085
|
label: l.placeholder,
|
|
@@ -1084,7 +1087,7 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1084
1087
|
case 'TncBlock':
|
|
1085
1088
|
const tncInputProps = form.getInputProps('TNC-' + b.id);
|
|
1086
1089
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1087
|
-
React__default["default"].createElement(index$3.Checkbox, Object.assign({ name: 'TNC-' + b.id, key: b.id, label: React__default["default"].createElement("p", { className: "lead-modal__tnc-link", dangerouslySetInnerHTML: { __html: data.valueHTML } }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name }, tncInputProps, { error: tncInputProps.error ? tncInputProps.error : undefined }))));
|
|
1090
|
+
React__default["default"].createElement(index$3.Checkbox, Object.assign({ name: 'TNC-' + b.id, key: b.id, label: React__default["default"].createElement("p", { className: "lead-modal__tnc-link", dangerouslySetInnerHTML: { __html: data.valueHTML } }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }, tncInputProps, { error: tncInputProps.error ? tncInputProps.error : undefined }))));
|
|
1088
1091
|
}
|
|
1089
1092
|
return null;
|
|
1090
1093
|
})));
|
|
@@ -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 }) => {
|
|
@@ -4421,20 +4603,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4421
4603
|
React__default["default"].createElement(core.TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: " ",
|
|
4422
4604
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4423
4605
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4424
|
-
label: label, "data-control": "text", "data-lead-control":
|
|
4606
|
+
label: label, "data-control": "text", "data-lead-control": name, "data-is-required": required, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value), { name: value }))));
|
|
4425
4607
|
case 'NumberBlock':
|
|
4426
4608
|
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4427
4609
|
React__default["default"].createElement(core.NumberInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: " ",
|
|
4428
4610
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4429
4611
|
// onChange={(e) => inputOnChange('number', e)}
|
|
4430
|
-
label: label, "data-control": "number", "data-lead-control": name, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4612
|
+
label: label, "data-control": "number", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4431
4613
|
case 'EmailBlock':
|
|
4432
4614
|
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4433
4615
|
React__default["default"].createElement(core.TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4434
4616
|
// type="email"
|
|
4435
4617
|
placeholder: " ",
|
|
4436
4618
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4437
|
-
label: label, "data-control": "email", "data-lead-control": name, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4619
|
+
label: label, "data-control": "email", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4438
4620
|
case 'PhoneOtpBlock':
|
|
4439
4621
|
case 'WhatsappOtpBlock':
|
|
4440
4622
|
case 'ZaloOtpBlock':
|
|
@@ -4448,16 +4630,16 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4448
4630
|
React__default["default"].createElement("div", { className: "mantine-Input-wrapper" },
|
|
4449
4631
|
React__default["default"].createElement(index$3.Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: " ",
|
|
4450
4632
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4451
|
-
id: htmlForId, defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name }, formPhoneInputWrapper))))));
|
|
4633
|
+
id: htmlForId, defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name, "data-is-required": required }, formPhoneInputWrapper))))));
|
|
4452
4634
|
}
|
|
4453
4635
|
case 'LocationBlock': {
|
|
4454
4636
|
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4455
|
-
React__default["default"].createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: " ", label: label, "data-control": "text", "data-lead-control": name, locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4637
|
+
React__default["default"].createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: " ", label: label, "data-control": "text", "data-lead-control": name, "data-is-required": required, locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4456
4638
|
}
|
|
4457
4639
|
case 'DateBlock': {
|
|
4458
4640
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = tslib_es6.__rest(_c, ["error"]);
|
|
4459
4641
|
return (React__default["default"].createElement(core.Input.Wrapper, { key: index, size: "md", withAsterisk: required, label: label, "data-invalid": !!error, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error, className: "lead-modal__form-control leadgen-form_field" },
|
|
4460
|
-
React__default["default"].createElement(InputDate.InputDate, Object.assign({ name: value, error: Boolean(error), locale: locale, "data-extra": true, "data-name": value, "data-control": "date", "data-lead-control": name, className: "leadgen-form_field_date", labelTuples: labelTuples }, formInputProps))));
|
|
4642
|
+
React__default["default"].createElement(InputDate.InputDate, Object.assign({ name: value, error: Boolean(error), locale: locale, "data-extra": true, "data-name": value, "data-control": "date", "data-lead-control": name, "data-is-required": required, className: "leadgen-form_field_date", labelTuples: labelTuples }, formInputProps))));
|
|
4461
4643
|
}
|
|
4462
4644
|
case 'LinkButtonBlock':
|
|
4463
4645
|
return (React__default["default"].createElement("div", { key: index },
|
|
@@ -4480,7 +4662,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4480
4662
|
gap: 8,
|
|
4481
4663
|
}, inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4482
4664
|
return (React__default["default"].createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4483
|
-
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default["default"].createElement(index$3.Checkbox, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "checkbox", "data-lead-control": name }))))));
|
|
4665
|
+
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default["default"].createElement(index$3.Checkbox, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }))))));
|
|
4484
4666
|
case 'RadioBlock':
|
|
4485
4667
|
return (React__default["default"].createElement(ChoiceField, { className: "leadgen-form_radio", key: index },
|
|
4486
4668
|
isSendMailChimp && (React__default["default"].createElement(core.Input, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
@@ -4488,10 +4670,10 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4488
4670
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4489
4671
|
label: label, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4490
4672
|
return (React__default["default"].createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4491
|
-
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default["default"].createElement(index$3.Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio", "data-lead-control": name }))))));
|
|
4673
|
+
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default["default"].createElement(index$3.Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio", "data-lead-control": name, "data-is-required": required }))))));
|
|
4492
4674
|
case 'DropdownBlock':
|
|
4493
4675
|
return (React__default["default"].createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field DropdownBlock", key: index },
|
|
4494
|
-
React__default["default"].createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown', "data-lead-control": name }),
|
|
4676
|
+
React__default["default"].createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown', "data-lead-control": name, "data-is-required": required }),
|
|
4495
4677
|
React__default["default"].createElement(index$3.Select
|
|
4496
4678
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4497
4679
|
, Object.assign({
|
|
@@ -4525,7 +4707,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4525
4707
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = tslib_es6.__rest(_d, ["error"]);
|
|
4526
4708
|
return (React__default["default"].createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
4527
4709
|
React__default["default"].createElement(core.Input.Wrapper, { error: error },
|
|
4528
|
-
React__default["default"].createElement(index$3.Checkbox, Object.assign({ name: 'TNC-' + id, label: React__default["default"].createElement("p", { className: "lead-modal__tnc-link", dangerouslySetInnerHTML: { __html: data.valueHTML } }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name }, tncInputProps)))));
|
|
4710
|
+
React__default["default"].createElement(index$3.Checkbox, Object.assign({ name: 'TNC-' + id, label: React__default["default"].createElement("p", { className: "lead-modal__tnc-link", dangerouslySetInnerHTML: { __html: data.valueHTML } }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }, tncInputProps)))));
|
|
4529
4711
|
}
|
|
4530
4712
|
return null;
|
|
4531
4713
|
})));
|
|
@@ -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 }));
|
|
@@ -5335,7 +5479,7 @@ const formatFormData = (currentForm, formData) => {
|
|
|
5335
5479
|
return Object.keys(formData)
|
|
5336
5480
|
.filter((key) => !!formData[key])
|
|
5337
5481
|
.map((name) => {
|
|
5338
|
-
var _a, _b, _c, _d;
|
|
5482
|
+
var _a, _b, _c, _d, _e, _f;
|
|
5339
5483
|
const value = String(formData[name]);
|
|
5340
5484
|
const control = ((_a = currentForm
|
|
5341
5485
|
.querySelector(`*[name="${name}"][data-control]`)) === null || _a === void 0 ? void 0 : _a.getAttribute('data-control')) ||
|
|
@@ -5347,6 +5491,11 @@ const formatFormData = (currentForm, formData) => {
|
|
|
5347
5491
|
((_d = currentForm
|
|
5348
5492
|
.querySelector(`*[data-extra][data-name="${name}"]`)) === null || _d === void 0 ? void 0 : _d.getAttribute('data-lead-control')) ||
|
|
5349
5493
|
'text';
|
|
5494
|
+
const isRequired = Boolean(((_e = currentForm
|
|
5495
|
+
.querySelector(`*[name="${name}"][data-is-required]`)) === null || _e === void 0 ? void 0 : _e.getAttribute('data-is-required')) ||
|
|
5496
|
+
((_f = currentForm
|
|
5497
|
+
.querySelector(`*[data-extra][data-name="${name}"]`)) === null || _f === void 0 ? void 0 : _f.getAttribute('data-is-required')) ||
|
|
5498
|
+
'text');
|
|
5350
5499
|
const formatedValue = control === 'tel'
|
|
5351
5500
|
? window.intlTelInputUtils
|
|
5352
5501
|
.formatNumber(String(value), LEAD_LOCALE === null || LEAD_LOCALE === void 0 ? void 0 : LEAD_LOCALE.countryCodeNumber, numberFormatType)
|
|
@@ -5359,6 +5508,7 @@ const formatFormData = (currentForm, formData) => {
|
|
|
5359
5508
|
value: formatedValue,
|
|
5360
5509
|
control,
|
|
5361
5510
|
leadControl,
|
|
5511
|
+
isRequired,
|
|
5362
5512
|
// is_sent_mailchimp: currentForm.querySelector(
|
|
5363
5513
|
// `div[data-name="${i.name}-mailchimp"]`,
|
|
5364
5514
|
// )
|
|
@@ -5389,6 +5539,7 @@ const formatTrackingData = (params) => {
|
|
|
5389
5539
|
field_name: control.key,
|
|
5390
5540
|
component_type: curLeadControl,
|
|
5391
5541
|
value: control.value,
|
|
5542
|
+
is_required: control.isRequired,
|
|
5392
5543
|
};
|
|
5393
5544
|
}
|
|
5394
5545
|
})
|
|
@@ -5398,6 +5549,7 @@ const formatTrackingData = (params) => {
|
|
|
5398
5549
|
return {
|
|
5399
5550
|
field_name: item.data.value,
|
|
5400
5551
|
component_type: item.name,
|
|
5552
|
+
is_required: item.isRequired,
|
|
5401
5553
|
};
|
|
5402
5554
|
}
|
|
5403
5555
|
})
|