@hhgtech/hhg-components 1.29.412-beta-8 → 1.29.413
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-6c6ebb31.js → InputDate-3b3443d5.js} +3 -3
- package/build/{LastPeriod-fc8cad02.js → LastPeriod-5cab8b13.js} +1 -1
- package/build/{MobileBottomNavigationIcon-c755f230.js → MobileBottomNavigationIcon-43f21847.js} +3 -3
- package/build/{Spinner-d3dcd745.js → Spinner-2f59daf3.js} +1 -1
- package/build/{WhatsApp-51b4f1d7.js → WhatsApp-2e375021.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +49 -49
- package/build/babyGrowth.js +84 -84
- 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 +98 -98
- package/build/{constants-131fb94f.js → constants-1e485a70.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-e1921356.js → core-ae6da2b2.js} +1 -1
- package/build/{dataTransform-26ea11d9.js → dataTransform-d57d9dff.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-feb723be.js → editor-858847e6.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/{InputDate-a5d849d3.js → InputDate-10321ce2.js} +3 -3
- package/build/esm/{LastPeriod-8d38c01d.js → LastPeriod-d1172b27.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-a5667a21.js → MobileBottomNavigationIcon-5ad017ef.js} +3 -3
- package/build/esm/{Spinner-8a66d20e.js → Spinner-f7f06e85.js} +1 -1
- package/build/esm/{WhatsApp-e1dfa8ff.js → WhatsApp-10e4b59b.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +49 -49
- package/build/esm/babyGrowth.js +84 -84
- 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 +98 -98
- package/build/esm/{constants-c21e031e.js → constants-963ae56f.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-6d0ad9c5.js → core-9a8235e4.js} +1 -1
- package/build/esm/{dataTransform-5067fd5c.js → dataTransform-dc6a21e7.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-13496dc6.js → editor-69425869.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/esm/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-f9e64cd4.js → healthTools-1a21b12d.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- 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-59cc220d.js → index-01d5c7d3.js} +1 -1
- package/build/esm/{index-75d1d017.js → index-074a166c.js} +2 -2
- package/build/esm/{index-737cabd1.js → index-09a4eb57.js} +13 -13
- package/build/esm/{index-3f85da9d.js → index-09d7c3b0.js} +10 -10
- package/build/esm/{index-634e2d44.js → index-0b3634d7.js} +22 -22
- package/build/esm/{index-a5c319fa.js → index-0dc401d6.js} +6 -6
- package/build/esm/{index-c4c4c97d.js → index-10beee7c.js} +13 -13
- package/build/esm/{index-f5b98bc9.js → index-12354707.js} +16 -16
- package/build/esm/{index-16f5d17b.js → index-15308963.js} +3 -3
- package/build/esm/{index-5fd31bc4.js → index-1a4f429f.js} +32 -32
- package/build/esm/{index-80b0a850.js → index-21bfbdb2.js} +2 -2
- package/build/esm/{index-03081934.js → index-2286e68a.js} +4 -4
- package/build/esm/{index-8ab7bb86.js → index-30ff6c50.js} +13 -13
- package/build/esm/{index-085d73d6.js → index-37267e2b.js} +2 -2
- package/build/esm/{index-68ae12de.js → index-3783248a.js} +3 -3
- package/build/esm/{index-59cdeb32.js → index-3b9c78cb.js} +3 -3
- package/build/esm/{index-409000de.js → index-3c0933c1.js} +2 -2
- package/build/esm/{index-459c447f.js → index-40b68d98.js} +41 -21
- package/build/esm/{index-63e05229.js → index-416f7db8.js} +4 -4
- package/build/esm/{index-8c3bb157.js → index-4215241c.js} +2 -2
- package/build/esm/{index-f2b248ca.js → index-4a4067f9.js} +7 -7
- package/build/esm/{index-f6825ee0.js → index-4b408044.js} +13 -13
- package/build/esm/{index-ff21a99f.js → index-55dd41e9.js} +5 -5
- package/build/esm/{index-f1cc26c3.js → index-5b1bd3d5.js} +6 -6
- package/build/esm/{index-735b60f8.js → index-5b4f0a8c.js} +1 -1
- package/build/esm/{index-0ebe8442.js → index-60a78641.js} +2 -2
- package/build/esm/{index-4e2e4e69.js → index-60d2f1ce.js} +3 -3
- package/build/esm/{index-80310216.js → index-62662de6.js} +2 -2
- package/build/esm/{index-f7cf4310.js → index-63e5ef79.js} +15 -15
- package/build/esm/{index-3fc65d8b.js → index-645d2dff.js} +1 -1
- package/build/esm/{index-6be392d2.js → index-64ed9d82.js} +5 -5
- package/build/esm/{index-2f6f4c5d.js → index-6a698aee.js} +3 -3
- package/build/esm/{index-a26b8a5f.js → index-6ab41b81.js} +3 -3
- package/build/esm/{index-d64eb06f.js → index-725dcbe8.js} +2 -2
- package/build/esm/{index-dafa0092.js → index-7bd6e7a9.js} +2 -2
- package/build/esm/{index-3f9bb12a.js → index-7d35a8d8.js} +17 -17
- package/build/esm/{index-623307f1.js → index-80a01c22.js} +30 -30
- package/build/esm/{index-2c8378d4.js → index-84f15d10.js} +6 -6
- package/build/esm/{index-476c5696.js → index-85b30b6e.js} +17 -17
- package/build/esm/{index-ced83c10.js → index-86f792fe.js} +6 -6
- package/build/esm/{index-7f20bb1a.js → index-8826ec34.js} +15 -15
- package/build/esm/{index-bc21db68.js → index-8f09b680.js} +16 -16
- package/build/esm/{index-985e9ebc.js → index-8f8de6e3.js} +17 -17
- package/build/esm/{index-32878534.js → index-97029355.js} +13 -13
- package/build/esm/{index-14b4cee5.js → index-9960902f.js} +3 -3
- package/build/esm/{index-4ccbd117.js → index-a5adfae1.js} +24 -24
- package/build/esm/{index-e0041c23.js → index-a6b7b8d0.js} +1 -1
- package/build/esm/{index-341ba580.js → index-abcb3534.js} +3 -3
- package/build/esm/{index-09ecfa6a.js → index-ae4606d1.js} +7 -7
- package/build/esm/{index-8e8c5a9e.js → index-b702de5f.js} +146 -183
- package/build/esm/{index-6dafd443.js → index-b830090f.js} +17 -17
- package/build/esm/{index-29772ba4.js → index-bb3d787e.js} +25 -25
- package/build/esm/{index-9ff0cf43.js → index-bc1dbe41.js} +2 -2
- package/build/esm/{index-2399a013.js → index-c1d5dcb6.js} +15 -15
- package/build/esm/{index-3b33b40f.js → index-c96990d7.js} +1 -1
- package/build/esm/{index-75fce3bb.js → index-cb3e9043.js} +1 -1
- package/build/esm/{index-979d2c03.js → index-cf82878a.js} +11 -11
- package/build/esm/{index-54389cf3.js → index-d7f3892a.js} +8 -8
- package/build/esm/{index-76afc39f.js → index-e8332e04.js} +6 -6
- package/build/esm/{index-4f8229cf.js → index-ec51c679.js} +2 -2
- package/build/esm/{index-10a95428.js → index-efbab58a.js} +2 -2
- package/build/esm/{index-cf5cb232.js → index-f8f14c59.js} +1 -1
- package/build/esm/{index-a4162648.js → index-f934f5f1.js} +2 -2
- package/build/esm/{index-f3cc5998.js → index-fb3df44b.js} +3 -3
- package/build/esm/{index-2642ce8e.js → index-fba58aa1.js} +13 -13
- package/build/esm/{index-a6801024.js → index-ff113681.js} +32 -32
- package/build/esm/{index-3f46807c.js → index-ff6e9582.js} +2 -2
- package/build/esm/{index-585d6722.js → index-ffd8a900.js} +1 -1
- package/build/esm/index.js +119 -119
- package/build/esm/{labelSorting-32f56bfc.js → labelSorting-0834b777.js} +4 -4
- package/build/esm/lead/LeadGen.helpers.d.ts +2 -2
- package/build/esm/lead/LeadGen.type.d.ts +0 -3
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +12 -19
- package/build/esm/lead/index.d.ts +1 -5
- package/build/esm/lead/layouts/inline.d.ts +2 -3
- package/build/esm/lead/layouts/lightbox/index.d.ts +1 -2
- package/build/esm/lead/newLeadPopup.d.ts +1 -2
- package/build/esm/lead/services/index.d.ts +0 -4
- package/build/esm/lead/utils.d.ts +0 -18
- package/build/esm/lead.js +310 -411
- package/build/esm/{logoIcon-c7fc9271.js → logoIcon-cc77df44.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc.js +18 -18
- 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 +75 -75
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +47 -47
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +27 -27
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +51 -51
- package/build/esm/{post-48cc796c.js → post-8361eda3.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/esm/ssoV2.js +41 -53
- package/build/esm/{store-8cd47c51.js → store-c778da5f.js} +3 -3
- package/build/esm/subot.js +37 -37
- package/build/esm/surveyOrPremiumBanner.js +34 -34
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-55274bd6.js → surveyThankyouCard-e94dce6e.js} +5 -5
- package/build/esm/together.js +57 -57
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +31 -31
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +52 -52
- package/build/esm/togetherMoleculesCardAuthor.js +29 -29
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +40 -40
- package/build/esm/togetherOrganisms.js +51 -51
- package/build/esm/togetherRichTextEditor.js +18 -18
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-612ea09c.js → translationsProvider-3ebf538c.js} +1 -1
- package/build/esm/{treePopoverMenu-6f668f38.js → treePopoverMenu-4285da5b.js} +19 -19
- package/build/esm/{types-a46b4f3f.js → types-df21b720.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-abc625ee.js → useCategory-26632e37.js} +5 -5
- package/build/esm/{useHealthToolCache-e17ad3b7.js → useHealthToolCache-4b607fc6.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-a4468628.js → usePlacesAutocomplete-1d8e67a7.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-000dd726.js → utils-1e9d7448.js} +5 -5
- package/build/esm/{utils-44f48240.js → utils-4c7de83b.js} +2 -2
- package/build/esm/{utils-a637805a.js → utils-b4ba8268.js} +3 -3
- package/build/esm/{utils-95958c71.js → utils-c342182a.js} +2 -2
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-3335b4e9.js → healthTools-7c7979dd.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-dc6b3909.js → index-00144aed.js} +3 -3
- package/build/{index-4a24e68e.js → index-0061b2ca.js} +32 -32
- package/build/{index-d3b6e6f7.js → index-04ac208c.js} +6 -6
- package/build/{index-3b98cb92.js → index-076d78b5.js} +1 -1
- package/build/{index-d24a0cf1.js → index-0d566362.js} +6 -6
- package/build/{index-40f1afe4.js → index-0f379286.js} +3 -3
- package/build/{index-b1492e9c.js → index-0f8690a7.js} +25 -25
- package/build/{index-97ad94dd.js → index-11c51c5b.js} +22 -22
- package/build/{index-d3b9cb34.js → index-1fbe06f4.js} +8 -8
- package/build/{index-73109c0b.js → index-1fe369de.js} +13 -13
- package/build/{index-fe0a4059.js → index-25274e37.js} +1 -1
- package/build/{index-ca7f9fd1.js → index-27e63625.js} +17 -17
- package/build/{index-8c9b0d6c.js → index-2e0c2d5b.js} +13 -13
- package/build/{index-ae748b6c.js → index-31ba4f00.js} +2 -2
- package/build/{index-66e1cb05.js → index-349aeb3b.js} +7 -7
- package/build/{index-5d8c17ea.js → index-36ed4a81.js} +30 -30
- package/build/{index-182afb8b.js → index-3775f98f.js} +13 -13
- package/build/{index-aedf272b.js → index-37a56d84.js} +3 -3
- package/build/{index-e00b61ed.js → index-3f1d3420.js} +3 -3
- package/build/{index-563197e1.js → index-47481972.js} +4 -4
- package/build/{index-1ceb1779.js → index-4bd2782e.js} +2 -2
- package/build/{index-25b5f7aa.js → index-4c81156b.js} +2 -2
- package/build/{index-8b107f77.js → index-59c3e010.js} +10 -10
- package/build/{index-ac198134.js → index-5d29a18f.js} +16 -16
- package/build/{index-88ce40f2.js → index-60e67c05.js} +5 -5
- package/build/{index-eb21ceff.js → index-6647ec83.js} +41 -21
- package/build/{index-8ce571ff.js → index-6d47098b.js} +3 -3
- package/build/{index-4ee5b94a.js → index-7c941941.js} +32 -32
- package/build/{index-73054ceb.js → index-8179f250.js} +1 -1
- package/build/{index-d7cfbe60.js → index-82534326.js} +2 -2
- package/build/{index-7661433e.js → index-86c18fb9.js} +3 -3
- package/build/{index-22f50b45.js → index-97e86501.js} +3 -3
- package/build/{index-ba9dc8f8.js → index-98e55554.js} +1 -1
- package/build/{index-ced840f1.js → index-9bad2cc0.js} +6 -6
- package/build/{index-278250e7.js → index-9c8ce554.js} +2 -2
- package/build/{index-746b921f.js → index-a0f32bb8.js} +15 -15
- package/build/{index-0b54668c.js → index-a8c200e7.js} +13 -13
- package/build/{index-65499ee8.js → index-ab247efa.js} +17 -17
- package/build/{index-1d445b8d.js → index-abb626f5.js} +6 -6
- package/build/{index-dd5bd6d1.js → index-acd58702.js} +13 -13
- package/build/{index-36dc06ba.js → index-ae81d15d.js} +7 -7
- package/build/{index-08dfc17f.js → index-af22252f.js} +3 -3
- package/build/{index-d1fbaed6.js → index-b11d31a1.js} +17 -17
- package/build/{index-d3d8679b.js → index-b2994cce.js} +5 -5
- package/build/{index-c078f7b9.js → index-b2df9b85.js} +13 -13
- package/build/{index-f0883038.js → index-b8b3fe36.js} +2 -2
- package/build/{index-3392f4d3.js → index-b971c9ab.js} +4 -4
- package/build/{index-92d69e6f.js → index-bedaf7bf.js} +2 -2
- package/build/{index-1de1f468.js → index-c2bcf48e.js} +11 -11
- package/build/{index-2e7f4b7f.js → index-c40094b8.js} +24 -24
- package/build/{index-ffe1d9b2.js → index-d1878827.js} +3 -3
- package/build/{index-bb398810.js → index-d19b5d14.js} +2 -2
- package/build/{index-a49b6f4c.js → index-d913e14f.js} +2 -2
- package/build/{index-d1f92334.js → index-d9af315e.js} +6 -6
- package/build/{index-aef4b94a.js → index-daff4cdf.js} +1 -1
- package/build/{index-ff5a2d68.js → index-df2966a1.js} +2 -2
- package/build/{index-f351f8e9.js → index-df348b95.js} +2 -2
- package/build/{index-11ff5438.js → index-e14e7423.js} +1 -1
- package/build/{index-7375af23.js → index-e46e6749.js} +2 -2
- package/build/{index-e5e94b39.js → index-e53243c0.js} +16 -16
- package/build/{index-a8d87b93.js → index-e5636945.js} +146 -183
- package/build/{index-98b21ed8.js → index-e99a9fee.js} +2 -2
- package/build/{index-04392321.js → index-eacefc40.js} +1 -1
- package/build/{index-7e50fa55.js → index-f01cffd3.js} +2 -2
- package/build/{index-085e4e78.js → index-f15202c3.js} +15 -15
- package/build/{index-14902d49.js → index-f4503547.js} +15 -15
- package/build/{index-aad461ef.js → index-f645df94.js} +1 -1
- package/build/{index-e52af98d.js → index-fc5c3e3e.js} +17 -17
- package/build/index.js +119 -119
- package/build/{labelSorting-dfb3fa81.js → labelSorting-119075e3.js} +4 -4
- package/build/lead/LeadGen.helpers.d.ts +2 -2
- package/build/lead/LeadGen.type.d.ts +0 -3
- package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +12 -19
- package/build/lead/index.d.ts +1 -5
- package/build/lead/layouts/inline.d.ts +2 -3
- package/build/lead/layouts/lightbox/index.d.ts +1 -2
- package/build/lead/newLeadPopup.d.ts +1 -2
- package/build/lead/services/index.d.ts +0 -4
- package/build/lead/utils.d.ts +0 -18
- package/build/lead.js +308 -411
- package/build/{logoIcon-936f2572.js → logoIcon-13d79ea4.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc.js +18 -18
- 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 +75 -75
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +47 -47
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +27 -27
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +51 -51
- package/build/{post-baf676b8.js → post-80893856.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/ssoV2.js +39 -51
- package/build/{store-f55d7076.js → store-fb7b74be.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-400477aa.js → surveyThankyouCard-459771d7.js} +5 -5
- package/build/together.js +57 -57
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +31 -31
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +52 -52
- package/build/togetherMoleculesCardAuthor.js +29 -29
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +40 -40
- package/build/togetherOrganisms.js +51 -51
- package/build/togetherRichTextEditor.js +18 -18
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-122a086f.js → translationsProvider-16beacfa.js} +1 -1
- package/build/{treePopoverMenu-f931909a.js → treePopoverMenu-bc5ce43d.js} +19 -19
- package/build/{types-c0048144.js → types-86be4a34.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-16f5dd2f.js → useCategory-d36a8a5a.js} +5 -5
- package/build/{useHealthToolCache-cd87c34b.js → useHealthToolCache-b1cebe1e.js} +1 -1
- package/build/{usePlacesAutocomplete-bd1a84ed.js → usePlacesAutocomplete-796ccf6d.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-0bc8fe4d.js → utils-1c9bd3de.js} +2 -2
- package/build/{utils-a5468e63.js → utils-4fbe2e9b.js} +3 -3
- package/build/{utils-00eb4d03.js → utils-60687ead.js} +2 -2
- package/build/{utils-45b89526.js → utils-b736cb8f.js} +5 -5
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/components/mantine/checkbox/index.styles.d.ts +0 -16
- package/build/components/mantine/radio/index.styles.d.ts +0 -15
- package/build/esm/components/mantine/checkbox/index.styles.d.ts +0 -16
- package/build/esm/components/mantine/radio/index.styles.d.ts +0 -15
- package/build/esm/lead/LeadGenInline/LeadGenInline.d.ts +0 -8
- package/build/esm/lead/LeadGenInline/index.d.ts +0 -2
- package/build/esm/lead/services/index.type.d.ts +0 -5
- package/build/esm/misc/cachedSystem.d.ts +0 -5
- package/build/lead/LeadGenInline/LeadGenInline.d.ts +0 -8
- package/build/lead/LeadGenInline/index.d.ts +0 -2
- package/build/lead/services/index.type.d.ts +0 -5
- package/build/misc/cachedSystem.d.ts +0 -5
- /package/build/{BMI_BOYS.percentile.monthly-899879ce.js → BMI_BOYS.percentile.monthly-9b7a2b78.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-dfc590c1.js → BMI_BOYS.percentile.weekly-96305c2a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-e840108a.js → BMI_BOYS.percentile.yearly-caa0c3b1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-32f5513b.js → BMI_BOYS.zscore.monthly-5ab24053.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-f00068a0.js → BMI_BOYS.zscore.weekly-4110a92d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-dc0486bb.js → BMI_BOYS.zscore.yearly-d960fd31.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-9d61e9ea.js → BMI_GIRLS.percentile.monthly-a4f1d386.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-3a9bdeac.js → BMI_GIRLS.percentile.weekly-23768f9b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-06f45575.js → BMI_GIRLS.percentile.yearly-2c01fc3b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-15da5120.js → BMI_GIRLS.zscore.monthly-08792957.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-f769abb9.js → BMI_GIRLS.zscore.weekly-6dd2e45a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-b22a697e.js → BMI_GIRLS.zscore.yearly-aa748f43.js} +0 -0
- /package/build/{ChevronDown-f7818eb9.js → ChevronDown-f96088fe.js} +0 -0
- /package/build/{Close-b41a2e8b.js → Close-3e78128a.js} +0 -0
- /package/build/{Google-035f0841.js → Google-76de486c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-13e88c12.js → HEAD CIRCUM_BOYS.percentile.monthly-c4aa2118.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-09f202f5.js → HEAD CIRCUM_BOYS.percentile.weekly-fcfb9197.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-1dd10752.js → HEAD CIRCUM_BOYS.percentile.yearly-77a01c1f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-89dc64bc.js → HEAD CIRCUM_BOYS.zscore.monthly-9dfd0d50.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b63f7720.js → HEAD CIRCUM_BOYS.zscore.weekly-d681750a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0acbaa7c.js → HEAD CIRCUM_BOYS.zscore.yearly-2ca5011f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-9aaf8473.js → HEAD CIRCUM_GIRLS.percentile.monthly-eb78d394.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-23b6a710.js → HEAD CIRCUM_GIRLS.percentile.weekly-8909aa7b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c609c2e9.js → HEAD CIRCUM_GIRLS.percentile.yearly-3298e290.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-960d4731.js → HEAD CIRCUM_GIRLS.zscore.monthly-b75c30e8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-ecc88970.js → HEAD CIRCUM_GIRLS.zscore.weekly-c49a4b82.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-82e3b7be.js → HEAD CIRCUM_GIRLS.zscore.yearly-2da8a2b1.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-8875db87.js → HEIGHT_BOYS.percentile.monthly-73ca409c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-651a2b5d.js → HEIGHT_BOYS.percentile.weekly-1ebda785.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-8373e03c.js → HEIGHT_BOYS.percentile.yearly-2a509058.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-6baabf8d.js → HEIGHT_BOYS.zscore.monthly-555c8a43.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-88a204f0.js → HEIGHT_BOYS.zscore.weekly-c0cb9f95.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-81a48a65.js → HEIGHT_BOYS.zscore.yearly-d0c4d7d0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-efd68201.js → HEIGHT_GIRLS.percentile.monthly-06530ada.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-dd6cc74d.js → HEIGHT_GIRLS.percentile.weekly-2e88488c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-f09b6235.js → HEIGHT_GIRLS.percentile.yearly-5bd14c2b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-61cf1863.js → HEIGHT_GIRLS.zscore.monthly-e326022b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-e3542759.js → HEIGHT_GIRLS.zscore.weekly-5fba4f55.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-44d467f2.js → HEIGHT_GIRLS.zscore.yearly-2a46691f.js} +0 -0
- /package/build/{Locale-ef55c16b.js → Locale-0cf4ef33.js} +0 -0
- /package/build/{Visible-98a4d791.js → Visible-88cb1247.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-281bacec.js → WEIGHT_BOYS.percentile.monthly-ff6a7678.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-13cab054.js → WEIGHT_BOYS.percentile.weekly-eb6212c8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-7b077ec3.js → WEIGHT_BOYS.percentile.yearly-298d7225.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-951b0af7.js → WEIGHT_BOYS.zscore.monthly-21e5d70d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-2e3ba4f0.js → WEIGHT_BOYS.zscore.weekly-2e9d562d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-59cbdf73.js → WEIGHT_BOYS.zscore.yearly-67670041.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-43562ebf.js → WEIGHT_GIRLS.percentile.monthly-8f2aee08.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-d370a594.js → WEIGHT_GIRLS.percentile.weekly-a8f30313.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-e4aacb08.js → WEIGHT_GIRLS.percentile.yearly-5af24aa4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-c8952b8d.js → WEIGHT_GIRLS.zscore.monthly-fdd95600.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-518a2754.js → WEIGHT_GIRLS.zscore.weekly-76f5c2af.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-e5347a1c.js → WEIGHT_GIRLS.zscore.yearly-a76150cf.js} +0 -0
- /package/build/{animation-9065e5af.js → animation-bc3fdfd6.js} +0 -0
- /package/build/{constants-5eff4fe0.js → constants-324abbca.js} +0 -0
- /package/build/{constants-7b3371e7.js → constants-4a2f642d.js} +0 -0
- /package/build/{constants-01156702.js → constants-9bb14bc5.js} +0 -0
- /package/build/{dataTransform-49595c9c.js → dataTransform-eba5fb0f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-3528f5fd.js → BMI_BOYS.percentile.monthly-eed3e422.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-caa444a6.js → BMI_BOYS.percentile.weekly-c420da11.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-e77400ce.js → BMI_BOYS.percentile.yearly-3419e507.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-4ca65742.js → BMI_BOYS.zscore.monthly-955a610a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-71172ebc.js → BMI_BOYS.zscore.weekly-997eb290.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-f6a9ef54.js → BMI_BOYS.zscore.yearly-102c102b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-67950d52.js → BMI_GIRLS.percentile.monthly-016b56dc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-e7bc6afe.js → BMI_GIRLS.percentile.weekly-e7cae23b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-f8e2d904.js → BMI_GIRLS.percentile.yearly-f6687f86.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-58e2be1d.js → BMI_GIRLS.zscore.monthly-fb983b2f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-d5aa7413.js → BMI_GIRLS.zscore.weekly-c15f1bf6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-927fe969.js → BMI_GIRLS.zscore.yearly-6d9c01cc.js} +0 -0
- /package/build/esm/{ChevronDown-c37f2a70.js → ChevronDown-9995d667.js} +0 -0
- /package/build/esm/{Close-4c0472f1.js → Close-d91cfc66.js} +0 -0
- /package/build/esm/{Google-afa995f2.js → Google-6d1809d2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-e29d440c.js → HEAD CIRCUM_BOYS.percentile.monthly-78366b0c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-fd15d8b2.js → HEAD CIRCUM_BOYS.percentile.weekly-9f381e19.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f1db02f1.js → HEAD CIRCUM_BOYS.percentile.yearly-cf4f528d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c77d9773.js → HEAD CIRCUM_BOYS.zscore.monthly-0fb9b03d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-30157017.js → HEAD CIRCUM_BOYS.zscore.weekly-e1d5673e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e034e1df.js → HEAD CIRCUM_BOYS.zscore.yearly-bf1a885f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1e17c5da.js → HEAD CIRCUM_GIRLS.percentile.monthly-9b82cf67.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e8600a9f.js → HEAD CIRCUM_GIRLS.percentile.weekly-5b368864.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-42562710.js → HEAD CIRCUM_GIRLS.percentile.yearly-f4a5c1e4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-f32ea83e.js → HEAD CIRCUM_GIRLS.zscore.monthly-f0aab0e4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-503760e7.js → HEAD CIRCUM_GIRLS.zscore.weekly-b330180f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b664c4fb.js → HEAD CIRCUM_GIRLS.zscore.yearly-36077b15.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-28b4ba71.js → HEIGHT_BOYS.percentile.monthly-1ecdd7b1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1357b218.js → HEIGHT_BOYS.percentile.weekly-60c072a1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-40ec2963.js → HEIGHT_BOYS.percentile.yearly-fa78754d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a94a821b.js → HEIGHT_BOYS.zscore.monthly-af8b22cc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-0892910f.js → HEIGHT_BOYS.zscore.weekly-896c274a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3e990ff5.js → HEIGHT_BOYS.zscore.yearly-24ad9700.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-aa305c0c.js → HEIGHT_GIRLS.percentile.monthly-1a9a7705.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-6197a217.js → HEIGHT_GIRLS.percentile.weekly-1deb2eff.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ff1a4040.js → HEIGHT_GIRLS.percentile.yearly-fe191ba8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-5caa888c.js → HEIGHT_GIRLS.zscore.monthly-29100de5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-57dce66b.js → HEIGHT_GIRLS.zscore.weekly-ea6c8bd8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-2569c3ee.js → HEIGHT_GIRLS.zscore.yearly-b3739291.js} +0 -0
- /package/build/esm/{Locale-11cdb7de.js → Locale-c6602a1d.js} +0 -0
- /package/build/esm/{Visible-d50e3279.js → Visible-a3d0bc69.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-1ce4fe1a.js → WEIGHT_BOYS.percentile.monthly-4a643374.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-fdc4858e.js → WEIGHT_BOYS.percentile.weekly-dfb9b852.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-fed8b8c4.js → WEIGHT_BOYS.percentile.yearly-48546187.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-02faa503.js → WEIGHT_BOYS.zscore.monthly-45a40377.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8295da57.js → WEIGHT_BOYS.zscore.weekly-eb5ac698.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-bdf3211b.js → WEIGHT_BOYS.zscore.yearly-c87aba91.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-b6f65b67.js → WEIGHT_GIRLS.percentile.monthly-36e19b98.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-d090aaea.js → WEIGHT_GIRLS.percentile.weekly-eb2bcce6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bfd2acd7.js → WEIGHT_GIRLS.percentile.yearly-a6074520.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b71882f1.js → WEIGHT_GIRLS.zscore.monthly-44a1b487.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-ed671a89.js → WEIGHT_GIRLS.zscore.weekly-358d3c36.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-a5641095.js → WEIGHT_GIRLS.zscore.yearly-cf8543fc.js} +0 -0
- /package/build/esm/{animation-1e3258d7.js → animation-0f531fe5.js} +0 -0
- /package/build/esm/{constants-3dee60cc.js → constants-522b9ea7.js} +0 -0
- /package/build/esm/{constants-5ef0ba25.js → constants-e30aa64e.js} +0 -0
- /package/build/esm/{constants-193eefd7.js → constants-f9d731d3.js} +0 -0
- /package/build/esm/{dataTransform-b015b2a9.js → dataTransform-952fd6f5.js} +0 -0
- /package/build/esm/{index-a870f848.js → index-2306e61b.js} +0 -0
- /package/build/esm/{index-00992c0c.js → index-236b4486.js} +0 -0
- /package/build/esm/{index-d4b881e6.js → index-35f0b741.js} +0 -0
- /package/build/esm/{index-6f3e4010.js → index-3794729d.js} +0 -0
- /package/build/esm/{index-2475d562.js → index-49803a2e.js} +0 -0
- /package/build/esm/{index-8b2d0535.js → index-ceaa635b.js} +0 -0
- /package/build/esm/{index-77eaeab8.js → index-d5ab2b78.js} +0 -0
- /package/build/esm/{index-ccc32391.js → index-f22059a6.js} +0 -0
- /package/build/esm/{index.styles-166ce722.js → index.styles-15ba3038.js} +0 -0
- /package/build/esm/{localizeNumberFormat-25906ecc.js → localizeNumberFormat-38fe44d0.js} +0 -0
- /package/build/esm/{normalizeLink-3d605556.js → normalizeLink-384bc1f9.js} +0 -0
- /package/build/esm/{number-5db27ccb.js → number-5b350541.js} +0 -0
- /package/build/esm/{paths-ef91fe8c.js → paths-f9fb40fb.js} +0 -0
- /package/build/esm/{shared-ebc4437a.js → shared-fb21e1a4.js} +0 -0
- /package/build/esm/{text-be6e4aed.js → text-59a87359.js} +0 -0
- /package/build/esm/{translationsContext-5d78293a.js → translationsContext-686297cf.js} +0 -0
- /package/build/esm/{tslib.es6-11102b31.js → tslib.es6-b72daa1a.js} +0 -0
- /package/build/esm/{types-0a519ff0.js → types-b30100d5.js} +0 -0
- /package/build/esm/{useIsInit-01d537c6.js → useIsInit-747a23b6.js} +0 -0
- /package/build/esm/{useOutsideClick-488d4472.js → useOutsideClick-910d3203.js} +0 -0
- /package/build/esm/{useScrollbarSize-167aa808.js → useScrollbarSize-bad48069.js} +0 -0
- /package/build/esm/{useUniqueId-e97427dd.js → useUniqueId-fc5768de.js} +0 -0
- /package/build/esm/{utils-74bbb259.js → utils-153f2f04.js} +0 -0
- /package/build/{index-33e37ec9.js → index-03a1dfa5.js} +0 -0
- /package/build/{index-22b1489e.js → index-1fbf5b46.js} +0 -0
- /package/build/{index-4e523baf.js → index-38505499.js} +0 -0
- /package/build/{index-e2524af5.js → index-4e9754a8.js} +0 -0
- /package/build/{index-915961f2.js → index-503a6ee8.js} +0 -0
- /package/build/{index-75960180.js → index-52c1a8a8.js} +0 -0
- /package/build/{index-0aad059d.js → index-559721ac.js} +0 -0
- /package/build/{index-4cb33437.js → index-b409609f.js} +0 -0
- /package/build/{index.styles-b277d461.js → index.styles-90d0628e.js} +0 -0
- /package/build/{localizeNumberFormat-d272aabc.js → localizeNumberFormat-a9ab7ebd.js} +0 -0
- /package/build/{normalizeLink-0f0cdcfc.js → normalizeLink-b687d725.js} +0 -0
- /package/build/{number-d3b9063f.js → number-4fd75e51.js} +0 -0
- /package/build/{paths-1d82c2d4.js → paths-d0f7481b.js} +0 -0
- /package/build/{shared-12fecc1c.js → shared-4e37a3d0.js} +0 -0
- /package/build/{text-f49342fc.js → text-3e6acf61.js} +0 -0
- /package/build/{translationsContext-32bab3d5.js → translationsContext-ffa516bd.js} +0 -0
- /package/build/{tslib.es6-1410702e.js → tslib.es6-bd9d8302.js} +0 -0
- /package/build/{types-a3354f48.js → types-40508363.js} +0 -0
- /package/build/{useIsInit-52e88dbd.js → useIsInit-6ca9d3a9.js} +0 -0
- /package/build/{useOutsideClick-df37a945.js → useOutsideClick-e9d6129f.js} +0 -0
- /package/build/{useScrollbarSize-da5ef5ec.js → useScrollbarSize-490fdd2f.js} +0 -0
- /package/build/{useUniqueId-780302e8.js → useUniqueId-4f37ba5e.js} +0 -0
- /package/build/{utils-900cf77a.js → utils-28ea2538.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext,
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-b72daa1a.js';
|
|
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, useMantineTheme, 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-416f7db8.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-ffd8a900.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-686297cf.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-153f2f04.js';
|
|
12
|
+
import { T as Text } from './index-9960902f.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-b702de5f.js';
|
|
14
|
+
import { D as DatePicker } from './index-e8332e04.js';
|
|
15
|
+
import { B as Button } from './index-6ab41b81.js';
|
|
16
|
+
import './index.styles-15ba3038.js';
|
|
17
17
|
import { useIntersection, useClickOutside } from '@mantine/hooks';
|
|
18
|
-
import './index-
|
|
19
|
-
import { C as CustomStylesType } from './text-
|
|
20
|
-
import './index-
|
|
21
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
18
|
+
import './index-d7f3892a.js';
|
|
19
|
+
import { C as CustomStylesType } from './text-59a87359.js';
|
|
20
|
+
import './index-6a698aee.js';
|
|
21
|
+
import { M as MAPPED_LOCALE } from './utils-c342182a.js';
|
|
22
22
|
import { DateInput } from '@mantine/dates';
|
|
23
|
-
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-
|
|
24
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
25
|
-
import './index-
|
|
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-
|
|
23
|
+
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-ff6e9582.js';
|
|
24
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-cb3e9043.js';
|
|
25
|
+
import './index-3794729d.js';
|
|
26
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-1d8e67a7.js';
|
|
27
|
+
import { H as Heading$1 } from './index-f934f5f1.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-3ebf538c.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-c6602a1d.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 { M as MantineProvider } from './index-
|
|
38
|
-
import { i as isVideo } from './index-
|
|
39
|
-
import { u as useScreenSize } from './index-
|
|
36
|
+
import { T as TogetherComponentGlobalContext } from './utils-b4ba8268.js';
|
|
37
|
+
import { M as MantineProvider } from './index-60d2f1ce.js';
|
|
38
|
+
import { i as isVideo } from './index-236b4486.js';
|
|
39
|
+
import { u as useScreenSize } from './index-21bfbdb2.js';
|
|
40
40
|
import { motion } from 'framer-motion';
|
|
41
41
|
import { createPortal } from 'react-dom';
|
|
42
|
-
import { I as InputDate } from './InputDate-
|
|
43
|
-
import { D as DrawerComponent } from './index-
|
|
44
|
-
import { C as Close } from './Close-
|
|
42
|
+
import { I as InputDate } from './InputDate-10321ce2.js';
|
|
43
|
+
import { D as DrawerComponent } from './index-37267e2b.js';
|
|
44
|
+
import { C as Close } from './Close-d91cfc66.js';
|
|
45
45
|
import './constantsIsProduction.js';
|
|
46
|
-
import './normalizeLink-
|
|
46
|
+
import './normalizeLink-384bc1f9.js';
|
|
47
47
|
import '@hhgtech/icons/other';
|
|
48
48
|
import '@mantine/carousel';
|
|
49
49
|
import 'classnames';
|
|
50
|
-
import './useUniqueId-
|
|
50
|
+
import './useUniqueId-fc5768de.js';
|
|
51
51
|
import './constantsSite.js';
|
|
52
52
|
import '@hhgtech/icons/core';
|
|
53
|
-
import './shared-
|
|
53
|
+
import './shared-fb21e1a4.js';
|
|
54
54
|
import '@mantine/notifications';
|
|
55
55
|
import 'date-fns/locale';
|
|
56
56
|
import './constantsRiskScreener.js';
|
|
@@ -66,11 +66,11 @@ import './i18n-values/vi-VN.js';
|
|
|
66
66
|
import './i18n-values/vi-VN_MB.js';
|
|
67
67
|
import './i18n-values/zh-SG.js';
|
|
68
68
|
import './i18n-values/zh-TW.js';
|
|
69
|
-
import './index-
|
|
69
|
+
import './index-49803a2e.js';
|
|
70
70
|
import 'slugify';
|
|
71
71
|
import 'string-format';
|
|
72
72
|
import './togetherApiPaths.js';
|
|
73
|
-
import './constants-
|
|
73
|
+
import './constants-e30aa64e.js';
|
|
74
74
|
import 'vaul';
|
|
75
75
|
|
|
76
76
|
const LeadGenComponentContext = createContext({});
|
|
@@ -123,6 +123,33 @@ const LEADGEN_BLOCK_INPUT = [
|
|
|
123
123
|
LEADGEN_BLOCK.CheckboxBlock,
|
|
124
124
|
LEADGEN_BLOCK.TncBlock,
|
|
125
125
|
];
|
|
126
|
+
const leadGenFieldNamePhone = (listBlockAdded) => {
|
|
127
|
+
return listBlockAdded
|
|
128
|
+
.filter(({ name }) => [
|
|
129
|
+
LEADGEN_BLOCK.PhoneBlock,
|
|
130
|
+
LEADGEN_BLOCK.PhoneOtpBlock,
|
|
131
|
+
LEADGEN_BLOCK.WhatsappOtpBlock,
|
|
132
|
+
LEADGEN_BLOCK.ZaloOtpBlock,
|
|
133
|
+
].includes(name))
|
|
134
|
+
.map(({ data }) => data.value);
|
|
135
|
+
};
|
|
136
|
+
const leadGenFieldRequired = (blocks) => {
|
|
137
|
+
if (!(blocks === null || blocks === void 0 ? void 0 : blocks.length)) {
|
|
138
|
+
return [];
|
|
139
|
+
}
|
|
140
|
+
return blocks
|
|
141
|
+
.map(({ data, name, id }) => {
|
|
142
|
+
const { required, value } = data;
|
|
143
|
+
if (name === LEADGEN_BLOCK.TncBlock && id && required) {
|
|
144
|
+
return `TNC-${id}`;
|
|
145
|
+
}
|
|
146
|
+
if (required) {
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
return;
|
|
150
|
+
})
|
|
151
|
+
.filter(Boolean);
|
|
152
|
+
};
|
|
126
153
|
const SSO_MAP_LEAD = ['name', 'email', 'birthday', 'phone', 'gender'];
|
|
127
154
|
const LEAD_LOCALE_DATA$1 = {
|
|
128
155
|
'vi-VN': {
|
|
@@ -205,33 +232,6 @@ const mappingSSOToLead = (userInfoProps) => {
|
|
|
205
232
|
return;
|
|
206
233
|
}
|
|
207
234
|
};
|
|
208
|
-
const leadGenFieldNamePhone = (listBlockAdded) => {
|
|
209
|
-
return listBlockAdded
|
|
210
|
-
.filter(({ name }) => [
|
|
211
|
-
LEADGEN_BLOCK.PhoneBlock,
|
|
212
|
-
LEADGEN_BLOCK.PhoneOtpBlock,
|
|
213
|
-
LEADGEN_BLOCK.WhatsappOtpBlock,
|
|
214
|
-
LEADGEN_BLOCK.ZaloOtpBlock,
|
|
215
|
-
].includes(name))
|
|
216
|
-
.map(({ data }) => data.value);
|
|
217
|
-
};
|
|
218
|
-
const leadGenFieldRequired = (blocks) => {
|
|
219
|
-
if (!(blocks === null || blocks === void 0 ? void 0 : blocks.length)) {
|
|
220
|
-
return [];
|
|
221
|
-
}
|
|
222
|
-
return blocks
|
|
223
|
-
.map(({ data, name, id }) => {
|
|
224
|
-
const { required, value } = data;
|
|
225
|
-
if (name === LEADGEN_BLOCK.TncBlock && id && required) {
|
|
226
|
-
return `TNC-${id}`;
|
|
227
|
-
}
|
|
228
|
-
if (required) {
|
|
229
|
-
return value;
|
|
230
|
-
}
|
|
231
|
-
return;
|
|
232
|
-
})
|
|
233
|
-
.filter(Boolean);
|
|
234
|
-
};
|
|
235
235
|
const formatCampaignDetail = (campaign) => {
|
|
236
236
|
if (!campaign) {
|
|
237
237
|
return {};
|
|
@@ -378,55 +378,6 @@ const formatLeadGenFormValue = (values = {}, blocks) => {
|
|
|
378
378
|
return newValues;
|
|
379
379
|
};
|
|
380
380
|
|
|
381
|
-
const TIMEOUT = 30 * 60 * 1000;
|
|
382
|
-
const WAITING_FIRST_RESP = 'waitingTheFirstResponse';
|
|
383
|
-
const CachedSystem = {
|
|
384
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
385
|
-
cached: {},
|
|
386
|
-
clearCached: (prefix) => {
|
|
387
|
-
console.log(CachedSystem.cached);
|
|
388
|
-
Object.keys(CachedSystem.cached)
|
|
389
|
-
.filter((k) => k.startsWith(prefix))
|
|
390
|
-
.forEach((key) => {
|
|
391
|
-
console.log(key);
|
|
392
|
-
CachedSystem.cached[key] = undefined;
|
|
393
|
-
});
|
|
394
|
-
},
|
|
395
|
-
withCached: (key, fnResponse, timeout = TIMEOUT) => __awaiter(void 0, void 0, void 0, function* () {
|
|
396
|
-
if (CachedSystem.cached[key] === WAITING_FIRST_RESP) {
|
|
397
|
-
return new Promise((resolve) => {
|
|
398
|
-
const startDate = new Date().getTime();
|
|
399
|
-
const intervalId = setInterval(() => {
|
|
400
|
-
const currentDate = new Date().getTime();
|
|
401
|
-
if (currentDate - startDate > 3000) {
|
|
402
|
-
clearInterval(intervalId);
|
|
403
|
-
}
|
|
404
|
-
if (typeof CachedSystem.cached[key] === 'object') {
|
|
405
|
-
resolve(CachedSystem.cached[key]);
|
|
406
|
-
clearInterval(intervalId);
|
|
407
|
-
}
|
|
408
|
-
}, 100);
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
if (typeof CachedSystem.cached[key] === 'object') {
|
|
412
|
-
return CachedSystem.cached[key];
|
|
413
|
-
}
|
|
414
|
-
CachedSystem.cached[key] = 'waitingTheFirstResponse';
|
|
415
|
-
try {
|
|
416
|
-
const result = yield fnResponse();
|
|
417
|
-
CachedSystem.cached[key] = result;
|
|
418
|
-
setTimeout(() => {
|
|
419
|
-
CachedSystem.cached[key] = undefined;
|
|
420
|
-
}, timeout);
|
|
421
|
-
return result;
|
|
422
|
-
}
|
|
423
|
-
catch (err) {
|
|
424
|
-
CachedSystem.cached[key] = undefined;
|
|
425
|
-
return Promise.reject(err);
|
|
426
|
-
}
|
|
427
|
-
}),
|
|
428
|
-
};
|
|
429
|
-
|
|
430
381
|
class Store {
|
|
431
382
|
constructor() {
|
|
432
383
|
this.apiSsoUrl = 'https://staging-id.hellobacsi.com/';
|
|
@@ -436,8 +387,6 @@ class Store {
|
|
|
436
387
|
}
|
|
437
388
|
const leadStore = new Store();
|
|
438
389
|
|
|
439
|
-
const LEADGEN_CACHE_KEY = 'LeadGen_';
|
|
440
|
-
const LEADGEN_CACHE_TIME = 5 * 60 * 1000; // 5 minutes
|
|
441
390
|
const METHOD = {
|
|
442
391
|
GET: 'get',
|
|
443
392
|
POST: 'POST',
|
|
@@ -624,19 +573,7 @@ const trackingSubscription = (data) => {
|
|
|
624
573
|
data,
|
|
625
574
|
});
|
|
626
575
|
};
|
|
627
|
-
function getCampaigns({ url, siteId, apiLeadUrl, }) {
|
|
628
|
-
const ga_client_id = getCookie('_ga') || null;
|
|
629
|
-
const AS_PATH = `${apiLeadUrl || leadStore.apiLeadUrl}api/campaign/${siteId}`;
|
|
630
|
-
return CachedSystem.withCached(LEADGEN_CACHE_KEY + AS_PATH, () => fetch(AS_PATH, {
|
|
631
|
-
method: 'POST',
|
|
632
|
-
headers: { 'Content-Type': 'application/json' },
|
|
633
|
-
body: JSON.stringify({ url, ga_client_id }),
|
|
634
|
-
})
|
|
635
|
-
.then((res) => res.json())
|
|
636
|
-
.then(({ _data }) => (_data === null || _data === void 0 ? void 0 : _data.campaigns) || []), LEADGEN_CACHE_TIME);
|
|
637
|
-
}
|
|
638
576
|
const Service = {
|
|
639
|
-
getCampaigns,
|
|
640
577
|
campaignGetById,
|
|
641
578
|
getCampaignByCode,
|
|
642
579
|
getSubscriptionBoxInfo,
|
|
@@ -1689,6 +1626,12 @@ const getTranslations = (locale) => {
|
|
|
1689
1626
|
return translationsMap['en-PH'];
|
|
1690
1627
|
};
|
|
1691
1628
|
|
|
1629
|
+
const LeadGenTranslationProvider = (props) => {
|
|
1630
|
+
const { locale, children } = props;
|
|
1631
|
+
const translationContextValue = useMemo(() => ({ locale, values: getTranslations(locale) }), [locale]);
|
|
1632
|
+
return (React__default.createElement(TranslationsContext.Provider, { value: translationContextValue }, children));
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1692
1635
|
// import mockLeadData from './mockLeadData'
|
|
1693
1636
|
const listCampaignScheduled = [];
|
|
1694
1637
|
const listCampaignScheduledToActivated = [];
|
|
@@ -1864,167 +1807,167 @@ function clearPassiveEvent() {
|
|
|
1864
1807
|
LEAD_SCROLL_EVENT = null;
|
|
1865
1808
|
}
|
|
1866
1809
|
}
|
|
1867
|
-
function getCurrentCampaign({ campaigns = [], leadDomain, leadCurrentUrl, }) {
|
|
1868
|
-
if (!getCookie('hhg-id')) {
|
|
1869
|
-
setCookie('hhg-id', v1(), { domain: `.${leadDomain}`, path: '/' });
|
|
1870
|
-
LeadLog('😍 Set HHG ID cookie');
|
|
1871
|
-
}
|
|
1872
|
-
// TODO: HP-534 Filter desktop
|
|
1873
|
-
let campaignsDevice = [];
|
|
1874
|
-
if (isMobile()) {
|
|
1875
|
-
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
|
|
1876
|
-
}
|
|
1877
|
-
else {
|
|
1878
|
-
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
|
|
1879
|
-
}
|
|
1880
|
-
LeadLog(`👓 campaignsDevice`, campaignsDevice);
|
|
1881
|
-
LeadLog('--listCampaignScheduled', listCampaignScheduled);
|
|
1882
|
-
LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
|
|
1883
|
-
LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
|
|
1884
|
-
LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
|
|
1885
|
-
LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
|
|
1886
|
-
LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
|
|
1887
|
-
// Check links
|
|
1888
|
-
let listLinksObj = campaignsDevice
|
|
1889
|
-
.map((i, index) => i.targets
|
|
1890
|
-
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
|
|
1891
|
-
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
1892
|
-
.flat(1) || [];
|
|
1893
|
-
// Check list link match current href
|
|
1894
|
-
listLinksObj = listLinksObj.filter((i) => {
|
|
1895
|
-
var _a;
|
|
1896
|
-
const target = new URL(String(i.target).toLowerCase());
|
|
1897
|
-
if (i.option == 'exact_match')
|
|
1898
|
-
// FOR TEST LOCAL:
|
|
1899
|
-
// return Boolean(location.pathname === target.pathname)
|
|
1900
|
-
return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
|
|
1901
|
-
if (i.option == 'start_with') {
|
|
1902
|
-
// FOR TEST LOCAL:
|
|
1903
|
-
// if (location.pathname.includes(target.pathname)) {
|
|
1904
|
-
if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
|
|
1905
|
-
const listExcluding = i.sub_target
|
|
1906
|
-
.filter((i) => i.option == 'excluding')
|
|
1907
|
-
.map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
|
|
1908
|
-
return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
|
|
1909
|
-
}
|
|
1910
|
-
else {
|
|
1911
|
-
return false;
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1914
|
-
});
|
|
1915
|
-
// Check tags
|
|
1916
|
-
const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
|
|
1917
|
-
const listTags = listMetaTag.map((i) => i.content);
|
|
1918
|
-
let listCampaignHasTag = [];
|
|
1919
|
-
let listTagsObj = [];
|
|
1920
|
-
if (listTags && listTags.length) {
|
|
1921
|
-
listCampaignHasTag = campaignsDevice
|
|
1922
|
-
.map((i, index) => i.targets
|
|
1923
|
-
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
|
|
1924
|
-
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
1925
|
-
.flat(1);
|
|
1926
|
-
listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
|
|
1927
|
-
}
|
|
1928
|
-
const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
|
|
1929
|
-
const cookieKeys = document.cookie.split('; ').map((i) => i.split('=')[0]);
|
|
1930
|
-
const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
|
|
1931
|
-
LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
|
|
1932
|
-
const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
|
|
1933
|
-
LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
|
|
1934
|
-
const listCampaignSubmitedClosed = [
|
|
1935
|
-
...listCampaignCodeSubmited,
|
|
1936
|
-
...listCampaignCodeClosed,
|
|
1937
|
-
];
|
|
1938
|
-
const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
|
|
1939
|
-
const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
|
|
1940
|
-
return !hasSubmited;
|
|
1941
|
-
});
|
|
1942
|
-
const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
|
|
1943
|
-
// .sort(
|
|
1944
|
-
// (a, b) =>
|
|
1945
|
-
// (listCampaignValid[a.campaignIndex]?.score || 0) -
|
|
1946
|
-
// (listCampaignValid[b.campaignIndex]?.score || 0),
|
|
1947
|
-
// )
|
|
1948
|
-
LeadLog('--listCampaignValid : ', listCampaignValid);
|
|
1949
|
-
if (listCampaignValid && listCampaignValid.length) {
|
|
1950
|
-
const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
|
|
1951
|
-
return CAMPAIGN_SHOW;
|
|
1952
|
-
}
|
|
1953
|
-
else {
|
|
1954
|
-
LeadLog('🚧 No lead campaigns on current URL, tags');
|
|
1955
|
-
return null;
|
|
1956
|
-
}
|
|
1957
|
-
}
|
|
1958
|
-
function addEventShowCurrentCampaign({ campaign: CAMPAIGN_SHOW, onShowPopup, }) {
|
|
1959
|
-
var _a, _b;
|
|
1960
|
-
LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
|
|
1961
|
-
const { rules } = CAMPAIGN_SHOW;
|
|
1962
|
-
// CHECK RULE TRIGGER POPUP
|
|
1963
|
-
const timeoutRule = Number((_a = rules.find((i) => i.rule == 'time')) === null || _a === void 0 ? void 0 : _a.value);
|
|
1964
|
-
LeadLog(`timeoutRule`, timeoutRule);
|
|
1965
|
-
const scrollRule = Number((_b = rules.find((i) => i.rule == 'scroll')) === null || _b === void 0 ? void 0 : _b.value);
|
|
1966
|
-
LeadLog(`scrollRule`, scrollRule);
|
|
1967
|
-
let impressionAction = 'TIME';
|
|
1968
|
-
if (Number.isInteger(timeoutRule)) {
|
|
1969
|
-
impressionAction = 'TIME';
|
|
1970
|
-
LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
|
|
1971
|
-
timeoutRef = setTimeout(() => {
|
|
1972
|
-
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
1973
|
-
}, timeoutRule * 1000);
|
|
1974
|
-
return { campaign: CAMPAIGN_SHOW, action: impressionAction };
|
|
1975
|
-
}
|
|
1976
|
-
if (Number.isInteger(scrollRule)) {
|
|
1977
|
-
impressionAction = 'SCROLL';
|
|
1978
|
-
LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
|
|
1979
|
-
const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
|
|
1980
|
-
document.querySelector('body');
|
|
1981
|
-
const pct = $p.getBoundingClientRect().top;
|
|
1982
|
-
const pb = $p.offsetHeight;
|
|
1983
|
-
LeadLog(`👓 Element check scroll: `, $p);
|
|
1984
|
-
LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
|
|
1985
|
-
const wt = window.pageYOffset || document.documentElement.scrollTop;
|
|
1986
|
-
let percent = 0;
|
|
1987
|
-
if (wt >= pct) {
|
|
1988
|
-
percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
|
|
1989
|
-
}
|
|
1990
|
-
LeadLog('---Scroll', percent, scrollRule);
|
|
1991
|
-
// TODO: CHECK FOOTER HEIGHT
|
|
1992
|
-
if (percent >= scrollRule) {
|
|
1993
|
-
window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
|
|
1994
|
-
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
1995
|
-
}
|
|
1996
|
-
};
|
|
1997
|
-
window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
|
|
1998
|
-
passive: true,
|
|
1999
|
-
});
|
|
2000
|
-
}
|
|
2001
|
-
}
|
|
2002
1810
|
function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
|
|
2003
1811
|
// clear previous passive event, check for new condition
|
|
2004
1812
|
clearPassiveEvent();
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
1813
|
+
const leadCurrentUrl = DEBUG_URL ||
|
|
1814
|
+
('https://' +
|
|
1815
|
+
location.hostname +
|
|
1816
|
+
location.pathname +
|
|
1817
|
+
location.search).toLowerCase();
|
|
1818
|
+
fetch(leadApi + 'api/campaign/' + leadSiteId, {
|
|
1819
|
+
method: 'POST',
|
|
1820
|
+
headers: {
|
|
1821
|
+
'Content-Type': 'application/json',
|
|
1822
|
+
},
|
|
1823
|
+
body: JSON.stringify({
|
|
1824
|
+
url: leadCurrentUrl,
|
|
1825
|
+
ga_client_id: getCookie('_ga') || null,
|
|
1826
|
+
}),
|
|
1827
|
+
})
|
|
1828
|
+
.then((response) => {
|
|
1829
|
+
return response.json();
|
|
1830
|
+
// return mockLeadData || response.json()
|
|
2014
1831
|
})
|
|
2015
|
-
.then((
|
|
2016
|
-
|
|
1832
|
+
.then((data) => {
|
|
1833
|
+
var _a, _b, _c, _d;
|
|
1834
|
+
LeadLog('List campagin: ', data);
|
|
2017
1835
|
LEAD_RESET_VAR();
|
|
2018
|
-
|
|
2019
|
-
.filter(filterFnCampaign)
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
1836
|
+
if (data._status == 1) {
|
|
1837
|
+
const campaigns = (((_b = (_a = data._data) === null || _a === void 0 ? void 0 : _a.campaigns) === null || _b === void 0 ? void 0 : _b.filter(filterFnCampaign)) || []).filter(fillterApprearanceTimeCampaign);
|
|
1838
|
+
if (!getCookie('hhg-id')) {
|
|
1839
|
+
setCookie('hhg-id', v1(), {
|
|
1840
|
+
domain: '.' + leadDomain,
|
|
1841
|
+
path: '/',
|
|
1842
|
+
});
|
|
1843
|
+
LeadLog('😍 Set HHG ID cookie');
|
|
1844
|
+
}
|
|
1845
|
+
// getCookie('hhg-id')
|
|
1846
|
+
// TODO: HP-534 Filter desktop
|
|
1847
|
+
let campaignsDevice = [];
|
|
1848
|
+
if (isMobile()) {
|
|
1849
|
+
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
|
|
1850
|
+
}
|
|
1851
|
+
else {
|
|
1852
|
+
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
|
|
1853
|
+
}
|
|
1854
|
+
LeadLog(`👓 campaignsDevice`, campaignsDevice);
|
|
1855
|
+
LeadLog('--listCampaignScheduled', listCampaignScheduled);
|
|
1856
|
+
LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
|
|
1857
|
+
LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
|
|
1858
|
+
LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
|
|
1859
|
+
LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
|
|
1860
|
+
LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
|
|
1861
|
+
// Check links
|
|
1862
|
+
let listLinksObj = campaignsDevice
|
|
1863
|
+
.map((i, index) => i.targets
|
|
1864
|
+
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
|
|
1865
|
+
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
1866
|
+
.flat(1);
|
|
1867
|
+
// Check list link match current href
|
|
1868
|
+
listLinksObj = listLinksObj.filter((i) => {
|
|
1869
|
+
var _a;
|
|
1870
|
+
const target = new URL(String(i.target).toLowerCase());
|
|
1871
|
+
if (i.option == 'exact_match')
|
|
1872
|
+
// FOR TEST LOCAL:
|
|
1873
|
+
// return Boolean(location.pathname === target.pathname)
|
|
1874
|
+
return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
|
|
1875
|
+
if (i.option == 'start_with') {
|
|
1876
|
+
// FOR TEST LOCAL:
|
|
1877
|
+
// if (location.pathname.includes(target.pathname)) {
|
|
1878
|
+
if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
|
|
1879
|
+
const listExcluding = i.sub_target
|
|
1880
|
+
.filter((i) => i.option == 'excluding')
|
|
1881
|
+
.map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
|
|
1882
|
+
return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
|
|
1883
|
+
}
|
|
1884
|
+
else {
|
|
1885
|
+
return false;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
});
|
|
1889
|
+
// Check tags
|
|
1890
|
+
const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
|
|
1891
|
+
const listTags = listMetaTag.map((i) => i.content);
|
|
1892
|
+
let listCampaignHasTag = [];
|
|
1893
|
+
let listTagsObj = [];
|
|
1894
|
+
if (listTags && listTags.length) {
|
|
1895
|
+
listCampaignHasTag = campaignsDevice
|
|
1896
|
+
.map((i, index) => i.targets
|
|
1897
|
+
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
|
|
1898
|
+
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
1899
|
+
.flat(1);
|
|
1900
|
+
listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
|
|
1901
|
+
}
|
|
1902
|
+
const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
|
|
1903
|
+
const cookieKeys = document.cookie
|
|
1904
|
+
.split('; ')
|
|
1905
|
+
.map((i) => i.split('=')[0]);
|
|
1906
|
+
const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
|
|
1907
|
+
LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
|
|
1908
|
+
const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
|
|
1909
|
+
LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
|
|
1910
|
+
const listCampaignSubmitedClosed = [
|
|
1911
|
+
...listCampaignCodeSubmited,
|
|
1912
|
+
...listCampaignCodeClosed,
|
|
1913
|
+
];
|
|
1914
|
+
const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
|
|
1915
|
+
const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
|
|
1916
|
+
return !hasSubmited;
|
|
1917
|
+
});
|
|
1918
|
+
const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
|
|
1919
|
+
// .sort(
|
|
1920
|
+
// (a, b) =>
|
|
1921
|
+
// (listCampaignValid[a.campaignIndex]?.score || 0) -
|
|
1922
|
+
// (listCampaignValid[b.campaignIndex]?.score || 0),
|
|
1923
|
+
// )
|
|
1924
|
+
LeadLog('--listCampaignValid : ', listCampaignValid);
|
|
1925
|
+
if (listCampaignValid && listCampaignValid.length) {
|
|
1926
|
+
const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
|
|
1927
|
+
LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
|
|
1928
|
+
const { rules } = CAMPAIGN_SHOW;
|
|
1929
|
+
// CHECK RULE TRIGGER POPUP
|
|
1930
|
+
const timeoutRule = Number((_c = rules.find((i) => i.rule == 'time')) === null || _c === void 0 ? void 0 : _c.value);
|
|
1931
|
+
LeadLog(`timeoutRule`, timeoutRule);
|
|
1932
|
+
const scrollRule = Number((_d = rules.find((i) => i.rule == 'scroll')) === null || _d === void 0 ? void 0 : _d.value);
|
|
1933
|
+
LeadLog(`scrollRule`, scrollRule);
|
|
1934
|
+
let impressionAction = 'TIME';
|
|
1935
|
+
if (Number.isInteger(timeoutRule)) {
|
|
1936
|
+
impressionAction = 'TIME';
|
|
1937
|
+
LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
|
|
1938
|
+
timeoutRef = setTimeout(() => {
|
|
1939
|
+
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
1940
|
+
}, timeoutRule * 1000);
|
|
1941
|
+
}
|
|
1942
|
+
if (Number.isInteger(scrollRule)) {
|
|
1943
|
+
impressionAction = 'SCROLL';
|
|
1944
|
+
LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
|
|
1945
|
+
const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
|
|
1946
|
+
document.querySelector('body');
|
|
1947
|
+
const pct = $p.getBoundingClientRect().top;
|
|
1948
|
+
const pb = $p.offsetHeight;
|
|
1949
|
+
LeadLog(`👓 Element check scroll: `, $p);
|
|
1950
|
+
LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
|
|
1951
|
+
const wt = window.pageYOffset || document.documentElement.scrollTop;
|
|
1952
|
+
let percent = 0;
|
|
1953
|
+
if (wt >= pct) {
|
|
1954
|
+
percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
|
|
1955
|
+
}
|
|
1956
|
+
LeadLog('---Scroll', percent, scrollRule);
|
|
1957
|
+
// TODO: CHECK FOOTER HEIGHT
|
|
1958
|
+
if (percent >= scrollRule) {
|
|
1959
|
+
window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
|
|
1960
|
+
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
1961
|
+
}
|
|
1962
|
+
};
|
|
1963
|
+
window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
|
|
1964
|
+
passive: true,
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
else {
|
|
1969
|
+
LeadLog('🚧 No lead campaigns on current URL, tags');
|
|
1970
|
+
}
|
|
2028
1971
|
}
|
|
2029
1972
|
})
|
|
2030
1973
|
.catch((err) => {
|
|
@@ -2041,72 +1984,31 @@ const LeadLog = (...params) => {
|
|
|
2041
1984
|
}
|
|
2042
1985
|
};
|
|
2043
1986
|
|
|
2044
|
-
const LeadGenInlineWithoutMemo = (props) => {
|
|
2045
|
-
const [campaign, setCampaign] = useState();
|
|
2046
|
-
const { forceCampaign, apiUrl, apiLeadUrl, siteId, siteDomain, DEBUG_URL } = props;
|
|
2047
|
-
useEffect(() => {
|
|
2048
|
-
if (forceCampaign) {
|
|
2049
|
-
setCampaign(forceCampaign);
|
|
2050
|
-
return;
|
|
2051
|
-
}
|
|
2052
|
-
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
2053
|
-
const campaign = yield leadGenInlineGetCampaign({
|
|
2054
|
-
siteId,
|
|
2055
|
-
siteDomain,
|
|
2056
|
-
apiLeadUrl: apiUrl || apiLeadUrl || '',
|
|
2057
|
-
url: DEBUG_URL,
|
|
2058
|
-
});
|
|
2059
|
-
if (campaign) {
|
|
2060
|
-
setCampaign(campaign);
|
|
2061
|
-
}
|
|
2062
|
-
}))();
|
|
2063
|
-
}, [forceCampaign, DEBUG_URL, apiUrl, apiLeadUrl, siteId, siteDomain]);
|
|
2064
|
-
if (!campaign || !(campaign === null || campaign === void 0 ? void 0 : campaign.id)) {
|
|
2065
|
-
return null;
|
|
2066
|
-
}
|
|
2067
|
-
return (React__default.createElement(LeadGen, Object.assign({}, props, { forceCampaign: campaign, apiUrl: apiUrl || apiLeadUrl, flatComponent: true })));
|
|
2068
|
-
};
|
|
2069
|
-
const LeadGenInline = memo(LeadGenInlineWithoutMemo);
|
|
2070
|
-
function leadGenInlineGetCampaign(props) {
|
|
2071
|
-
var _a;
|
|
2072
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2073
|
-
const { url, apiLeadUrl, siteId, siteDomain } = props;
|
|
2074
|
-
const campaigns = yield Service.getCampaigns({ url, apiLeadUrl, siteId });
|
|
2075
|
-
const campaignsInline = (_a = (campaigns || [])) === null || _a === void 0 ? void 0 : _a.filter(({ extra_fields }) => {
|
|
2076
|
-
const { currentLayout } = extra_fields || {};
|
|
2077
|
-
return currentLayout === null || currentLayout === void 0 ? void 0 : currentLayout.includes('Inline');
|
|
2078
|
-
});
|
|
2079
|
-
return getCurrentCampaign({
|
|
2080
|
-
campaigns: campaignsInline,
|
|
2081
|
-
leadCurrentUrl: url,
|
|
2082
|
-
leadDomain: siteDomain,
|
|
2083
|
-
});
|
|
2084
|
-
});
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
const LeadGenTranslationProvider = (props) => {
|
|
2088
|
-
const { locale, children } = props;
|
|
2089
|
-
const translationContextValue = useMemo(() => ({ locale, values: getTranslations(locale) }), [locale]);
|
|
2090
|
-
return (React__default.createElement(TranslationsContext.Provider, { value: translationContextValue }, children));
|
|
2091
|
-
};
|
|
2092
|
-
|
|
2093
1987
|
const LeadGenContext = createContext({
|
|
2094
|
-
|
|
1988
|
+
submit(value) {
|
|
2095
1989
|
/** Init for FAKING function */
|
|
2096
1990
|
LeadLog('** LeadGen Submit : ', value);
|
|
2097
1991
|
return Promise.reject(value);
|
|
2098
1992
|
},
|
|
2099
|
-
|
|
1993
|
+
submitSubscriptionBox(value) {
|
|
2100
1994
|
/** Init for FAKING function */
|
|
2101
|
-
LeadLog('** LeadGen
|
|
1995
|
+
LeadLog('** LeadGen SubmitSubscriptionBox : ', value);
|
|
1996
|
+
return Promise.reject(value);
|
|
1997
|
+
},
|
|
1998
|
+
impression(type) {
|
|
1999
|
+
/** Init for FAKING function */
|
|
2000
|
+
LeadLog('** LeadGen Impression : ', type);
|
|
2102
2001
|
return Promise.reject();
|
|
2103
2002
|
},
|
|
2003
|
+
/** For Subscription Box */
|
|
2004
|
+
subscriptionIcon: '',
|
|
2005
|
+
subscriptionTitle: '',
|
|
2006
|
+
subscriptionPhoneType: '',
|
|
2104
2007
|
});
|
|
2105
2008
|
const LeadGenContextProvider = (props) => {
|
|
2106
|
-
const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues,
|
|
2009
|
+
const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues, articleId = 1, categoryId = 1, siteDomain: site_domain, children, userInfo } = props, restProps = __rest(props, ["campaign_code", "apiSsoUrl", "apiLeadUrl", "apiSubotUrl", "locale", "forceCampaign", "extraValues", "articleId", "categoryId", "siteDomain", "children", "userInfo"]);
|
|
2107
2010
|
const { t } = useTranslations();
|
|
2108
|
-
const [
|
|
2109
|
-
const [forceCampaign, setForceCampaign] = useState(() => formatCampaignDetail(forceCampaignProps));
|
|
2011
|
+
const [forceCampaign, setForceCampaign] = useState(forceCampaignProps);
|
|
2110
2012
|
const [subscriptionInfo, setSubscriptionInfo] = useState({
|
|
2111
2013
|
subscriptionIcon: '',
|
|
2112
2014
|
subscriptionTitle: '',
|
|
@@ -2116,65 +2018,98 @@ const LeadGenContextProvider = (props) => {
|
|
|
2116
2018
|
const locale = useMemo(() => {
|
|
2117
2019
|
return localeProps || LOCALE['PhilippinesEnglish'];
|
|
2118
2020
|
}, [localeProps]);
|
|
2021
|
+
const { url, campaign_id, cookie_id, ga_client_id, category_id, article_id, article_title, category_name, } = useMemo(() => ({
|
|
2022
|
+
url: location.href.toLowerCase() || '',
|
|
2023
|
+
cookie_id: getCookie('hhg-id') || null,
|
|
2024
|
+
ga_client_id: getCookie('_ga'),
|
|
2025
|
+
campaign_id: forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
|
|
2026
|
+
campaign_code: campaignCodeProps || (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code),
|
|
2027
|
+
category_id: categoryId,
|
|
2028
|
+
article_id: articleId,
|
|
2029
|
+
article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
|
|
2030
|
+
category_name: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name) || '',
|
|
2031
|
+
}), [
|
|
2032
|
+
campaignCodeProps,
|
|
2033
|
+
articleId,
|
|
2034
|
+
categoryId,
|
|
2035
|
+
forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
|
|
2036
|
+
extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
|
|
2037
|
+
extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
|
|
2038
|
+
]);
|
|
2039
|
+
// const fetchCampaign = useCallback(
|
|
2040
|
+
// (campaign_code: string) => {
|
|
2041
|
+
// Service.getCampaignByCode(campaign_code).then((res) => {
|
|
2042
|
+
// const { _data } = res || {}
|
|
2043
|
+
// const { campaigns } = _data || {}
|
|
2044
|
+
// LeadLog('** LeadGen Campaign : ', campaigns)
|
|
2045
|
+
// setForceCampaign(formatCampaignDetail(campaigns))
|
|
2046
|
+
// })
|
|
2047
|
+
// },
|
|
2048
|
+
// [campaignCodeProps],
|
|
2049
|
+
// )
|
|
2119
2050
|
// TODO : Update form for LeadGen
|
|
2120
|
-
const
|
|
2051
|
+
const submit = useCallback((data) => {
|
|
2121
2052
|
return Service.postSubscriptionBoxLead({ data });
|
|
2122
|
-
}, [forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.blocks]);
|
|
2123
|
-
const onImpression = useCallback((value) => {
|
|
2124
|
-
//
|
|
2125
|
-
console.log('** RYAN LeadGenContext.tsx 188 value : ', value);
|
|
2126
|
-
return Promise.resolve('dfdfdf');
|
|
2127
2053
|
}, []);
|
|
2128
2054
|
const submitSubscriptionBox = useCallback((value) => {
|
|
2129
2055
|
const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), {
|
|
2130
2056
|
// campaign_id,
|
|
2131
|
-
site_domain
|
|
2057
|
+
site_domain, url: (value === null || value === void 0 ? void 0 : value.url) || url, cookie_id, ga_client_id: (value === null || value === void 0 ? void 0 : value.ga_client_id) || ga_client_id }), extraValues), { article_id,
|
|
2058
|
+
category_id,
|
|
2059
|
+
article_title });
|
|
2132
2060
|
return Service.postSubscriptionBoxLead({ data });
|
|
2133
2061
|
}, [
|
|
2134
2062
|
extraValues,
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2063
|
+
site_domain,
|
|
2064
|
+
campaign_id,
|
|
2065
|
+
article_id,
|
|
2066
|
+
article_title,
|
|
2067
|
+
category_id,
|
|
2068
|
+
url,
|
|
2069
|
+
cookie_id,
|
|
2070
|
+
ga_client_id,
|
|
2139
2071
|
]);
|
|
2140
|
-
const
|
|
2072
|
+
const impression = useCallback((type) => {
|
|
2073
|
+
const gaCookie = getCookie('_ga') || null;
|
|
2141
2074
|
const impression = {
|
|
2142
2075
|
subscription_title: subscriptionInfo.subscriptionTitle,
|
|
2143
2076
|
name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || '',
|
|
2144
2077
|
area_code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '',
|
|
2145
2078
|
phone_number: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) || '',
|
|
2146
|
-
site_domain:
|
|
2079
|
+
site_domain: domainLocales[locale],
|
|
2147
2080
|
url: location.href.toLowerCase(),
|
|
2148
2081
|
cookie_id: getCookie('hhg-id'),
|
|
2149
|
-
ga_client_id:
|
|
2150
|
-
article_title
|
|
2151
|
-
article_id
|
|
2152
|
-
category_id
|
|
2153
|
-
category_name
|
|
2082
|
+
ga_client_id: gaCookie,
|
|
2083
|
+
article_title,
|
|
2084
|
+
article_id,
|
|
2085
|
+
category_id,
|
|
2086
|
+
category_name,
|
|
2154
2087
|
type,
|
|
2155
2088
|
};
|
|
2156
2089
|
return Service.trackingSubscription(impression);
|
|
2157
2090
|
}, [
|
|
2158
|
-
|
|
2091
|
+
campaign_id,
|
|
2092
|
+
url,
|
|
2093
|
+
article_title,
|
|
2094
|
+
cookie_id,
|
|
2095
|
+
ga_client_id,
|
|
2159
2096
|
categoryId,
|
|
2097
|
+
article_id,
|
|
2160
2098
|
subscriptionInfo.subscriptionTitle,
|
|
2161
|
-
extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
|
|
2162
2099
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
|
|
2163
2100
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code,
|
|
2164
2101
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
2165
2102
|
]);
|
|
2166
2103
|
useEffect(() => {
|
|
2167
|
-
/** Force Campaign */
|
|
2168
2104
|
if (forceCampaignProps) {
|
|
2169
2105
|
setForceCampaign(formatCampaignDetail(forceCampaignProps));
|
|
2170
|
-
setRawForceCampaign(forceCampaignProps);
|
|
2171
2106
|
return;
|
|
2172
2107
|
}
|
|
2173
2108
|
/** For Subscription Box */
|
|
2174
2109
|
if (categoryId) {
|
|
2175
2110
|
Service.getSubscriptionBoxInfo({
|
|
2176
2111
|
category: categoryId,
|
|
2177
|
-
site:
|
|
2112
|
+
site: site_domain,
|
|
2178
2113
|
slug: location === null || location === void 0 ? void 0 : location.pathname,
|
|
2179
2114
|
}).then((res) => {
|
|
2180
2115
|
const { _data } = res || {};
|
|
@@ -2307,39 +2242,10 @@ const LeadGenContextProvider = (props) => {
|
|
|
2307
2242
|
});
|
|
2308
2243
|
return;
|
|
2309
2244
|
}
|
|
2310
|
-
if (campaignCodeProps) {
|
|
2311
|
-
|
|
2312
|
-
const { _data } = res || {};
|
|
2313
|
-
const { campaigns } = _data || {};
|
|
2314
|
-
LeadLog('** LeadGen Campaign : ', campaigns);
|
|
2315
|
-
setForceCampaign(formatCampaignDetail(campaigns));
|
|
2316
|
-
setRawForceCampaign(campaigns);
|
|
2317
|
-
});
|
|
2318
|
-
return;
|
|
2319
|
-
}
|
|
2320
|
-
// /** For LeadGen */
|
|
2321
|
-
// if (!leadStore.campaigns?.length) {
|
|
2322
|
-
// checkShowPopup({
|
|
2323
|
-
// leadApi: apiLeadUrl,
|
|
2324
|
-
// leadDomain: siteDomain,
|
|
2325
|
-
// leadSiteId: siteId,
|
|
2326
|
-
// onShowPopup(campaign: any, action: string) {
|
|
2327
|
-
// console.log('** RYAN LeadGenContext.tsx 421 action : ', action)
|
|
2328
|
-
// setForceCampaign(formatCampaignDetail(campaign))
|
|
2329
|
-
// setRawForceCampaign(campaign)
|
|
2330
|
-
// },
|
|
2331
|
-
// DEBUG_URL,
|
|
2332
|
-
// })
|
|
2245
|
+
// if (campaignCodeProps) {
|
|
2246
|
+
// fetchCampaign(campaignCodeProps)
|
|
2333
2247
|
// }
|
|
2334
|
-
}, [
|
|
2335
|
-
forceCampaignProps,
|
|
2336
|
-
campaignCodeProps,
|
|
2337
|
-
categoryId,
|
|
2338
|
-
siteId,
|
|
2339
|
-
siteDomain,
|
|
2340
|
-
apiLeadUrl,
|
|
2341
|
-
DEBUG_URL,
|
|
2342
|
-
]);
|
|
2248
|
+
}, [forceCampaignProps, campaignCodeProps, categoryId]);
|
|
2343
2249
|
useEffect(() => {
|
|
2344
2250
|
leadStore.apiSsoUrl = apiSsoUrl;
|
|
2345
2251
|
leadStore.apiLeadUrl = apiLeadUrl;
|
|
@@ -2352,14 +2258,10 @@ const LeadGenContextProvider = (props) => {
|
|
|
2352
2258
|
apiLeadUrl,
|
|
2353
2259
|
apiSubotUrl, locale: localeProps, extraValues,
|
|
2354
2260
|
articleId,
|
|
2355
|
-
categoryId,
|
|
2356
|
-
|
|
2357
|
-
forceCampaign,
|
|
2358
|
-
rawForceCampaign,
|
|
2359
|
-
onSubmit,
|
|
2360
|
-
onImpression,
|
|
2261
|
+
categoryId, siteDomain: site_domain, forceCampaign,
|
|
2262
|
+
submit,
|
|
2361
2263
|
submitSubscriptionBox,
|
|
2362
|
-
|
|
2264
|
+
impression }) },
|
|
2363
2265
|
React__default.createElement(LeadGenTranslationProvider, { locale: locale }, children)));
|
|
2364
2266
|
};
|
|
2365
2267
|
const useLeadGenContext = () => {
|
|
@@ -3372,7 +3274,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3372
3274
|
const { image, extra_fields, id: campaign_id, bot_id: campaign_subot_id = [], ThankYouBlock, } = forceCampaign || {};
|
|
3373
3275
|
const { textBlocks, listBlockAdded, actionBlocks } = extra_fields || {};
|
|
3374
3276
|
const { submitBlock } = actionBlocks || {};
|
|
3375
|
-
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish,
|
|
3277
|
+
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impression, } = useLeadGenContext();
|
|
3376
3278
|
const { t } = useTranslations();
|
|
3377
3279
|
const { action: { pushNotifications }, } = useContext(TogetherComponentGlobalContext);
|
|
3378
3280
|
const [loading, setLoading] = useState(false);
|
|
@@ -3432,7 +3334,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3432
3334
|
const reqValues = Object.assign(Object.assign({}, newValues), ssoValues);
|
|
3433
3335
|
const [res] = yield Promise.all([
|
|
3434
3336
|
submitSubscriptionBox(reqValues),
|
|
3435
|
-
|
|
3337
|
+
impression('submit_form'),
|
|
3436
3338
|
]);
|
|
3437
3339
|
const { _data } = res || {};
|
|
3438
3340
|
const { model } = _data || {};
|
|
@@ -3478,7 +3380,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3478
3380
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
|
|
3479
3381
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
3480
3382
|
]);
|
|
3481
|
-
return (React__default.createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () =>
|
|
3383
|
+
return (React__default.createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impression('impression') },
|
|
3482
3384
|
React__default.createElement(StyledLeadGenSubscriptionBox, { "data-phone-type": subscriptionPhoneType, "data-type": "subscription_box_A" },
|
|
3483
3385
|
showThankyou && (React__default.createElement(LeadGenThankYou, { image: Object.assign(Object.assign({}, thankyouImage), { src: thankyouImage.src || `${apiLeadUrl}admin/img/thanksyou.png` }), title: thankyouTitle, description: thankyouDescription, button: thankyouButton })),
|
|
3484
3386
|
!showThankyou && (React__default.createElement(LeadGenSubscriptionBoxA, { loading: loading, image: subscriptionIcon || image, title: subscription_title, submitText: (_c = submitBlock === null || submitBlock === void 0 ? void 0 : submitBlock.data) === null || _c === void 0 ? void 0 : _c.value, blocks: listBlockAdded, locale: locale, form: form, rules: validateObj, onFinish: middlewareOnSubmit })))));
|
|
@@ -4213,7 +4115,7 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
|
|
|
4213
4115
|
React__default.createElement(Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
|
|
4214
4116
|
};
|
|
4215
4117
|
|
|
4216
|
-
const InlineLayout = ({
|
|
4118
|
+
const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
|
|
4217
4119
|
const target = useMemo(() => {
|
|
4218
4120
|
if (!inlinePosition)
|
|
4219
4121
|
return null;
|
|
@@ -4318,9 +4220,6 @@ const InlineLayout = ({ flatComponent, content, inlinePosition, doImpression, })
|
|
|
4318
4220
|
}
|
|
4319
4221
|
}
|
|
4320
4222
|
}, [inlinePosition]);
|
|
4321
|
-
if (!!flatComponent) {
|
|
4322
|
-
return (React__default.createElement(ImpressionTrackingWrapper, { onImpression: () => __awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content));
|
|
4323
|
-
}
|
|
4324
4223
|
if (!inlinePosition || !target)
|
|
4325
4224
|
return null;
|
|
4326
4225
|
return createPortal(React__default.createElement(ImpressionTrackingWrapper, { onImpression: () => __awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content), target);
|
|
@@ -5076,7 +4975,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
5076
4975
|
];
|
|
5077
4976
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
5078
4977
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
5079
|
-
const LightboxLayout = ({
|
|
4978
|
+
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, }) => {
|
|
5080
4979
|
var _a, _b;
|
|
5081
4980
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
5082
4981
|
const { isMobile } = useScreenSize();
|
|
@@ -5476,7 +5375,7 @@ const LightboxLayout = ({ flatComponent, popupId, extraFields, onClose: onCloseP
|
|
|
5476
5375
|
return React__default.createElement(SideBarLayout, { content: PopupContainer });
|
|
5477
5376
|
}
|
|
5478
5377
|
else if (isInline) {
|
|
5479
|
-
return (React__default.createElement(InlineLayout, {
|
|
5378
|
+
return (React__default.createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5480
5379
|
}
|
|
5481
5380
|
return null;
|
|
5482
5381
|
};
|
|
@@ -5569,7 +5468,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
|
|
|
5569
5468
|
return null;
|
|
5570
5469
|
}
|
|
5571
5470
|
}
|
|
5572
|
-
const NewLeadPopup = ({
|
|
5471
|
+
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5573
5472
|
var _a, _b;
|
|
5574
5473
|
const { apiUrl, siteDomain } = useContext(LeadGenContext$1);
|
|
5575
5474
|
const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
|
|
@@ -5672,7 +5571,7 @@ const NewLeadPopup = ({ flatComponent, campaign, action, onSubmit, onClose, onUn
|
|
|
5672
5571
|
currentLayout == 'Fullscreen' ||
|
|
5673
5572
|
currentLayout == 'Sidebar' ||
|
|
5674
5573
|
currentLayout == 'Slider') {
|
|
5675
|
-
return (React__default.createElement(LightboxLayout, {
|
|
5574
|
+
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 }));
|
|
5676
5575
|
}
|
|
5677
5576
|
else if (currentLayout.includes('Skin')) {
|
|
5678
5577
|
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 }));
|
|
@@ -5764,7 +5663,7 @@ const formatTrackingData = (params) => {
|
|
|
5764
5663
|
};
|
|
5765
5664
|
|
|
5766
5665
|
// mount css
|
|
5767
|
-
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps,
|
|
5666
|
+
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, }) => {
|
|
5768
5667
|
var _a, _b;
|
|
5769
5668
|
const theme = useMantineTheme();
|
|
5770
5669
|
console.log({ theme });
|
|
@@ -6106,7 +6005,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
6106
6005
|
!!currentLayout &&
|
|
6107
6006
|
!currentLayout.includes('Inline') &&
|
|
6108
6007
|
!currentLayout.includes('Sidebar') && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
6109
|
-
React__default.createElement(NewLeadPopup, {
|
|
6008
|
+
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 })))));
|
|
6110
6009
|
}))))))));
|
|
6111
6010
|
};
|
|
6112
6011
|
const LeadGen = _LeadGen;
|
|
@@ -6117,4 +6016,4 @@ LeadGen.Thankyou = Thankyou;
|
|
|
6117
6016
|
LeadGen.OtpForm = OtpBlock$1;
|
|
6118
6017
|
LeadGen.Close = Close;
|
|
6119
6018
|
|
|
6120
|
-
export { LeadGen,
|
|
6019
|
+
export { LeadGen, LeadGenSubscriptionBox };
|