@hhgtech/hhg-components 1.29.416 → 1.29.417-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-460cc7e7.js → InputDate-9e30b876.js} +3 -3
- package/build/{LastPeriod-d9055e31.js → LastPeriod-284e518e.js} +1 -1
- package/build/{MobileBottomNavigationIcon-398bbc66.js → MobileBottomNavigationIcon-8a341f57.js} +3 -3
- package/build/{Spinner-8191fb29.js → Spinner-0e7dbdcb.js} +1 -1
- package/build/{WhatsApp-4b25318c.js → WhatsApp-70211dc5.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-02c6edfe.js → constants-7f042b4e.js} +5 -2
- 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-31621549.js → core-b7a1114b.js} +1 -1
- package/build/{dataTransform-4595f9c5.js → dataTransform-9ccfef6b.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-09d36de6.js → editor-3b47dd6d.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-90201030.js → InputDate-d668e7b1.js} +3 -3
- package/build/esm/{LastPeriod-d4724e1a.js → LastPeriod-f42c5b87.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-74749244.js → MobileBottomNavigationIcon-179e1e9f.js} +3 -3
- package/build/esm/{Spinner-a4b3358b.js → Spinner-4dbfe98b.js} +1 -1
- package/build/esm/{WhatsApp-d541cac0.js → WhatsApp-8b31eaa0.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-a6bd6d1e.js → constants-97ebef7c.js} +5 -2
- 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-82b89af5.js → core-c9bd1c23.js} +1 -1
- package/build/esm/{dataTransform-d1bf4d7d.js → dataTransform-7c0e0d08.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-aeae4111.js → editor-f771631f.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-7557e988.js → healthTools-713c5ff4.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- package/build/esm/hooks/usePlacesAutocomplete.d.ts +1 -1
- 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-e6360434.js → index-0779ca8c.js} +7 -7
- package/build/esm/{index-b77563ca.js → index-0a7130d8.js} +16 -16
- package/build/esm/{index-a56a7e7e.js → index-0dbeb586.js} +13 -13
- package/build/esm/{index-eb82a32e.js → index-101b8fc6.js} +32 -32
- package/build/esm/{index-11039009.js → index-1db5303e.js} +1 -1
- package/build/esm/{index-811a866d.js → index-2a0cb097.js} +13 -13
- package/build/esm/{index-49e2befa.js → index-2b4bf998.js} +2 -2
- package/build/esm/{index-7297c04c.js → index-2decb5e9.js} +3 -3
- package/build/esm/{index-2283d0f7.js → index-30197194.js} +2 -2
- package/build/esm/{index-eff5cb81.js → index-35b322b3.js} +15 -15
- package/build/esm/{index-92928c68.js → index-3755523d.js} +2 -2
- package/build/esm/{index-a1950224.js → index-3964a22b.js} +2 -2
- package/build/esm/{index-5d2c7f16.js → index-3aff304a.js} +3 -3
- package/build/esm/{index-1e24a2c6.js → index-3e8c9810.js} +25 -25
- package/build/esm/{index-1a608269.js → index-3f45b9be.js} +9 -15
- package/build/esm/{index-8d985be7.js → index-3f5f1b11.js} +1 -1
- package/build/esm/{index-541bbaf5.js → index-4256ea9a.js} +4 -4
- package/build/esm/{index-14417814.js → index-42ef9a9c.js} +2 -2
- package/build/esm/{index-2d140c4c.js → index-4388caff.js} +8 -8
- package/build/esm/{index-72ec4da1.js → index-44df7587.js} +2 -2
- package/build/esm/{index-5a2b2d00.js → index-4f4c7718.js} +16 -16
- package/build/esm/{index-3b8539da.js → index-5219bcba.js} +32 -32
- package/build/esm/{index-d8a96ce6.js → index-5494c13a.js} +3 -3
- package/build/esm/{index-08ad08f5.js → index-556f7e5f.js} +3 -3
- package/build/esm/{index-312c0c1a.js → index-55f4c5ab.js} +13 -13
- package/build/esm/{index-32581851.js → index-56197df5.js} +21 -41
- package/build/esm/{index-827f170c.js → index-59ee39b4.js} +5 -5
- package/build/esm/{index-6009b6cd.js → index-6a214415.js} +7 -7
- package/build/esm/{index-dbaf58de.js → index-6bab8389.js} +2 -2
- package/build/esm/{index-3ec225a9.js → index-6d3d7c54.js} +13 -13
- package/build/esm/{index-cbd9568f.js → index-6dd484a8.js} +5 -5
- package/build/esm/{index-38a04e18.js → index-6e1c060d.js} +10 -10
- package/build/esm/{index-94247667.js → index-7072c0e1.js} +11 -11
- package/build/esm/{index-0ba82d61.js → index-734a5326.js} +3 -3
- package/build/esm/{index-17ceb8b5.js → index-7c6a268c.js} +6 -6
- package/build/esm/{index-bd90707a.js → index-7f9e8784.js} +2 -2
- package/build/esm/{index-fb787f5e.js → index-80d3f2ce.js} +17 -17
- package/build/esm/{index-578f22ff.js → index-86ae6512.js} +1 -1
- package/build/esm/{index-621cc638.js → index-8c565f8c.js} +17 -17
- package/build/esm/{index-a88a878d.js → index-8fe4b35d.js} +24 -24
- package/build/esm/{index-1dc41c9e.js → index-97f00d5b.js} +2 -2
- package/build/esm/{index-b876769a.js → index-9b07783d.js} +3 -3
- package/build/esm/{index-2b77f3a1.js → index-a1917920.js} +30 -30
- package/build/esm/{index-8825734b.js → index-a80fcbe6.js} +1 -1
- package/build/esm/{index-0bee62c4.js → index-aa814bd0.js} +15 -15
- package/build/esm/{index-9c2f5f06.js → index-ad1422c0.js} +2 -2
- package/build/esm/{index-4c0e28c4.js → index-b6527b27.js} +2 -2
- package/build/esm/{index-a067d67b.js → index-bdc8d5da.js} +2 -2
- package/build/esm/{index-27008b25.js → index-bdda515b.js} +1 -1
- package/build/esm/{index-973ac5c4.js → index-be6cfcd1.js} +2 -2
- package/build/esm/{index-02d20d87.js → index-c3929ff6.js} +17 -17
- package/build/esm/{index-439bceaa.js → index-c9536394.js} +1 -1
- package/build/esm/{index-49f04c19.js → index-cd4e30bd.js} +2 -2
- package/build/esm/{index-05350c5b.js → index-d1a20332.js} +22 -22
- package/build/esm/{index-a5586f87.js → index-d40b8911.js} +4 -4
- package/build/esm/{index-9bd28301.js → index-d438bc14.js} +3 -3
- package/build/esm/{index-4a35d73a.js → index-d5b9c6cc.js} +17 -17
- package/build/esm/{index-6f1d51ec.js → index-d9d63db1.js} +15 -15
- package/build/esm/{index-9d814290.js → index-e508d224.js} +1 -1
- package/build/esm/{index-b91bdba3.js → index-e5cbe07a.js} +1 -1
- package/build/esm/{index-37ef49b1.js → index-e7958cc0.js} +6 -6
- package/build/esm/{index-d9e75358.js → index-e9719aff.js} +6 -6
- package/build/esm/{index-e86bac18.js → index-efa56b27.js} +6 -6
- package/build/esm/{index-a4e44155.js → index-f22ab8f7.js} +13 -13
- package/build/esm/{index-b22d3416.js → index-f87852b1.js} +6 -6
- package/build/esm/{index-0b307a4e.js → index-f8c3cbee.js} +2 -2
- package/build/esm/{index-5893db57.js → index-fb485f02.js} +3 -3
- package/build/esm/{index-77cca2f4.js → index-fd968bba.js} +13 -13
- package/build/esm/index.js +119 -119
- package/build/esm/{labelSorting-afbe306c.js → labelSorting-9cb5686f.js} +4 -4
- package/build/esm/lead/LeadGen.helpers.d.ts +2 -2
- package/build/esm/lead/LeadGen.type.d.ts +4 -3
- package/build/esm/lead/LeadGenInline/LeadGenInline.d.ts +8 -0
- package/build/esm/lead/LeadGenInline/index.d.ts +2 -0
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +21 -15
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContainer.d.ts +1 -3
- package/build/esm/lead/index.d.ts +5 -1
- package/build/esm/lead/layouts/inline.d.ts +3 -2
- package/build/esm/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/esm/lead/newLeadPopup.d.ts +2 -1
- package/build/esm/lead/services/index.d.ts +5 -1
- package/build/esm/lead/services/index.type.d.ts +5 -0
- package/build/esm/lead/utils.d.ts +18 -0
- package/build/esm/lead.js +441 -357
- package/build/esm/{logoIcon-d2b8bf2c.js → logoIcon-86ae7649.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc/cachedSystem.d.ts +5 -0
- 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-4f2e7f2b.js → post-789832a5.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 +2 -1
- package/build/esm/ssoV2.js +53 -41
- package/build/esm/{store-40fc7d8d.js → store-90ce6028.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-297f7588.js → surveyThankyouCard-3b5a5f92.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-5444daff.js → translationsProvider-b9b2e342.js} +1 -1
- package/build/esm/{treePopoverMenu-d48dce22.js → treePopoverMenu-0fdd97de.js} +19 -19
- package/build/esm/{types-39a8ee7b.js → types-d1155c05.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-bc3dfd8d.js → useCategory-64ffd20e.js} +5 -5
- package/build/esm/{useHealthToolCache-aaed38ab.js → useHealthToolCache-90c9f3be.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-e0383a78.js → usePlacesAutocomplete-b6c4c6c7.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-40317fad.js → utils-4f164cd6.js} +5 -5
- package/build/esm/{utils-db5fa0f9.js → utils-50d59759.js} +2 -2
- package/build/esm/{utils-f1d9b65c.js → utils-6e5eb1d9.js} +2 -2
- package/build/esm/{utils-a220ec92.js → utils-f0f3526f.js} +3 -3
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-b38ec114.js → healthTools-04b5c61c.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks/usePlacesAutocomplete.d.ts +1 -1
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-3834e4c0.js → index-0072e357.js} +3 -3
- package/build/{index-79716dd6.js → index-0137a381.js} +2 -2
- package/build/{index-b3a7c814.js → index-043884f9.js} +1 -1
- package/build/{index-9b8aef2d.js → index-09fb8a26.js} +11 -11
- package/build/{index-6a361713.js → index-0bcda53f.js} +16 -16
- package/build/{index-dddf1be5.js → index-0df92920.js} +2 -2
- package/build/{index-cbbf547b.js → index-12ed1952.js} +21 -41
- package/build/{index-7525326f.js → index-14ca47b4.js} +7 -7
- package/build/{index-b803a309.js → index-193e6d87.js} +1 -1
- package/build/{index-54c9506b.js → index-1bd60e95.js} +1 -1
- package/build/{index-376680d9.js → index-1e8ebd4b.js} +2 -2
- package/build/{index-9a9ee559.js → index-1f772ad8.js} +13 -13
- package/build/{index-62a7e1dd.js → index-2fb86d07.js} +2 -2
- package/build/{index-b0ceb28a.js → index-312cab9a.js} +4 -4
- package/build/{index-77078e28.js → index-31515d61.js} +13 -13
- package/build/{index-8b4b461f.js → index-323f4397.js} +1 -1
- package/build/{index-3eb9c695.js → index-328553bd.js} +2 -2
- package/build/{index-f7052920.js → index-368de908.js} +2 -2
- package/build/{index-93780b67.js → index-3782244f.js} +6 -6
- package/build/{index-c9116f2e.js → index-3875f249.js} +3 -3
- package/build/{index-feccbedb.js → index-3ab870e2.js} +13 -13
- package/build/{index-fa63bcfc.js → index-439cc856.js} +3 -3
- package/build/{index-0f6cb54e.js → index-44bc4f6a.js} +15 -15
- package/build/{index-cd34fbf6.js → index-4b0e6ef1.js} +3 -3
- package/build/{index-9e28566d.js → index-500486d6.js} +3 -3
- package/build/{index-3ed3fab2.js → index-5044769b.js} +24 -24
- package/build/{index-c14f4d51.js → index-50c9e456.js} +30 -30
- package/build/{index-20ad809e.js → index-5bf1a9bc.js} +2 -2
- package/build/{index-27296b44.js → index-5d190a00.js} +3 -3
- package/build/{index-1f921f49.js → index-63be1c63.js} +22 -22
- package/build/{index-ba13e9e8.js → index-6c3fba4e.js} +2 -2
- package/build/{index-a82aea0d.js → index-6e0dda62.js} +13 -13
- package/build/{index-e2855353.js → index-71f47d07.js} +13 -13
- package/build/{index-45a00fcc.js → index-74500059.js} +2 -2
- package/build/{index-3406a07e.js → index-77a9f52b.js} +32 -32
- package/build/{index-c2742dbd.js → index-79a1d3f1.js} +8 -8
- package/build/{index-6b7f60da.js → index-80c47d32.js} +7 -7
- package/build/{index-d3d9b838.js → index-87810c70.js} +9 -15
- package/build/{index-078e1321.js → index-8b6ea64e.js} +2 -2
- package/build/{index-06442836.js → index-95ff590d.js} +1 -1
- package/build/{index-51a27c1a.js → index-96caf685.js} +2 -2
- package/build/{index-c1551fe6.js → index-a009cad4.js} +2 -2
- package/build/{index-2d4a6a84.js → index-a256fbb3.js} +16 -16
- package/build/{index-17558bdc.js → index-a8144e9e.js} +3 -3
- package/build/{index-239d3b6d.js → index-afdfa85e.js} +15 -15
- package/build/{index-93751671.js → index-b9477bea.js} +10 -10
- package/build/{index-1db868c8.js → index-b94e036f.js} +3 -3
- package/build/{index-25f35320.js → index-ba8655a3.js} +2 -2
- package/build/{index-c794ff25.js → index-bbc754cf.js} +4 -4
- package/build/{index-d4202c79.js → index-bc61c69b.js} +17 -17
- package/build/{index-670c1cf8.js → index-be7f6800.js} +17 -17
- package/build/{index-7e23a534.js → index-c3bc615c.js} +6 -6
- package/build/{index-90fa3d0d.js → index-cc9b0bd5.js} +1 -1
- package/build/{index-db317575.js → index-cde04753.js} +2 -2
- package/build/{index-5da02e93.js → index-d0bedca7.js} +6 -6
- package/build/{index-88e66d62.js → index-d4ecd7f1.js} +5 -5
- package/build/{index-6b182a17.js → index-d5218a9b.js} +17 -17
- package/build/{index-00470319.js → index-d5553b85.js} +15 -15
- package/build/{index-194ded97.js → index-d9e119e0.js} +1 -1
- package/build/{index-9997da7b.js → index-dcc0c2bd.js} +13 -13
- package/build/{index-807bb915.js → index-deb4662d.js} +2 -2
- package/build/{index-ad84556b.js → index-e2df16a5.js} +1 -1
- package/build/{index-27d0d281.js → index-e73aa078.js} +5 -5
- package/build/{index-c134e92d.js → index-f40fb89a.js} +25 -25
- package/build/{index-2b29e85c.js → index-f575c525.js} +6 -6
- package/build/{index-4689ad3f.js → index-f82ab743.js} +6 -6
- package/build/{index-c6e9f5ba.js → index-fd8a53a6.js} +32 -32
- package/build/{index-e68447bd.js → index-fe10cf22.js} +17 -17
- package/build/index.js +119 -119
- package/build/{labelSorting-607d24d0.js → labelSorting-5ba4d2fd.js} +4 -4
- package/build/lead/LeadGen.helpers.d.ts +2 -2
- package/build/lead/LeadGen.type.d.ts +4 -3
- package/build/lead/LeadGenInline/LeadGenInline.d.ts +8 -0
- package/build/lead/LeadGenInline/index.d.ts +2 -0
- package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +21 -15
- package/build/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContainer.d.ts +1 -3
- package/build/lead/index.d.ts +5 -1
- package/build/lead/layouts/inline.d.ts +3 -2
- package/build/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/lead/newLeadPopup.d.ts +2 -1
- package/build/lead/services/index.d.ts +5 -1
- package/build/lead/services/index.type.d.ts +5 -0
- package/build/lead/utils.d.ts +18 -0
- package/build/lead.js +440 -354
- package/build/{logoIcon-25362d51.js → logoIcon-355ba1ce.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc/cachedSystem.d.ts +5 -0
- 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-2f745621.js → post-deb55503.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 +2 -1
- package/build/ssoV2.js +51 -39
- package/build/{store-c4524000.js → store-80ec8a44.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-a3db4ca8.js → surveyThankyouCard-9f5b1f87.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-f08be05d.js → translationsProvider-c22e6542.js} +1 -1
- package/build/{treePopoverMenu-53c4d8fd.js → treePopoverMenu-e1885851.js} +19 -19
- package/build/{types-c3629610.js → types-15a1fc77.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-29a09735.js → useCategory-af459858.js} +5 -5
- package/build/{useHealthToolCache-b752a977.js → useHealthToolCache-614a15a7.js} +1 -1
- package/build/{usePlacesAutocomplete-95df2b33.js → usePlacesAutocomplete-4af640db.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-714feb5e.js → utils-129d3057.js} +3 -3
- package/build/{utils-d73c632c.js → utils-3c2a67d9.js} +2 -2
- package/build/{utils-23cbdd2c.js → utils-5d42fc64.js} +5 -5
- package/build/{utils-7aa2f419.js → utils-d1989377.js} +2 -2
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-9a29e648.js → BMI_BOYS.percentile.monthly-6ac8c929.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-803cb2cf.js → BMI_BOYS.percentile.weekly-104a0f0e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0d488f58.js → BMI_BOYS.percentile.yearly-82aca2ce.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-650368ba.js → BMI_BOYS.zscore.monthly-ff403d5e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-5c95aa33.js → BMI_BOYS.zscore.weekly-808d0c46.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-24d579ea.js → BMI_BOYS.zscore.yearly-dcae17bd.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-f318cb06.js → BMI_GIRLS.percentile.monthly-f899e6b6.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-b70a59bc.js → BMI_GIRLS.percentile.weekly-6a8f5f11.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-01efcd99.js → BMI_GIRLS.percentile.yearly-9ca898ed.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-d317ac24.js → BMI_GIRLS.zscore.monthly-471f6378.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-28e86377.js → BMI_GIRLS.zscore.weekly-9298951d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-7d6d749c.js → BMI_GIRLS.zscore.yearly-796817f9.js} +0 -0
- /package/build/{ChevronDown-9bb5b2f1.js → ChevronDown-7a20b27f.js} +0 -0
- /package/build/{Close-d4633e2e.js → Close-bebcc13f.js} +0 -0
- /package/build/{Google-9f667b1a.js → Google-fbbd2708.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-669ee743.js → HEAD CIRCUM_BOYS.percentile.monthly-370fc39a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-0156de4e.js → HEAD CIRCUM_BOYS.percentile.weekly-86e8683b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-bfc5fc2c.js → HEAD CIRCUM_BOYS.percentile.yearly-20e626c1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-24b56f87.js → HEAD CIRCUM_BOYS.zscore.monthly-7ae8fa1c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b42abef6.js → HEAD CIRCUM_BOYS.zscore.weekly-b82a6357.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-5edc3772.js → HEAD CIRCUM_BOYS.zscore.yearly-16a0da3b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-3df0e502.js → HEAD CIRCUM_GIRLS.percentile.monthly-bfd81b3d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-9024f534.js → HEAD CIRCUM_GIRLS.percentile.weekly-8d80303a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-ca350787.js → HEAD CIRCUM_GIRLS.percentile.yearly-dd1932c7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-fdb13a2d.js → HEAD CIRCUM_GIRLS.zscore.monthly-cbb86261.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e2322601.js → HEAD CIRCUM_GIRLS.zscore.weekly-fa4a1256.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5561070a.js → HEAD CIRCUM_GIRLS.zscore.yearly-e9f7e7df.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-17b9e3a5.js → HEIGHT_BOYS.percentile.monthly-044062b7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-02b05774.js → HEIGHT_BOYS.percentile.weekly-aa42157b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-452f0891.js → HEIGHT_BOYS.percentile.yearly-9da2bae4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-e6fadfaf.js → HEIGHT_BOYS.zscore.monthly-3e6b7aea.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-f6ad64b3.js → HEIGHT_BOYS.zscore.weekly-56a47868.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-f18ab57e.js → HEIGHT_BOYS.zscore.yearly-7073ca64.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-0758e4b1.js → HEIGHT_GIRLS.percentile.monthly-06c8ec8a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-710a8aa4.js → HEIGHT_GIRLS.percentile.weekly-5cc2f3ce.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-2125f01d.js → HEIGHT_GIRLS.percentile.yearly-10e4b2ab.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-7b09786c.js → HEIGHT_GIRLS.zscore.monthly-abc25466.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-4b7e95c1.js → HEIGHT_GIRLS.zscore.weekly-536dc984.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-4743d1ff.js → HEIGHT_GIRLS.zscore.yearly-61a0824e.js} +0 -0
- /package/build/{Locale-d8323a57.js → Locale-e4f4809e.js} +0 -0
- /package/build/{Visible-f78beda4.js → Visible-faa8a6b6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-66c02028.js → WEIGHT_BOYS.percentile.monthly-16e62594.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-cba4d76c.js → WEIGHT_BOYS.percentile.weekly-548496b5.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-6dd23f5d.js → WEIGHT_BOYS.percentile.yearly-2f439cef.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-a7c65818.js → WEIGHT_BOYS.zscore.monthly-5b5a7f49.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-bc979437.js → WEIGHT_BOYS.zscore.weekly-33e35778.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-07a8582d.js → WEIGHT_BOYS.zscore.yearly-780ad0cf.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5c928480.js → WEIGHT_GIRLS.percentile.monthly-a8ac3422.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-3788d6b0.js → WEIGHT_GIRLS.percentile.weekly-ff90f2b2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-09cd78e9.js → WEIGHT_GIRLS.percentile.yearly-f75ebf22.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-8228182a.js → WEIGHT_GIRLS.zscore.monthly-cbd7d508.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-30f5bc2d.js → WEIGHT_GIRLS.zscore.weekly-910503a0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-67fe47aa.js → WEIGHT_GIRLS.zscore.yearly-407d4965.js} +0 -0
- /package/build/{animation-521d84b9.js → animation-969343c9.js} +0 -0
- /package/build/{constants-47c44643.js → constants-0700daae.js} +0 -0
- /package/build/{constants-f41956a8.js → constants-8771bb6b.js} +0 -0
- /package/build/{constants-60466d93.js → constants-bfb59943.js} +0 -0
- /package/build/{dataTransform-0d9ece63.js → dataTransform-96a55157.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-dc892e80.js → BMI_BOYS.percentile.monthly-d1f8dae4.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-840e2c5e.js → BMI_BOYS.percentile.weekly-15cb241a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-d8a8e7e4.js → BMI_BOYS.percentile.yearly-8e0d8ed6.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-6c95dae2.js → BMI_BOYS.zscore.monthly-8035d6f3.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-d050c818.js → BMI_BOYS.zscore.weekly-0232605c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-d1a27f4d.js → BMI_BOYS.zscore.yearly-00587ae6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-fd5e9dcb.js → BMI_GIRLS.percentile.monthly-3c233bad.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-437421bb.js → BMI_GIRLS.percentile.weekly-185bf4fa.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-821d0b60.js → BMI_GIRLS.percentile.yearly-1f69e51a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-5cac3960.js → BMI_GIRLS.zscore.monthly-a8ab4fc7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-1fd59b72.js → BMI_GIRLS.zscore.weekly-b6f9c907.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-9c0bdbae.js → BMI_GIRLS.zscore.yearly-4a943015.js} +0 -0
- /package/build/esm/{ChevronDown-6a7d989b.js → ChevronDown-47db581b.js} +0 -0
- /package/build/esm/{Close-c64d3014.js → Close-f3f1e767.js} +0 -0
- /package/build/esm/{Google-9d754c62.js → Google-3c21a472.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-b31fb4b4.js → HEAD CIRCUM_BOYS.percentile.monthly-16ce8b64.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-ac0a5264.js → HEAD CIRCUM_BOYS.percentile.weekly-1da0d5a2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7d20eaff.js → HEAD CIRCUM_BOYS.percentile.yearly-1d645b56.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-8739e70a.js → HEAD CIRCUM_BOYS.zscore.monthly-63346523.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b8812960.js → HEAD CIRCUM_BOYS.zscore.weekly-be7cdf71.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-709a676e.js → HEAD CIRCUM_BOYS.zscore.yearly-86f9de65.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1c7e2423.js → HEAD CIRCUM_GIRLS.percentile.monthly-25c76af8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-fd9f7c5e.js → HEAD CIRCUM_GIRLS.percentile.weekly-0f084155.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-1d0c94ef.js → HEAD CIRCUM_GIRLS.percentile.yearly-e4b06fa8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-b1d9fa37.js → HEAD CIRCUM_GIRLS.zscore.monthly-92ee7daf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-99bd4976.js → HEAD CIRCUM_GIRLS.zscore.weekly-c40cb0e4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b2c2d92a.js → HEAD CIRCUM_GIRLS.zscore.yearly-6ac30611.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b76d0b33.js → HEIGHT_BOYS.percentile.monthly-025a6f26.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-8109b0c0.js → HEIGHT_BOYS.percentile.weekly-f43ed845.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-b80934c7.js → HEIGHT_BOYS.percentile.yearly-e45e207a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-4b74fa0e.js → HEIGHT_BOYS.zscore.monthly-39b6e4bc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-28abf9d3.js → HEIGHT_BOYS.zscore.weekly-58bd48e3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-7043babb.js → HEIGHT_BOYS.zscore.yearly-991c9d1b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-63e8cab3.js → HEIGHT_GIRLS.percentile.monthly-0920743f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-cdbe09d5.js → HEIGHT_GIRLS.percentile.weekly-f3ca0d8a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-6ee4531f.js → HEIGHT_GIRLS.percentile.yearly-743e276a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-2c45ea19.js → HEIGHT_GIRLS.zscore.monthly-0f29a060.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-2cb19419.js → HEIGHT_GIRLS.zscore.weekly-b60aec01.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-eca4f1fc.js → HEIGHT_GIRLS.zscore.yearly-d2ca1618.js} +0 -0
- /package/build/esm/{Locale-78dd91cd.js → Locale-3e327e6c.js} +0 -0
- /package/build/esm/{Visible-69bafaa2.js → Visible-565bbbff.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-091d868c.js → WEIGHT_BOYS.percentile.monthly-5e5cb0e1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ed6e9efc.js → WEIGHT_BOYS.percentile.weekly-a3558ac2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-23c68a1e.js → WEIGHT_BOYS.percentile.yearly-d2700bd8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-98d0ef61.js → WEIGHT_BOYS.zscore.monthly-3f5dfd3b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-9b2c45fe.js → WEIGHT_BOYS.zscore.weekly-748a5894.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-ea18848d.js → WEIGHT_BOYS.zscore.yearly-3e25afb7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-60e07863.js → WEIGHT_GIRLS.percentile.monthly-87a8e77e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3507063b.js → WEIGHT_GIRLS.percentile.weekly-c41267e4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9978f885.js → WEIGHT_GIRLS.percentile.yearly-1b85545e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b885a6f6.js → WEIGHT_GIRLS.zscore.monthly-663a7e8b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-a38560b6.js → WEIGHT_GIRLS.zscore.weekly-d018b639.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-138070a8.js → WEIGHT_GIRLS.zscore.yearly-36282613.js} +0 -0
- /package/build/esm/{animation-2c75dbd2.js → animation-c578c615.js} +0 -0
- /package/build/esm/{constants-9b35ad0b.js → constants-0bfa4b87.js} +0 -0
- /package/build/esm/{constants-10672739.js → constants-778f73c1.js} +0 -0
- /package/build/esm/{constants-f26939f5.js → constants-8e585c0d.js} +0 -0
- /package/build/esm/{dataTransform-d69afa4d.js → dataTransform-09b5dd79.js} +0 -0
- /package/build/esm/{index-b50e5b6c.js → index-1ced896c.js} +0 -0
- /package/build/esm/{index-56596240.js → index-281ff4d9.js} +0 -0
- /package/build/esm/{index-ff4259d8.js → index-4574cdac.js} +0 -0
- /package/build/esm/{index-84ae9504.js → index-4dcee86e.js} +0 -0
- /package/build/esm/{index-6b9ef138.js → index-7cdf2cd8.js} +0 -0
- /package/build/esm/{index-065bf7e9.js → index-cbd041b5.js} +0 -0
- /package/build/esm/{index-d576702b.js → index-efbe3a32.js} +0 -0
- /package/build/esm/{index-be3e61bd.js → index-f28f51ef.js} +0 -0
- /package/build/esm/{index.styles-9fbd164a.js → index.styles-23458a6d.js} +0 -0
- /package/build/esm/{localizeNumberFormat-665721cc.js → localizeNumberFormat-528773e0.js} +0 -0
- /package/build/esm/{normalizeLink-80a5acaf.js → normalizeLink-d6274bbc.js} +0 -0
- /package/build/esm/{number-9b343f37.js → number-e74c598a.js} +0 -0
- /package/build/esm/{paths-fad80d5a.js → paths-237acd82.js} +0 -0
- /package/build/esm/{shared-62c44d53.js → shared-f9eeb46c.js} +0 -0
- /package/build/esm/{text-59e76dd7.js → text-8bfcb0b5.js} +0 -0
- /package/build/esm/{translationsContext-9f1f49da.js → translationsContext-d2b5a61b.js} +0 -0
- /package/build/esm/{tslib.es6-438c13d7.js → tslib.es6-c0b1cd94.js} +0 -0
- /package/build/esm/{types-adbda911.js → types-e8512c5f.js} +0 -0
- /package/build/esm/{useIsInit-179867a4.js → useIsInit-f729c2c2.js} +0 -0
- /package/build/esm/{useOutsideClick-610e5bee.js → useOutsideClick-4857153e.js} +0 -0
- /package/build/esm/{useScrollbarSize-83fd1cf8.js → useScrollbarSize-fcc6ef21.js} +0 -0
- /package/build/esm/{useUniqueId-345ebff3.js → useUniqueId-1aa82c33.js} +0 -0
- /package/build/esm/{utils-19da5326.js → utils-4c9db61c.js} +0 -0
- /package/build/{index-97d59516.js → index-04fe38ad.js} +0 -0
- /package/build/{index-7f6691ef.js → index-8fdadb82.js} +0 -0
- /package/build/{index-9d933bb7.js → index-a9d3b563.js} +0 -0
- /package/build/{index-68e67841.js → index-b09c0885.js} +0 -0
- /package/build/{index-c03aa380.js → index-d6798f99.js} +0 -0
- /package/build/{index-a8c109b7.js → index-d9549c48.js} +0 -0
- /package/build/{index-62fb22db.js → index-ec804d3a.js} +0 -0
- /package/build/{index-1ae26665.js → index-f264d06a.js} +0 -0
- /package/build/{index.styles-54dbd34d.js → index.styles-0bd3f778.js} +0 -0
- /package/build/{localizeNumberFormat-e3768335.js → localizeNumberFormat-31861782.js} +0 -0
- /package/build/{normalizeLink-7689ddb6.js → normalizeLink-ea5370a3.js} +0 -0
- /package/build/{number-a2730dd5.js → number-b504ccea.js} +0 -0
- /package/build/{paths-5a4e7161.js → paths-8ac487d1.js} +0 -0
- /package/build/{shared-731bc7c1.js → shared-c1681872.js} +0 -0
- /package/build/{text-b61d7a31.js → text-aecd4d4a.js} +0 -0
- /package/build/{translationsContext-cd7d6e45.js → translationsContext-d00809db.js} +0 -0
- /package/build/{tslib.es6-3cacf75c.js → tslib.es6-20b43eea.js} +0 -0
- /package/build/{types-632ff208.js → types-91a82fb3.js} +0 -0
- /package/build/{useIsInit-01f4811c.js → useIsInit-532f759e.js} +0 -0
- /package/build/{useOutsideClick-e7938ae9.js → useOutsideClick-ced14cee.js} +0 -0
- /package/build/{useScrollbarSize-26917e9e.js → useScrollbarSize-84d78d8e.js} +0 -0
- /package/build/{useUniqueId-325ae7f2.js → useUniqueId-c76809b6.js} +0 -0
- /package/build/{utils-c8be48e1.js → utils-2a28032e.js} +0 -0
package/build/lead.js
CHANGED
|
@@ -2,59 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-20b43eea.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var core = require('@mantine/core');
|
|
8
8
|
var debounce = require('lodash/debounce');
|
|
9
9
|
var form = require('@mantine/form');
|
|
10
10
|
var dayjs = require('dayjs');
|
|
11
|
-
var index = require('./index-
|
|
11
|
+
var index = require('./index-312cab9a.js');
|
|
12
12
|
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
13
|
-
var index$1 = require('./index-
|
|
14
|
-
var translationsContext = require('./translationsContext-
|
|
15
|
-
var utils$1 = require('./utils-
|
|
16
|
-
var index$2 = require('./index-
|
|
17
|
-
var index$3 = require('./index-
|
|
18
|
-
var index$5 = require('./index-
|
|
19
|
-
var index$4 = require('./index-
|
|
20
|
-
require('./index.styles-
|
|
13
|
+
var index$1 = require('./index-323f4397.js');
|
|
14
|
+
var translationsContext = require('./translationsContext-d00809db.js');
|
|
15
|
+
var utils$1 = require('./utils-2a28032e.js');
|
|
16
|
+
var index$2 = require('./index-a009cad4.js');
|
|
17
|
+
var index$3 = require('./index-87810c70.js');
|
|
18
|
+
var index$5 = require('./index-f82ab743.js');
|
|
19
|
+
var index$4 = require('./index-500486d6.js');
|
|
20
|
+
require('./index.styles-0bd3f778.js');
|
|
21
21
|
var hooks = require('@mantine/hooks');
|
|
22
|
-
require('./index-
|
|
23
|
-
var text = require('./text-
|
|
24
|
-
require('./index-
|
|
25
|
-
var utils = require('./utils-
|
|
22
|
+
require('./index-79a1d3f1.js');
|
|
23
|
+
var text = require('./text-aecd4d4a.js');
|
|
24
|
+
require('./index-5d190a00.js');
|
|
25
|
+
var utils = require('./utils-d1989377.js');
|
|
26
26
|
var dates = require('@mantine/dates');
|
|
27
|
-
var index$7 = require('./index-
|
|
28
|
-
var index$a = require('./index-
|
|
29
|
-
require('./index-
|
|
30
|
-
var usePlacesAutocomplete = require('./usePlacesAutocomplete-
|
|
31
|
-
var index$6 = require('./index-
|
|
32
|
-
var translationsProvider = require('./translationsProvider-
|
|
33
|
-
var Locale = require('./Locale-
|
|
27
|
+
var index$7 = require('./index-5bf1a9bc.js');
|
|
28
|
+
var index$a = require('./index-95ff590d.js');
|
|
29
|
+
require('./index-ec804d3a.js');
|
|
30
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-4af640db.js');
|
|
31
|
+
var index$6 = require('./index-0137a381.js');
|
|
32
|
+
var translationsProvider = require('./translationsProvider-c22e6542.js');
|
|
33
|
+
var Locale = require('./Locale-e4f4809e.js');
|
|
34
34
|
var uuid = require('uuid');
|
|
35
35
|
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
36
36
|
var PhoneInputBase = require('react-phone-number-input');
|
|
37
37
|
var styled = require('@emotion/styled');
|
|
38
38
|
var miscTheme = require('./miscTheme.js');
|
|
39
39
|
var react = require('@emotion/react');
|
|
40
|
-
var togetherComponentGlobalContext = require('./utils-
|
|
41
|
-
var index$8 = require('./index-
|
|
42
|
-
var index$9 = require('./index-
|
|
43
|
-
var index$b = require('./index-
|
|
40
|
+
var togetherComponentGlobalContext = require('./utils-129d3057.js');
|
|
41
|
+
var index$8 = require('./index-4b0e6ef1.js');
|
|
42
|
+
var index$9 = require('./index-d9549c48.js');
|
|
43
|
+
var index$b = require('./index-8b6ea64e.js');
|
|
44
44
|
var framerMotion = require('framer-motion');
|
|
45
45
|
var ReactDOM = require('react-dom');
|
|
46
|
-
var InputDate = require('./InputDate-
|
|
47
|
-
var index$c = require('./index-
|
|
48
|
-
var Close = require('./Close-
|
|
46
|
+
var InputDate = require('./InputDate-9e30b876.js');
|
|
47
|
+
var index$c = require('./index-ba8655a3.js');
|
|
48
|
+
var Close = require('./Close-bebcc13f.js');
|
|
49
49
|
require('./constantsIsProduction.js');
|
|
50
|
-
require('./normalizeLink-
|
|
50
|
+
require('./normalizeLink-ea5370a3.js');
|
|
51
51
|
require('@hhgtech/icons/other');
|
|
52
52
|
require('@mantine/carousel');
|
|
53
53
|
require('classnames');
|
|
54
|
-
require('./useUniqueId-
|
|
54
|
+
require('./useUniqueId-c76809b6.js');
|
|
55
55
|
require('./constantsSite.js');
|
|
56
56
|
require('@hhgtech/icons/core');
|
|
57
|
-
require('./shared-
|
|
57
|
+
require('./shared-c1681872.js');
|
|
58
58
|
require('@mantine/notifications');
|
|
59
59
|
require('date-fns/locale');
|
|
60
60
|
require('./constantsRiskScreener.js');
|
|
@@ -70,11 +70,11 @@ require('./i18n-values/vi-VN.js');
|
|
|
70
70
|
require('./i18n-values/vi-VN_MB.js');
|
|
71
71
|
require('./i18n-values/zh-SG.js');
|
|
72
72
|
require('./i18n-values/zh-TW.js');
|
|
73
|
-
require('./index-
|
|
73
|
+
require('./index-a9d3b563.js');
|
|
74
74
|
require('slugify');
|
|
75
75
|
require('string-format');
|
|
76
76
|
require('./togetherApiPaths.js');
|
|
77
|
-
require('./constants-
|
|
77
|
+
require('./constants-8771bb6b.js');
|
|
78
78
|
require('vaul');
|
|
79
79
|
|
|
80
80
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -152,33 +152,6 @@ const LEADGEN_BLOCK_INPUT = [
|
|
|
152
152
|
LEADGEN_BLOCK.CheckboxBlock,
|
|
153
153
|
LEADGEN_BLOCK.TncBlock,
|
|
154
154
|
];
|
|
155
|
-
const leadGenFieldNamePhone = (listBlockAdded) => {
|
|
156
|
-
return listBlockAdded
|
|
157
|
-
.filter(({ name }) => [
|
|
158
|
-
LEADGEN_BLOCK.PhoneBlock,
|
|
159
|
-
LEADGEN_BLOCK.PhoneOtpBlock,
|
|
160
|
-
LEADGEN_BLOCK.WhatsappOtpBlock,
|
|
161
|
-
LEADGEN_BLOCK.ZaloOtpBlock,
|
|
162
|
-
].includes(name))
|
|
163
|
-
.map(({ data }) => data.value);
|
|
164
|
-
};
|
|
165
|
-
const leadGenFieldRequired = (blocks) => {
|
|
166
|
-
if (!(blocks === null || blocks === void 0 ? void 0 : blocks.length)) {
|
|
167
|
-
return [];
|
|
168
|
-
}
|
|
169
|
-
return blocks
|
|
170
|
-
.map(({ data, name, id }) => {
|
|
171
|
-
const { required, value } = data;
|
|
172
|
-
if (name === LEADGEN_BLOCK.TncBlock && id && required) {
|
|
173
|
-
return `TNC-${id}`;
|
|
174
|
-
}
|
|
175
|
-
if (required) {
|
|
176
|
-
return value;
|
|
177
|
-
}
|
|
178
|
-
return;
|
|
179
|
-
})
|
|
180
|
-
.filter(Boolean);
|
|
181
|
-
};
|
|
182
155
|
const SSO_MAP_LEAD = ['name', 'email', 'birthday', 'phone', 'gender'];
|
|
183
156
|
const LEAD_LOCALE_DATA$1 = {
|
|
184
157
|
'vi-VN': {
|
|
@@ -261,6 +234,33 @@ const mappingSSOToLead = (userInfoProps) => {
|
|
|
261
234
|
return;
|
|
262
235
|
}
|
|
263
236
|
};
|
|
237
|
+
const leadGenFieldNamePhone = (listBlockAdded) => {
|
|
238
|
+
return listBlockAdded
|
|
239
|
+
.filter(({ name }) => [
|
|
240
|
+
LEADGEN_BLOCK.PhoneBlock,
|
|
241
|
+
LEADGEN_BLOCK.PhoneOtpBlock,
|
|
242
|
+
LEADGEN_BLOCK.WhatsappOtpBlock,
|
|
243
|
+
LEADGEN_BLOCK.ZaloOtpBlock,
|
|
244
|
+
].includes(name))
|
|
245
|
+
.map(({ data }) => data.value);
|
|
246
|
+
};
|
|
247
|
+
const leadGenFieldRequired = (blocks) => {
|
|
248
|
+
if (!(blocks === null || blocks === void 0 ? void 0 : blocks.length)) {
|
|
249
|
+
return [];
|
|
250
|
+
}
|
|
251
|
+
return blocks
|
|
252
|
+
.map(({ data, name, id }) => {
|
|
253
|
+
const { required, value } = data;
|
|
254
|
+
if (name === LEADGEN_BLOCK.TncBlock && id && required) {
|
|
255
|
+
return `TNC-${id}`;
|
|
256
|
+
}
|
|
257
|
+
if (required) {
|
|
258
|
+
return value;
|
|
259
|
+
}
|
|
260
|
+
return;
|
|
261
|
+
})
|
|
262
|
+
.filter(Boolean);
|
|
263
|
+
};
|
|
264
264
|
const formatCampaignDetail = (campaign) => {
|
|
265
265
|
if (!campaign) {
|
|
266
266
|
return {};
|
|
@@ -407,6 +407,55 @@ const formatLeadGenFormValue = (values = {}, blocks) => {
|
|
|
407
407
|
return newValues;
|
|
408
408
|
};
|
|
409
409
|
|
|
410
|
+
const TIMEOUT = 30 * 60 * 1000;
|
|
411
|
+
const WAITING_FIRST_RESP = 'waitingTheFirstResponse';
|
|
412
|
+
const CachedSystem = {
|
|
413
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
414
|
+
cached: {},
|
|
415
|
+
clearCached: (prefix) => {
|
|
416
|
+
console.log(CachedSystem.cached);
|
|
417
|
+
Object.keys(CachedSystem.cached)
|
|
418
|
+
.filter((k) => k.startsWith(prefix))
|
|
419
|
+
.forEach((key) => {
|
|
420
|
+
console.log(key);
|
|
421
|
+
CachedSystem.cached[key] = undefined;
|
|
422
|
+
});
|
|
423
|
+
},
|
|
424
|
+
withCached: (key, fnResponse, timeout = TIMEOUT) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
425
|
+
if (CachedSystem.cached[key] === WAITING_FIRST_RESP) {
|
|
426
|
+
return new Promise((resolve) => {
|
|
427
|
+
const startDate = new Date().getTime();
|
|
428
|
+
const intervalId = setInterval(() => {
|
|
429
|
+
const currentDate = new Date().getTime();
|
|
430
|
+
if (currentDate - startDate > 3000) {
|
|
431
|
+
clearInterval(intervalId);
|
|
432
|
+
}
|
|
433
|
+
if (typeof CachedSystem.cached[key] === 'object') {
|
|
434
|
+
resolve(CachedSystem.cached[key]);
|
|
435
|
+
clearInterval(intervalId);
|
|
436
|
+
}
|
|
437
|
+
}, 100);
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
if (typeof CachedSystem.cached[key] === 'object') {
|
|
441
|
+
return CachedSystem.cached[key];
|
|
442
|
+
}
|
|
443
|
+
CachedSystem.cached[key] = 'waitingTheFirstResponse';
|
|
444
|
+
try {
|
|
445
|
+
const result = yield fnResponse();
|
|
446
|
+
CachedSystem.cached[key] = result;
|
|
447
|
+
setTimeout(() => {
|
|
448
|
+
CachedSystem.cached[key] = undefined;
|
|
449
|
+
}, timeout);
|
|
450
|
+
return result;
|
|
451
|
+
}
|
|
452
|
+
catch (err) {
|
|
453
|
+
CachedSystem.cached[key] = undefined;
|
|
454
|
+
return Promise.reject(err);
|
|
455
|
+
}
|
|
456
|
+
}),
|
|
457
|
+
};
|
|
458
|
+
|
|
410
459
|
class Store {
|
|
411
460
|
constructor() {
|
|
412
461
|
this.apiSsoUrl = 'https://staging-id.hellobacsi.com/';
|
|
@@ -416,6 +465,8 @@ class Store {
|
|
|
416
465
|
}
|
|
417
466
|
const leadStore = new Store();
|
|
418
467
|
|
|
468
|
+
const LEADGEN_CACHE_KEY = 'LeadGen_';
|
|
469
|
+
const LEADGEN_CACHE_TIME = 5 * 60 * 1000; // 5 minutes
|
|
419
470
|
const METHOD = {
|
|
420
471
|
GET: 'get',
|
|
421
472
|
POST: 'POST',
|
|
@@ -602,7 +653,19 @@ const trackingSubscription = (data) => {
|
|
|
602
653
|
data,
|
|
603
654
|
});
|
|
604
655
|
};
|
|
656
|
+
function getCampaigns({ url, siteId, apiLeadUrl, }) {
|
|
657
|
+
const ga_client_id = miscCookieHelper.getCookie('_ga') || null;
|
|
658
|
+
const AS_PATH = `${apiLeadUrl || leadStore.apiLeadUrl}api/campaign/${siteId}`;
|
|
659
|
+
return CachedSystem.withCached(LEADGEN_CACHE_KEY + AS_PATH, () => fetch(AS_PATH, {
|
|
660
|
+
method: 'POST',
|
|
661
|
+
headers: { 'Content-Type': 'application/json' },
|
|
662
|
+
body: JSON.stringify({ url, ga_client_id }),
|
|
663
|
+
})
|
|
664
|
+
.then((res) => res.json())
|
|
665
|
+
.then(({ _data }) => (_data === null || _data === void 0 ? void 0 : _data.campaigns) || []), LEADGEN_CACHE_TIME);
|
|
666
|
+
}
|
|
605
667
|
const Service = {
|
|
668
|
+
getCampaigns,
|
|
606
669
|
campaignGetById,
|
|
607
670
|
getCampaignByCode,
|
|
608
671
|
getSubscriptionBoxInfo,
|
|
@@ -1655,12 +1718,6 @@ const getTranslations = (locale) => {
|
|
|
1655
1718
|
return translationsMap['en-PH'];
|
|
1656
1719
|
};
|
|
1657
1720
|
|
|
1658
|
-
const LeadGenTranslationProvider = (props) => {
|
|
1659
|
-
const { locale, children } = props;
|
|
1660
|
-
const translationContextValue = React.useMemo(() => ({ locale, values: getTranslations(locale) }), [locale]);
|
|
1661
|
-
return (React__default["default"].createElement(translationsContext.TranslationsContext.Provider, { value: translationContextValue }, children));
|
|
1662
|
-
};
|
|
1663
|
-
|
|
1664
1721
|
// import mockLeadData from './mockLeadData'
|
|
1665
1722
|
const listCampaignScheduled = [];
|
|
1666
1723
|
const listCampaignScheduledToActivated = [];
|
|
@@ -1836,167 +1893,167 @@ function clearPassiveEvent() {
|
|
|
1836
1893
|
LEAD_SCROLL_EVENT = null;
|
|
1837
1894
|
}
|
|
1838
1895
|
}
|
|
1839
|
-
function
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
.
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
//
|
|
1875
|
-
//
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1896
|
+
function getCurrentCampaign({ campaigns = [], leadDomain, leadCurrentUrl, }) {
|
|
1897
|
+
if (!miscCookieHelper.getCookie('hhg-id')) {
|
|
1898
|
+
miscCookieHelper.setCookie('hhg-id', uuid.v1(), { domain: `.${leadDomain}`, path: '/' });
|
|
1899
|
+
LeadLog('😍 Set HHG ID cookie');
|
|
1900
|
+
}
|
|
1901
|
+
// TODO: HP-534 Filter desktop
|
|
1902
|
+
let campaignsDevice = [];
|
|
1903
|
+
if (isMobile()) {
|
|
1904
|
+
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
|
|
1905
|
+
}
|
|
1906
|
+
else {
|
|
1907
|
+
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
|
|
1908
|
+
}
|
|
1909
|
+
LeadLog(`👓 campaignsDevice`, campaignsDevice);
|
|
1910
|
+
LeadLog('--listCampaignScheduled', listCampaignScheduled);
|
|
1911
|
+
LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
|
|
1912
|
+
LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
|
|
1913
|
+
LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
|
|
1914
|
+
LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
|
|
1915
|
+
LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
|
|
1916
|
+
// Check links
|
|
1917
|
+
let listLinksObj = campaignsDevice
|
|
1918
|
+
.map((i, index) => i.targets
|
|
1919
|
+
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
|
|
1920
|
+
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
1921
|
+
.flat(1) || [];
|
|
1922
|
+
// Check list link match current href
|
|
1923
|
+
listLinksObj = listLinksObj.filter((i) => {
|
|
1924
|
+
var _a;
|
|
1925
|
+
const target = new URL(String(i.target).toLowerCase());
|
|
1926
|
+
if (i.option == 'exact_match')
|
|
1927
|
+
// FOR TEST LOCAL:
|
|
1928
|
+
// return Boolean(location.pathname === target.pathname)
|
|
1929
|
+
return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
|
|
1930
|
+
if (i.option == 'start_with') {
|
|
1931
|
+
// FOR TEST LOCAL:
|
|
1932
|
+
// if (location.pathname.includes(target.pathname)) {
|
|
1933
|
+
if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
|
|
1934
|
+
const listExcluding = i.sub_target
|
|
1935
|
+
.filter((i) => i.option == 'excluding')
|
|
1936
|
+
.map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
|
|
1937
|
+
return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
|
|
1879
1938
|
}
|
|
1880
1939
|
else {
|
|
1881
|
-
|
|
1940
|
+
return false;
|
|
1882
1941
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
const timeoutRule = Number((_c = rules.find((i) => i.rule == 'time')) === null || _c === void 0 ? void 0 : _c.value);
|
|
1960
|
-
LeadLog(`timeoutRule`, timeoutRule);
|
|
1961
|
-
const scrollRule = Number((_d = rules.find((i) => i.rule == 'scroll')) === null || _d === void 0 ? void 0 : _d.value);
|
|
1962
|
-
LeadLog(`scrollRule`, scrollRule);
|
|
1963
|
-
let impressionAction = 'TIME';
|
|
1964
|
-
if (Number.isInteger(timeoutRule)) {
|
|
1965
|
-
impressionAction = 'TIME';
|
|
1966
|
-
LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
|
|
1967
|
-
timeoutRef = setTimeout(() => {
|
|
1968
|
-
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
1969
|
-
}, timeoutRule * 1000);
|
|
1970
|
-
}
|
|
1971
|
-
if (Number.isInteger(scrollRule)) {
|
|
1972
|
-
impressionAction = 'SCROLL';
|
|
1973
|
-
LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
|
|
1974
|
-
const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
|
|
1975
|
-
document.querySelector('body');
|
|
1976
|
-
const pct = $p.getBoundingClientRect().top;
|
|
1977
|
-
const pb = $p.offsetHeight;
|
|
1978
|
-
LeadLog(`👓 Element check scroll: `, $p);
|
|
1979
|
-
LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
|
|
1980
|
-
const wt = window.pageYOffset || document.documentElement.scrollTop;
|
|
1981
|
-
let percent = 0;
|
|
1982
|
-
if (wt >= pct) {
|
|
1983
|
-
percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
|
|
1984
|
-
}
|
|
1985
|
-
LeadLog('---Scroll', percent, scrollRule);
|
|
1986
|
-
// TODO: CHECK FOOTER HEIGHT
|
|
1987
|
-
if (percent >= scrollRule) {
|
|
1988
|
-
window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
|
|
1989
|
-
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
1990
|
-
}
|
|
1991
|
-
};
|
|
1992
|
-
window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
|
|
1993
|
-
passive: true,
|
|
1994
|
-
});
|
|
1995
|
-
}
|
|
1942
|
+
}
|
|
1943
|
+
});
|
|
1944
|
+
// Check tags
|
|
1945
|
+
const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
|
|
1946
|
+
const listTags = listMetaTag.map((i) => i.content);
|
|
1947
|
+
let listCampaignHasTag = [];
|
|
1948
|
+
let listTagsObj = [];
|
|
1949
|
+
if (listTags && listTags.length) {
|
|
1950
|
+
listCampaignHasTag = campaignsDevice
|
|
1951
|
+
.map((i, index) => i.targets
|
|
1952
|
+
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
|
|
1953
|
+
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
1954
|
+
.flat(1);
|
|
1955
|
+
listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
|
|
1956
|
+
}
|
|
1957
|
+
const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
|
|
1958
|
+
const cookieKeys = document.cookie.split('; ').map((i) => i.split('=')[0]);
|
|
1959
|
+
const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
|
|
1960
|
+
LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
|
|
1961
|
+
const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
|
|
1962
|
+
LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
|
|
1963
|
+
const listCampaignSubmitedClosed = [
|
|
1964
|
+
...listCampaignCodeSubmited,
|
|
1965
|
+
...listCampaignCodeClosed,
|
|
1966
|
+
];
|
|
1967
|
+
const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
|
|
1968
|
+
const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
|
|
1969
|
+
return !hasSubmited;
|
|
1970
|
+
});
|
|
1971
|
+
const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
|
|
1972
|
+
// .sort(
|
|
1973
|
+
// (a, b) =>
|
|
1974
|
+
// (listCampaignValid[a.campaignIndex]?.score || 0) -
|
|
1975
|
+
// (listCampaignValid[b.campaignIndex]?.score || 0),
|
|
1976
|
+
// )
|
|
1977
|
+
LeadLog('--listCampaignValid : ', listCampaignValid);
|
|
1978
|
+
if (listCampaignValid && listCampaignValid.length) {
|
|
1979
|
+
const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
|
|
1980
|
+
return CAMPAIGN_SHOW;
|
|
1981
|
+
}
|
|
1982
|
+
else {
|
|
1983
|
+
LeadLog('🚧 No lead campaigns on current URL, tags');
|
|
1984
|
+
return null;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
function addEventShowCurrentCampaign({ campaign: CAMPAIGN_SHOW, onShowPopup, }) {
|
|
1988
|
+
var _a, _b;
|
|
1989
|
+
LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
|
|
1990
|
+
const { rules } = CAMPAIGN_SHOW;
|
|
1991
|
+
// CHECK RULE TRIGGER POPUP
|
|
1992
|
+
const timeoutRule = Number((_a = rules.find((i) => i.rule == 'time')) === null || _a === void 0 ? void 0 : _a.value);
|
|
1993
|
+
LeadLog(`timeoutRule`, timeoutRule);
|
|
1994
|
+
const scrollRule = Number((_b = rules.find((i) => i.rule == 'scroll')) === null || _b === void 0 ? void 0 : _b.value);
|
|
1995
|
+
LeadLog(`scrollRule`, scrollRule);
|
|
1996
|
+
let impressionAction = 'TIME';
|
|
1997
|
+
if (Number.isInteger(timeoutRule)) {
|
|
1998
|
+
impressionAction = 'TIME';
|
|
1999
|
+
LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
|
|
2000
|
+
timeoutRef = setTimeout(() => {
|
|
2001
|
+
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
2002
|
+
}, timeoutRule * 1000);
|
|
2003
|
+
return { campaign: CAMPAIGN_SHOW, action: impressionAction };
|
|
2004
|
+
}
|
|
2005
|
+
if (Number.isInteger(scrollRule)) {
|
|
2006
|
+
impressionAction = 'SCROLL';
|
|
2007
|
+
LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
|
|
2008
|
+
const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
|
|
2009
|
+
document.querySelector('body');
|
|
2010
|
+
const pct = $p.getBoundingClientRect().top;
|
|
2011
|
+
const pb = $p.offsetHeight;
|
|
2012
|
+
LeadLog(`👓 Element check scroll: `, $p);
|
|
2013
|
+
LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
|
|
2014
|
+
const wt = window.pageYOffset || document.documentElement.scrollTop;
|
|
2015
|
+
let percent = 0;
|
|
2016
|
+
if (wt >= pct) {
|
|
2017
|
+
percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
|
|
1996
2018
|
}
|
|
1997
|
-
|
|
1998
|
-
|
|
2019
|
+
LeadLog('---Scroll', percent, scrollRule);
|
|
2020
|
+
// TODO: CHECK FOOTER HEIGHT
|
|
2021
|
+
if (percent >= scrollRule) {
|
|
2022
|
+
window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
|
|
2023
|
+
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
1999
2024
|
}
|
|
2025
|
+
};
|
|
2026
|
+
window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
|
|
2027
|
+
passive: true,
|
|
2028
|
+
});
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
|
|
2032
|
+
// clear previous passive event, check for new condition
|
|
2033
|
+
clearPassiveEvent();
|
|
2034
|
+
let leadCurrentUrl = DEBUG_URL;
|
|
2035
|
+
if (typeof window !== 'undefined') {
|
|
2036
|
+
const { location } = window;
|
|
2037
|
+
leadCurrentUrl = leadCurrentUrl || location.href.toLowerCase();
|
|
2038
|
+
}
|
|
2039
|
+
Service.getCampaigns({
|
|
2040
|
+
url: leadCurrentUrl,
|
|
2041
|
+
siteId: leadSiteId,
|
|
2042
|
+
apiLeadUrl: leadApi,
|
|
2043
|
+
})
|
|
2044
|
+
.then((campRes) => {
|
|
2045
|
+
LeadLog('List campagin: ', campRes);
|
|
2046
|
+
LEAD_RESET_VAR();
|
|
2047
|
+
const campaigns = (campRes || [])
|
|
2048
|
+
.filter(filterFnCampaign)
|
|
2049
|
+
.filter(fillterApprearanceTimeCampaign);
|
|
2050
|
+
const campaign = getCurrentCampaign({
|
|
2051
|
+
campaigns,
|
|
2052
|
+
leadCurrentUrl,
|
|
2053
|
+
leadDomain,
|
|
2054
|
+
});
|
|
2055
|
+
if (campaign && (campaign === null || campaign === void 0 ? void 0 : campaign.id)) {
|
|
2056
|
+
addEventShowCurrentCampaign({ campaign, onShowPopup });
|
|
2000
2057
|
}
|
|
2001
2058
|
})
|
|
2002
2059
|
.catch((err) => {
|
|
@@ -2013,147 +2070,149 @@ const LeadLog = (...params) => {
|
|
|
2013
2070
|
}
|
|
2014
2071
|
};
|
|
2015
2072
|
|
|
2073
|
+
const LeadGenInlineWithoutMemo = (props) => {
|
|
2074
|
+
const [campaign, setCampaign] = React.useState();
|
|
2075
|
+
const { forceCampaign, apiUrl, apiLeadUrl, siteId, siteDomain, DEBUG_URL } = props;
|
|
2076
|
+
React.useEffect(() => {
|
|
2077
|
+
if (forceCampaign) {
|
|
2078
|
+
setCampaign(forceCampaign);
|
|
2079
|
+
return;
|
|
2080
|
+
}
|
|
2081
|
+
(() => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
2082
|
+
const campaign = yield leadGenInlineGetCampaign({
|
|
2083
|
+
siteId,
|
|
2084
|
+
siteDomain,
|
|
2085
|
+
apiLeadUrl: apiUrl || apiLeadUrl || '',
|
|
2086
|
+
url: DEBUG_URL,
|
|
2087
|
+
});
|
|
2088
|
+
if (campaign) {
|
|
2089
|
+
setCampaign(campaign);
|
|
2090
|
+
}
|
|
2091
|
+
}))();
|
|
2092
|
+
}, [forceCampaign, DEBUG_URL, apiUrl, apiLeadUrl, siteId, siteDomain]);
|
|
2093
|
+
if (!campaign || !(campaign === null || campaign === void 0 ? void 0 : campaign.id)) {
|
|
2094
|
+
return null;
|
|
2095
|
+
}
|
|
2096
|
+
return (React__default["default"].createElement(LeadGen, Object.assign({}, props, { forceCampaign: campaign, apiUrl: apiUrl || apiLeadUrl, flatComponent: true })));
|
|
2097
|
+
};
|
|
2098
|
+
const LeadGenInline = React.memo(LeadGenInlineWithoutMemo);
|
|
2099
|
+
function leadGenInlineGetCampaign(props) {
|
|
2100
|
+
var _a;
|
|
2101
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
2102
|
+
const { url, apiLeadUrl, siteId, siteDomain } = props;
|
|
2103
|
+
const campaigns = yield Service.getCampaigns({ url, apiLeadUrl, siteId });
|
|
2104
|
+
const campaignsInline = (_a = (campaigns || [])) === null || _a === void 0 ? void 0 : _a.filter(({ extra_fields }) => {
|
|
2105
|
+
const { currentLayout } = extra_fields || {};
|
|
2106
|
+
return currentLayout === null || currentLayout === void 0 ? void 0 : currentLayout.includes('Inline');
|
|
2107
|
+
});
|
|
2108
|
+
return getCurrentCampaign({
|
|
2109
|
+
campaigns: campaignsInline,
|
|
2110
|
+
leadCurrentUrl: url,
|
|
2111
|
+
leadDomain: siteDomain,
|
|
2112
|
+
});
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
const LeadGenTranslationProvider = (props) => {
|
|
2117
|
+
const { locale, children } = props;
|
|
2118
|
+
const translationContextValue = React.useMemo(() => ({ locale, values: getTranslations(locale) }), [locale]);
|
|
2119
|
+
return (React__default["default"].createElement(translationsContext.TranslationsContext.Provider, { value: translationContextValue }, children));
|
|
2120
|
+
};
|
|
2121
|
+
|
|
2016
2122
|
const LeadGenContext = React.createContext({
|
|
2017
|
-
|
|
2123
|
+
onSubmit(value) {
|
|
2018
2124
|
/** Init for FAKING function */
|
|
2019
2125
|
LeadLog('** LeadGen Submit : ', value);
|
|
2020
2126
|
return Promise.reject(value);
|
|
2021
2127
|
},
|
|
2022
|
-
|
|
2023
|
-
/** Init for FAKING function */
|
|
2024
|
-
LeadLog('** LeadGen SubmitSubscriptionBox : ', value);
|
|
2025
|
-
return Promise.reject(value);
|
|
2026
|
-
},
|
|
2027
|
-
impression(type) {
|
|
2128
|
+
onImpression(value) {
|
|
2028
2129
|
/** Init for FAKING function */
|
|
2029
|
-
LeadLog('** LeadGen Impression : ',
|
|
2130
|
+
LeadLog('** LeadGen Impression : ', value);
|
|
2030
2131
|
return Promise.reject();
|
|
2031
2132
|
},
|
|
2032
|
-
/** For Subscription Box */
|
|
2033
|
-
subscriptionIcon: '',
|
|
2034
|
-
subscriptionTitle: '',
|
|
2035
|
-
subscriptionPhoneType: '',
|
|
2036
2133
|
});
|
|
2037
2134
|
const LeadGenContextProvider = (props) => {
|
|
2038
|
-
const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues,
|
|
2135
|
+
const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues, siteId, siteDomain, DEBUG_URL = '', children, articleId, categoryId, userInfo } = props, restProps = tslib_es6.__rest(props, ["campaign_code", "apiSsoUrl", "apiLeadUrl", "apiSubotUrl", "locale", "forceCampaign", "extraValues", "siteId", "siteDomain", "DEBUG_URL", "children", "articleId", "categoryId", "userInfo"]);
|
|
2039
2136
|
const { t } = index$1.useTranslations();
|
|
2040
|
-
const [
|
|
2137
|
+
const [rawForceCampaign, setRawForceCampaign] = React.useState(forceCampaignProps);
|
|
2138
|
+
const [forceCampaign, setForceCampaign] = React.useState(() => formatCampaignDetail(forceCampaignProps));
|
|
2041
2139
|
const [subscriptionInfo, setSubscriptionInfo] = React.useState({
|
|
2042
2140
|
subscriptionIcon: '',
|
|
2043
2141
|
subscriptionTitle: '',
|
|
2044
2142
|
subscriptionType: 'TypeA',
|
|
2045
2143
|
subscriptionPhoneType: '',
|
|
2046
|
-
subcriptionCateId: '',
|
|
2047
|
-
subcriptionCateName: '',
|
|
2048
2144
|
});
|
|
2049
2145
|
const locale = React.useMemo(() => {
|
|
2050
2146
|
return localeProps || Locale.LOCALE['PhilippinesEnglish'];
|
|
2051
2147
|
}, [localeProps]);
|
|
2052
|
-
const { url, campaign_id, cookie_id, ga_client_id, category_list, article_id, article_title, } = React.useMemo(() => ({
|
|
2053
|
-
url: location.href.toLowerCase() || '',
|
|
2054
|
-
cookie_id: miscCookieHelper.getCookie('hhg-id') || null,
|
|
2055
|
-
ga_client_id: miscCookieHelper.getCookie('_ga'),
|
|
2056
|
-
campaign_id: forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
|
|
2057
|
-
campaign_code: campaignCodeProps || (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code),
|
|
2058
|
-
category_list: categoryList,
|
|
2059
|
-
article_id: articleId,
|
|
2060
|
-
article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
|
|
2061
|
-
}), [
|
|
2062
|
-
campaignCodeProps,
|
|
2063
|
-
articleId,
|
|
2064
|
-
categoryList,
|
|
2065
|
-
forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
|
|
2066
|
-
extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
|
|
2067
|
-
subscriptionInfo === null || subscriptionInfo === void 0 ? void 0 : subscriptionInfo.subcriptionCateName,
|
|
2068
|
-
]);
|
|
2069
|
-
// const fetchCampaign = useCallback(
|
|
2070
|
-
// (campaign_code: string) => {
|
|
2071
|
-
// Service.getCampaignByCode(campaign_code).then((res) => {
|
|
2072
|
-
// const { _data } = res || {}
|
|
2073
|
-
// const { campaigns } = _data || {}
|
|
2074
|
-
// LeadLog('** LeadGen Campaign : ', campaigns)
|
|
2075
|
-
// setForceCampaign(formatCampaignDetail(campaigns))
|
|
2076
|
-
// })
|
|
2077
|
-
// },
|
|
2078
|
-
// [campaignCodeProps],
|
|
2079
|
-
// )
|
|
2080
2148
|
// TODO : Update form for LeadGen
|
|
2081
|
-
const
|
|
2149
|
+
const onSubmit = React.useCallback((data) => {
|
|
2082
2150
|
return Service.postSubscriptionBoxLead({ data });
|
|
2151
|
+
}, [forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.blocks]);
|
|
2152
|
+
const onImpression = React.useCallback((value) => {
|
|
2153
|
+
//
|
|
2154
|
+
console.log('** RYAN LeadGenContext.tsx 188 value : ', value);
|
|
2155
|
+
return Promise.resolve('dfdfdf');
|
|
2083
2156
|
}, []);
|
|
2084
2157
|
const submitSubscriptionBox = React.useCallback((value) => {
|
|
2085
|
-
const data = Object.assign(Object.assign({}, value), {
|
|
2158
|
+
const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), {
|
|
2086
2159
|
// campaign_id,
|
|
2087
|
-
site_domain, url: (value === null || value === void 0 ? void 0 : value.url) ||
|
|
2088
|
-
// ...extraValues,
|
|
2089
|
-
article_id, category_id: subscriptionInfo.subcriptionCateId, category_name: subscriptionInfo.subcriptionCateName, article_title });
|
|
2160
|
+
site_domain: siteDomain, url: (value === null || value === void 0 ? void 0 : value.url) || location.href.toLowerCase() || '', cookie_id: miscCookieHelper.getCookie('hhg-id') || null, ga_client_id: miscCookieHelper.getCookie('_ga') }), extraValues), { article_id: articleId, category_id: categoryId, article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '' });
|
|
2090
2161
|
return Service.postSubscriptionBoxLead({ data });
|
|
2091
2162
|
}, [
|
|
2092
2163
|
extraValues,
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
subscriptionInfo.subcriptionCateId,
|
|
2098
|
-
subscriptionInfo.subcriptionCateName,
|
|
2099
|
-
url,
|
|
2100
|
-
cookie_id,
|
|
2101
|
-
ga_client_id,
|
|
2164
|
+
extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
|
|
2165
|
+
siteDomain,
|
|
2166
|
+
articleId,
|
|
2167
|
+
categoryId,
|
|
2102
2168
|
]);
|
|
2103
|
-
const
|
|
2104
|
-
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
2169
|
+
const impressionSubscriptionBox = React.useCallback((type) => {
|
|
2105
2170
|
const impression = {
|
|
2106
2171
|
subscription_title: subscriptionInfo.subscriptionTitle,
|
|
2107
2172
|
name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || '',
|
|
2108
2173
|
area_code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '',
|
|
2109
2174
|
phone_number: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) || '',
|
|
2110
|
-
site_domain:
|
|
2175
|
+
site_domain: siteDomain,
|
|
2111
2176
|
url: location.href.toLowerCase(),
|
|
2112
2177
|
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
2113
|
-
ga_client_id:
|
|
2114
|
-
article_title,
|
|
2115
|
-
article_id,
|
|
2116
|
-
category_id:
|
|
2117
|
-
category_name:
|
|
2178
|
+
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
2179
|
+
article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
|
|
2180
|
+
article_id: articleId,
|
|
2181
|
+
category_id: categoryId,
|
|
2182
|
+
category_name: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name) || '',
|
|
2118
2183
|
type,
|
|
2119
2184
|
};
|
|
2120
2185
|
return Service.trackingSubscription(impression);
|
|
2121
2186
|
}, [
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
article_title,
|
|
2125
|
-
cookie_id,
|
|
2126
|
-
ga_client_id,
|
|
2127
|
-
subscriptionInfo.subcriptionCateId,
|
|
2128
|
-
subscriptionInfo.subcriptionCateName,
|
|
2187
|
+
articleId,
|
|
2188
|
+
categoryId,
|
|
2129
2189
|
subscriptionInfo.subscriptionTitle,
|
|
2130
|
-
|
|
2190
|
+
extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
|
|
2131
2191
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
|
|
2132
2192
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code,
|
|
2133
2193
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
2134
2194
|
]);
|
|
2135
2195
|
React.useEffect(() => {
|
|
2196
|
+
/** Force Campaign */
|
|
2136
2197
|
if (forceCampaignProps) {
|
|
2137
2198
|
setForceCampaign(formatCampaignDetail(forceCampaignProps));
|
|
2199
|
+
setRawForceCampaign(forceCampaignProps);
|
|
2138
2200
|
return;
|
|
2139
2201
|
}
|
|
2140
2202
|
/** For Subscription Box */
|
|
2141
|
-
if (
|
|
2203
|
+
if (categoryId) {
|
|
2142
2204
|
Service.getSubscriptionBoxInfo({
|
|
2143
|
-
category:
|
|
2144
|
-
site:
|
|
2205
|
+
category: categoryId,
|
|
2206
|
+
site: siteDomain,
|
|
2145
2207
|
slug: location === null || location === void 0 ? void 0 : location.pathname,
|
|
2146
2208
|
}).then((res) => {
|
|
2147
|
-
var _a;
|
|
2148
2209
|
const { _data } = res || {};
|
|
2149
|
-
const { item
|
|
2150
|
-
const { icon, content
|
|
2210
|
+
const { item, campaign_code, btn_type = 'zalo' } = _data || {};
|
|
2211
|
+
const { icon, content } = item || {};
|
|
2212
|
+
LeadLog('** LeadGen SubscriptionBox campaign_code : ', campaign_code);
|
|
2151
2213
|
LeadLog('** LeadGen SubscriptionBox subscription_icon : ', icon);
|
|
2152
2214
|
LeadLog('** LeadGen SubscriptionBox subscription_title : ', content);
|
|
2153
|
-
setSubscriptionInfo((prev) => {
|
|
2154
|
-
var _a, _b;
|
|
2155
|
-
return (Object.assign(Object.assign({}, prev), { subscriptionIcon: icon, subscriptionTitle: content, subscriptionPhoneType: btn_type, subcriptionCateId: cate_id, subcriptionCateName: (_b = (_a = category_list.filter((i) => i.termId == cate_id)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.name }));
|
|
2156
|
-
});
|
|
2215
|
+
setSubscriptionInfo((prev) => (Object.assign(Object.assign({}, prev), { subscriptionIcon: icon, subscriptionTitle: content, subscriptionPhoneType: btn_type })));
|
|
2157
2216
|
setForceCampaign(formatCampaignDetail({
|
|
2158
2217
|
id: 6993,
|
|
2159
2218
|
name: '',
|
|
@@ -2277,10 +2336,39 @@ const LeadGenContextProvider = (props) => {
|
|
|
2277
2336
|
});
|
|
2278
2337
|
return;
|
|
2279
2338
|
}
|
|
2280
|
-
|
|
2281
|
-
|
|
2339
|
+
if (campaignCodeProps) {
|
|
2340
|
+
Service.getCampaignByCode(campaignCodeProps).then((res) => {
|
|
2341
|
+
const { _data } = res || {};
|
|
2342
|
+
const { campaigns } = _data || {};
|
|
2343
|
+
LeadLog('** LeadGen Campaign : ', campaigns);
|
|
2344
|
+
setForceCampaign(formatCampaignDetail(campaigns));
|
|
2345
|
+
setRawForceCampaign(campaigns);
|
|
2346
|
+
});
|
|
2347
|
+
return;
|
|
2348
|
+
}
|
|
2349
|
+
// /** For LeadGen */
|
|
2350
|
+
// if (!leadStore.campaigns?.length) {
|
|
2351
|
+
// checkShowPopup({
|
|
2352
|
+
// leadApi: apiLeadUrl,
|
|
2353
|
+
// leadDomain: siteDomain,
|
|
2354
|
+
// leadSiteId: siteId,
|
|
2355
|
+
// onShowPopup(campaign: any, action: string) {
|
|
2356
|
+
// console.log('** RYAN LeadGenContext.tsx 421 action : ', action)
|
|
2357
|
+
// setForceCampaign(formatCampaignDetail(campaign))
|
|
2358
|
+
// setRawForceCampaign(campaign)
|
|
2359
|
+
// },
|
|
2360
|
+
// DEBUG_URL,
|
|
2361
|
+
// })
|
|
2282
2362
|
// }
|
|
2283
|
-
}, [
|
|
2363
|
+
}, [
|
|
2364
|
+
forceCampaignProps,
|
|
2365
|
+
campaignCodeProps,
|
|
2366
|
+
categoryId,
|
|
2367
|
+
siteId,
|
|
2368
|
+
siteDomain,
|
|
2369
|
+
apiLeadUrl,
|
|
2370
|
+
DEBUG_URL,
|
|
2371
|
+
]);
|
|
2284
2372
|
React.useEffect(() => {
|
|
2285
2373
|
leadStore.apiSsoUrl = apiSsoUrl;
|
|
2286
2374
|
leadStore.apiLeadUrl = apiLeadUrl;
|
|
@@ -2291,10 +2379,16 @@ const LeadGenContextProvider = (props) => {
|
|
|
2291
2379
|
}
|
|
2292
2380
|
return (React__default["default"].createElement(LeadGenContext.Provider, { value: Object.assign(Object.assign(Object.assign({}, restProps), subscriptionInfo), { userInfo, campaign_code: campaignCodeProps, apiSsoUrl,
|
|
2293
2381
|
apiLeadUrl,
|
|
2294
|
-
apiSubotUrl, locale: localeProps,
|
|
2295
|
-
|
|
2382
|
+
apiSubotUrl, locale: localeProps, extraValues,
|
|
2383
|
+
articleId,
|
|
2384
|
+
categoryId,
|
|
2385
|
+
siteDomain,
|
|
2386
|
+
forceCampaign,
|
|
2387
|
+
rawForceCampaign,
|
|
2388
|
+
onSubmit,
|
|
2389
|
+
onImpression,
|
|
2296
2390
|
submitSubscriptionBox,
|
|
2297
|
-
|
|
2391
|
+
impressionSubscriptionBox }) },
|
|
2298
2392
|
React__default["default"].createElement(LeadGenTranslationProvider, { locale: locale }, children)));
|
|
2299
2393
|
};
|
|
2300
2394
|
const useLeadGenContext = () => {
|
|
@@ -3307,7 +3401,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3307
3401
|
const { image, extra_fields, id: campaign_id, bot_id: campaign_subot_id = [], ThankYouBlock, } = forceCampaign || {};
|
|
3308
3402
|
const { textBlocks, listBlockAdded, actionBlocks } = extra_fields || {};
|
|
3309
3403
|
const { submitBlock } = actionBlocks || {};
|
|
3310
|
-
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish,
|
|
3404
|
+
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impressionSubscriptionBox, } = useLeadGenContext();
|
|
3311
3405
|
const { t } = index$1.useTranslations();
|
|
3312
3406
|
const { action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
3313
3407
|
const [loading, setLoading] = React.useState(false);
|
|
@@ -3367,7 +3461,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3367
3461
|
const reqValues = Object.assign(Object.assign({}, newValues), ssoValues);
|
|
3368
3462
|
const [res] = yield Promise.all([
|
|
3369
3463
|
submitSubscriptionBox(reqValues),
|
|
3370
|
-
|
|
3464
|
+
impressionSubscriptionBox('submit_form'),
|
|
3371
3465
|
]);
|
|
3372
3466
|
const { _data } = res || {};
|
|
3373
3467
|
const { model } = _data || {};
|
|
@@ -3413,7 +3507,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3413
3507
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
|
|
3414
3508
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
3415
3509
|
]);
|
|
3416
|
-
return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () =>
|
|
3510
|
+
return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impressionSubscriptionBox('impression') },
|
|
3417
3511
|
React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-phone-type": subscriptionPhoneType, "data-type": "subscription_box_A" },
|
|
3418
3512
|
showThankyou && (React__default["default"].createElement(LeadGenThankYou, { image: Object.assign(Object.assign({}, thankyouImage), { src: thankyouImage.src || `${apiLeadUrl}admin/img/thanksyou.png` }), title: thankyouTitle, description: thankyouDescription, button: thankyouButton })),
|
|
3419
3513
|
!showThankyou && (React__default["default"].createElement(LeadGenSubscriptionBoxA, { loading: loading, image: subscriptionIcon || image, title: subscription_title, submitText: (_c = submitBlock === null || submitBlock === void 0 ? void 0 : submitBlock.data) === null || _c === void 0 ? void 0 : _c.value, blocks: listBlockAdded, locale: locale, form: form, rules: validateObj, onFinish: middlewareOnSubmit })))));
|
|
@@ -3422,8 +3516,11 @@ const LeadGenSubscriptionBox$1 = React.memo(LeadGenSubscriptionBoxWithoutMemo);
|
|
|
3422
3516
|
|
|
3423
3517
|
const Container = () => {
|
|
3424
3518
|
const context = React.useContext(LeadGenContext);
|
|
3425
|
-
const { campaign_code, locale, siteId, siteDomain, userInfo, forceCampaign
|
|
3426
|
-
|
|
3519
|
+
const { campaign_code, locale, siteId, siteDomain, userInfo, forceCampaign } = context;
|
|
3520
|
+
if (!forceCampaign || !(forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id)) {
|
|
3521
|
+
return null;
|
|
3522
|
+
}
|
|
3523
|
+
return (React__default["default"].createElement(LeadGenSubscriptionBox$1, { locale: locale, siteId: siteId, siteDomain: siteDomain, userInfo: userInfo, forceCampaign: forceCampaign, campaign_code: campaign_code }));
|
|
3427
3524
|
};
|
|
3428
3525
|
Container.displayName = 'LeadGenSubscriptionBox';
|
|
3429
3526
|
const ALLOW_LOCALE = [Locale.LOCALE.Vietnam, Locale.LOCALE.Malaysia, Locale.LOCALE.Indonesia];
|
|
@@ -4145,7 +4242,7 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
|
|
|
4145
4242
|
React__default["default"].createElement(index$4.Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
|
|
4146
4243
|
};
|
|
4147
4244
|
|
|
4148
|
-
const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
|
|
4245
|
+
const InlineLayout = ({ flatComponent, content, inlinePosition, doImpression, }) => {
|
|
4149
4246
|
const target = React.useMemo(() => {
|
|
4150
4247
|
if (!inlinePosition)
|
|
4151
4248
|
return null;
|
|
@@ -4250,6 +4347,9 @@ const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
|
|
|
4250
4347
|
}
|
|
4251
4348
|
}
|
|
4252
4349
|
}, [inlinePosition]);
|
|
4350
|
+
if (!!flatComponent) {
|
|
4351
|
+
return (React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content));
|
|
4352
|
+
}
|
|
4253
4353
|
if (!inlinePosition || !target)
|
|
4254
4354
|
return null;
|
|
4255
4355
|
return ReactDOM.createPortal(React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content), target);
|
|
@@ -4745,15 +4845,14 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4745
4845
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = tslib_es6.__rest(_d, ["error"]);
|
|
4746
4846
|
return (React__default["default"].createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
4747
4847
|
React__default["default"].createElement(core.Input.Wrapper, { error: error },
|
|
4748
|
-
React__default["default"].createElement(index$3.Checkbox, Object.assign({ name: 'TNC-' + id, label: React__default["default"].createElement(index$2.Text, { as: "span", size: "c1", variant: "secondary", dangerouslySetInnerHTML: { __html: data.valueHTML }, styles:
|
|
4848
|
+
React__default["default"].createElement(index$3.Checkbox, Object.assign({ name: 'TNC-' + id, label: React__default["default"].createElement(index$2.Text, { as: "span", size: "c1", variant: "secondary", dangerouslySetInnerHTML: { __html: data.valueHTML }, styles: {
|
|
4749
4849
|
root: {
|
|
4750
4850
|
a: {
|
|
4751
|
-
textDecoration: 'underline
|
|
4851
|
+
textDecoration: 'underline',
|
|
4752
4852
|
textUnderlineOffset: '3px',
|
|
4753
|
-
color: `${theme.colors.gray[7]} !important`,
|
|
4754
4853
|
},
|
|
4755
4854
|
},
|
|
4756
|
-
}
|
|
4855
|
+
} }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }, tncInputProps)))));
|
|
4757
4856
|
}
|
|
4758
4857
|
return null;
|
|
4759
4858
|
})));
|
|
@@ -5006,7 +5105,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
5006
5105
|
];
|
|
5007
5106
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
5008
5107
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
5009
|
-
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, }) => {
|
|
5108
|
+
const LightboxLayout = ({ flatComponent, 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, }) => {
|
|
5010
5109
|
var _a, _b;
|
|
5011
5110
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
5012
5111
|
const { isMobile } = index$b.useScreenSize();
|
|
@@ -5406,7 +5505,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5406
5505
|
return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
|
|
5407
5506
|
}
|
|
5408
5507
|
else if (isInline) {
|
|
5409
|
-
return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5508
|
+
return (React__default["default"].createElement(InlineLayout, { flatComponent: flatComponent, action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5410
5509
|
}
|
|
5411
5510
|
return null;
|
|
5412
5511
|
};
|
|
@@ -5499,7 +5598,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
|
|
|
5499
5598
|
return null;
|
|
5500
5599
|
}
|
|
5501
5600
|
}
|
|
5502
|
-
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5601
|
+
const NewLeadPopup = ({ flatComponent, campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5503
5602
|
var _a, _b;
|
|
5504
5603
|
const { apiUrl, siteDomain } = React.useContext(LeadGenContext$1);
|
|
5505
5604
|
const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
|
|
@@ -5602,7 +5701,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
|
|
|
5602
5701
|
currentLayout == 'Fullscreen' ||
|
|
5603
5702
|
currentLayout == 'Sidebar' ||
|
|
5604
5703
|
currentLayout == 'Slider') {
|
|
5605
|
-
return (React__default["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 }));
|
|
5704
|
+
return (React__default["default"].createElement(LightboxLayout, { flatComponent: flatComponent, 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 }));
|
|
5606
5705
|
}
|
|
5607
5706
|
else if (currentLayout.includes('Skin')) {
|
|
5608
5707
|
return (React__default["default"].createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
|
|
@@ -5694,8 +5793,10 @@ const formatTrackingData = (params) => {
|
|
|
5694
5793
|
};
|
|
5695
5794
|
|
|
5696
5795
|
// mount css
|
|
5697
|
-
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, }) => {
|
|
5796
|
+
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, flatComponent, }) => {
|
|
5698
5797
|
var _a, _b;
|
|
5798
|
+
const theme = core.useMantineTheme();
|
|
5799
|
+
console.log({ theme });
|
|
5699
5800
|
const scrollEventHandlerRef = React.useRef();
|
|
5700
5801
|
const leadStartTimeRef = React.useRef(Date.now());
|
|
5701
5802
|
const { apiUrl } = React.useMemo(() => {
|
|
@@ -5806,12 +5907,10 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5806
5907
|
const { listBlockAdded = [] } = params || {};
|
|
5807
5908
|
if (!TEMPLATE_ALLOW_NEWTRACKING.includes(currentLayout))
|
|
5808
5909
|
return;
|
|
5809
|
-
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
5810
|
-
const cookieId = miscCookieHelper.getCookie('hhg-id') || '';
|
|
5811
5910
|
const data = formatTrackingData({
|
|
5812
5911
|
commonData: {
|
|
5813
|
-
cookie_id:
|
|
5814
|
-
ga_client_id:
|
|
5912
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id') || '',
|
|
5913
|
+
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
5815
5914
|
country_code: locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5816
5915
|
status: 'in_progress',
|
|
5817
5916
|
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
@@ -5821,28 +5920,13 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5821
5920
|
currentLayout,
|
|
5822
5921
|
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: [] }),
|
|
5823
5922
|
});
|
|
5824
|
-
return
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
}),
|
|
5832
|
-
fetch(`${apiUrl}api/campaign/${showCampaign.code}/impression`, {
|
|
5833
|
-
method: 'POST',
|
|
5834
|
-
headers: {
|
|
5835
|
-
'Content-Type': 'application/json',
|
|
5836
|
-
},
|
|
5837
|
-
body: JSON.stringify({
|
|
5838
|
-
action,
|
|
5839
|
-
url: location.href.toLowerCase(),
|
|
5840
|
-
title_article: document.title,
|
|
5841
|
-
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
5842
|
-
ga_client_id: gaCookie,
|
|
5843
|
-
}),
|
|
5844
|
-
}),
|
|
5845
|
-
]);
|
|
5923
|
+
return fetch(`${apiUrl}api/collection/tracking-completion`, {
|
|
5924
|
+
method: 'POST',
|
|
5925
|
+
headers: {
|
|
5926
|
+
'Content-Type': 'application/json',
|
|
5927
|
+
},
|
|
5928
|
+
body: JSON.stringify(data),
|
|
5929
|
+
});
|
|
5846
5930
|
};
|
|
5847
5931
|
React.useEffect(() => {
|
|
5848
5932
|
if (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code)
|
|
@@ -6051,7 +6135,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
6051
6135
|
!!currentLayout &&
|
|
6052
6136
|
!currentLayout.includes('Inline') &&
|
|
6053
6137
|
!currentLayout.includes('Sidebar') && (React__default["default"].createElement(core.Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
6054
|
-
React__default["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 })))));
|
|
6138
|
+
React__default["default"].createElement(NewLeadPopup, { flatComponent: flatComponent, campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
6055
6139
|
}))))))));
|
|
6056
6140
|
};
|
|
6057
6141
|
const LeadGen = _LeadGen;
|
|
@@ -6063,4 +6147,6 @@ LeadGen.OtpForm = OtpBlock$1;
|
|
|
6063
6147
|
LeadGen.Close = Close.Close;
|
|
6064
6148
|
|
|
6065
6149
|
exports.LeadGen = LeadGen;
|
|
6150
|
+
exports.LeadGenInline = LeadGenInline;
|
|
6066
6151
|
exports.LeadGenSubscriptionBox = LeadGenSubscriptionBox;
|
|
6152
|
+
exports.leadGenInlineGetCampaign = leadGenInlineGetCampaign;
|