@hhgtech/hhg-components 1.29.396-beta-7 → 1.29.397-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-779bfa2a.js → InputDate-5331c552.js} +3 -3
- package/build/{LastPeriod-b6657d53.js → LastPeriod-64176202.js} +1 -1
- package/build/{MobileBottomNavigationIcon-4bb5dfe1.js → MobileBottomNavigationIcon-1277136e.js} +3 -3
- package/build/{Spinner-fa06edb2.js → Spinner-65a7a5d8.js} +1 -1
- package/build/{WhatsApp-80fa83bf.js → WhatsApp-008ac3cb.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.js +97 -97
- package/build/{constants-17e228c7.js → constants-b3d74044.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-f447ff84.js → core-48737d3c.js} +1 -1
- package/build/{dataTransform-05a9afa6.js → dataTransform-fd6f52e7.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-25efdddc.js → editor-b8de4697.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-81a85792.js → InputDate-c206ae02.js} +3 -3
- package/build/esm/{LastPeriod-3b69f762.js → LastPeriod-6759bed7.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-83e4ebf3.js → MobileBottomNavigationIcon-e3386b67.js} +3 -3
- package/build/esm/{Spinner-3607c3c5.js → Spinner-f0747302.js} +1 -1
- package/build/esm/{WhatsApp-3d8c920b.js → WhatsApp-8f647b91.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.js +97 -97
- package/build/esm/{constants-3f929b4e.js → constants-5554e8fb.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-e9660048.js → core-a98d7b49.js} +1 -1
- package/build/esm/{dataTransform-05611872.js → dataTransform-c15abb49.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-1a1d236c.js → editor-d97a9993.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-ac76d965.js → healthTools-5c570da4.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.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-bf41e4e0.js → index-0e477708.js} +2 -2
- package/build/esm/{index-43401c52.js → index-1474a156.js} +17 -17
- package/build/esm/{index-d1864d80.js → index-1500f21b.js} +2 -2
- package/build/esm/{index-0ce481f9.js → index-179a99bd.js} +6 -6
- package/build/esm/{index-e81cc27d.js → index-21ea161d.js} +15 -15
- package/build/esm/{index-656ed09f.js → index-2a74af5d.js} +18 -18
- package/build/esm/{index-8df23e39.js → index-2ba53293.js} +3 -3
- package/build/esm/{index-3fe9ef7b.js → index-2cc44301.js} +13 -13
- package/build/esm/{index-7e2d0950.js → index-3122cd80.js} +10 -10
- package/build/esm/{index-a46f72fb.js → index-43b60610.js} +2 -2
- package/build/esm/{index-9d8a8f53.js → index-44f0ae43.js} +17 -17
- package/build/esm/{index-6168eba6.js → index-45a645d6.js} +1 -1
- package/build/esm/{index-f8383b52.js → index-470e09a9.js} +25 -25
- package/build/esm/{index-cd4f99ad.js → index-489b566e.js} +1 -1
- package/build/esm/{index-3d4e7c78.js → index-493cae6d.js} +6 -6
- package/build/esm/{index-6b301031.js → index-4e04114c.js} +2 -2
- package/build/esm/{index-5677d435.js → index-4e253706.js} +17 -17
- package/build/esm/{index-b4616650.js → index-4fb76de9.js} +1 -1
- package/build/esm/{index-fc5e154b.js → index-58ed29a1.js} +2 -2
- package/build/esm/{index-865ac5cb.js → index-591da165.js} +21 -21
- package/build/esm/{index-092411be.js → index-5a1b18fe.js} +11 -11
- package/build/esm/{index-09cdc277.js → index-5e6a0609.js} +4 -4
- package/build/esm/{index-46751988.js → index-6a67cfd9.js} +2 -2
- package/build/esm/{index-7d2f09ff.js → index-6e0b2ec9.js} +3 -3
- package/build/esm/{index-b845a396.js → index-7442158d.js} +24 -24
- package/build/esm/{index-21155b23.js → index-77e3dacb.js} +2 -2
- package/build/esm/{index-35cd94d3.js → index-7cbb50a6.js} +3 -3
- package/build/esm/{index-bd08d3ce.js → index-7e5b02e9.js} +7 -7
- package/build/esm/{index-297980dc.js → index-84d86b55.js} +13 -13
- package/build/esm/{index-a611ca74.js → index-8910c1d7.js} +6 -6
- package/build/esm/{index-bba60a1a.js → index-8afffc50.js} +2 -2
- package/build/esm/{index-96ff844a.js → index-9154a4b5.js} +2 -2
- package/build/esm/{index-80a2cd4e.js → index-91c967e5.js} +4 -4
- package/build/esm/{index-99960c4d.js → index-97b65eb1.js} +8 -8
- package/build/esm/{index-8974660e.js → index-9878428a.js} +17 -17
- package/build/esm/{index-d06bdd23.js → index-9b5a1b01.js} +5 -5
- package/build/esm/{index-8503e186.js → index-9c8a599d.js} +2 -2
- package/build/esm/{index-0fb4b07a.js → index-9f25a4c6.js} +2 -2
- package/build/esm/{index-74f90c1f.js → index-a8e8c83d.js} +3 -3
- package/build/esm/{index-96598e9a.js → index-ab464f29.js} +2 -2
- package/build/esm/{index-b6995d9b.js → index-b0374861.js} +2 -2
- package/build/esm/{index-43c4bc7d.js → index-b05b6e2a.js} +16 -16
- package/build/esm/{index-2057a3fe.js → index-b28c7e2d.js} +31 -31
- package/build/esm/{index-4fcf3b60.js → index-ba1ec29e.js} +6 -6
- package/build/esm/{index-a1c59b7d.js → index-bd0c1846.js} +1 -1
- package/build/esm/{index-0dce6cba.js → index-be5ba37e.js} +1 -1
- package/build/esm/{index-9c9d72fe.js → index-c0e68669.js} +6 -6
- package/build/esm/{index-ab9b9b52.js → index-c2fca24a.js} +31 -31
- package/build/esm/{index-b9b772bd.js → index-ceb1e14f.js} +5 -5
- package/build/esm/{index-bac666f3.js → index-d1b079a0.js} +1 -1
- package/build/esm/{index-b820522e.js → index-d1ee3ee2.js} +1 -1
- package/build/esm/{index-9ce4b64c.js → index-d1f457f8.js} +3 -3
- package/build/esm/{index-4145b306.js → index-da880edd.js} +16 -16
- package/build/esm/{index-92229d2d.js → index-db09a34c.js} +7 -7
- package/build/esm/{index-ec2f6117.js → index-dbb8cb62.js} +13 -13
- package/build/esm/{index-96fa1f2f.js → index-dd669103.js} +13 -13
- package/build/esm/{index-2e2d98d8.js → index-ddcdd8f2.js} +18 -18
- package/build/esm/{index-4c7efeff.js → index-e09f7e4a.js} +32 -32
- package/build/esm/{index-615e9474.js → index-e319f244.js} +1 -1
- package/build/esm/{index-c3a34409.js → index-e92ffe7c.js} +16 -16
- package/build/esm/{index-d53234c0.js → index-ec0741a1.js} +1 -1
- package/build/esm/{index-87128717.js → index-f7a5f7fa.js} +22 -22
- package/build/esm/{index-9c70af68.js → index-fa857263.js} +16 -16
- package/build/esm/{index-4ef1d6e7.js → index-faacee56.js} +3 -3
- package/build/esm/{index-3f2e46f5.js → index-fb1047f7.js} +2 -2
- package/build/esm/index.js +118 -118
- package/build/esm/{labelSorting-ef526823.js → labelSorting-5e39cf19.js} +4 -4
- package/build/esm/lead/LeadGen.helpers.d.ts +14 -14
- package/build/esm/lead/LeadGen.type.d.ts +19 -0
- package/build/esm/lead/LeadGenForm/LeadGenForm.helpers.d.ts +1 -1
- package/build/esm/lead/components/context.d.ts +3 -2
- package/build/esm/lead/components/index.d.ts +3 -2
- package/build/esm/lead/layouts/lightbox/index.d.ts +7 -4
- package/build/esm/lead/leadGenContext.d.ts +7 -0
- package/build/esm/lead/newLeadPopup.d.ts +5 -3
- package/build/esm/lead/utils/formatFormData.d.ts +1 -0
- package/build/esm/lead/utils/formatTrackingData.d.ts +14 -0
- package/build/esm/lead.js +361 -184
- package/build/esm/{logoIcon-5042fdf4.js → logoIcon-cadbecbe.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 +23 -23
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +50 -50
- package/build/esm/{post-79722737.js → post-d791db36.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.js +30 -30
- package/build/esm/{store-efc97669.js → store-e4f706d3.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-9dd3f5ee.js → surveyThankyouCard-5dad0d9f.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-2ae2efb3.js → translationsProvider-758b393c.js} +1 -1
- package/build/esm/{treePopoverMenu-97c30818.js → treePopoverMenu-a7be6fa9.js} +19 -19
- package/build/esm/{types-6a5ffce6.js → types-09234d12.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-b4adf558.js → useCategory-439c36ec.js} +5 -5
- package/build/esm/{useHealthToolCache-5c71e735.js → useHealthToolCache-ff826646.js} +1 -1
- package/build/esm/{useMantineLocale-a1772a1f.js → useMantineLocale-4f58a092.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-bcaf2a8d.js → usePlacesAutocomplete-3ac7fb5b.js} +1 -1
- package/build/esm/{useScreenSize-eb5e276a.js → useScreenSize-4a774778.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-b5ae04e5.js → utils-237e606e.js} +2 -2
- package/build/esm/{utils-0ac9ce0d.js → utils-4185ec0e.js} +5 -5
- package/build/esm/{utils-d64261d1.js → utils-9c7b9df3.js} +3 -3
- package/build/esm/{utils-5c524612.js → utils-a009879a.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-1f4bc0e4.js → healthTools-573b7c4e.js} +1 -1
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-24e5ce44.js → index-0301c8c1.js} +6 -6
- package/build/{index-56022759.js → index-0a89a6c5.js} +25 -25
- package/build/{index-2945f7cd.js → index-0ae1731a.js} +1 -1
- package/build/{index-84e4d939.js → index-0b74c3a7.js} +1 -1
- package/build/{index-fb80022a.js → index-0b79d267.js} +7 -7
- package/build/{index-7c7cc39d.js → index-0be303cf.js} +16 -16
- package/build/{index-95db12a6.js → index-10dc0a81.js} +2 -2
- package/build/{index-96f99a84.js → index-14f9daee.js} +3 -3
- package/build/{index-82e8f4e8.js → index-15acc379.js} +3 -3
- package/build/{index-87c063e6.js → index-16078611.js} +1 -1
- package/build/{index-5249cdf0.js → index-1df6d6f1.js} +15 -15
- package/build/{index-6b3ad753.js → index-2ee722e4.js} +3 -3
- package/build/{index-1de6dcce.js → index-328a6f00.js} +2 -2
- package/build/{index-0883860f.js → index-3a1c1349.js} +2 -2
- package/build/{index-dd0b6e17.js → index-4220f03e.js} +31 -31
- package/build/{index-3a3656e2.js → index-42832d74.js} +4 -4
- package/build/{index-ce155499.js → index-510cd5d8.js} +17 -17
- package/build/{index-b3ef5b52.js → index-52c688e0.js} +2 -2
- package/build/{index-e19f3062.js → index-53cea17c.js} +2 -2
- package/build/{index-73ce98f0.js → index-5c04d82c.js} +1 -1
- package/build/{index-df21e0fc.js → index-5c5b0d7a.js} +1 -1
- package/build/{index-055c1d1b.js → index-6609c397.js} +13 -13
- package/build/{index-e48d765b.js → index-6e7e3c83.js} +1 -1
- package/build/{index-e8dffb5f.js → index-6e976e69.js} +3 -3
- package/build/{index-ea9233a5.js → index-7135ab38.js} +17 -17
- package/build/{index-19b54d56.js → index-73c50e6a.js} +31 -31
- package/build/{index-261136c0.js → index-7578a98b.js} +6 -6
- package/build/{index-6f45f58f.js → index-7a0b4e4c.js} +17 -17
- package/build/{index-8c54bd27.js → index-7c181401.js} +13 -13
- package/build/{index-dd518830.js → index-7d99e425.js} +10 -10
- package/build/{index-0b6450b7.js → index-86d2e33e.js} +16 -16
- package/build/{index-c6c64d15.js → index-894de8e5.js} +22 -22
- package/build/{index-b82e3c07.js → index-8c5a772d.js} +2 -2
- package/build/{index-59d8c32c.js → index-8e2028b1.js} +5 -5
- package/build/{index-3464b4a8.js → index-929827df.js} +16 -16
- package/build/{index-cb921f9c.js → index-9302a2ba.js} +17 -17
- package/build/{index-e7de35d3.js → index-9373d295.js} +7 -7
- package/build/{index-4d4fa9c6.js → index-95b9acb2.js} +2 -2
- package/build/{index-cd5d3a3f.js → index-960c740f.js} +18 -18
- package/build/{index-548104f5.js → index-9affc8c8.js} +13 -13
- package/build/{index-942bbac2.js → index-a00370d2.js} +6 -6
- package/build/{index-0faa4208.js → index-a4054d6f.js} +2 -2
- package/build/{index-f3d2ca62.js → index-bb7eb3ba.js} +8 -8
- package/build/{index-846b5351.js → index-bf9d1bd1.js} +5 -5
- package/build/{index-df8d7468.js → index-c0df48e7.js} +2 -2
- package/build/{index-1966a630.js → index-c0e89bf1.js} +13 -13
- package/build/{index-7d8e37dd.js → index-c784e708.js} +24 -24
- package/build/{index-bace5fd6.js → index-c91511d7.js} +1 -1
- package/build/{index-ff2ec13b.js → index-cb970cf4.js} +1 -1
- package/build/{index-b6a9d14a.js → index-cdc87700.js} +2 -2
- package/build/{index-b51dbf61.js → index-de075e9f.js} +2 -2
- package/build/{index-37051fcd.js → index-deea70cf.js} +6 -6
- package/build/{index-b883f5a2.js → index-e4ecee0e.js} +2 -2
- package/build/{index-0f33bda5.js → index-e611fdb0.js} +2 -2
- package/build/{index-0c9b7f81.js → index-e70edd5b.js} +3 -3
- package/build/{index-bd27850d.js → index-e897fc1f.js} +3 -3
- package/build/{index-4f078389.js → index-e91c793a.js} +32 -32
- package/build/{index-5a4ce7c7.js → index-eae4ff4f.js} +21 -21
- package/build/{index-a626843d.js → index-ec9686cc.js} +4 -4
- package/build/{index-3d0d6d57.js → index-efec23d7.js} +18 -18
- package/build/{index-b5758bc3.js → index-f371d961.js} +1 -1
- package/build/{index-7a57603b.js → index-f3fbda04.js} +2 -2
- package/build/{index-969798c0.js → index-f49d538c.js} +6 -6
- package/build/{index-6a8d1bc8.js → index-f86566d5.js} +11 -11
- package/build/{index-4dbdc48a.js → index-ffed6397.js} +16 -16
- package/build/index.js +118 -118
- package/build/{labelSorting-35405ca6.js → labelSorting-55531d4b.js} +4 -4
- package/build/lead/LeadGen.helpers.d.ts +14 -14
- package/build/lead/LeadGen.type.d.ts +19 -0
- package/build/lead/LeadGenForm/LeadGenForm.helpers.d.ts +1 -1
- package/build/lead/components/context.d.ts +3 -2
- package/build/lead/components/index.d.ts +3 -2
- package/build/lead/layouts/lightbox/index.d.ts +7 -4
- package/build/lead/leadGenContext.d.ts +7 -0
- package/build/lead/newLeadPopup.d.ts +5 -3
- package/build/lead/utils/formatFormData.d.ts +1 -0
- package/build/lead/utils/formatTrackingData.d.ts +14 -0
- package/build/lead.js +362 -185
- package/build/{logoIcon-5411410d.js → logoIcon-22144be3.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 +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +50 -50
- package/build/{post-51f1ddd0.js → post-b38dfffb.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2.js +28 -28
- package/build/{store-270e1062.js → store-19113253.js} +3 -3
- package/build/subot.js +35 -35
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-d4be455b.js → surveyThankyouCard-2aabad24.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-d0347b34.js → translationsProvider-219524af.js} +1 -1
- package/build/{treePopoverMenu-5bbeb7c9.js → treePopoverMenu-495600da.js} +19 -19
- package/build/{types-5691e86a.js → types-297843f7.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-25586edc.js → useCategory-6077013c.js} +5 -5
- package/build/{useHealthToolCache-0b269703.js → useHealthToolCache-127e942c.js} +1 -1
- package/build/{useMantineLocale-bd657418.js → useMantineLocale-8b5328da.js} +6 -6
- package/build/{usePlacesAutocomplete-710ceca1.js → usePlacesAutocomplete-c4096401.js} +1 -1
- package/build/{useScreenSize-cef9e7ae.js → useScreenSize-1e356362.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-87eaa8f8.js → utils-2d5c2270.js} +5 -5
- package/build/{utils-b9986d55.js → utils-5316edfa.js} +3 -3
- package/build/{utils-9deda092.js → utils-6b741a52.js} +2 -2
- package/build/{utils-859e7fac.js → utils-ea7ed7d8.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-fc50fa58.js → BMI_BOYS.percentile.monthly-8c87dbb9.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-57dc5c61.js → BMI_BOYS.percentile.weekly-a95e009a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-ba4b7103.js → BMI_BOYS.percentile.yearly-06d1b212.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b3c5de3e.js → BMI_BOYS.zscore.monthly-c7dfdddb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-37a1d593.js → BMI_BOYS.zscore.weekly-88adf7d3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-81c1445e.js → BMI_BOYS.zscore.yearly-c1aa3e51.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-58cde51b.js → BMI_GIRLS.percentile.monthly-cd4bd461.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-8ec9ff9b.js → BMI_GIRLS.percentile.weekly-16c5f35a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-1784adda.js → BMI_GIRLS.percentile.yearly-03800789.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-cbb47fa4.js → BMI_GIRLS.zscore.monthly-e93abe06.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-86686010.js → BMI_GIRLS.zscore.weekly-9625ac78.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-63e0fcfa.js → BMI_GIRLS.zscore.yearly-561f33b4.js} +0 -0
- /package/build/{ChevronDown-eb5f7cb7.js → ChevronDown-e4dd2c7b.js} +0 -0
- /package/build/{Close-619ec3fa.js → Close-bcd0f86d.js} +0 -0
- /package/build/{Google-1c9e90ec.js → Google-b5b22431.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-adeca819.js → HEAD CIRCUM_BOYS.percentile.monthly-2c6ced17.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-b29d5277.js → HEAD CIRCUM_BOYS.percentile.weekly-95f8b51d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-dd797f6a.js → HEAD CIRCUM_BOYS.percentile.yearly-554a0464.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-31cd58ba.js → HEAD CIRCUM_BOYS.zscore.monthly-ed29d930.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-afac8890.js → HEAD CIRCUM_BOYS.zscore.weekly-e5c9d342.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-b596c359.js → HEAD CIRCUM_BOYS.zscore.yearly-defc072e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-b05ca350.js → HEAD CIRCUM_GIRLS.percentile.monthly-030f9924.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-c824b2d4.js → HEAD CIRCUM_GIRLS.percentile.weekly-b373d1ea.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-2b00426f.js → HEAD CIRCUM_GIRLS.percentile.yearly-d902e37e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-a99ff3e4.js → HEAD CIRCUM_GIRLS.zscore.monthly-03076a18.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-6e88a515.js → HEAD CIRCUM_GIRLS.zscore.weekly-9a112900.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-8f145fc2.js → HEAD CIRCUM_GIRLS.zscore.yearly-2f398dda.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-c62a089c.js → HEIGHT_BOYS.percentile.monthly-03a52d0e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-3824a2a1.js → HEIGHT_BOYS.percentile.weekly-7562b29e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-b06cca88.js → HEIGHT_BOYS.percentile.yearly-be8f3d6d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-466fca28.js → HEIGHT_BOYS.zscore.monthly-3054fee2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-0694570f.js → HEIGHT_BOYS.zscore.weekly-4e228a18.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-cb6bc247.js → HEIGHT_BOYS.zscore.yearly-f52b208d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-4b0390d3.js → HEIGHT_GIRLS.percentile.monthly-3e9bf11f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-566f5b6a.js → HEIGHT_GIRLS.percentile.weekly-c3259328.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-04479cd9.js → HEIGHT_GIRLS.percentile.yearly-1fda6433.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-0a84d978.js → HEIGHT_GIRLS.zscore.monthly-e5594055.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-33425506.js → HEIGHT_GIRLS.zscore.weekly-ae91bcb2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-9ceeb357.js → HEIGHT_GIRLS.zscore.yearly-7ebba771.js} +0 -0
- /package/build/{Locale-55b5fb0f.js → Locale-764d0fe0.js} +0 -0
- /package/build/{Visible-0a8c5ee3.js → Visible-8f3abc2a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-36c999ae.js → WEIGHT_BOYS.percentile.monthly-742e3b01.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-b3dc69e0.js → WEIGHT_BOYS.percentile.weekly-a189ae12.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-68423ee2.js → WEIGHT_BOYS.percentile.yearly-ccf99262.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-d623af53.js → WEIGHT_BOYS.zscore.monthly-26ec10b2.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-665c3ec6.js → WEIGHT_BOYS.zscore.weekly-ae8b99e9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-d91e3104.js → WEIGHT_BOYS.zscore.yearly-ecc51a68.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-46c685fe.js → WEIGHT_GIRLS.percentile.monthly-958728a2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-cbcc2d9f.js → WEIGHT_GIRLS.percentile.weekly-be5ac197.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-456ace2b.js → WEIGHT_GIRLS.percentile.yearly-b7493047.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-373bc607.js → WEIGHT_GIRLS.zscore.monthly-e507cc87.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-40bdfe5a.js → WEIGHT_GIRLS.zscore.weekly-558e4c47.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-9eb186a1.js → WEIGHT_GIRLS.zscore.yearly-c509cc17.js} +0 -0
- /package/build/{animation-c6130717.js → animation-b6d63455.js} +0 -0
- /package/build/{constants-4dd172d1.js → constants-08c8503c.js} +0 -0
- /package/build/{constants-870fb810.js → constants-1def5869.js} +0 -0
- /package/build/{constants-9a790271.js → constants-aa94cfb3.js} +0 -0
- /package/build/{dataTransform-f5f8ed67.js → dataTransform-3a47799a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-29a2d966.js → BMI_BOYS.percentile.monthly-f2b0325e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-f9330509.js → BMI_BOYS.percentile.weekly-875d1828.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-69f7b527.js → BMI_BOYS.percentile.yearly-de9ef920.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-131129ff.js → BMI_BOYS.zscore.monthly-f930cc1f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-2b0969dc.js → BMI_BOYS.zscore.weekly-7ec4145d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-c1b9d353.js → BMI_BOYS.zscore.yearly-43d7922a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-1e54bfde.js → BMI_GIRLS.percentile.monthly-a45d89ae.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-55c62901.js → BMI_GIRLS.percentile.weekly-ad981320.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-ee7e6e06.js → BMI_GIRLS.percentile.yearly-43bcf39e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-51b72c57.js → BMI_GIRLS.zscore.monthly-2ed18934.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-32fdcaef.js → BMI_GIRLS.zscore.weekly-e2abe780.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-bcc934f4.js → BMI_GIRLS.zscore.yearly-b8703f79.js} +0 -0
- /package/build/esm/{ChevronDown-adc108dd.js → ChevronDown-9d4502b8.js} +0 -0
- /package/build/esm/{Close-504c9dc6.js → Close-cdcf7f34.js} +0 -0
- /package/build/esm/{Google-ea5c56a6.js → Google-f1ba73bb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-9f33cb11.js → HEAD CIRCUM_BOYS.percentile.monthly-c3ac7f15.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-61314f72.js → HEAD CIRCUM_BOYS.percentile.weekly-8f341e02.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-efa5fd85.js → HEAD CIRCUM_BOYS.percentile.yearly-474d437f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c29afe81.js → HEAD CIRCUM_BOYS.zscore.monthly-7536cea6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-fd452b36.js → HEAD CIRCUM_BOYS.zscore.weekly-e8dcd6e7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-79b71f2c.js → HEAD CIRCUM_BOYS.zscore.yearly-19e81e31.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-54efd800.js → HEAD CIRCUM_GIRLS.percentile.monthly-cd4951df.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-095aaba9.js → HEAD CIRCUM_GIRLS.percentile.weekly-57269718.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f4670a89.js → HEAD CIRCUM_GIRLS.percentile.yearly-50e398a3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-c2290a2b.js → HEAD CIRCUM_GIRLS.zscore.monthly-c52954fd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e8bcb29c.js → HEAD CIRCUM_GIRLS.zscore.weekly-4b2e158a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-7f697aea.js → HEAD CIRCUM_GIRLS.zscore.yearly-e27bb59b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-4aaecff6.js → HEIGHT_BOYS.percentile.monthly-61e22fac.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-25e54173.js → HEIGHT_BOYS.percentile.weekly-222868de.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-cdaa1606.js → HEIGHT_BOYS.percentile.yearly-42934db4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c27b2966.js → HEIGHT_BOYS.zscore.monthly-b7ccce93.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e6c561a8.js → HEIGHT_BOYS.zscore.weekly-f07f0785.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-66386930.js → HEIGHT_BOYS.zscore.yearly-d5116dc8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-354d3989.js → HEIGHT_GIRLS.percentile.monthly-08751df2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-bb32a201.js → HEIGHT_GIRLS.percentile.weekly-4bd8e4e8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-46f9564f.js → HEIGHT_GIRLS.percentile.yearly-d62cbdf7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b409a301.js → HEIGHT_GIRLS.zscore.monthly-36ca108f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-ad66d60c.js → HEIGHT_GIRLS.zscore.weekly-b251e8bf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-0be86ac0.js → HEIGHT_GIRLS.zscore.yearly-b95dc445.js} +0 -0
- /package/build/esm/{Locale-7013ca58.js → Locale-2f050a8d.js} +0 -0
- /package/build/esm/{Visible-7c29ebdb.js → Visible-4f1c6c65.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-fdf1df1a.js → WEIGHT_BOYS.percentile.monthly-958090ba.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-31c861b9.js → WEIGHT_BOYS.percentile.weekly-5def56a5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-aca56ee3.js → WEIGHT_BOYS.percentile.yearly-9a065853.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-6e9b4d49.js → WEIGHT_BOYS.zscore.monthly-22619dee.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8a36bffd.js → WEIGHT_BOYS.zscore.weekly-c07832d3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-da959536.js → WEIGHT_BOYS.zscore.yearly-8988e7f1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-c7a667ae.js → WEIGHT_GIRLS.percentile.monthly-fe1b2278.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-ec98fbb3.js → WEIGHT_GIRLS.percentile.weekly-e1de02ea.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-95708f4d.js → WEIGHT_GIRLS.percentile.yearly-57a685e8.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0a2e589f.js → WEIGHT_GIRLS.zscore.monthly-05c7452e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-cf0e9a0e.js → WEIGHT_GIRLS.zscore.weekly-2436f9ee.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-09ce14dc.js → WEIGHT_GIRLS.zscore.yearly-41f599b0.js} +0 -0
- /package/build/esm/{animation-b98c6d96.js → animation-d183eff6.js} +0 -0
- /package/build/esm/{constants-ca41ee65.js → constants-1c442ee9.js} +0 -0
- /package/build/esm/{constants-eb36f380.js → constants-1ce7a0c8.js} +0 -0
- /package/build/esm/{constants-71fad5dd.js → constants-dd5c7e21.js} +0 -0
- /package/build/esm/{dataTransform-6210e978.js → dataTransform-43dd3ad8.js} +0 -0
- /package/build/esm/{index-c8cc02be.js → index-1888a823.js} +0 -0
- /package/build/esm/{index-da8052b5.js → index-67ade6b4.js} +0 -0
- /package/build/esm/{index-e6dd9174.js → index-6c4db0e7.js} +0 -0
- /package/build/esm/{index-7d09c1f5.js → index-86beec3b.js} +0 -0
- /package/build/esm/{index-f1ef5c84.js → index-a4e33581.js} +0 -0
- /package/build/esm/{index-a0aef994.js → index-b8bab345.js} +0 -0
- /package/build/esm/{index-ea156363.js → index-b98a4ccb.js} +0 -0
- /package/build/esm/{index-db175cd3.js → index-ebfab7bd.js} +0 -0
- /package/build/esm/{index.styles-236ce1fa.js → index.styles-84a7085d.js} +0 -0
- /package/build/esm/{localizeNumberFormat-0787d497.js → localizeNumberFormat-39c041df.js} +0 -0
- /package/build/esm/{normalizeLink-f2e0563f.js → normalizeLink-c69706f9.js} +0 -0
- /package/build/esm/{number-4b95c598.js → number-9e1e33b6.js} +0 -0
- /package/build/esm/{other-083471c4.js → other-b55c2cac.js} +0 -0
- /package/build/esm/{paths-220a9d5b.js → paths-8049aab1.js} +0 -0
- /package/build/esm/{translationsContext-eff46c98.js → translationsContext-8bed8935.js} +0 -0
- /package/build/esm/{tslib.es6-a91a3ba2.js → tslib.es6-11765615.js} +0 -0
- /package/build/esm/{types-d1921376.js → types-487284bc.js} +0 -0
- /package/build/esm/{useIsInit-cf303a41.js → useIsInit-98fef9f5.js} +0 -0
- /package/build/esm/{useOutsideClick-7aaa6860.js → useOutsideClick-06ae1afa.js} +0 -0
- /package/build/esm/{useScrollbarSize-b63b5638.js → useScrollbarSize-3dc0c03a.js} +0 -0
- /package/build/esm/{useUniqueId-8b360b56.js → useUniqueId-4ecc826a.js} +0 -0
- /package/build/esm/{utils-c3edb47a.js → utils-860b86e8.js} +0 -0
- /package/build/{index-42770e30.js → index-1aa847ab.js} +0 -0
- /package/build/{index-3b9d2da0.js → index-24c4277b.js} +0 -0
- /package/build/{index-3e899878.js → index-625743b3.js} +0 -0
- /package/build/{index-949761fa.js → index-7d894a46.js} +0 -0
- /package/build/{index-6bf85b9a.js → index-8d730e72.js} +0 -0
- /package/build/{index-2aacdddd.js → index-a072750b.js} +0 -0
- /package/build/{index-a42a50a4.js → index-d3461fe7.js} +0 -0
- /package/build/{index-4884a7ab.js → index-eb89eb77.js} +0 -0
- /package/build/{index.styles-f7f3fca8.js → index.styles-f9408092.js} +0 -0
- /package/build/{localizeNumberFormat-58768f9b.js → localizeNumberFormat-d03061a6.js} +0 -0
- /package/build/{normalizeLink-3b3ba0a5.js → normalizeLink-8aa84155.js} +0 -0
- /package/build/{number-025713e3.js → number-d3ca8272.js} +0 -0
- /package/build/{other-62cd4f2e.js → other-8f691b82.js} +0 -0
- /package/build/{paths-35456e7b.js → paths-b04efd22.js} +0 -0
- /package/build/{translationsContext-bf042531.js → translationsContext-a3e31b9e.js} +0 -0
- /package/build/{tslib.es6-e137c099.js → tslib.es6-ecad3526.js} +0 -0
- /package/build/{types-a2ec6e0a.js → types-c43067bb.js} +0 -0
- /package/build/{useIsInit-7bb3e936.js → useIsInit-a9d121eb.js} +0 -0
- /package/build/{useOutsideClick-15366c1f.js → useOutsideClick-20154526.js} +0 -0
- /package/build/{useScrollbarSize-d24864b9.js → useScrollbarSize-95baac26.js} +0 -0
- /package/build/{useUniqueId-5dac0bf6.js → useUniqueId-42fb6d03.js} +0 -0
- /package/build/{utils-eb06e27e.js → utils-f619e399.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-ecad3526.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var core = require('@mantine/core');
|
|
8
|
-
var dayjs = require('dayjs');
|
|
9
8
|
var debounce = require('lodash/debounce');
|
|
10
9
|
var form = require('@mantine/form');
|
|
11
|
-
var
|
|
10
|
+
var dayjs = require('dayjs');
|
|
11
|
+
var index = require('./index-ec9686cc.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-cb970cf4.js');
|
|
14
|
+
var translationsContext = require('./translationsContext-a3e31b9e.js');
|
|
15
|
+
var utils$1 = require('./utils-f619e399.js');
|
|
16
|
+
var index$2 = require('./index-10dc0a81.js');
|
|
17
|
+
var index$3 = require('./index-f86566d5.js');
|
|
18
|
+
var index$5 = require('./index-7578a98b.js');
|
|
19
|
+
var index$4 = require('./index-c91511d7.js');
|
|
20
|
+
require('./index.styles-f9408092.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-8b5328da.js');
|
|
23
|
+
var index$9 = require('./index-0ae1731a.js');
|
|
24
|
+
require('./index-d3461fe7.js');
|
|
25
|
+
var index$7 = require('./index-95b9acb2.js');
|
|
26
|
+
require('./other-8f691b82.js');
|
|
27
|
+
require('./index-15acc379.js');
|
|
28
|
+
var utils = require('./utils-6b741a52.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-c4096401.js');
|
|
31
|
+
var index$6 = require('./index-e4ecee0e.js');
|
|
32
|
+
var translationsProvider = require('./translationsProvider-219524af.js');
|
|
33
|
+
var Locale = require('./Locale-764d0fe0.js');
|
|
34
34
|
var uuid = require('uuid');
|
|
35
35
|
var PhoneInputBase = require('react-phone-number-input');
|
|
36
36
|
var styled = require('@emotion/styled');
|
|
37
37
|
var miscTheme = require('./miscTheme.js');
|
|
38
38
|
var react = require('@emotion/react');
|
|
39
|
-
var togetherComponentGlobalContext = require('./utils-
|
|
40
|
-
var index$8 = require('./index-
|
|
41
|
-
var useScreenSize = require('./useScreenSize-
|
|
39
|
+
var togetherComponentGlobalContext = require('./utils-5316edfa.js');
|
|
40
|
+
var index$8 = require('./index-1aa847ab.js');
|
|
41
|
+
var useScreenSize = require('./useScreenSize-1e356362.js');
|
|
42
42
|
var framerMotion = require('framer-motion');
|
|
43
43
|
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-
|
|
44
|
+
var index$a = require('./index-8c5a772d.js');
|
|
45
|
+
var InputDate = require('./InputDate-5331c552.js');
|
|
46
|
+
var index$b = require('./index-e611fdb0.js');
|
|
47
|
+
var Close = require('./Close-bcd0f86d.js');
|
|
48
48
|
require('./constantsIsProduction.js');
|
|
49
|
-
require('./normalizeLink-
|
|
49
|
+
require('./normalizeLink-8aa84155.js');
|
|
50
50
|
require('./constantsDomainLocales.js');
|
|
51
51
|
require('@hhgtech/icons/other');
|
|
52
52
|
require('@mantine/carousel');
|
|
53
53
|
require('classnames');
|
|
54
|
-
require('./useUniqueId-
|
|
54
|
+
require('./useUniqueId-42fb6d03.js');
|
|
55
55
|
require('./constantsSite.js');
|
|
56
56
|
require('@hhgtech/icons/core');
|
|
57
57
|
require('@mantine/notifications');
|
|
@@ -68,11 +68,11 @@ require('./i18n-values/tl-PH.js');
|
|
|
68
68
|
require('./i18n-values/vi-VN.js');
|
|
69
69
|
require('./i18n-values/vi-VN_MB.js');
|
|
70
70
|
require('./i18n-values/zh-TW.js');
|
|
71
|
-
require('./index-
|
|
71
|
+
require('./index-24c4277b.js');
|
|
72
72
|
require('slugify');
|
|
73
73
|
require('string-format');
|
|
74
74
|
require('./togetherApiPaths.js');
|
|
75
|
-
require('./constants-
|
|
75
|
+
require('./constants-08c8503c.js');
|
|
76
76
|
require('vaul');
|
|
77
77
|
|
|
78
78
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -96,8 +96,8 @@ function _interopNamespace(e) {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
99
|
-
var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
100
99
|
var debounce__default = /*#__PURE__*/_interopDefault(debounce);
|
|
100
|
+
var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
101
101
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
102
102
|
|
|
103
103
|
const LeadGenComponentContext = React.createContext({});
|
|
@@ -192,20 +192,21 @@ const LEADGEN_ACTIONS = {
|
|
|
192
192
|
SCROLL: 'SCROLL',
|
|
193
193
|
TIME: 'TIME',
|
|
194
194
|
};
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
195
|
+
var LEADGEN_LAYOUT;
|
|
196
|
+
(function (LEADGEN_LAYOUT) {
|
|
197
|
+
LEADGEN_LAYOUT["LightBoxA"] = "LightBoxA";
|
|
198
|
+
LEADGEN_LAYOUT["LightBoxB"] = "LightBoxB";
|
|
199
|
+
LEADGEN_LAYOUT["SkinA"] = "SkinA";
|
|
200
|
+
LEADGEN_LAYOUT["SkinB"] = "SkinB";
|
|
201
|
+
LEADGEN_LAYOUT["Floating"] = "Floating";
|
|
202
|
+
LEADGEN_LAYOUT["Tab"] = "Tab";
|
|
203
|
+
LEADGEN_LAYOUT["InlineA"] = "InlineA";
|
|
204
|
+
LEADGEN_LAYOUT["InlineB"] = "InlineB";
|
|
205
|
+
LEADGEN_LAYOUT["CenterTab"] = "CenterTab";
|
|
206
|
+
LEADGEN_LAYOUT["Sidebar"] = "Sidebar";
|
|
207
|
+
LEADGEN_LAYOUT["Fullscreen"] = "Fullscreen";
|
|
208
|
+
LEADGEN_LAYOUT["Slider"] = "Slider";
|
|
209
|
+
})(LEADGEN_LAYOUT || (LEADGEN_LAYOUT = {}));
|
|
209
210
|
const LEADGEN_BLOCK = {
|
|
210
211
|
TextBlock: 'TextBlock',
|
|
211
212
|
NumberBlock: 'NumberBlock',
|
|
@@ -389,6 +390,18 @@ const formatCampaignDetail = (campaign) => {
|
|
|
389
390
|
}
|
|
390
391
|
};
|
|
391
392
|
|
|
393
|
+
const formatLeadGenFormValue = (values = {}, blocks) => {
|
|
394
|
+
const newValues = {};
|
|
395
|
+
for (const block of blocks) {
|
|
396
|
+
const { data } = block || {};
|
|
397
|
+
const { value: fieldName } = data || {};
|
|
398
|
+
if (fieldName in values) {
|
|
399
|
+
newValues[fieldName] = values[fieldName];
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return newValues;
|
|
403
|
+
};
|
|
404
|
+
|
|
392
405
|
class Store {
|
|
393
406
|
constructor() {
|
|
394
407
|
this.apiSsoUrl = 'https://staging-id.hellobacsi.com/';
|
|
@@ -691,7 +704,7 @@ const clearCacheUsedEmailOrPhone = () => {
|
|
|
691
704
|
const [LeadFormProvider$1, useLeadFormContext$1, useLeadForm$1] = form.createFormContext();
|
|
692
705
|
const useLeadFormConfig$1 = ({ listBlockAdded = [], validatingPhoneRef, validatingEmailRef, campaignId, campaign_subot_id = [], userInfo, }) => {
|
|
693
706
|
const { t } = index$1.useTranslations();
|
|
694
|
-
const initialValues = React.useMemo(() => mappingSSOToLead(userInfo), [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
707
|
+
const initialValues = React.useMemo(() => formatLeadGenFormValue(mappingSSOToLead(userInfo), listBlockAdded), [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
695
708
|
React.useEffect(() => {
|
|
696
709
|
if (!window.intlTelInputUtils) {
|
|
697
710
|
require('intl-tel-input/build/js/utils');
|
|
@@ -1007,15 +1020,15 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1007
1020
|
case 'TextBlock':
|
|
1008
1021
|
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),
|
|
1009
1022
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
1010
|
-
label: placeholder, "data-control": "text", name: value }, form.getInputProps(value))));
|
|
1023
|
+
label: placeholder, "data-control": "text", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
1011
1024
|
case 'NumberBlock':
|
|
1012
1025
|
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),
|
|
1013
1026
|
// onChange={(e) => inputOnChange('number', e)}
|
|
1014
|
-
label: placeholder, "data-control": "number", name: value }, form.getInputProps(value))));
|
|
1027
|
+
label: placeholder, "data-control": "number", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
1015
1028
|
case 'EmailBlock':
|
|
1016
1029
|
return (React__default["default"].createElement(index$3.Input, Object.assign({ key: index, withAsterisk: required, spellCheck: false,
|
|
1017
1030
|
// type="email"
|
|
1018
|
-
placeholder: placeholder, className: cx('leadgen-control', classes.control), label: placeholder, "data-control": "email", name: value }, form.getInputProps(value))));
|
|
1031
|
+
placeholder: placeholder, className: cx('leadgen-control', classes.control), label: placeholder, "data-control": "email", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
1019
1032
|
case 'PhoneOtpBlock':
|
|
1020
1033
|
case 'WhatsappOtpBlock':
|
|
1021
1034
|
case 'ZaloOtpBlock':
|
|
@@ -1030,14 +1043,14 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1030
1043
|
form.setFieldValue(value, v);
|
|
1031
1044
|
},
|
|
1032
1045
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
1033
|
-
id: id, defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel" })));
|
|
1046
|
+
id: id, defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name })));
|
|
1034
1047
|
}
|
|
1035
1048
|
case 'LocationBlock': {
|
|
1036
1049
|
return (React__default["default"].createElement(LocationBlock, { key: index, name: value, placeholder: placeholder, locale: locale, required: required }));
|
|
1037
1050
|
}
|
|
1038
1051
|
case 'DateBlock':
|
|
1039
1052
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1040
|
-
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", popoverProps: popoverProps }, form.getInputProps(value))),
|
|
1053
|
+
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))),
|
|
1041
1054
|
React__default["default"].createElement("input", { type: "hidden", name: value, "data-control": "date" })));
|
|
1042
1055
|
case 'LinkButtonBlock':
|
|
1043
1056
|
return (React__default["default"].createElement("div", { key: index },
|
|
@@ -1055,11 +1068,11 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1055
1068
|
display: 'flex',
|
|
1056
1069
|
flexDirection: 'column',
|
|
1057
1070
|
gap: 8,
|
|
1058
|
-
} }, 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" }))))));
|
|
1071
|
+
} }, 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 }))))));
|
|
1059
1072
|
case 'RadioBlock':
|
|
1060
1073
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1061
1074
|
isSendMailChimp && (React__default["default"].createElement(index$3.Input, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
1062
|
-
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" }))))));
|
|
1075
|
+
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 }))))));
|
|
1063
1076
|
case 'DropdownBlock':
|
|
1064
1077
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1065
1078
|
React__default["default"].createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
@@ -1070,7 +1083,7 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1070
1083
|
case 'TncBlock':
|
|
1071
1084
|
const tncInputProps = form.getInputProps('TNC-' + b.id);
|
|
1072
1085
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1073
|
-
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" }, tncInputProps, { error: tncInputProps.error ? tncInputProps.error : undefined }))));
|
|
1086
|
+
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 }))));
|
|
1074
1087
|
}
|
|
1075
1088
|
return null;
|
|
1076
1089
|
})));
|
|
@@ -1103,7 +1116,9 @@ const Heading = (_a) => {
|
|
|
1103
1116
|
const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps, submitProps, }) => {
|
|
1104
1117
|
var _a;
|
|
1105
1118
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
1106
|
-
const { listBlockAdded, leadFormConfig: { form, validateObj }, validatingEmailRef, validatingPhoneRef,
|
|
1119
|
+
const { listBlockAdded, leadFormConfig: { form, validateObj }, validatingEmailRef, validatingPhoneRef,
|
|
1120
|
+
// formRef,
|
|
1121
|
+
setFormRef, onClose, onOtherSubmit, actionBlocks, locale, setShowOtpPhone, onSubmit, } = React.useContext(LeadGenComponentContext);
|
|
1107
1122
|
const { classes, cx } = useStyles$1(undefined, {
|
|
1108
1123
|
name: 'LeadGen__FormComponent',
|
|
1109
1124
|
styles,
|
|
@@ -1164,7 +1179,7 @@ const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps,
|
|
|
1164
1179
|
var _a;
|
|
1165
1180
|
const respMessage = (_a = res === null || res === void 0 ? void 0 : res._messages) === null || _a === void 0 ? void 0 : _a[0];
|
|
1166
1181
|
if (respMessage === 'This phone number was verified') {
|
|
1167
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
1182
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
|
|
1168
1183
|
return;
|
|
1169
1184
|
}
|
|
1170
1185
|
setShowOtpPhone(newShowOtpPhone);
|
|
@@ -1174,7 +1189,7 @@ const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps,
|
|
|
1174
1189
|
});
|
|
1175
1190
|
return;
|
|
1176
1191
|
}
|
|
1177
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
1192
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
|
|
1178
1193
|
})(e);
|
|
1179
1194
|
}, 100);
|
|
1180
1195
|
};
|
|
@@ -1344,10 +1359,13 @@ const OtpBlockComponent = ({ otpData, onSuccess, autoSendWhenOpen, className, st
|
|
|
1344
1359
|
};
|
|
1345
1360
|
const OtpBlock$1 = (_a) => {
|
|
1346
1361
|
var rest = tslib_es6.__rest(_a, []);
|
|
1347
|
-
const { showOtpPhone, setShowOtpPhone, onSubmit,
|
|
1362
|
+
const { showOtpPhone, setShowOtpPhone, onSubmit,
|
|
1363
|
+
// formRef,
|
|
1364
|
+
// leadFormConfig: { form },
|
|
1365
|
+
} = React.useContext(LeadGenComponentContext);
|
|
1348
1366
|
return showOtpPhone ? (React__default["default"].createElement(OtpBlockComponent, Object.assign({ otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
1349
1367
|
setShowOtpPhone(null);
|
|
1350
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
1368
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
|
|
1351
1369
|
} }, rest))) : null;
|
|
1352
1370
|
};
|
|
1353
1371
|
|
|
@@ -2150,7 +2168,7 @@ const [LeadFormProvider, useLeadFormContext, useLeadForm] = form.createFormConte
|
|
|
2150
2168
|
const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validatingEmailRef, campaignId, campaign_subot_id = [], userInfo, format, }) => {
|
|
2151
2169
|
var _a;
|
|
2152
2170
|
const { t } = index$1.useTranslations();
|
|
2153
|
-
const initialValues = React.useMemo(() => mappingSSOToLead(userInfo), [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
2171
|
+
const initialValues = React.useMemo(() => formatLeadGenFormValue(mappingSSOToLead(userInfo), listBlockAdded), [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
2154
2172
|
const LEAD_LOCALE = LEAD_LOCALE_DATA[(_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.lang] ||
|
|
2155
2173
|
LEAD_LOCALE_DATA['vi-VN'];
|
|
2156
2174
|
const validateObj = React.useMemo(() => {
|
|
@@ -2385,15 +2403,14 @@ const StyledLeadGenSubscriptionBoxBody = styled__default["default"].div `
|
|
|
2385
2403
|
}
|
|
2386
2404
|
`;
|
|
2387
2405
|
const StyledLeadGenSubscriptionBoxHeaderImage = styled__default["default"].div `
|
|
2388
|
-
margin-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
height: 44px;
|
|
2406
|
+
margin-left: 24px;
|
|
2407
|
+
width: 68px;
|
|
2408
|
+
height: 68px;
|
|
2392
2409
|
|
|
2393
2410
|
img {
|
|
2394
2411
|
width: 100%;
|
|
2395
2412
|
height: 100%;
|
|
2396
|
-
object-
|
|
2413
|
+
object-fit: contain;
|
|
2397
2414
|
onject-position: center;
|
|
2398
2415
|
}
|
|
2399
2416
|
|
|
@@ -2410,7 +2427,7 @@ const StyledLeadGenSubscriptionBoxHeader = styled__default["default"].div `
|
|
|
2410
2427
|
flex: 1;
|
|
2411
2428
|
min-width: 0;
|
|
2412
2429
|
color: ${miscTheme.theme.colors.gray900};
|
|
2413
|
-
font-size:
|
|
2430
|
+
font-size: 17px;
|
|
2414
2431
|
font-weight: 400;
|
|
2415
2432
|
line-height: 1.4;
|
|
2416
2433
|
letter-spacing: -0.4px;
|
|
@@ -2426,6 +2443,12 @@ const StyledLeadGenSubscriptionBoxHeader = styled__default["default"].div `
|
|
|
2426
2443
|
const StyledLeadGenSubscriptionBox = styled__default["default"].div `
|
|
2427
2444
|
padding: 16px;
|
|
2428
2445
|
border: 1px solid ${miscTheme.theme.colors.neutral100};
|
|
2446
|
+
background: linear-gradient(
|
|
2447
|
+
180.71deg,
|
|
2448
|
+
#7bc2ff -18.54%,
|
|
2449
|
+
#e3f2ff 17.12%,
|
|
2450
|
+
#ffffff 99.25%
|
|
2451
|
+
);
|
|
2429
2452
|
border-radius: 12px;
|
|
2430
2453
|
margin-inline: auto;
|
|
2431
2454
|
.leadgen-form_inputs {
|
|
@@ -2459,6 +2482,7 @@ const StyledLeadGenSubscriptionBox = styled__default["default"].div `
|
|
|
2459
2482
|
margin-left: 8px;
|
|
2460
2483
|
width: auto;
|
|
2461
2484
|
min-height: 56px;
|
|
2485
|
+
font-size: 16px;
|
|
2462
2486
|
}
|
|
2463
2487
|
}
|
|
2464
2488
|
}
|
|
@@ -2558,18 +2582,6 @@ const GoogleLocationBlock = (props) => {
|
|
|
2558
2582
|
} }, restProps)));
|
|
2559
2583
|
};
|
|
2560
2584
|
|
|
2561
|
-
const formatLeadGenFormValue = (values, blocks) => {
|
|
2562
|
-
const newValues = {};
|
|
2563
|
-
for (const block of blocks) {
|
|
2564
|
-
const { data } = block || {};
|
|
2565
|
-
const { value: fieldName } = data || {};
|
|
2566
|
-
if (fieldName in values) {
|
|
2567
|
-
newValues[fieldName] = values[fieldName];
|
|
2568
|
-
}
|
|
2569
|
-
}
|
|
2570
|
-
return newValues;
|
|
2571
|
-
};
|
|
2572
|
-
|
|
2573
2585
|
const StyledLeadGenFormInner = styled__default["default"].div `
|
|
2574
2586
|
display: flex;
|
|
2575
2587
|
flex-wrap: wrap;
|
|
@@ -3100,8 +3112,8 @@ const LeadGenSubscriptionBoxA = (props) => {
|
|
|
3100
3112
|
}, [title]);
|
|
3101
3113
|
return (React__default["default"].createElement(StyledLeadGenSubscriptionBoxA, { className: "subcription_box_A" },
|
|
3102
3114
|
React__default["default"].createElement(StyledLeadGenSubscriptionBoxHeader, { className: "leadgen-subscription_box_header" },
|
|
3103
|
-
|
|
3104
|
-
|
|
3115
|
+
titleComp,
|
|
3116
|
+
imageComp),
|
|
3105
3117
|
React__default["default"].createElement(StyledLeadGenSubscriptionBoxBody, { className: "leadgen-subscription_box_body" },
|
|
3106
3118
|
React__default["default"].createElement(LeadGenForm, { ref: formRef, form: form, rules: rules, blocks: blocks, locale: locale, onFinish: onFinish, className: "leadgen-subscription_box_form" }),
|
|
3107
3119
|
React__default["default"].createElement(core.Button, { disabled: loading, loading: loading, variant: "filled", size: "lg", onClick: () => {
|
|
@@ -4404,20 +4416,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4404
4416
|
React__default["default"].createElement(core.TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: " ",
|
|
4405
4417
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4406
4418
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4407
|
-
label: label, "data-control": "text",
|
|
4419
|
+
label: label, "data-control": "text", "data-lead-control": 'TextBlock', inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value), { name: value }))));
|
|
4408
4420
|
case 'NumberBlock':
|
|
4409
4421
|
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4410
4422
|
React__default["default"].createElement(core.NumberInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: " ",
|
|
4411
4423
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4412
4424
|
// onChange={(e) => inputOnChange('number', e)}
|
|
4413
|
-
label: label, "data-control": "number", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4425
|
+
label: label, "data-control": "number", "data-lead-control": name, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4414
4426
|
case 'EmailBlock':
|
|
4415
4427
|
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4416
4428
|
React__default["default"].createElement(core.TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4417
4429
|
// type="email"
|
|
4418
4430
|
placeholder: " ",
|
|
4419
4431
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4420
|
-
label: label, "data-control": "email", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4432
|
+
label: label, "data-control": "email", "data-lead-control": name, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4421
4433
|
case 'PhoneOtpBlock':
|
|
4422
4434
|
case 'WhatsappOtpBlock':
|
|
4423
4435
|
case 'ZaloOtpBlock':
|
|
@@ -4431,7 +4443,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4431
4443
|
React__default["default"].createElement("div", { className: "mantine-Input-wrapper" },
|
|
4432
4444
|
React__default["default"].createElement(index$3.Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: " ",
|
|
4433
4445
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4434
|
-
id: htmlForId, defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel" }, formPhoneInputWrapper))))));
|
|
4446
|
+
id: htmlForId, defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name }, formPhoneInputWrapper))))));
|
|
4435
4447
|
}
|
|
4436
4448
|
case 'LocationBlock': {
|
|
4437
4449
|
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
@@ -4440,7 +4452,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4440
4452
|
case 'DateBlock': {
|
|
4441
4453
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = tslib_es6.__rest(_c, ["error"]);
|
|
4442
4454
|
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" },
|
|
4443
|
-
React__default["default"].createElement(InputDate.InputDate, Object.assign({ name: value, error: Boolean(error), locale: locale, "data-extra": true, "data-name": value, "data-control": "date", className: "leadgen-form_field_date", labelTuples: labelTuples }, formInputProps))));
|
|
4455
|
+
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))));
|
|
4444
4456
|
}
|
|
4445
4457
|
case 'LinkButtonBlock':
|
|
4446
4458
|
return (React__default["default"].createElement("div", { key: index },
|
|
@@ -4463,7 +4475,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4463
4475
|
gap: 8,
|
|
4464
4476
|
}, inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4465
4477
|
return (React__default["default"].createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4466
|
-
} }, 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" }))))));
|
|
4478
|
+
} }, 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 }))))));
|
|
4467
4479
|
case 'RadioBlock':
|
|
4468
4480
|
return (React__default["default"].createElement(ChoiceField, { className: "leadgen-form_radio", key: index },
|
|
4469
4481
|
isSendMailChimp && (React__default["default"].createElement(core.Input, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
@@ -4471,7 +4483,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4471
4483
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4472
4484
|
label: label, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4473
4485
|
return (React__default["default"].createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4474
|
-
} }, 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" }))))));
|
|
4486
|
+
} }, 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 }))))));
|
|
4475
4487
|
case 'DropdownBlock':
|
|
4476
4488
|
return (React__default["default"].createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field DropdownBlock", key: index },
|
|
4477
4489
|
React__default["default"].createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
@@ -4508,7 +4520,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4508
4520
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = tslib_es6.__rest(_d, ["error"]);
|
|
4509
4521
|
return (React__default["default"].createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
4510
4522
|
React__default["default"].createElement(core.Input.Wrapper, { error: error },
|
|
4511
|
-
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" }, tncInputProps)))));
|
|
4523
|
+
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)))));
|
|
4512
4524
|
}
|
|
4513
4525
|
return null;
|
|
4514
4526
|
})));
|
|
@@ -4756,8 +4768,9 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4756
4768
|
LEADGEN_LAYOUT.Sidebar,
|
|
4757
4769
|
LEADGEN_LAYOUT.Slider,
|
|
4758
4770
|
];
|
|
4759
|
-
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4760
|
-
const
|
|
4771
|
+
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4772
|
+
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
4773
|
+
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, }) => {
|
|
4761
4774
|
var _a, _b;
|
|
4762
4775
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
4763
4776
|
const { isMobile } = useScreenSize.useScreenSize();
|
|
@@ -4765,17 +4778,25 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4765
4778
|
const [showOtpPhone, setShowOtpPhone] = React.useState(null);
|
|
4766
4779
|
const [isSubmitLoading, setIsSubmitLoading] = React.useState(false);
|
|
4767
4780
|
const [snap, setSnap] = React.useState(0.8);
|
|
4781
|
+
const isTrackedForm = React.useRef(false);
|
|
4768
4782
|
const formRef = React.useRef();
|
|
4783
|
+
const [lastFormRef, setLastFormRef] = React.useState();
|
|
4769
4784
|
const onClose = () => {
|
|
4770
4785
|
if (showOtpPhone) {
|
|
4771
4786
|
setShowOtpPhone(null);
|
|
4772
4787
|
}
|
|
4773
4788
|
else {
|
|
4774
|
-
onCloseProp === null || onCloseProp === void 0 ? void 0 : onCloseProp(
|
|
4789
|
+
onCloseProp === null || onCloseProp === void 0 ? void 0 : onCloseProp({
|
|
4790
|
+
formValues: form.values,
|
|
4791
|
+
formActiveTime: formActiveTime.current,
|
|
4792
|
+
formRef: formRef.current,
|
|
4793
|
+
listBlockAdded,
|
|
4794
|
+
});
|
|
4775
4795
|
}
|
|
4776
4796
|
};
|
|
4777
4797
|
const { height } = useViewportDimensions();
|
|
4778
4798
|
usePreventScroll();
|
|
4799
|
+
const formActiveTime = React.useRef(0);
|
|
4779
4800
|
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
4780
4801
|
const listBlockAdded = JSON.parse(extraFields.listBlockAdded);
|
|
4781
4802
|
const actionBlocks = JSON.parse(extraFields.actionBlocks);
|
|
@@ -4801,6 +4822,17 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4801
4822
|
const showHeader = !!imageMobile || !!imageDesktop;
|
|
4802
4823
|
const onlyHeader = !title && !description;
|
|
4803
4824
|
const showButtonClose = !isInline;
|
|
4825
|
+
const validatingPhoneRef = React.useRef(false);
|
|
4826
|
+
const validatingEmailRef = React.useRef(false);
|
|
4827
|
+
const { form, validateObj } = useLeadFormConfig({
|
|
4828
|
+
listBlockAdded,
|
|
4829
|
+
validatingPhoneRef,
|
|
4830
|
+
validatingEmailRef,
|
|
4831
|
+
campaignId,
|
|
4832
|
+
campaign_subot_id,
|
|
4833
|
+
userInfo,
|
|
4834
|
+
format: (_a = (index$7.ISO_FORMAT[locale] || index$7.ISO_FORMAT['vi-VN'])) === null || _a === void 0 ? void 0 : _a.dateFormat,
|
|
4835
|
+
});
|
|
4804
4836
|
if (window.innerWidth < 769 &&
|
|
4805
4837
|
LEADGEN_LAYOUT_NOT_SHOW_IN_MOBILE.includes(currentLayout)) {
|
|
4806
4838
|
console.log('😎 Not show fullscreen, slider on mobile ');
|
|
@@ -4815,17 +4847,33 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4815
4847
|
}
|
|
4816
4848
|
clearCacheUsedEmailOrPhone();
|
|
4817
4849
|
}, []);
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4850
|
+
React.useEffect(() => {
|
|
4851
|
+
formRef.current && setLastFormRef(formRef.current);
|
|
4852
|
+
}, [formRef.current]);
|
|
4853
|
+
React.useEffect(() => {
|
|
4854
|
+
const handleBeforeUnload = () => {
|
|
4855
|
+
!isTrackedForm.current &&
|
|
4856
|
+
!showThankyou &&
|
|
4857
|
+
(onUnmount === null || onUnmount === void 0 ? void 0 : onUnmount({
|
|
4858
|
+
formValues: form.values,
|
|
4859
|
+
formActiveTime: formActiveTime.current,
|
|
4860
|
+
formRef: lastFormRef,
|
|
4861
|
+
listBlockAdded,
|
|
4862
|
+
}));
|
|
4863
|
+
};
|
|
4864
|
+
window.addEventListener('beforeunload', handleBeforeUnload);
|
|
4865
|
+
return () => window.removeEventListener('beforeunload', handleBeforeUnload);
|
|
4866
|
+
}, [lastFormRef, form.values, showThankyou]);
|
|
4867
|
+
React.useEffect(() => {
|
|
4868
|
+
let intervalId = null;
|
|
4869
|
+
if (isLightBox && !showThankyou) {
|
|
4870
|
+
intervalId = setInterval(() => {
|
|
4871
|
+
formActiveTime.current += 1;
|
|
4872
|
+
// console.log({ formActiveTime: formActiveTime.current })
|
|
4873
|
+
}, 1000);
|
|
4874
|
+
}
|
|
4875
|
+
return () => clearInterval(intervalId);
|
|
4876
|
+
}, [showThankyou]);
|
|
4829
4877
|
const listBlockAddedRequired = React.useMemo(() => leadGenFieldRequired(listBlockAdded), listBlockAdded);
|
|
4830
4878
|
const disabledButtonSubmit = React.useMemo(() => {
|
|
4831
4879
|
if (listBlockAddedRequired.length) {
|
|
@@ -4931,7 +4979,12 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4931
4979
|
var _a;
|
|
4932
4980
|
const respMessage = (_a = res === null || res === void 0 ? void 0 : res._messages) === null || _a === void 0 ? void 0 : _a[0];
|
|
4933
4981
|
if (respMessage === 'This phone number was verified') {
|
|
4934
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
4982
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
4983
|
+
formValues: v,
|
|
4984
|
+
formActiveTime: formActiveTime.current,
|
|
4985
|
+
formRef: formRef.current,
|
|
4986
|
+
listBlockAdded,
|
|
4987
|
+
});
|
|
4935
4988
|
return;
|
|
4936
4989
|
}
|
|
4937
4990
|
setShowOtpPhone(newShowOtpPhone);
|
|
@@ -4941,7 +4994,12 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4941
4994
|
});
|
|
4942
4995
|
return;
|
|
4943
4996
|
}
|
|
4944
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
4997
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
4998
|
+
formValues: v,
|
|
4999
|
+
formActiveTime: formActiveTime.current,
|
|
5000
|
+
formRef: formRef.current,
|
|
5001
|
+
listBlockAdded,
|
|
5002
|
+
});
|
|
4945
5003
|
})(e);
|
|
4946
5004
|
}, 100);
|
|
4947
5005
|
};
|
|
@@ -4987,7 +5045,12 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4987
5045
|
React__default["default"].createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit }))))));
|
|
4988
5046
|
const PopupOtp = showOtpPhone && (React__default["default"].createElement(OtpBlock, { otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
4989
5047
|
setShowOtpPhone(null);
|
|
4990
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
5048
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
5049
|
+
formValues: form.values,
|
|
5050
|
+
formActiveTime: formActiveTime.current,
|
|
5051
|
+
formRef: formRef.current,
|
|
5052
|
+
listBlockAdded,
|
|
5053
|
+
});
|
|
4991
5054
|
} }));
|
|
4992
5055
|
const PopupThankYou = showThankyou && (React__default["default"].createElement(ThankyouPopup, { title: showThankyou.title, titleAlign: showThankyou.titleAlign, subtitle: showThankyou.subtitle, subtitleAlign: showThankyou.subtitleAlign, link: showThankyou.link, linkNewTab: showThankyou.linkNewTab, linkText: showThankyou.linkText, image: showThankyou.image }));
|
|
4993
5056
|
const PopupContent = (React__default["default"].createElement("div", { className: core.clsx('leadgen-content', {
|
|
@@ -5135,7 +5198,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
|
|
|
5135
5198
|
return null;
|
|
5136
5199
|
}
|
|
5137
5200
|
}
|
|
5138
|
-
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5201
|
+
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5139
5202
|
var _a, _b;
|
|
5140
5203
|
const { apiUrl, siteDomain } = React.useContext(LeadGenContext$1);
|
|
5141
5204
|
React.useEffect(() => {
|
|
@@ -5254,7 +5317,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, local
|
|
|
5254
5317
|
currentLayout == 'Fullscreen' ||
|
|
5255
5318
|
currentLayout == 'Sidebar' ||
|
|
5256
5319
|
currentLayout == 'Slider') {
|
|
5257
|
-
return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (
|
|
5320
|
+
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 }));
|
|
5258
5321
|
}
|
|
5259
5322
|
else if (currentLayout.includes('Skin')) {
|
|
5260
5323
|
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 }));
|
|
@@ -5262,9 +5325,69 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, local
|
|
|
5262
5325
|
return null;
|
|
5263
5326
|
};
|
|
5264
5327
|
|
|
5328
|
+
const numberFormatType = 2; // i18n.phonenumbers.PhoneNumberFormat.NATIONAL
|
|
5329
|
+
const formatFormData = (currentForm, formData) => formData.map((i) => {
|
|
5330
|
+
var _a, _b, _c, _d;
|
|
5331
|
+
const control = ((_a = currentForm
|
|
5332
|
+
.querySelector(`*[name="${i.name}"][data-control]`)) === null || _a === void 0 ? void 0 : _a.getAttribute('data-control')) ||
|
|
5333
|
+
((_b = currentForm
|
|
5334
|
+
.querySelector(`*[data-extra][data-name="${i.name}"]`)) === null || _b === void 0 ? void 0 : _b.getAttribute('data-control')) ||
|
|
5335
|
+
'text';
|
|
5336
|
+
const leadControl = ((_c = currentForm
|
|
5337
|
+
.querySelector(`*[name="${i.name}"][data-lead-control]`)) === null || _c === void 0 ? void 0 : _c.getAttribute('data-lead-control')) ||
|
|
5338
|
+
((_d = currentForm
|
|
5339
|
+
.querySelector(`*[data-extra][data-name="${i.name}"]`)) === null || _d === void 0 ? void 0 : _d.getAttribute('data-lead-control')) ||
|
|
5340
|
+
'text';
|
|
5341
|
+
const value = control === 'tel'
|
|
5342
|
+
? window.intlTelInputUtils
|
|
5343
|
+
.formatNumber(String(i.value), LEAD_LOCALE === null || LEAD_LOCALE === void 0 ? void 0 : LEAD_LOCALE.countryCodeNumber, numberFormatType)
|
|
5344
|
+
.replace(/\s+/g, '')
|
|
5345
|
+
: control === 'date'
|
|
5346
|
+
? dayjs__default["default"](i.value).format('YYYY-MM-DD')
|
|
5347
|
+
: i.value;
|
|
5348
|
+
return {
|
|
5349
|
+
key: i.name,
|
|
5350
|
+
value,
|
|
5351
|
+
control,
|
|
5352
|
+
leadControl,
|
|
5353
|
+
// is_sent_mailchimp: currentForm.querySelector(
|
|
5354
|
+
// `div[data-name="${i.name}-mailchimp"]`,
|
|
5355
|
+
// )
|
|
5356
|
+
// ? 'true'
|
|
5357
|
+
// : 'false',
|
|
5358
|
+
};
|
|
5359
|
+
});
|
|
5360
|
+
|
|
5361
|
+
const formatTrackingData = (params) => {
|
|
5362
|
+
const { formParams = {}, currentLayout, commonData } = params;
|
|
5363
|
+
const { formValues, formActiveTime, listBlockAdded } = formParams;
|
|
5364
|
+
const listFieldHasValue = [];
|
|
5365
|
+
const data = Object.assign(Object.assign({ template_type: currentLayout, time_on_form: [LEADGEN_LAYOUT.LightBoxA, LEADGEN_LAYOUT.LightBoxB].includes(currentLayout)
|
|
5366
|
+
? formActiveTime
|
|
5367
|
+
: 0 }, commonData), { data_input: formValues.map((control) => {
|
|
5368
|
+
listFieldHasValue.push(control.leadControl);
|
|
5369
|
+
return {
|
|
5370
|
+
field_name: control.key,
|
|
5371
|
+
component_type: control.leadControl,
|
|
5372
|
+
value: control.value,
|
|
5373
|
+
};
|
|
5374
|
+
}), data_not_input: listBlockAdded
|
|
5375
|
+
.map((item) => {
|
|
5376
|
+
const leadControlName = item.name;
|
|
5377
|
+
if (!listFieldHasValue.includes(leadControlName)) {
|
|
5378
|
+
return {
|
|
5379
|
+
field_name: item.data.value,
|
|
5380
|
+
component_type: leadControlName,
|
|
5381
|
+
};
|
|
5382
|
+
}
|
|
5383
|
+
})
|
|
5384
|
+
.filter(Boolean) });
|
|
5385
|
+
return data;
|
|
5386
|
+
};
|
|
5387
|
+
|
|
5265
5388
|
// mount css
|
|
5266
5389
|
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, }) => {
|
|
5267
|
-
var _a;
|
|
5390
|
+
var _a, _b;
|
|
5268
5391
|
const scrollEventHandlerRef = React.useRef();
|
|
5269
5392
|
const leadStartTimeRef = React.useRef(Date.now());
|
|
5270
5393
|
const { apiUrl } = React.useMemo(() => {
|
|
@@ -5280,6 +5403,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5280
5403
|
const [action, setAction] = React.useState('');
|
|
5281
5404
|
const [showThankyou, setShowThankyou] = React.useState(null);
|
|
5282
5405
|
const [showEmpty, setShowEmpty] = React.useState(false);
|
|
5406
|
+
const currentLayout = React.useMemo(() => showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout, [showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout]);
|
|
5283
5407
|
React.useEffect(() => {
|
|
5284
5408
|
if (forceCampaign) {
|
|
5285
5409
|
setShowCampaign(forceCampaign);
|
|
@@ -5302,14 +5426,15 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5302
5426
|
setAction('HIDE');
|
|
5303
5427
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
5304
5428
|
};
|
|
5305
|
-
const onClose = () => {
|
|
5306
|
-
var
|
|
5429
|
+
const onClose = (params) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
5430
|
+
var _c, _d;
|
|
5431
|
+
const { formRef, listBlockAdded, formValues: formDataObj } = params;
|
|
5307
5432
|
if (!showCampaign)
|
|
5308
5433
|
return;
|
|
5309
5434
|
LeadLog(`👋👋👋 CLOSE POPUP ${showCampaign.code} 👋👋👋`);
|
|
5310
5435
|
if (!excludeExitRulesHandler) {
|
|
5311
|
-
const showAfterExit = Number((
|
|
5312
|
-
const expiresDay = Number((
|
|
5436
|
+
const showAfterExit = Number((_c = showCampaign.rules.find((rule) => rule.rule == 'show_again_after_exit')) === null || _c === void 0 ? void 0 : _c.value);
|
|
5437
|
+
const expiresDay = Number((_d = showCampaign.rules.find((rule) => rule.rule == 'days_to_show_again')) === null || _d === void 0 ? void 0 : _d.value);
|
|
5313
5438
|
if (showAfterExit == 0) {
|
|
5314
5439
|
if (!expiresDay) {
|
|
5315
5440
|
miscCookieHelper.setCookie(`lead_closed_${showCampaign.code}`, `target_${showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.popupVersion}`, { domain: '.' + siteDomain, path: '/' });
|
|
@@ -5319,21 +5444,73 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5319
5444
|
}
|
|
5320
5445
|
}
|
|
5321
5446
|
}
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5447
|
+
const formData = Object.keys(formDataObj)
|
|
5448
|
+
.filter((key) => !!formDataObj[key])
|
|
5449
|
+
.map((key) => ({
|
|
5450
|
+
name: key,
|
|
5451
|
+
value: String(formDataObj[key]),
|
|
5452
|
+
}));
|
|
5453
|
+
let formatedFormData = null;
|
|
5454
|
+
if (!showThankyou) {
|
|
5455
|
+
formatedFormData = formatFormData(formRef, formData);
|
|
5456
|
+
}
|
|
5457
|
+
yield Promise.all([
|
|
5458
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/popup_exit`, {
|
|
5459
|
+
method: 'POST',
|
|
5460
|
+
headers: {
|
|
5461
|
+
'Content-Type': 'application/json',
|
|
5462
|
+
},
|
|
5463
|
+
body: JSON.stringify({
|
|
5464
|
+
action: 'CLICK',
|
|
5465
|
+
url: location.href.toLowerCase(),
|
|
5466
|
+
title_article: document.title,
|
|
5467
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
5468
|
+
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5469
|
+
}),
|
|
5333
5470
|
}),
|
|
5334
|
-
|
|
5471
|
+
!showThankyou &&
|
|
5472
|
+
trackingCompletionForm({
|
|
5473
|
+
commonData: {
|
|
5474
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
5475
|
+
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
5476
|
+
country_code: locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5477
|
+
status: 'in_progress',
|
|
5478
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5479
|
+
total_fields: listBlockAdded.length,
|
|
5480
|
+
},
|
|
5481
|
+
currentLayout,
|
|
5482
|
+
formParams: Object.assign(Object.assign({}, params), { formValues: formatedFormData }),
|
|
5483
|
+
}),
|
|
5484
|
+
]);
|
|
5335
5485
|
onCloseBase();
|
|
5336
|
-
};
|
|
5486
|
+
});
|
|
5487
|
+
const onUnmount = (params) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
5488
|
+
const { formRef, listBlockAdded, formValues: formDataObj } = params;
|
|
5489
|
+
if ([LEADGEN_LAYOUT.InlineA, LEADGEN_LAYOUT.InlineB].includes(currentLayout) &&
|
|
5490
|
+
Object.keys(formDataObj).length === 0)
|
|
5491
|
+
return;
|
|
5492
|
+
const formData = Object.keys(formDataObj)
|
|
5493
|
+
.filter((key) => !!formDataObj[key])
|
|
5494
|
+
.map((key) => ({
|
|
5495
|
+
name: key,
|
|
5496
|
+
value: String(formDataObj[key]),
|
|
5497
|
+
}));
|
|
5498
|
+
const formatedFormData = formatFormData(formRef, formData);
|
|
5499
|
+
const data = formatTrackingData({
|
|
5500
|
+
commonData: {
|
|
5501
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
5502
|
+
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
5503
|
+
country_code: locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5504
|
+
status: 'in_progress',
|
|
5505
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5506
|
+
total_fields: listBlockAdded.length,
|
|
5507
|
+
},
|
|
5508
|
+
currentLayout,
|
|
5509
|
+
formParams: Object.assign(Object.assign({}, params), { formValues: formatedFormData }),
|
|
5510
|
+
});
|
|
5511
|
+
const blob = new Blob([JSON.stringify(data)], { type: 'application/json' });
|
|
5512
|
+
navigator.sendBeacon(`${apiUrl}api/collection/tracking-completion`, blob);
|
|
5513
|
+
});
|
|
5337
5514
|
React.useEffect(() => {
|
|
5338
5515
|
if (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code)
|
|
5339
5516
|
return;
|
|
@@ -5372,8 +5549,24 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5372
5549
|
DEBUG_URL,
|
|
5373
5550
|
});
|
|
5374
5551
|
}, []);
|
|
5375
|
-
const
|
|
5376
|
-
|
|
5552
|
+
const trackingCompletionForm = React.useCallback((params) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
5553
|
+
const { currentLayout, formParams } = params;
|
|
5554
|
+
const { formValues } = formParams;
|
|
5555
|
+
if ([LEADGEN_LAYOUT.InlineA, LEADGEN_LAYOUT.InlineB].includes(currentLayout) &&
|
|
5556
|
+
Object.keys(formValues).length === 0)
|
|
5557
|
+
return;
|
|
5558
|
+
const data = formatTrackingData(params);
|
|
5559
|
+
return fetch(`${apiUrl}api/collection/tracking-completion`, {
|
|
5560
|
+
method: 'POST',
|
|
5561
|
+
headers: {
|
|
5562
|
+
'Content-Type': 'application/json',
|
|
5563
|
+
},
|
|
5564
|
+
body: JSON.stringify(data),
|
|
5565
|
+
});
|
|
5566
|
+
}), [(_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.currentLayout]);
|
|
5567
|
+
const onSubmit = (params, categoryLevel, categoryData) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
5568
|
+
var _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
5569
|
+
const { formRef, listBlockAdded, formValues: formDataObj } = params;
|
|
5377
5570
|
if (!formDataObj || Object.values(formDataObj).every((v) => !Boolean(v))) {
|
|
5378
5571
|
setShowEmpty(true);
|
|
5379
5572
|
return;
|
|
@@ -5386,55 +5579,26 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5386
5579
|
value: String(formDataObj[key]),
|
|
5387
5580
|
}));
|
|
5388
5581
|
console.log('** RYAN index.tsx 218 formData : ', formData);
|
|
5389
|
-
const numberFormatType = 2; // i18n.phonenumbers.PhoneNumberFormat.NATIONAL
|
|
5390
5582
|
// Get ga_client_id from cookies
|
|
5391
5583
|
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
5392
5584
|
if (!window.intlTelInputUtils) {
|
|
5393
5585
|
yield require('intl-tel-input/build/js/utils');
|
|
5394
5586
|
}
|
|
5395
|
-
const
|
|
5396
|
-
|
|
5397
|
-
title_article: document.title,
|
|
5398
|
-
meta: [
|
|
5399
|
-
...formData.map((i) => {
|
|
5400
|
-
var _a, _b;
|
|
5401
|
-
const control = ((_a = currentForm
|
|
5402
|
-
.querySelector(`*[name="${i.name}"][data-control]`)) === null || _a === void 0 ? void 0 : _a.getAttribute('data-control')) ||
|
|
5403
|
-
((_b = currentForm
|
|
5404
|
-
.querySelector(`*[data-extra][data-name="${i.name}"]`)) === null || _b === void 0 ? void 0 : _b.getAttribute('data-control')) ||
|
|
5405
|
-
'text';
|
|
5406
|
-
const value = control === 'tel'
|
|
5407
|
-
? window.intlTelInputUtils
|
|
5408
|
-
.formatNumber(String(i.value), LEAD_LOCALE === null || LEAD_LOCALE === void 0 ? void 0 : LEAD_LOCALE.countryCodeNumber, numberFormatType)
|
|
5409
|
-
.replace(/\s+/g, '')
|
|
5410
|
-
: control === 'date'
|
|
5411
|
-
? dayjs__default["default"](i.value).format('YYYY-MM-DD')
|
|
5412
|
-
: i.value;
|
|
5413
|
-
return {
|
|
5414
|
-
key: i.name,
|
|
5415
|
-
value,
|
|
5416
|
-
control,
|
|
5417
|
-
// is_sent_mailchimp: currentForm.querySelector(
|
|
5418
|
-
// `div[data-name="${i.name}-mailchimp"]`,
|
|
5419
|
-
// )
|
|
5420
|
-
// ? 'true'
|
|
5421
|
-
// : 'false',
|
|
5422
|
-
};
|
|
5423
|
-
}),
|
|
5424
|
-
...extraPayloadValues,
|
|
5425
|
-
],
|
|
5587
|
+
const formatedFormData = formatFormData(formRef, formData);
|
|
5588
|
+
const commonData = {
|
|
5426
5589
|
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
5427
5590
|
ga_client_id: gaCookie,
|
|
5428
5591
|
};
|
|
5592
|
+
const data = Object.assign({ url: location.href.toLowerCase(), title_article: document.title, meta: [...formatedFormData, ...extraPayloadValues] }, commonData);
|
|
5429
5593
|
// categoryLevel
|
|
5430
5594
|
if (categoryLevel) {
|
|
5431
5595
|
if (categoryData[categoryLevel].value_en) {
|
|
5432
5596
|
data['category'] = categoryData[categoryLevel].value_en;
|
|
5433
5597
|
}
|
|
5434
5598
|
}
|
|
5435
|
-
const expiresDay = Number(((
|
|
5599
|
+
const expiresDay = Number(((_f = (_e = showCampaign.rules) === null || _e === void 0 ? void 0 : _e.find((r) => r.rule === 'days_to_show_again')) === null || _f === void 0 ? void 0 : _f.value) ||
|
|
5436
5600
|
7);
|
|
5437
|
-
const showAgain = Number(((
|
|
5601
|
+
const showAgain = Number(((_h = (_g = showCampaign.rules) === null || _g === void 0 ? void 0 : _g.find((r) => r.rule === 'show_again_after_submit')) === null || _h === void 0 ? void 0 : _h.value) || 0);
|
|
5438
5602
|
if (showAgain == 0) {
|
|
5439
5603
|
LeadLog('⛔ Popup never show again!');
|
|
5440
5604
|
miscCookieHelper.setCookie(`lead_submited_${showCampaign.code}`, `target_${showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.targetType}`, { domain: '.' + siteDomain, path: '/' });
|
|
@@ -5443,13 +5607,20 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5443
5607
|
LeadLog(`⌛ Popup will show again after ${expiresDay} days!`);
|
|
5444
5608
|
miscCookieHelper.setCookie(`lead_submited_${showCampaign.code}`, `target_${showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.targetType}`, { domain: '.' + siteDomain, days: expiresDay, path: '/' });
|
|
5445
5609
|
}
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5610
|
+
yield Promise.all([
|
|
5611
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/lead`, {
|
|
5612
|
+
method: 'POST',
|
|
5613
|
+
headers: {
|
|
5614
|
+
'Content-Type': 'application/json',
|
|
5615
|
+
},
|
|
5616
|
+
body: JSON.stringify(data),
|
|
5617
|
+
}),
|
|
5618
|
+
trackingCompletionForm({
|
|
5619
|
+
commonData: Object.assign(Object.assign({}, commonData), { country_code: locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN', status: 'complete', campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id, total_fields: listBlockAdded.length }),
|
|
5620
|
+
currentLayout,
|
|
5621
|
+
formParams: Object.assign(Object.assign({}, params), { formValues: formatedFormData }),
|
|
5622
|
+
}),
|
|
5623
|
+
]);
|
|
5453
5624
|
onSubmitProps === null || onSubmitProps === void 0 ? void 0 : onSubmitProps(formDataObj);
|
|
5454
5625
|
if ((showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.popupShowThankYou) == 'notshow') {
|
|
5455
5626
|
onClose();
|
|
@@ -5468,15 +5639,15 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5468
5639
|
const titleBlock = listBlockThankyou.find((i) => i.name == 'TitleBlock');
|
|
5469
5640
|
const subtitleBlock = listBlockThankyou.find((i) => i.name == 'SubtitleBlock');
|
|
5470
5641
|
const linkButtonBlock = listBlockThankyou.find((i) => i.name == 'LinkButtonBlock');
|
|
5471
|
-
thankTitle = ((
|
|
5472
|
-
titleAlign = ((
|
|
5473
|
-
thankDesc = ((
|
|
5474
|
-
descAlign = ((
|
|
5475
|
-
linkText = ((
|
|
5476
|
-
linkNewTab = ((
|
|
5477
|
-
linkUrl = ((
|
|
5642
|
+
thankTitle = ((_j = titleBlock === null || titleBlock === void 0 ? void 0 : titleBlock.data) === null || _j === void 0 ? void 0 : _j.value) || '';
|
|
5643
|
+
titleAlign = ((_k = titleBlock === null || titleBlock === void 0 ? void 0 : titleBlock.data) === null || _k === void 0 ? void 0 : _k.align) || '';
|
|
5644
|
+
thankDesc = ((_l = subtitleBlock === null || subtitleBlock === void 0 ? void 0 : subtitleBlock.data) === null || _l === void 0 ? void 0 : _l.value) || '';
|
|
5645
|
+
descAlign = ((_m = subtitleBlock === null || subtitleBlock === void 0 ? void 0 : subtitleBlock.data) === null || _m === void 0 ? void 0 : _m.align) || '';
|
|
5646
|
+
linkText = ((_o = linkButtonBlock === null || linkButtonBlock === void 0 ? void 0 : linkButtonBlock.data) === null || _o === void 0 ? void 0 : _o.value) || '';
|
|
5647
|
+
linkNewTab = ((_p = linkButtonBlock === null || linkButtonBlock === void 0 ? void 0 : linkButtonBlock.data) === null || _p === void 0 ? void 0 : _p.newtab) || false;
|
|
5648
|
+
linkUrl = ((_q = linkButtonBlock === null || linkButtonBlock === void 0 ? void 0 : linkButtonBlock.data) === null || _q === void 0 ? void 0 : _q.url) || '';
|
|
5478
5649
|
// ALWAYS SHOW THANK YOU ON COMPOUND COMP
|
|
5479
|
-
// const curLayout =
|
|
5650
|
+
// const curLayout = currentLayout
|
|
5480
5651
|
// TODO: newbuilder thank you
|
|
5481
5652
|
// List layout not show thanks you
|
|
5482
5653
|
// if (
|
|
@@ -5533,16 +5704,22 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5533
5704
|
leadStartTimeRef.current = Date.now();
|
|
5534
5705
|
}
|
|
5535
5706
|
}, [showCampaign]);
|
|
5536
|
-
return (React__default["default"].createElement(LeadGenContext$1.Provider, { value: {
|
|
5707
|
+
return (React__default["default"].createElement(LeadGenContext$1.Provider, { value: {
|
|
5708
|
+
primaryColor,
|
|
5709
|
+
apiUrl,
|
|
5710
|
+
siteDomain,
|
|
5711
|
+
siteId,
|
|
5712
|
+
locale,
|
|
5713
|
+
} },
|
|
5537
5714
|
React__default["default"].createElement(translationsContext.TranslationsContext.Provider, { value: { locale, values: getTranslations(locale) } }, children ? (React__default["default"].createElement(Component, { campaign: showCampaign, onSubmit: onSubmit, onClose: onClose, showThankyou: showThankyou, setShowThankyou: setShowThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo }, children)) : (React__default["default"].createElement(core.Portal, { target: utils$1.getPopupWrapperDom() },
|
|
5538
5715
|
React__default["default"].createElement(core.Box, { sx: { position: 'fixed', zIndex: index$7.ZINDEX_SSO - 9e6 } },
|
|
5539
|
-
React__default["default"].createElement(core.Transition, { mounted: Boolean(((
|
|
5716
|
+
React__default["default"].createElement(core.Transition, { mounted: Boolean(((_b = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _b === void 0 ? void 0 : _b.popupVersion) === '2.1'), transition: "fade", duration: 600, timingFunction: "ease", exitDuration: 200 }, (styles) => {
|
|
5540
5717
|
var _a;
|
|
5541
5718
|
return (React__default["default"].createElement(core.Box, { style: styles }, ((_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.popupVersion) === '2.1' && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
5542
|
-
!!
|
|
5543
|
-
!
|
|
5544
|
-
!
|
|
5545
|
-
React__default["default"].createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5719
|
+
!!currentLayout &&
|
|
5720
|
+
!currentLayout.includes('Inline') &&
|
|
5721
|
+
!currentLayout.includes('Sidebar') && (React__default["default"].createElement(core.Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5722
|
+
React__default["default"].createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5546
5723
|
})))))));
|
|
5547
5724
|
};
|
|
5548
5725
|
const LeadGen = _LeadGen;
|