@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/esm/lead.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-11765615.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback, forwardRef, useImperativeHandle, memo, useLayoutEffect } from 'react';
|
|
3
3
|
import { createStyles, Box, Button as Button$1, Input as Input$1, Autocomplete, clsx, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, TextInput, NumberInput as NumberInput$1, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
|
-
import dayjs from 'dayjs';
|
|
5
4
|
import debounce from 'lodash/debounce';
|
|
6
5
|
import { createFormContext, useForm } from '@mantine/form';
|
|
7
|
-
import
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-5e6a0609.js';
|
|
8
8
|
import { getCookie, setCookie } from './miscCookieHelper.js';
|
|
9
|
-
import { u as useTranslations } from './index-
|
|
10
|
-
import { T as TranslationsContext } from './translationsContext-
|
|
11
|
-
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-
|
|
12
|
-
import { T as Text } from './index-
|
|
13
|
-
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-
|
|
14
|
-
import { D as DatePicker } from './index-
|
|
15
|
-
import { B as Button } from './index-
|
|
16
|
-
import './index.styles-
|
|
9
|
+
import { u as useTranslations } from './index-be5ba37e.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-8bed8935.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-860b86e8.js';
|
|
12
|
+
import { T as Text } from './index-9c8a599d.js';
|
|
13
|
+
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-5a1b18fe.js';
|
|
14
|
+
import { D as DatePicker } from './index-493cae6d.js';
|
|
15
|
+
import { B as Button } from './index-45a645d6.js';
|
|
16
|
+
import './index.styles-84a7085d.js';
|
|
17
17
|
import { useClickOutside } from '@mantine/hooks';
|
|
18
|
-
import './useMantineLocale-
|
|
19
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
20
|
-
import './index-
|
|
21
|
-
import { Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-
|
|
22
|
-
import './other-
|
|
23
|
-
import './index-
|
|
24
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
18
|
+
import './useMantineLocale-4f58a092.js';
|
|
19
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-bd0c1846.js';
|
|
20
|
+
import './index-6c4db0e7.js';
|
|
21
|
+
import { Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-4e04114c.js';
|
|
22
|
+
import './other-b55c2cac.js';
|
|
23
|
+
import './index-6e0b2ec9.js';
|
|
24
|
+
import { M as MAPPED_LOCALE } from './utils-a009879a.js';
|
|
25
25
|
import { DateInput } from '@mantine/dates';
|
|
26
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-
|
|
27
|
-
import { H as Heading$1 } from './index-
|
|
28
|
-
import { t as translationsMap$1 } from './translationsProvider-
|
|
29
|
-
import { L as LOCALE } from './Locale-
|
|
26
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-3ac7fb5b.js';
|
|
27
|
+
import { H as Heading$1 } from './index-8afffc50.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-758b393c.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-2f050a8d.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
32
32
|
import styled from '@emotion/styled';
|
|
33
33
|
import { theme } from './miscTheme.js';
|
|
34
34
|
import { css } from '@emotion/react';
|
|
35
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
36
|
-
import { i as isVideo } from './index-
|
|
37
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
35
|
+
import { T as TogetherComponentGlobalContext } from './utils-9c7b9df3.js';
|
|
36
|
+
import { i as isVideo } from './index-1888a823.js';
|
|
37
|
+
import { u as useScreenSize } from './useScreenSize-4a774778.js';
|
|
38
38
|
import { motion } from 'framer-motion';
|
|
39
39
|
import { createPortal } from 'react-dom';
|
|
40
|
-
import { B as Button$2 } from './index-
|
|
41
|
-
import { I as InputDate } from './InputDate-
|
|
42
|
-
import { D as DrawerComponent } from './index-
|
|
43
|
-
import { C as Close } from './Close-
|
|
40
|
+
import { B as Button$2 } from './index-ab464f29.js';
|
|
41
|
+
import { I as InputDate } from './InputDate-c206ae02.js';
|
|
42
|
+
import { D as DrawerComponent } from './index-9154a4b5.js';
|
|
43
|
+
import { C as Close } from './Close-cdcf7f34.js';
|
|
44
44
|
import './constantsIsProduction.js';
|
|
45
|
-
import './normalizeLink-
|
|
45
|
+
import './normalizeLink-c69706f9.js';
|
|
46
46
|
import './constantsDomainLocales.js';
|
|
47
47
|
import '@hhgtech/icons/other';
|
|
48
48
|
import '@mantine/carousel';
|
|
49
49
|
import 'classnames';
|
|
50
|
-
import './useUniqueId-
|
|
50
|
+
import './useUniqueId-4ecc826a.js';
|
|
51
51
|
import './constantsSite.js';
|
|
52
52
|
import '@hhgtech/icons/core';
|
|
53
53
|
import '@mantine/notifications';
|
|
@@ -64,11 +64,11 @@ import './i18n-values/tl-PH.js';
|
|
|
64
64
|
import './i18n-values/vi-VN.js';
|
|
65
65
|
import './i18n-values/vi-VN_MB.js';
|
|
66
66
|
import './i18n-values/zh-TW.js';
|
|
67
|
-
import './index-
|
|
67
|
+
import './index-a4e33581.js';
|
|
68
68
|
import 'slugify';
|
|
69
69
|
import 'string-format';
|
|
70
70
|
import './togetherApiPaths.js';
|
|
71
|
-
import './constants-
|
|
71
|
+
import './constants-dd5c7e21.js';
|
|
72
72
|
import 'vaul';
|
|
73
73
|
|
|
74
74
|
const LeadGenComponentContext = createContext({});
|
|
@@ -163,20 +163,21 @@ const LEADGEN_ACTIONS = {
|
|
|
163
163
|
SCROLL: 'SCROLL',
|
|
164
164
|
TIME: 'TIME',
|
|
165
165
|
};
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
166
|
+
var LEADGEN_LAYOUT;
|
|
167
|
+
(function (LEADGEN_LAYOUT) {
|
|
168
|
+
LEADGEN_LAYOUT["LightBoxA"] = "LightBoxA";
|
|
169
|
+
LEADGEN_LAYOUT["LightBoxB"] = "LightBoxB";
|
|
170
|
+
LEADGEN_LAYOUT["SkinA"] = "SkinA";
|
|
171
|
+
LEADGEN_LAYOUT["SkinB"] = "SkinB";
|
|
172
|
+
LEADGEN_LAYOUT["Floating"] = "Floating";
|
|
173
|
+
LEADGEN_LAYOUT["Tab"] = "Tab";
|
|
174
|
+
LEADGEN_LAYOUT["InlineA"] = "InlineA";
|
|
175
|
+
LEADGEN_LAYOUT["InlineB"] = "InlineB";
|
|
176
|
+
LEADGEN_LAYOUT["CenterTab"] = "CenterTab";
|
|
177
|
+
LEADGEN_LAYOUT["Sidebar"] = "Sidebar";
|
|
178
|
+
LEADGEN_LAYOUT["Fullscreen"] = "Fullscreen";
|
|
179
|
+
LEADGEN_LAYOUT["Slider"] = "Slider";
|
|
180
|
+
})(LEADGEN_LAYOUT || (LEADGEN_LAYOUT = {}));
|
|
180
181
|
const LEADGEN_BLOCK = {
|
|
181
182
|
TextBlock: 'TextBlock',
|
|
182
183
|
NumberBlock: 'NumberBlock',
|
|
@@ -360,6 +361,18 @@ const formatCampaignDetail = (campaign) => {
|
|
|
360
361
|
}
|
|
361
362
|
};
|
|
362
363
|
|
|
364
|
+
const formatLeadGenFormValue = (values = {}, blocks) => {
|
|
365
|
+
const newValues = {};
|
|
366
|
+
for (const block of blocks) {
|
|
367
|
+
const { data } = block || {};
|
|
368
|
+
const { value: fieldName } = data || {};
|
|
369
|
+
if (fieldName in values) {
|
|
370
|
+
newValues[fieldName] = values[fieldName];
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
return newValues;
|
|
374
|
+
};
|
|
375
|
+
|
|
363
376
|
class Store {
|
|
364
377
|
constructor() {
|
|
365
378
|
this.apiSsoUrl = 'https://staging-id.hellobacsi.com/';
|
|
@@ -662,7 +675,7 @@ const clearCacheUsedEmailOrPhone = () => {
|
|
|
662
675
|
const [LeadFormProvider$1, useLeadFormContext$1, useLeadForm$1] = createFormContext();
|
|
663
676
|
const useLeadFormConfig$1 = ({ listBlockAdded = [], validatingPhoneRef, validatingEmailRef, campaignId, campaign_subot_id = [], userInfo, }) => {
|
|
664
677
|
const { t } = useTranslations();
|
|
665
|
-
const initialValues = useMemo(() => mappingSSOToLead(userInfo), [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
678
|
+
const initialValues = useMemo(() => formatLeadGenFormValue(mappingSSOToLead(userInfo), listBlockAdded), [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
666
679
|
useEffect(() => {
|
|
667
680
|
if (!window.intlTelInputUtils) {
|
|
668
681
|
require('intl-tel-input/build/js/utils');
|
|
@@ -978,15 +991,15 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
978
991
|
case 'TextBlock':
|
|
979
992
|
return (React__default.createElement(Input, Object.assign({ key: index, withAsterisk: required, spellCheck: false, type: "text", placeholder: placeholder, className: cx('leadgen-control', classes.control),
|
|
980
993
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
981
|
-
label: placeholder, "data-control": "text", name: value }, form.getInputProps(value))));
|
|
994
|
+
label: placeholder, "data-control": "text", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
982
995
|
case 'NumberBlock':
|
|
983
996
|
return (React__default.createElement(NumberInput, Object.assign({ key: index, withAsterisk: required, spellCheck: false, type: "number", placeholder: placeholder, className: cx('leadgen-control', classes.control),
|
|
984
997
|
// onChange={(e) => inputOnChange('number', e)}
|
|
985
|
-
label: placeholder, "data-control": "number", name: value }, form.getInputProps(value))));
|
|
998
|
+
label: placeholder, "data-control": "number", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
986
999
|
case 'EmailBlock':
|
|
987
1000
|
return (React__default.createElement(Input, Object.assign({ key: index, withAsterisk: required, spellCheck: false,
|
|
988
1001
|
// type="email"
|
|
989
|
-
placeholder: placeholder, className: cx('leadgen-control', classes.control), label: placeholder, "data-control": "email", name: value }, form.getInputProps(value))));
|
|
1002
|
+
placeholder: placeholder, className: cx('leadgen-control', classes.control), label: placeholder, "data-control": "email", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
990
1003
|
case 'PhoneOtpBlock':
|
|
991
1004
|
case 'WhatsappOtpBlock':
|
|
992
1005
|
case 'ZaloOtpBlock':
|
|
@@ -1001,14 +1014,14 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1001
1014
|
form.setFieldValue(value, v);
|
|
1002
1015
|
},
|
|
1003
1016
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
1004
|
-
id: id, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel" })));
|
|
1017
|
+
id: id, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name })));
|
|
1005
1018
|
}
|
|
1006
1019
|
case 'LocationBlock': {
|
|
1007
1020
|
return (React__default.createElement(LocationBlock, { key: index, name: value, placeholder: placeholder, locale: locale, required: required }));
|
|
1008
1021
|
}
|
|
1009
1022
|
case 'DateBlock':
|
|
1010
1023
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1011
|
-
React__default.createElement(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))),
|
|
1024
|
+
React__default.createElement(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))),
|
|
1012
1025
|
React__default.createElement("input", { type: "hidden", name: value, "data-control": "date" })));
|
|
1013
1026
|
case 'LinkButtonBlock':
|
|
1014
1027
|
return (React__default.createElement("div", { key: index },
|
|
@@ -1026,11 +1039,11 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1026
1039
|
display: 'flex',
|
|
1027
1040
|
flexDirection: 'column',
|
|
1028
1041
|
gap: 8,
|
|
1029
|
-
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Checkbox, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "checkbox" }))))));
|
|
1042
|
+
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Checkbox, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "checkbox", "data-lead-control": name }))))));
|
|
1030
1043
|
case 'RadioBlock':
|
|
1031
1044
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1032
1045
|
isSendMailChimp && (React__default.createElement(Input, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
1033
|
-
React__default.createElement(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.createElement(Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
1046
|
+
React__default.createElement(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.createElement(Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio", "data-lead-control": name }))))));
|
|
1034
1047
|
case 'DropdownBlock':
|
|
1035
1048
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1036
1049
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
@@ -1041,7 +1054,7 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1041
1054
|
case 'TncBlock':
|
|
1042
1055
|
const tncInputProps = form.getInputProps('TNC-' + b.id);
|
|
1043
1056
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1044
|
-
React__default.createElement(Checkbox, Object.assign({ name: 'TNC-' + b.id, key: b.id, label: React__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 }))));
|
|
1057
|
+
React__default.createElement(Checkbox, Object.assign({ name: 'TNC-' + b.id, key: b.id, label: React__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 }))));
|
|
1045
1058
|
}
|
|
1046
1059
|
return null;
|
|
1047
1060
|
})));
|
|
@@ -1074,7 +1087,9 @@ const Heading = (_a) => {
|
|
|
1074
1087
|
const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps, submitProps, }) => {
|
|
1075
1088
|
var _a;
|
|
1076
1089
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
1077
|
-
const { listBlockAdded, leadFormConfig: { form, validateObj }, validatingEmailRef, validatingPhoneRef,
|
|
1090
|
+
const { listBlockAdded, leadFormConfig: { form, validateObj }, validatingEmailRef, validatingPhoneRef,
|
|
1091
|
+
// formRef,
|
|
1092
|
+
setFormRef, onClose, onOtherSubmit, actionBlocks, locale, setShowOtpPhone, onSubmit, } = useContext(LeadGenComponentContext);
|
|
1078
1093
|
const { classes, cx } = useStyles$1(undefined, {
|
|
1079
1094
|
name: 'LeadGen__FormComponent',
|
|
1080
1095
|
styles,
|
|
@@ -1135,7 +1150,7 @@ const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps,
|
|
|
1135
1150
|
var _a;
|
|
1136
1151
|
const respMessage = (_a = res === null || res === void 0 ? void 0 : res._messages) === null || _a === void 0 ? void 0 : _a[0];
|
|
1137
1152
|
if (respMessage === 'This phone number was verified') {
|
|
1138
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
1153
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
|
|
1139
1154
|
return;
|
|
1140
1155
|
}
|
|
1141
1156
|
setShowOtpPhone(newShowOtpPhone);
|
|
@@ -1145,7 +1160,7 @@ const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps,
|
|
|
1145
1160
|
});
|
|
1146
1161
|
return;
|
|
1147
1162
|
}
|
|
1148
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
1163
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
|
|
1149
1164
|
})(e);
|
|
1150
1165
|
}, 100);
|
|
1151
1166
|
};
|
|
@@ -1315,10 +1330,13 @@ const OtpBlockComponent = ({ otpData, onSuccess, autoSendWhenOpen, className, st
|
|
|
1315
1330
|
};
|
|
1316
1331
|
const OtpBlock$1 = (_a) => {
|
|
1317
1332
|
var rest = __rest(_a, []);
|
|
1318
|
-
const { showOtpPhone, setShowOtpPhone, onSubmit,
|
|
1333
|
+
const { showOtpPhone, setShowOtpPhone, onSubmit,
|
|
1334
|
+
// formRef,
|
|
1335
|
+
// leadFormConfig: { form },
|
|
1336
|
+
} = useContext(LeadGenComponentContext);
|
|
1319
1337
|
return showOtpPhone ? (React__default.createElement(OtpBlockComponent, Object.assign({ otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
1320
1338
|
setShowOtpPhone(null);
|
|
1321
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
1339
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
|
|
1322
1340
|
} }, rest))) : null;
|
|
1323
1341
|
};
|
|
1324
1342
|
|
|
@@ -2121,7 +2139,7 @@ const [LeadFormProvider, useLeadFormContext, useLeadForm] = createFormContext();
|
|
|
2121
2139
|
const useLeadFormConfig = ({ listBlockAdded = [], validatingPhoneRef, validatingEmailRef, campaignId, campaign_subot_id = [], userInfo, format, }) => {
|
|
2122
2140
|
var _a;
|
|
2123
2141
|
const { t } = useTranslations();
|
|
2124
|
-
const initialValues = useMemo(() => mappingSSOToLead(userInfo), [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
2142
|
+
const initialValues = useMemo(() => formatLeadGenFormValue(mappingSSOToLead(userInfo), listBlockAdded), [userInfo === null || userInfo === void 0 ? void 0 : userInfo.id]);
|
|
2125
2143
|
const LEAD_LOCALE = LEAD_LOCALE_DATA[(_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.lang] ||
|
|
2126
2144
|
LEAD_LOCALE_DATA['vi-VN'];
|
|
2127
2145
|
const validateObj = useMemo(() => {
|
|
@@ -2356,15 +2374,14 @@ const StyledLeadGenSubscriptionBoxBody = styled.div `
|
|
|
2356
2374
|
}
|
|
2357
2375
|
`;
|
|
2358
2376
|
const StyledLeadGenSubscriptionBoxHeaderImage = styled.div `
|
|
2359
|
-
margin-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
height: 44px;
|
|
2377
|
+
margin-left: 24px;
|
|
2378
|
+
width: 68px;
|
|
2379
|
+
height: 68px;
|
|
2363
2380
|
|
|
2364
2381
|
img {
|
|
2365
2382
|
width: 100%;
|
|
2366
2383
|
height: 100%;
|
|
2367
|
-
object-
|
|
2384
|
+
object-fit: contain;
|
|
2368
2385
|
onject-position: center;
|
|
2369
2386
|
}
|
|
2370
2387
|
|
|
@@ -2381,7 +2398,7 @@ const StyledLeadGenSubscriptionBoxHeader = styled.div `
|
|
|
2381
2398
|
flex: 1;
|
|
2382
2399
|
min-width: 0;
|
|
2383
2400
|
color: ${theme.colors.gray900};
|
|
2384
|
-
font-size:
|
|
2401
|
+
font-size: 17px;
|
|
2385
2402
|
font-weight: 400;
|
|
2386
2403
|
line-height: 1.4;
|
|
2387
2404
|
letter-spacing: -0.4px;
|
|
@@ -2397,6 +2414,12 @@ const StyledLeadGenSubscriptionBoxHeader = styled.div `
|
|
|
2397
2414
|
const StyledLeadGenSubscriptionBox = styled.div `
|
|
2398
2415
|
padding: 16px;
|
|
2399
2416
|
border: 1px solid ${theme.colors.neutral100};
|
|
2417
|
+
background: linear-gradient(
|
|
2418
|
+
180.71deg,
|
|
2419
|
+
#7bc2ff -18.54%,
|
|
2420
|
+
#e3f2ff 17.12%,
|
|
2421
|
+
#ffffff 99.25%
|
|
2422
|
+
);
|
|
2400
2423
|
border-radius: 12px;
|
|
2401
2424
|
margin-inline: auto;
|
|
2402
2425
|
.leadgen-form_inputs {
|
|
@@ -2430,6 +2453,7 @@ const StyledLeadGenSubscriptionBox = styled.div `
|
|
|
2430
2453
|
margin-left: 8px;
|
|
2431
2454
|
width: auto;
|
|
2432
2455
|
min-height: 56px;
|
|
2456
|
+
font-size: 16px;
|
|
2433
2457
|
}
|
|
2434
2458
|
}
|
|
2435
2459
|
}
|
|
@@ -2529,18 +2553,6 @@ const GoogleLocationBlock = (props) => {
|
|
|
2529
2553
|
} }, restProps)));
|
|
2530
2554
|
};
|
|
2531
2555
|
|
|
2532
|
-
const formatLeadGenFormValue = (values, blocks) => {
|
|
2533
|
-
const newValues = {};
|
|
2534
|
-
for (const block of blocks) {
|
|
2535
|
-
const { data } = block || {};
|
|
2536
|
-
const { value: fieldName } = data || {};
|
|
2537
|
-
if (fieldName in values) {
|
|
2538
|
-
newValues[fieldName] = values[fieldName];
|
|
2539
|
-
}
|
|
2540
|
-
}
|
|
2541
|
-
return newValues;
|
|
2542
|
-
};
|
|
2543
|
-
|
|
2544
2556
|
const StyledLeadGenFormInner = styled.div `
|
|
2545
2557
|
display: flex;
|
|
2546
2558
|
flex-wrap: wrap;
|
|
@@ -3071,8 +3083,8 @@ const LeadGenSubscriptionBoxA = (props) => {
|
|
|
3071
3083
|
}, [title]);
|
|
3072
3084
|
return (React__default.createElement(StyledLeadGenSubscriptionBoxA, { className: "subcription_box_A" },
|
|
3073
3085
|
React__default.createElement(StyledLeadGenSubscriptionBoxHeader, { className: "leadgen-subscription_box_header" },
|
|
3074
|
-
|
|
3075
|
-
|
|
3086
|
+
titleComp,
|
|
3087
|
+
imageComp),
|
|
3076
3088
|
React__default.createElement(StyledLeadGenSubscriptionBoxBody, { className: "leadgen-subscription_box_body" },
|
|
3077
3089
|
React__default.createElement(LeadGenForm, { ref: formRef, form: form, rules: rules, blocks: blocks, locale: locale, onFinish: onFinish, className: "leadgen-subscription_box_form" }),
|
|
3078
3090
|
React__default.createElement(Button$1, { disabled: loading, loading: loading, variant: "filled", size: "lg", onClick: () => {
|
|
@@ -4375,20 +4387,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4375
4387
|
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: " ",
|
|
4376
4388
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4377
4389
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4378
|
-
label: label, "data-control": "text",
|
|
4390
|
+
label: label, "data-control": "text", "data-lead-control": 'TextBlock', inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value), { name: value }))));
|
|
4379
4391
|
case 'NumberBlock':
|
|
4380
4392
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4381
4393
|
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: " ",
|
|
4382
4394
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4383
4395
|
// onChange={(e) => inputOnChange('number', e)}
|
|
4384
|
-
label: label, "data-control": "number", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4396
|
+
label: label, "data-control": "number", "data-lead-control": name, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4385
4397
|
case 'EmailBlock':
|
|
4386
4398
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4387
4399
|
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4388
4400
|
// type="email"
|
|
4389
4401
|
placeholder: " ",
|
|
4390
4402
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4391
|
-
label: label, "data-control": "email", name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4403
|
+
label: label, "data-control": "email", "data-lead-control": name, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4392
4404
|
case 'PhoneOtpBlock':
|
|
4393
4405
|
case 'WhatsappOtpBlock':
|
|
4394
4406
|
case 'ZaloOtpBlock':
|
|
@@ -4402,7 +4414,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4402
4414
|
React__default.createElement("div", { className: "mantine-Input-wrapper" },
|
|
4403
4415
|
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: " ",
|
|
4404
4416
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4405
|
-
id: htmlForId, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel" }, formPhoneInputWrapper))))));
|
|
4417
|
+
id: htmlForId, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name }, formPhoneInputWrapper))))));
|
|
4406
4418
|
}
|
|
4407
4419
|
case 'LocationBlock': {
|
|
4408
4420
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
@@ -4411,7 +4423,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4411
4423
|
case 'DateBlock': {
|
|
4412
4424
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = __rest(_c, ["error"]);
|
|
4413
4425
|
return (React__default.createElement(Input$1.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" },
|
|
4414
|
-
React__default.createElement(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))));
|
|
4426
|
+
React__default.createElement(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))));
|
|
4415
4427
|
}
|
|
4416
4428
|
case 'LinkButtonBlock':
|
|
4417
4429
|
return (React__default.createElement("div", { key: index },
|
|
@@ -4434,7 +4446,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4434
4446
|
gap: 8,
|
|
4435
4447
|
}, inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4436
4448
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4437
|
-
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Checkbox, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "checkbox" }))))));
|
|
4449
|
+
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Checkbox, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "checkbox", "data-lead-control": name }))))));
|
|
4438
4450
|
case 'RadioBlock':
|
|
4439
4451
|
return (React__default.createElement(ChoiceField, { className: "leadgen-form_radio", key: index },
|
|
4440
4452
|
isSendMailChimp && (React__default.createElement(Input$1, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
@@ -4442,7 +4454,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4442
4454
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4443
4455
|
label: label, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4444
4456
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4445
|
-
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio" }))))));
|
|
4457
|
+
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default.createElement(Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio", "data-lead-control": name }))))));
|
|
4446
4458
|
case 'DropdownBlock':
|
|
4447
4459
|
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field DropdownBlock", key: index },
|
|
4448
4460
|
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown' }),
|
|
@@ -4479,7 +4491,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4479
4491
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = __rest(_d, ["error"]);
|
|
4480
4492
|
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
4481
4493
|
React__default.createElement(Input$1.Wrapper, { error: error },
|
|
4482
|
-
React__default.createElement(Checkbox, Object.assign({ name: 'TNC-' + id, label: React__default.createElement("p", { className: "lead-modal__tnc-link", dangerouslySetInnerHTML: { __html: data.valueHTML } }), className: "tnc-block", "data-control": "checkbox" }, tncInputProps)))));
|
|
4494
|
+
React__default.createElement(Checkbox, Object.assign({ name: 'TNC-' + id, label: React__default.createElement("p", { className: "lead-modal__tnc-link", dangerouslySetInnerHTML: { __html: data.valueHTML } }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name }, tncInputProps)))));
|
|
4483
4495
|
}
|
|
4484
4496
|
return null;
|
|
4485
4497
|
})));
|
|
@@ -4727,8 +4739,9 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4727
4739
|
LEADGEN_LAYOUT.Sidebar,
|
|
4728
4740
|
LEADGEN_LAYOUT.Slider,
|
|
4729
4741
|
];
|
|
4730
|
-
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4731
|
-
const
|
|
4742
|
+
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4743
|
+
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
4744
|
+
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, }) => {
|
|
4732
4745
|
var _a, _b;
|
|
4733
4746
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
4734
4747
|
const { isMobile } = useScreenSize();
|
|
@@ -4736,17 +4749,25 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4736
4749
|
const [showOtpPhone, setShowOtpPhone] = useState(null);
|
|
4737
4750
|
const [isSubmitLoading, setIsSubmitLoading] = useState(false);
|
|
4738
4751
|
const [snap, setSnap] = useState(0.8);
|
|
4752
|
+
const isTrackedForm = useRef(false);
|
|
4739
4753
|
const formRef = useRef();
|
|
4754
|
+
const [lastFormRef, setLastFormRef] = useState();
|
|
4740
4755
|
const onClose = () => {
|
|
4741
4756
|
if (showOtpPhone) {
|
|
4742
4757
|
setShowOtpPhone(null);
|
|
4743
4758
|
}
|
|
4744
4759
|
else {
|
|
4745
|
-
onCloseProp === null || onCloseProp === void 0 ? void 0 : onCloseProp(
|
|
4760
|
+
onCloseProp === null || onCloseProp === void 0 ? void 0 : onCloseProp({
|
|
4761
|
+
formValues: form.values,
|
|
4762
|
+
formActiveTime: formActiveTime.current,
|
|
4763
|
+
formRef: formRef.current,
|
|
4764
|
+
listBlockAdded,
|
|
4765
|
+
});
|
|
4746
4766
|
}
|
|
4747
4767
|
};
|
|
4748
4768
|
const { height } = useViewportDimensions();
|
|
4749
4769
|
usePreventScroll();
|
|
4770
|
+
const formActiveTime = useRef(0);
|
|
4750
4771
|
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
4751
4772
|
const listBlockAdded = JSON.parse(extraFields.listBlockAdded);
|
|
4752
4773
|
const actionBlocks = JSON.parse(extraFields.actionBlocks);
|
|
@@ -4772,6 +4793,17 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4772
4793
|
const showHeader = !!imageMobile || !!imageDesktop;
|
|
4773
4794
|
const onlyHeader = !title && !description;
|
|
4774
4795
|
const showButtonClose = !isInline;
|
|
4796
|
+
const validatingPhoneRef = useRef(false);
|
|
4797
|
+
const validatingEmailRef = useRef(false);
|
|
4798
|
+
const { form, validateObj } = useLeadFormConfig({
|
|
4799
|
+
listBlockAdded,
|
|
4800
|
+
validatingPhoneRef,
|
|
4801
|
+
validatingEmailRef,
|
|
4802
|
+
campaignId,
|
|
4803
|
+
campaign_subot_id,
|
|
4804
|
+
userInfo,
|
|
4805
|
+
format: (_a = (ISO_FORMAT[locale] || ISO_FORMAT['vi-VN'])) === null || _a === void 0 ? void 0 : _a.dateFormat,
|
|
4806
|
+
});
|
|
4775
4807
|
if (window.innerWidth < 769 &&
|
|
4776
4808
|
LEADGEN_LAYOUT_NOT_SHOW_IN_MOBILE.includes(currentLayout)) {
|
|
4777
4809
|
console.log('😎 Not show fullscreen, slider on mobile ');
|
|
@@ -4786,17 +4818,33 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4786
4818
|
}
|
|
4787
4819
|
clearCacheUsedEmailOrPhone();
|
|
4788
4820
|
}, []);
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4821
|
+
useEffect(() => {
|
|
4822
|
+
formRef.current && setLastFormRef(formRef.current);
|
|
4823
|
+
}, [formRef.current]);
|
|
4824
|
+
useEffect(() => {
|
|
4825
|
+
const handleBeforeUnload = () => {
|
|
4826
|
+
!isTrackedForm.current &&
|
|
4827
|
+
!showThankyou &&
|
|
4828
|
+
(onUnmount === null || onUnmount === void 0 ? void 0 : onUnmount({
|
|
4829
|
+
formValues: form.values,
|
|
4830
|
+
formActiveTime: formActiveTime.current,
|
|
4831
|
+
formRef: lastFormRef,
|
|
4832
|
+
listBlockAdded,
|
|
4833
|
+
}));
|
|
4834
|
+
};
|
|
4835
|
+
window.addEventListener('beforeunload', handleBeforeUnload);
|
|
4836
|
+
return () => window.removeEventListener('beforeunload', handleBeforeUnload);
|
|
4837
|
+
}, [lastFormRef, form.values, showThankyou]);
|
|
4838
|
+
useEffect(() => {
|
|
4839
|
+
let intervalId = null;
|
|
4840
|
+
if (isLightBox && !showThankyou) {
|
|
4841
|
+
intervalId = setInterval(() => {
|
|
4842
|
+
formActiveTime.current += 1;
|
|
4843
|
+
// console.log({ formActiveTime: formActiveTime.current })
|
|
4844
|
+
}, 1000);
|
|
4845
|
+
}
|
|
4846
|
+
return () => clearInterval(intervalId);
|
|
4847
|
+
}, [showThankyou]);
|
|
4800
4848
|
const listBlockAddedRequired = useMemo(() => leadGenFieldRequired(listBlockAdded), listBlockAdded);
|
|
4801
4849
|
const disabledButtonSubmit = useMemo(() => {
|
|
4802
4850
|
if (listBlockAddedRequired.length) {
|
|
@@ -4902,7 +4950,12 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4902
4950
|
var _a;
|
|
4903
4951
|
const respMessage = (_a = res === null || res === void 0 ? void 0 : res._messages) === null || _a === void 0 ? void 0 : _a[0];
|
|
4904
4952
|
if (respMessage === 'This phone number was verified') {
|
|
4905
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
4953
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
4954
|
+
formValues: v,
|
|
4955
|
+
formActiveTime: formActiveTime.current,
|
|
4956
|
+
formRef: formRef.current,
|
|
4957
|
+
listBlockAdded,
|
|
4958
|
+
});
|
|
4906
4959
|
return;
|
|
4907
4960
|
}
|
|
4908
4961
|
setShowOtpPhone(newShowOtpPhone);
|
|
@@ -4912,7 +4965,12 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4912
4965
|
});
|
|
4913
4966
|
return;
|
|
4914
4967
|
}
|
|
4915
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
4968
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
4969
|
+
formValues: v,
|
|
4970
|
+
formActiveTime: formActiveTime.current,
|
|
4971
|
+
formRef: formRef.current,
|
|
4972
|
+
listBlockAdded,
|
|
4973
|
+
});
|
|
4916
4974
|
})(e);
|
|
4917
4975
|
}, 100);
|
|
4918
4976
|
};
|
|
@@ -4958,7 +5016,12 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4958
5016
|
React__default.createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit }))))));
|
|
4959
5017
|
const PopupOtp = showOtpPhone && (React__default.createElement(OtpBlock, { otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
4960
5018
|
setShowOtpPhone(null);
|
|
4961
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(
|
|
5019
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
5020
|
+
formValues: form.values,
|
|
5021
|
+
formActiveTime: formActiveTime.current,
|
|
5022
|
+
formRef: formRef.current,
|
|
5023
|
+
listBlockAdded,
|
|
5024
|
+
});
|
|
4962
5025
|
} }));
|
|
4963
5026
|
const PopupThankYou = showThankyou && (React__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 }));
|
|
4964
5027
|
const PopupContent = (React__default.createElement("div", { className: clsx('leadgen-content', {
|
|
@@ -5106,7 +5169,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
|
|
|
5106
5169
|
return null;
|
|
5107
5170
|
}
|
|
5108
5171
|
}
|
|
5109
|
-
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5172
|
+
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5110
5173
|
var _a, _b;
|
|
5111
5174
|
const { apiUrl, siteDomain } = useContext(LeadGenContext$1);
|
|
5112
5175
|
useEffect(() => {
|
|
@@ -5225,7 +5288,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, local
|
|
|
5225
5288
|
currentLayout == 'Fullscreen' ||
|
|
5226
5289
|
currentLayout == 'Sidebar' ||
|
|
5227
5290
|
currentLayout == 'Slider') {
|
|
5228
|
-
return (React__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: (
|
|
5291
|
+
return (React__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 }));
|
|
5229
5292
|
}
|
|
5230
5293
|
else if (currentLayout.includes('Skin')) {
|
|
5231
5294
|
return (React__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 }));
|
|
@@ -5233,9 +5296,69 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, showThankyou, local
|
|
|
5233
5296
|
return null;
|
|
5234
5297
|
};
|
|
5235
5298
|
|
|
5299
|
+
const numberFormatType = 2; // i18n.phonenumbers.PhoneNumberFormat.NATIONAL
|
|
5300
|
+
const formatFormData = (currentForm, formData) => formData.map((i) => {
|
|
5301
|
+
var _a, _b, _c, _d;
|
|
5302
|
+
const control = ((_a = currentForm
|
|
5303
|
+
.querySelector(`*[name="${i.name}"][data-control]`)) === null || _a === void 0 ? void 0 : _a.getAttribute('data-control')) ||
|
|
5304
|
+
((_b = currentForm
|
|
5305
|
+
.querySelector(`*[data-extra][data-name="${i.name}"]`)) === null || _b === void 0 ? void 0 : _b.getAttribute('data-control')) ||
|
|
5306
|
+
'text';
|
|
5307
|
+
const leadControl = ((_c = currentForm
|
|
5308
|
+
.querySelector(`*[name="${i.name}"][data-lead-control]`)) === null || _c === void 0 ? void 0 : _c.getAttribute('data-lead-control')) ||
|
|
5309
|
+
((_d = currentForm
|
|
5310
|
+
.querySelector(`*[data-extra][data-name="${i.name}"]`)) === null || _d === void 0 ? void 0 : _d.getAttribute('data-lead-control')) ||
|
|
5311
|
+
'text';
|
|
5312
|
+
const value = control === 'tel'
|
|
5313
|
+
? window.intlTelInputUtils
|
|
5314
|
+
.formatNumber(String(i.value), LEAD_LOCALE === null || LEAD_LOCALE === void 0 ? void 0 : LEAD_LOCALE.countryCodeNumber, numberFormatType)
|
|
5315
|
+
.replace(/\s+/g, '')
|
|
5316
|
+
: control === 'date'
|
|
5317
|
+
? dayjs(i.value).format('YYYY-MM-DD')
|
|
5318
|
+
: i.value;
|
|
5319
|
+
return {
|
|
5320
|
+
key: i.name,
|
|
5321
|
+
value,
|
|
5322
|
+
control,
|
|
5323
|
+
leadControl,
|
|
5324
|
+
// is_sent_mailchimp: currentForm.querySelector(
|
|
5325
|
+
// `div[data-name="${i.name}-mailchimp"]`,
|
|
5326
|
+
// )
|
|
5327
|
+
// ? 'true'
|
|
5328
|
+
// : 'false',
|
|
5329
|
+
};
|
|
5330
|
+
});
|
|
5331
|
+
|
|
5332
|
+
const formatTrackingData = (params) => {
|
|
5333
|
+
const { formParams = {}, currentLayout, commonData } = params;
|
|
5334
|
+
const { formValues, formActiveTime, listBlockAdded } = formParams;
|
|
5335
|
+
const listFieldHasValue = [];
|
|
5336
|
+
const data = Object.assign(Object.assign({ template_type: currentLayout, time_on_form: [LEADGEN_LAYOUT.LightBoxA, LEADGEN_LAYOUT.LightBoxB].includes(currentLayout)
|
|
5337
|
+
? formActiveTime
|
|
5338
|
+
: 0 }, commonData), { data_input: formValues.map((control) => {
|
|
5339
|
+
listFieldHasValue.push(control.leadControl);
|
|
5340
|
+
return {
|
|
5341
|
+
field_name: control.key,
|
|
5342
|
+
component_type: control.leadControl,
|
|
5343
|
+
value: control.value,
|
|
5344
|
+
};
|
|
5345
|
+
}), data_not_input: listBlockAdded
|
|
5346
|
+
.map((item) => {
|
|
5347
|
+
const leadControlName = item.name;
|
|
5348
|
+
if (!listFieldHasValue.includes(leadControlName)) {
|
|
5349
|
+
return {
|
|
5350
|
+
field_name: item.data.value,
|
|
5351
|
+
component_type: leadControlName,
|
|
5352
|
+
};
|
|
5353
|
+
}
|
|
5354
|
+
})
|
|
5355
|
+
.filter(Boolean) });
|
|
5356
|
+
return data;
|
|
5357
|
+
};
|
|
5358
|
+
|
|
5236
5359
|
// mount css
|
|
5237
5360
|
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, }) => {
|
|
5238
|
-
var _a;
|
|
5361
|
+
var _a, _b;
|
|
5239
5362
|
const scrollEventHandlerRef = useRef();
|
|
5240
5363
|
const leadStartTimeRef = useRef(Date.now());
|
|
5241
5364
|
const { apiUrl } = useMemo(() => {
|
|
@@ -5251,6 +5374,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5251
5374
|
const [action, setAction] = useState('');
|
|
5252
5375
|
const [showThankyou, setShowThankyou] = useState(null);
|
|
5253
5376
|
const [showEmpty, setShowEmpty] = useState(false);
|
|
5377
|
+
const currentLayout = useMemo(() => showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout, [showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout]);
|
|
5254
5378
|
useEffect(() => {
|
|
5255
5379
|
if (forceCampaign) {
|
|
5256
5380
|
setShowCampaign(forceCampaign);
|
|
@@ -5273,14 +5397,15 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5273
5397
|
setAction('HIDE');
|
|
5274
5398
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
5275
5399
|
};
|
|
5276
|
-
const onClose = () => {
|
|
5277
|
-
var
|
|
5400
|
+
const onClose = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5401
|
+
var _c, _d;
|
|
5402
|
+
const { formRef, listBlockAdded, formValues: formDataObj } = params;
|
|
5278
5403
|
if (!showCampaign)
|
|
5279
5404
|
return;
|
|
5280
5405
|
LeadLog(`👋👋👋 CLOSE POPUP ${showCampaign.code} 👋👋👋`);
|
|
5281
5406
|
if (!excludeExitRulesHandler) {
|
|
5282
|
-
const showAfterExit = Number((
|
|
5283
|
-
const expiresDay = Number((
|
|
5407
|
+
const showAfterExit = Number((_c = showCampaign.rules.find((rule) => rule.rule == 'show_again_after_exit')) === null || _c === void 0 ? void 0 : _c.value);
|
|
5408
|
+
const expiresDay = Number((_d = showCampaign.rules.find((rule) => rule.rule == 'days_to_show_again')) === null || _d === void 0 ? void 0 : _d.value);
|
|
5284
5409
|
if (showAfterExit == 0) {
|
|
5285
5410
|
if (!expiresDay) {
|
|
5286
5411
|
setCookie(`lead_closed_${showCampaign.code}`, `target_${showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.popupVersion}`, { domain: '.' + siteDomain, path: '/' });
|
|
@@ -5290,21 +5415,73 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5290
5415
|
}
|
|
5291
5416
|
}
|
|
5292
5417
|
}
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5418
|
+
const formData = Object.keys(formDataObj)
|
|
5419
|
+
.filter((key) => !!formDataObj[key])
|
|
5420
|
+
.map((key) => ({
|
|
5421
|
+
name: key,
|
|
5422
|
+
value: String(formDataObj[key]),
|
|
5423
|
+
}));
|
|
5424
|
+
let formatedFormData = null;
|
|
5425
|
+
if (!showThankyou) {
|
|
5426
|
+
formatedFormData = formatFormData(formRef, formData);
|
|
5427
|
+
}
|
|
5428
|
+
yield Promise.all([
|
|
5429
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/popup_exit`, {
|
|
5430
|
+
method: 'POST',
|
|
5431
|
+
headers: {
|
|
5432
|
+
'Content-Type': 'application/json',
|
|
5433
|
+
},
|
|
5434
|
+
body: JSON.stringify({
|
|
5435
|
+
action: 'CLICK',
|
|
5436
|
+
url: location.href.toLowerCase(),
|
|
5437
|
+
title_article: document.title,
|
|
5438
|
+
cookie_id: getCookie('hhg-id'),
|
|
5439
|
+
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5440
|
+
}),
|
|
5304
5441
|
}),
|
|
5305
|
-
|
|
5442
|
+
!showThankyou &&
|
|
5443
|
+
trackingCompletionForm({
|
|
5444
|
+
commonData: {
|
|
5445
|
+
cookie_id: getCookie('hhg-id'),
|
|
5446
|
+
ga_client_id: getCookie('_ga') || null,
|
|
5447
|
+
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5448
|
+
status: 'in_progress',
|
|
5449
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5450
|
+
total_fields: listBlockAdded.length,
|
|
5451
|
+
},
|
|
5452
|
+
currentLayout,
|
|
5453
|
+
formParams: Object.assign(Object.assign({}, params), { formValues: formatedFormData }),
|
|
5454
|
+
}),
|
|
5455
|
+
]);
|
|
5306
5456
|
onCloseBase();
|
|
5307
|
-
};
|
|
5457
|
+
});
|
|
5458
|
+
const onUnmount = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5459
|
+
const { formRef, listBlockAdded, formValues: formDataObj } = params;
|
|
5460
|
+
if ([LEADGEN_LAYOUT.InlineA, LEADGEN_LAYOUT.InlineB].includes(currentLayout) &&
|
|
5461
|
+
Object.keys(formDataObj).length === 0)
|
|
5462
|
+
return;
|
|
5463
|
+
const formData = Object.keys(formDataObj)
|
|
5464
|
+
.filter((key) => !!formDataObj[key])
|
|
5465
|
+
.map((key) => ({
|
|
5466
|
+
name: key,
|
|
5467
|
+
value: String(formDataObj[key]),
|
|
5468
|
+
}));
|
|
5469
|
+
const formatedFormData = formatFormData(formRef, formData);
|
|
5470
|
+
const data = formatTrackingData({
|
|
5471
|
+
commonData: {
|
|
5472
|
+
cookie_id: getCookie('hhg-id'),
|
|
5473
|
+
ga_client_id: getCookie('_ga') || null,
|
|
5474
|
+
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5475
|
+
status: 'in_progress',
|
|
5476
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5477
|
+
total_fields: listBlockAdded.length,
|
|
5478
|
+
},
|
|
5479
|
+
currentLayout,
|
|
5480
|
+
formParams: Object.assign(Object.assign({}, params), { formValues: formatedFormData }),
|
|
5481
|
+
});
|
|
5482
|
+
const blob = new Blob([JSON.stringify(data)], { type: 'application/json' });
|
|
5483
|
+
navigator.sendBeacon(`${apiUrl}api/collection/tracking-completion`, blob);
|
|
5484
|
+
});
|
|
5308
5485
|
useEffect(() => {
|
|
5309
5486
|
if (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code)
|
|
5310
5487
|
return;
|
|
@@ -5343,8 +5520,24 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5343
5520
|
DEBUG_URL,
|
|
5344
5521
|
});
|
|
5345
5522
|
}, []);
|
|
5346
|
-
const
|
|
5347
|
-
|
|
5523
|
+
const trackingCompletionForm = useCallback((params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5524
|
+
const { currentLayout, formParams } = params;
|
|
5525
|
+
const { formValues } = formParams;
|
|
5526
|
+
if ([LEADGEN_LAYOUT.InlineA, LEADGEN_LAYOUT.InlineB].includes(currentLayout) &&
|
|
5527
|
+
Object.keys(formValues).length === 0)
|
|
5528
|
+
return;
|
|
5529
|
+
const data = formatTrackingData(params);
|
|
5530
|
+
return fetch(`${apiUrl}api/collection/tracking-completion`, {
|
|
5531
|
+
method: 'POST',
|
|
5532
|
+
headers: {
|
|
5533
|
+
'Content-Type': 'application/json',
|
|
5534
|
+
},
|
|
5535
|
+
body: JSON.stringify(data),
|
|
5536
|
+
});
|
|
5537
|
+
}), [(_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.currentLayout]);
|
|
5538
|
+
const onSubmit = (params, categoryLevel, categoryData) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5539
|
+
var _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
5540
|
+
const { formRef, listBlockAdded, formValues: formDataObj } = params;
|
|
5348
5541
|
if (!formDataObj || Object.values(formDataObj).every((v) => !Boolean(v))) {
|
|
5349
5542
|
setShowEmpty(true);
|
|
5350
5543
|
return;
|
|
@@ -5357,55 +5550,26 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5357
5550
|
value: String(formDataObj[key]),
|
|
5358
5551
|
}));
|
|
5359
5552
|
console.log('** RYAN index.tsx 218 formData : ', formData);
|
|
5360
|
-
const numberFormatType = 2; // i18n.phonenumbers.PhoneNumberFormat.NATIONAL
|
|
5361
5553
|
// Get ga_client_id from cookies
|
|
5362
5554
|
const gaCookie = getCookie('_ga') || null;
|
|
5363
5555
|
if (!window.intlTelInputUtils) {
|
|
5364
5556
|
yield require('intl-tel-input/build/js/utils');
|
|
5365
5557
|
}
|
|
5366
|
-
const
|
|
5367
|
-
|
|
5368
|
-
title_article: document.title,
|
|
5369
|
-
meta: [
|
|
5370
|
-
...formData.map((i) => {
|
|
5371
|
-
var _a, _b;
|
|
5372
|
-
const control = ((_a = currentForm
|
|
5373
|
-
.querySelector(`*[name="${i.name}"][data-control]`)) === null || _a === void 0 ? void 0 : _a.getAttribute('data-control')) ||
|
|
5374
|
-
((_b = currentForm
|
|
5375
|
-
.querySelector(`*[data-extra][data-name="${i.name}"]`)) === null || _b === void 0 ? void 0 : _b.getAttribute('data-control')) ||
|
|
5376
|
-
'text';
|
|
5377
|
-
const value = control === 'tel'
|
|
5378
|
-
? window.intlTelInputUtils
|
|
5379
|
-
.formatNumber(String(i.value), LEAD_LOCALE === null || LEAD_LOCALE === void 0 ? void 0 : LEAD_LOCALE.countryCodeNumber, numberFormatType)
|
|
5380
|
-
.replace(/\s+/g, '')
|
|
5381
|
-
: control === 'date'
|
|
5382
|
-
? dayjs(i.value).format('YYYY-MM-DD')
|
|
5383
|
-
: i.value;
|
|
5384
|
-
return {
|
|
5385
|
-
key: i.name,
|
|
5386
|
-
value,
|
|
5387
|
-
control,
|
|
5388
|
-
// is_sent_mailchimp: currentForm.querySelector(
|
|
5389
|
-
// `div[data-name="${i.name}-mailchimp"]`,
|
|
5390
|
-
// )
|
|
5391
|
-
// ? 'true'
|
|
5392
|
-
// : 'false',
|
|
5393
|
-
};
|
|
5394
|
-
}),
|
|
5395
|
-
...extraPayloadValues,
|
|
5396
|
-
],
|
|
5558
|
+
const formatedFormData = formatFormData(formRef, formData);
|
|
5559
|
+
const commonData = {
|
|
5397
5560
|
cookie_id: getCookie('hhg-id'),
|
|
5398
5561
|
ga_client_id: gaCookie,
|
|
5399
5562
|
};
|
|
5563
|
+
const data = Object.assign({ url: location.href.toLowerCase(), title_article: document.title, meta: [...formatedFormData, ...extraPayloadValues] }, commonData);
|
|
5400
5564
|
// categoryLevel
|
|
5401
5565
|
if (categoryLevel) {
|
|
5402
5566
|
if (categoryData[categoryLevel].value_en) {
|
|
5403
5567
|
data['category'] = categoryData[categoryLevel].value_en;
|
|
5404
5568
|
}
|
|
5405
5569
|
}
|
|
5406
|
-
const expiresDay = Number(((
|
|
5570
|
+
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) ||
|
|
5407
5571
|
7);
|
|
5408
|
-
const showAgain = Number(((
|
|
5572
|
+
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);
|
|
5409
5573
|
if (showAgain == 0) {
|
|
5410
5574
|
LeadLog('⛔ Popup never show again!');
|
|
5411
5575
|
setCookie(`lead_submited_${showCampaign.code}`, `target_${showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.targetType}`, { domain: '.' + siteDomain, path: '/' });
|
|
@@ -5414,13 +5578,20 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5414
5578
|
LeadLog(`⌛ Popup will show again after ${expiresDay} days!`);
|
|
5415
5579
|
setCookie(`lead_submited_${showCampaign.code}`, `target_${showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.targetType}`, { domain: '.' + siteDomain, days: expiresDay, path: '/' });
|
|
5416
5580
|
}
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5581
|
+
yield Promise.all([
|
|
5582
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/lead`, {
|
|
5583
|
+
method: 'POST',
|
|
5584
|
+
headers: {
|
|
5585
|
+
'Content-Type': 'application/json',
|
|
5586
|
+
},
|
|
5587
|
+
body: JSON.stringify(data),
|
|
5588
|
+
}),
|
|
5589
|
+
trackingCompletionForm({
|
|
5590
|
+
commonData: Object.assign(Object.assign({}, commonData), { country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN', status: 'complete', campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id, total_fields: listBlockAdded.length }),
|
|
5591
|
+
currentLayout,
|
|
5592
|
+
formParams: Object.assign(Object.assign({}, params), { formValues: formatedFormData }),
|
|
5593
|
+
}),
|
|
5594
|
+
]);
|
|
5424
5595
|
onSubmitProps === null || onSubmitProps === void 0 ? void 0 : onSubmitProps(formDataObj);
|
|
5425
5596
|
if ((showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.popupShowThankYou) == 'notshow') {
|
|
5426
5597
|
onClose();
|
|
@@ -5439,15 +5610,15 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5439
5610
|
const titleBlock = listBlockThankyou.find((i) => i.name == 'TitleBlock');
|
|
5440
5611
|
const subtitleBlock = listBlockThankyou.find((i) => i.name == 'SubtitleBlock');
|
|
5441
5612
|
const linkButtonBlock = listBlockThankyou.find((i) => i.name == 'LinkButtonBlock');
|
|
5442
|
-
thankTitle = ((
|
|
5443
|
-
titleAlign = ((
|
|
5444
|
-
thankDesc = ((
|
|
5445
|
-
descAlign = ((
|
|
5446
|
-
linkText = ((
|
|
5447
|
-
linkNewTab = ((
|
|
5448
|
-
linkUrl = ((
|
|
5613
|
+
thankTitle = ((_j = titleBlock === null || titleBlock === void 0 ? void 0 : titleBlock.data) === null || _j === void 0 ? void 0 : _j.value) || '';
|
|
5614
|
+
titleAlign = ((_k = titleBlock === null || titleBlock === void 0 ? void 0 : titleBlock.data) === null || _k === void 0 ? void 0 : _k.align) || '';
|
|
5615
|
+
thankDesc = ((_l = subtitleBlock === null || subtitleBlock === void 0 ? void 0 : subtitleBlock.data) === null || _l === void 0 ? void 0 : _l.value) || '';
|
|
5616
|
+
descAlign = ((_m = subtitleBlock === null || subtitleBlock === void 0 ? void 0 : subtitleBlock.data) === null || _m === void 0 ? void 0 : _m.align) || '';
|
|
5617
|
+
linkText = ((_o = linkButtonBlock === null || linkButtonBlock === void 0 ? void 0 : linkButtonBlock.data) === null || _o === void 0 ? void 0 : _o.value) || '';
|
|
5618
|
+
linkNewTab = ((_p = linkButtonBlock === null || linkButtonBlock === void 0 ? void 0 : linkButtonBlock.data) === null || _p === void 0 ? void 0 : _p.newtab) || false;
|
|
5619
|
+
linkUrl = ((_q = linkButtonBlock === null || linkButtonBlock === void 0 ? void 0 : linkButtonBlock.data) === null || _q === void 0 ? void 0 : _q.url) || '';
|
|
5449
5620
|
// ALWAYS SHOW THANK YOU ON COMPOUND COMP
|
|
5450
|
-
// const curLayout =
|
|
5621
|
+
// const curLayout = currentLayout
|
|
5451
5622
|
// TODO: newbuilder thank you
|
|
5452
5623
|
// List layout not show thanks you
|
|
5453
5624
|
// if (
|
|
@@ -5504,16 +5675,22 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5504
5675
|
leadStartTimeRef.current = Date.now();
|
|
5505
5676
|
}
|
|
5506
5677
|
}, [showCampaign]);
|
|
5507
|
-
return (React__default.createElement(LeadGenContext$1.Provider, { value: {
|
|
5678
|
+
return (React__default.createElement(LeadGenContext$1.Provider, { value: {
|
|
5679
|
+
primaryColor,
|
|
5680
|
+
apiUrl,
|
|
5681
|
+
siteDomain,
|
|
5682
|
+
siteId,
|
|
5683
|
+
locale,
|
|
5684
|
+
} },
|
|
5508
5685
|
React__default.createElement(TranslationsContext.Provider, { value: { locale, values: getTranslations(locale) } }, children ? (React__default.createElement(Component, { campaign: showCampaign, onSubmit: onSubmit, onClose: onClose, showThankyou: showThankyou, setShowThankyou: setShowThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo }, children)) : (React__default.createElement(Portal, { target: getPopupWrapperDom() },
|
|
5509
5686
|
React__default.createElement(Box, { sx: { position: 'fixed', zIndex: ZINDEX_SSO - 9e6 } },
|
|
5510
|
-
React__default.createElement(Transition, { mounted: Boolean(((
|
|
5687
|
+
React__default.createElement(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) => {
|
|
5511
5688
|
var _a;
|
|
5512
5689
|
return (React__default.createElement(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.createElement(React__default.Fragment, null,
|
|
5513
|
-
!!
|
|
5514
|
-
!
|
|
5515
|
-
!
|
|
5516
|
-
React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5690
|
+
!!currentLayout &&
|
|
5691
|
+
!currentLayout.includes('Inline') &&
|
|
5692
|
+
!currentLayout.includes('Sidebar') && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5693
|
+
React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5517
5694
|
})))))));
|
|
5518
5695
|
};
|
|
5519
5696
|
const LeadGen = _LeadGen;
|