@hhgtech/hhg-components 1.29.408 → 1.29.409-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-939c814d.js → InputDate-183f0e44.js} +3 -3
- package/build/{LastPeriod-bf2db839.js → LastPeriod-d0025c1d.js} +1 -1
- package/build/{MobileBottomNavigationIcon-ed0d132c.js → MobileBottomNavigationIcon-63f80b54.js} +10 -10
- package/build/{Spinner-208680c5.js → Spinner-7b636e45.js} +1 -1
- package/build/{WhatsApp-069e7105.js → WhatsApp-aa631cc1.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/mantine/button/index.styles.d.ts +1 -0
- package/build/components/molecules/mobileBottomNavigation/index.d.ts +1 -0
- package/build/components/molecules/mobileBottomNavigation/index.styled.d.ts +1 -0
- package/build/components.js +97 -97
- package/build/{constants-6d1977b4.js → constants-111ad024.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-fd0d4c02.js → core-258cf8cd.js} +1 -1
- package/build/{dataTransform-24683484.js → dataTransform-4749a3ff.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-41d45201.js → editor-dee6684a.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-e3360506.js → InputDate-471b81b5.js} +3 -3
- package/build/esm/{LastPeriod-eb8c5b55.js → LastPeriod-ac7ad302.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-5c4bc313.js → MobileBottomNavigationIcon-b8cf4ce2.js} +10 -10
- package/build/esm/{Spinner-edc9e5ae.js → Spinner-836d0dea.js} +1 -1
- package/build/esm/{WhatsApp-1fd59e98.js → WhatsApp-487b0aff.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/mantine/button/index.styles.d.ts +1 -0
- package/build/esm/components/molecules/mobileBottomNavigation/index.d.ts +1 -0
- package/build/esm/components/molecules/mobileBottomNavigation/index.styled.d.ts +1 -0
- package/build/esm/components.js +97 -97
- package/build/esm/{constants-f1d1e724.js → constants-59fbba2f.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-b7db02b5.js → core-b6f68f42.js} +1 -1
- package/build/esm/{dataTransform-0d8d2309.js → dataTransform-2bc738a4.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-13a196c2.js → editor-58f1f21f.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-66ddaf6a.js → healthTools-ac97e608.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-169c23e8.js → index-022dc34e.js} +6 -6
- package/build/esm/{index-8e9e23da.js → index-04e3027e.js} +18 -18
- package/build/esm/{index-a7e29eb5.js → index-0511a4dc.js} +1 -1
- package/build/esm/{index-7df241b7.js → index-08b2877f.js} +3 -3
- package/build/esm/{index-6d6b50b7.js → index-10649cea.js} +1 -1
- package/build/esm/{index-5f47ac92.js → index-18e5a367.js} +16 -16
- package/build/esm/{index-0fc7afd3.js → index-1b082bc2.js} +21 -21
- package/build/esm/{index-2cfdc1bb.js → index-20fd97d8.js} +1 -1
- package/build/esm/{index-8ed9a9ef.js → index-27a5a2a4.js} +3 -3
- package/build/esm/{index-75b1feee.js → index-2863239d.js} +13 -13
- package/build/esm/{index-1782a4a4.js → index-35a104b4.js} +7 -7
- package/build/esm/{index-d66ce41d.js → index-36e74538.js} +5 -5
- package/build/esm/{index-152d6223.js → index-3c9c57f4.js} +17 -17
- package/build/esm/{index-2d850c63.js → index-4a376db3.js} +13 -13
- package/build/esm/{index-6fbaf1f3.js → index-4a547a38.js} +16 -16
- package/build/esm/{index-748ae6a0.js → index-53884671.js} +17 -17
- package/build/esm/{index-de607e9e.js → index-5c02b174.js} +3 -3
- package/build/esm/{index-6c08e733.js → index-5d633caa.js} +1 -1
- package/build/esm/{index-7080a709.js → index-5ea0986a.js} +2 -2
- package/build/esm/{index-304f6e87.js → index-5f495243.js} +13 -13
- package/build/esm/{index-06574124.js → index-616d80cc.js} +11 -11
- package/build/esm/{index-aa6a4420.js → index-6487792f.js} +5 -5
- package/build/esm/{index-0d8d1993.js → index-684c9b6d.js} +25 -25
- package/build/esm/{index-864fa9b8.js → index-6c737669.js} +2 -2
- package/build/esm/{index-000a54cd.js → index-714548d9.js} +30 -30
- package/build/esm/{index-fa4b7aa1.js → index-74c18c86.js} +5 -1
- package/build/esm/{index-9fae30cc.js → index-7526c22b.js} +2 -2
- package/build/esm/{index-c17a9d39.js → index-7883c683.js} +2 -2
- package/build/esm/{index-9df03d5b.js → index-7f10b9ca.js} +3 -3
- package/build/esm/{index-3fc6d839.js → index-80fa12d9.js} +13 -13
- package/build/esm/{index-1677cb1c.js → index-8296db8d.js} +15 -15
- package/build/esm/{index-33d7b10d.js → index-835684a8.js} +6 -6
- package/build/esm/{index-e59e69a8.js → index-88caf926.js} +2 -2
- package/build/esm/{index-4797c07d.js → index-8b69a0e9.js} +6 -6
- package/build/esm/{index-6c76f35f.js → index-8bd7963d.js} +4 -4
- package/build/esm/{index-fe84df1d.js → index-8c365d0b.js} +2 -2
- package/build/esm/{index-8c2e8bdb.js → index-8dca9704.js} +3 -3
- package/build/esm/{index-656cc637.js → index-931d0cf9.js} +2 -2
- package/build/esm/{index-ad36aaeb.js → index-94978b6a.js} +2 -2
- package/build/esm/{index-2c395ebf.js → index-95b42d14.js} +3 -3
- package/build/esm/{index-c51d1943.js → index-9c884c20.js} +4 -4
- package/build/esm/{index-e75772ec.js → index-a252f838.js} +2 -2
- package/build/esm/{index-deac277f.js → index-a8886c26.js} +2 -2
- package/build/esm/{index-87504090.js → index-a96e8ba4.js} +2 -2
- package/build/esm/{index-93a3ad84.js → index-b00bf94d.js} +6 -6
- package/build/esm/{index-fe792896.js → index-b29137cb.js} +2 -2
- package/build/esm/{index-635bf6cc.js → index-b4c57571.js} +1 -1
- package/build/esm/{index-9e4566c3.js → index-b55b5583.js} +17 -17
- package/build/esm/{index-807fef9f.js → index-b9361ec2.js} +1 -1
- package/build/esm/{index-bcbed89a.js → index-b9b6badf.js} +16 -16
- package/build/esm/{index-7a18d113.js → index-bc5c6ef8.js} +2 -2
- package/build/esm/{index-3ee9dc03.js → index-bdc33452.js} +6 -6
- package/build/esm/{index-4e280491.js → index-c2764723.js} +18 -18
- package/build/esm/{index-794ec68e.js → index-c4376c46.js} +32 -32
- package/build/esm/{index-e06a369f.js → index-c7ea4115.js} +22 -22
- package/build/esm/{index-0b66f0a1.js → index-c8ac08c3.js} +16 -16
- package/build/esm/{index-09eb2c0c.js → index-c98f6c2d.js} +31 -31
- package/build/esm/{index-18fad236.js → index-ccf3d13c.js} +24 -24
- package/build/esm/{index-7053c722.js → index-d8fbfeb3.js} +7 -7
- package/build/esm/{index-b6f052f9.js → index-da86b554.js} +10 -10
- package/build/esm/{index-7dd0eb2a.js → index-e0f28716.js} +1 -1
- package/build/esm/{index-0ac08b00.js → index-f8eeb866.js} +17 -17
- package/build/esm/{index-557ab8e4.js → index-f9fc5bff.js} +11 -11
- package/build/esm/{index-58b808f7.js → index-fb2a229b.js} +2 -2
- package/build/esm/{index-c6cc32f8.js → index-fb81b2d2.js} +1 -1
- package/build/esm/index.js +118 -118
- package/build/esm/{labelSorting-16b2620c.js → labelSorting-913b349d.js} +4 -4
- package/build/esm/lead/LeadGen.type.d.ts +2 -0
- package/build/esm/lead/layouts/centerTab.d.ts +2 -1
- package/build/esm/lead/layouts/inline.d.ts +2 -1
- package/build/esm/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/esm/lead/newLeadPopup.d.ts +2 -1
- package/build/esm/lead/utils/formatFormData.d.ts +1 -0
- package/build/esm/lead/utils/formatTrackingData.d.ts +1 -0
- package/build/esm/lead.js +128 -101
- package/build/esm/{logoIcon-15d85b86.js → logoIcon-0293e313.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 +7 -7
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +74 -74
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +46 -46
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +26 -26
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +50 -50
- package/build/esm/{post-d137769a.js → post-7d275b18.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/esm/ssoV2.js +52 -40
- package/build/esm/{store-f251c47f.js → store-727ad685.js} +3 -3
- package/build/esm/subot/subotInlineRevamp/context.d.ts +1 -1
- package/build/esm/subot/subotInlineRevamp/typeFormView/index.d.ts +3 -2
- package/build/esm/subot/subotInlineRevamp/types.d.ts +8 -4
- package/build/esm/subot/subotInlineRevamp/view.d.ts +1 -1
- package/build/esm/subot.js +62 -51
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-0332b802.js → surveyThankyouCard-d451e32b.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-573fef23.js → translationsProvider-b847abb3.js} +1 -1
- package/build/esm/{treePopoverMenu-33e4a037.js → treePopoverMenu-020248bf.js} +19 -19
- package/build/esm/{types-0c37a16e.js → types-89942102.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-a78f01c6.js → useCategory-bc09fc68.js} +5 -5
- package/build/esm/{useHealthToolCache-13537f29.js → useHealthToolCache-c82414af.js} +1 -1
- package/build/esm/{useMantineLocale-353219bd.js → useMantineLocale-2c127895.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-3e287e7f.js → usePlacesAutocomplete-d7fc3482.js} +1 -1
- package/build/esm/{useScreenSize-6673553c.js → useScreenSize-19654a25.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-39d11c0f.js → utils-37bbf028.js} +3 -3
- package/build/esm/{utils-e0f2ebd7.js → utils-704bc5e3.js} +2 -2
- package/build/esm/{utils-5f1e9178.js → utils-8d62e1bf.js} +5 -5
- package/build/esm/{utils-1dfd17e3.js → utils-8ec2a39c.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-c6da9c12.js → healthTools-d6a7b031.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-6d8500b7.js → index-037bdbd4.js} +3 -3
- package/build/{index-15c4f0f3.js → index-039cf44a.js} +1 -1
- package/build/{index-9fa5135e.js → index-09e33548.js} +6 -6
- package/build/{index-a5cf01e8.js → index-0a85608a.js} +2 -2
- package/build/{index-8d3fa7c5.js → index-0a886327.js} +11 -11
- package/build/{index-dae1d30f.js → index-0ab12862.js} +16 -16
- package/build/{index-ee8284da.js → index-0b862dd6.js} +16 -16
- package/build/{index-10515a83.js → index-0f1e63fd.js} +18 -18
- package/build/{index-90ce6e70.js → index-154e2309.js} +2 -2
- package/build/{index-4dbd55a5.js → index-1a9c9255.js} +1 -1
- package/build/{index-23d9e4b2.js → index-1b853057.js} +31 -31
- package/build/{index-d7edff72.js → index-1bd422a1.js} +17 -17
- package/build/{index-3640b117.js → index-1c380c76.js} +1 -1
- package/build/{index-744bce57.js → index-2c46ddfc.js} +24 -24
- package/build/{index-84bd1c49.js → index-2f058f7b.js} +5 -5
- package/build/{index-ca89f387.js → index-326941a3.js} +15 -15
- package/build/{index-8716eefe.js → index-35456f23.js} +3 -3
- package/build/{index-6108c8cd.js → index-3748773f.js} +18 -18
- package/build/{index-078c49c4.js → index-3b3920ea.js} +2 -2
- package/build/{index-190fe554.js → index-44f14919.js} +3 -3
- package/build/{index-e23c0a80.js → index-46142929.js} +4 -4
- package/build/{index-e1a2df96.js → index-470c39f4.js} +2 -2
- package/build/{index-e7a6260c.js → index-4a04a917.js} +17 -17
- package/build/{index-8e9181e9.js → index-4db1fdd4.js} +6 -6
- package/build/{index-05ab7ba6.js → index-4e4524ca.js} +1 -1
- package/build/{index-81fe189b.js → index-53b38fe0.js} +30 -30
- package/build/{index-e43e81c5.js → index-53f5b491.js} +2 -2
- package/build/{index-9b4db3b0.js → index-5bb1232f.js} +7 -7
- package/build/{index-3ee7fd18.js → index-64dae78b.js} +13 -13
- package/build/{index-36b0ca11.js → index-69c9b98d.js} +6 -6
- package/build/{index-3b28ff85.js → index-6cd9667a.js} +2 -2
- package/build/{index-d9ff34f9.js → index-6ee594b3.js} +5 -5
- package/build/{index-8078cc44.js → index-7128fbb2.js} +7 -7
- package/build/{index-f0d4b026.js → index-77b8b9cc.js} +1 -1
- package/build/{index-665a83dd.js → index-782e6303.js} +2 -2
- package/build/{index-82591733.js → index-85cfa803.js} +17 -17
- package/build/{index-499bb10f.js → index-8e34e823.js} +22 -22
- package/build/{index-1cb1401a.js → index-8fc869b9.js} +1 -1
- package/build/{index-3307d9b6.js → index-90ba42c7.js} +16 -16
- package/build/{index-f4008da5.js → index-92c461bc.js} +25 -25
- package/build/{index-b2bd2019.js → index-93309a02.js} +2 -2
- package/build/{index-4677d8cc.js → index-a568993d.js} +17 -17
- package/build/{index-62e1e73a.js → index-a61ed197.js} +3 -3
- package/build/{index-f896028c.js → index-a67b0c63.js} +3 -3
- package/build/{index-5549de7a.js → index-a7c08da7.js} +2 -2
- package/build/{index-a9d290da.js → index-ae17250e.js} +2 -2
- package/build/{index-fbb45fa5.js → index-b16941cf.js} +16 -16
- package/build/{index-01858b42.js → index-b29bd84e.js} +4 -4
- package/build/{index-4381a306.js → index-ba073f2d.js} +32 -32
- package/build/{index-aa2df074.js → index-cbc7d631.js} +10 -10
- package/build/{index-6f22b0a1.js → index-d8624726.js} +6 -6
- package/build/{index-e71c2872.js → index-d8bf7b8f.js} +13 -13
- package/build/{index-51134209.js → index-da20f878.js} +13 -13
- package/build/{index-d28a9fbf.js → index-dbf7d5cd.js} +5 -1
- package/build/{index-2717baa0.js → index-dfcf22af.js} +11 -11
- package/build/{index-43d177b7.js → index-e069b4ac.js} +6 -6
- package/build/{index-5fdec475.js → index-e16732cb.js} +13 -13
- package/build/{index-717e2050.js → index-e5b268eb.js} +1 -1
- package/build/{index-829b93dc.js → index-ed2aa7a5.js} +2 -2
- package/build/{index-52f2bf9e.js → index-f18f34c4.js} +3 -3
- package/build/{index-0b03a594.js → index-f4956c99.js} +2 -2
- package/build/{index-2e983d6b.js → index-f699fb8c.js} +1 -1
- package/build/{index-26d955ff.js → index-f9fe2690.js} +21 -21
- package/build/{index-72192318.js → index-fc0c4505.js} +2 -2
- package/build/{index-ceaa3f80.js → index-ffd7f323.js} +2 -2
- package/build/index.js +118 -118
- package/build/{labelSorting-adf8971f.js → labelSorting-266307af.js} +4 -4
- package/build/lead/LeadGen.type.d.ts +2 -0
- package/build/lead/layouts/centerTab.d.ts +2 -1
- package/build/lead/layouts/inline.d.ts +2 -1
- package/build/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/lead/newLeadPopup.d.ts +2 -1
- package/build/lead/utils/formatFormData.d.ts +1 -0
- package/build/lead/utils/formatTrackingData.d.ts +1 -0
- package/build/lead.js +129 -102
- package/build/{logoIcon-2a6bb448.js → logoIcon-a8b65d70.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 +7 -7
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +74 -74
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +46 -46
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +26 -26
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +50 -50
- package/build/{post-a5dc576f.js → post-462f0d57.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/ssoV2.js +50 -38
- package/build/{store-3bd4ca19.js → store-31ef46f6.js} +3 -3
- package/build/subot/subotInlineRevamp/context.d.ts +1 -1
- package/build/subot/subotInlineRevamp/typeFormView/index.d.ts +3 -2
- package/build/subot/subotInlineRevamp/types.d.ts +8 -4
- package/build/subot/subotInlineRevamp/view.d.ts +1 -1
- package/build/subot.js +61 -50
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-8d25f2c1.js → surveyThankyouCard-22ac4ee7.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-db721e47.js → translationsProvider-c9a2fa39.js} +1 -1
- package/build/{treePopoverMenu-fea3f3b4.js → treePopoverMenu-0a6a38e2.js} +19 -19
- package/build/{types-7bbd0025.js → types-0a704d10.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-154d7c81.js → useCategory-c0bd0a92.js} +5 -5
- package/build/{useHealthToolCache-8e22400e.js → useHealthToolCache-76246778.js} +1 -1
- package/build/{useMantineLocale-5aad73c8.js → useMantineLocale-977c9a3b.js} +6 -6
- package/build/{usePlacesAutocomplete-a1188ad8.js → usePlacesAutocomplete-7a58bb1c.js} +1 -1
- package/build/{useScreenSize-9f0bea6c.js → useScreenSize-5f04a96c.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-e1621db9.js → utils-adfed433.js} +5 -5
- package/build/{utils-10653281.js → utils-c1912c23.js} +3 -3
- package/build/{utils-a2d71dc3.js → utils-d0214ff9.js} +2 -2
- package/build/{utils-35c2cb72.js → utils-e7aa2615.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-0c234501.js → BMI_BOYS.percentile.monthly-aee0a553.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-1b21561d.js → BMI_BOYS.percentile.weekly-b44810d3.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-b8a38daa.js → BMI_BOYS.percentile.yearly-3dc45e17.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-65c12c7c.js → BMI_BOYS.zscore.monthly-b361a839.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-48eb75fa.js → BMI_BOYS.zscore.weekly-b795508d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-45e33460.js → BMI_BOYS.zscore.yearly-9eaaabb7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-30d1ce93.js → BMI_GIRLS.percentile.monthly-d5c47a3e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-cbee3e8a.js → BMI_GIRLS.percentile.weekly-42d54b8f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-86ede28c.js → BMI_GIRLS.percentile.yearly-f489fe66.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-223fd23e.js → BMI_GIRLS.zscore.monthly-2d5db160.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-d99a37d3.js → BMI_GIRLS.zscore.weekly-6f3bc8d4.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-eaa91877.js → BMI_GIRLS.zscore.yearly-8ce40060.js} +0 -0
- /package/build/{ChevronDown-6f21f1e9.js → ChevronDown-2fc97c78.js} +0 -0
- /package/build/{Close-5304a9dd.js → Close-4588c4ef.js} +0 -0
- /package/build/{Google-88149355.js → Google-3f5c103f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-9cb8f73c.js → HEAD CIRCUM_BOYS.percentile.monthly-bccdf064.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-77c696a5.js → HEAD CIRCUM_BOYS.percentile.weekly-7d76d6fc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-469000a6.js → HEAD CIRCUM_BOYS.percentile.yearly-995f5a22.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a1bf5cba.js → HEAD CIRCUM_BOYS.zscore.monthly-20a72b2e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-bdcdeeeb.js → HEAD CIRCUM_BOYS.zscore.weekly-12a7a753.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-cecf96d1.js → HEAD CIRCUM_BOYS.zscore.yearly-5715854f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-53cc7afa.js → HEAD CIRCUM_GIRLS.percentile.monthly-ed66f107.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-818d428f.js → HEAD CIRCUM_GIRLS.percentile.weekly-ba84592d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c17ce0ce.js → HEAD CIRCUM_GIRLS.percentile.yearly-fb0cb633.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5b998bb4.js → HEAD CIRCUM_GIRLS.zscore.monthly-2f6250e2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-87d218db.js → HEAD CIRCUM_GIRLS.zscore.weekly-f44a0f77.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-325cb1d1.js → HEAD CIRCUM_GIRLS.zscore.yearly-95780828.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-8580f88e.js → HEIGHT_BOYS.percentile.monthly-5785f578.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-7fb22041.js → HEIGHT_BOYS.percentile.weekly-f30000cf.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-62dcec13.js → HEIGHT_BOYS.percentile.yearly-9f020533.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-9391d646.js → HEIGHT_BOYS.zscore.monthly-c7c80181.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-7e6a2bf1.js → HEIGHT_BOYS.zscore.weekly-e0550f52.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-5b4bb6f9.js → HEIGHT_BOYS.zscore.yearly-42808ece.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-0ebd7795.js → HEIGHT_GIRLS.percentile.monthly-239650c7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-7e016757.js → HEIGHT_GIRLS.percentile.weekly-421253d6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-3e48bb6b.js → HEIGHT_GIRLS.percentile.yearly-26af5408.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-5f49ab00.js → HEIGHT_GIRLS.zscore.monthly-9276444c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-23efd0a9.js → HEIGHT_GIRLS.zscore.weekly-ba9c70a1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-ae0a12d4.js → HEIGHT_GIRLS.zscore.yearly-c57cd296.js} +0 -0
- /package/build/{Locale-30983efe.js → Locale-3e312faa.js} +0 -0
- /package/build/{Visible-840eaa2c.js → Visible-d0f70c77.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-7e87b7b4.js → WEIGHT_BOYS.percentile.monthly-93784e18.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-91959359.js → WEIGHT_BOYS.percentile.weekly-0c1d5a51.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-8e45f527.js → WEIGHT_BOYS.percentile.yearly-1f4439d5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-d39e8fe5.js → WEIGHT_BOYS.zscore.monthly-03bcb42a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-d0843a32.js → WEIGHT_BOYS.zscore.weekly-d4b3c812.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-3361ab95.js → WEIGHT_BOYS.zscore.yearly-0abd0bf3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1b90f4c3.js → WEIGHT_GIRLS.percentile.monthly-359e41ab.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-87ac1cbc.js → WEIGHT_GIRLS.percentile.weekly-83fd045c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-6c736250.js → WEIGHT_GIRLS.percentile.yearly-67de5fa6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-eca13f6c.js → WEIGHT_GIRLS.zscore.monthly-7cd4892a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-1f422383.js → WEIGHT_GIRLS.zscore.weekly-fd9f26ac.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-1c7885c4.js → WEIGHT_GIRLS.zscore.yearly-7a756fbd.js} +0 -0
- /package/build/{animation-3f86c53d.js → animation-a4a3aa3a.js} +0 -0
- /package/build/{constants-45086d1c.js → constants-2d20ed87.js} +0 -0
- /package/build/{constants-50bd22c3.js → constants-a35c5f5b.js} +0 -0
- /package/build/{constants-d942d69c.js → constants-dc310538.js} +0 -0
- /package/build/{dataTransform-4f54fc81.js → dataTransform-f29facbc.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-4fd0dced.js → BMI_BOYS.percentile.monthly-f6a1bb78.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-69353cbb.js → BMI_BOYS.percentile.weekly-d1985b15.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-1f5ab3ec.js → BMI_BOYS.percentile.yearly-bf20f006.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-128bd5d1.js → BMI_BOYS.zscore.monthly-f1ee2e0b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-daf7d149.js → BMI_BOYS.zscore.weekly-ba83150b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-24b78c82.js → BMI_BOYS.zscore.yearly-2db1d024.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-035dbbca.js → BMI_GIRLS.percentile.monthly-4c2b9347.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-d9843f0c.js → BMI_GIRLS.percentile.weekly-8df00500.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-f18cee7c.js → BMI_GIRLS.percentile.yearly-b029d1c3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-23d79503.js → BMI_GIRLS.zscore.monthly-b3839e24.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-b4b2f01c.js → BMI_GIRLS.zscore.weekly-61e1fd74.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e53be6e2.js → BMI_GIRLS.zscore.yearly-2629ef0e.js} +0 -0
- /package/build/esm/{ChevronDown-fb4d8f2a.js → ChevronDown-da6d476f.js} +0 -0
- /package/build/esm/{Close-5dcfec1c.js → Close-f210a290.js} +0 -0
- /package/build/esm/{Google-3d99f54a.js → Google-000ac882.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-0eb365b5.js → HEAD CIRCUM_BOYS.percentile.monthly-db706c68.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-5118e8be.js → HEAD CIRCUM_BOYS.percentile.weekly-bd16cb20.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-d4771e58.js → HEAD CIRCUM_BOYS.percentile.yearly-2bbbe7bb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-2be175a0.js → HEAD CIRCUM_BOYS.zscore.monthly-75a53a4f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-3bacc050.js → HEAD CIRCUM_BOYS.zscore.weekly-33a92148.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-18b57021.js → HEAD CIRCUM_BOYS.zscore.yearly-bb1d23bb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a337853f.js → HEAD CIRCUM_GIRLS.percentile.monthly-a0387c24.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-f6b623f5.js → HEAD CIRCUM_GIRLS.percentile.weekly-7b9aa477.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-023aed7b.js → HEAD CIRCUM_GIRLS.percentile.yearly-e775f504.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-b470ccb3.js → HEAD CIRCUM_GIRLS.zscore.monthly-820c288d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-adef753f.js → HEAD CIRCUM_GIRLS.zscore.weekly-4cd2e233.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-865eaad6.js → HEAD CIRCUM_GIRLS.zscore.yearly-b18d51bd.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-4ba4dfc1.js → HEIGHT_BOYS.percentile.monthly-d2cad858.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-85c07b7e.js → HEIGHT_BOYS.percentile.weekly-f36b5040.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-ddf351d9.js → HEIGHT_BOYS.percentile.yearly-ef73ff60.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b4b99299.js → HEIGHT_BOYS.zscore.monthly-3c6697bb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-4899765e.js → HEIGHT_BOYS.zscore.weekly-f4974381.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-7d5ebc2d.js → HEIGHT_BOYS.zscore.yearly-18380048.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8fbfcfc6.js → HEIGHT_GIRLS.percentile.monthly-e80027b1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-612b5e48.js → HEIGHT_GIRLS.percentile.weekly-ed9fb4ec.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-1e01a826.js → HEIGHT_GIRLS.percentile.yearly-be9e9464.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-64db6862.js → HEIGHT_GIRLS.zscore.monthly-071b33c4.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-5de0aa0a.js → HEIGHT_GIRLS.zscore.weekly-d318b0a8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-401a2b64.js → HEIGHT_GIRLS.zscore.yearly-f4c11851.js} +0 -0
- /package/build/esm/{Locale-c4707a32.js → Locale-40ba0062.js} +0 -0
- /package/build/esm/{Visible-ccced248.js → Visible-77bef853.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-f2a88469.js → WEIGHT_BOYS.percentile.monthly-647f31a8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-24f5abf6.js → WEIGHT_BOYS.percentile.weekly-4bde9b31.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-f00a1e3c.js → WEIGHT_BOYS.percentile.yearly-069283c4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-6fd77764.js → WEIGHT_BOYS.zscore.monthly-2cfc1302.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b66c96a0.js → WEIGHT_BOYS.zscore.weekly-3ee508dc.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-3f71a0ac.js → WEIGHT_BOYS.zscore.yearly-5ac541b8.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-25d2494b.js → WEIGHT_GIRLS.percentile.monthly-408e020b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-adb87c2e.js → WEIGHT_GIRLS.percentile.weekly-a519684a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-5ac34f9f.js → WEIGHT_GIRLS.percentile.yearly-f0991a20.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-2e5ce226.js → WEIGHT_GIRLS.zscore.monthly-ceb5d179.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-df0239f1.js → WEIGHT_GIRLS.zscore.weekly-a90de0c7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9e71eb46.js → WEIGHT_GIRLS.zscore.yearly-42c62f0b.js} +0 -0
- /package/build/esm/{animation-48af9534.js → animation-ae33becd.js} +0 -0
- /package/build/esm/{constants-569fb3b7.js → constants-67474e97.js} +0 -0
- /package/build/esm/{constants-ab2a61f5.js → constants-6af68341.js} +0 -0
- /package/build/esm/{constants-99fba3d4.js → constants-9071a15b.js} +0 -0
- /package/build/esm/{dataTransform-30ac3fa6.js → dataTransform-1ea23943.js} +0 -0
- /package/build/esm/{index-f95b7a03.js → index-05762c4c.js} +0 -0
- /package/build/esm/{index-49820652.js → index-3f7ee739.js} +0 -0
- /package/build/esm/{index-5b91e404.js → index-419bb6cd.js} +0 -0
- /package/build/esm/{index-30939054.js → index-5b164a14.js} +0 -0
- /package/build/esm/{index-ab6126bc.js → index-9459eff1.js} +0 -0
- /package/build/esm/{index-68f61527.js → index-9acb9c12.js} +0 -0
- /package/build/esm/{index-5beaf1fb.js → index-b00716de.js} +0 -0
- /package/build/esm/{index-6896a19f.js → index-f97aedb8.js} +0 -0
- /package/build/esm/{index.styles-e7fed8af.js → index.styles-f4191686.js} +0 -0
- /package/build/esm/{localizeNumberFormat-a29211d9.js → localizeNumberFormat-2ec3f86c.js} +0 -0
- /package/build/esm/{normalizeLink-6ac2dec6.js → normalizeLink-a03bc03f.js} +0 -0
- /package/build/esm/{number-f2ec7bb7.js → number-ae1cf22e.js} +0 -0
- /package/build/esm/{other-b9c7d02f.js → other-a96544f5.js} +0 -0
- /package/build/esm/{paths-95e4cdcd.js → paths-9dbae0ac.js} +0 -0
- /package/build/esm/{translationsContext-e2de6a62.js → translationsContext-4c862414.js} +0 -0
- /package/build/esm/{tslib.es6-0ae1b218.js → tslib.es6-b4553cdc.js} +0 -0
- /package/build/esm/{types-e962a727.js → types-aad7b004.js} +0 -0
- /package/build/esm/{useIsInit-ac3adacd.js → useIsInit-8cb27732.js} +0 -0
- /package/build/esm/{useOutsideClick-a26abefb.js → useOutsideClick-66063724.js} +0 -0
- /package/build/esm/{useScrollbarSize-7f8b3c15.js → useScrollbarSize-171e2a69.js} +0 -0
- /package/build/esm/{useUniqueId-dcbfc303.js → useUniqueId-e8afc1d1.js} +0 -0
- /package/build/esm/{utils-37cf5e43.js → utils-ec0ee922.js} +0 -0
- /package/build/{index-9f4f9380.js → index-707b5ff1.js} +0 -0
- /package/build/{index-6f8a5e74.js → index-8e28ab83.js} +0 -0
- /package/build/{index-ba5ad01b.js → index-94281377.js} +0 -0
- /package/build/{index-dc107cd9.js → index-9f669610.js} +0 -0
- /package/build/{index-3f6cb049.js → index-b29afebe.js} +0 -0
- /package/build/{index-9b9d7c5c.js → index-f23c998a.js} +0 -0
- /package/build/{index-e4a70418.js → index-fb50bd74.js} +0 -0
- /package/build/{index-b8617a77.js → index-fcac0764.js} +0 -0
- /package/build/{index.styles-6e7420b5.js → index.styles-85a05f45.js} +0 -0
- /package/build/{localizeNumberFormat-dccef89a.js → localizeNumberFormat-6937366f.js} +0 -0
- /package/build/{normalizeLink-f52dc563.js → normalizeLink-e413cbc2.js} +0 -0
- /package/build/{number-5e3e6983.js → number-0d6e2d9d.js} +0 -0
- /package/build/{other-a8c6e548.js → other-43fe5fd6.js} +0 -0
- /package/build/{paths-4ba2f61a.js → paths-4eb00b4c.js} +0 -0
- /package/build/{translationsContext-26ac6792.js → translationsContext-d3450b96.js} +0 -0
- /package/build/{tslib.es6-ad0f0713.js → tslib.es6-2ba0777e.js} +0 -0
- /package/build/{types-d01403f2.js → types-5369adad.js} +0 -0
- /package/build/{useIsInit-f95168da.js → useIsInit-50065522.js} +0 -0
- /package/build/{useOutsideClick-2d4a76da.js → useOutsideClick-8f87a833.js} +0 -0
- /package/build/{useScrollbarSize-8a6737be.js → useScrollbarSize-1894488e.js} +0 -0
- /package/build/{useUniqueId-7d7dbc74.js → useUniqueId-5737db18.js} +0 -0
- /package/build/{utils-c85ad022.js → utils-fb7caec4.js} +0 -0
|
@@ -2,7 +2,7 @@ import React, { Dispatch, SetStateAction } from 'react';
|
|
|
2
2
|
import { LOCALE, UserInfo } from "../../../interfaces/types";
|
|
3
3
|
import { LEADGEN_LAYOUT } from "../../LeadGen.helpers";
|
|
4
4
|
import { TrackingFormProps } from "../../LeadGen.type";
|
|
5
|
-
export declare const LightboxLayout: ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }: {
|
|
5
|
+
export declare const LightboxLayout: ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }: {
|
|
6
6
|
popupId: string;
|
|
7
7
|
currentLayout: LEADGEN_LAYOUT;
|
|
8
8
|
extraFields: any;
|
|
@@ -16,6 +16,7 @@ export declare const LightboxLayout: ({ popupId, extraFields, onClose: onClosePr
|
|
|
16
16
|
onOtherSubmit?: () => void;
|
|
17
17
|
onSubmit?: (v: TrackingFormProps) => void;
|
|
18
18
|
onUnmount?: (v: TrackingFormProps) => void;
|
|
19
|
+
doImpression?: (v: TrackingFormProps) => void;
|
|
19
20
|
showThankyou?: {
|
|
20
21
|
title: string;
|
|
21
22
|
titleAlign?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { LOCALE, UserInfo } from "../interfaces/types";
|
|
3
3
|
import { TrackingFormProps } from "./LeadGen.type";
|
|
4
|
-
export declare const NewLeadPopup: ({ campaign, action, onSubmit, onClose, onUnmount, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }: {
|
|
4
|
+
export declare const NewLeadPopup: ({ campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }: {
|
|
5
5
|
campaign: any;
|
|
6
6
|
action?: string;
|
|
7
7
|
onSubmit?: (params: TrackingFormProps, categoryLevel?: number, categoryData?: {
|
|
@@ -12,6 +12,7 @@ export declare const NewLeadPopup: ({ campaign, action, onSubmit, onClose, onUnm
|
|
|
12
12
|
}) => void;
|
|
13
13
|
onClose?: (params?: TrackingFormProps) => void;
|
|
14
14
|
onUnmount?: (params?: TrackingFormProps) => void;
|
|
15
|
+
doImpression?: (params?: TrackingFormProps) => void;
|
|
15
16
|
showThankyou?: {
|
|
16
17
|
title: string;
|
|
17
18
|
titleAlign?: string;
|
|
@@ -9,6 +9,7 @@ export declare const formatTrackingData: (params: TrackingFormParams) => {
|
|
|
9
9
|
total_fields: number;
|
|
10
10
|
status: "complete" | "in_progress";
|
|
11
11
|
country_code: string;
|
|
12
|
+
type: "impression" | "close" | "redirects" | "submit_form";
|
|
12
13
|
template_type: LEADGEN_LAYOUT;
|
|
13
14
|
time_on_form: number;
|
|
14
15
|
};
|
package/build/esm/lead.js
CHANGED
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-b4553cdc.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
4
|
import debounce from 'lodash/debounce';
|
|
5
5
|
import { createFormContext, useForm } from '@mantine/form';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-9c884c20.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-5d633caa.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-4c862414.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-ec0ee922.js';
|
|
12
|
+
import { T as Text } from './index-a96e8ba4.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-616d80cc.js';
|
|
14
|
+
import { D as DatePicker } from './index-835684a8.js';
|
|
15
|
+
import { B as Button } from './index-74c18c86.js';
|
|
16
|
+
import './index.styles-f4191686.js';
|
|
17
17
|
import { useIntersection, useClickOutside } from '@mantine/hooks';
|
|
18
|
-
import './useMantineLocale-
|
|
19
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
20
|
-
import './index-
|
|
21
|
-
import { L as LOCALE_SPECS, 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-2c127895.js';
|
|
19
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-0511a4dc.js';
|
|
20
|
+
import './index-9459eff1.js';
|
|
21
|
+
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-b29137cb.js';
|
|
22
|
+
import './other-a96544f5.js';
|
|
23
|
+
import './index-08b2877f.js';
|
|
24
|
+
import { M as MAPPED_LOCALE } from './utils-704bc5e3.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-d7fc3482.js';
|
|
27
|
+
import { H as Heading$1 } from './index-7883c683.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-b847abb3.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-40ba0062.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
32
32
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
33
33
|
import styled from '@emotion/styled';
|
|
34
34
|
import { theme } from './miscTheme.js';
|
|
35
35
|
import { css } from '@emotion/react';
|
|
36
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
37
|
-
import { i as isVideo } from './index-
|
|
38
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
36
|
+
import { T as TogetherComponentGlobalContext } from './utils-37bbf028.js';
|
|
37
|
+
import { i as isVideo } from './index-b00716de.js';
|
|
38
|
+
import { u as useScreenSize } from './useScreenSize-19654a25.js';
|
|
39
39
|
import { motion } from 'framer-motion';
|
|
40
40
|
import { createPortal } from 'react-dom';
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { C as Close } from './Close-5dcfec1c.js';
|
|
41
|
+
import { I as InputDate } from './InputDate-471b81b5.js';
|
|
42
|
+
import { D as DrawerComponent } from './index-fb2a229b.js';
|
|
43
|
+
import { C as Close } from './Close-f210a290.js';
|
|
45
44
|
import './constantsIsProduction.js';
|
|
46
|
-
import './normalizeLink-
|
|
45
|
+
import './normalizeLink-a03bc03f.js';
|
|
47
46
|
import '@hhgtech/icons/other';
|
|
48
47
|
import '@mantine/carousel';
|
|
49
48
|
import 'classnames';
|
|
50
|
-
import './useUniqueId-
|
|
49
|
+
import './useUniqueId-e8afc1d1.js';
|
|
51
50
|
import './constantsSite.js';
|
|
52
51
|
import '@hhgtech/icons/core';
|
|
53
52
|
import '@mantine/notifications';
|
|
@@ -65,11 +64,11 @@ import './i18n-values/vi-VN.js';
|
|
|
65
64
|
import './i18n-values/vi-VN_MB.js';
|
|
66
65
|
import './i18n-values/zh-SG.js';
|
|
67
66
|
import './i18n-values/zh-TW.js';
|
|
68
|
-
import './index-
|
|
67
|
+
import './index-f97aedb8.js';
|
|
69
68
|
import 'slugify';
|
|
70
69
|
import 'string-format';
|
|
71
70
|
import './togetherApiPaths.js';
|
|
72
|
-
import './constants-
|
|
71
|
+
import './constants-6af68341.js';
|
|
73
72
|
import 'vaul';
|
|
74
73
|
|
|
75
74
|
const LeadGenComponentContext = createContext({});
|
|
@@ -995,15 +994,15 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
995
994
|
case 'TextBlock':
|
|
996
995
|
return (React__default.createElement(Input, Object.assign({ key: index, withAsterisk: required, spellCheck: false, type: "text", placeholder: placeholder, className: cx('leadgen-control', classes.control),
|
|
997
996
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
998
|
-
label: placeholder, "data-control": "text", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
997
|
+
label: placeholder, "data-control": "text", "data-lead-control": name, "data-is-required": required, name: value }, form.getInputProps(value))));
|
|
999
998
|
case 'NumberBlock':
|
|
1000
999
|
return (React__default.createElement(NumberInput, Object.assign({ key: index, withAsterisk: required, spellCheck: false, type: "number", placeholder: placeholder, className: cx('leadgen-control', classes.control),
|
|
1001
1000
|
// onChange={(e) => inputOnChange('number', e)}
|
|
1002
|
-
label: placeholder, "data-control": "number", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
1001
|
+
label: placeholder, "data-control": "number", "data-lead-control": name, "data-is-required": required, name: value }, form.getInputProps(value))));
|
|
1003
1002
|
case 'EmailBlock':
|
|
1004
1003
|
return (React__default.createElement(Input, Object.assign({ key: index, withAsterisk: required, spellCheck: false,
|
|
1005
1004
|
// type="email"
|
|
1006
|
-
placeholder: placeholder, className: cx('leadgen-control', classes.control), label: placeholder, "data-control": "email", "data-lead-control": name, name: value }, form.getInputProps(value))));
|
|
1005
|
+
placeholder: placeholder, className: cx('leadgen-control', classes.control), label: placeholder, "data-control": "email", "data-lead-control": name, "data-is-required": required, name: value }, form.getInputProps(value))));
|
|
1007
1006
|
case 'PhoneOtpBlock':
|
|
1008
1007
|
case 'WhatsappOtpBlock':
|
|
1009
1008
|
case 'ZaloOtpBlock':
|
|
@@ -1018,14 +1017,14 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1018
1017
|
form.setFieldValue(value, v);
|
|
1019
1018
|
},
|
|
1020
1019
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
1021
|
-
id: id, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name })));
|
|
1020
|
+
id: id, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name, "data-is-required": required })));
|
|
1022
1021
|
}
|
|
1023
1022
|
case 'LocationBlock': {
|
|
1024
1023
|
return (React__default.createElement(LocationBlock, { key: index, name: value, placeholder: placeholder, locale: locale, required: required }));
|
|
1025
1024
|
}
|
|
1026
1025
|
case 'DateBlock':
|
|
1027
1026
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1028
|
-
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))),
|
|
1027
|
+
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, "data-is-required": required, popoverProps: popoverProps }, form.getInputProps(value))),
|
|
1029
1028
|
React__default.createElement("input", { type: "hidden", name: value, "data-control": "date" })));
|
|
1030
1029
|
case 'LinkButtonBlock':
|
|
1031
1030
|
return (React__default.createElement("div", { key: index },
|
|
@@ -1043,14 +1042,14 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1043
1042
|
display: 'flex',
|
|
1044
1043
|
flexDirection: 'column',
|
|
1045
1044
|
gap: 8,
|
|
1046
|
-
} }, 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 }))))));
|
|
1045
|
+
} }, 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, "data-is-required": required }))))));
|
|
1047
1046
|
case 'RadioBlock':
|
|
1048
1047
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1049
1048
|
isSendMailChimp && (React__default.createElement(Input, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
1050
|
-
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 }))))));
|
|
1049
|
+
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, "data-is-required": required }))))));
|
|
1051
1050
|
case 'DropdownBlock':
|
|
1052
1051
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1053
|
-
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown', "data-lead-control": name }),
|
|
1052
|
+
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown', "data-lead-control": name, "data-is-required": required }),
|
|
1054
1053
|
React__default.createElement(Select, Object.assign({ key: index, className: cx('leadgen-control', classes.control), label: placeholder, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
1055
1054
|
value: l.value,
|
|
1056
1055
|
label: l.placeholder,
|
|
@@ -1058,7 +1057,7 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1058
1057
|
case 'TncBlock':
|
|
1059
1058
|
const tncInputProps = form.getInputProps('TNC-' + b.id);
|
|
1060
1059
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1061
|
-
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 }))));
|
|
1060
|
+
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, "data-is-required": required }, tncInputProps, { error: tncInputProps.error ? tncInputProps.error : undefined }))));
|
|
1062
1061
|
}
|
|
1063
1062
|
return null;
|
|
1064
1063
|
})));
|
|
@@ -2261,8 +2260,11 @@ const useLeadGenContext = () => {
|
|
|
2261
2260
|
};
|
|
2262
2261
|
|
|
2263
2262
|
const ImpressionTrackingWrapper = ({ children, stayDuration = 3, onImpression, dependency = '', }) => {
|
|
2263
|
+
var _a;
|
|
2264
|
+
const boxRef = useRef(null);
|
|
2265
|
+
const [percent, setPercent] = useState(100);
|
|
2264
2266
|
const { ref, entry } = useIntersection({
|
|
2265
|
-
threshold:
|
|
2267
|
+
threshold: percent / 100,
|
|
2266
2268
|
});
|
|
2267
2269
|
const [tracked, setTracked] = useState(false);
|
|
2268
2270
|
useEffect(() => {
|
|
@@ -2283,14 +2285,20 @@ const ImpressionTrackingWrapper = ({ children, stayDuration = 3, onImpression, d
|
|
|
2283
2285
|
}, [entry === null || entry === void 0 ? void 0 : entry.isIntersecting, tracked]);
|
|
2284
2286
|
useEffect(() => {
|
|
2285
2287
|
if (tracked) {
|
|
2286
|
-
onImpression();
|
|
2287
2288
|
console.log('Impression call API');
|
|
2289
|
+
onImpression();
|
|
2288
2290
|
}
|
|
2289
2291
|
}, [tracked]);
|
|
2290
2292
|
useEffect(() => {
|
|
2291
2293
|
setTracked(false);
|
|
2292
2294
|
}, [dependency]);
|
|
2293
|
-
|
|
2295
|
+
useEffect(() => {
|
|
2296
|
+
if (boxRef.current.clientHeight > window.innerHeight * 0.8) {
|
|
2297
|
+
setPercent(50);
|
|
2298
|
+
}
|
|
2299
|
+
}, [(_a = boxRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight]);
|
|
2300
|
+
return (React__default.createElement(Box, { "data-impression": true, ref: ref },
|
|
2301
|
+
React__default.createElement("div", { ref: boxRef }, children)));
|
|
2294
2302
|
};
|
|
2295
2303
|
|
|
2296
2304
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
@@ -3455,9 +3463,12 @@ const CloseButton = ({ onClose, containerClassName, svgClassName, }) => (React__
|
|
|
3455
3463
|
// newTab: imageBlocks.imageMobile.data.newtab
|
|
3456
3464
|
// imageMobile: campaignShow.image
|
|
3457
3465
|
// imageDestkop: campaignShow.image_desktop
|
|
3458
|
-
const CenterTabLayout = ({ popupId, url, newTab, imageDestkop, imageMobile, onClose, onOtherSubmit, }) => {
|
|
3466
|
+
const CenterTabLayout = ({ popupId, url, newTab, imageDestkop, imageMobile, onClose, onOtherSubmit, doImpression, }) => {
|
|
3459
3467
|
const { width: imageMobileWidth, height: imageMobileHeight, loaded: imageMobileLoaded, } = useImageSize(imageMobile);
|
|
3460
3468
|
const { width: imageDestkopWidth, height: imageDestkopHeight, loaded: imageDestkopLoaded, } = useImageSize(imageDestkop);
|
|
3469
|
+
useEffect(() => {
|
|
3470
|
+
doImpression();
|
|
3471
|
+
}, []);
|
|
3461
3472
|
useEffect(() => {
|
|
3462
3473
|
if (popupId && imageMobileLoaded && imageDestkopLoaded) {
|
|
3463
3474
|
document.body.classList.add('noscroll');
|
|
@@ -4038,8 +4049,7 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
|
|
|
4038
4049
|
React__default.createElement(Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
|
|
4039
4050
|
};
|
|
4040
4051
|
|
|
4041
|
-
const InlineLayout = ({
|
|
4042
|
-
const { apiUrl } = useContext(LeadGenContext$1);
|
|
4052
|
+
const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
|
|
4043
4053
|
const target = useMemo(() => {
|
|
4044
4054
|
if (!inlinePosition)
|
|
4045
4055
|
return null;
|
|
@@ -4146,22 +4156,7 @@ const InlineLayout = ({ action, content, inlinePosition, campaignCode, }) => {
|
|
|
4146
4156
|
}, [inlinePosition]);
|
|
4147
4157
|
if (!inlinePosition || !target)
|
|
4148
4158
|
return null;
|
|
4149
|
-
return createPortal(React__default.createElement(ImpressionTrackingWrapper, { onImpression: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
4150
|
-
const gaCookie = getCookie('_ga') || null;
|
|
4151
|
-
fetch(`${apiUrl}api/campaign/${campaignCode}/impression`, {
|
|
4152
|
-
method: 'POST',
|
|
4153
|
-
headers: {
|
|
4154
|
-
'Content-Type': 'application/json',
|
|
4155
|
-
},
|
|
4156
|
-
body: JSON.stringify({
|
|
4157
|
-
action,
|
|
4158
|
-
url: location.href.toLowerCase(),
|
|
4159
|
-
title_article: document.title,
|
|
4160
|
-
cookie_id: getCookie('hhg-id'),
|
|
4161
|
-
ga_client_id: gaCookie,
|
|
4162
|
-
}),
|
|
4163
|
-
});
|
|
4164
|
-
}) }, content), target);
|
|
4159
|
+
return createPortal(React__default.createElement(ImpressionTrackingWrapper, { onImpression: () => __awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content), target);
|
|
4165
4160
|
};
|
|
4166
4161
|
|
|
4167
4162
|
const SideBarLayout = ({ content }) => {
|
|
@@ -4574,20 +4569,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4574
4569
|
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: " ",
|
|
4575
4570
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4576
4571
|
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4577
|
-
label: label, "data-control": "text", "data-lead-control":
|
|
4572
|
+
label: label, "data-control": "text", "data-lead-control": name, "data-is-required": required, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value), { name: value }))));
|
|
4578
4573
|
case 'NumberBlock':
|
|
4579
4574
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4580
4575
|
React__default.createElement(NumberInput$1, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: " ",
|
|
4581
4576
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4582
4577
|
// onChange={(e) => inputOnChange('number', e)}
|
|
4583
|
-
label: label, "data-control": "number", "data-lead-control": name, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4578
|
+
label: label, "data-control": "number", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4584
4579
|
case 'EmailBlock':
|
|
4585
4580
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4586
4581
|
React__default.createElement(TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4587
4582
|
// type="email"
|
|
4588
4583
|
placeholder: " ",
|
|
4589
4584
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4590
|
-
label: label, "data-control": "email", "data-lead-control": name, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4585
|
+
label: label, "data-control": "email", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4591
4586
|
case 'PhoneOtpBlock':
|
|
4592
4587
|
case 'WhatsappOtpBlock':
|
|
4593
4588
|
case 'ZaloOtpBlock':
|
|
@@ -4601,21 +4596,21 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4601
4596
|
React__default.createElement("div", { className: "mantine-Input-wrapper" },
|
|
4602
4597
|
React__default.createElement(Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: " ",
|
|
4603
4598
|
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4604
|
-
id: htmlForId, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name }, formPhoneInputWrapper))))));
|
|
4599
|
+
id: htmlForId, defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name, "data-is-required": required }, formPhoneInputWrapper))))));
|
|
4605
4600
|
}
|
|
4606
4601
|
case 'LocationBlock': {
|
|
4607
4602
|
return (React__default.createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4608
|
-
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: " ", label: label, "data-control": "text", "data-lead-control": name, locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4603
|
+
React__default.createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: " ", label: label, "data-control": "text", "data-lead-control": name, "data-is-required": required, locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4609
4604
|
}
|
|
4610
4605
|
case 'DateBlock': {
|
|
4611
4606
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = __rest(_c, ["error"]);
|
|
4612
4607
|
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" },
|
|
4613
|
-
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))));
|
|
4608
|
+
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, "data-is-required": required, className: "leadgen-form_field_date", labelTuples: labelTuples }, formInputProps))));
|
|
4614
4609
|
}
|
|
4615
4610
|
case 'LinkButtonBlock':
|
|
4616
4611
|
return (React__default.createElement("div", { key: index },
|
|
4617
4612
|
React__default.createElement("a", { target: newtab ? 'blank' : 'parrent', href: url, style: { textDecoration: 'none' } },
|
|
4618
|
-
React__default.createElement(Button
|
|
4613
|
+
React__default.createElement(Button, { type: "button", size: "md", className: `lead-modal__btn ${LEAD_CLASS}`, onClick: () => {
|
|
4619
4614
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
4620
4615
|
onOtherSubmit === null || onOtherSubmit === void 0 ? void 0 : onOtherSubmit();
|
|
4621
4616
|
} }, value))));
|
|
@@ -4633,7 +4628,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4633
4628
|
gap: 8,
|
|
4634
4629
|
}, inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4635
4630
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4636
|
-
} }, 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 }))))));
|
|
4631
|
+
} }, 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, "data-is-required": required }))))));
|
|
4637
4632
|
case 'RadioBlock':
|
|
4638
4633
|
return (React__default.createElement(ChoiceField, { className: "leadgen-form_radio", key: index },
|
|
4639
4634
|
isSendMailChimp && (React__default.createElement(Input$1, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
@@ -4641,10 +4636,10 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4641
4636
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4642
4637
|
label: label, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4643
4638
|
return (React__default.createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4644
|
-
} }, 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 }))))));
|
|
4639
|
+
} }, 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, "data-is-required": required }))))));
|
|
4645
4640
|
case 'DropdownBlock':
|
|
4646
4641
|
return (React__default.createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field DropdownBlock", key: index },
|
|
4647
|
-
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown', "data-lead-control": name }),
|
|
4642
|
+
React__default.createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown', "data-lead-control": name, "data-is-required": required }),
|
|
4648
4643
|
React__default.createElement(Select
|
|
4649
4644
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4650
4645
|
, Object.assign({
|
|
@@ -4678,7 +4673,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4678
4673
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = __rest(_d, ["error"]);
|
|
4679
4674
|
return (React__default.createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
4680
4675
|
React__default.createElement(Input$1.Wrapper, { error: error },
|
|
4681
|
-
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)))));
|
|
4676
|
+
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, "data-is-required": required }, tncInputProps)))));
|
|
4682
4677
|
}
|
|
4683
4678
|
return null;
|
|
4684
4679
|
})));
|
|
@@ -4928,7 +4923,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4928
4923
|
];
|
|
4929
4924
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4930
4925
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
4931
|
-
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
|
|
4926
|
+
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
|
|
4932
4927
|
var _a, _b;
|
|
4933
4928
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
4934
4929
|
const { isMobile } = useScreenSize();
|
|
@@ -4991,6 +4986,13 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4991
4986
|
userInfo,
|
|
4992
4987
|
format: (_a = (ISO_FORMAT[locale] || ISO_FORMAT['vi-VN'])) === null || _a === void 0 ? void 0 : _a.dateFormat,
|
|
4993
4988
|
});
|
|
4989
|
+
const handleDoImpression = useCallback((type = 'impression') => doImpression({
|
|
4990
|
+
formValues: form.values,
|
|
4991
|
+
formActiveTime: formActiveTime.current,
|
|
4992
|
+
formRef: formRef.current,
|
|
4993
|
+
listBlockAdded,
|
|
4994
|
+
type,
|
|
4995
|
+
}), [form]);
|
|
4994
4996
|
if (window.innerWidth < 769 &&
|
|
4995
4997
|
LEADGEN_LAYOUT_NOT_SHOW_IN_MOBILE.includes(currentLayout)) {
|
|
4996
4998
|
console.log('😎 Not show fullscreen, slider on mobile ');
|
|
@@ -5005,6 +5007,9 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5005
5007
|
}
|
|
5006
5008
|
clearCacheUsedEmailOrPhone();
|
|
5007
5009
|
}, []);
|
|
5010
|
+
useEffect(() => {
|
|
5011
|
+
(isLightBox || isSlider) && handleDoImpression();
|
|
5012
|
+
}, []);
|
|
5008
5013
|
useEffect(() => {
|
|
5009
5014
|
formRef.current && setLastFormRef(formRef.current);
|
|
5010
5015
|
}, [formRef.current]);
|
|
@@ -5145,13 +5150,19 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5145
5150
|
disabledButtonSubmit,
|
|
5146
5151
|
(_b = actionBlocks === null || actionBlocks === void 0 ? void 0 : actionBlocks.submitBlock) === null || _b === void 0 ? void 0 : _b.isHide,
|
|
5147
5152
|
]);
|
|
5153
|
+
const [btnLinkLoading, setbtnLinkLoading] = useState(false);
|
|
5148
5154
|
const LinkButtonBlock = listBlockAdded.filter(({ name }) => name == LEADGEN_BLOCK.LinkButtonBlock);
|
|
5149
5155
|
const ButtonLink = !!(LinkButtonBlock === null || LinkButtonBlock === void 0 ? void 0 : LinkButtonBlock.length) && (React__default.createElement(React__default.Fragment, null, LinkButtonBlock.map((item, index) => {
|
|
5150
5156
|
var _a, _b, _c;
|
|
5151
|
-
return (React__default.createElement(Button$1, { key: `${item.name}-${index}`, component: "a", href: (_a = item === null || item === void 0 ? void 0 : item.data) === null || _a === void 0 ? void 0 : _a.url, target: ((_b = item === null || item === void 0 ? void 0 : item.data) === null || _b === void 0 ? void 0 : _b.newtab) ? '_blank' : undefined, size: "lg", variant: "filled", className: "leadgen-btn leadgen-btn_action", color: primaryColor, onClick: () => {
|
|
5157
|
+
return (React__default.createElement(Button$1, { key: `${item.name}-${index}`, component: "a", href: (_a = item === null || item === void 0 ? void 0 : item.data) === null || _a === void 0 ? void 0 : _a.url, target: ((_b = item === null || item === void 0 ? void 0 : item.data) === null || _b === void 0 ? void 0 : _b.newtab) ? '_blank' : undefined, size: "lg", variant: "filled", className: "leadgen-btn leadgen-btn_action", color: primaryColor, loading: btnLinkLoading, onClick: (e) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5158
|
+
var _d, _e;
|
|
5159
|
+
e.preventDefault();
|
|
5152
5160
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
5161
|
+
setbtnLinkLoading(true);
|
|
5162
|
+
yield handleDoImpression('redirects');
|
|
5153
5163
|
onOtherSubmit === null || onOtherSubmit === void 0 ? void 0 : onOtherSubmit();
|
|
5154
|
-
|
|
5164
|
+
window.open((_d = item === null || item === void 0 ? void 0 : item.data) === null || _d === void 0 ? void 0 : _d.url, ((_e = item === null || item === void 0 ? void 0 : item.data) === null || _e === void 0 ? void 0 : _e.newtab) ? '_blank' : undefined);
|
|
5165
|
+
}) }, (_c = item === null || item === void 0 ? void 0 : item.data) === null || _c === void 0 ? void 0 : _c.value));
|
|
5155
5166
|
})));
|
|
5156
5167
|
const PopupHeader = showHeader && (React__default.createElement("header", { className: clsx('leadgen-header', { 'leadgen-header_only': onlyHeader }) }, LEADGEN_SHOW_HEADER.includes(currentLayout) ? (React__default.createElement(HeaderImage, { src: imageMobile, className: "lead-modal__image" })) : (React__default.createElement(React__default.Fragment, null,
|
|
5157
5168
|
React__default.createElement(HeaderImage, { src: imageDesktop, className: "le-only-desktop lead-modal__image" }),
|
|
@@ -5224,7 +5235,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5224
5235
|
return React__default.createElement(SideBarLayout, { content: PopupContainer });
|
|
5225
5236
|
}
|
|
5226
5237
|
else if (isInline) {
|
|
5227
|
-
return (React__default.createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition }));
|
|
5238
|
+
return (React__default.createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: () => handleDoImpression() }));
|
|
5228
5239
|
}
|
|
5229
5240
|
return null;
|
|
5230
5241
|
};
|
|
@@ -5317,26 +5328,9 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
|
|
|
5317
5328
|
return null;
|
|
5318
5329
|
}
|
|
5319
5330
|
}
|
|
5320
|
-
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5331
|
+
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5321
5332
|
var _a, _b;
|
|
5322
5333
|
const { apiUrl, siteDomain } = useContext(LeadGenContext$1);
|
|
5323
|
-
useEffect(() => {
|
|
5324
|
-
const gaCookie = getCookie('_ga') || null;
|
|
5325
|
-
!currentLayout.includes('Inline') &&
|
|
5326
|
-
fetch(`${apiUrl}api/campaign/${code}/impression`, {
|
|
5327
|
-
method: 'POST',
|
|
5328
|
-
headers: {
|
|
5329
|
-
'Content-Type': 'application/json',
|
|
5330
|
-
},
|
|
5331
|
-
body: JSON.stringify({
|
|
5332
|
-
action,
|
|
5333
|
-
url: location.href.toLowerCase(),
|
|
5334
|
-
title_article: document.title,
|
|
5335
|
-
cookie_id: getCookie('hhg-id'),
|
|
5336
|
-
ga_client_id: gaCookie,
|
|
5337
|
-
}),
|
|
5338
|
-
});
|
|
5339
|
-
}, []);
|
|
5340
5334
|
const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
|
|
5341
5335
|
const { currentLayout } = extra_fields;
|
|
5342
5336
|
const imageBlocks = extra_fields.imageBlocks
|
|
@@ -5424,7 +5418,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, showThan
|
|
|
5424
5418
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
5425
5419
|
};
|
|
5426
5420
|
if (currentLayout === 'CenterTab') {
|
|
5427
|
-
return (React__default.createElement(CenterTabLayout, { popupId: popupIdRef.current, url: imageBlocks.imageMobile.data.url, newTab: imageBlocks.imageMobile.data.newtab, imageMobile: image, imageDestkop: image_desktop, onClose: onClose, onOtherSubmit: onOtherSubmit }));
|
|
5421
|
+
return (React__default.createElement(CenterTabLayout, { popupId: popupIdRef.current, url: imageBlocks.imageMobile.data.url, newTab: imageBlocks.imageMobile.data.newtab, imageMobile: image, imageDestkop: image_desktop, onClose: onClose, onOtherSubmit: onOtherSubmit, doImpression: doImpression }));
|
|
5428
5422
|
}
|
|
5429
5423
|
else if (currentLayout === 'Tab') {
|
|
5430
5424
|
return (React__default.createElement(TabLayout, { popupId: popupIdRef.current, url: imageBlocks.imageMobile.data.url, newTab: imageBlocks.imageMobile.data.newtab, image: image, onClose: onClose, onOtherSubmit: onOtherSubmit }));
|
|
@@ -5437,7 +5431,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, showThan
|
|
|
5437
5431
|
currentLayout == 'Fullscreen' ||
|
|
5438
5432
|
currentLayout == 'Sidebar' ||
|
|
5439
5433
|
currentLayout == 'Slider') {
|
|
5440
|
-
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, action: action }));
|
|
5434
|
+
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
|
|
5441
5435
|
}
|
|
5442
5436
|
else if (currentLayout.includes('Skin')) {
|
|
5443
5437
|
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 }));
|
|
@@ -5450,7 +5444,7 @@ const formatFormData = (currentForm, formData) => {
|
|
|
5450
5444
|
return Object.keys(formData)
|
|
5451
5445
|
.filter((key) => !!formData[key])
|
|
5452
5446
|
.map((name) => {
|
|
5453
|
-
var _a, _b, _c, _d;
|
|
5447
|
+
var _a, _b, _c, _d, _e, _f;
|
|
5454
5448
|
const value = String(formData[name]);
|
|
5455
5449
|
const control = ((_a = currentForm
|
|
5456
5450
|
.querySelector(`*[name="${name}"][data-control]`)) === null || _a === void 0 ? void 0 : _a.getAttribute('data-control')) ||
|
|
@@ -5462,6 +5456,11 @@ const formatFormData = (currentForm, formData) => {
|
|
|
5462
5456
|
((_d = currentForm
|
|
5463
5457
|
.querySelector(`*[data-extra][data-name="${name}"]`)) === null || _d === void 0 ? void 0 : _d.getAttribute('data-lead-control')) ||
|
|
5464
5458
|
'text';
|
|
5459
|
+
const isRequired = Boolean(((_e = currentForm
|
|
5460
|
+
.querySelector(`*[name="${name}"][data-is-required]`)) === null || _e === void 0 ? void 0 : _e.getAttribute('data-is-required')) ||
|
|
5461
|
+
((_f = currentForm
|
|
5462
|
+
.querySelector(`*[data-extra][data-name="${name}"]`)) === null || _f === void 0 ? void 0 : _f.getAttribute('data-is-required')) ||
|
|
5463
|
+
'text');
|
|
5465
5464
|
const formatedValue = control === 'tel'
|
|
5466
5465
|
? window.intlTelInputUtils
|
|
5467
5466
|
.formatNumber(String(value), LEAD_LOCALE === null || LEAD_LOCALE === void 0 ? void 0 : LEAD_LOCALE.countryCodeNumber, numberFormatType)
|
|
@@ -5474,6 +5473,7 @@ const formatFormData = (currentForm, formData) => {
|
|
|
5474
5473
|
value: formatedValue,
|
|
5475
5474
|
control,
|
|
5476
5475
|
leadControl,
|
|
5476
|
+
isRequired,
|
|
5477
5477
|
// is_sent_mailchimp: currentForm.querySelector(
|
|
5478
5478
|
// `div[data-name="${i.name}-mailchimp"]`,
|
|
5479
5479
|
// )
|
|
@@ -5504,6 +5504,7 @@ const formatTrackingData = (params) => {
|
|
|
5504
5504
|
field_name: control.key,
|
|
5505
5505
|
component_type: curLeadControl,
|
|
5506
5506
|
value: control.value,
|
|
5507
|
+
is_required: control.isRequired,
|
|
5507
5508
|
};
|
|
5508
5509
|
}
|
|
5509
5510
|
})
|
|
@@ -5513,6 +5514,7 @@ const formatTrackingData = (params) => {
|
|
|
5513
5514
|
return {
|
|
5514
5515
|
field_name: item.data.value,
|
|
5515
5516
|
component_type: item.name,
|
|
5517
|
+
is_required: item.isRequired,
|
|
5516
5518
|
};
|
|
5517
5519
|
}
|
|
5518
5520
|
})
|
|
@@ -5604,6 +5606,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5604
5606
|
status: 'in_progress',
|
|
5605
5607
|
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5606
5608
|
total_fields: listBlockAdded.length,
|
|
5609
|
+
type: 'close',
|
|
5607
5610
|
},
|
|
5608
5611
|
currentLayout,
|
|
5609
5612
|
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
@@ -5627,6 +5630,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5627
5630
|
status: 'in_progress',
|
|
5628
5631
|
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5629
5632
|
total_fields: listBlockAdded.length,
|
|
5633
|
+
type: 'close',
|
|
5630
5634
|
},
|
|
5631
5635
|
currentLayout,
|
|
5632
5636
|
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
@@ -5634,6 +5638,29 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5634
5638
|
const blob = new Blob([JSON.stringify(data)], { type: 'application/json' });
|
|
5635
5639
|
navigator.sendBeacon(`${apiUrl}api/collection/tracking-completion`, blob);
|
|
5636
5640
|
});
|
|
5641
|
+
const doImpression = (params) => {
|
|
5642
|
+
const { listBlockAdded = [] } = params || {};
|
|
5643
|
+
const data = formatTrackingData({
|
|
5644
|
+
commonData: {
|
|
5645
|
+
cookie_id: getCookie('hhg-id'),
|
|
5646
|
+
ga_client_id: getCookie('_ga') || null,
|
|
5647
|
+
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5648
|
+
status: 'in_progress',
|
|
5649
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5650
|
+
total_fields: listBlockAdded.length,
|
|
5651
|
+
type: 'impression',
|
|
5652
|
+
},
|
|
5653
|
+
currentLayout,
|
|
5654
|
+
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: [] }),
|
|
5655
|
+
});
|
|
5656
|
+
return fetch(`${apiUrl}api/collection/tracking-completion`, {
|
|
5657
|
+
method: 'POST',
|
|
5658
|
+
headers: {
|
|
5659
|
+
'Content-Type': 'application/json',
|
|
5660
|
+
},
|
|
5661
|
+
body: JSON.stringify(data),
|
|
5662
|
+
});
|
|
5663
|
+
};
|
|
5637
5664
|
useEffect(() => {
|
|
5638
5665
|
if (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code)
|
|
5639
5666
|
return;
|
|
@@ -5740,7 +5767,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5740
5767
|
}),
|
|
5741
5768
|
listBlockAdded.length > 0 &&
|
|
5742
5769
|
trackingCompletionForm({
|
|
5743
|
-
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 }),
|
|
5770
|
+
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, type: 'submit_form' }),
|
|
5744
5771
|
currentLayout,
|
|
5745
5772
|
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatedFormData }),
|
|
5746
5773
|
}),
|
|
@@ -5843,7 +5870,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5843
5870
|
!!currentLayout &&
|
|
5844
5871
|
!currentLayout.includes('Inline') &&
|
|
5845
5872
|
!currentLayout.includes('Sidebar') && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5846
|
-
React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5873
|
+
React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5847
5874
|
})))))));
|
|
5848
5875
|
};
|
|
5849
5876
|
const LeadGen = _LeadGen;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { memo, useMemo } from 'react';
|
|
2
|
-
import { C as CommonGAssets } from './index-
|
|
3
|
-
import { I as ImageWrap } from './useScreenSize-
|
|
2
|
+
import { C as CommonGAssets } from './index-9459eff1.js';
|
|
3
|
+
import { I as ImageWrap } from './useScreenSize-19654a25.js';
|
|
4
4
|
|
|
5
5
|
const _LogoIcon = ({ type, width, height }) => {
|
|
6
6
|
const data = useMemo(() => {
|