@hhgtech/hhg-components 1.29.416 → 1.29.417-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-460cc7e7.js → InputDate-10ab3c87.js} +14 -20
- package/build/{LastPeriod-d9055e31.js → LastPeriod-59498eca.js} +1 -1
- package/build/{MobileBottomNavigationIcon-398bbc66.js → MobileBottomNavigationIcon-e145c3c4.js} +3 -3
- package/build/{Spinner-8191fb29.js → Spinner-9a52f0fc.js} +1 -1
- package/build/{WhatsApp-4b25318c.js → WhatsApp-c6abf93d.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/atoms/icons/ErrorIcon.d.ts +4 -0
- package/build/components/mantine/styles.d.ts +12 -0
- package/build/components/mantine/theme/input.d.ts +7 -6
- package/build/components/mantine/theme/text.d.ts +51 -0
- package/build/components.js +98 -98
- package/build/{constants-02c6edfe.js → constants-c79cfa13.js} +5 -2
- package/build/constants.js +3 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-31621549.js → core-34634848.js} +1 -1
- package/build/{dataTransform-4595f9c5.js → dataTransform-36631bd8.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-09d36de6.js → editor-919cc92c.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/{InputDate-90201030.js → InputDate-a3a92776.js} +14 -20
- package/build/esm/{LastPeriod-d4724e1a.js → LastPeriod-fd096ba3.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-74749244.js → MobileBottomNavigationIcon-d5a5b65a.js} +3 -3
- package/build/esm/{Spinner-a4b3358b.js → Spinner-33cddd07.js} +1 -1
- package/build/esm/{WhatsApp-d541cac0.js → WhatsApp-4d7f9c70.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/atoms/icons/ErrorIcon.d.ts +4 -0
- package/build/esm/components/mantine/styles.d.ts +12 -0
- package/build/esm/components/mantine/theme/input.d.ts +7 -6
- package/build/esm/components/mantine/theme/text.d.ts +51 -0
- package/build/esm/components.js +98 -98
- package/build/esm/{constants-a6bd6d1e.js → constants-78df9624.js} +5 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/constantsDomainLocales.js +1 -1
- package/build/esm/constantsRiskScreener.js +2 -2
- package/build/esm/constantsSite.js +2 -2
- package/build/esm/{core-82b89af5.js → core-4cbcf93f.js} +1 -1
- package/build/esm/{dataTransform-d1bf4d7d.js → dataTransform-7ce11bad.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-aeae4111.js → editor-a6339164.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/esm/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-7557e988.js → healthTools-af349b99.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- package/build/esm/hooks/usePlacesAutocomplete.d.ts +1 -1
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-9c2f5f06.js → index-015ced74.js} +2 -2
- package/build/esm/{index-312c0c1a.js → index-021637b7.js} +13 -13
- package/build/esm/{index-541bbaf5.js → index-022306e0.js} +4 -4
- package/build/esm/{index-a5586f87.js → index-08c6156a.js} +4 -4
- package/build/esm/{index-72ec4da1.js → index-0a63ebda.js} +2 -2
- package/build/esm/{index-0bee62c4.js → index-0d054218.js} +15 -15
- package/build/esm/{index-4c0e28c4.js → index-0dbf6252.js} +2 -2
- package/build/esm/{index-fb787f5e.js → index-128f3777.js} +17 -17
- package/build/esm/{index-49f04c19.js → index-15ed0b7b.js} +2 -2
- package/build/esm/{index-b91bdba3.js → index-160709b1.js} +1 -1
- package/build/esm/{index-8825734b.js → index-16d57866.js} +1 -1
- package/build/esm/{index-3b8539da.js → index-1da67519.js} +32 -32
- package/build/esm/{index-08ad08f5.js → index-2a334259.js} +3 -3
- package/build/esm/{index-32581851.js → index-2e203ba1.js} +21 -41
- package/build/esm/{index-7297c04c.js → index-2e4d5bb5.js} +3 -3
- package/build/esm/{index-14417814.js → index-30439b7c.js} +2 -2
- package/build/esm/{index-77cca2f4.js → index-3663e4a3.js} +13 -13
- package/build/esm/{index-17ceb8b5.js → index-3db6b857.js} +6 -6
- package/build/esm/{index-973ac5c4.js → index-4727ddeb.js} +2 -2
- package/build/esm/{index-37ef49b1.js → index-482e1ec9.js} +6 -6
- package/build/esm/{index-9bd28301.js → index-4a03a4ac.js} +3 -3
- package/build/esm/{index-9d814290.js → index-52ba97df.js} +1 -1
- package/build/esm/{index-621cc638.js → index-57f3be57.js} +17 -17
- package/build/esm/{index-0b307a4e.js → index-612d1ed4.js} +2 -2
- package/build/esm/{index-05350c5b.js → index-64f67183.js} +22 -22
- package/build/esm/{index-a067d67b.js → index-701c2b2b.js} +2 -2
- package/build/esm/{index-cbd9568f.js → index-727620f5.js} +5 -5
- package/build/esm/{index-1a608269.js → index-758fe64b.js} +9 -15
- package/build/esm/{index-578f22ff.js → index-780f263f.js} +1 -1
- package/build/esm/{index-e86bac18.js → index-7b8af3a6.js} +6 -6
- package/build/esm/{index-92928c68.js → index-7e93fea8.js} +2 -2
- package/build/esm/{index-b77563ca.js → index-8929870c.js} +16 -16
- package/build/esm/{index-5a2b2d00.js → index-8ad8557d.js} +16 -16
- package/build/esm/{index-5893db57.js → index-91b97596.js} +3 -3
- package/build/esm/{index-eff5cb81.js → index-922f2e2a.js} +15 -15
- package/build/esm/{index-dbaf58de.js → index-99d7bc3c.js} +2 -2
- package/build/esm/{index-1e24a2c6.js → index-9a5f36f5.js} +25 -25
- package/build/esm/{index-b876769a.js → index-a54f298c.js} +3 -3
- package/build/esm/{index-bd90707a.js → index-a5c648ea.js} +2 -2
- package/build/esm/{index-eb82a32e.js → index-a85d858c.js} +32 -32
- package/build/esm/{index-38a04e18.js → index-b0d2269e.js} +10 -10
- package/build/esm/{index-5d2c7f16.js → index-b4700f17.js} +3 -3
- package/build/esm/{index-1dc41c9e.js → index-b5c4120c.js} +2 -2
- package/build/esm/{index-0ba82d61.js → index-b842196b.js} +3 -3
- package/build/esm/{index-8d985be7.js → index-b9f64953.js} +1 -1
- package/build/esm/{index-827f170c.js → index-bcddf955.js} +5 -5
- package/build/esm/{index-d8a96ce6.js → index-bd5de9c1.js} +3 -3
- package/build/esm/{index-a56a7e7e.js → index-be6d6968.js} +13 -13
- package/build/esm/{index-27008b25.js → index-c0a6eb84.js} +1 -1
- package/build/esm/{index-e6360434.js → index-c3cb9cd7.js} +7 -7
- package/build/esm/{index-11039009.js → index-c72ec707.js} +1 -1
- package/build/esm/{index-49e2befa.js → index-d1ac1d55.js} +2 -2
- package/build/esm/{index-811a866d.js → index-d356e439.js} +13 -13
- package/build/esm/{index-4a35d73a.js → index-d7b56082.js} +17 -17
- package/build/esm/{index-6009b6cd.js → index-d7cd9440.js} +7 -7
- package/build/esm/{index-d9e75358.js → index-daa24a2e.js} +6 -6
- package/build/esm/{index-3ec225a9.js → index-dd874cb1.js} +13 -13
- package/build/esm/{index-2d140c4c.js → index-e54ec864.js} +18 -27
- package/build/esm/{index-2283d0f7.js → index-e83c2999.js} +2 -2
- package/build/esm/{index-b22d3416.js → index-ea2810cf.js} +6 -6
- package/build/esm/{index-a4e44155.js → index-eb170bef.js} +13 -13
- package/build/esm/{index-2b77f3a1.js → index-f0c9c25e.js} +30 -30
- package/build/esm/{index-94247667.js → index-f1b61177.js} +11 -11
- package/build/esm/{index-439bceaa.js → index-f1bdaffc.js} +1 -1
- package/build/esm/{index-02d20d87.js → index-f3087826.js} +17 -17
- package/build/esm/{index-6f1d51ec.js → index-f45d9162.js} +15 -15
- package/build/esm/{index-a1950224.js → index-f8de1f75.js} +2 -2
- package/build/esm/{index-a88a878d.js → index-fca58416.js} +24 -24
- package/build/esm/index.js +119 -119
- package/build/esm/{labelSorting-afbe306c.js → labelSorting-a3c6de38.js} +4 -4
- package/build/esm/lead/LeadGen.helpers.d.ts +2 -2
- package/build/esm/lead/LeadGen.type.d.ts +4 -3
- package/build/esm/lead/LeadGenInline/LeadGenInline.d.ts +8 -0
- package/build/esm/lead/LeadGenInline/index.d.ts +2 -0
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +21 -15
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContainer.d.ts +1 -3
- package/build/esm/lead/index.d.ts +5 -1
- package/build/esm/lead/layouts/inline.d.ts +3 -2
- package/build/esm/lead/layouts/lightbox/fields/textField/index.d.ts +2 -1
- package/build/esm/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/esm/lead/newLeadPopup.d.ts +2 -1
- package/build/esm/lead/services/index.d.ts +5 -1
- package/build/esm/lead/services/index.type.d.ts +5 -0
- package/build/esm/lead/utils.d.ts +18 -0
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +525 -406
- package/build/esm/{logoIcon-d2b8bf2c.js → logoIcon-6ec7eb8c.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc/cachedSystem.d.ts +5 -0
- package/build/esm/misc.js +18 -18
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +75 -75
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +47 -47
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +27 -27
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +51 -51
- package/build/esm/{post-4f2e7f2b.js → post-d8f3fc53.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/esm/ssoV2.js +53 -41
- package/build/esm/{store-40fc7d8d.js → store-36b69be6.js} +3 -3
- package/build/esm/subot.js +37 -37
- package/build/esm/surveyOrPremiumBanner.js +34 -34
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-297f7588.js → surveyThankyouCard-9d2d0b84.js} +5 -5
- package/build/esm/{text-59e76dd7.js → text-51330b00.js} +60 -10
- package/build/esm/together.js +57 -57
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +31 -31
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +52 -52
- package/build/esm/togetherMoleculesCardAuthor.js +29 -29
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +40 -40
- package/build/esm/togetherOrganisms.js +51 -51
- package/build/esm/togetherRichTextEditor.js +18 -18
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-5444daff.js → translationsProvider-8d44b0d4.js} +1 -1
- package/build/esm/{treePopoverMenu-d48dce22.js → treePopoverMenu-a8dc8b30.js} +19 -19
- package/build/esm/{types-39a8ee7b.js → types-701f6eb0.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-bc3dfd8d.js → useCategory-e4f5fbf3.js} +5 -5
- package/build/esm/{useHealthToolCache-aaed38ab.js → useHealthToolCache-e7a310db.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-e0383a78.js → usePlacesAutocomplete-676f5608.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-db5fa0f9.js → utils-30116154.js} +2 -2
- package/build/esm/{utils-40317fad.js → utils-732bb6b1.js} +5 -5
- package/build/esm/{utils-f1d9b65c.js → utils-d9181ffb.js} +2 -2
- package/build/esm/{utils-a220ec92.js → utils-f82cec3f.js} +3 -3
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-b38ec114.js → healthTools-84b8d7ac.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks/usePlacesAutocomplete.d.ts +1 -1
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-2b29e85c.js → index-02a5ed00.js} +6 -6
- package/build/{index-3ed3fab2.js → index-072bf274.js} +24 -24
- package/build/{index-77078e28.js → index-0a89635f.js} +13 -13
- package/build/{index-239d3b6d.js → index-0caade43.js} +15 -15
- package/build/{index-db317575.js → index-140c76d1.js} +2 -2
- package/build/{index-1db868c8.js → index-14aec939.js} +3 -3
- package/build/{index-1f921f49.js → index-1660dfb1.js} +22 -22
- package/build/{index-54c9506b.js → index-18642686.js} +1 -1
- package/build/{index-a82aea0d.js → index-1c9ec8a3.js} +13 -13
- package/build/{index-9b8aef2d.js → index-1ddb509e.js} +11 -11
- package/build/{index-4689ad3f.js → index-2534a8b8.js} +6 -6
- package/build/{index-9997da7b.js → index-2b1e3ca6.js} +13 -13
- package/build/{index-807bb915.js → index-2d0697f8.js} +2 -2
- package/build/{index-c9116f2e.js → index-2d95338b.js} +3 -3
- package/build/{index-c1551fe6.js → index-304e531d.js} +2 -2
- package/build/{index-b3a7c814.js → index-3124878e.js} +1 -1
- package/build/{index-ad84556b.js → index-367519b0.js} +1 -1
- package/build/{index-93780b67.js → index-3750a169.js} +6 -6
- package/build/{index-376680d9.js → index-3903c056.js} +2 -2
- package/build/{index-88e66d62.js → index-39e83a91.js} +5 -5
- package/build/{index-0f6cb54e.js → index-3dd5d7df.js} +15 -15
- package/build/{index-3834e4c0.js → index-3eb7af41.js} +3 -3
- package/build/{index-cd34fbf6.js → index-40b9cb0e.js} +3 -3
- package/build/{index-06442836.js → index-43804567.js} +1 -1
- package/build/{index-cbbf547b.js → index-4c5e698d.js} +21 -41
- package/build/{index-6b182a17.js → index-4dbd5259.js} +17 -17
- package/build/{index-20ad809e.js → index-4eb41d78.js} +2 -2
- package/build/{index-b0ceb28a.js → index-56ed089d.js} +4 -4
- package/build/{index-c794ff25.js → index-58bf6eeb.js} +4 -4
- package/build/{index-7525326f.js → index-6a0960fb.js} +7 -7
- package/build/{index-3406a07e.js → index-6af26e76.js} +32 -32
- package/build/{index-194ded97.js → index-6f94d19c.js} +1 -1
- package/build/{index-2d4a6a84.js → index-73dd23b0.js} +16 -16
- package/build/{index-8b4b461f.js → index-769a2c36.js} +1 -1
- package/build/{index-62a7e1dd.js → index-7db07a55.js} +2 -2
- package/build/{index-45a00fcc.js → index-7f271ad9.js} +2 -2
- package/build/{index-27d0d281.js → index-82e416aa.js} +5 -5
- package/build/{index-51a27c1a.js → index-85f486a7.js} +2 -2
- package/build/{index-17558bdc.js → index-89597de1.js} +3 -3
- package/build/{index-c6e9f5ba.js → index-9c6092bb.js} +32 -32
- package/build/{index-c14f4d51.js → index-9ce4c163.js} +30 -30
- package/build/{index-9e28566d.js → index-9df9fa8e.js} +3 -3
- package/build/{index-d4202c79.js → index-a321fce1.js} +17 -17
- package/build/{index-f7052920.js → index-a414d320.js} +2 -2
- package/build/{index-feccbedb.js → index-a627500d.js} +13 -13
- package/build/{index-90fa3d0d.js → index-a75a01fd.js} +1 -1
- package/build/{index-c134e92d.js → index-b20a58c9.js} +25 -25
- package/build/{index-e2855353.js → index-b61a314d.js} +13 -13
- package/build/{index-d3d9b838.js → index-b676d6b2.js} +9 -15
- package/build/{index-27296b44.js → index-bde334af.js} +3 -3
- package/build/{index-c2742dbd.js → index-bf21e951.js} +18 -27
- package/build/{index-25f35320.js → index-c9835ab1.js} +2 -2
- package/build/{index-fa63bcfc.js → index-c9884478.js} +3 -3
- package/build/{index-93751671.js → index-cae0575b.js} +10 -10
- package/build/{index-9a9ee559.js → index-cae94b25.js} +13 -13
- package/build/{index-e68447bd.js → index-d1b58301.js} +17 -17
- package/build/{index-ba13e9e8.js → index-d335ecd3.js} +2 -2
- package/build/{index-7e23a534.js → index-d3f79564.js} +6 -6
- package/build/{index-3eb9c695.js → index-d6875867.js} +2 -2
- package/build/{index-00470319.js → index-d6bd7268.js} +15 -15
- package/build/{index-6b7f60da.js → index-de8171ad.js} +7 -7
- package/build/{index-6a361713.js → index-de8fb18a.js} +16 -16
- package/build/{index-5da02e93.js → index-ec7119c3.js} +6 -6
- package/build/{index-dddf1be5.js → index-f272770b.js} +2 -2
- package/build/{index-b803a309.js → index-f79c6ea7.js} +1 -1
- package/build/{index-078e1321.js → index-f84e14ca.js} +2 -2
- package/build/{index-79716dd6.js → index-fa89196c.js} +2 -2
- package/build/{index-670c1cf8.js → index-fc41a6d5.js} +17 -17
- package/build/index.js +119 -119
- package/build/{labelSorting-607d24d0.js → labelSorting-ddc2645b.js} +4 -4
- package/build/lead/LeadGen.helpers.d.ts +2 -2
- package/build/lead/LeadGen.type.d.ts +4 -3
- package/build/lead/LeadGenInline/LeadGenInline.d.ts +8 -0
- package/build/lead/LeadGenInline/index.d.ts +2 -0
- package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +21 -15
- package/build/lead/LeadGenSubscriptionBox/LeadGenSubscriptionBoxContainer.d.ts +1 -3
- package/build/lead/index.d.ts +5 -1
- package/build/lead/layouts/inline.d.ts +3 -2
- package/build/lead/layouts/lightbox/fields/textField/index.d.ts +2 -1
- package/build/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/lead/newLeadPopup.d.ts +2 -1
- package/build/lead/services/index.d.ts +5 -1
- package/build/lead/services/index.type.d.ts +5 -0
- package/build/lead/utils.d.ts +18 -0
- package/build/lead.css +1 -1
- package/build/lead.js +524 -403
- package/build/{logoIcon-25362d51.js → logoIcon-0f5b3004.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc/cachedSystem.d.ts +5 -0
- package/build/misc.js +18 -18
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +75 -75
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +47 -47
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +27 -27
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +51 -51
- package/build/{post-2f745621.js → post-fdb2df41.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/ssoV2.js +51 -39
- package/build/{store-c4524000.js → store-1b489104.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-a3db4ca8.js → surveyThankyouCard-4206245a.js} +5 -5
- package/build/{text-b61d7a31.js → text-c3313ee4.js} +60 -9
- package/build/together.js +57 -57
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +31 -31
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +52 -52
- package/build/togetherMoleculesCardAuthor.js +29 -29
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +40 -40
- package/build/togetherOrganisms.js +51 -51
- package/build/togetherRichTextEditor.js +18 -18
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-f08be05d.js → translationsProvider-a097a986.js} +1 -1
- package/build/{treePopoverMenu-53c4d8fd.js → treePopoverMenu-07986abe.js} +19 -19
- package/build/{types-c3629610.js → types-3f3f0421.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-29a09735.js → useCategory-61398ffc.js} +5 -5
- package/build/{useHealthToolCache-b752a977.js → useHealthToolCache-65b8a208.js} +1 -1
- package/build/{usePlacesAutocomplete-95df2b33.js → usePlacesAutocomplete-381d7115.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-714feb5e.js → utils-5b7aa127.js} +3 -3
- package/build/{utils-d73c632c.js → utils-6c36ccea.js} +2 -2
- package/build/{utils-7aa2f419.js → utils-869de120.js} +2 -2
- package/build/{utils-23cbdd2c.js → utils-b9d72531.js} +5 -5
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-9a29e648.js → BMI_BOYS.percentile.monthly-a854bcaa.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-803cb2cf.js → BMI_BOYS.percentile.weekly-8cc6557d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0d488f58.js → BMI_BOYS.percentile.yearly-f830d92e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-650368ba.js → BMI_BOYS.zscore.monthly-e51c9daa.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-5c95aa33.js → BMI_BOYS.zscore.weekly-3f9b7fab.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-24d579ea.js → BMI_BOYS.zscore.yearly-35413eeb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-f318cb06.js → BMI_GIRLS.percentile.monthly-8521df6c.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-b70a59bc.js → BMI_GIRLS.percentile.weekly-51d192af.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-01efcd99.js → BMI_GIRLS.percentile.yearly-9c8adc67.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-d317ac24.js → BMI_GIRLS.zscore.monthly-ed1c0fef.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-28e86377.js → BMI_GIRLS.zscore.weekly-7745b8b2.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-7d6d749c.js → BMI_GIRLS.zscore.yearly-7f0fbf92.js} +0 -0
- /package/build/{ChevronDown-9bb5b2f1.js → ChevronDown-d436669c.js} +0 -0
- /package/build/{Close-d4633e2e.js → Close-47179e40.js} +0 -0
- /package/build/{Google-9f667b1a.js → Google-19f80312.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-669ee743.js → HEAD CIRCUM_BOYS.percentile.monthly-f5502866.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-0156de4e.js → HEAD CIRCUM_BOYS.percentile.weekly-bedd3545.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-bfc5fc2c.js → HEAD CIRCUM_BOYS.percentile.yearly-619dc3dd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-24b56f87.js → HEAD CIRCUM_BOYS.zscore.monthly-350f9027.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b42abef6.js → HEAD CIRCUM_BOYS.zscore.weekly-01ea38d3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-5edc3772.js → HEAD CIRCUM_BOYS.zscore.yearly-47e37c80.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-3df0e502.js → HEAD CIRCUM_GIRLS.percentile.monthly-d6ee1119.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-9024f534.js → HEAD CIRCUM_GIRLS.percentile.weekly-3e6963aa.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-ca350787.js → HEAD CIRCUM_GIRLS.percentile.yearly-e7727dfe.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-fdb13a2d.js → HEAD CIRCUM_GIRLS.zscore.monthly-2473eb3a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e2322601.js → HEAD CIRCUM_GIRLS.zscore.weekly-e64dd3aa.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5561070a.js → HEAD CIRCUM_GIRLS.zscore.yearly-5ecaa9b6.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-17b9e3a5.js → HEIGHT_BOYS.percentile.monthly-80ac8b58.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-02b05774.js → HEIGHT_BOYS.percentile.weekly-d0b14cb0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-452f0891.js → HEIGHT_BOYS.percentile.yearly-de91e04a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-e6fadfaf.js → HEIGHT_BOYS.zscore.monthly-cd8a75f6.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-f6ad64b3.js → HEIGHT_BOYS.zscore.weekly-549d54e6.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-f18ab57e.js → HEIGHT_BOYS.zscore.yearly-7e8e670a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-0758e4b1.js → HEIGHT_GIRLS.percentile.monthly-0b379859.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-710a8aa4.js → HEIGHT_GIRLS.percentile.weekly-20c0f2e1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-2125f01d.js → HEIGHT_GIRLS.percentile.yearly-ce767299.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-7b09786c.js → HEIGHT_GIRLS.zscore.monthly-7d904f97.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-4b7e95c1.js → HEIGHT_GIRLS.zscore.weekly-babeb650.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-4743d1ff.js → HEIGHT_GIRLS.zscore.yearly-051f015f.js} +0 -0
- /package/build/{Locale-d8323a57.js → Locale-2416ac56.js} +0 -0
- /package/build/{Visible-f78beda4.js → Visible-cd41d8cd.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-66c02028.js → WEIGHT_BOYS.percentile.monthly-291ff5dc.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-cba4d76c.js → WEIGHT_BOYS.percentile.weekly-a3e5af1a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-6dd23f5d.js → WEIGHT_BOYS.percentile.yearly-f9aea017.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-a7c65818.js → WEIGHT_BOYS.zscore.monthly-7dc0a4c2.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-bc979437.js → WEIGHT_BOYS.zscore.weekly-ce48f6f8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-07a8582d.js → WEIGHT_BOYS.zscore.yearly-02d1307c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5c928480.js → WEIGHT_GIRLS.percentile.monthly-5784551f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-3788d6b0.js → WEIGHT_GIRLS.percentile.weekly-b4062226.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-09cd78e9.js → WEIGHT_GIRLS.percentile.yearly-3471762d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-8228182a.js → WEIGHT_GIRLS.zscore.monthly-86d8d223.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-30f5bc2d.js → WEIGHT_GIRLS.zscore.weekly-5a6c48b3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-67fe47aa.js → WEIGHT_GIRLS.zscore.yearly-3b074768.js} +0 -0
- /package/build/{animation-521d84b9.js → animation-b69d9b39.js} +0 -0
- /package/build/{constants-47c44643.js → constants-56e8cc26.js} +0 -0
- /package/build/{constants-f41956a8.js → constants-62d7a480.js} +0 -0
- /package/build/{constants-60466d93.js → constants-ed232079.js} +0 -0
- /package/build/{dataTransform-0d9ece63.js → dataTransform-8a85546e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-dc892e80.js → BMI_BOYS.percentile.monthly-7f3c81df.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-840e2c5e.js → BMI_BOYS.percentile.weekly-5701bd58.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-d8a8e7e4.js → BMI_BOYS.percentile.yearly-450708a1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-6c95dae2.js → BMI_BOYS.zscore.monthly-d0b0e143.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-d050c818.js → BMI_BOYS.zscore.weekly-d6031f05.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-d1a27f4d.js → BMI_BOYS.zscore.yearly-461089ea.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-fd5e9dcb.js → BMI_GIRLS.percentile.monthly-8b35fbd6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-437421bb.js → BMI_GIRLS.percentile.weekly-f2367820.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-821d0b60.js → BMI_GIRLS.percentile.yearly-536209fd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-5cac3960.js → BMI_GIRLS.zscore.monthly-94eaf8c1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-1fd59b72.js → BMI_GIRLS.zscore.weekly-5491fcaf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-9c0bdbae.js → BMI_GIRLS.zscore.yearly-dc4017c9.js} +0 -0
- /package/build/esm/{ChevronDown-6a7d989b.js → ChevronDown-a7ef8813.js} +0 -0
- /package/build/esm/{Close-c64d3014.js → Close-e97c53f9.js} +0 -0
- /package/build/esm/{Google-9d754c62.js → Google-81cedc23.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-b31fb4b4.js → HEAD CIRCUM_BOYS.percentile.monthly-23c97f34.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-ac0a5264.js → HEAD CIRCUM_BOYS.percentile.weekly-62bcde26.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7d20eaff.js → HEAD CIRCUM_BOYS.percentile.yearly-e94bbc9d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-8739e70a.js → HEAD CIRCUM_BOYS.zscore.monthly-67fa0a98.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b8812960.js → HEAD CIRCUM_BOYS.zscore.weekly-8e827e7f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-709a676e.js → HEAD CIRCUM_BOYS.zscore.yearly-0a6a6af8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1c7e2423.js → HEAD CIRCUM_GIRLS.percentile.monthly-dcd94b91.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-fd9f7c5e.js → HEAD CIRCUM_GIRLS.percentile.weekly-be4b6bf8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-1d0c94ef.js → HEAD CIRCUM_GIRLS.percentile.yearly-9955236e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-b1d9fa37.js → HEAD CIRCUM_GIRLS.zscore.monthly-d3357201.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-99bd4976.js → HEAD CIRCUM_GIRLS.zscore.weekly-3bb26a74.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b2c2d92a.js → HEAD CIRCUM_GIRLS.zscore.yearly-9c3a9a94.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b76d0b33.js → HEIGHT_BOYS.percentile.monthly-6504b8ae.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-8109b0c0.js → HEIGHT_BOYS.percentile.weekly-23973709.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-b80934c7.js → HEIGHT_BOYS.percentile.yearly-715e66cf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-4b74fa0e.js → HEIGHT_BOYS.zscore.monthly-5f98fc41.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-28abf9d3.js → HEIGHT_BOYS.zscore.weekly-bc07ec44.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-7043babb.js → HEIGHT_BOYS.zscore.yearly-510e42ef.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-63e8cab3.js → HEIGHT_GIRLS.percentile.monthly-30f8bde0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-cdbe09d5.js → HEIGHT_GIRLS.percentile.weekly-e0897ab0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-6ee4531f.js → HEIGHT_GIRLS.percentile.yearly-fee6592e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-2c45ea19.js → HEIGHT_GIRLS.zscore.monthly-f7697434.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-2cb19419.js → HEIGHT_GIRLS.zscore.weekly-2c694bc1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-eca4f1fc.js → HEIGHT_GIRLS.zscore.yearly-0d6e3d3c.js} +0 -0
- /package/build/esm/{Locale-78dd91cd.js → Locale-d46afed9.js} +0 -0
- /package/build/esm/{Visible-69bafaa2.js → Visible-07a390a4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-091d868c.js → WEIGHT_BOYS.percentile.monthly-9c9d3c0a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ed6e9efc.js → WEIGHT_BOYS.percentile.weekly-bdb5d364.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-23c68a1e.js → WEIGHT_BOYS.percentile.yearly-23622c15.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-98d0ef61.js → WEIGHT_BOYS.zscore.monthly-4d3f006b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-9b2c45fe.js → WEIGHT_BOYS.zscore.weekly-03dd1278.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-ea18848d.js → WEIGHT_BOYS.zscore.yearly-b56798e0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-60e07863.js → WEIGHT_GIRLS.percentile.monthly-14bc2c65.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3507063b.js → WEIGHT_GIRLS.percentile.weekly-c5495d8e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9978f885.js → WEIGHT_GIRLS.percentile.yearly-5a304bb0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b885a6f6.js → WEIGHT_GIRLS.zscore.monthly-7f40e1dc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-a38560b6.js → WEIGHT_GIRLS.zscore.weekly-fa880de9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-138070a8.js → WEIGHT_GIRLS.zscore.yearly-9c6715e8.js} +0 -0
- /package/build/esm/{animation-2c75dbd2.js → animation-95c337ba.js} +0 -0
- /package/build/esm/{constants-f26939f5.js → constants-17c2e31c.js} +0 -0
- /package/build/esm/{constants-9b35ad0b.js → constants-275b93dd.js} +0 -0
- /package/build/esm/{constants-10672739.js → constants-7ea26b9a.js} +0 -0
- /package/build/esm/{dataTransform-d69afa4d.js → dataTransform-1afcfb0e.js} +0 -0
- /package/build/esm/{index-6b9ef138.js → index-048ddd80.js} +0 -0
- /package/build/esm/{index-065bf7e9.js → index-1a32b73a.js} +0 -0
- /package/build/esm/{index-b50e5b6c.js → index-272df268.js} +0 -0
- /package/build/esm/{index-ff4259d8.js → index-5119757a.js} +0 -0
- /package/build/esm/{index-84ae9504.js → index-65f4ace5.js} +0 -0
- /package/build/esm/{index-56596240.js → index-6966bcc9.js} +0 -0
- /package/build/esm/{index-be3e61bd.js → index-770a5411.js} +0 -0
- /package/build/esm/{index-d576702b.js → index-f1a253ec.js} +0 -0
- /package/build/esm/{index.styles-9fbd164a.js → index.styles-30533b59.js} +0 -0
- /package/build/esm/{localizeNumberFormat-665721cc.js → localizeNumberFormat-5e8cf579.js} +0 -0
- /package/build/esm/{normalizeLink-80a5acaf.js → normalizeLink-7ddb8730.js} +0 -0
- /package/build/esm/{number-9b343f37.js → number-60adc5e7.js} +0 -0
- /package/build/esm/{paths-fad80d5a.js → paths-235f8743.js} +0 -0
- /package/build/esm/{shared-62c44d53.js → shared-549ac603.js} +0 -0
- /package/build/esm/{translationsContext-9f1f49da.js → translationsContext-3814cd1a.js} +0 -0
- /package/build/esm/{tslib.es6-438c13d7.js → tslib.es6-885c1a36.js} +0 -0
- /package/build/esm/{types-adbda911.js → types-2b96ee53.js} +0 -0
- /package/build/esm/{useIsInit-179867a4.js → useIsInit-6efacc90.js} +0 -0
- /package/build/esm/{useOutsideClick-610e5bee.js → useOutsideClick-75f974b7.js} +0 -0
- /package/build/esm/{useScrollbarSize-83fd1cf8.js → useScrollbarSize-ce896eea.js} +0 -0
- /package/build/esm/{useUniqueId-345ebff3.js → useUniqueId-5dd89792.js} +0 -0
- /package/build/esm/{utils-19da5326.js → utils-711e190d.js} +0 -0
- /package/build/{index-9d933bb7.js → index-072c01d4.js} +0 -0
- /package/build/{index-a8c109b7.js → index-1686a7bc.js} +0 -0
- /package/build/{index-1ae26665.js → index-33562049.js} +0 -0
- /package/build/{index-7f6691ef.js → index-3639e7de.js} +0 -0
- /package/build/{index-c03aa380.js → index-6ddfe68a.js} +0 -0
- /package/build/{index-62fb22db.js → index-7b2e7862.js} +0 -0
- /package/build/{index-97d59516.js → index-a1e28e1e.js} +0 -0
- /package/build/{index-68e67841.js → index-b01ecdb3.js} +0 -0
- /package/build/{index.styles-54dbd34d.js → index.styles-44595350.js} +0 -0
- /package/build/{localizeNumberFormat-e3768335.js → localizeNumberFormat-455edf6f.js} +0 -0
- /package/build/{normalizeLink-7689ddb6.js → normalizeLink-79ec3b7c.js} +0 -0
- /package/build/{number-a2730dd5.js → number-1eb29a31.js} +0 -0
- /package/build/{paths-5a4e7161.js → paths-e84112a8.js} +0 -0
- /package/build/{shared-731bc7c1.js → shared-effe732e.js} +0 -0
- /package/build/{translationsContext-cd7d6e45.js → translationsContext-05b21136.js} +0 -0
- /package/build/{tslib.es6-3cacf75c.js → tslib.es6-8acabd93.js} +0 -0
- /package/build/{types-632ff208.js → types-d01664a5.js} +0 -0
- /package/build/{useIsInit-01f4811c.js → useIsInit-63e2fcc7.js} +0 -0
- /package/build/{useOutsideClick-e7938ae9.js → useOutsideClick-6650fd66.js} +0 -0
- /package/build/{useScrollbarSize-26917e9e.js → useScrollbarSize-a52123a6.js} +0 -0
- /package/build/{useUniqueId-325ae7f2.js → useUniqueId-d7d4069b.js} +0 -0
- /package/build/{utils-c8be48e1.js → utils-8325fa5f.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-8acabd93.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-56ed089d.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-769a2c36.js');
|
|
14
|
+
var translationsContext = require('./translationsContext-05b21136.js');
|
|
15
|
+
var utils$1 = require('./utils-8325fa5f.js');
|
|
16
|
+
var index$2 = require('./index-304e531d.js');
|
|
17
|
+
var index$3 = require('./index-b676d6b2.js');
|
|
18
|
+
var index$5 = require('./index-2534a8b8.js');
|
|
19
|
+
var index$4 = require('./index-9df9fa8e.js');
|
|
20
|
+
require('./index.styles-44595350.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-bf21e951.js');
|
|
23
|
+
var text = require('./text-c3313ee4.js');
|
|
24
|
+
require('./index-bde334af.js');
|
|
25
|
+
var utils = require('./utils-869de120.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-4eb41d78.js');
|
|
28
|
+
var index$a = require('./index-43804567.js');
|
|
29
|
+
require('./index-7b2e7862.js');
|
|
30
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-381d7115.js');
|
|
31
|
+
var index$6 = require('./index-fa89196c.js');
|
|
32
|
+
var translationsProvider = require('./translationsProvider-a097a986.js');
|
|
33
|
+
var Locale = require('./Locale-2416ac56.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-5b7aa127.js');
|
|
41
|
+
var index$8 = require('./index-40b9cb0e.js');
|
|
42
|
+
var index$9 = require('./index-1686a7bc.js');
|
|
43
|
+
var index$b = require('./index-f84e14ca.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-10ab3c87.js');
|
|
47
|
+
var index$c = require('./index-c9835ab1.js');
|
|
48
|
+
var Close = require('./Close-47179e40.js');
|
|
49
49
|
require('./constantsIsProduction.js');
|
|
50
|
-
require('./normalizeLink-
|
|
50
|
+
require('./normalizeLink-79ec3b7c.js');
|
|
51
51
|
require('@hhgtech/icons/other');
|
|
52
52
|
require('@mantine/carousel');
|
|
53
53
|
require('classnames');
|
|
54
|
-
require('./useUniqueId-
|
|
54
|
+
require('./useUniqueId-d7d4069b.js');
|
|
55
55
|
require('./constantsSite.js');
|
|
56
56
|
require('@hhgtech/icons/core');
|
|
57
|
-
require('./shared-
|
|
57
|
+
require('./shared-effe732e.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-072c01d4.js');
|
|
74
74
|
require('slugify');
|
|
75
75
|
require('string-format');
|
|
76
76
|
require('./togetherApiPaths.js');
|
|
77
|
-
require('./constants-
|
|
77
|
+
require('./constants-62d7a480.js');
|
|
78
78
|
require('vaul');
|
|
79
79
|
|
|
80
80
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -152,33 +152,6 @@ const LEADGEN_BLOCK_INPUT = [
|
|
|
152
152
|
LEADGEN_BLOCK.CheckboxBlock,
|
|
153
153
|
LEADGEN_BLOCK.TncBlock,
|
|
154
154
|
];
|
|
155
|
-
const leadGenFieldNamePhone = (listBlockAdded) => {
|
|
156
|
-
return listBlockAdded
|
|
157
|
-
.filter(({ name }) => [
|
|
158
|
-
LEADGEN_BLOCK.PhoneBlock,
|
|
159
|
-
LEADGEN_BLOCK.PhoneOtpBlock,
|
|
160
|
-
LEADGEN_BLOCK.WhatsappOtpBlock,
|
|
161
|
-
LEADGEN_BLOCK.ZaloOtpBlock,
|
|
162
|
-
].includes(name))
|
|
163
|
-
.map(({ data }) => data.value);
|
|
164
|
-
};
|
|
165
|
-
const leadGenFieldRequired = (blocks) => {
|
|
166
|
-
if (!(blocks === null || blocks === void 0 ? void 0 : blocks.length)) {
|
|
167
|
-
return [];
|
|
168
|
-
}
|
|
169
|
-
return blocks
|
|
170
|
-
.map(({ data, name, id }) => {
|
|
171
|
-
const { required, value } = data;
|
|
172
|
-
if (name === LEADGEN_BLOCK.TncBlock && id && required) {
|
|
173
|
-
return `TNC-${id}`;
|
|
174
|
-
}
|
|
175
|
-
if (required) {
|
|
176
|
-
return value;
|
|
177
|
-
}
|
|
178
|
-
return;
|
|
179
|
-
})
|
|
180
|
-
.filter(Boolean);
|
|
181
|
-
};
|
|
182
155
|
const SSO_MAP_LEAD = ['name', 'email', 'birthday', 'phone', 'gender'];
|
|
183
156
|
const LEAD_LOCALE_DATA$1 = {
|
|
184
157
|
'vi-VN': {
|
|
@@ -261,6 +234,33 @@ const mappingSSOToLead = (userInfoProps) => {
|
|
|
261
234
|
return;
|
|
262
235
|
}
|
|
263
236
|
};
|
|
237
|
+
const leadGenFieldNamePhone = (listBlockAdded) => {
|
|
238
|
+
return listBlockAdded
|
|
239
|
+
.filter(({ name }) => [
|
|
240
|
+
LEADGEN_BLOCK.PhoneBlock,
|
|
241
|
+
LEADGEN_BLOCK.PhoneOtpBlock,
|
|
242
|
+
LEADGEN_BLOCK.WhatsappOtpBlock,
|
|
243
|
+
LEADGEN_BLOCK.ZaloOtpBlock,
|
|
244
|
+
].includes(name))
|
|
245
|
+
.map(({ data }) => data.value);
|
|
246
|
+
};
|
|
247
|
+
const leadGenFieldRequired = (blocks) => {
|
|
248
|
+
if (!(blocks === null || blocks === void 0 ? void 0 : blocks.length)) {
|
|
249
|
+
return [];
|
|
250
|
+
}
|
|
251
|
+
return blocks
|
|
252
|
+
.map(({ data, name, id }) => {
|
|
253
|
+
const { required, value } = data;
|
|
254
|
+
if (name === LEADGEN_BLOCK.TncBlock && id && required) {
|
|
255
|
+
return `TNC-${id}`;
|
|
256
|
+
}
|
|
257
|
+
if (required) {
|
|
258
|
+
return value;
|
|
259
|
+
}
|
|
260
|
+
return;
|
|
261
|
+
})
|
|
262
|
+
.filter(Boolean);
|
|
263
|
+
};
|
|
264
264
|
const formatCampaignDetail = (campaign) => {
|
|
265
265
|
if (!campaign) {
|
|
266
266
|
return {};
|
|
@@ -407,6 +407,55 @@ const formatLeadGenFormValue = (values = {}, blocks) => {
|
|
|
407
407
|
return newValues;
|
|
408
408
|
};
|
|
409
409
|
|
|
410
|
+
const TIMEOUT = 30 * 60 * 1000;
|
|
411
|
+
const WAITING_FIRST_RESP = 'waitingTheFirstResponse';
|
|
412
|
+
const CachedSystem = {
|
|
413
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
414
|
+
cached: {},
|
|
415
|
+
clearCached: (prefix) => {
|
|
416
|
+
console.log(CachedSystem.cached);
|
|
417
|
+
Object.keys(CachedSystem.cached)
|
|
418
|
+
.filter((k) => k.startsWith(prefix))
|
|
419
|
+
.forEach((key) => {
|
|
420
|
+
console.log(key);
|
|
421
|
+
CachedSystem.cached[key] = undefined;
|
|
422
|
+
});
|
|
423
|
+
},
|
|
424
|
+
withCached: (key, fnResponse, timeout = TIMEOUT) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
425
|
+
if (CachedSystem.cached[key] === WAITING_FIRST_RESP) {
|
|
426
|
+
return new Promise((resolve) => {
|
|
427
|
+
const startDate = new Date().getTime();
|
|
428
|
+
const intervalId = setInterval(() => {
|
|
429
|
+
const currentDate = new Date().getTime();
|
|
430
|
+
if (currentDate - startDate > 3000) {
|
|
431
|
+
clearInterval(intervalId);
|
|
432
|
+
}
|
|
433
|
+
if (typeof CachedSystem.cached[key] === 'object') {
|
|
434
|
+
resolve(CachedSystem.cached[key]);
|
|
435
|
+
clearInterval(intervalId);
|
|
436
|
+
}
|
|
437
|
+
}, 100);
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
if (typeof CachedSystem.cached[key] === 'object') {
|
|
441
|
+
return CachedSystem.cached[key];
|
|
442
|
+
}
|
|
443
|
+
CachedSystem.cached[key] = 'waitingTheFirstResponse';
|
|
444
|
+
try {
|
|
445
|
+
const result = yield fnResponse();
|
|
446
|
+
CachedSystem.cached[key] = result;
|
|
447
|
+
setTimeout(() => {
|
|
448
|
+
CachedSystem.cached[key] = undefined;
|
|
449
|
+
}, timeout);
|
|
450
|
+
return result;
|
|
451
|
+
}
|
|
452
|
+
catch (err) {
|
|
453
|
+
CachedSystem.cached[key] = undefined;
|
|
454
|
+
return Promise.reject(err);
|
|
455
|
+
}
|
|
456
|
+
}),
|
|
457
|
+
};
|
|
458
|
+
|
|
410
459
|
class Store {
|
|
411
460
|
constructor() {
|
|
412
461
|
this.apiSsoUrl = 'https://staging-id.hellobacsi.com/';
|
|
@@ -416,6 +465,8 @@ class Store {
|
|
|
416
465
|
}
|
|
417
466
|
const leadStore = new Store();
|
|
418
467
|
|
|
468
|
+
const LEADGEN_CACHE_KEY = 'LeadGen_';
|
|
469
|
+
const LEADGEN_CACHE_TIME = 5 * 60 * 1000; // 5 minutes
|
|
419
470
|
const METHOD = {
|
|
420
471
|
GET: 'get',
|
|
421
472
|
POST: 'POST',
|
|
@@ -602,7 +653,19 @@ const trackingSubscription = (data) => {
|
|
|
602
653
|
data,
|
|
603
654
|
});
|
|
604
655
|
};
|
|
656
|
+
function getCampaigns({ url, siteId, apiLeadUrl, }) {
|
|
657
|
+
const ga_client_id = miscCookieHelper.getCookie('_ga') || null;
|
|
658
|
+
const AS_PATH = `${apiLeadUrl || leadStore.apiLeadUrl}api/campaign/${siteId}`;
|
|
659
|
+
return CachedSystem.withCached(LEADGEN_CACHE_KEY + AS_PATH, () => fetch(AS_PATH, {
|
|
660
|
+
method: 'POST',
|
|
661
|
+
headers: { 'Content-Type': 'application/json' },
|
|
662
|
+
body: JSON.stringify({ url, ga_client_id }),
|
|
663
|
+
})
|
|
664
|
+
.then((res) => res.json())
|
|
665
|
+
.then(({ _data }) => (_data === null || _data === void 0 ? void 0 : _data.campaigns) || []), LEADGEN_CACHE_TIME);
|
|
666
|
+
}
|
|
605
667
|
const Service = {
|
|
668
|
+
getCampaigns,
|
|
606
669
|
campaignGetById,
|
|
607
670
|
getCampaignByCode,
|
|
608
671
|
getSubscriptionBoxInfo,
|
|
@@ -1655,12 +1718,6 @@ const getTranslations = (locale) => {
|
|
|
1655
1718
|
return translationsMap['en-PH'];
|
|
1656
1719
|
};
|
|
1657
1720
|
|
|
1658
|
-
const LeadGenTranslationProvider = (props) => {
|
|
1659
|
-
const { locale, children } = props;
|
|
1660
|
-
const translationContextValue = React.useMemo(() => ({ locale, values: getTranslations(locale) }), [locale]);
|
|
1661
|
-
return (React__default["default"].createElement(translationsContext.TranslationsContext.Provider, { value: translationContextValue }, children));
|
|
1662
|
-
};
|
|
1663
|
-
|
|
1664
1721
|
// import mockLeadData from './mockLeadData'
|
|
1665
1722
|
const listCampaignScheduled = [];
|
|
1666
1723
|
const listCampaignScheduledToActivated = [];
|
|
@@ -1836,167 +1893,167 @@ function clearPassiveEvent() {
|
|
|
1836
1893
|
LEAD_SCROLL_EVENT = null;
|
|
1837
1894
|
}
|
|
1838
1895
|
}
|
|
1839
|
-
function
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
.
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
//
|
|
1875
|
-
//
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1896
|
+
function getCurrentCampaign({ campaigns = [], leadDomain, leadCurrentUrl, }) {
|
|
1897
|
+
if (!miscCookieHelper.getCookie('hhg-id')) {
|
|
1898
|
+
miscCookieHelper.setCookie('hhg-id', uuid.v1(), { domain: `.${leadDomain}`, path: '/' });
|
|
1899
|
+
LeadLog('😍 Set HHG ID cookie');
|
|
1900
|
+
}
|
|
1901
|
+
// TODO: HP-534 Filter desktop
|
|
1902
|
+
let campaignsDevice = [];
|
|
1903
|
+
if (isMobile()) {
|
|
1904
|
+
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
|
|
1905
|
+
}
|
|
1906
|
+
else {
|
|
1907
|
+
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
|
|
1908
|
+
}
|
|
1909
|
+
LeadLog(`👓 campaignsDevice`, campaignsDevice);
|
|
1910
|
+
LeadLog('--listCampaignScheduled', listCampaignScheduled);
|
|
1911
|
+
LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
|
|
1912
|
+
LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
|
|
1913
|
+
LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
|
|
1914
|
+
LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
|
|
1915
|
+
LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
|
|
1916
|
+
// Check links
|
|
1917
|
+
let listLinksObj = campaignsDevice
|
|
1918
|
+
.map((i, index) => i.targets
|
|
1919
|
+
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
|
|
1920
|
+
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
1921
|
+
.flat(1) || [];
|
|
1922
|
+
// Check list link match current href
|
|
1923
|
+
listLinksObj = listLinksObj.filter((i) => {
|
|
1924
|
+
var _a;
|
|
1925
|
+
const target = new URL(String(i.target).toLowerCase());
|
|
1926
|
+
if (i.option == 'exact_match')
|
|
1927
|
+
// FOR TEST LOCAL:
|
|
1928
|
+
// return Boolean(location.pathname === target.pathname)
|
|
1929
|
+
return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
|
|
1930
|
+
if (i.option == 'start_with') {
|
|
1931
|
+
// FOR TEST LOCAL:
|
|
1932
|
+
// if (location.pathname.includes(target.pathname)) {
|
|
1933
|
+
if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
|
|
1934
|
+
const listExcluding = i.sub_target
|
|
1935
|
+
.filter((i) => i.option == 'excluding')
|
|
1936
|
+
.map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
|
|
1937
|
+
return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
|
|
1879
1938
|
}
|
|
1880
1939
|
else {
|
|
1881
|
-
|
|
1940
|
+
return false;
|
|
1882
1941
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
const timeoutRule = Number((_c = rules.find((i) => i.rule == 'time')) === null || _c === void 0 ? void 0 : _c.value);
|
|
1960
|
-
LeadLog(`timeoutRule`, timeoutRule);
|
|
1961
|
-
const scrollRule = Number((_d = rules.find((i) => i.rule == 'scroll')) === null || _d === void 0 ? void 0 : _d.value);
|
|
1962
|
-
LeadLog(`scrollRule`, scrollRule);
|
|
1963
|
-
let impressionAction = 'TIME';
|
|
1964
|
-
if (Number.isInteger(timeoutRule)) {
|
|
1965
|
-
impressionAction = 'TIME';
|
|
1966
|
-
LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
|
|
1967
|
-
timeoutRef = setTimeout(() => {
|
|
1968
|
-
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
1969
|
-
}, timeoutRule * 1000);
|
|
1970
|
-
}
|
|
1971
|
-
if (Number.isInteger(scrollRule)) {
|
|
1972
|
-
impressionAction = 'SCROLL';
|
|
1973
|
-
LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
|
|
1974
|
-
const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
|
|
1975
|
-
document.querySelector('body');
|
|
1976
|
-
const pct = $p.getBoundingClientRect().top;
|
|
1977
|
-
const pb = $p.offsetHeight;
|
|
1978
|
-
LeadLog(`👓 Element check scroll: `, $p);
|
|
1979
|
-
LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
|
|
1980
|
-
const wt = window.pageYOffset || document.documentElement.scrollTop;
|
|
1981
|
-
let percent = 0;
|
|
1982
|
-
if (wt >= pct) {
|
|
1983
|
-
percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
|
|
1984
|
-
}
|
|
1985
|
-
LeadLog('---Scroll', percent, scrollRule);
|
|
1986
|
-
// TODO: CHECK FOOTER HEIGHT
|
|
1987
|
-
if (percent >= scrollRule) {
|
|
1988
|
-
window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
|
|
1989
|
-
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
1990
|
-
}
|
|
1991
|
-
};
|
|
1992
|
-
window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
|
|
1993
|
-
passive: true,
|
|
1994
|
-
});
|
|
1995
|
-
}
|
|
1942
|
+
}
|
|
1943
|
+
});
|
|
1944
|
+
// Check tags
|
|
1945
|
+
const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
|
|
1946
|
+
const listTags = listMetaTag.map((i) => i.content);
|
|
1947
|
+
let listCampaignHasTag = [];
|
|
1948
|
+
let listTagsObj = [];
|
|
1949
|
+
if (listTags && listTags.length) {
|
|
1950
|
+
listCampaignHasTag = campaignsDevice
|
|
1951
|
+
.map((i, index) => i.targets
|
|
1952
|
+
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
|
|
1953
|
+
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
1954
|
+
.flat(1);
|
|
1955
|
+
listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
|
|
1956
|
+
}
|
|
1957
|
+
const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
|
|
1958
|
+
const cookieKeys = document.cookie.split('; ').map((i) => i.split('=')[0]);
|
|
1959
|
+
const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
|
|
1960
|
+
LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
|
|
1961
|
+
const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
|
|
1962
|
+
LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
|
|
1963
|
+
const listCampaignSubmitedClosed = [
|
|
1964
|
+
...listCampaignCodeSubmited,
|
|
1965
|
+
...listCampaignCodeClosed,
|
|
1966
|
+
];
|
|
1967
|
+
const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
|
|
1968
|
+
const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
|
|
1969
|
+
return !hasSubmited;
|
|
1970
|
+
});
|
|
1971
|
+
const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
|
|
1972
|
+
// .sort(
|
|
1973
|
+
// (a, b) =>
|
|
1974
|
+
// (listCampaignValid[a.campaignIndex]?.score || 0) -
|
|
1975
|
+
// (listCampaignValid[b.campaignIndex]?.score || 0),
|
|
1976
|
+
// )
|
|
1977
|
+
LeadLog('--listCampaignValid : ', listCampaignValid);
|
|
1978
|
+
if (listCampaignValid && listCampaignValid.length) {
|
|
1979
|
+
const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
|
|
1980
|
+
return CAMPAIGN_SHOW;
|
|
1981
|
+
}
|
|
1982
|
+
else {
|
|
1983
|
+
LeadLog('🚧 No lead campaigns on current URL, tags');
|
|
1984
|
+
return null;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
function addEventShowCurrentCampaign({ campaign: CAMPAIGN_SHOW, onShowPopup, }) {
|
|
1988
|
+
var _a, _b;
|
|
1989
|
+
LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
|
|
1990
|
+
const { rules } = CAMPAIGN_SHOW;
|
|
1991
|
+
// CHECK RULE TRIGGER POPUP
|
|
1992
|
+
const timeoutRule = Number((_a = rules.find((i) => i.rule == 'time')) === null || _a === void 0 ? void 0 : _a.value);
|
|
1993
|
+
LeadLog(`timeoutRule`, timeoutRule);
|
|
1994
|
+
const scrollRule = Number((_b = rules.find((i) => i.rule == 'scroll')) === null || _b === void 0 ? void 0 : _b.value);
|
|
1995
|
+
LeadLog(`scrollRule`, scrollRule);
|
|
1996
|
+
let impressionAction = 'TIME';
|
|
1997
|
+
if (Number.isInteger(timeoutRule)) {
|
|
1998
|
+
impressionAction = 'TIME';
|
|
1999
|
+
LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
|
|
2000
|
+
timeoutRef = setTimeout(() => {
|
|
2001
|
+
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
2002
|
+
}, timeoutRule * 1000);
|
|
2003
|
+
return { campaign: CAMPAIGN_SHOW, action: impressionAction };
|
|
2004
|
+
}
|
|
2005
|
+
if (Number.isInteger(scrollRule)) {
|
|
2006
|
+
impressionAction = 'SCROLL';
|
|
2007
|
+
LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
|
|
2008
|
+
const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
|
|
2009
|
+
document.querySelector('body');
|
|
2010
|
+
const pct = $p.getBoundingClientRect().top;
|
|
2011
|
+
const pb = $p.offsetHeight;
|
|
2012
|
+
LeadLog(`👓 Element check scroll: `, $p);
|
|
2013
|
+
LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
|
|
2014
|
+
const wt = window.pageYOffset || document.documentElement.scrollTop;
|
|
2015
|
+
let percent = 0;
|
|
2016
|
+
if (wt >= pct) {
|
|
2017
|
+
percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
|
|
1996
2018
|
}
|
|
1997
|
-
|
|
1998
|
-
|
|
2019
|
+
LeadLog('---Scroll', percent, scrollRule);
|
|
2020
|
+
// TODO: CHECK FOOTER HEIGHT
|
|
2021
|
+
if (percent >= scrollRule) {
|
|
2022
|
+
window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
|
|
2023
|
+
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
1999
2024
|
}
|
|
2025
|
+
};
|
|
2026
|
+
window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
|
|
2027
|
+
passive: true,
|
|
2028
|
+
});
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
|
|
2032
|
+
// clear previous passive event, check for new condition
|
|
2033
|
+
clearPassiveEvent();
|
|
2034
|
+
let leadCurrentUrl = DEBUG_URL;
|
|
2035
|
+
if (typeof window !== 'undefined') {
|
|
2036
|
+
const { location } = window;
|
|
2037
|
+
leadCurrentUrl = leadCurrentUrl || location.href.toLowerCase();
|
|
2038
|
+
}
|
|
2039
|
+
Service.getCampaigns({
|
|
2040
|
+
url: leadCurrentUrl,
|
|
2041
|
+
siteId: leadSiteId,
|
|
2042
|
+
apiLeadUrl: leadApi,
|
|
2043
|
+
})
|
|
2044
|
+
.then((campRes) => {
|
|
2045
|
+
LeadLog('List campagin: ', campRes);
|
|
2046
|
+
LEAD_RESET_VAR();
|
|
2047
|
+
const campaigns = (campRes || [])
|
|
2048
|
+
.filter(filterFnCampaign)
|
|
2049
|
+
.filter(fillterApprearanceTimeCampaign);
|
|
2050
|
+
const campaign = getCurrentCampaign({
|
|
2051
|
+
campaigns,
|
|
2052
|
+
leadCurrentUrl,
|
|
2053
|
+
leadDomain,
|
|
2054
|
+
});
|
|
2055
|
+
if (campaign && (campaign === null || campaign === void 0 ? void 0 : campaign.id)) {
|
|
2056
|
+
addEventShowCurrentCampaign({ campaign, onShowPopup });
|
|
2000
2057
|
}
|
|
2001
2058
|
})
|
|
2002
2059
|
.catch((err) => {
|
|
@@ -2013,147 +2070,149 @@ const LeadLog = (...params) => {
|
|
|
2013
2070
|
}
|
|
2014
2071
|
};
|
|
2015
2072
|
|
|
2073
|
+
const LeadGenInlineWithoutMemo = (props) => {
|
|
2074
|
+
const [campaign, setCampaign] = React.useState();
|
|
2075
|
+
const { forceCampaign, apiUrl, apiLeadUrl, siteId, siteDomain, DEBUG_URL } = props;
|
|
2076
|
+
React.useEffect(() => {
|
|
2077
|
+
if (forceCampaign) {
|
|
2078
|
+
setCampaign(forceCampaign);
|
|
2079
|
+
return;
|
|
2080
|
+
}
|
|
2081
|
+
(() => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
2082
|
+
const campaign = yield leadGenInlineGetCampaign({
|
|
2083
|
+
siteId,
|
|
2084
|
+
siteDomain,
|
|
2085
|
+
apiLeadUrl: apiUrl || apiLeadUrl || '',
|
|
2086
|
+
url: DEBUG_URL,
|
|
2087
|
+
});
|
|
2088
|
+
if (campaign) {
|
|
2089
|
+
setCampaign(campaign);
|
|
2090
|
+
}
|
|
2091
|
+
}))();
|
|
2092
|
+
}, [forceCampaign, DEBUG_URL, apiUrl, apiLeadUrl, siteId, siteDomain]);
|
|
2093
|
+
if (!campaign || !(campaign === null || campaign === void 0 ? void 0 : campaign.id)) {
|
|
2094
|
+
return null;
|
|
2095
|
+
}
|
|
2096
|
+
return (React__default["default"].createElement(LeadGen, Object.assign({}, props, { forceCampaign: campaign, apiUrl: apiUrl || apiLeadUrl, flatComponent: true })));
|
|
2097
|
+
};
|
|
2098
|
+
const LeadGenInline = React.memo(LeadGenInlineWithoutMemo);
|
|
2099
|
+
function leadGenInlineGetCampaign(props) {
|
|
2100
|
+
var _a;
|
|
2101
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
2102
|
+
const { url, apiLeadUrl, siteId, siteDomain } = props;
|
|
2103
|
+
const campaigns = yield Service.getCampaigns({ url, apiLeadUrl, siteId });
|
|
2104
|
+
const campaignsInline = (_a = (campaigns || [])) === null || _a === void 0 ? void 0 : _a.filter(({ extra_fields }) => {
|
|
2105
|
+
const { currentLayout } = extra_fields || {};
|
|
2106
|
+
return currentLayout === null || currentLayout === void 0 ? void 0 : currentLayout.includes('Inline');
|
|
2107
|
+
});
|
|
2108
|
+
return getCurrentCampaign({
|
|
2109
|
+
campaigns: campaignsInline,
|
|
2110
|
+
leadCurrentUrl: url,
|
|
2111
|
+
leadDomain: siteDomain,
|
|
2112
|
+
});
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
const LeadGenTranslationProvider = (props) => {
|
|
2117
|
+
const { locale, children } = props;
|
|
2118
|
+
const translationContextValue = React.useMemo(() => ({ locale, values: getTranslations(locale) }), [locale]);
|
|
2119
|
+
return (React__default["default"].createElement(translationsContext.TranslationsContext.Provider, { value: translationContextValue }, children));
|
|
2120
|
+
};
|
|
2121
|
+
|
|
2016
2122
|
const LeadGenContext = React.createContext({
|
|
2017
|
-
|
|
2123
|
+
onSubmit(value) {
|
|
2018
2124
|
/** Init for FAKING function */
|
|
2019
2125
|
LeadLog('** LeadGen Submit : ', value);
|
|
2020
2126
|
return Promise.reject(value);
|
|
2021
2127
|
},
|
|
2022
|
-
|
|
2128
|
+
onImpression(value) {
|
|
2023
2129
|
/** Init for FAKING function */
|
|
2024
|
-
LeadLog('** LeadGen
|
|
2025
|
-
return Promise.reject(value);
|
|
2026
|
-
},
|
|
2027
|
-
impression(type) {
|
|
2028
|
-
/** Init for FAKING function */
|
|
2029
|
-
LeadLog('** LeadGen Impression : ', type);
|
|
2130
|
+
LeadLog('** LeadGen Impression : ', value);
|
|
2030
2131
|
return Promise.reject();
|
|
2031
2132
|
},
|
|
2032
|
-
/** For Subscription Box */
|
|
2033
|
-
subscriptionIcon: '',
|
|
2034
|
-
subscriptionTitle: '',
|
|
2035
|
-
subscriptionPhoneType: '',
|
|
2036
2133
|
});
|
|
2037
2134
|
const LeadGenContextProvider = (props) => {
|
|
2038
|
-
const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues,
|
|
2135
|
+
const { campaign_code: campaignCodeProps, apiSsoUrl, apiLeadUrl, apiSubotUrl, locale: localeProps, forceCampaign: forceCampaignProps, extraValues, siteId, siteDomain, DEBUG_URL = '', children, articleId, categoryId, userInfo } = props, restProps = tslib_es6.__rest(props, ["campaign_code", "apiSsoUrl", "apiLeadUrl", "apiSubotUrl", "locale", "forceCampaign", "extraValues", "siteId", "siteDomain", "DEBUG_URL", "children", "articleId", "categoryId", "userInfo"]);
|
|
2039
2136
|
const { t } = index$1.useTranslations();
|
|
2040
|
-
const [
|
|
2137
|
+
const [rawForceCampaign, setRawForceCampaign] = React.useState(forceCampaignProps);
|
|
2138
|
+
const [forceCampaign, setForceCampaign] = React.useState(() => formatCampaignDetail(forceCampaignProps));
|
|
2041
2139
|
const [subscriptionInfo, setSubscriptionInfo] = React.useState({
|
|
2042
2140
|
subscriptionIcon: '',
|
|
2043
2141
|
subscriptionTitle: '',
|
|
2044
2142
|
subscriptionType: 'TypeA',
|
|
2045
2143
|
subscriptionPhoneType: '',
|
|
2046
|
-
subcriptionCateId: '',
|
|
2047
|
-
subcriptionCateName: '',
|
|
2048
2144
|
});
|
|
2049
2145
|
const locale = React.useMemo(() => {
|
|
2050
2146
|
return localeProps || Locale.LOCALE['PhilippinesEnglish'];
|
|
2051
2147
|
}, [localeProps]);
|
|
2052
|
-
const { url, campaign_id, cookie_id, ga_client_id, category_list, article_id, article_title, } = React.useMemo(() => ({
|
|
2053
|
-
url: location.href.toLowerCase() || '',
|
|
2054
|
-
cookie_id: miscCookieHelper.getCookie('hhg-id') || null,
|
|
2055
|
-
ga_client_id: miscCookieHelper.getCookie('_ga'),
|
|
2056
|
-
campaign_id: forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
|
|
2057
|
-
campaign_code: campaignCodeProps || (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code),
|
|
2058
|
-
category_list: categoryList,
|
|
2059
|
-
article_id: articleId,
|
|
2060
|
-
article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
|
|
2061
|
-
}), [
|
|
2062
|
-
campaignCodeProps,
|
|
2063
|
-
articleId,
|
|
2064
|
-
categoryList,
|
|
2065
|
-
forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id,
|
|
2066
|
-
extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
|
|
2067
|
-
subscriptionInfo === null || subscriptionInfo === void 0 ? void 0 : subscriptionInfo.subcriptionCateName,
|
|
2068
|
-
]);
|
|
2069
|
-
// const fetchCampaign = useCallback(
|
|
2070
|
-
// (campaign_code: string) => {
|
|
2071
|
-
// Service.getCampaignByCode(campaign_code).then((res) => {
|
|
2072
|
-
// const { _data } = res || {}
|
|
2073
|
-
// const { campaigns } = _data || {}
|
|
2074
|
-
// LeadLog('** LeadGen Campaign : ', campaigns)
|
|
2075
|
-
// setForceCampaign(formatCampaignDetail(campaigns))
|
|
2076
|
-
// })
|
|
2077
|
-
// },
|
|
2078
|
-
// [campaignCodeProps],
|
|
2079
|
-
// )
|
|
2080
2148
|
// TODO : Update form for LeadGen
|
|
2081
|
-
const
|
|
2149
|
+
const onSubmit = React.useCallback((data) => {
|
|
2082
2150
|
return Service.postSubscriptionBoxLead({ data });
|
|
2151
|
+
}, [forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.blocks]);
|
|
2152
|
+
const onImpression = React.useCallback((value) => {
|
|
2153
|
+
//
|
|
2154
|
+
console.log('** RYAN LeadGenContext.tsx 188 value : ', value);
|
|
2155
|
+
return Promise.resolve('dfdfdf');
|
|
2083
2156
|
}, []);
|
|
2084
2157
|
const submitSubscriptionBox = React.useCallback((value) => {
|
|
2085
|
-
const data = Object.assign(Object.assign({}, value), {
|
|
2158
|
+
const data = Object.assign(Object.assign(Object.assign(Object.assign({}, value), {
|
|
2086
2159
|
// campaign_id,
|
|
2087
|
-
site_domain, url: (value === null || value === void 0 ? void 0 : value.url) ||
|
|
2088
|
-
// ...extraValues,
|
|
2089
|
-
article_id, category_id: subscriptionInfo.subcriptionCateId, category_name: subscriptionInfo.subcriptionCateName, article_title });
|
|
2160
|
+
site_domain: siteDomain, url: (value === null || value === void 0 ? void 0 : value.url) || location.href.toLowerCase() || '', cookie_id: miscCookieHelper.getCookie('hhg-id') || null, ga_client_id: miscCookieHelper.getCookie('_ga') }), extraValues), { article_id: articleId, category_id: categoryId, article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '' });
|
|
2090
2161
|
return Service.postSubscriptionBoxLead({ data });
|
|
2091
2162
|
}, [
|
|
2092
2163
|
extraValues,
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
subscriptionInfo.subcriptionCateId,
|
|
2098
|
-
subscriptionInfo.subcriptionCateName,
|
|
2099
|
-
url,
|
|
2100
|
-
cookie_id,
|
|
2101
|
-
ga_client_id,
|
|
2164
|
+
extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title,
|
|
2165
|
+
siteDomain,
|
|
2166
|
+
articleId,
|
|
2167
|
+
categoryId,
|
|
2102
2168
|
]);
|
|
2103
|
-
const
|
|
2104
|
-
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
2169
|
+
const impressionSubscriptionBox = React.useCallback((type) => {
|
|
2105
2170
|
const impression = {
|
|
2106
2171
|
subscription_title: subscriptionInfo.subscriptionTitle,
|
|
2107
2172
|
name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || '',
|
|
2108
2173
|
area_code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '',
|
|
2109
2174
|
phone_number: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) || '',
|
|
2110
|
-
site_domain:
|
|
2175
|
+
site_domain: siteDomain,
|
|
2111
2176
|
url: location.href.toLowerCase(),
|
|
2112
2177
|
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
2113
|
-
ga_client_id:
|
|
2114
|
-
article_title,
|
|
2115
|
-
article_id,
|
|
2116
|
-
category_id:
|
|
2117
|
-
category_name:
|
|
2178
|
+
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
2179
|
+
article_title: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.article_title) || document.title || '',
|
|
2180
|
+
article_id: articleId,
|
|
2181
|
+
category_id: categoryId,
|
|
2182
|
+
category_name: (extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name) || '',
|
|
2118
2183
|
type,
|
|
2119
2184
|
};
|
|
2120
2185
|
return Service.trackingSubscription(impression);
|
|
2121
2186
|
}, [
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
article_title,
|
|
2125
|
-
cookie_id,
|
|
2126
|
-
ga_client_id,
|
|
2127
|
-
subscriptionInfo.subcriptionCateId,
|
|
2128
|
-
subscriptionInfo.subcriptionCateName,
|
|
2187
|
+
articleId,
|
|
2188
|
+
categoryId,
|
|
2129
2189
|
subscriptionInfo.subscriptionTitle,
|
|
2130
|
-
|
|
2190
|
+
extraValues === null || extraValues === void 0 ? void 0 : extraValues.category_name,
|
|
2131
2191
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,
|
|
2132
2192
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code,
|
|
2133
2193
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
2134
2194
|
]);
|
|
2135
2195
|
React.useEffect(() => {
|
|
2196
|
+
/** Force Campaign */
|
|
2136
2197
|
if (forceCampaignProps) {
|
|
2137
2198
|
setForceCampaign(formatCampaignDetail(forceCampaignProps));
|
|
2199
|
+
setRawForceCampaign(forceCampaignProps);
|
|
2138
2200
|
return;
|
|
2139
2201
|
}
|
|
2140
2202
|
/** For Subscription Box */
|
|
2141
|
-
if (
|
|
2203
|
+
if (categoryId) {
|
|
2142
2204
|
Service.getSubscriptionBoxInfo({
|
|
2143
|
-
category:
|
|
2144
|
-
site:
|
|
2205
|
+
category: categoryId,
|
|
2206
|
+
site: siteDomain,
|
|
2145
2207
|
slug: location === null || location === void 0 ? void 0 : location.pathname,
|
|
2146
2208
|
}).then((res) => {
|
|
2147
|
-
var _a;
|
|
2148
2209
|
const { _data } = res || {};
|
|
2149
|
-
const { item
|
|
2150
|
-
const { icon, content
|
|
2210
|
+
const { item, campaign_code, btn_type = 'zalo' } = _data || {};
|
|
2211
|
+
const { icon, content } = item || {};
|
|
2212
|
+
LeadLog('** LeadGen SubscriptionBox campaign_code : ', campaign_code);
|
|
2151
2213
|
LeadLog('** LeadGen SubscriptionBox subscription_icon : ', icon);
|
|
2152
2214
|
LeadLog('** LeadGen SubscriptionBox subscription_title : ', content);
|
|
2153
|
-
setSubscriptionInfo((prev) => {
|
|
2154
|
-
var _a, _b;
|
|
2155
|
-
return (Object.assign(Object.assign({}, prev), { subscriptionIcon: icon, subscriptionTitle: content, subscriptionPhoneType: btn_type, subcriptionCateId: cate_id, subcriptionCateName: (_b = (_a = category_list.filter((i) => i.termId == cate_id)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.name }));
|
|
2156
|
-
});
|
|
2215
|
+
setSubscriptionInfo((prev) => (Object.assign(Object.assign({}, prev), { subscriptionIcon: icon, subscriptionTitle: content, subscriptionPhoneType: btn_type })));
|
|
2157
2216
|
setForceCampaign(formatCampaignDetail({
|
|
2158
2217
|
id: 6993,
|
|
2159
2218
|
name: '',
|
|
@@ -2277,10 +2336,39 @@ const LeadGenContextProvider = (props) => {
|
|
|
2277
2336
|
});
|
|
2278
2337
|
return;
|
|
2279
2338
|
}
|
|
2280
|
-
|
|
2281
|
-
|
|
2339
|
+
if (campaignCodeProps) {
|
|
2340
|
+
Service.getCampaignByCode(campaignCodeProps).then((res) => {
|
|
2341
|
+
const { _data } = res || {};
|
|
2342
|
+
const { campaigns } = _data || {};
|
|
2343
|
+
LeadLog('** LeadGen Campaign : ', campaigns);
|
|
2344
|
+
setForceCampaign(formatCampaignDetail(campaigns));
|
|
2345
|
+
setRawForceCampaign(campaigns);
|
|
2346
|
+
});
|
|
2347
|
+
return;
|
|
2348
|
+
}
|
|
2349
|
+
// /** For LeadGen */
|
|
2350
|
+
// if (!leadStore.campaigns?.length) {
|
|
2351
|
+
// checkShowPopup({
|
|
2352
|
+
// leadApi: apiLeadUrl,
|
|
2353
|
+
// leadDomain: siteDomain,
|
|
2354
|
+
// leadSiteId: siteId,
|
|
2355
|
+
// onShowPopup(campaign: any, action: string) {
|
|
2356
|
+
// console.log('** RYAN LeadGenContext.tsx 421 action : ', action)
|
|
2357
|
+
// setForceCampaign(formatCampaignDetail(campaign))
|
|
2358
|
+
// setRawForceCampaign(campaign)
|
|
2359
|
+
// },
|
|
2360
|
+
// DEBUG_URL,
|
|
2361
|
+
// })
|
|
2282
2362
|
// }
|
|
2283
|
-
}, [
|
|
2363
|
+
}, [
|
|
2364
|
+
forceCampaignProps,
|
|
2365
|
+
campaignCodeProps,
|
|
2366
|
+
categoryId,
|
|
2367
|
+
siteId,
|
|
2368
|
+
siteDomain,
|
|
2369
|
+
apiLeadUrl,
|
|
2370
|
+
DEBUG_URL,
|
|
2371
|
+
]);
|
|
2284
2372
|
React.useEffect(() => {
|
|
2285
2373
|
leadStore.apiSsoUrl = apiSsoUrl;
|
|
2286
2374
|
leadStore.apiLeadUrl = apiLeadUrl;
|
|
@@ -2291,10 +2379,16 @@ const LeadGenContextProvider = (props) => {
|
|
|
2291
2379
|
}
|
|
2292
2380
|
return (React__default["default"].createElement(LeadGenContext.Provider, { value: Object.assign(Object.assign(Object.assign({}, restProps), subscriptionInfo), { userInfo, campaign_code: campaignCodeProps, apiSsoUrl,
|
|
2293
2381
|
apiLeadUrl,
|
|
2294
|
-
apiSubotUrl, locale: localeProps,
|
|
2295
|
-
|
|
2382
|
+
apiSubotUrl, locale: localeProps, extraValues,
|
|
2383
|
+
articleId,
|
|
2384
|
+
categoryId,
|
|
2385
|
+
siteDomain,
|
|
2386
|
+
forceCampaign,
|
|
2387
|
+
rawForceCampaign,
|
|
2388
|
+
onSubmit,
|
|
2389
|
+
onImpression,
|
|
2296
2390
|
submitSubscriptionBox,
|
|
2297
|
-
|
|
2391
|
+
impressionSubscriptionBox }) },
|
|
2298
2392
|
React__default["default"].createElement(LeadGenTranslationProvider, { locale: locale }, children)));
|
|
2299
2393
|
};
|
|
2300
2394
|
const useLeadGenContext = () => {
|
|
@@ -2882,7 +2976,7 @@ const cssWrapperInputNotShrink$1 = react.css `
|
|
|
2882
2976
|
const cssWrapperInputShrink$1 = react.css `
|
|
2883
2977
|
height: auto;
|
|
2884
2978
|
min-height: var(--container-height, 56px);
|
|
2885
|
-
padding-block: var(--space-y-shrink,
|
|
2979
|
+
padding-block: var(--space-y-shrink, 6px);
|
|
2886
2980
|
cursor: text;
|
|
2887
2981
|
pointer-events: auto;
|
|
2888
2982
|
`;
|
|
@@ -2894,7 +2988,7 @@ const cssInputWrapperError$1 = react.css `
|
|
|
2894
2988
|
const StyledTextFieldContainer$1 = styled__default["default"].div `
|
|
2895
2989
|
--space-x: 16px;
|
|
2896
2990
|
--space-y-not-shrink: 15px;
|
|
2897
|
-
--space-y-shrink:
|
|
2991
|
+
--space-y-shrink: 6px;
|
|
2898
2992
|
--container-height: 56px;
|
|
2899
2993
|
--label-not-shrink: 16px;
|
|
2900
2994
|
--label-shrink: 12px;
|
|
@@ -3307,7 +3401,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3307
3401
|
const { image, extra_fields, id: campaign_id, bot_id: campaign_subot_id = [], ThankYouBlock, } = forceCampaign || {};
|
|
3308
3402
|
const { textBlocks, listBlockAdded, actionBlocks } = extra_fields || {};
|
|
3309
3403
|
const { submitBlock } = actionBlocks || {};
|
|
3310
|
-
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish,
|
|
3404
|
+
const { apiLeadUrl, subscriptionIcon, subscriptionTitle, subscriptionPhoneType, submitSubscriptionBox, onFinish, impressionSubscriptionBox, } = useLeadGenContext();
|
|
3311
3405
|
const { t } = index$1.useTranslations();
|
|
3312
3406
|
const { action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
3313
3407
|
const [loading, setLoading] = React.useState(false);
|
|
@@ -3367,7 +3461,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3367
3461
|
const reqValues = Object.assign(Object.assign({}, newValues), ssoValues);
|
|
3368
3462
|
const [res] = yield Promise.all([
|
|
3369
3463
|
submitSubscriptionBox(reqValues),
|
|
3370
|
-
|
|
3464
|
+
impressionSubscriptionBox('submit_form'),
|
|
3371
3465
|
]);
|
|
3372
3466
|
const { _data } = res || {};
|
|
3373
3467
|
const { model } = _data || {};
|
|
@@ -3413,7 +3507,7 @@ const LeadGenSubscriptionBoxWithoutMemo = ({ locale, userInfo, forceCampaign, ca
|
|
|
3413
3507
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
|
|
3414
3508
|
userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone,
|
|
3415
3509
|
]);
|
|
3416
|
-
return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () =>
|
|
3510
|
+
return (React__default["default"].createElement(ImpressionTrackingWrapper, { dependency: categoryId, onImpression: () => impressionSubscriptionBox('impression') },
|
|
3417
3511
|
React__default["default"].createElement(StyledLeadGenSubscriptionBox, { "data-phone-type": subscriptionPhoneType, "data-type": "subscription_box_A" },
|
|
3418
3512
|
showThankyou && (React__default["default"].createElement(LeadGenThankYou, { image: Object.assign(Object.assign({}, thankyouImage), { src: thankyouImage.src || `${apiLeadUrl}admin/img/thanksyou.png` }), title: thankyouTitle, description: thankyouDescription, button: thankyouButton })),
|
|
3419
3513
|
!showThankyou && (React__default["default"].createElement(LeadGenSubscriptionBoxA, { loading: loading, image: subscriptionIcon || image, title: subscription_title, submitText: (_c = submitBlock === null || submitBlock === void 0 ? void 0 : submitBlock.data) === null || _c === void 0 ? void 0 : _c.value, blocks: listBlockAdded, locale: locale, form: form, rules: validateObj, onFinish: middlewareOnSubmit })))));
|
|
@@ -3422,8 +3516,11 @@ const LeadGenSubscriptionBox$1 = React.memo(LeadGenSubscriptionBoxWithoutMemo);
|
|
|
3422
3516
|
|
|
3423
3517
|
const Container = () => {
|
|
3424
3518
|
const context = React.useContext(LeadGenContext);
|
|
3425
|
-
const { campaign_code, locale, siteId, siteDomain, userInfo, forceCampaign
|
|
3426
|
-
|
|
3519
|
+
const { campaign_code, locale, siteId, siteDomain, userInfo, forceCampaign } = context;
|
|
3520
|
+
if (!forceCampaign || !(forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.id)) {
|
|
3521
|
+
return null;
|
|
3522
|
+
}
|
|
3523
|
+
return (React__default["default"].createElement(LeadGenSubscriptionBox$1, { locale: locale, siteId: siteId, siteDomain: siteDomain, userInfo: userInfo, forceCampaign: forceCampaign, campaign_code: campaign_code }));
|
|
3427
3524
|
};
|
|
3428
3525
|
Container.displayName = 'LeadGenSubscriptionBox';
|
|
3429
3526
|
const ALLOW_LOCALE = [Locale.LOCALE.Vietnam, Locale.LOCALE.Malaysia, Locale.LOCALE.Indonesia];
|
|
@@ -4145,7 +4242,7 @@ const ThankyouPopup = ({ title, titleAlign, subtitle, subtitleAlign, link, linkN
|
|
|
4145
4242
|
React__default["default"].createElement(index$4.Button, { className: `lead-modal__btn ${LEAD_CLASS}`, color: primaryColor }, linkText)))))));
|
|
4146
4243
|
};
|
|
4147
4244
|
|
|
4148
|
-
const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
|
|
4245
|
+
const InlineLayout = ({ flatComponent, content, inlinePosition, doImpression, }) => {
|
|
4149
4246
|
const target = React.useMemo(() => {
|
|
4150
4247
|
if (!inlinePosition)
|
|
4151
4248
|
return null;
|
|
@@ -4250,6 +4347,9 @@ const InlineLayout = ({ content, inlinePosition, doImpression, }) => {
|
|
|
4250
4347
|
}
|
|
4251
4348
|
}
|
|
4252
4349
|
}, [inlinePosition]);
|
|
4350
|
+
if (!!flatComponent) {
|
|
4351
|
+
return (React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content));
|
|
4352
|
+
}
|
|
4253
4353
|
if (!inlinePosition || !target)
|
|
4254
4354
|
return null;
|
|
4255
4355
|
return ReactDOM.createPortal(React__default["default"].createElement(ImpressionTrackingWrapper, { onImpression: () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () { return yield doImpression(); }) }, content), target);
|
|
@@ -4290,15 +4390,28 @@ const EmptyComponent = ({ onClose, onContinue, }) => {
|
|
|
4290
4390
|
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')))));
|
|
4291
4391
|
};
|
|
4292
4392
|
|
|
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
|
+
|
|
4293
4409
|
const SubtitleBlock = ({ children, align, }) => (React__default["default"].createElement("p", { className: `lead-modal__description ${'le-text-align-' + (align || '')} ${LEAD_CLASS}` }, children));
|
|
4294
4410
|
|
|
4295
4411
|
const cssInputNotShrink = react.css `
|
|
4296
4412
|
height: 100% !important;
|
|
4297
4413
|
min-height: calc(var(--container-height, 56px) * 24 / 56);
|
|
4298
|
-
color: ${miscTheme.theme.colors.gray800};
|
|
4299
|
-
font-size: var(--input, 15px);
|
|
4300
4414
|
line-height: calc(var(--container-height, 56px) * 24 / 56);
|
|
4301
|
-
letter-spacing: -0.3px;
|
|
4302
4415
|
border: none !important;
|
|
4303
4416
|
border-radius: 0 !important;
|
|
4304
4417
|
outline: none !important;
|
|
@@ -4321,11 +4434,6 @@ const cssLabelNotShrink = react.css `
|
|
|
4321
4434
|
position: absolute;
|
|
4322
4435
|
top: calc(var(--container-height) / 2);
|
|
4323
4436
|
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;
|
|
4329
4437
|
margin: 0;
|
|
4330
4438
|
z-index: 1;
|
|
4331
4439
|
cursor: pointer;
|
|
@@ -4333,11 +4441,7 @@ const cssLabelNotShrink = react.css `
|
|
|
4333
4441
|
transition: 0.125s ease-in all;
|
|
4334
4442
|
`;
|
|
4335
4443
|
const cssLabelShrink = react.css `
|
|
4336
|
-
|
|
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);
|
|
4444
|
+
top: var(--space-y-shrink, 6px);
|
|
4341
4445
|
transform: none;
|
|
4342
4446
|
transition: 0.125s ease-out all;
|
|
4343
4447
|
`;
|
|
@@ -4368,7 +4472,7 @@ const cssWrapperInputNotShrink = react.css `
|
|
|
4368
4472
|
const cssWrapperInputShrink = react.css `
|
|
4369
4473
|
height: auto;
|
|
4370
4474
|
min-height: var(--container-height, 56px);
|
|
4371
|
-
padding-block: var(--space-y-shrink,
|
|
4475
|
+
padding-block: var(--space-y-shrink, 6px);
|
|
4372
4476
|
cursor: text;
|
|
4373
4477
|
pointer-events: auto;
|
|
4374
4478
|
`;
|
|
@@ -4380,7 +4484,7 @@ const cssInputWrapperError = react.css `
|
|
|
4380
4484
|
const StyledTextFieldContainer = styled__default["default"].div `
|
|
4381
4485
|
--space-x: 16px;
|
|
4382
4486
|
--space-y-not-shrink: 15px;
|
|
4383
|
-
--space-y-shrink:
|
|
4487
|
+
--space-y-shrink: 6px;
|
|
4384
4488
|
--container-height: 56px;
|
|
4385
4489
|
--label-not-shrink: 16px;
|
|
4386
4490
|
--label-shrink: 12px;
|
|
@@ -4607,7 +4711,7 @@ const TextField = (props) => {
|
|
|
4607
4711
|
setShrink(shrinkProps);
|
|
4608
4712
|
}, [shrinkProps]);
|
|
4609
4713
|
return (React__default["default"].createElement(StyledTextFieldContainer, Object.assign({ shrink: shrink, className: core.clsx(className, 'textField', { textField_shrink: !!shrink }) }, restProps),
|
|
4610
|
-
React__default["default"].createElement("div", { ref: containerRef, onClick: onClick, className: "textField_wrapper" }, children)));
|
|
4714
|
+
React__default["default"].createElement("div", { ref: containerRef, onClick: onClick, className: "textField_wrapper" }, typeof children === 'function' ? children(shrink) : children)));
|
|
4611
4715
|
};
|
|
4612
4716
|
const ChoiceField = (props) => {
|
|
4613
4717
|
const { children, className } = props, restProps = tslib_es6.__rest(props, ["children", "className"]);
|
|
@@ -4618,6 +4722,7 @@ const TitleBlock = ({ children, align, }) => (React__default["default"].createEl
|
|
|
4618
4722
|
|
|
4619
4723
|
const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, }) => {
|
|
4620
4724
|
const { t } = index$1.useTranslations();
|
|
4725
|
+
const { classes } = useTextStyles();
|
|
4621
4726
|
const form = useLeadFormContext();
|
|
4622
4727
|
const formValues = form.values;
|
|
4623
4728
|
const labelTuples = React.useMemo(() => {
|
|
@@ -4637,24 +4742,44 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4637
4742
|
case 'SubtitleBlock':
|
|
4638
4743
|
return (React__default["default"].createElement(SubtitleBlock, { key: index, align: align }, value));
|
|
4639
4744
|
case 'TextBlock':
|
|
4640
|
-
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4745
|
+
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" }, (shrink) => (React__default["default"].createElement(core.TextInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "text", placeholder: " ",
|
|
4746
|
+
// className="lead-modal__form-control leadgen-form_field"
|
|
4747
|
+
// onChangeRaw={(e) => inputOnChange('text', e)}
|
|
4748
|
+
label: React__default["default"].createElement(index$2.Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), "data-control": "text", "data-lead-control": name, "data-is-required": required, inputWrapperOrder: [
|
|
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]))) })))));
|
|
4645
4756
|
case 'NumberBlock':
|
|
4646
|
-
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4757
|
+
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" }, (shrink) => (React__default["default"].createElement(core.NumberInput, Object.assign({ withAsterisk: required, spellCheck: false, type: "number", placeholder: " ",
|
|
4758
|
+
// className="lead-modal__form-control leadgen-form_field"
|
|
4759
|
+
// onChange={(e) => inputOnChange('number', e)}
|
|
4760
|
+
label: React__default["default"].createElement(index$2.Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), "data-control": "number", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: [
|
|
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]))) })))));
|
|
4651
4768
|
case 'EmailBlock':
|
|
4652
|
-
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4769
|
+
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" }, (shrink) => (React__default["default"].createElement(core.TextInput, Object.assign({ withAsterisk: required, spellCheck: false,
|
|
4770
|
+
// type="email"
|
|
4771
|
+
placeholder: " ",
|
|
4772
|
+
// className="lead-modal__form-control leadgen-form_field"
|
|
4773
|
+
label: React__default["default"].createElement(index$2.Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), "data-control": "email", "data-lead-control": name, "data-is-required": required, name: value, inputWrapperOrder: [
|
|
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
|
+
}) })))));
|
|
4658
4783
|
case 'PhoneOtpBlock':
|
|
4659
4784
|
case 'WhatsappOtpBlock':
|
|
4660
4785
|
case 'ZaloOtpBlock':
|
|
@@ -4663,20 +4788,30 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4663
4788
|
const _b = form.getInputProps(value), { error } = _b, formPhoneInputWrapper = tslib_es6.__rest(_b, ["error"]);
|
|
4664
4789
|
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: core.clsx('lead-modal__form-control leadgen-form_field', {
|
|
4665
4790
|
'leadgen-form_field_error': !!error,
|
|
4666
|
-
}) },
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4791
|
+
}) }, (shrink) => (React__default["default"].createElement(core.Input.Wrapper, { size: "md", withAsterisk: required, label: React__default["default"].createElement(index$2.Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), "data-invalid": !!error, labelProps: { htmlFor: htmlForId }, inputWrapperOrder: [
|
|
4792
|
+
'label',
|
|
4793
|
+
'input',
|
|
4794
|
+
'description',
|
|
4795
|
+
'error',
|
|
4796
|
+
], error: error },
|
|
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)))))));
|
|
4672
4801
|
}
|
|
4673
4802
|
case 'LocationBlock': {
|
|
4674
|
-
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" },
|
|
4675
|
-
|
|
4803
|
+
return (React__default["default"].createElement(TextField, { key: index, shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field" }, (shrink) => (React__default["default"].createElement(GoogleLocationBlock, Object.assign({ withAsterisk: required, name: value, placeholder: " ", label: React__default["default"].createElement(index$2.Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), "data-control": "text", "data-lead-control": name, "data-is-required": required, locale: locale, inputWrapperOrder: [
|
|
4804
|
+
'label',
|
|
4805
|
+
'input',
|
|
4806
|
+
'description',
|
|
4807
|
+
'error',
|
|
4808
|
+
] }, form.getInputProps(value))))));
|
|
4676
4809
|
}
|
|
4677
4810
|
case 'DateBlock': {
|
|
4678
4811
|
const _c = form.getInputProps(value), { error } = _c, formInputProps = tslib_es6.__rest(_c, ["error"]);
|
|
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:
|
|
4812
|
+
return (React__default["default"].createElement(core.Input.Wrapper, { key: index, size: "md", withAsterisk: required, label: React__default["default"].createElement(index$2.Text, { size: "p2", variant: "primary" }, label), "data-invalid": !!error, inputWrapperOrder: ['label', 'input', 'description', 'error'], error: form.errors[value] && (React__default["default"].createElement(core.Flex, { align: 'center', gap: 4 },
|
|
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" },
|
|
4680
4815
|
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))));
|
|
4681
4816
|
}
|
|
4682
4817
|
case 'LinkButtonBlock':
|
|
@@ -4693,7 +4828,7 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4693
4828
|
}, "data-name": value + '-mailchimp' })),
|
|
4694
4829
|
React__default["default"].createElement(index$3.Checkbox.Group, Object.assign({ withAsterisk: required,
|
|
4695
4830
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4696
|
-
label: label, size: "md", sx: {
|
|
4831
|
+
label: React__default["default"].createElement(index$2.Text, { size: "p2", variant: "primary" }, label), size: "md", sx: {
|
|
4697
4832
|
display: 'flex',
|
|
4698
4833
|
flexDirection: 'column',
|
|
4699
4834
|
flexWrap: 'wrap',
|
|
@@ -4706,20 +4841,22 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4706
4841
|
isSendMailChimp && (React__default["default"].createElement(core.Input, { type: "hidden", name: value + '-mailchimp', value: isSendMailChimp })),
|
|
4707
4842
|
React__default["default"].createElement(index$3.Radio.Group, Object.assign({ withAsterisk: required,
|
|
4708
4843
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4709
|
-
label: label, size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4844
|
+
label: React__default["default"].createElement(index$2.Text, { size: "p2", variant: "primary" }, label), size: "md", inputWrapperOrder: ['label', 'input', 'description', 'error'], inputContainer: (children) => {
|
|
4710
4845
|
return (React__default["default"].createElement("div", { className: "leadgen-choiceContainer" }, children));
|
|
4711
4846
|
} }, 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 }))))));
|
|
4712
4847
|
case 'DropdownBlock':
|
|
4713
|
-
return (React__default["default"].createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field DropdownBlock", key: index },
|
|
4848
|
+
return (React__default["default"].createElement(TextField, { shrink: !!formValue, className: "lead-modal__form-control leadgen-form_field DropdownBlock", key: index }, (shrink) => (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
4714
4849
|
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 }),
|
|
4715
4850
|
React__default["default"].createElement(index$3.Select
|
|
4716
4851
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4717
4852
|
, Object.assign({
|
|
4718
4853
|
// className="lead-modal__form-control leadgen-form_field"
|
|
4719
|
-
label: label, placeholder: " ", searchable: true, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
4854
|
+
label: React__default["default"].createElement(index$2.Text, { size: shrink ? 'p3' : 'p2', variant: "secondary", weight: "halfBold" }, label), placeholder: " ", searchable: true, withAsterisk: required, name: value, data: listQuestion.map((l) => ({
|
|
4720
4855
|
value: l.value,
|
|
4721
4856
|
label: l.placeholder,
|
|
4722
|
-
})), nothingFound: React__default["default"].createElement(NoData, null),
|
|
4857
|
+
})), nothingFound: React__default["default"].createElement(NoData, null), error: form.errors[value] && (React__default["default"].createElement(core.Flex, { align: 'center', gap: 4 },
|
|
4858
|
+
React__default["default"].createElement(ErrorIcon, { size: 12 }),
|
|
4859
|
+
React__default["default"].createElement(index$2.Text, { size: "c1", variant: "error" }, form.errors[value]))), styles: {
|
|
4723
4860
|
item: {
|
|
4724
4861
|
paddingBlock: 12,
|
|
4725
4862
|
paddingInline: 10,
|
|
@@ -4740,20 +4877,19 @@ const LightboxFields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmi
|
|
|
4740
4877
|
paddingInline: 0,
|
|
4741
4878
|
},
|
|
4742
4879
|
},
|
|
4743
|
-
}, maxDropdownHeight: 192 }, form.getInputProps(value)))));
|
|
4880
|
+
}, maxDropdownHeight: 192 }, form.getInputProps(value)))))));
|
|
4744
4881
|
case 'TncBlock':
|
|
4745
4882
|
const _d = form.getInputProps(`TNC-${id}`), { error } = _d, tncInputProps = tslib_es6.__rest(_d, ["error"]);
|
|
4746
4883
|
return (React__default["default"].createElement(ChoiceField, { className: "leadgen-form_checkbox", key: id },
|
|
4747
4884
|
React__default["default"].createElement(core.Input.Wrapper, { error: error },
|
|
4748
|
-
React__default["default"].createElement(index$3.Checkbox, Object.assign({ name: 'TNC-' + id, label: React__default["default"].createElement(index$2.Text, { as: "span", size: "c1", variant: "secondary", dangerouslySetInnerHTML: { __html: data.valueHTML }, styles:
|
|
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: {
|
|
4749
4886
|
root: {
|
|
4750
4887
|
a: {
|
|
4751
|
-
textDecoration: 'underline
|
|
4888
|
+
textDecoration: 'underline',
|
|
4752
4889
|
textUnderlineOffset: '3px',
|
|
4753
|
-
color: `${theme.colors.gray[7]} !important`,
|
|
4754
4890
|
},
|
|
4755
4891
|
},
|
|
4756
|
-
}
|
|
4892
|
+
} }), className: "tnc-block", "data-control": "checkbox", "data-lead-control": name, "data-is-required": required }, tncInputProps)))));
|
|
4757
4893
|
}
|
|
4758
4894
|
return null;
|
|
4759
4895
|
})));
|
|
@@ -5006,7 +5142,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
5006
5142
|
];
|
|
5007
5143
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
5008
5144
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
5009
|
-
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
|
|
5145
|
+
const LightboxLayout = ({ flatComponent, popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
|
|
5010
5146
|
var _a, _b;
|
|
5011
5147
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
5012
5148
|
const { isMobile } = index$b.useScreenSize();
|
|
@@ -5406,7 +5542,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5406
5542
|
return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
|
|
5407
5543
|
}
|
|
5408
5544
|
else if (isInline) {
|
|
5409
|
-
return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5545
|
+
return (React__default["default"].createElement(InlineLayout, { flatComponent: flatComponent, action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5410
5546
|
}
|
|
5411
5547
|
return null;
|
|
5412
5548
|
};
|
|
@@ -5499,7 +5635,7 @@ function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
|
|
|
5499
5635
|
return null;
|
|
5500
5636
|
}
|
|
5501
5637
|
}
|
|
5502
|
-
const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5638
|
+
const NewLeadPopup = ({ flatComponent, campaign, action, onSubmit, onClose, onUnmount, doImpression, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }) => {
|
|
5503
5639
|
var _a, _b;
|
|
5504
5640
|
const { apiUrl, siteDomain } = React.useContext(LeadGenContext$1);
|
|
5505
5641
|
const { extra_fields, image, image_desktop, code, image_background, image_overlay_mobile, image_overlay_desktop, } = campaign || {};
|
|
@@ -5602,7 +5738,7 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
|
|
|
5602
5738
|
currentLayout == 'Fullscreen' ||
|
|
5603
5739
|
currentLayout == 'Sidebar' ||
|
|
5604
5740
|
currentLayout == 'Slider') {
|
|
5605
|
-
return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
|
|
5741
|
+
return (React__default["default"].createElement(LightboxLayout, { flatComponent: flatComponent, popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
|
|
5606
5742
|
}
|
|
5607
5743
|
else if (currentLayout.includes('Skin')) {
|
|
5608
5744
|
return (React__default["default"].createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
|
|
@@ -5694,7 +5830,7 @@ const formatTrackingData = (params) => {
|
|
|
5694
5830
|
};
|
|
5695
5831
|
|
|
5696
5832
|
// mount css
|
|
5697
|
-
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, }) => {
|
|
5833
|
+
const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor, apiSubotUrl, DEBUG_URL, forceCampaign, children, extraPayloadValues = [], excludeExitRulesHandler, userInfo, onClose: onCloseProps, onSubmit: onSubmitProps, flatComponent, }) => {
|
|
5698
5834
|
var _a, _b;
|
|
5699
5835
|
const scrollEventHandlerRef = React.useRef();
|
|
5700
5836
|
const leadStartTimeRef = React.useRef(Date.now());
|
|
@@ -5806,12 +5942,10 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5806
5942
|
const { listBlockAdded = [] } = params || {};
|
|
5807
5943
|
if (!TEMPLATE_ALLOW_NEWTRACKING.includes(currentLayout))
|
|
5808
5944
|
return;
|
|
5809
|
-
const gaCookie = miscCookieHelper.getCookie('_ga') || null;
|
|
5810
|
-
const cookieId = miscCookieHelper.getCookie('hhg-id') || '';
|
|
5811
5945
|
const data = formatTrackingData({
|
|
5812
5946
|
commonData: {
|
|
5813
|
-
cookie_id:
|
|
5814
|
-
ga_client_id:
|
|
5947
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id') || '',
|
|
5948
|
+
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
5815
5949
|
country_code: locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5816
5950
|
status: 'in_progress',
|
|
5817
5951
|
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
@@ -5821,28 +5955,13 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5821
5955
|
currentLayout,
|
|
5822
5956
|
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: [] }),
|
|
5823
5957
|
});
|
|
5824
|
-
return
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
}),
|
|
5832
|
-
fetch(`${apiUrl}api/campaign/${showCampaign.code}/impression`, {
|
|
5833
|
-
method: 'POST',
|
|
5834
|
-
headers: {
|
|
5835
|
-
'Content-Type': 'application/json',
|
|
5836
|
-
},
|
|
5837
|
-
body: JSON.stringify({
|
|
5838
|
-
action,
|
|
5839
|
-
url: location.href.toLowerCase(),
|
|
5840
|
-
title_article: document.title,
|
|
5841
|
-
cookie_id: miscCookieHelper.getCookie('hhg-id'),
|
|
5842
|
-
ga_client_id: gaCookie,
|
|
5843
|
-
}),
|
|
5844
|
-
}),
|
|
5845
|
-
]);
|
|
5958
|
+
return fetch(`${apiUrl}api/collection/tracking-completion`, {
|
|
5959
|
+
method: 'POST',
|
|
5960
|
+
headers: {
|
|
5961
|
+
'Content-Type': 'application/json',
|
|
5962
|
+
},
|
|
5963
|
+
body: JSON.stringify(data),
|
|
5964
|
+
});
|
|
5846
5965
|
};
|
|
5847
5966
|
React.useEffect(() => {
|
|
5848
5967
|
if (forceCampaign === null || forceCampaign === void 0 ? void 0 : forceCampaign.code)
|
|
@@ -6051,7 +6170,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
6051
6170
|
!!currentLayout &&
|
|
6052
6171
|
!currentLayout.includes('Inline') &&
|
|
6053
6172
|
!currentLayout.includes('Sidebar') && (React__default["default"].createElement(core.Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
6054
|
-
React__default["default"].createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
6173
|
+
React__default["default"].createElement(NewLeadPopup, { flatComponent: flatComponent, campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
6055
6174
|
}))))))));
|
|
6056
6175
|
};
|
|
6057
6176
|
const LeadGen = _LeadGen;
|
|
@@ -6063,4 +6182,6 @@ LeadGen.OtpForm = OtpBlock$1;
|
|
|
6063
6182
|
LeadGen.Close = Close.Close;
|
|
6064
6183
|
|
|
6065
6184
|
exports.LeadGen = LeadGen;
|
|
6185
|
+
exports.LeadGenInline = LeadGenInline;
|
|
6066
6186
|
exports.LeadGenSubscriptionBox = LeadGenSubscriptionBox;
|
|
6187
|
+
exports.leadGenInlineGetCampaign = leadGenInlineGetCampaign;
|