@hhgtech/hhg-components 1.29.417-beta-3 → 1.29.417
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-a1ff6b6c.js → InputDate-860085e2.js} +20 -14
- package/build/{LastPeriod-95b19fbf.js → LastPeriod-7f6836ea.js} +1 -1
- package/build/{MobileBottomNavigationIcon-b2e8f671.js → MobileBottomNavigationIcon-b78060f8.js} +3 -3
- package/build/{Spinner-b3ae745a.js → Spinner-064d7887.js} +1 -1
- package/build/{WhatsApp-102f7e40.js → WhatsApp-ef2612f0.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/mantine/theme/input.d.ts +6 -7
- package/build/components/mantine/theme/text.d.ts +0 -51
- package/build/components.js +98 -98
- package/build/{constants-b3592f78.js → constants-918e7382.js} +1 -1
- package/build/constants.js +3 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-9ffee9ea.js → core-9c6dc08d.js} +1 -1
- package/build/{dataTransform-eee363f6.js → dataTransform-083ecf10.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-facacd44.js → editor-e3026e06.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-0c5bd1af.js → InputDate-c6943232.js} +20 -14
- package/build/esm/{LastPeriod-e85ac14b.js → LastPeriod-553656af.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-60ee2dcd.js → MobileBottomNavigationIcon-a3b0ac1a.js} +3 -3
- package/build/esm/{Spinner-19ca61e1.js → Spinner-cf3eef38.js} +1 -1
- package/build/esm/{WhatsApp-87bf8c1e.js → WhatsApp-0aa38272.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/mantine/theme/input.d.ts +6 -7
- package/build/esm/components/mantine/theme/text.d.ts +0 -51
- package/build/esm/components.js +98 -98
- package/build/esm/{constants-0a82c2f7.js → constants-e746bea8.js} +1 -1
- package/build/esm/constants.js +3 -3
- package/build/esm/constantsDomainLocales.js +1 -1
- package/build/esm/constantsRiskScreener.js +2 -2
- package/build/esm/constantsSite.js +2 -2
- package/build/esm/{core-1c77485d.js → core-f0baba3f.js} +1 -1
- package/build/esm/{dataTransform-51a72b79.js → dataTransform-7263d90c.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-1fd39c5f.js → editor-0a5d4ad8.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-9612877a.js → healthTools-d7818aab.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-53c3f6af.js → index-03420728.js} +6 -6
- package/build/esm/{index-f52737d8.js → index-0a488271.js} +17 -17
- package/build/esm/{index-1ff0f082.js → index-0b9544ce.js} +15 -15
- package/build/esm/{index-9c953e50.js → index-105374ed.js} +17 -17
- package/build/esm/{index-acd0f608.js → index-12af6e65.js} +3 -3
- package/build/esm/{index-9c0bea69.js → index-1af6a755.js} +4 -4
- package/build/esm/{index-bddcc6de.js → index-1eecf741.js} +13 -13
- package/build/esm/{index-04b5675c.js → index-2b0ae101.js} +15 -15
- package/build/esm/{index-a3f588c6.js → index-2e0bd0e8.js} +7 -7
- package/build/esm/{index-713a7862.js → index-3017681c.js} +1 -1
- package/build/esm/{index-90da5c58.js → index-3067c112.js} +3 -3
- package/build/esm/{index-3ad1fd61.js → index-30f799b6.js} +3 -3
- package/build/esm/{index-14b1ab9b.js → index-32c466ec.js} +15 -9
- package/build/esm/{index-d9fd39cf.js → index-335d9430.js} +2 -2
- package/build/esm/{index-9b19db5d.js → index-4210a277.js} +5 -5
- package/build/esm/{index-9bffe3b9.js → index-445da069.js} +1 -1
- package/build/esm/{index-2e388f54.js → index-4dae0bf7.js} +2 -2
- package/build/esm/{index-00bead35.js → index-5bdd1777.js} +24 -24
- package/build/esm/{index-657f19f9.js → index-5e2002e6.js} +3 -3
- package/build/esm/{index-4759f5b3.js → index-689b89e9.js} +30 -30
- package/build/esm/{index-f0ffb722.js → index-6d801ccc.js} +2 -2
- package/build/esm/{index-a2fd7fb1.js → index-74d772bb.js} +2 -2
- package/build/esm/{index-b6233057.js → index-76c6f413.js} +4 -4
- package/build/esm/{index-ad47616b.js → index-7a2d9628.js} +2 -2
- package/build/esm/{index-d9cdb8d8.js → index-7bb7b0ab.js} +2 -2
- package/build/esm/{index-fd90d033.js → index-7f07997b.js} +7 -7
- package/build/esm/{index-dfb60c5c.js → index-82f28c8a.js} +22 -22
- package/build/esm/{index-bdccd9b9.js → index-83666d2b.js} +17 -17
- package/build/esm/{index-f906bcfe.js → index-85ee209d.js} +32 -32
- package/build/esm/{index-b28575d7.js → index-86dba4d0.js} +6 -6
- package/build/esm/{index-7bfdbad3.js → index-87fc8947.js} +3 -3
- package/build/esm/{index-2ed9aef6.js → index-894a2bdc.js} +2 -2
- package/build/esm/{index-15f07bbc.js → index-8b97a08b.js} +2 -2
- package/build/esm/{index-07da3b18.js → index-8d4eb39a.js} +3 -3
- package/build/esm/{index-6ad72824.js → index-8deaa637.js} +13 -13
- package/build/esm/{index-3bf7a39d.js → index-90ec1324.js} +2 -2
- package/build/esm/{index-cf7ce781.js → index-9463eee4.js} +11 -11
- package/build/esm/{index-a08805ba.js → index-973fdd43.js} +1 -1
- package/build/esm/{index-31d4f531.js → index-99bb09af.js} +1 -1
- package/build/esm/{index-05fe8ca8.js → index-a0e81ada.js} +2 -2
- package/build/esm/{index-29bb91a4.js → index-a14bfdf0.js} +16 -16
- package/build/esm/{index-2679ee67.js → index-a427d65f.js} +2 -2
- package/build/esm/{index-eee1f458.js → index-a5c795a1.js} +2 -2
- package/build/esm/{index-84791872.js → index-a90ef289.js} +41 -21
- package/build/esm/{index-1b7cf829.js → index-aa5ca5b5.js} +32 -32
- package/build/esm/{index-a5211346.js → index-aeceb78e.js} +6 -6
- package/build/esm/{index-3e0f3bbe.js → index-b8828dea.js} +3 -3
- package/build/esm/{index-3618d717.js → index-b9dc63ec.js} +3 -3
- package/build/esm/{index-b360e783.js → index-baf1b7a5.js} +15 -15
- package/build/esm/{index-84e45115.js → index-bd1ec2b0.js} +5 -5
- package/build/esm/{index-04ec8419.js → index-c0d900a8.js} +2 -2
- package/build/esm/{index-921b5234.js → index-c63fce4c.js} +17 -17
- package/build/esm/{index-04c536cf.js → index-c6835427.js} +1 -1
- package/build/esm/{index-330e17bb.js → index-c8fa27f2.js} +13 -13
- package/build/esm/{index-e5f55c24.js → index-cb181cba.js} +16 -16
- package/build/esm/{index-6233a750.js → index-d1bf3e47.js} +2 -2
- package/build/esm/{index-dcbaf230.js → index-df6d1283.js} +10 -10
- package/build/esm/{index-bf0df733.js → index-ea472f22.js} +27 -18
- package/build/esm/{index-4a0ff7cb.js → index-eee9d14d.js} +2 -2
- package/build/esm/{index-0e4f52e3.js → index-ef717367.js} +1 -1
- package/build/esm/{index-3f6896d1.js → index-f141030c.js} +25 -25
- package/build/esm/{index-86f5dbdc.js → index-f1684864.js} +1 -1
- package/build/esm/{index-39d4c82d.js → index-f6f2c102.js} +13 -13
- package/build/esm/{index-181f4d4f.js → index-f764092b.js} +13 -13
- package/build/esm/{index-4590e3a3.js → index-f82c90ec.js} +6 -6
- package/build/esm/{index-623fedbe.js → index-fa5da20e.js} +1 -1
- package/build/esm/{index-deab884c.js → index-fe8e86e3.js} +13 -13
- package/build/esm/{index-d8d124b4.js → index-feb841f4.js} +6 -6
- package/build/esm/index.js +119 -119
- package/build/esm/{labelSorting-9cd36b08.js → labelSorting-1aed75c7.js} +4 -4
- package/build/esm/lead/LeadGen.helpers.d.ts +2 -2
- package/build/esm/lead/LeadGen.type.d.ts +3 -4
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +15 -21
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContainer.d.ts +3 -1
- package/build/esm/lead/index.d.ts +1 -5
- package/build/esm/lead/layouts/inline.d.ts +2 -3
- package/build/esm/lead/layouts/lightbox/fields/textField/index.d.ts +1 -2
- package/build/esm/lead/layouts/lightbox/index.d.ts +1 -2
- package/build/esm/lead/newLeadPopup.d.ts +1 -2
- package/build/esm/lead/services/index.d.ts +1 -5
- package/build/esm/lead/utils.d.ts +0 -18
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +406 -525
- package/build/esm/{logoIcon-129b1be6.js → logoIcon-e30f9df0.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc.js +18 -18
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +75 -75
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +47 -47
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +27 -27
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +51 -51
- package/build/esm/{post-0a4ad955.js → post-a9a122e7.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/esm/ssoV2.js +41 -53
- package/build/esm/{store-8e428741.js → store-4444fd12.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-3b4c645c.js → surveyThankyouCard-2a147794.js} +5 -5
- package/build/esm/{text-c55b6aee.js → text-55617bb4.js} +10 -60
- 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-0b00a188.js → translationsProvider-e65888b4.js} +1 -1
- package/build/esm/{treePopoverMenu-6fe03102.js → treePopoverMenu-ce056691.js} +19 -19
- package/build/esm/{types-561a3bc2.js → types-c46fe736.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-89289ca5.js → useCategory-9dd41f60.js} +5 -5
- package/build/esm/{useHealthToolCache-13a49080.js → useHealthToolCache-0f9764d6.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-679b3df2.js → usePlacesAutocomplete-ddef7ee5.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-ccc6239f.js → utils-2f5f0158.js} +2 -2
- package/build/esm/{utils-7be7b1de.js → utils-487c0653.js} +5 -5
- package/build/esm/{utils-4ff2c435.js → utils-6a4cbb99.js} +3 -3
- package/build/esm/{utils-aadd1fc5.js → utils-aadfa81c.js} +2 -2
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-3c6dfa3a.js → healthTools-75fbc03c.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-57686af6.js → index-035c919f.js} +24 -24
- package/build/{index-10d14d9c.js → index-12a87524.js} +22 -22
- package/build/{index-867b0d1b.js → index-1421020e.js} +2 -2
- package/build/{index-f6aad5d0.js → index-1a7fa305.js} +3 -3
- package/build/{index-0d1acdf3.js → index-1e01216a.js} +32 -32
- package/build/{index-03566b36.js → index-1e132da3.js} +4 -4
- package/build/{index-72a2fce1.js → index-1ed83894.js} +1 -1
- package/build/{index-b5353d86.js → index-2493aad6.js} +16 -16
- package/build/{index-44e7918e.js → index-2594ec39.js} +6 -6
- package/build/{index-c2f05584.js → index-259ca1c8.js} +2 -2
- package/build/{index-d83b4150.js → index-287b02d9.js} +3 -3
- package/build/{index-bc87fcd6.js → index-32b4734b.js} +15 -9
- package/build/{index-7f24b37d.js → index-359cb049.js} +3 -3
- package/build/{index-8372a002.js → index-38fbd2be.js} +13 -13
- package/build/{index-21504c0c.js → index-3a35c0e9.js} +3 -3
- package/build/{index-e955c9bc.js → index-3f1411c6.js} +2 -2
- package/build/{index-ac27baa5.js → index-3f787da3.js} +1 -1
- package/build/{index-c295f404.js → index-42018b4e.js} +13 -13
- package/build/{index-42b9995e.js → index-42de05a9.js} +2 -2
- package/build/{index-a1755e13.js → index-490706a3.js} +16 -16
- package/build/{index-70ff4d69.js → index-4f5231ab.js} +3 -3
- package/build/{index-15be2265.js → index-512a081a.js} +1 -1
- package/build/{index-dcfdf38b.js → index-5d14881e.js} +7 -7
- package/build/{index-c9a626cf.js → index-6298ffae.js} +13 -13
- package/build/{index-35867122.js → index-6891ba5a.js} +17 -17
- package/build/{index-16e4130f.js → index-6d0a8f85.js} +7 -7
- package/build/{index-e96f37dd.js → index-72d0052e.js} +13 -13
- package/build/{index-942d7e55.js → index-7ad5ed5a.js} +2 -2
- package/build/{index-770a90c0.js → index-7f764976.js} +17 -17
- package/build/{index-cce655e5.js → index-81b0641b.js} +2 -2
- package/build/{index-ca6becfa.js → index-830968ca.js} +11 -11
- package/build/{index-5619d844.js → index-85c355b8.js} +17 -17
- package/build/{index-22b84aac.js → index-89f2ce47.js} +3 -3
- package/build/{index-6a0571d9.js → index-8f725ac2.js} +1 -1
- package/build/{index-0316b298.js → index-8fa166c4.js} +2 -2
- package/build/{index-424937a8.js → index-90335c2e.js} +41 -21
- package/build/{index-53217e00.js → index-95f37fed.js} +15 -15
- package/build/{index-a854eee5.js → index-969847e3.js} +3 -3
- package/build/{index-9beb0e50.js → index-97a427b9.js} +4 -4
- package/build/{index-f6463c04.js → index-9a257e60.js} +6 -6
- package/build/{index-4eb7ea1c.js → index-9cdc8a41.js} +2 -2
- package/build/{index-80a9232f.js → index-9eaa15d5.js} +10 -10
- package/build/{index-18d2feae.js → index-a234c228.js} +1 -1
- package/build/{index-a754338d.js → index-a4cd3f3a.js} +2 -2
- package/build/{index-ae319563.js → index-a7ff8e37.js} +2 -2
- package/build/{index-7af546d6.js → index-a885b9a3.js} +13 -13
- package/build/{index-10933d5d.js → index-b223e7de.js} +1 -1
- package/build/{index-3cb6422a.js → index-b52bba0a.js} +6 -6
- package/build/{index-23078faa.js → index-b6630b4f.js} +30 -30
- package/build/{index-5def441d.js → index-b7ef4cc2.js} +5 -5
- package/build/{index-c28a3938.js → index-ba9cd1ca.js} +25 -25
- package/build/{index-4050b64c.js → index-bb69232c.js} +15 -15
- package/build/{index-48a95722.js → index-bc34ab3c.js} +2 -2
- package/build/{index-c69ebe91.js → index-bf3fd014.js} +5 -5
- package/build/{index-b95af80c.js → index-c04c9aca.js} +2 -2
- package/build/{index-805fd455.js → index-c3a942ae.js} +15 -15
- package/build/{index-4f05cf73.js → index-d0d6dd15.js} +32 -32
- package/build/{index-9172bce8.js → index-d778b9e9.js} +2 -2
- package/build/{index-5d01177b.js → index-d9a882a5.js} +6 -6
- package/build/{index-78381a12.js → index-dc9684f8.js} +17 -17
- package/build/{index-b0f7b058.js → index-e33474fc.js} +6 -6
- package/build/{index-3cdac865.js → index-e8833c6f.js} +1 -1
- package/build/{index-2ff39b7b.js → index-ec936b1f.js} +27 -18
- package/build/{index-b1464037.js → index-edce8d6e.js} +3 -3
- package/build/{index-79ce6ed4.js → index-efdee7e0.js} +2 -2
- package/build/{index-bfe94c0e.js → index-f5dfaf06.js} +13 -13
- package/build/{index-5001f706.js → index-f7e7cdf6.js} +1 -1
- package/build/{index-0e14d7b6.js → index-f8b76b96.js} +2 -2
- package/build/index.js +119 -119
- package/build/{labelSorting-79347621.js → labelSorting-9604d205.js} +4 -4
- package/build/lead/LeadGen.helpers.d.ts +2 -2
- package/build/lead/LeadGen.type.d.ts +3 -4
- package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +15 -21
- package/build/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContainer.d.ts +3 -1
- package/build/lead/index.d.ts +1 -5
- package/build/lead/layouts/inline.d.ts +2 -3
- package/build/lead/layouts/lightbox/fields/textField/index.d.ts +1 -2
- package/build/lead/layouts/lightbox/index.d.ts +1 -2
- package/build/lead/newLeadPopup.d.ts +1 -2
- package/build/lead/services/index.d.ts +1 -5
- package/build/lead/utils.d.ts +0 -18
- package/build/lead.css +1 -1
- package/build/lead.js +403 -524
- package/build/{logoIcon-596871d4.js → logoIcon-62493c3e.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc.js +18 -18
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +75 -75
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +47 -47
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +27 -27
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +51 -51
- package/build/{post-521b3b77.js → post-95d2385c.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/ssoV2.js +39 -51
- package/build/{store-a077e5d6.js → store-01dd0c41.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-03b3af2e.js → surveyThankyouCard-5be8393b.js} +5 -5
- package/build/{text-f11838ac.js → text-2d269f79.js} +9 -60
- 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-d9e28e05.js → translationsProvider-6faecca0.js} +1 -1
- package/build/{treePopoverMenu-04b47b33.js → treePopoverMenu-4db8a6e4.js} +19 -19
- package/build/{types-154f651d.js → types-2eb77d47.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-e2c046b2.js → useCategory-6524c254.js} +5 -5
- package/build/{useHealthToolCache-059412f0.js → useHealthToolCache-6d09f7d7.js} +1 -1
- package/build/{usePlacesAutocomplete-20fbccc8.js → usePlacesAutocomplete-524152dc.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-953d0a7a.js → utils-185d0253.js} +3 -3
- package/build/{utils-ca2f7e58.js → utils-94885948.js} +5 -5
- package/build/{utils-c9f5e36f.js → utils-ea678be2.js} +2 -2
- package/build/{utils-73b5d6ae.js → utils-fdb9bbc3.js} +2 -2
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/components/atoms/icons/ErrorIcon.d.ts +0 -4
- package/build/components/mantine/styles.d.ts +0 -12
- package/build/esm/components/atoms/icons/ErrorIcon.d.ts +0 -4
- package/build/esm/components/mantine/styles.d.ts +0 -12
- package/build/esm/lead/LeadGenInline/LeadGenInline.d.ts +0 -8
- package/build/esm/lead/LeadGenInline/index.d.ts +0 -2
- package/build/esm/lead/services/index.type.d.ts +0 -5
- package/build/esm/misc/cachedSystem.d.ts +0 -5
- package/build/lead/LeadGenInline/LeadGenInline.d.ts +0 -8
- package/build/lead/LeadGenInline/index.d.ts +0 -2
- package/build/lead/services/index.type.d.ts +0 -5
- package/build/misc/cachedSystem.d.ts +0 -5
- /package/build/{BMI_BOYS.percentile.monthly-a395f805.js → BMI_BOYS.percentile.monthly-6cd85292.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-d3dd8c28.js → BMI_BOYS.percentile.weekly-24b3cfee.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-47eeeca6.js → BMI_BOYS.percentile.yearly-9afacd6a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-462cfda7.js → BMI_BOYS.zscore.monthly-44a7ede7.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-a7887f70.js → BMI_BOYS.zscore.weekly-35da8dda.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-6f9c4949.js → BMI_BOYS.zscore.yearly-0ef69646.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-a03da473.js → BMI_GIRLS.percentile.monthly-8600cce2.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-5e7a6110.js → BMI_GIRLS.percentile.weekly-88b44cb7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-43a8a218.js → BMI_GIRLS.percentile.yearly-22a4846d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-90aba6f4.js → BMI_GIRLS.zscore.monthly-fb1bf424.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-1d35b43f.js → BMI_GIRLS.zscore.weekly-52dc4c25.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-b56a0308.js → BMI_GIRLS.zscore.yearly-231c4054.js} +0 -0
- /package/build/{ChevronDown-37a3cb3c.js → ChevronDown-2dfa26ff.js} +0 -0
- /package/build/{Close-b2b035c3.js → Close-4e480030.js} +0 -0
- /package/build/{Google-548f820e.js → Google-f55051be.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7387fc89.js → HEAD CIRCUM_BOYS.percentile.monthly-1494965f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-78ca2900.js → HEAD CIRCUM_BOYS.percentile.weekly-e0913ee2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-da1802c2.js → HEAD CIRCUM_BOYS.percentile.yearly-7c2b9787.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-6c3caab7.js → HEAD CIRCUM_BOYS.zscore.monthly-b9c6fc8d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c86b0e0e.js → HEAD CIRCUM_BOYS.zscore.weekly-b71f5ed2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-df5930bf.js → HEAD CIRCUM_BOYS.zscore.yearly-b2ebac1d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-e015cf0e.js → HEAD CIRCUM_GIRLS.percentile.monthly-21bb2b95.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-33dfa032.js → HEAD CIRCUM_GIRLS.percentile.weekly-dcd6f7e6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4f2918fb.js → HEAD CIRCUM_GIRLS.percentile.yearly-aa24e205.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-915b1dbf.js → HEAD CIRCUM_GIRLS.zscore.monthly-1cd178f4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-1cf28f70.js → HEAD CIRCUM_GIRLS.zscore.weekly-7bc4fdc7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-b1e0f4a1.js → HEAD CIRCUM_GIRLS.zscore.yearly-51cfb94c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-fe261398.js → HEIGHT_BOYS.percentile.monthly-d70e2688.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-d0bd934b.js → HEIGHT_BOYS.percentile.weekly-f31b7293.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-8cd6cf3d.js → HEIGHT_BOYS.percentile.yearly-9cf55f7f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-14f945e3.js → HEIGHT_BOYS.zscore.monthly-1462dd76.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-4821056e.js → HEIGHT_BOYS.zscore.weekly-cba56516.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-da887025.js → HEIGHT_BOYS.zscore.yearly-618a9999.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-bff971d4.js → HEIGHT_GIRLS.percentile.monthly-4e938816.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-a56c04b3.js → HEIGHT_GIRLS.percentile.weekly-c597a8a4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-45d27ae7.js → HEIGHT_GIRLS.percentile.yearly-e682e46f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-f6311ed0.js → HEIGHT_GIRLS.zscore.monthly-14f95ac0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-1365aff9.js → HEIGHT_GIRLS.zscore.weekly-f1462b99.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-2041dee6.js → HEIGHT_GIRLS.zscore.yearly-d65a3d45.js} +0 -0
- /package/build/{Locale-54ba6d01.js → Locale-a70f3018.js} +0 -0
- /package/build/{Visible-dd68b5dd.js → Visible-16372590.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-5f9d4ea8.js → WEIGHT_BOYS.percentile.monthly-703127ea.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-6017da2b.js → WEIGHT_BOYS.percentile.weekly-2e3530f2.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-7f63a3c9.js → WEIGHT_BOYS.percentile.yearly-f8b0f900.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-1a1e4c99.js → WEIGHT_BOYS.zscore.monthly-0a4ea821.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-59d686d3.js → WEIGHT_BOYS.zscore.weekly-5eb764cc.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-b6ec965f.js → WEIGHT_BOYS.zscore.yearly-d8dc154a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-e07603ec.js → WEIGHT_GIRLS.percentile.monthly-f7ba3a8b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-e6465384.js → WEIGHT_GIRLS.percentile.weekly-5cc644f2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-59a58c0a.js → WEIGHT_GIRLS.percentile.yearly-1d6b2e04.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-f671c1a3.js → WEIGHT_GIRLS.zscore.monthly-5db3b65e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-badcdaca.js → WEIGHT_GIRLS.zscore.weekly-c55f9501.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-f3d85d7e.js → WEIGHT_GIRLS.zscore.yearly-a147ef14.js} +0 -0
- /package/build/{animation-8cfdd7a2.js → animation-1049b28e.js} +0 -0
- /package/build/{constants-fd99656e.js → constants-06e52591.js} +0 -0
- /package/build/{constants-9d3b52fb.js → constants-454e1545.js} +0 -0
- /package/build/{constants-03292e67.js → constants-b3db85a3.js} +0 -0
- /package/build/{dataTransform-319d00fb.js → dataTransform-0be836ca.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-b6570393.js → BMI_BOYS.percentile.monthly-00da0087.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-ab4c8d25.js → BMI_BOYS.percentile.weekly-c1a894cd.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-77d936ec.js → BMI_BOYS.percentile.yearly-e52331e4.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-7921167a.js → BMI_BOYS.zscore.monthly-6afc9acd.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-2115f4a0.js → BMI_BOYS.zscore.weekly-98433237.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-26e26977.js → BMI_BOYS.zscore.yearly-eebae207.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-49d54599.js → BMI_GIRLS.percentile.monthly-d1d75e5a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-9f8b840d.js → BMI_GIRLS.percentile.weekly-d084b37c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-552a0036.js → BMI_GIRLS.percentile.yearly-cccd8fd5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-fbef87c7.js → BMI_GIRLS.zscore.monthly-9ef3584b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-526ae861.js → BMI_GIRLS.zscore.weekly-8d18e391.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-571845dc.js → BMI_GIRLS.zscore.yearly-483faa92.js} +0 -0
- /package/build/esm/{ChevronDown-fd8460cd.js → ChevronDown-72f353c4.js} +0 -0
- /package/build/esm/{Close-f371bf52.js → Close-7f696413.js} +0 -0
- /package/build/esm/{Google-55d4b9b8.js → Google-f0351cf7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-0b8c167d.js → HEAD CIRCUM_BOYS.percentile.monthly-02f07ece.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f392309f.js → HEAD CIRCUM_BOYS.percentile.weekly-b03af760.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-00a722da.js → HEAD CIRCUM_BOYS.percentile.yearly-6ddb9f1b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-64b32458.js → HEAD CIRCUM_BOYS.zscore.monthly-2a047c13.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-3d956705.js → HEAD CIRCUM_BOYS.zscore.weekly-0e13d9ae.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e03c79ec.js → HEAD CIRCUM_BOYS.zscore.yearly-3270018c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b3ad637d.js → HEAD CIRCUM_GIRLS.percentile.monthly-3b183bbd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-f85cfcb9.js → HEAD CIRCUM_GIRLS.percentile.weekly-26a85036.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-966c798e.js → HEAD CIRCUM_GIRLS.percentile.yearly-1ae4e888.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-e0e22072.js → HEAD CIRCUM_GIRLS.zscore.monthly-0ae24819.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-64c75386.js → HEAD CIRCUM_GIRLS.zscore.weekly-fe9f4e7e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-6abaf29e.js → HEAD CIRCUM_GIRLS.zscore.yearly-e1cc002a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-c887be23.js → HEIGHT_BOYS.percentile.monthly-c8d18fed.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-10b59b2b.js → HEIGHT_BOYS.percentile.weekly-2ad839c2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-78db71fc.js → HEIGHT_BOYS.percentile.yearly-e9fbedf9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-2d1c6855.js → HEIGHT_BOYS.zscore.monthly-dda8b396.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-a754eaf1.js → HEIGHT_BOYS.zscore.weekly-c9d9d4d0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-b705fa8f.js → HEIGHT_BOYS.zscore.yearly-7f3bb41a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e9f51bdf.js → HEIGHT_GIRLS.percentile.monthly-adda6c91.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-8e94842a.js → HEIGHT_GIRLS.percentile.weekly-6ec2aa86.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-27eaeda7.js → HEIGHT_GIRLS.percentile.yearly-78203b9f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-92a48220.js → HEIGHT_GIRLS.zscore.monthly-f7cc6a4f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-225fd587.js → HEIGHT_GIRLS.zscore.weekly-e11c0e1a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-865a7dd6.js → HEIGHT_GIRLS.zscore.yearly-cb1f2588.js} +0 -0
- /package/build/esm/{Locale-9f899ca5.js → Locale-5460e729.js} +0 -0
- /package/build/esm/{Visible-5d7574a5.js → Visible-79ea5175.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-59c5809b.js → WEIGHT_BOYS.percentile.monthly-6b23fa82.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b70dcfcc.js → WEIGHT_BOYS.percentile.weekly-b9220743.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-306c72b4.js → WEIGHT_BOYS.percentile.yearly-917da5f3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-61420ce7.js → WEIGHT_BOYS.zscore.monthly-215e737e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-555c582c.js → WEIGHT_BOYS.zscore.weekly-07952bd1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-c102c07d.js → WEIGHT_BOYS.zscore.yearly-d5e15816.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-920ad033.js → WEIGHT_GIRLS.percentile.monthly-cea4561a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f1df6d69.js → WEIGHT_GIRLS.percentile.weekly-be28a920.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8b55e8c8.js → WEIGHT_GIRLS.percentile.yearly-eec8d549.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-1a9bba5f.js → WEIGHT_GIRLS.zscore.monthly-d0d56506.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-d8ebb3e2.js → WEIGHT_GIRLS.zscore.weekly-afc164b5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-84e11e34.js → WEIGHT_GIRLS.zscore.yearly-b8a698b5.js} +0 -0
- /package/build/esm/{animation-5fef196a.js → animation-bea85d42.js} +0 -0
- /package/build/esm/{constants-411f7870.js → constants-abdbe382.js} +0 -0
- /package/build/esm/{constants-06c5327b.js → constants-bff3251f.js} +0 -0
- /package/build/esm/{constants-22b78878.js → constants-ee67fd63.js} +0 -0
- /package/build/esm/{dataTransform-3ddd5411.js → dataTransform-391e4916.js} +0 -0
- /package/build/esm/{index-af00191c.js → index-15eb2ff8.js} +0 -0
- /package/build/esm/{index-f58870ce.js → index-2f9d4e82.js} +0 -0
- /package/build/esm/{index-f493a0ee.js → index-84bcb371.js} +0 -0
- /package/build/esm/{index-4b06dbce.js → index-8c22a18e.js} +0 -0
- /package/build/esm/{index-35a1f02e.js → index-9bfb1aef.js} +0 -0
- /package/build/esm/{index-e823e49f.js → index-a4efc829.js} +0 -0
- /package/build/esm/{index-2c8f523e.js → index-e6f7246e.js} +0 -0
- /package/build/esm/{index-3c02f7c6.js → index-f98a6cab.js} +0 -0
- /package/build/esm/{index.styles-c2f4e759.js → index.styles-f34ddcab.js} +0 -0
- /package/build/esm/{localizeNumberFormat-0ce28942.js → localizeNumberFormat-f1e8ac6b.js} +0 -0
- /package/build/esm/{normalizeLink-54a0ffaa.js → normalizeLink-ed68733d.js} +0 -0
- /package/build/esm/{number-8423cfd0.js → number-8f9b730f.js} +0 -0
- /package/build/esm/{paths-d01697e0.js → paths-76abc768.js} +0 -0
- /package/build/esm/{shared-8e790448.js → shared-92e33797.js} +0 -0
- /package/build/esm/{translationsContext-b21155db.js → translationsContext-62c6db41.js} +0 -0
- /package/build/esm/{tslib.es6-01ea2377.js → tslib.es6-f56963a6.js} +0 -0
- /package/build/esm/{types-50e1b7d8.js → types-8662f52e.js} +0 -0
- /package/build/esm/{useIsInit-8c918b96.js → useIsInit-740027d8.js} +0 -0
- /package/build/esm/{useOutsideClick-3019e2de.js → useOutsideClick-3b74014e.js} +0 -0
- /package/build/esm/{useScrollbarSize-193aba75.js → useScrollbarSize-d4181977.js} +0 -0
- /package/build/esm/{useUniqueId-270c9a9f.js → useUniqueId-78549510.js} +0 -0
- /package/build/esm/{utils-5a56a283.js → utils-ca546a43.js} +0 -0
- /package/build/{index-1beefddb.js → index-411ff63a.js} +0 -0
- /package/build/{index-2705aec2.js → index-479148db.js} +0 -0
- /package/build/{index-fa49995c.js → index-49e4941e.js} +0 -0
- /package/build/{index-f985b5c0.js → index-4cf3425b.js} +0 -0
- /package/build/{index-00ed9711.js → index-7a5470ca.js} +0 -0
- /package/build/{index-63203aed.js → index-96d8a1b4.js} +0 -0
- /package/build/{index-990c0bb3.js → index-9eb5924e.js} +0 -0
- /package/build/{index-aea82b06.js → index-dc805646.js} +0 -0
- /package/build/{index.styles-ede8df34.js → index.styles-58f3d2e6.js} +0 -0
- /package/build/{localizeNumberFormat-a5970d23.js → localizeNumberFormat-a9f01ec3.js} +0 -0
- /package/build/{normalizeLink-b158ac8d.js → normalizeLink-efc85ab4.js} +0 -0
- /package/build/{number-d1d8b642.js → number-4ca3b24c.js} +0 -0
- /package/build/{paths-2aeb1f12.js → paths-8a7a5ea9.js} +0 -0
- /package/build/{shared-2f2da3af.js → shared-357ef7eb.js} +0 -0
- /package/build/{translationsContext-0f2232e1.js → translationsContext-d7368ee5.js} +0 -0
- /package/build/{tslib.es6-a0832fdc.js → tslib.es6-77611d97.js} +0 -0
- /package/build/{types-16372895.js → types-b073cdd3.js} +0 -0
- /package/build/{useIsInit-80983abc.js → useIsInit-1e93a875.js} +0 -0
- /package/build/{useOutsideClick-2d2dabbf.js → useOutsideClick-a13e1843.js} +0 -0
- /package/build/{useScrollbarSize-c4bc3d63.js → useScrollbarSize-f04fff5f.js} +0 -0
- /package/build/{useUniqueId-3ed7ca22.js → useUniqueId-230a0871.js} +0 -0
- /package/build/{utils-bf10266a.js → utils-d0544a49.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-77611d97.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-97a427b9.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-a234c228.js');
|
|
14
|
+
var translationsContext = require('./translationsContext-d7368ee5.js');
|
|
15
|
+
var utils$1 = require('./utils-d0544a49.js');
|
|
16
|
+
var index$2 = require('./index-1421020e.js');
|
|
17
|
+
var index$3 = require('./index-32b4734b.js');
|
|
18
|
+
var index$5 = require('./index-e33474fc.js');
|
|
19
|
+
var index$4 = require('./index-4f5231ab.js');
|
|
20
|
+
require('./index.styles-58f3d2e6.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-ec936b1f.js');
|
|
23
|
+
var text = require('./text-2d269f79.js');
|
|
24
|
+
require('./index-359cb049.js');
|
|
25
|
+
var utils = require('./utils-ea678be2.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-efdee7e0.js');
|
|
28
|
+
var index$a = require('./index-1ed83894.js');
|
|
29
|
+
require('./index-479148db.js');
|
|
30
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-524152dc.js');
|
|
31
|
+
var index$6 = require('./index-a4cd3f3a.js');
|
|
32
|
+
var translationsProvider = require('./translationsProvider-6faecca0.js');
|
|
33
|
+
var Locale = require('./Locale-a70f3018.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-185d0253.js');
|
|
41
|
+
var index$8 = require('./index-287b02d9.js');
|
|
42
|
+
var index$9 = require('./index-4cf3425b.js');
|
|
43
|
+
var index$b = require('./index-d778b9e9.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-860085e2.js');
|
|
47
|
+
var index$c = require('./index-81b0641b.js');
|
|
48
|
+
var Close = require('./Close-4e480030.js');
|
|
49
49
|
require('./constantsIsProduction.js');
|
|
50
|
-
require('./normalizeLink-
|
|
50
|
+
require('./normalizeLink-efc85ab4.js');
|
|
51
51
|
require('@hhgtech/icons/other');
|
|
52
52
|
require('@mantine/carousel');
|
|
53
53
|
require('classnames');
|
|
54
|
-
require('./useUniqueId-
|
|
54
|
+
require('./useUniqueId-230a0871.js');
|
|
55
55
|
require('./constantsSite.js');
|
|
56
56
|
require('@hhgtech/icons/core');
|
|
57
|
-
require('./shared-
|
|
57
|
+
require('./shared-357ef7eb.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-411ff63a.js');
|
|
74
74
|
require('slugify');
|
|
75
75
|
require('string-format');
|
|
76
76
|
require('./togetherApiPaths.js');
|
|
77
|
-
require('./constants-
|
|
77
|
+
require('./constants-b3db85a3.js');
|
|
78
78
|
require('vaul');
|
|
79
79
|
|
|
80
80
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -152,6 +152,33 @@ 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
|
+
};
|
|
155
182
|
const SSO_MAP_LEAD = ['name', 'email', 'birthday', 'phone', 'gender'];
|
|
156
183
|
const LEAD_LOCALE_DATA$1 = {
|
|
157
184
|
'vi-VN': {
|
|
@@ -234,33 +261,6 @@ const mappingSSOToLead = (userInfoProps) => {
|
|
|
234
261
|
return;
|
|
235
262
|
}
|
|
236
263
|
};
|
|
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,55 +407,6 @@ 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
|
-
|
|
459
410
|
class Store {
|
|
460
411
|
constructor() {
|
|
461
412
|
this.apiSsoUrl = 'https://staging-id.hellobacsi.com/';
|
|
@@ -465,8 +416,6 @@ class Store {
|
|
|
465
416
|
}
|
|
466
417
|
const leadStore = new Store();
|
|
467
418
|
|
|
468
|
-
const LEADGEN_CACHE_KEY = 'LeadGen_';
|
|
469
|
-
const LEADGEN_CACHE_TIME = 5 * 60 * 1000; // 5 minutes
|
|
470
419
|
const METHOD = {
|
|
471
420
|
GET: 'get',
|
|
472
421
|
POST: 'POST',
|
|
@@ -653,19 +602,7 @@ const trackingSubscription = (data) => {
|
|
|
653
602
|
data,
|
|
654
603
|
});
|
|
655
604
|
};
|
|
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
|
-
}
|
|
667
605
|
const Service = {
|
|
668
|
-
getCampaigns,
|
|
669
606
|
campaignGetById,
|
|
670
607
|
getCampaignByCode,
|
|
671
608
|
getSubscriptionBoxInfo,
|
|
@@ -1718,6 +1655,12 @@ const getTranslations = (locale) => {
|
|
|
1718
1655
|
return translationsMap['en-PH'];
|
|
1719
1656
|
};
|
|
1720
1657
|
|
|
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
|
+
|
|
1721
1664
|
// import mockLeadData from './mockLeadData'
|
|
1722
1665
|
const listCampaignScheduled = [];
|
|
1723
1666
|
const listCampaignScheduledToActivated = [];
|
|
@@ -1893,167 +1836,167 @@ function clearPassiveEvent() {
|
|
|
1893
1836
|
LEAD_SCROLL_EVENT = null;
|
|
1894
1837
|
}
|
|
1895
1838
|
}
|
|
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]);
|
|
1938
|
-
}
|
|
1939
|
-
else {
|
|
1940
|
-
return false;
|
|
1941
|
-
}
|
|
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);
|
|
2018
|
-
}
|
|
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);
|
|
2024
|
-
}
|
|
2025
|
-
};
|
|
2026
|
-
window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
|
|
2027
|
-
passive: true,
|
|
2028
|
-
});
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
1839
|
function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
|
|
2032
1840
|
// clear previous passive event, check for new condition
|
|
2033
1841
|
clearPassiveEvent();
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
1842
|
+
const leadCurrentUrl = DEBUG_URL ||
|
|
1843
|
+
('https://' +
|
|
1844
|
+
location.hostname +
|
|
1845
|
+
location.pathname +
|
|
1846
|
+
location.search).toLowerCase();
|
|
1847
|
+
fetch(leadApi + 'api/campaign/' + leadSiteId, {
|
|
1848
|
+
method: 'POST',
|
|
1849
|
+
headers: {
|
|
1850
|
+
'Content-Type': 'application/json',
|
|
1851
|
+
},
|
|
1852
|
+
body: JSON.stringify({
|
|
1853
|
+
url: leadCurrentUrl,
|
|
1854
|
+
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
1855
|
+
}),
|
|
1856
|
+
})
|
|
1857
|
+
.then((response) => {
|
|
1858
|
+
return response.json();
|
|
1859
|
+
// return mockLeadData || response.json()
|
|
2043
1860
|
})
|
|
2044
|
-
.then((
|
|
2045
|
-
|
|
1861
|
+
.then((data) => {
|
|
1862
|
+
var _a, _b, _c, _d;
|
|
1863
|
+
LeadLog('List campagin: ', data);
|
|
2046
1864
|
LEAD_RESET_VAR();
|
|
2047
|
-
|
|
2048
|
-
.filter(filterFnCampaign)
|
|
2049
|
-
.
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
1865
|
+
if (data._status == 1) {
|
|
1866
|
+
const campaigns = (((_b = (_a = data._data) === null || _a === void 0 ? void 0 : _a.campaigns) === null || _b === void 0 ? void 0 : _b.filter(filterFnCampaign)) || []).filter(fillterApprearanceTimeCampaign);
|
|
1867
|
+
if (!miscCookieHelper.getCookie('hhg-id')) {
|
|
1868
|
+
miscCookieHelper.setCookie('hhg-id', uuid.v1(), {
|
|
1869
|
+
domain: '.' + leadDomain,
|
|
1870
|
+
path: '/',
|
|
1871
|
+
});
|
|
1872
|
+
LeadLog('😍 Set HHG ID cookie');
|
|
1873
|
+
}
|
|
1874
|
+
// getCookie('hhg-id')
|
|
1875
|
+
// TODO: HP-534 Filter desktop
|
|
1876
|
+
let campaignsDevice = [];
|
|
1877
|
+
if (isMobile()) {
|
|
1878
|
+
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
|
|
1879
|
+
}
|
|
1880
|
+
else {
|
|
1881
|
+
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
|
|
1882
|
+
}
|
|
1883
|
+
LeadLog(`👓 campaignsDevice`, campaignsDevice);
|
|
1884
|
+
LeadLog('--listCampaignScheduled', listCampaignScheduled);
|
|
1885
|
+
LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
|
|
1886
|
+
LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
|
|
1887
|
+
LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
|
|
1888
|
+
LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
|
|
1889
|
+
LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
|
|
1890
|
+
// Check links
|
|
1891
|
+
let listLinksObj = campaignsDevice
|
|
1892
|
+
.map((i, index) => i.targets
|
|
1893
|
+
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
|
|
1894
|
+
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
1895
|
+
.flat(1);
|
|
1896
|
+
// Check list link match current href
|
|
1897
|
+
listLinksObj = listLinksObj.filter((i) => {
|
|
1898
|
+
var _a;
|
|
1899
|
+
const target = new URL(String(i.target).toLowerCase());
|
|
1900
|
+
if (i.option == 'exact_match')
|
|
1901
|
+
// FOR TEST LOCAL:
|
|
1902
|
+
// return Boolean(location.pathname === target.pathname)
|
|
1903
|
+
return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
|
|
1904
|
+
if (i.option == 'start_with') {
|
|
1905
|
+
// FOR TEST LOCAL:
|
|
1906
|
+
// if (location.pathname.includes(target.pathname)) {
|
|
1907
|
+
if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
|
|
1908
|
+
const listExcluding = i.sub_target
|
|
1909
|
+
.filter((i) => i.option == 'excluding')
|
|
1910
|
+
.map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
|
|
1911
|
+
return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
|
|
1912
|
+
}
|
|
1913
|
+
else {
|
|
1914
|
+
return false;
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
});
|
|
1918
|
+
// Check tags
|
|
1919
|
+
const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
|
|
1920
|
+
const listTags = listMetaTag.map((i) => i.content);
|
|
1921
|
+
let listCampaignHasTag = [];
|
|
1922
|
+
let listTagsObj = [];
|
|
1923
|
+
if (listTags && listTags.length) {
|
|
1924
|
+
listCampaignHasTag = campaignsDevice
|
|
1925
|
+
.map((i, index) => i.targets
|
|
1926
|
+
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
|
|
1927
|
+
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
1928
|
+
.flat(1);
|
|
1929
|
+
listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
|
|
1930
|
+
}
|
|
1931
|
+
const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
|
|
1932
|
+
const cookieKeys = document.cookie
|
|
1933
|
+
.split('; ')
|
|
1934
|
+
.map((i) => i.split('=')[0]);
|
|
1935
|
+
const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
|
|
1936
|
+
LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
|
|
1937
|
+
const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
|
|
1938
|
+
LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
|
|
1939
|
+
const listCampaignSubmitedClosed = [
|
|
1940
|
+
...listCampaignCodeSubmited,
|
|
1941
|
+
...listCampaignCodeClosed,
|
|
1942
|
+
];
|
|
1943
|
+
const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
|
|
1944
|
+
const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
|
|
1945
|
+
return !hasSubmited;
|
|
1946
|
+
});
|
|
1947
|
+
const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
|
|
1948
|
+
// .sort(
|
|
1949
|
+
// (a, b) =>
|
|
1950
|
+
// (listCampaignValid[a.campaignIndex]?.score || 0) -
|
|
1951
|
+
// (listCampaignValid[b.campaignIndex]?.score || 0),
|
|
1952
|
+
// )
|
|
1953
|
+
LeadLog('--listCampaignValid : ', listCampaignValid);
|
|
1954
|
+
if (listCampaignValid && listCampaignValid.length) {
|
|
1955
|
+
const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
|
|
1956
|
+
LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
|
|
1957
|
+
const { rules } = CAMPAIGN_SHOW;
|
|
1958
|
+
// CHECK RULE TRIGGER POPUP
|
|
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
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
else {
|
|
1998
|
+
LeadLog('🚧 No lead campaigns on current URL, tags');
|
|
1999
|
+
}
|
|
2057
2000
|
}
|
|
2058
2001
|
})
|
|
2059
2002
|
.catch((err) => {
|
|
@@ -2070,149 +2013,147 @@ const LeadLog = (...params) => {
|
|
|
2070
2013
|
}
|
|
2071
2014
|
};
|
|
2072
2015
|
|
|
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
|
-
|
|
2122
2016
|
const LeadGenContext = React.createContext({
|
|
2123
|
-
|
|
2017
|
+
submit(value) {
|
|
2124
2018
|
/** Init for FAKING function */
|
|
2125
2019
|
LeadLog('** LeadGen Submit : ', value);
|
|
2126
2020
|
return Promise.reject(value);
|
|
2127
2021
|
},
|
|
2128
|
-
|
|
2022
|
+
submitSubscriptionBox(value) {
|
|
2129
2023
|
/** Init for FAKING function */
|
|
2130
|
-
LeadLog('** LeadGen
|
|
2024
|
+
LeadLog('** LeadGen SubmitSubscriptionBox : ', value);
|
|
2025
|
+
return Promise.reject(value);
|
|
2026
|
+
},
|
|
2027
|
+
impression(type) {
|
|
2028
|
+
/** Init for FAKING function */
|
|
2029
|
+
LeadLog('** LeadGen Impression : ', type);
|
|
2131
2030
|
return Promise.reject();
|
|
2132
2031
|
},
|
|
2032
|
+
/** For Subscription Box */
|
|
2033
|
+
subscriptionIcon: '',
|
|
2034
|
+
subscriptionTitle: '',
|
|
2035
|
+
subscriptionPhoneType: '',
|
|
2133
2036
|
});
|
|
2134
2037
|
const LeadGenContextProvider = (props) => {
|
|
2135
|
-
const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues,
|
|
2038
|
+
const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues, articleId = 1, categoryList, siteDomain: site_domain, children, userInfo } = props, restProps = tslib_es6.__rest(props, ["campaign_code", "apiSsoUrl", "apiLeadUrl", "apiSubotUrl", "locale", "forceCampaign", "extraValues", "articleId", "categoryList", "siteDomain", "children", "userInfo"]);
|
|
2136
2039
|
const { t } = index$1.useTranslations();
|
|
2137
|
-
const [
|
|
2138
|
-
const [forceCampaign, setForceCampaign] = React.useState(() => formatCampaignDetail(forceCampaignProps));
|
|
2040
|
+
const [forceCampaign, setForceCampaign] = React.useState(forceCampaignProps);
|
|
2139
2041
|
const [subscriptionInfo, setSubscriptionInfo] = React.useState({
|
|
2140
2042
|
subscriptionIcon: '',
|
|
2141
2043
|
subscriptionTitle: '',
|
|
2142
2044
|
subscriptionType: 'TypeA',
|
|
2143
2045
|
subscriptionPhoneType: '',
|
|
2046
|
+
subcriptionCateId: '',
|
|
2047
|
+
subcriptionCateName: '',
|
|
2144
2048
|
});
|
|
2145
2049
|
const locale = React.useMemo(() => {
|
|
2146
2050
|
return localeProps || Locale.LOCALE['PhilippinesEnglish'];
|
|
2147
2051
|
}, [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
|
+
// )
|
|
2148
2080
|
// TODO : Update form for LeadGen
|
|
2149
|
-
const
|
|
2081
|
+
const submit = React.useCallback((data) => {
|
|
2150
2082
|
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');
|
|
2156
2083
|
}, []);
|
|
2157
2084
|
const submitSubscriptionBox = React.useCallback((value) => {
|
|
2158
|
-
const data = Object.assign(Object.assign(
|
|
2085
|
+
const data = Object.assign(Object.assign({}, value), {
|
|
2159
2086
|
// campaign_id,
|
|
2160
|
-
site_domain
|
|
2087
|
+
site_domain, url: (value === null || value === void 0 ? void 0 : value.url) || url, cookie_id, ga_client_id: (value === null || value === void 0 ? void 0 : value.ga_client_id) || ga_client_id,
|
|
2088
|
+
// ...extraValues,
|
|
2089
|
+
article_id, category_id: subscriptionInfo.subcriptionCateId, category_name: subscriptionInfo.subcriptionCateName, article_title });
|
|
2161
2090
|
return Service.postSubscriptionBoxLead({ data });
|
|
2162
2091
|
}, [
|
|
2163
2092
|
extraValues,
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2093
|
+
site_domain,
|
|
2094
|
+
campaign_id,
|
|
2095
|
+
article_id,
|
|
2096
|
+
article_title,
|
|
2097
|
+
subscriptionInfo.subcriptionCateId,
|
|
2098
|
+
subscriptionInfo.subcriptionCateName,
|
|
2099
|
+
url,
|
|
2100
|
+
cookie_id,
|
|
2101
|
+
ga_client_id,
|
|
2168
2102
|
]);
|
|
2169
|
-
const
|
|
2103
|
+
const impression = React.useCallback((type) => {
|
|
2104
|
+
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
2170
2105
|
const impression = {
|
|
2171
2106
|
subscription_title: subscriptionInfo.subscriptionTitle,
|
|
2172
2107
|
name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || '',
|
|
2173
2108
|
area_code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '',
|
|
2174
2109
|
phone_number: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) || '',
|
|
2175
|
-
site_domain:
|
|
2110
|
+
site_domain: constantsDomainLocales.domainLocales[locale],
|
|
2176
2111
|
url: location.href.toLowerCase(),
|
|
2177
2112
|
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
2178
|
-
ga_client_id:
|
|
2179
|
-
article_title
|
|
2180
|
-
article_id
|
|
2181
|
-
category_id:
|
|
2182
|
-
category_name:
|
|
2113
|
+
ga_client_id: gaCookie,
|
|
2114
|
+
article_title,
|
|
2115
|
+
article_id,
|
|
2116
|
+
category_id: subscriptionInfo.subcriptionCateId,
|
|
2117
|
+
category_name: subscriptionInfo.subcriptionCateName,
|
|
2183
2118
|
type,
|
|
2184
2119
|
};
|
|
2185
2120
|
return Service.trackingSubscription(impression);
|
|
2186
2121
|
}, [
|
|
2187
|
-
|
|
2188
|
-
|
|
2122
|
+
campaign_id,
|
|
2123
|
+
url,
|
|
2124
|
+
article_title,
|
|
2125
|
+
cookie_id,
|
|
2126
|
+
ga_client_id,
|
|
2127
|
+
subscriptionInfo.subcriptionCateId,
|
|
2128
|
+
subscriptionInfo.subcriptionCateName,
|
|
2189
2129
|
subscriptionInfo.subscriptionTitle,
|
|
2190
|
-
|
|
2130
|
+
article_id,
|
|
2191
2131
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
|
|
2192
2132
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code,
|
|
2193
2133
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
2194
2134
|
]);
|
|
2195
2135
|
React.useEffect(() => {
|
|
2196
|
-
/** Force Campaign */
|
|
2197
2136
|
if (forceCampaignProps) {
|
|
2198
2137
|
setForceCampaign(formatCampaignDetail(forceCampaignProps));
|
|
2199
|
-
setRawForceCampaign(forceCampaignProps);
|
|
2200
2138
|
return;
|
|
2201
2139
|
}
|
|
2202
2140
|
/** For Subscription Box */
|
|
2203
|
-
if (
|
|
2141
|
+
if (category_list) {
|
|
2204
2142
|
Service.getSubscriptionBoxInfo({
|
|
2205
|
-
category:
|
|
2206
|
-
site:
|
|
2143
|
+
category: category_list.map((i) => i.termId).join(','),
|
|
2144
|
+
site: site_domain,
|
|
2207
2145
|
slug: location === null || location === void 0 ? void 0 : location.pathname,
|
|
2208
2146
|
}).then((res) => {
|
|
2147
|
+
var _a;
|
|
2209
2148
|
const { _data } = res || {};
|
|
2210
|
-
const { item
|
|
2211
|
-
const { icon, content } = item || {};
|
|
2212
|
-
LeadLog('** LeadGen SubscriptionBox campaign_code : ', campaign_code);
|
|
2149
|
+
const { item = [], btn_type = 'zalo' } = _data || {};
|
|
2150
|
+
const { icon, content, cate_id } = ((_a = item.filter((i) => i.cate_id !== 'default')) === null || _a === void 0 ? void 0 : _a[0]) || {};
|
|
2213
2151
|
LeadLog('** LeadGen SubscriptionBox subscription_icon : ', icon);
|
|
2214
2152
|
LeadLog('** LeadGen SubscriptionBox subscription_title : ', content);
|
|
2215
|
-
setSubscriptionInfo((prev) =>
|
|
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
|
+
});
|
|
2216
2157
|
setForceCampaign(formatCampaignDetail({
|
|
2217
2158
|
id: 6993,
|
|
2218
2159
|
name: '',
|
|
@@ -2336,39 +2277,10 @@ const LeadGenContextProvider = (props) => {
|
|
|
2336
2277
|
});
|
|
2337
2278
|
return;
|
|
2338
2279
|
}
|
|
2339
|
-
if (campaignCodeProps) {
|
|
2340
|
-
|
|
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
|
-
// })
|
|
2280
|
+
// if (campaignCodeProps) {
|
|
2281
|
+
// fetchCampaign(campaignCodeProps)
|
|
2362
2282
|
// }
|
|
2363
|
-
}, [
|
|
2364
|
-
forceCampaignProps,
|
|
2365
|
-
campaignCodeProps,
|
|
2366
|
-
categoryId,
|
|
2367
|
-
siteId,
|
|
2368
|
-
siteDomain,
|
|
2369
|
-
apiLeadUrl,
|
|
2370
|
-
DEBUG_URL,
|
|
2371
|
-
]);
|
|
2283
|
+
}, [forceCampaignProps, campaignCodeProps, category_list]);
|
|
2372
2284
|
React.useEffect(() => {
|
|
2373
2285
|
leadStore.apiSsoUrl = apiSsoUrl;
|
|
2374
2286
|
leadStore.apiLeadUrl = apiLeadUrl;
|
|
@@ -2379,16 +2291,10 @@ const LeadGenContextProvider = (props) => {
|
|
|
2379
2291
|
}
|
|
2380
2292
|
return (React__default["default"].createElement(LeadGenContext.Provider, { value: Object.assign(Object.assign(Object.assign({}, restProps), subscriptionInfo), { userInfo, campaign_code: campaignCodeProps, apiSsoUrl,
|
|
2381
2293
|
apiLeadUrl,
|
|
2382
|
-
apiSubotUrl, locale: localeProps,
|
|
2383
|
-
|
|
2384
|
-
categoryId,
|
|
2385
|
-
siteDomain,
|
|
2386
|
-
forceCampaign,
|
|
2387
|
-
rawForceCampaign,
|
|
2388
|
-
onSubmit,
|
|
2389
|
-
onImpression,
|
|
2294
|
+
apiSubotUrl, locale: localeProps, articleId, categoryId: subscriptionInfo.subcriptionCateId, siteDomain: site_domain, forceCampaign,
|
|
2295
|
+
submit,
|
|
2390
2296
|
submitSubscriptionBox,
|
|
2391
|
-
|
|
2297
|
+
impression }) },
|
|
2392
2298
|
React__default["default"].createElement(LeadGenTranslationProvider, { locale: locale }, children)));
|
|
2393
2299
|
};
|
|
2394
2300
|
const useLeadGenContext = () => {
|
|
@@ -2976,7 +2882,7 @@ const cssWrapperInputNotShrink$1 = react.css `
|
|
|
2976
2882
|
const cssWrapperInputShrink$1 = react.css `
|
|
2977
2883
|
height: auto;
|
|
2978
2884
|
min-height: var(--container-height, 56px);
|
|
2979
|
-
padding-block: var(--space-y-shrink,
|
|
2885
|
+
padding-block: var(--space-y-shrink, 7px);
|
|
2980
2886
|
cursor: text;
|
|
2981
2887
|
pointer-events: auto;
|
|
2982
2888
|
`;
|
|
@@ -2988,7 +2894,7 @@ const cssInputWrapperError$1 = react.css `
|
|
|
2988
2894
|
const StyledTextFieldContainer$1 = styled__default["default"].div `
|
|
2989
2895
|
--space-x: 16px;
|
|
2990
2896
|
--space-y-not-shrink: 15px;
|
|
2991
|
-
--space-y-shrink:
|
|
2897
|
+
--space-y-shrink: 7px;
|
|
2992
2898
|
--container-height: 56px;
|
|
2993
2899
|
--label-not-shrink: 16px;
|
|
2994
2900
|
--label-shrink: 12px;
|
|
@@ -3401,7 +3307,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3401
3307
|
const { image, extra_fields, id: campaign_id, bot_id: campaign_subot_id = [], ThankYouBlock, } = forceCampaign || {};
|
|
3402
3308
|
const { textBlocks, listBlockAdded, actionBlocks } = extra_fields || {};
|
|
3403
3309
|
const { submitBlock } = actionBlocks || {};
|
|
3404
|
-
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish,
|
|
3310
|
+
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impression, } = useLeadGenContext();
|
|
3405
3311
|
const { t } = index$1.useTranslations();
|
|
3406
3312
|
const { action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
3407
3313
|
const [loading, setLoading] = React.useState(false);
|
|
@@ -3461,7 +3367,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3461
3367
|
const reqValues = Object.assign(Object.assign({}, newValues), ssoValues);
|
|
3462
3368
|
const [res] = yield Promise.all([
|
|
3463
3369
|
submitSubscriptionBox(reqValues),
|
|
3464
|
-
|
|
3370
|
+
impression('submit_form'),
|
|
3465
3371
|
]);
|
|
3466
3372
|
const { _data } = res || {};
|
|
3467
3373
|
const { model } = _data || {};
|
|
@@ -3507,7 +3413,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3507
3413
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
|
|
3508
3414
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
3509
3415
|
]);
|
|
3510
|
-
return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () =>
|
|
3416
|
+
return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impression('impression') },
|
|
3511
3417
|
React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-phone-type": subscriptionPhoneType, "data-type": "subscription_box_A" },
|
|
3512
3418
|
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 })),
|
|
3513
3419
|
!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 })))));
|
|
@@ -3516,11 +3422,8 @@ const LeadGenSubscriptionBox$1 = React.memo(LeadGenSubscriptionBoxWithoutMemo);
|
|
|
3516
3422
|
|
|
3517
3423
|
const Container = () => {
|
|
3518
3424
|
const context = React.useContext(LeadGenContext);
|
|
3519
|
-
const { campaign_code, locale, siteId, siteDomain, userInfo, forceCampaign } = context;
|
|
3520
|
-
|
|
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 }));
|
|
3425
|
+
const { campaign_code, locale, siteId, siteDomain, userInfo, forceCampaign, subscriptionTitle, } = context;
|
|
3426
|
+
return subscriptionTitle ? (React__default["default"].createElement(LeadGenSubscriptionBox$1, { locale: locale, siteId: siteId, siteDomain: siteDomain, userInfo: userInfo, forceCampaign: forceCampaign, campaign_code: campaign_code })) : null;
|
|
3524
3427
|
};
|
|
3525
3428
|
Container.displayName = 'LeadGenSubscriptionBox';
|
|
3526
3429
|
const ALLOW_LOCALE = [Locale.LOCALE.Vietnam, Locale.LOCALE.Malaysia, Locale.LOCALE.Indonesia];
|
|
@@ -4242,7 +4145,7 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
|
|
|
4242
4145
|
React__default["default"].createElement(index$4.Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
|
|
4243
4146
|
};
|
|
4244
4147
|
|
|
4245
|
-
const InlineLayout = ({
|
|
4148
|
+
const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
|
|
4246
4149
|
const target = React.useMemo(() => {
|
|
4247
4150
|
if (!inlinePosition)
|
|
4248
4151
|
return null;
|
|
@@ -4347,9 +4250,6 @@ const InlineLayout = ({ flatComponent, content, inlinePosition, doImpression, })
|
|
|
4347
4250
|
}
|
|
4348
4251
|
}
|
|
4349
4252
|
}, [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
|
-
}
|
|
4353
4253
|
if (!inlinePosition || !target)
|
|
4354
4254
|
return null;
|
|
4355
4255
|
return ReactDOM.createPortal(React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content), target);
|
|
@@ -4390,28 +4290,15 @@ const EmptyComponent = ({ onClose, onContinue, }) => {
|
|
|
4390
4290
|
React__default["default"].createElement(core.Button, { onClick: onContinue, size: "lg", variant: "filled", fullWidth: false, className: "leadgen-btn leadgen-btn_empty_again" }, t('lead.empty.submitAgain')))));
|
|
4391
4291
|
};
|
|
4392
4292
|
|
|
4393
|
-
var useTextStyles = core.createStyles((theme) => {
|
|
4394
|
-
return text.GlobalTextStyleNew(theme)[text.CustomStylesType.LEADGEN];
|
|
4395
|
-
});
|
|
4396
|
-
|
|
4397
|
-
const ErrorIcon = (_a) => {
|
|
4398
|
-
var { size } = _a, rest = tslib_es6.__rest(_a, ["size"]);
|
|
4399
|
-
const props = Object.assign({ width: size, height: size }, rest);
|
|
4400
|
-
return (React__default["default"].createElement("svg", Object.assign({ width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
4401
|
-
React__default["default"].createElement("path", { d: "M5.996 6.513q.163 0 .282-.12a.38.38 0 0 0 .118-.28V3.937q0-.15-.118-.268a.4.4 0 0 0-.282-.119.4.4 0 0 0-.281.12.38.38 0 0 0-.119.28v2.175q0 .15.119.269.12.119.281.119m0 1.862a.43.43 0 0 0 .3-.112.4.4 0 0 0 .125-.313.4.4 0 0 0-.125-.3.4.4 0 0 0-.3-.125.4.4 0 0 0-.3.125.4.4 0 0 0-.125.3.4.4 0 0 0 .125.313.43.43 0 0 0 .3.112m0 2.375a4.6 4.6 0 0 1-1.856-.375 4.8 4.8 0 0 1-1.506-1.012A4.8 4.8 0 0 1 1.62 7.857 4.6 4.6 0 0 1 1.246 6q0-.987.375-1.856t1.013-1.506A4.8 4.8 0 0 1 4.14 1.625a4.6 4.6 0 0 1 1.856-.375q.988 0 1.857.375Q8.72 2 9.359 2.638q.637.637 1.012 1.506T10.747 6t-.375 1.857A4.8 4.8 0 0 1 9.36 9.363a4.8 4.8 0 0 1-1.506 1.012q-.87.375-1.857.375", fill: "#F44D2C" })));
|
|
4402
|
-
};
|
|
4403
|
-
ErrorIcon.defaultProps = {
|
|
4404
|
-
size: 18,
|
|
4405
|
-
color: miscTheme.theme.colors.gray600,
|
|
4406
|
-
activeColor: miscTheme.theme.colors.primaryBase,
|
|
4407
|
-
};
|
|
4408
|
-
|
|
4409
4293
|
const SubtitleBlock = ({ children, align, }) => (React__default["default"].createElement("p", { className: `lead-modal__description ${'le-text-align-' + (align || '')} ${LEAD_CLASS}` }, children));
|
|
4410
4294
|
|
|
4411
4295
|
const cssInputNotShrink = react.css `
|
|
4412
4296
|
height: 100% !important;
|
|
4413
4297
|
min-height: calc(var(--container-height, 56px) * 24 / 56);
|
|
4298
|
+
color: ${miscTheme.theme.colors.gray800};
|
|
4299
|
+
font-size: var(--input, 15px);
|
|
4414
4300
|
line-height: calc(var(--container-height, 56px) * 24 / 56);
|
|
4301
|
+
letter-spacing: -0.3px;
|
|
4415
4302
|
border: none !important;
|
|
4416
4303
|
border-radius: 0 !important;
|
|
4417
4304
|
outline: none !important;
|
|
@@ -4434,6 +4321,11 @@ const cssLabelNotShrink = react.css `
|
|
|
4434
4321
|
position: absolute;
|
|
4435
4322
|
top: calc(var(--container-height) / 2);
|
|
4436
4323
|
left: var(--space-x, 16px);
|
|
4324
|
+
color: ${miscTheme.theme.colors.gray400};
|
|
4325
|
+
font-size: var(--label-not-shrink, 15px);
|
|
4326
|
+
font-weight: 500;
|
|
4327
|
+
line-height: calc(var(--container-height, 56px) * 24 / 56);
|
|
4328
|
+
letter-spacing: -0.3px;
|
|
4437
4329
|
margin: 0;
|
|
4438
4330
|
z-index: 1;
|
|
4439
4331
|
cursor: pointer;
|
|
@@ -4441,7 +4333,11 @@ const cssLabelNotShrink = react.css `
|
|
|
4441
4333
|
transition: 0.125s ease-in all;
|
|
4442
4334
|
`;
|
|
4443
4335
|
const cssLabelShrink = react.css `
|
|
4444
|
-
|
|
4336
|
+
color: ${miscTheme.theme.colors.gray400};
|
|
4337
|
+
font-size: var(--label-shrink, 12px);
|
|
4338
|
+
line-height: calc(var(--container-height, 56px) * 18 / 56);
|
|
4339
|
+
letter-spacing: -0.2px;
|
|
4340
|
+
top: calc(var(--container-height) * 7 / 56);
|
|
4445
4341
|
transform: none;
|
|
4446
4342
|
transition: 0.125s ease-out all;
|
|
4447
4343
|
`;
|
|
@@ -4472,7 +4368,7 @@ const cssWrapperInputNotShrink = react.css `
|
|
|
4472
4368
|
const cssWrapperInputShrink = react.css `
|
|
4473
4369
|
height: auto;
|
|
4474
4370
|
min-height: var(--container-height, 56px);
|
|
4475
|
-
padding-block: var(--space-y-shrink,
|
|
4371
|
+
padding-block: var(--space-y-shrink, 7px);
|
|
4476
4372
|
cursor: text;
|
|
4477
4373
|
pointer-events: auto;
|
|
4478
4374
|
`;
|
|
@@ -4484,7 +4380,7 @@ const cssInputWrapperError = react.css `
|
|
|
4484
4380
|
const StyledTextFieldContainer = styled__default["default"].div `
|
|
4485
4381
|
--space-x: 16px;
|
|
4486
4382
|
--space-y-not-shrink: 15px;
|
|
4487
|
-
--space-y-shrink:
|
|
4383
|
+
--space-y-shrink: 7px;
|
|
4488
4384
|
--container-height: 56px;
|
|
4489
4385
|
--label-not-shrink: 16px;
|
|
4490
4386
|
--label-shrink: 12px;
|
|
@@ -4711,7 +4607,7 @@ const TextField = (props) => {
|
|
|
4711
4607
|
setShrink(shrinkProps);
|
|
4712
4608
|
}, [shrinkProps]);
|
|
4713
4609
|
return (React__default["default"].createElement(StyledTextFieldContainer, Object.assign({ shrink: shrink, className: core.clsx(className, 'textField', { textField_shrink: !!shrink }) }, restProps),
|
|
4714
|
-
React__default["default"].createElement("div", { ref: containerRef, onClick: onClick, className: "textField_wrapper" },
|
|
4610
|
+
React__default["default"].createElement("div", { ref: containerRef, onClick: onClick, className: "textField_wrapper" }, children)));
|
|
4715
4611
|
};
|
|
4716
4612
|
const ChoiceField = (props) => {
|
|
4717
4613
|
const { children, className } = props, restProps = tslib_es6.__rest(props, ["children", "className"]);
|
|
@@ -4722,7 +4618,6 @@ const TitleBlock = ({ children, align, }) => (React__default["default"].createEl
|
|
|
4722
4618
|
|
|
4723
4619
|
const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, }) => {
|
|
4724
4620
|
const { t } = index$1.useTranslations();
|
|
4725
|
-
const { classes } = useTextStyles();
|
|
4726
4621
|
const form = useLeadFormContext();
|
|
4727
4622
|
const formValues = form.values;
|
|
4728
4623
|
const labelTuples = React.useMemo(() => {
|
|
@@ -4742,44 +4637,24 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4742
4637
|
case 'SubtitleBlock':
|
|
4743
4638
|
return (React__default["default"].createElement(SubtitleBlock, { key: index, align: align }, value));
|
|
4744
4639
|
case 'TextBlock':
|
|
4745
|
-
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
'label',
|
|
4750
|
-
'input',
|
|
4751
|
-
'description',
|
|
4752
|
-
'error',
|
|
4753
|
-
] }, form.getInputProps(value), { name: value, error: form.errors[value] && (React__default["default"].createElement(core.Flex, { align: 'center', gap: 4 },
|
|
4754
|
-
React__default["default"].createElement(ErrorIcon, { size: 12 }),
|
|
4755
|
-
React__default["default"].createElement(index$2.Text, { size: "c1", variant: "error" }, form.errors[value]))) })))));
|
|
4640
|
+
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4641
|
+
React__default["default"].createElement(core.TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: " ",
|
|
4642
|
+
// className="lead-modal__form-control leadgen-form_field"
|
|
4643
|
+
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4644
|
+
label: label, "data-control": "text", "data-lead-control": name, "data-is-required": required, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value), { name: value }))));
|
|
4756
4645
|
case 'NumberBlock':
|
|
4757
|
-
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
'label',
|
|
4762
|
-
'input',
|
|
4763
|
-
'description',
|
|
4764
|
-
'error',
|
|
4765
|
-
] }, form.getInputProps(value), { error: form.errors[value] && (React__default["default"].createElement(core.Flex, { align: 'center', gap: 4 },
|
|
4766
|
-
React__default["default"].createElement(ErrorIcon, { size: 12 }),
|
|
4767
|
-
React__default["default"].createElement(index$2.Text, { size: "c1", variant: "error" }, form.errors[value]))) })))));
|
|
4646
|
+
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4647
|
+
React__default["default"].createElement(core.NumberInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: " ",
|
|
4648
|
+
// className="lead-modal__form-control leadgen-form_field"
|
|
4649
|
+
// onChange={(e) => inputOnChange('number', e)}
|
|
4650
|
+
label: label, "data-control": "number", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4768
4651
|
case 'EmailBlock':
|
|
4769
|
-
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
'label',
|
|
4775
|
-
'input',
|
|
4776
|
-
'description',
|
|
4777
|
-
'error',
|
|
4778
|
-
] }, form.getInputProps(value), { error: form.errors[value] && (React__default["default"].createElement(core.Flex, { align: 'center', gap: 4 },
|
|
4779
|
-
React__default["default"].createElement(ErrorIcon, { size: 12 }),
|
|
4780
|
-
React__default["default"].createElement(index$2.Text, { size: "c1", variant: "error" }, form.errors[value]))), styles: (theme) => ({
|
|
4781
|
-
input: text.GlobalTextStyleNew(theme)[text.CustomStylesType.LEADGEN].p2,
|
|
4782
|
-
}) })))));
|
|
4652
|
+
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4653
|
+
React__default["default"].createElement(core.TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4654
|
+
// type="email"
|
|
4655
|
+
placeholder: " ",
|
|
4656
|
+
// className="lead-modal__form-control leadgen-form_field"
|
|
4657
|
+
label: label, "data-control": "email", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4783
4658
|
case 'PhoneOtpBlock':
|
|
4784
4659
|
case 'WhatsappOtpBlock':
|
|
4785
4660
|
case 'ZaloOtpBlock':
|
|
@@ -4788,30 +4663,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4788
4663
|
const _b = form.getInputProps(value), { error } = _b, formPhoneInputWrapper = tslib_es6.__rest(_b, ["error"]);
|
|
4789
4664
|
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: core.clsx('lead-modal__form-control leadgen-form_field', {
|
|
4790
4665
|
'leadgen-form_field_error': !!error,
|
|
4791
|
-
}) },
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
React__default["default"].createElement("div", { className: "mantine-Input-wrapper" },
|
|
4798
|
-
React__default["default"].createElement(index$3.Phone, Object.assign({ className: `mantine-Input-input ${classes.p2}`, name: value, spellCheck: false, type: "tel", placeholder: " ",
|
|
4799
|
-
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4800
|
-
id: htmlForId, defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name, "data-is-required": required }, formPhoneInputWrapper)))))));
|
|
4666
|
+
}) },
|
|
4667
|
+
React__default["default"].createElement(core.Input.Wrapper, { size: "md", withAsterisk: required, label: label, "data-invalid": !!error, labelProps: { htmlFor: htmlForId }, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error },
|
|
4668
|
+
React__default["default"].createElement("div", { className: "mantine-Input-wrapper" },
|
|
4669
|
+
React__default["default"].createElement(index$3.Phone, Object.assign({ className: "mantine-Input-input", name: value, spellCheck: false, type: "tel", placeholder: " ",
|
|
4670
|
+
// onBlur={(e) => inputOnBlur('tel', e)}
|
|
4671
|
+
id: htmlForId, defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), "data-control": "tel", "data-lead-control": name, "data-is-required": required }, formPhoneInputWrapper))))));
|
|
4801
4672
|
}
|
|
4802
4673
|
case 'LocationBlock': {
|
|
4803
|
-
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4804
|
-
|
|
4805
|
-
'input',
|
|
4806
|
-
'description',
|
|
4807
|
-
'error',
|
|
4808
|
-
] }, form.getInputProps(value))))));
|
|
4674
|
+
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4675
|
+
React__default["default"].createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: " ", label: label, "data-control": "text", "data-lead-control": name, "data-is-required": required, locale: locale, inputWrapperOrder: ['label', 'input', 'description', 'error'] }, form.getInputProps(value)))));
|
|
4809
4676
|
}
|
|
4810
4677
|
case 'DateBlock': {
|
|
4811
4678
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = tslib_es6.__rest(_c, ["error"]);
|
|
4812
|
-
return (React__default["default"].createElement(core.Input.Wrapper, { key: index, size: "md", withAsterisk: required, label:
|
|
4813
|
-
React__default["default"].createElement(ErrorIcon, { size: 12 }),
|
|
4814
|
-
React__default["default"].createElement(index$2.Text, { size: "c1", variant: "error" }, form.errors[value]))), className: "lead-modal__form-control leadgen-form_field" },
|
|
4679
|
+
return (React__default["default"].createElement(core.Input.Wrapper, { key: index, size: "md", withAsterisk: required, label: label, "data-invalid": !!error, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: error, className: "lead-modal__form-control leadgen-form_field" },
|
|
4815
4680
|
React__default["default"].createElement(InputDate.InputDate, Object.assign({ name: value, error: Boolean(error), locale: locale, "data-extra": true, "data-name": value, "data-control": "date", "data-lead-control": name, "data-is-required": required, className: "leadgen-form_field_date", labelTuples: labelTuples }, formInputProps))));
|
|
4816
4681
|
}
|
|
4817
4682
|
case 'LinkButtonBlock':
|
|
@@ -4828,7 +4693,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4828
4693
|
}, "data-name": value + '-mailchimp' })),
|
|
4829
4694
|
React__default["default"].createElement(index$3.Checkbox.Group, Object.assign({ withAsterisk: required,
|
|
4830
4695
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4831
|
-
label:
|
|
4696
|
+
label: label, size: "md", sx: {
|
|
4832
4697
|
display: 'flex',
|
|
4833
4698
|
flexDirection: 'column',
|
|
4834
4699
|
flexWrap: 'wrap',
|
|
@@ -4841,22 +4706,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4841
4706
|
isSendMailChimp && (React__default["default"].createElement(core.Input, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
4842
4707
|
React__default["default"].createElement(index$3.Radio.Group, Object.assign({ withAsterisk: required,
|
|
4843
4708
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4844
|
-
label:
|
|
4709
|
+
label: label, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4845
4710
|
return (React__default["default"].createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4846
4711
|
} }, form.getInputProps(value)), listQuestion.map((l, _index) => (React__default["default"].createElement(index$3.Radio, { name: value, key: _index, value: l.value, label: l.placeholder, "data-control": "radio", "data-lead-control": name, "data-is-required": required }))))));
|
|
4847
4712
|
case 'DropdownBlock':
|
|
4848
|
-
return (React__default["default"].createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field DropdownBlock", key: index },
|
|
4713
|
+
return (React__default["default"].createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field DropdownBlock", key: index },
|
|
4849
4714
|
React__default["default"].createElement("div", { style: { display: 'none' }, "data-extra": true, "data-name": value, "data-control": 'dropdown', "data-lead-control": name, "data-is-required": required }),
|
|
4850
4715
|
React__default["default"].createElement(index$3.Select
|
|
4851
4716
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4852
4717
|
, Object.assign({
|
|
4853
4718
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4854
|
-
label:
|
|
4719
|
+
label: label, placeholder: " ", searchable: true, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
4855
4720
|
value: l.value,
|
|
4856
4721
|
label: l.placeholder,
|
|
4857
|
-
})), nothingFound: React__default["default"].createElement(NoData, null),
|
|
4858
|
-
React__default["default"].createElement(ErrorIcon, { size: 12 }),
|
|
4859
|
-
React__default["default"].createElement(index$2.Text, { size: "c1", variant: "error" }, form.errors[value]))), styles: {
|
|
4722
|
+
})), nothingFound: React__default["default"].createElement(NoData, null), styles: {
|
|
4860
4723
|
item: {
|
|
4861
4724
|
paddingBlock: 12,
|
|
4862
4725
|
paddingInline: 10,
|
|
@@ -4877,19 +4740,20 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4877
4740
|
paddingInline: 0,
|
|
4878
4741
|
},
|
|
4879
4742
|
},
|
|
4880
|
-
}, maxDropdownHeight: 192 }, form.getInputProps(value)))))
|
|
4743
|
+
}, maxDropdownHeight: 192 }, form.getInputProps(value)))));
|
|
4881
4744
|
case 'TncBlock':
|
|
4882
4745
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = tslib_es6.__rest(_d, ["error"]);
|
|
4883
4746
|
return (React__default["default"].createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
4884
4747
|
React__default["default"].createElement(core.Input.Wrapper, { error: error },
|
|
4885
|
-
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: {
|
|
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: (theme) => ({
|
|
4886
4749
|
root: {
|
|
4887
4750
|
a: {
|
|
4888
|
-
textDecoration: 'underline',
|
|
4751
|
+
textDecoration: 'underline !important',
|
|
4889
4752
|
textUnderlineOffset: '3px',
|
|
4753
|
+
color: `${theme.colors.gray[7]} !important`,
|
|
4890
4754
|
},
|
|
4891
4755
|
},
|
|
4892
|
-
} }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }, tncInputProps)))));
|
|
4756
|
+
}) }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }, tncInputProps)))));
|
|
4893
4757
|
}
|
|
4894
4758
|
return null;
|
|
4895
4759
|
})));
|
|
@@ -5142,7 +5006,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
5142
5006
|
];
|
|
5143
5007
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
5144
5008
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
5145
|
-
const LightboxLayout = ({
|
|
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, }) => {
|
|
5146
5010
|
var _a, _b;
|
|
5147
5011
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
5148
5012
|
const { isMobile } = index$b.useScreenSize();
|
|
@@ -5542,7 +5406,7 @@ const LightboxLayout = ({ flatComponent, popupId, extraFields, onClose: onCloseP
|
|
|
5542
5406
|
return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
|
|
5543
5407
|
}
|
|
5544
5408
|
else if (isInline) {
|
|
5545
|
-
return (React__default["default"].createElement(InlineLayout, {
|
|
5409
|
+
return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5546
5410
|
}
|
|
5547
5411
|
return null;
|
|
5548
5412
|
};
|
|
@@ -5635,7 +5499,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
|
|
|
5635
5499
|
return null;
|
|
5636
5500
|
}
|
|
5637
5501
|
}
|
|
5638
|
-
const NewLeadPopup = ({
|
|
5502
|
+
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5639
5503
|
var _a, _b;
|
|
5640
5504
|
const { apiUrl, siteDomain } = React.useContext(LeadGenContext$1);
|
|
5641
5505
|
const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
|
|
@@ -5738,7 +5602,7 @@ const NewLeadPopup = ({ flatComponent, campaign, action, onSubmit, onClose, onUn
|
|
|
5738
5602
|
currentLayout == 'Fullscreen' ||
|
|
5739
5603
|
currentLayout == 'Sidebar' ||
|
|
5740
5604
|
currentLayout == 'Slider') {
|
|
5741
|
-
return (React__default["default"].createElement(LightboxLayout, {
|
|
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 }));
|
|
5742
5606
|
}
|
|
5743
5607
|
else if (currentLayout.includes('Skin')) {
|
|
5744
5608
|
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 }));
|
|
@@ -5830,7 +5694,7 @@ const formatTrackingData = (params) => {
|
|
|
5830
5694
|
};
|
|
5831
5695
|
|
|
5832
5696
|
// mount css
|
|
5833
|
-
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps,
|
|
5697
|
+
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, }) => {
|
|
5834
5698
|
var _a, _b;
|
|
5835
5699
|
const scrollEventHandlerRef = React.useRef();
|
|
5836
5700
|
const leadStartTimeRef = React.useRef(Date.now());
|
|
@@ -5942,10 +5806,12 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5942
5806
|
const { listBlockAdded = [] } = params || {};
|
|
5943
5807
|
if (!TEMPLATE_ALLOW_NEWTRACKING.includes(currentLayout))
|
|
5944
5808
|
return;
|
|
5809
|
+
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
5810
|
+
const cookieId = miscCookieHelper.getCookie('hhg-id') || '';
|
|
5945
5811
|
const data = formatTrackingData({
|
|
5946
5812
|
commonData: {
|
|
5947
|
-
cookie_id:
|
|
5948
|
-
ga_client_id:
|
|
5813
|
+
cookie_id: cookieId,
|
|
5814
|
+
ga_client_id: gaCookie,
|
|
5949
5815
|
country_code: locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5950
5816
|
status: 'in_progress',
|
|
5951
5817
|
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
@@ -5955,13 +5821,28 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5955
5821
|
currentLayout,
|
|
5956
5822
|
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: [] }),
|
|
5957
5823
|
});
|
|
5958
|
-
return
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5824
|
+
return Promise.all([
|
|
5825
|
+
fetch(`${apiUrl}api/collection/tracking-completion`, {
|
|
5826
|
+
method: 'POST',
|
|
5827
|
+
headers: {
|
|
5828
|
+
'Content-Type': 'application/json',
|
|
5829
|
+
},
|
|
5830
|
+
body: JSON.stringify(data),
|
|
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
|
+
]);
|
|
5965
5846
|
};
|
|
5966
5847
|
React.useEffect(() => {
|
|
5967
5848
|
if (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code)
|
|
@@ -6170,7 +6051,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
6170
6051
|
!!currentLayout &&
|
|
6171
6052
|
!currentLayout.includes('Inline') &&
|
|
6172
6053
|
!currentLayout.includes('Sidebar') && (React__default["default"].createElement(core.Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
6173
|
-
React__default["default"].createElement(NewLeadPopup, {
|
|
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 })))));
|
|
6174
6055
|
}))))))));
|
|
6175
6056
|
};
|
|
6176
6057
|
const LeadGen = _LeadGen;
|
|
@@ -6182,6 +6063,4 @@ LeadGen.OtpForm = OtpBlock$1;
|
|
|
6182
6063
|
LeadGen.Close = Close.Close;
|
|
6183
6064
|
|
|
6184
6065
|
exports.LeadGen = LeadGen;
|
|
6185
|
-
exports.LeadGenInline = LeadGenInline;
|
|
6186
6066
|
exports.LeadGenSubscriptionBox = LeadGenSubscriptionBox;
|
|
6187
|
-
exports.leadGenInlineGetCampaign = leadGenInlineGetCampaign;
|