@hhgtech/hhg-components 1.29.428 → 1.29.429-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/GeneralInfo-0ba8e410.js +5276 -0
- package/build/{InputDate-05998051.js → InputDate-b37b57d7.js} +5 -5
- package/build/{LastPeriod-6416f1be.js → LastPeriod-befd61b1.js} +1 -1
- package/build/{MobileBottomNavigationIcon-593f5932.js → MobileBottomNavigationIcon-6063aa67.js} +3 -3
- package/build/{Spinner-4104ee8c.js → Spinner-6c4a3a94.js} +1 -1
- package/build/{WhatsApp-2b04e6b2.js → WhatsApp-ea0dcf10.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +49 -49
- package/build/babyGrowth.js +85 -85
- package/build/cache.js +2 -2
- package/build/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/care/interfaces/types.d.ts +2 -1
- package/build/care.js +19 -20
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/atoms/cardCollapse/index.d.ts +2 -1
- package/build/components/mantine/text/index.d.ts +1 -8
- package/build/components/mantine/theme/text.d.ts +1 -3
- package/build/components/molecules/hpvSceener/index.d.ts +7 -0
- package/build/components/molecules/hpvSceener/index.styled.d.ts +78 -0
- package/build/components/molecules/index.d.ts +2 -0
- package/build/components/molecules/productDetail/generalInfo/index.styled.d.ts +0 -4
- package/build/components/molecules/summaryInfo/index.d.ts +13 -0
- package/build/components/molecules/summaryInfo/index.styled.d.ts +25 -0
- package/build/components/organisms/clinicInfo/index.d.ts +1 -1
- package/build/components/organisms/clinicInfo/index.styled.d.ts +7 -0
- package/build/components/organisms/map/index.d.ts +1 -1
- package/build/components.js +103 -102
- package/build/{constants-4e2120af.js → constants-a266a6fa.js} +1 -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-d91b81bf.js → core-c4cc25cc.js} +1 -1
- package/build/{dataTransform-2ab07aee.js → dataTransform-534fb594.js} +1 -1
- package/build/ecom.js +25 -22
- package/build/{editor-7fc90409.js → editor-89a1cfc1.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/GeneralInfo-2f0343c0.js +5214 -0
- package/build/esm/{InputDate-6e6f1a99.js → InputDate-b3d673ed.js} +5 -5
- package/build/esm/{LastPeriod-bba7c0bf.js → LastPeriod-8e94beb4.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-efd05188.js → MobileBottomNavigationIcon-f974e41d.js} +3 -3
- package/build/esm/{Spinner-e2ee4f81.js → Spinner-e5feb8cc.js} +1 -1
- package/build/esm/{WhatsApp-199a90bc.js → WhatsApp-0d2532fe.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +49 -49
- package/build/esm/babyGrowth.js +85 -85
- package/build/esm/cache.js +2 -2
- package/build/esm/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/esm/care/interfaces/types.d.ts +2 -1
- package/build/esm/care.js +17 -18
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/atoms/cardCollapse/index.d.ts +2 -1
- package/build/esm/components/mantine/text/index.d.ts +1 -8
- package/build/esm/components/mantine/theme/text.d.ts +1 -3
- package/build/esm/components/molecules/hpvSceener/index.d.ts +7 -0
- package/build/esm/components/molecules/hpvSceener/index.styled.d.ts +78 -0
- package/build/esm/components/molecules/index.d.ts +2 -0
- package/build/esm/components/molecules/productDetail/generalInfo/index.styled.d.ts +0 -4
- package/build/esm/components/molecules/summaryInfo/index.d.ts +13 -0
- package/build/esm/components/molecules/summaryInfo/index.styled.d.ts +25 -0
- package/build/esm/components/organisms/clinicInfo/index.d.ts +1 -1
- package/build/esm/components/organisms/clinicInfo/index.styled.d.ts +7 -0
- package/build/esm/components/organisms/map/index.d.ts +1 -1
- package/build/esm/components.js +101 -102
- package/build/esm/{constants-96aba134.js → constants-dee2abaf.js} +2 -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-1d85626d.js → core-2f0ca1e0.js} +1 -1
- package/build/esm/{dataTransform-6a89e28e.js → dataTransform-e9c322b8.js} +1 -1
- package/build/esm/ecom.js +8 -5
- package/build/esm/{editor-f0d09d07.js → editor-68ddbd9f.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-9a5aefea.js → healthTools-80e48420.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- package/build/esm/hooks/useFocusFieldOnDevice.d.ts +12 -0
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +12 -0
- package/build/esm/i18n-values/hi-IN.js +12 -0
- package/build/esm/i18n-values/id-ID.js +12 -0
- package/build/esm/i18n-values/km-KH.js +12 -0
- package/build/esm/i18n-values/ms-MY.js +12 -0
- package/build/esm/i18n-values/my-MM.js +12 -0
- package/build/esm/i18n-values/th-TH.js +12 -0
- package/build/esm/i18n-values/vi-VN.js +12 -0
- package/build/esm/i18n-values/vi-VN_MB.js +12 -0
- package/build/esm/i18n-values/zh-SG.js +12 -0
- package/build/esm/i18n-values/zh-TW.js +12 -0
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/icons/ArrowRightBlue.d.ts +4 -0
- package/build/esm/icons/Email.d.ts +4 -0
- package/build/esm/icons/HPV.d.ts +4 -0
- package/build/esm/icons/StarUpgrade.d.ts +4 -0
- package/build/esm/{index-34a4b9b7.js → index-0412e46d.js} +2 -2
- package/build/esm/{index-dcd908b1.js → index-05cbb540.js} +2 -2
- package/build/esm/{index-0b56d215.js → index-079604f3.js} +25 -25
- package/build/esm/{index-d6d64d31.js → index-0cc560d6.js} +2 -2
- package/build/esm/{index-47be48f7.js → index-13723956.js} +1 -1
- package/build/esm/{index-6e0425ca.js → index-144373bb.js} +2 -2
- package/build/esm/{index-0f080660.js → index-16b9972f.js} +6 -6
- package/build/esm/{index-2a733b1a.js → index-16fb3837.js} +1 -1
- package/build/esm/{index-90599ea4.js → index-198a016c.js} +3 -3
- package/build/esm/{index-1229ccde.js → index-1c889d4a.js} +1 -1
- package/build/esm/{index-026fbb99.js → index-1f08df39.js} +3 -3
- package/build/esm/{index-f80078a4.js → index-25217239.js} +22 -22
- package/build/esm/{index-8a45edfb.js → index-28c156bf.js} +2 -2
- package/build/esm/{index-6570373a.js → index-2ece5e60.js} +6 -6
- package/build/esm/{index-e46af6fe.js → index-30314237.js} +76 -37
- package/build/esm/{index-20d84e9a.js → index-309f547c.js} +2 -2
- package/build/esm/{index-5cd5506b.js → index-33230a01.js} +3 -3
- package/build/esm/{index-0c1abc7a.js → index-3524d24d.js} +17 -17
- package/build/esm/{index-3439a463.js → index-39d9b754.js} +17 -17
- package/build/esm/{index-7a70a886.js → index-3e51be31.js} +13 -13
- package/build/esm/{index-3617d03a.js → index-3e95d0c0.js} +17 -17
- package/build/esm/{index-80e0550a.js → index-3f332df2.js} +1 -1
- package/build/esm/{index-9a57dc0a.js → index-401d1dbd.js} +1 -1
- package/build/esm/{index-f3255f00.js → index-416a8af9.js} +17 -17
- package/build/esm/{index-dba9d486.js → index-48e7c1c9.js} +2 -2
- package/build/esm/{index-4461d1c5.js → index-4aabb131.js} +6 -6
- package/build/esm/{index-39999949.js → index-4e4f7031.js} +13 -13
- package/build/esm/{index-cdb71ab1.js → index-588b7b32.js} +2 -2
- package/build/esm/{index-54f817be.js → index-6a3b8fe1.js} +3 -3
- package/build/esm/{index-44798d16.js → index-6d6c8c01.js} +11 -11
- package/build/esm/{index-2086b307.js → index-6e0a7ec3.js} +7 -7
- package/build/esm/{index-618388fd.js → index-705b2d7c.js} +3 -3
- package/build/esm/{index-e1b18cc1.js → index-726243e8.js} +15 -15
- package/build/esm/{index-ab35f001.js → index-7577a8b1.js} +7 -7
- package/build/esm/{index-6a287f61.js → index-7a2c0068.js} +15 -15
- package/build/esm/{index-6bb0197f.js → index-7e5352f9.js} +21 -21
- package/build/esm/{index-4dcd7783.js → index-834eeb36.js} +13 -13
- package/build/esm/{index-0d86f418.js → index-8b2b6227.js} +8 -8
- package/build/esm/{index-b7a4e352.js → index-8dc2c7c0.js} +33 -33
- package/build/esm/{index-475ba6e5.js → index-9e94245c.js} +2 -2
- package/build/esm/{index-730cdec0.js → index-9ede9a9b.js} +1 -1
- package/build/esm/{index-78683bbe.js → index-a011ac0a.js} +13 -13
- package/build/esm/{index-0d828b99.js → index-a022f82a.js} +15 -15
- package/build/esm/{index-e08b4574.js → index-a7d9abc5.js} +16 -16
- package/build/esm/{index-72d36657.js → index-a8a20a77.js} +6 -6
- package/build/esm/{index-d0ae3f5d.js → index-a8f759e0.js} +3 -3
- package/build/esm/{index-84a76802.js → index-aaeff5df.js} +8 -8
- package/build/esm/{index-5fa5f1e7.js → index-ad64b390.js} +3 -4
- package/build/esm/{index-69fc4bee.js → index-b59f3039.js} +5 -5
- package/build/esm/{index-fe394a88.js → index-b8cb53e4.js} +4 -4
- package/build/esm/{index-b77b15b9.js → index-badc2ce3.js} +32 -32
- package/build/esm/{index-a613d28f.js → index-bc3b49ef.js} +13 -13
- package/build/esm/{index-0e4ddfc0.js → index-bd58cc25.js} +4 -4
- package/build/esm/{index-0329aea0.js → index-c0371464.js} +32 -32
- package/build/esm/{index-6f7b85a5.js → index-c5ab366a.js} +13 -13
- package/build/esm/{index-02304c8f.js → index-cbc83414.js} +2 -2
- package/build/esm/{index-54126b1a.js → index-cf074045.js} +14 -14
- package/build/esm/{index-88fea253.js → index-d71f99b5.js} +1 -1
- package/build/esm/{index-733383e7.js → index-ebb96900.js} +6 -6
- package/build/esm/{index-a72cb214.js → index-f04cfd7a.js} +3 -3
- package/build/esm/{index-903036cb.js → index-f4830ecb.js} +16 -16
- package/build/esm/{index-89de9362.js → index-f7ece78f.js} +1 -1
- package/build/esm/{index-eff75d1a.js → index-f900b815.js} +10 -10
- package/build/esm/{index-1c2458fc.js → index-fa5a8cb0.js} +2 -2
- package/build/esm/{index-7f954448.js → index-fad0037e.js} +18 -16
- package/build/esm/{index-f32507bc.js → index-fc321a60.js} +2 -2
- package/build/esm/{index-c8c3da73.js → index-fded19a6.js} +2 -2
- package/build/esm/{index-3382745d.js → index-fe43ab11.js} +2 -2
- package/build/esm/{index-56e6d269.js → index-ffab5b9d.js} +2 -2
- package/build/esm/index.js +122 -123
- package/build/esm/{labelSorting-2d680261.js → labelSorting-0291d4c5.js} +4 -4
- package/build/esm/lead/icons/index.d.ts +0 -4
- package/build/esm/lead/layouts/lightbox/formContainer.d.ts +5 -1
- package/build/esm/lead/layouts/lightbox/index.d.ts +1 -2
- package/build/esm/lead.js +245 -456
- package/build/esm/{logoIcon-a10592cc.js → logoIcon-94f41b2c.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc.js +19 -19
- 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 +77 -77
- 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 +56 -57
- package/build/esm/{post-a150883c.js → post-f0e8b25d.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-c7507104.js → store-6fa5e32b.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-e3066454.js → surveyThankyouCard-fb4669e6.js} +5 -5
- package/build/esm/{text-5bb06c81.js → text-71546390.js} +0 -2
- 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-1fccec4f.js → translationsProvider-a1938d53.js} +1 -1
- package/build/esm/{treePopoverMenu-6539b501.js → treePopoverMenu-564b28a2.js} +19 -19
- package/build/esm/{index-2cf53b6a.js → types-72643021.js} +16 -3
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-d5f2d6b8.js → useCategory-71dea916.js} +5 -5
- package/build/esm/{useHealthToolCache-038110bb.js → useHealthToolCache-a83b1d71.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-7f88d105.js → usePlacesAutocomplete-a6f5e653.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-b481b8ef.js → utils-2621f6fd.js} +2 -2
- package/build/esm/{utils-cbd6bceb.js → utils-ab731a3f.js} +5 -5
- package/build/esm/{utils-84cab0c7.js → utils-d8c09f05.js} +2 -2
- package/build/esm/{utils-3f1d095a.js → utils-da9cabcd.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-9baa7415.js → healthTools-16caa9e8.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks/useFocusFieldOnDevice.d.ts +12 -0
- package/build/hooks.js +13 -13
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +12 -0
- package/build/i18n-values/hi-IN.js +12 -0
- package/build/i18n-values/id-ID.js +12 -0
- package/build/i18n-values/km-KH.js +12 -0
- package/build/i18n-values/ms-MY.js +12 -0
- package/build/i18n-values/my-MM.js +12 -0
- package/build/i18n-values/th-TH.js +12 -0
- package/build/i18n-values/vi-VN.js +12 -0
- package/build/i18n-values/vi-VN_MB.js +12 -0
- package/build/i18n-values/zh-SG.js +12 -0
- package/build/i18n-values/zh-TW.js +12 -0
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/icons/ArrowRightBlue.d.ts +4 -0
- package/build/icons/Email.d.ts +4 -0
- package/build/icons/HPV.d.ts +4 -0
- package/build/icons/StarUpgrade.d.ts +4 -0
- package/build/{index-7dbcc988.js → index-0662d0bf.js} +3 -3
- package/build/{index-8a0b6fbe.js → index-0e96350c.js} +1 -1
- package/build/{index-09557ac2.js → index-16aad824.js} +15 -15
- package/build/{index-1e35a29d.js → index-1719db7e.js} +1 -1
- package/build/{index-fdd2ae22.js → index-1997674b.js} +2 -2
- package/build/{index-f82897b4.js → index-1ac68c15.js} +8 -8
- package/build/{index-fe3da18f.js → index-1f5e1dd2.js} +6 -6
- package/build/{index-0ffe12a7.js → index-2236e64a.js} +2 -2
- package/build/{index-2f734abd.js → index-297edac7.js} +2 -2
- package/build/{index-55a01c0b.js → index-297ee109.js} +3 -3
- package/build/{index-46038032.js → index-2f260f77.js} +16 -16
- package/build/{index-4cc13693.js → index-33c01a81.js} +1 -1
- package/build/{index-07c8eeae.js → index-3753c23c.js} +6 -6
- package/build/{index-515c0ff6.js → index-3e3f7382.js} +1 -1
- package/build/{index-8c9db27d.js → index-3e55f9b1.js} +21 -21
- package/build/{index-ae42d9e4.js → index-4837161d.js} +17 -17
- package/build/{index-106897b6.js → index-4ae767fa.js} +13 -13
- package/build/{index-d90b2867.js → index-4c18651c.js} +2 -2
- package/build/{index-bde67a01.js → index-5755893e.js} +17 -17
- package/build/{index-4377f721.js → index-5b75743a.js} +17 -17
- package/build/{index-75f2b541.js → index-5e2e4427.js} +13 -13
- package/build/{index-9ff0c013.js → index-5f980141.js} +2 -2
- package/build/{index-77e17b19.js → index-635ee74e.js} +77 -38
- package/build/{index-87cb8dec.js → index-656a4492.js} +5 -5
- package/build/{index-ed01a3cb.js → index-65b0d62e.js} +32 -32
- package/build/{index-abe0f3e5.js → index-65dff0fb.js} +3 -3
- package/build/{index-e3a2e218.js → index-67cee34d.js} +6 -6
- package/build/{index-071863b3.js → index-69ae58ad.js} +1 -1
- package/build/{index-7313500d.js → index-6cd92e96.js} +2 -2
- package/build/{index-9930be5f.js → index-6d37c82c.js} +17 -17
- package/build/{index-6589adf1.js → index-6fd1634c.js} +10 -10
- package/build/{index-1c70c38a.js → index-73c98bf3.js} +2 -2
- package/build/{index-a149410e.js → index-7763979f.js} +22 -22
- package/build/{index-97b594ac.js → index-7a256061.js} +2 -2
- package/build/{index-72a79ba6.js → index-7a331120.js} +2 -2
- package/build/{index-a3bc0511.js → index-7a3b39ca.js} +15 -15
- package/build/{index-35f1dbad.js → index-7b51672f.js} +2 -2
- package/build/{index-245bd44f.js → index-82d1e62a.js} +16 -16
- package/build/{index-0e22a48b.js → index-839b3274.js} +3 -3
- package/build/{index-2112e545.js → index-86708d23.js} +2 -2
- package/build/{index-354b6738.js → index-8a0c675c.js} +7 -7
- package/build/{index-f253cbfe.js → index-923ce84a.js} +2 -2
- package/build/{index-651bbdbb.js → index-95ee6657.js} +13 -13
- package/build/{index-737f8c4f.js → index-a2d711c3.js} +6 -6
- package/build/{index-1555c485.js → index-acc9f5b9.js} +7 -7
- package/build/{index-6eb8de50.js → index-ad735179.js} +2 -2
- package/build/{index-d61d00a6.js → index-b6d94c63.js} +1 -1
- package/build/{index-331a78d3.js → index-bd983ca5.js} +32 -32
- package/build/{index-8cbc458e.js → index-c09adf94.js} +13 -13
- package/build/{index-13e624cc.js → index-c3de764f.js} +3 -4
- package/build/{index-c9adf482.js → index-c6a025f1.js} +32 -32
- package/build/{index-e96a9e79.js → index-ce932251.js} +25 -25
- package/build/{index-bc8517e4.js → index-d2a32a9a.js} +2 -2
- package/build/{index-9b590448.js → index-d40d99f4.js} +13 -13
- package/build/{index-d66ada8d.js → index-df8d9c1a.js} +14 -14
- package/build/{index-b75ab02d.js → index-dfb20bad.js} +11 -11
- package/build/{index-a30126fc.js → index-ea023cf2.js} +3 -3
- package/build/{index-6366cf15.js → index-f6d29429.js} +15 -15
- package/build/{index-fb259136.js → index-f72a5eb7.js} +8 -8
- package/build/{index-85f9d1b0.js → index-f796e8bc.js} +13 -13
- package/build/{index-665b0c6a.js → index-f7ba221f.js} +3 -3
- package/build/{index-6cc847ab.js → index-f876a312.js} +3 -3
- package/build/{index-6f3a30fb.js → index-f9c8497e.js} +18 -16
- package/build/{index-9ea63fe0.js → index-fa5b001b.js} +2 -2
- package/build/{index-5fe314b3.js → index-fd2f1513.js} +4 -4
- package/build/{index-371e9c28.js → index-fe2cad0e.js} +1 -1
- package/build/{index-dd027dfb.js → index-fe5074dc.js} +4 -4
- package/build/{index-27e0b423.js → index-fe75c042.js} +5 -5
- package/build/{index-3150185c.js → index-fef8f082.js} +1 -1
- package/build/index.js +126 -125
- package/build/{labelSorting-1c9dbbcf.js → labelSorting-123122b9.js} +4 -4
- package/build/lead/icons/index.d.ts +0 -4
- package/build/lead/layouts/lightbox/formContainer.d.ts +5 -1
- package/build/lead/layouts/lightbox/index.d.ts +1 -2
- package/build/lead.js +243 -454
- package/build/{logoIcon-addaf0d7.js → logoIcon-724527c5.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc.js +19 -19
- 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 +79 -77
- 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 +56 -57
- package/build/{post-094d73bf.js → post-5a3ccd45.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-cbc484a7.js → store-ba5206bf.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-1af3022e.js → surveyThankyouCard-0c9870b4.js} +5 -5
- package/build/{text-71e1e351.js → text-e5cb14b7.js} +0 -2
- 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-a66ac1d8.js → translationsProvider-1e83343d.js} +1 -1
- package/build/{treePopoverMenu-fb975524.js → treePopoverMenu-7c33f763.js} +19 -19
- package/build/{index-af2fbb78.js → types-bd99cf11.js} +16 -2
- package/build/types.js +2 -2
- package/build/{useCategory-cce323e7.js → useCategory-895623fe.js} +5 -5
- package/build/{useHealthToolCache-4b5e3005.js → useHealthToolCache-c53abacc.js} +1 -1
- package/build/{usePlacesAutocomplete-d30df206.js → usePlacesAutocomplete-65553675.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-ceac0c66.js → utils-78b669a2.js} +5 -5
- package/build/{utils-13cac781.js → utils-9d40a658.js} +2 -2
- package/build/{utils-1d31fa82.js → utils-d665c5c1.js} +2 -2
- package/build/{utils-49fa959a.js → utils-ec38b3b6.js} +3 -3
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/GeneralInfo-681864c0.js +0 -5111
- package/build/esm/GeneralInfo-6872a7d5.js +0 -5068
- package/build/esm/lead/icons/Gift.d.ts +0 -4
- package/build/esm/lead/icons/Star.d.ts +0 -4
- package/build/esm/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.d.ts +0 -5
- package/build/esm/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.styled.d.ts +0 -9
- package/build/esm/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.types.d.ts +0 -10
- package/build/esm/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.d.ts +0 -4
- package/build/esm/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.styled.d.ts +0 -16
- package/build/esm/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.types.d.ts +0 -7
- package/build/esm/lead/layouts/inlineFreebie/InlineFreebie.d.ts +0 -8
- package/build/esm/lead/layouts/inlineFreebie/InlineFreebie.styled.d.ts +0 -23
- package/build/esm/lead/layouts/inlineFreebie/InlineFreebie.types.d.ts +0 -32
- package/build/esm/lead/layouts/inlineFreebie/index.d.ts +0 -2
- package/build/esm/types-b37b28bb.js +0 -16
- package/build/esm/utils-6914d5ba.js +0 -15
- package/build/lead/icons/Gift.d.ts +0 -4
- package/build/lead/icons/Star.d.ts +0 -4
- package/build/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.d.ts +0 -5
- package/build/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.styled.d.ts +0 -9
- package/build/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.types.d.ts +0 -10
- package/build/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.d.ts +0 -4
- package/build/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.styled.d.ts +0 -16
- package/build/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.types.d.ts +0 -7
- package/build/lead/layouts/inlineFreebie/InlineFreebie.d.ts +0 -8
- package/build/lead/layouts/inlineFreebie/InlineFreebie.styled.d.ts +0 -23
- package/build/lead/layouts/inlineFreebie/InlineFreebie.types.d.ts +0 -32
- package/build/lead/layouts/inlineFreebie/index.d.ts +0 -2
- package/build/types-0511ed6c.js +0 -19
- package/build/utils-b19c0467.js +0 -18
- /package/build/{BMI_BOYS.percentile.monthly-10ffadd2.js → BMI_BOYS.percentile.monthly-a713adfb.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-dfa165b0.js → BMI_BOYS.percentile.weekly-f0e22779.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-4e4e2497.js → BMI_BOYS.percentile.yearly-ff74b5fa.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-64bb0d04.js → BMI_BOYS.zscore.monthly-fb49f496.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-95b01f90.js → BMI_BOYS.zscore.weekly-82adc664.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-f5382bff.js → BMI_BOYS.zscore.yearly-a9ff9471.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-c71d96fb.js → BMI_GIRLS.percentile.monthly-47b1ffc4.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-92fde91b.js → BMI_GIRLS.percentile.weekly-f5be19d9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-8528ffe2.js → BMI_GIRLS.percentile.yearly-b6a268d1.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-c93e952e.js → BMI_GIRLS.zscore.monthly-16b2ee61.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-67088503.js → BMI_GIRLS.zscore.weekly-7390f472.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-e8974c34.js → BMI_GIRLS.zscore.yearly-8fbbf3eb.js} +0 -0
- /package/build/{ChevronDown-81fc5325.js → ChevronDown-64ce11e9.js} +0 -0
- /package/build/{Close-b30d6abc.js → Close-c4e16b3c.js} +0 -0
- /package/build/{Google-b41e4738.js → Google-d78ec1d2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-98d24062.js → HEAD CIRCUM_BOYS.percentile.monthly-ddc6c402.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-d2284d4e.js → HEAD CIRCUM_BOYS.percentile.weekly-2413ef38.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-771c75d4.js → HEAD CIRCUM_BOYS.percentile.yearly-930348a6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e47a3299.js → HEAD CIRCUM_BOYS.zscore.monthly-8743ee3a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-4ad0e924.js → HEAD CIRCUM_BOYS.zscore.weekly-c30605cf.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-fe14d8c7.js → HEAD CIRCUM_BOYS.zscore.yearly-95e9be0d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-9b1328bf.js → HEAD CIRCUM_GIRLS.percentile.monthly-81b23b1e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-da761b64.js → HEAD CIRCUM_GIRLS.percentile.weekly-1816eced.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-58c4d116.js → HEAD CIRCUM_GIRLS.percentile.yearly-52e4f065.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-cfcf0ab7.js → HEAD CIRCUM_GIRLS.zscore.monthly-82996291.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-2614ae38.js → HEAD CIRCUM_GIRLS.zscore.weekly-30a5cc83.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-8316923f.js → HEAD CIRCUM_GIRLS.zscore.yearly-1ff800a1.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-caf1f6a1.js → HEIGHT_BOYS.percentile.monthly-a264f612.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-35369f73.js → HEIGHT_BOYS.percentile.weekly-8bc1ab98.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-2346c45b.js → HEIGHT_BOYS.percentile.yearly-95b24639.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-f5da58c3.js → HEIGHT_BOYS.zscore.monthly-5d4210d7.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-abb98e21.js → HEIGHT_BOYS.zscore.weekly-a05b1472.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-6acfedb6.js → HEIGHT_BOYS.zscore.yearly-b5643511.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-1f3a71a7.js → HEIGHT_GIRLS.percentile.monthly-c13f1666.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-dfff1c11.js → HEIGHT_GIRLS.percentile.weekly-bef45df5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-05bbc565.js → HEIGHT_GIRLS.percentile.yearly-3b9798df.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-7e0841d2.js → HEIGHT_GIRLS.zscore.monthly-b09d5930.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-3373d3a6.js → HEIGHT_GIRLS.zscore.weekly-93cbb671.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-11853fd2.js → HEIGHT_GIRLS.zscore.yearly-80fe43fb.js} +0 -0
- /package/build/{Locale-ea78006e.js → Locale-bb109c7a.js} +0 -0
- /package/build/{Visible-b595100b.js → Visible-84bd4d0d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-e1c129c6.js → WEIGHT_BOYS.percentile.monthly-4fd2c1f8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-ed82ff08.js → WEIGHT_BOYS.percentile.weekly-a3d04fc4.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-d634a9f5.js → WEIGHT_BOYS.percentile.yearly-25cd295b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-8ad800a0.js → WEIGHT_BOYS.zscore.monthly-58a75754.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-40d6a1ff.js → WEIGHT_BOYS.zscore.weekly-50099621.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-9613178a.js → WEIGHT_BOYS.zscore.yearly-5c22fa8d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-0b988f38.js → WEIGHT_GIRLS.percentile.monthly-ea322df9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-b3480b1b.js → WEIGHT_GIRLS.percentile.weekly-a0e72453.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-8a37deaf.js → WEIGHT_GIRLS.percentile.yearly-60c055ff.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-ff86c7c7.js → WEIGHT_GIRLS.zscore.monthly-78bdbed6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-75cba3c9.js → WEIGHT_GIRLS.zscore.weekly-a578497a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-194307c1.js → WEIGHT_GIRLS.zscore.yearly-637d962a.js} +0 -0
- /package/build/{ageGenerate-8d11c978.js → ageGenerate-d5a220a7.js} +0 -0
- /package/build/{animation-d9f26cdb.js → animation-1163c06c.js} +0 -0
- /package/build/{constants-a819e09a.js → constants-03ec6a24.js} +0 -0
- /package/build/{constants-f4fa3e5e.js → constants-07268306.js} +0 -0
- /package/build/{constants-c7847085.js → constants-9a8900f6.js} +0 -0
- /package/build/{dataTransform-32fb8c70.js → dataTransform-ad47a618.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-02bdf400.js → BMI_BOYS.percentile.monthly-81d9155d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-9548bc59.js → BMI_BOYS.percentile.weekly-2ec3f571.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-3cff74b2.js → BMI_BOYS.percentile.yearly-b66fd422.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-8be144ce.js → BMI_BOYS.zscore.monthly-ef02e025.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-16b875a9.js → BMI_BOYS.zscore.weekly-ecf027fb.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-5f5f4d8b.js → BMI_BOYS.zscore.yearly-2b251d4b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-d57cab63.js → BMI_GIRLS.percentile.monthly-bb03cbd2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-d664601d.js → BMI_GIRLS.percentile.weekly-dce7ea8c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-75e63fa0.js → BMI_GIRLS.percentile.yearly-6cd4312b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-75200c5b.js → BMI_GIRLS.zscore.monthly-bb3be3e0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-2de14113.js → BMI_GIRLS.zscore.weekly-4aa5af32.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-3a6c20fb.js → BMI_GIRLS.zscore.yearly-5873064a.js} +0 -0
- /package/build/esm/{ChevronDown-207a40b8.js → ChevronDown-1c0dcee2.js} +0 -0
- /package/build/esm/{Close-94578d3a.js → Close-534673a4.js} +0 -0
- /package/build/esm/{Google-036712b1.js → Google-15d84e3a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a2dde9aa.js → HEAD CIRCUM_BOYS.percentile.monthly-844b33f2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-68ee66b0.js → HEAD CIRCUM_BOYS.percentile.weekly-4e4f73ab.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-6f1e1afe.js → HEAD CIRCUM_BOYS.percentile.yearly-8a96fed3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-0cc8e574.js → HEAD CIRCUM_BOYS.zscore.monthly-5c049ecc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-1f561e60.js → HEAD CIRCUM_BOYS.zscore.weekly-3bdd09c6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-6de02208.js → HEAD CIRCUM_BOYS.zscore.yearly-35d1431e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-8152ea64.js → HEAD CIRCUM_GIRLS.percentile.monthly-16eaff55.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-d78351b7.js → HEAD CIRCUM_GIRLS.percentile.weekly-c27dba6b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-44d8293e.js → HEAD CIRCUM_GIRLS.percentile.yearly-8032cf9a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-caca212f.js → HEAD CIRCUM_GIRLS.zscore.monthly-27064661.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-5891d389.js → HEAD CIRCUM_GIRLS.zscore.weekly-a7c4c2ec.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c676689a.js → HEAD CIRCUM_GIRLS.zscore.yearly-f497b99e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0264a01f.js → HEIGHT_BOYS.percentile.monthly-890da34a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-52932bb3.js → HEIGHT_BOYS.percentile.weekly-823f91f6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-79de893d.js → HEIGHT_BOYS.percentile.yearly-ef3e3488.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-0425ac8e.js → HEIGHT_BOYS.zscore.monthly-99759099.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-6bbfa914.js → HEIGHT_BOYS.zscore.weekly-700f0828.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-8cfe6aef.js → HEIGHT_BOYS.zscore.yearly-c2aba992.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-3f5f5b41.js → HEIGHT_GIRLS.percentile.monthly-d6f00d34.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-773e10e8.js → HEIGHT_GIRLS.percentile.weekly-98aeaff9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-45d38250.js → HEIGHT_GIRLS.percentile.yearly-f08a9370.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-13a32958.js → HEIGHT_GIRLS.zscore.monthly-67950be9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f61b087d.js → HEIGHT_GIRLS.zscore.weekly-2aefba2a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-05776a04.js → HEIGHT_GIRLS.zscore.yearly-db7b353e.js} +0 -0
- /package/build/esm/{Locale-42d16ce9.js → Locale-797d59a0.js} +0 -0
- /package/build/esm/{Visible-550a1fdf.js → Visible-9b1f682a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-23c35169.js → WEIGHT_BOYS.percentile.monthly-800c7dc6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-cb20d9f1.js → WEIGHT_BOYS.percentile.weekly-21f16352.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-0df46d7d.js → WEIGHT_BOYS.percentile.yearly-8fcec641.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-08c038ac.js → WEIGHT_BOYS.zscore.monthly-90d7df29.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-e7014510.js → WEIGHT_BOYS.zscore.weekly-a02af04d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-1b9a8a08.js → WEIGHT_BOYS.zscore.yearly-bbf166b4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-22c4f9aa.js → WEIGHT_GIRLS.percentile.monthly-2d2172bb.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-054800e2.js → WEIGHT_GIRLS.percentile.weekly-b2fc48f1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-0e91e8de.js → WEIGHT_GIRLS.percentile.yearly-bb7e9f02.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-dd94b938.js → WEIGHT_GIRLS.zscore.monthly-f96004b1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-06728cc7.js → WEIGHT_GIRLS.zscore.weekly-4175e09b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-1f1cca9a.js → WEIGHT_GIRLS.zscore.yearly-aac9755b.js} +0 -0
- /package/build/esm/{ageGenerate-faebfd42.js → ageGenerate-57d7635d.js} +0 -0
- /package/build/esm/{animation-292ea389.js → animation-c54119fd.js} +0 -0
- /package/build/esm/{constants-e8988168.js → constants-1e93c300.js} +0 -0
- /package/build/esm/{constants-c531a734.js → constants-b2772dfd.js} +0 -0
- /package/build/esm/{constants-27ae8661.js → constants-f806df31.js} +0 -0
- /package/build/esm/{dataTransform-c9d79ed3.js → dataTransform-1c588360.js} +0 -0
- /package/build/esm/{index-3cec32c3.js → index-1cd3656d.js} +0 -0
- /package/build/esm/{index-7a7286e6.js → index-4b0b18fd.js} +0 -0
- /package/build/esm/{index-d6df9ab1.js → index-4b962d1d.js} +0 -0
- /package/build/esm/{index-2c61a279.js → index-73231da6.js} +0 -0
- /package/build/esm/{index-55a202fb.js → index-7a0bf117.js} +0 -0
- /package/build/esm/{index-ad2734de.js → index-7b3c2e4a.js} +0 -0
- /package/build/esm/{index-8518695f.js → index-e2fd63e4.js} +0 -0
- /package/build/esm/{index-02366cba.js → index-ec2ef9b1.js} +0 -0
- /package/build/esm/{index.styles-75e72b54.js → index.styles-e8c64ec4.js} +0 -0
- /package/build/esm/{localizeNumberFormat-d324edd9.js → localizeNumberFormat-05d6a89e.js} +0 -0
- /package/build/esm/{normalizeLink-e81005ad.js → normalizeLink-8e7f5e69.js} +0 -0
- /package/build/esm/{number-f9c8785b.js → number-d5590910.js} +0 -0
- /package/build/esm/{paths-1d113f33.js → paths-bac45a00.js} +0 -0
- /package/build/esm/{shared-cbf6ba4d.js → shared-76a970fb.js} +0 -0
- /package/build/esm/{translationsContext-a44e8410.js → translationsContext-5a4b038b.js} +0 -0
- /package/build/esm/{tslib.es6-fa34026f.js → tslib.es6-3f59f514.js} +0 -0
- /package/build/esm/{types-4a41687e.js → types-c2b28d79.js} +0 -0
- /package/build/esm/{useIsInit-de994cb4.js → useIsInit-d5e49e4f.js} +0 -0
- /package/build/esm/{useOutsideClick-77cf183e.js → useOutsideClick-f9f4a375.js} +0 -0
- /package/build/esm/{useScrollbarSize-20226bd6.js → useScrollbarSize-e702a177.js} +0 -0
- /package/build/esm/{useUniqueId-51185383.js → useUniqueId-e4563340.js} +0 -0
- /package/build/esm/{utils-af633e57.js → utils-3d38d074.js} +0 -0
- /package/build/{index-84a1cb22.js → index-5af5e002.js} +0 -0
- /package/build/{index-e9f85eaf.js → index-71293d67.js} +0 -0
- /package/build/{index-d466ae51.js → index-73058e4d.js} +0 -0
- /package/build/{index-fb553228.js → index-9225a0de.js} +0 -0
- /package/build/{index-675decd6.js → index-b1415959.js} +0 -0
- /package/build/{index-e896085a.js → index-b29635a0.js} +0 -0
- /package/build/{index-436a6dd7.js → index-d2e05594.js} +0 -0
- /package/build/{index-8fe64c28.js → index-ed49c2f5.js} +0 -0
- /package/build/{index.styles-950213c8.js → index.styles-11eee103.js} +0 -0
- /package/build/{localizeNumberFormat-41a20809.js → localizeNumberFormat-1f5eea48.js} +0 -0
- /package/build/{normalizeLink-1af34455.js → normalizeLink-3049e9d8.js} +0 -0
- /package/build/{number-de289a7f.js → number-dfd2378a.js} +0 -0
- /package/build/{paths-f96f33d2.js → paths-dc29b0a6.js} +0 -0
- /package/build/{shared-369cea41.js → shared-9d4d91f6.js} +0 -0
- /package/build/{translationsContext-9611eb12.js → translationsContext-8aafd4a3.js} +0 -0
- /package/build/{tslib.es6-92eea64c.js → tslib.es6-b0fcf70a.js} +0 -0
- /package/build/{types-0dd528c2.js → types-70861d78.js} +0 -0
- /package/build/{useIsInit-d8fc0852.js → useIsInit-e8548b94.js} +0 -0
- /package/build/{useOutsideClick-d7c36fad.js → useOutsideClick-21f958b0.js} +0 -0
- /package/build/{useScrollbarSize-7578961e.js → useScrollbarSize-029131a9.js} +0 -0
- /package/build/{useUniqueId-2b879de5.js → useUniqueId-5b3003ed.js} +0 -0
- /package/build/{utils-ce4f7c36.js → utils-34b07135.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,58 +1,57 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-3f59f514.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback, forwardRef, useImperativeHandle, memo, useLayoutEffect } from 'react';
|
|
3
|
-
import { createStyles, Box, useMantineTheme, Button as Button$1, Autocomplete, Input as Input$1, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, Flex, clsx, TextInput, NumberInput as NumberInput$1, rem,
|
|
3
|
+
import { createStyles, Box, useMantineTheme, Button as Button$1, Autocomplete, Input as Input$1, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, Flex, clsx, TextInput, NumberInput as NumberInput$1, rem, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import debounce from 'lodash/debounce';
|
|
5
5
|
import { createFormContext, useForm } from '@mantine/form';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-b8cb53e4.js';
|
|
8
8
|
import { getCookie, setCookie } from './miscCookieHelper.js';
|
|
9
|
-
import { u as useTranslations } from './index-
|
|
10
|
-
import { T as TranslationsContext } from './translationsContext-
|
|
11
|
-
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-
|
|
12
|
-
import { T as Text } from './index-
|
|
13
|
-
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-
|
|
14
|
-
import { D as DatePicker } from './index-
|
|
15
|
-
import { B as Button } from './index-
|
|
16
|
-
import './index.styles-
|
|
17
|
-
import { useIntersection } from '@mantine/hooks';
|
|
18
|
-
import './index-
|
|
19
|
-
import { G as GlobalTextStyleNew, C as CustomStylesType, F as FontWeight } from './text-
|
|
20
|
-
import './index-
|
|
21
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
9
|
+
import { u as useTranslations } from './index-16fb3837.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-5a4b038b.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-3d38d074.js';
|
|
12
|
+
import { T as Text } from './index-2ece5e60.js';
|
|
13
|
+
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-aaeff5df.js';
|
|
14
|
+
import { D as DatePicker } from './index-4aabb131.js';
|
|
15
|
+
import { B as Button } from './index-6a3b8fe1.js';
|
|
16
|
+
import './index.styles-e8c64ec4.js';
|
|
17
|
+
import { useIntersection, useScrollLock } from '@mantine/hooks';
|
|
18
|
+
import './index-8b2b6227.js';
|
|
19
|
+
import { G as GlobalTextStyleNew, C as CustomStylesType, F as FontWeight } from './text-71546390.js';
|
|
20
|
+
import './index-1f08df39.js';
|
|
21
|
+
import { M as MAPPED_LOCALE } from './utils-d8c09f05.js';
|
|
22
22
|
import { DateInput } from '@mantine/dates';
|
|
23
|
-
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-
|
|
24
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
25
|
-
import './index-
|
|
26
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-
|
|
27
|
-
import { H as Heading$1 } from './index-
|
|
28
|
-
import { t as translationsMap$1 } from './translationsProvider-
|
|
29
|
-
import { L as LOCALE } from './Locale-
|
|
23
|
+
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-fa5a8cb0.js';
|
|
24
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-f7ece78f.js';
|
|
25
|
+
import './index-7b3c2e4a.js';
|
|
26
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-a6f5e653.js';
|
|
27
|
+
import { H as Heading$1 } from './index-309f547c.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-a1938d53.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-797d59a0.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
32
32
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
33
33
|
import styled from '@emotion/styled';
|
|
34
34
|
import { theme } from './miscTheme.js';
|
|
35
|
-
import { u as useTextStyles, C as ChoiceField, T as TextField, E as ErrorIcon } from './index-
|
|
36
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
37
|
-
import { M as MantineProvider } from './index-
|
|
38
|
-
import { i as isVideo } from './index-
|
|
39
|
-
import {
|
|
35
|
+
import { u as useTextStyles, C as ChoiceField, T as TextField, E as ErrorIcon } from './index-588b7b32.js';
|
|
36
|
+
import { T as TogetherComponentGlobalContext } from './utils-da9cabcd.js';
|
|
37
|
+
import { M as MantineProvider } from './index-f04cfd7a.js';
|
|
38
|
+
import { i as isVideo } from './index-e2fd63e4.js';
|
|
39
|
+
import { u as useScreenSize } from './index-144373bb.js';
|
|
40
40
|
import { motion } from 'framer-motion';
|
|
41
41
|
import { createPortal } from 'react-dom';
|
|
42
42
|
import { ChevronDown } from '@hhgtech/icons/arrow';
|
|
43
43
|
import { MapPin } from '@hhgtech/icons/core';
|
|
44
|
-
import { I as InputDate } from './InputDate-
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import { D as DrawerComponent } from './index-5fa5f1e7.js';
|
|
48
|
-
import { C as Close } from './Close-94578d3a.js';
|
|
44
|
+
import { I as InputDate } from './InputDate-b3d673ed.js';
|
|
45
|
+
import { D as DrawerComponent } from './index-ad64b390.js';
|
|
46
|
+
import { C as Close } from './Close-534673a4.js';
|
|
49
47
|
import './constantsIsProduction.js';
|
|
50
|
-
import './normalizeLink-
|
|
48
|
+
import './normalizeLink-8e7f5e69.js';
|
|
51
49
|
import '@hhgtech/icons/other';
|
|
50
|
+
import '@mantine/carousel';
|
|
52
51
|
import 'classnames';
|
|
53
|
-
import './useUniqueId-
|
|
52
|
+
import './useUniqueId-e4563340.js';
|
|
54
53
|
import './constantsSite.js';
|
|
55
|
-
import './shared-
|
|
54
|
+
import './shared-76a970fb.js';
|
|
56
55
|
import '@mantine/notifications';
|
|
57
56
|
import 'date-fns/locale';
|
|
58
57
|
import './constantsRiskScreener.js';
|
|
@@ -69,12 +68,11 @@ import './i18n-values/vi-VN_MB.js';
|
|
|
69
68
|
import './i18n-values/zh-SG.js';
|
|
70
69
|
import './i18n-values/zh-TW.js';
|
|
71
70
|
import '@emotion/react';
|
|
72
|
-
import './index-
|
|
71
|
+
import './index-73231da6.js';
|
|
73
72
|
import 'slugify';
|
|
74
73
|
import 'string-format';
|
|
75
74
|
import './togetherApiPaths.js';
|
|
76
|
-
import './constants-
|
|
77
|
-
import './constants-96aba134.js';
|
|
75
|
+
import './constants-b2772dfd.js';
|
|
78
76
|
import 'vaul';
|
|
79
77
|
|
|
80
78
|
const LeadGenComponentContext = createContext({});
|
|
@@ -935,7 +933,7 @@ const Description = (_a) => {
|
|
|
935
933
|
|
|
936
934
|
const LeadGenContext$1 = createContext({});
|
|
937
935
|
|
|
938
|
-
var useStyles$
|
|
936
|
+
var useStyles$2 = createStyles(() => {
|
|
939
937
|
return {
|
|
940
938
|
control: {},
|
|
941
939
|
};
|
|
@@ -998,7 +996,7 @@ const TitleBlock$1 = ({ children, align, }) => (React__default.createElement("h2
|
|
|
998
996
|
|
|
999
997
|
const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, styles, classNames, popoverProps, }) => {
|
|
1000
998
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
1001
|
-
const { classes, cx } = useStyles$
|
|
999
|
+
const { classes, cx } = useStyles$2(undefined, {
|
|
1002
1000
|
name: 'LeadGen__Field',
|
|
1003
1001
|
styles,
|
|
1004
1002
|
classNames,
|
|
@@ -1086,7 +1084,7 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1086
1084
|
})));
|
|
1087
1085
|
};
|
|
1088
1086
|
|
|
1089
|
-
var useStyles$
|
|
1087
|
+
var useStyles$1 = createStyles((theme) => {
|
|
1090
1088
|
return {
|
|
1091
1089
|
root: {},
|
|
1092
1090
|
header: {},
|
|
@@ -1116,7 +1114,7 @@ const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps,
|
|
|
1116
1114
|
const { listBlockAdded, leadFormConfig: { form, validateObj }, validatingEmailRef, validatingPhoneRef,
|
|
1117
1115
|
// formRef,
|
|
1118
1116
|
setFormRef, onClose, onOtherSubmit, actionBlocks, locale, setShowOtpPhone, onSubmit, } = useContext(LeadGenComponentContext);
|
|
1119
|
-
const { classes, cx } = useStyles$
|
|
1117
|
+
const { classes, cx } = useStyles$1(undefined, {
|
|
1120
1118
|
name: 'LeadGen__FormComponent',
|
|
1121
1119
|
styles,
|
|
1122
1120
|
classNames,
|
|
@@ -1210,7 +1208,7 @@ const Form = (props) => {
|
|
|
1210
1208
|
return showThankyou || showOtpPhone ? null : React__default.createElement(FormComponent, Object.assign({}, props));
|
|
1211
1209
|
};
|
|
1212
1210
|
|
|
1213
|
-
var useStyles
|
|
1211
|
+
var useStyles = createStyles(() => {
|
|
1214
1212
|
return {
|
|
1215
1213
|
root: {},
|
|
1216
1214
|
header: {},
|
|
@@ -1235,7 +1233,7 @@ const OtpBlockComponent = ({ otpData, onSuccess, autoSendWhenOpen, className, st
|
|
|
1235
1233
|
const [displayPhone, setDisplayPhone] = useState('');
|
|
1236
1234
|
const formatPhoneNumberIntlRef = useRef();
|
|
1237
1235
|
const [isSubmitLoading, setIsSubmitLoading] = useState(false);
|
|
1238
|
-
const { classes, cx } = useStyles
|
|
1236
|
+
const { classes, cx } = useStyles(undefined, {
|
|
1239
1237
|
name: 'LeadGen__OTP',
|
|
1240
1238
|
styles,
|
|
1241
1239
|
classNames,
|
|
@@ -1404,9 +1402,6 @@ var enPH = {
|
|
|
1404
1402
|
"lead.empty.title": "Oops, seem your information is empty, do you want to submit the information again?",
|
|
1405
1403
|
"lead.empty.cancel": "Cancel",
|
|
1406
1404
|
"lead.empty.submitAgain": "Submit again",
|
|
1407
|
-
"inlineFreebie.freeSample.title": "Free Sample",
|
|
1408
|
-
"inlineFreebie.luckyDrawGift.title": "Lucky-draw Gift",
|
|
1409
|
-
"inlineFreebie.value": "Value",
|
|
1410
1405
|
"common.day": "Day",
|
|
1411
1406
|
"common.month": "Month",
|
|
1412
1407
|
"common.year": "Year"
|
|
@@ -1430,9 +1425,6 @@ var hiIN = {
|
|
|
1430
1425
|
"lead.empty.title": "ऊप्स! लगता है आपकी जानकारी खाली है। क्या आप जानकारी फिर से सबमिट करना चाहते हैं?",
|
|
1431
1426
|
"lead.empty.cancel": "रद्द करें",
|
|
1432
1427
|
"lead.empty.submitAgain": "फिर से सबमिट करें",
|
|
1433
|
-
"inlineFreebie.freeSample.title": "मुफ्त नमूना",
|
|
1434
|
-
"inlineFreebie.luckyDrawGift.title": "लकी-ड्रा गिफ्ट",
|
|
1435
|
-
"inlineFreebie.value": "मूल्य",
|
|
1436
1428
|
"common.day": "साल",
|
|
1437
1429
|
"common.month": "महीना",
|
|
1438
1430
|
"common.year": ""
|
|
@@ -1458,9 +1450,6 @@ var idID = {
|
|
|
1458
1450
|
"lead.empty.title": "Oops, sepertinya informasi Anda kosong. Apakah Anda ingin mengirimkan informasi lagi?",
|
|
1459
1451
|
"lead.empty.cancel": "Batal",
|
|
1460
1452
|
"lead.empty.submitAgain": "Kirim lagi",
|
|
1461
|
-
"inlineFreebie.freeSample.title": "Sampel Gratis",
|
|
1462
|
-
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1463
|
-
"inlineFreebie.value": "Nilai",
|
|
1464
1453
|
"common.day": "Hari",
|
|
1465
1454
|
"common.month": "Bulan",
|
|
1466
1455
|
"common.year": "Tahun"
|
|
@@ -1486,9 +1475,6 @@ var kmKH = {
|
|
|
1486
1475
|
"lead.empty.title": "អូុបស! ហាក់ដូចជាព័ត៌មានរបស់អ្នកទទេ។ តើអ្នកចង់ដាក់ស្នើព័ត៌មានម្តងទៀតទេ?",
|
|
1487
1476
|
"lead.empty.cancel": "លុបចោល",
|
|
1488
1477
|
"lead.empty.submitAgain": "ដាក់ស្នើម្ដងទៀត",
|
|
1489
|
-
"inlineFreebie.freeSample.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1490
|
-
"inlineFreebie.luckyDrawGift.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1491
|
-
"inlineFreebie.value": "តម្លៃ",
|
|
1492
1478
|
"common.day": "ឆ្នាំ",
|
|
1493
1479
|
"common.month": "ខែ",
|
|
1494
1480
|
"common.year": "ថ្ងៃ"
|
|
@@ -1514,9 +1500,6 @@ var msMY = {
|
|
|
1514
1500
|
"lead.empty.title": "Oops, nampaknya maklumat anda kosong. Adakah anda ingin menghantar maklumat semula?",
|
|
1515
1501
|
"lead.empty.cancel": "Batal",
|
|
1516
1502
|
"lead.empty.submitAgain": "Hantar semula",
|
|
1517
|
-
"inlineFreebie.freeSample.title": "Sampel Percuma",
|
|
1518
|
-
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1519
|
-
"inlineFreebie.value": "Nilai",
|
|
1520
1503
|
"common.day": "Hari",
|
|
1521
1504
|
"common.month": "Bulan",
|
|
1522
1505
|
"common.year": "Tahun"
|
|
@@ -1542,9 +1525,6 @@ var myMM = {
|
|
|
1542
1525
|
"lead.empty.title": "အုပ်စ်! သင့်အချက်အလက်သည် ဗလာဖြစ်နေသလိုဖြစ်သည်။ ထပ်မံတင်သွင်းလိုပါသလား?",
|
|
1543
1526
|
"lead.empty.cancel": "မလုပ်ဆောင်ပါ",
|
|
1544
1527
|
"lead.empty.submitAgain": "ထပ်မံတင်သွင်းပါ",
|
|
1545
|
-
"inlineFreebie.freeSample.title": "အခမဲ့အစားအစာ",
|
|
1546
|
-
"inlineFreebie.luckyDrawGift.title": "အခမဲ့အစားအစာ",
|
|
1547
|
-
"inlineFreebie.value": "တန်ဖိုး",
|
|
1548
1528
|
"common.day": "ရက်",
|
|
1549
1529
|
"common.month": "လ",
|
|
1550
1530
|
"common.year": "နှစ်"
|
|
@@ -1570,9 +1550,6 @@ var thTH = {
|
|
|
1570
1550
|
"lead.empty.title": "อุ๊ปส์! ดูเหมือนว่าข้อมูลของคุณว่างเปล่า คุณต้องการส่งข้อมูลอีกครั้งหรือไม่?",
|
|
1571
1551
|
"lead.empty.cancel": "ยกเลิก",
|
|
1572
1552
|
"lead.empty.submitAgain": "ส่งอีกครั้ง",
|
|
1573
|
-
"inlineFreebie.freeSample.title": "ตัวอย่างฟรี",
|
|
1574
|
-
"inlineFreebie.luckyDrawGift.title": "ของรางวัลที่ถูกรางวัล",
|
|
1575
|
-
"inlineFreebie.value": "ค่า",
|
|
1576
1553
|
"common.day": "วัน",
|
|
1577
1554
|
"common.month": "เดือน",
|
|
1578
1555
|
"common.year": "ปี"
|
|
@@ -1609,9 +1586,6 @@ var viVN = {
|
|
|
1609
1586
|
"lead.empty.title": "Oops, có vẻ như thông tin của bạn đang trống. Bạn có muốn gửi lại thông tin không?",
|
|
1610
1587
|
"lead.empty.cancel": "Hủy",
|
|
1611
1588
|
"lead.empty.submitAgain": "Gửi lại",
|
|
1612
|
-
"inlineFreebie.freeSample.title": "Dùng thử miễn phí",
|
|
1613
|
-
"inlineFreebie.luckyDrawGift.title": "Phần thưởng may mắn",
|
|
1614
|
-
"inlineFreebie.value": "Trị giá",
|
|
1615
1589
|
"common.day": "Ngày",
|
|
1616
1590
|
"common.month": "Tháng",
|
|
1617
1591
|
"common.year": "Năm"
|
|
@@ -1637,9 +1611,6 @@ var zhTW = {
|
|
|
1637
1611
|
"lead.empty.title": "哎呀,您的資訊似乎是空的,您想要重新提交資訊嗎?",
|
|
1638
1612
|
"lead.empty.cancel": "取消",
|
|
1639
1613
|
"lead.empty.submitAgain": "重新提交",
|
|
1640
|
-
"inlineFreebie.freeSample.title": "免費試用",
|
|
1641
|
-
"inlineFreebie.luckyDrawGift.title": "幸運抽獎禮品",
|
|
1642
|
-
"inlineFreebie.value": "價值",
|
|
1643
1614
|
"common.day": "日",
|
|
1644
1615
|
"common.month": "月",
|
|
1645
1616
|
"common.year": "年"
|
|
@@ -3297,6 +3268,26 @@ const FloatingLayout = ({ popupId, url, title, urlText, titleAlign, subtitle, su
|
|
|
3297
3268
|
React__default.createElement(CloseButton, { onClose: onClose, containerClassName: "close-button-top-right" }))))));
|
|
3298
3269
|
};
|
|
3299
3270
|
|
|
3271
|
+
function isMac() {
|
|
3272
|
+
return testPlatform(/^Mac/);
|
|
3273
|
+
}
|
|
3274
|
+
function isIPhone() {
|
|
3275
|
+
return testPlatform(/^iPhone/);
|
|
3276
|
+
}
|
|
3277
|
+
function isIPad() {
|
|
3278
|
+
return (testPlatform(/^iPad/) ||
|
|
3279
|
+
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
3280
|
+
(isMac() && navigator.maxTouchPoints > 1));
|
|
3281
|
+
}
|
|
3282
|
+
function isIOS() {
|
|
3283
|
+
return isIPhone() || isIPad();
|
|
3284
|
+
}
|
|
3285
|
+
function testPlatform(re) {
|
|
3286
|
+
return typeof window !== 'undefined' && window.navigator != null
|
|
3287
|
+
? re.test(window.navigator.platform)
|
|
3288
|
+
: undefined;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3300
3291
|
function useScrollTo() {
|
|
3301
3292
|
const scrollTo = useCallback((element, to, duration = 500) => {
|
|
3302
3293
|
if (!element)
|
|
@@ -3320,35 +3311,6 @@ function useScrollTo() {
|
|
|
3320
3311
|
return scrollTo;
|
|
3321
3312
|
}
|
|
3322
3313
|
|
|
3323
|
-
const useViewportDimensions = () => {
|
|
3324
|
-
const dimensionsRef = useRef({ width: 0, height: 0 });
|
|
3325
|
-
const [dimensions, setDimensions] = useState(() => ({
|
|
3326
|
-
width: window.screen.availWidth,
|
|
3327
|
-
height: window.screen.availHeight,
|
|
3328
|
-
}));
|
|
3329
|
-
useEffect(() => {
|
|
3330
|
-
var _a;
|
|
3331
|
-
function visualViewport(e) {
|
|
3332
|
-
if (dimensionsRef.current.width === e.target.width &&
|
|
3333
|
-
dimensionsRef.current.height === e.target.height) {
|
|
3334
|
-
return;
|
|
3335
|
-
}
|
|
3336
|
-
const newDimensions = {
|
|
3337
|
-
width: e.target.width,
|
|
3338
|
-
height: e.target.height,
|
|
3339
|
-
};
|
|
3340
|
-
dimensionsRef.current = newDimensions;
|
|
3341
|
-
setDimensions(newDimensions);
|
|
3342
|
-
}
|
|
3343
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3344
|
-
return () => {
|
|
3345
|
-
var _a;
|
|
3346
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3347
|
-
};
|
|
3348
|
-
}, []);
|
|
3349
|
-
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3350
|
-
};
|
|
3351
|
-
|
|
3352
3314
|
// Default handling for Safari & Chrome
|
|
3353
3315
|
function useViewportPushedByKeyboard(threshold = 20) {
|
|
3354
3316
|
const ref = useRef(null);
|
|
@@ -3393,25 +3355,102 @@ function useKeyboardOpen(isAndroid = false) {
|
|
|
3393
3355
|
return keyOpen;
|
|
3394
3356
|
}
|
|
3395
3357
|
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3358
|
+
const useFocusFieldOnDevice = (isMobile, isEnable, gapToCheckAvai = 0) => {
|
|
3359
|
+
const isIos = isIOS();
|
|
3360
|
+
const popupContentRef = useRef(null);
|
|
3361
|
+
const { isPushed, bottomRef } = useViewportPushedByKeyboard();
|
|
3362
|
+
const [bottomSpacing, setBottomSpacing] = useState(0);
|
|
3363
|
+
const [isScrolling, setIsScrolling] = useState(false);
|
|
3364
|
+
const keyOpen = useKeyboardOpen();
|
|
3365
|
+
const isPushedRef = useRef(isPushed);
|
|
3366
|
+
const keyOpenRef = useRef(keyOpen);
|
|
3367
|
+
const bottomSpacingRef = useRef(bottomSpacing);
|
|
3368
|
+
const isScrollingRef = useRef(false);
|
|
3369
|
+
const gapBottomSpace = useRef(40);
|
|
3370
|
+
const initialHeight = useRef(0);
|
|
3371
|
+
const scrollTo = useScrollTo();
|
|
3372
|
+
const handlePopupContentScroll = (formRef) => {
|
|
3373
|
+
if (!isScrollingRef.current && !!(formRef === null || formRef === void 0 ? void 0 : formRef.target)) {
|
|
3374
|
+
const focusableElements = formRef.target.querySelectorAll('input, textarea, select, button, [tabindex]:not([tabindex="-1"])');
|
|
3375
|
+
focusableElements.forEach((el) => {
|
|
3376
|
+
if (el === document.activeElement) {
|
|
3377
|
+
el.blur();
|
|
3378
|
+
}
|
|
3379
|
+
});
|
|
3380
|
+
}
|
|
3381
|
+
};
|
|
3382
|
+
const handleFocus = (e) => {
|
|
3383
|
+
if (!isMobile || !isIos || !isEnable)
|
|
3384
|
+
return;
|
|
3385
|
+
setTimeout(() => {
|
|
3386
|
+
var _a, _b;
|
|
3387
|
+
if (!isPushedRef.current &&
|
|
3388
|
+
keyOpenRef.current &&
|
|
3389
|
+
popupContentRef.current) {
|
|
3390
|
+
const input = e.target;
|
|
3391
|
+
const rect = input.getBoundingClientRect();
|
|
3392
|
+
const inputHeight = rect.height;
|
|
3393
|
+
const inputTop = rect.top;
|
|
3394
|
+
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3395
|
+
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
3396
|
+
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
3397
|
+
const currentScrollY = popupContentRef.current.scrollTop;
|
|
3398
|
+
const viewPort = (isErrorDevice
|
|
3399
|
+
? window.innerHeight * 0.4
|
|
3400
|
+
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height) - gapToCheckAvai;
|
|
3401
|
+
if (currentTop >= viewPort) {
|
|
3402
|
+
const gap = currentTop - viewPort;
|
|
3403
|
+
const targetScrollY = currentScrollY + gap;
|
|
3404
|
+
if (!isNaN(targetScrollY)) {
|
|
3405
|
+
setIsScrolling(true);
|
|
3406
|
+
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
3407
|
+
setTimeout(() => {
|
|
3408
|
+
setIsScrolling(false);
|
|
3409
|
+
}, 500);
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
}, 300);
|
|
3414
|
+
};
|
|
3415
|
+
useEffect(() => {
|
|
3416
|
+
initialHeight.current = window.innerHeight;
|
|
3417
|
+
}, []);
|
|
3418
|
+
useEffect(() => {
|
|
3419
|
+
isPushedRef.current = isPushed;
|
|
3420
|
+
}, [isPushed]);
|
|
3421
|
+
useEffect(() => {
|
|
3422
|
+
keyOpenRef.current = keyOpen;
|
|
3423
|
+
}, [keyOpen]);
|
|
3424
|
+
useEffect(() => {
|
|
3425
|
+
bottomSpacingRef.current = bottomSpacing;
|
|
3426
|
+
}, [bottomSpacing]);
|
|
3427
|
+
useEffect(() => {
|
|
3428
|
+
setBottomSpacing(isMobile && isIos && isEnable
|
|
3429
|
+
? !isPushed && keyOpen
|
|
3430
|
+
? (() => {
|
|
3431
|
+
var _a;
|
|
3432
|
+
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3433
|
+
const isErrorDevice = visualHeight === initialHeight.current;
|
|
3434
|
+
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
3435
|
+
})()
|
|
3436
|
+
: 0
|
|
3437
|
+
: 0);
|
|
3438
|
+
}, [isPushed, keyOpen, isMobile, isIos, isEnable]);
|
|
3439
|
+
useEffect(() => {
|
|
3440
|
+
isScrollingRef.current = isScrolling;
|
|
3441
|
+
}, [isScrolling]);
|
|
3442
|
+
return {
|
|
3443
|
+
popupContentRef,
|
|
3444
|
+
bottomRef,
|
|
3445
|
+
bottomStyle: {
|
|
3446
|
+
height: `${bottomSpacing}px`,
|
|
3447
|
+
width: '100%',
|
|
3448
|
+
transition: 'height .2s ease',
|
|
3449
|
+
},
|
|
3450
|
+
handleFocus,
|
|
3451
|
+
handlePopupContentScroll,
|
|
3452
|
+
};
|
|
3453
|
+
};
|
|
3415
3454
|
|
|
3416
3455
|
function chain(...callbacks) {
|
|
3417
3456
|
return (...args) => {
|
|
@@ -3668,6 +3707,35 @@ function isInput(target) {
|
|
|
3668
3707
|
(target instanceof HTMLElement && target.isContentEditable));
|
|
3669
3708
|
}
|
|
3670
3709
|
|
|
3710
|
+
const useViewportDimensions = () => {
|
|
3711
|
+
const dimensionsRef = useRef({ width: 0, height: 0 });
|
|
3712
|
+
const [dimensions, setDimensions] = useState(() => ({
|
|
3713
|
+
width: window.screen.availWidth,
|
|
3714
|
+
height: window.screen.availHeight,
|
|
3715
|
+
}));
|
|
3716
|
+
useEffect(() => {
|
|
3717
|
+
var _a;
|
|
3718
|
+
function visualViewport(e) {
|
|
3719
|
+
if (dimensionsRef.current.width === e.target.width &&
|
|
3720
|
+
dimensionsRef.current.height === e.target.height) {
|
|
3721
|
+
return;
|
|
3722
|
+
}
|
|
3723
|
+
const newDimensions = {
|
|
3724
|
+
width: e.target.width,
|
|
3725
|
+
height: e.target.height,
|
|
3726
|
+
};
|
|
3727
|
+
dimensionsRef.current = newDimensions;
|
|
3728
|
+
setDimensions(newDimensions);
|
|
3729
|
+
}
|
|
3730
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3731
|
+
return () => {
|
|
3732
|
+
var _a;
|
|
3733
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3734
|
+
};
|
|
3735
|
+
}, []);
|
|
3736
|
+
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3737
|
+
};
|
|
3738
|
+
|
|
3671
3739
|
const StyledLeadGenLightBoxBFooter = styled.div `
|
|
3672
3740
|
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3673
3741
|
padding-inline: var(--spacing-x, 20px);
|
|
@@ -4298,7 +4366,7 @@ const StyledFormContainer = styled.div `
|
|
|
4298
4366
|
*
|
|
4299
4367
|
*/
|
|
4300
4368
|
const FormContainer = (_a) => {
|
|
4301
|
-
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer } = _a, restProps = __rest(_a, ["iconComponent", "title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "header", "footer"]);
|
|
4369
|
+
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer, isLightBoxA, bottomStyle, popupContentRef, handlePopupContentScroll } = _a, restProps = __rest(_a, ["iconComponent", "title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "header", "footer", "isLightBoxA", "bottomStyle", "popupContentRef", "handlePopupContentScroll"]);
|
|
4302
4370
|
const HeaderContent = (React__default.createElement("div", { className: "leadgen-form_header" },
|
|
4303
4371
|
iconComponent,
|
|
4304
4372
|
React__default.createElement(Text, { as: "h2", size: 'h4', variant: "primary", weight: 'semiBold', className: "leadgen-title", "data-align": titleAlign }, title),
|
|
@@ -4308,13 +4376,13 @@ const FormContainer = (_a) => {
|
|
|
4308
4376
|
}
|
|
4309
4377
|
return (React__default.createElement(StyledFormContainer, Object.assign({ className: clsx(className, 'leadgen-form_container'), style: style }, restProps),
|
|
4310
4378
|
React__default.createElement("div", { className: "leadgen-form_wrapper" },
|
|
4311
|
-
|
|
4379
|
+
header ? (React__default.createElement("div", { className: "leadgen-form_scrollable", ref: popupContentRef, onScroll: handlePopupContentScroll },
|
|
4312
4380
|
header,
|
|
4313
4381
|
HeaderContent,
|
|
4314
|
-
React__default.createElement("div", { className: "leadgen-form_body" }, children)
|
|
4315
|
-
|
|
4382
|
+
React__default.createElement("div", { className: "leadgen-form_body" }, children),
|
|
4383
|
+
isLightBoxA && React__default.createElement("div", { style: bottomStyle }))) : (React__default.createElement(React__default.Fragment, null,
|
|
4316
4384
|
HeaderContent,
|
|
4317
|
-
React__default.createElement("div", { className: "leadgen-form_body" }, children))),
|
|
4385
|
+
React__default.createElement("div", { className: "leadgen-form_body", ref: popupContentRef, onScroll: handlePopupContentScroll }, children))),
|
|
4318
4386
|
React__default.createElement("div", { className: "leadgen-form_footer" }, footer))));
|
|
4319
4387
|
};
|
|
4320
4388
|
|
|
@@ -4468,215 +4536,6 @@ const OtpBlock = ({ otpData, onSuccess, autoSendWhenOpen, }) => {
|
|
|
4468
4536
|
} }))))));
|
|
4469
4537
|
};
|
|
4470
4538
|
|
|
4471
|
-
const Gift = ({ className, style }) => {
|
|
4472
|
-
return (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
4473
|
-
React__default.createElement("path", { d: "M15.8337 9.16675V15.8334C15.8337 17.0612 14.8392 18.0556 13.6114 18.0556H6.38921C5.16144 18.0556 4.16699 17.0612 4.16699 15.8334V9.16675", fill: "#FEC7DC" }),
|
|
4474
|
-
React__default.createElement("path", { d: "M10 5.83337V18.0556", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4475
|
-
React__default.createElement("path", { d: "M4.16699 3.8889C4.16699 2.81557 5.0381 1.94446 6.11144 1.94446C8.9881 1.94446 10.0003 5.83335 10.0003 5.83335H6.11144C5.0381 5.83335 4.16699 4.96224 4.16699 3.8889Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4476
|
-
React__default.createElement("path", { d: "M13.8889 5.83335H10C10 5.83335 11.0122 1.94446 13.8889 1.94446C14.9622 1.94446 15.8333 2.81557 15.8333 3.8889C15.8333 4.96224 14.9622 5.83335 13.8889 5.83335Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4477
|
-
React__default.createElement("path", { d: "M15.8337 9.16675V15.8334C15.8337 17.0612 14.8392 18.0556 13.6114 18.0556H6.38921C5.16144 18.0556 4.16699 17.0612 4.16699 15.8334V9.16675", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4478
|
-
React__default.createElement("path", { d: "M16.9443 5.83337H3.05545C2.4418 5.83337 1.94434 6.33084 1.94434 6.94449V8.0556C1.94434 8.66924 2.4418 9.16671 3.05545 9.16671H16.9443C17.558 9.16671 18.0554 8.66924 18.0554 8.0556V6.94449C18.0554 6.33084 17.558 5.83337 16.9443 5.83337Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
4479
|
-
};
|
|
4480
|
-
|
|
4481
|
-
const Star = ({ className, style }) => {
|
|
4482
|
-
return (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
4483
|
-
React__default.createElement("path", { d: "M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z", fill: "#91CAFF" }),
|
|
4484
|
-
React__default.createElement("path", { d: "M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4485
|
-
React__default.createElement("path", { d: "M2.22168 17.7777L5.55501 14.4443", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4486
|
-
React__default.createElement("path", { d: "M1.94434 13.611L2.49989 13.0554", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4487
|
-
React__default.createElement("path", { d: "M6.38867 18.0556L6.94423 17.5", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
4488
|
-
};
|
|
4489
|
-
|
|
4490
|
-
const StyledFreebieCarouselTitle = styled.div `
|
|
4491
|
-
display: flex;
|
|
4492
|
-
align-items: center;
|
|
4493
|
-
gap: ${rem(8)};
|
|
4494
|
-
margin-bottom: ${rem(16)};
|
|
4495
|
-
`;
|
|
4496
|
-
var useStyles = createStyles((theme) => ({
|
|
4497
|
-
indicators: {
|
|
4498
|
-
bottom: 0,
|
|
4499
|
-
gap: rem(4),
|
|
4500
|
-
},
|
|
4501
|
-
indicator: {
|
|
4502
|
-
width: rem(5),
|
|
4503
|
-
height: rem(5),
|
|
4504
|
-
borderRadius: '100%',
|
|
4505
|
-
background: theme.colors.neutral[2],
|
|
4506
|
-
opacity: 1,
|
|
4507
|
-
'&[data-active]': {
|
|
4508
|
-
backgroundColor: theme.fn.primaryColor(),
|
|
4509
|
-
},
|
|
4510
|
-
},
|
|
4511
|
-
container: {
|
|
4512
|
-
padding: `0 0 ${rem(21)} 0`,
|
|
4513
|
-
},
|
|
4514
|
-
root: {
|
|
4515
|
-
marginBottom: rem(16),
|
|
4516
|
-
},
|
|
4517
|
-
}));
|
|
4518
|
-
|
|
4519
|
-
const StyledFreebiesCard = styled.div `
|
|
4520
|
-
display: flex;
|
|
4521
|
-
flex-direction: column;
|
|
4522
|
-
border-radius: ${rem(16)};
|
|
4523
|
-
box-shadow: 0px 32px 32px -16px rgba(0, 0, 0, 0.04),
|
|
4524
|
-
0px 6px 6px -3px rgba(0, 0, 0, 0.04), 0px 3px 3px -1.5px rgba(0, 0, 0, 0.04),
|
|
4525
|
-
0px 1px 1px -0.5px rgba(0, 0, 0, 0.04);
|
|
4526
|
-
background-color: ${theme.colors.white};
|
|
4527
|
-
|
|
4528
|
-
.mantine-AspectRatio-root {
|
|
4529
|
-
width: 100%;
|
|
4530
|
-
|
|
4531
|
-
img {
|
|
4532
|
-
border-radius: ${rem(16)} ${rem(16)} 0 0;
|
|
4533
|
-
margin: 0;
|
|
4534
|
-
}
|
|
4535
|
-
}
|
|
4536
|
-
|
|
4537
|
-
.mantine-Badge-root {
|
|
4538
|
-
height: fit-content;
|
|
4539
|
-
width: fit-content;
|
|
4540
|
-
position: absolute;
|
|
4541
|
-
padding: ${rem(4)} ${rem(8)};
|
|
4542
|
-
border-radius: ${rem(8)};
|
|
4543
|
-
bottom: ${rem(12)};
|
|
4544
|
-
left: ${rem(12)};
|
|
4545
|
-
|
|
4546
|
-
.mantine-Text-root {
|
|
4547
|
-
line-height: ${rem(12)};
|
|
4548
|
-
}
|
|
4549
|
-
|
|
4550
|
-
background-color: #00000080;
|
|
4551
|
-
}
|
|
4552
|
-
`;
|
|
4553
|
-
const StyledImageWrap = styled.div `
|
|
4554
|
-
width: 100%;
|
|
4555
|
-
height: 100%;
|
|
4556
|
-
position: relative;
|
|
4557
|
-
`;
|
|
4558
|
-
|
|
4559
|
-
const FreebieLuckyGiftItem = ({ isHostedByClient, locale, data: { image, name, desc, prize_value, prize_unit, cta_button, winning_slot, }, }) => {
|
|
4560
|
-
const { t } = useTranslations();
|
|
4561
|
-
console.log(prize_value, prize_unit, locale);
|
|
4562
|
-
const formattedPrice = prize_value && prize_unit
|
|
4563
|
-
? currencyFormat(prize_value, locale, prize_unit)
|
|
4564
|
-
: '';
|
|
4565
|
-
return (React__default.createElement(StyledFreebiesCard, null,
|
|
4566
|
-
React__default.createElement(StyledImageWrap, null,
|
|
4567
|
-
React__default.createElement(AspectRatio, { ratio: 3 / 2 },
|
|
4568
|
-
React__default.createElement(ImageWrap, { src: image, alt: name || '' })),
|
|
4569
|
-
winning_slot > 0 && (React__default.createElement(Badge, null,
|
|
4570
|
-
React__default.createElement(Text, { size: "c2", color: theme.colors.white },
|
|
4571
|
-
winning_slot,
|
|
4572
|
-
" SLOTS")))),
|
|
4573
|
-
React__default.createElement(Box, { p: "12px" },
|
|
4574
|
-
React__default.createElement(Tooltip, { label: name, position: "top", withArrow: true },
|
|
4575
|
-
React__default.createElement(Text, { lineClamp: 2, size: "title2", mb: rem(4), style: { height: rem(48) } }, name)),
|
|
4576
|
-
React__default.createElement(Tooltip, { label: desc, position: "top", withArrow: true },
|
|
4577
|
-
React__default.createElement(Text, { lineClamp: 2, size: "p3", mb: rem(16), style: { height: rem(40) } }, desc)),
|
|
4578
|
-
React__default.createElement(Text, { size: "p3", fw: 500 },
|
|
4579
|
-
React__default.createElement(Text, { as: "span" },
|
|
4580
|
-
t('inlineFreebie.value'),
|
|
4581
|
-
" "),
|
|
4582
|
-
React__default.createElement(Text, { as: "span", color: theme.colors.primaryBase }, formattedPrice)),
|
|
4583
|
-
isHostedByClient && (React__default.createElement(Button, { className: "inline-freebie-button" },
|
|
4584
|
-
React__default.createElement(Text, { size: "p2" }, cta_button))))));
|
|
4585
|
-
};
|
|
4586
|
-
const FreebieFreeSampleItem = ({ data: { image, name, desc, cta_button }, }) => (React__default.createElement(StyledFreebiesCard, null,
|
|
4587
|
-
React__default.createElement(AspectRatio, { ratio: 3 / 2 },
|
|
4588
|
-
React__default.createElement(ImageWrap, { src: image, alt: name || '' })),
|
|
4589
|
-
React__default.createElement(Box, { p: "12px" },
|
|
4590
|
-
React__default.createElement(Tooltip, { label: name, position: "top", withArrow: true },
|
|
4591
|
-
React__default.createElement(Text, { lineClamp: 2, size: "title2", mb: rem(4), style: { height: rem(48) } }, name)),
|
|
4592
|
-
React__default.createElement(Tooltip, { label: desc, position: "top", withArrow: true },
|
|
4593
|
-
React__default.createElement(Text, { lineClamp: 3, size: "p3", style: { height: rem(60) } }, desc)),
|
|
4594
|
-
React__default.createElement(Button, { className: "lucky-gift-button inline-freebie-button" },
|
|
4595
|
-
React__default.createElement(Text, { size: "p2" }, cta_button)))));
|
|
4596
|
-
|
|
4597
|
-
var EHostedBy;
|
|
4598
|
-
(function (EHostedBy) {
|
|
4599
|
-
EHostedBy["CLIENT"] = "CLIENT";
|
|
4600
|
-
EHostedBy["HHG"] = "HHG";
|
|
4601
|
-
})(EHostedBy || (EHostedBy = {}));
|
|
4602
|
-
var EFreebieType;
|
|
4603
|
-
(function (EFreebieType) {
|
|
4604
|
-
EFreebieType["SAMPLE"] = "SAMPLE";
|
|
4605
|
-
EFreebieType["LUCKY_DRAW"] = "LUCKY_DRAW";
|
|
4606
|
-
})(EFreebieType || (EFreebieType = {}));
|
|
4607
|
-
|
|
4608
|
-
const FreebieCarousel = ({ isHostedByClient, data, locale, }) => {
|
|
4609
|
-
const { classes } = useStyles(undefined, {
|
|
4610
|
-
name: 'Carousel',
|
|
4611
|
-
});
|
|
4612
|
-
const { t } = useTranslations();
|
|
4613
|
-
const freeSample = data.filter((item) => item.type === EFreebieType.SAMPLE);
|
|
4614
|
-
const luckyGift = data.filter((item) => item.type === EFreebieType.LUCKY_DRAW);
|
|
4615
|
-
const isHasLuckyGift = luckyGift.length > 0;
|
|
4616
|
-
const isHasFreeSample = freeSample.length > 0;
|
|
4617
|
-
const isHasLuckyGiftMoreThanOne = luckyGift.length > 1;
|
|
4618
|
-
const isHasFreeSampleMoreThanOne = freeSample.length > 1;
|
|
4619
|
-
const luckyGiftCtaButton = luckyGift[0].cta_button;
|
|
4620
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
4621
|
-
isHasLuckyGift && (React__default.createElement(React__default.Fragment, null,
|
|
4622
|
-
React__default.createElement(StyledFreebieCarouselTitle, null,
|
|
4623
|
-
React__default.createElement(Gift, null),
|
|
4624
|
-
React__default.createElement(Text, { size: "title2", color: theme.colors.pink800 }, t('inlineFreebie.freeSample.title'))),
|
|
4625
|
-
React__default.createElement(Carousel, { slideSize: isHasFreeSampleMoreThanOne ? rem(262) : rem(355), slideGap: rem(12), align: "start", withControls: false, withIndicators: isHasFreeSampleMoreThanOne, classNames: Object.assign({}, classes) }, freeSample.map((item) => (React__default.createElement(Carousel.Slide, { key: `${item.type}-${item.product_code}` },
|
|
4626
|
-
React__default.createElement(FreebieFreeSampleItem, { data: item }))))))),
|
|
4627
|
-
isHasFreeSample && (React__default.createElement(React__default.Fragment, null,
|
|
4628
|
-
React__default.createElement(StyledFreebieCarouselTitle, null,
|
|
4629
|
-
React__default.createElement(Star, null),
|
|
4630
|
-
React__default.createElement(Text, { size: "title2", color: theme.colors.primaryBase }, t('inlineFreebie.luckyDrawGift.title'))),
|
|
4631
|
-
React__default.createElement(Carousel, { slideSize: isHasLuckyGiftMoreThanOne ? rem(262) : rem(355), slideGap: rem(12), align: "start", withControls: false, withIndicators: isHasLuckyGiftMoreThanOne, classNames: Object.assign({}, classes) }, luckyGift.map((item) => (React__default.createElement(Carousel.Slide, { key: `${item.type}-${item.product_code}` },
|
|
4632
|
-
React__default.createElement(FreebieLuckyGiftItem, { isHostedByClient: isHostedByClient, data: item, locale: locale }))))),
|
|
4633
|
-
!isHostedByClient && (React__default.createElement(Button, { className: "inline-freebie-button" },
|
|
4634
|
-
React__default.createElement(Text, { size: "p2" }, luckyGiftCtaButton)))))));
|
|
4635
|
-
};
|
|
4636
|
-
|
|
4637
|
-
const StyledBox = styled.div `
|
|
4638
|
-
margin-bottom: ${rem(4)};
|
|
4639
|
-
`;
|
|
4640
|
-
const StyledTitle = styled(Text) `
|
|
4641
|
-
margin-bottom: ${rem(16)};
|
|
4642
|
-
`;
|
|
4643
|
-
const StyledBrandImage = styled.img `
|
|
4644
|
-
height: ${rem(32)};
|
|
4645
|
-
width: auto;
|
|
4646
|
-
`;
|
|
4647
|
-
const StyledInlineFreebieContainer = styled.div `
|
|
4648
|
-
padding: ${rem(16)};
|
|
4649
|
-
background-color: ${theme.colors.neutral50};
|
|
4650
|
-
|
|
4651
|
-
.inline-freebie-button {
|
|
4652
|
-
width: 100%;
|
|
4653
|
-
margin-top: ${rem(12)};
|
|
4654
|
-
|
|
4655
|
-
.mantine-Text-root {
|
|
4656
|
-
color: ${theme.colors.white};
|
|
4657
|
-
font-weight: 600;
|
|
4658
|
-
}
|
|
4659
|
-
|
|
4660
|
-
&.lucky-gift-button {
|
|
4661
|
-
background-color: ${theme.colors.pink800};
|
|
4662
|
-
|
|
4663
|
-
&:hover {
|
|
4664
|
-
background-color: ${theme.colors.pink700};
|
|
4665
|
-
}
|
|
4666
|
-
}
|
|
4667
|
-
}
|
|
4668
|
-
`;
|
|
4669
|
-
|
|
4670
|
-
const InlineFreebie = ({ campaign, locale, }) => {
|
|
4671
|
-
const { hosted_by, brand_image, widget_title, data_freebies } = campaign;
|
|
4672
|
-
const isHostedByClient = hosted_by === 'CLIENT';
|
|
4673
|
-
return (React__default.createElement(StyledInlineFreebieContainer, null,
|
|
4674
|
-
React__default.createElement(StyledBox, null,
|
|
4675
|
-
React__default.createElement(StyledBrandImage, { src: brand_image, alt: widget_title || '', loading: "lazy", style: { height: '32px', width: 'auto' } })),
|
|
4676
|
-
React__default.createElement(StyledTitle, { size: "title1" }, widget_title || ''),
|
|
4677
|
-
React__default.createElement(FreebieCarousel, { isHostedByClient: isHostedByClient, data: data_freebies, locale: locale })));
|
|
4678
|
-
};
|
|
4679
|
-
|
|
4680
4539
|
// url: imageBlocks.imageMobile.data.url
|
|
4681
4540
|
// newTab: imageBlocks.imageMobile.data.newtab
|
|
4682
4541
|
// image: campaignShow.image
|
|
@@ -4694,7 +4553,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4694
4553
|
];
|
|
4695
4554
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4696
4555
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
4697
|
-
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,
|
|
4556
|
+
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, }) => {
|
|
4698
4557
|
var _a, _b;
|
|
4699
4558
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
4700
4559
|
const { isMobile } = useScreenSize();
|
|
@@ -4719,7 +4578,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4719
4578
|
});
|
|
4720
4579
|
}
|
|
4721
4580
|
};
|
|
4722
|
-
const { height } = useViewportDimensions();
|
|
4723
4581
|
// usePreventScroll()
|
|
4724
4582
|
const formActiveTime = useRef(0);
|
|
4725
4583
|
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
@@ -4734,8 +4592,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4734
4592
|
const isLightBox = currentLayout.includes('LightBox');
|
|
4735
4593
|
const isLightBoxA = currentLayout === LEADGEN_LAYOUT.LightBoxA;
|
|
4736
4594
|
const isLightBoxB = currentLayout === LEADGEN_LAYOUT.LightBoxB;
|
|
4737
|
-
const isInline = currentLayout.includes('Inline')
|
|
4738
|
-
const isFreebie = currentLayout.includes('Freebie');
|
|
4595
|
+
const isInline = currentLayout.includes('Inline');
|
|
4739
4596
|
const isFullscreen = currentLayout === LEADGEN_LAYOUT.Fullscreen;
|
|
4740
4597
|
const isInPage = isInline || isSidebar;
|
|
4741
4598
|
const isDrawer = isLightBoxB && isMobile;
|
|
@@ -4759,19 +4616,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4759
4616
|
userInfo,
|
|
4760
4617
|
format: (_a = (ISO_FORMAT[locale] || ISO_FORMAT['vi-VN'])) === null || _a === void 0 ? void 0 : _a.dateFormat,
|
|
4761
4618
|
});
|
|
4762
|
-
const popupContentRef =
|
|
4763
|
-
const isIos = isIOS();
|
|
4764
|
-
const keyOpen = useKeyboardOpen();
|
|
4765
|
-
const { isPushed, bottomRef } = useViewportPushedByKeyboard();
|
|
4766
|
-
const [bottomSpacing, setBottomSpacing] = useState(0);
|
|
4767
|
-
const bottomSpacingRef = useRef(bottomSpacing);
|
|
4768
|
-
const isPushedRef = useRef(isPushed);
|
|
4769
|
-
const keyOpenRef = useRef(keyOpen);
|
|
4770
|
-
const [isScrolling, setIsScrolling] = useState(false);
|
|
4771
|
-
const isScrollingRef = useRef(false);
|
|
4772
|
-
const gapBottomSpace = useRef(40);
|
|
4773
|
-
const initialHeight = useRef(0);
|
|
4774
|
-
const scrollTo = useScrollTo();
|
|
4619
|
+
const { bottomRef, bottomStyle, handlePopupContentScroll, handleFocus, popupContentRef, } = useFocusFieldOnDevice(isMobile, isLightBoxB || isLightBoxA, isLightBoxA ? 85 : 0);
|
|
4775
4620
|
const handleDoImpression = useCallback((type = 'impression') => doImpression({
|
|
4776
4621
|
formValues: form.values,
|
|
4777
4622
|
formActiveTime: formActiveTime.current,
|
|
@@ -4785,7 +4630,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4785
4630
|
return null;
|
|
4786
4631
|
}
|
|
4787
4632
|
useEffect(() => {
|
|
4788
|
-
initialHeight.current = window.innerHeight;
|
|
4789
4633
|
(isLightBox || isSlider) && handleDoImpression();
|
|
4790
4634
|
if (isLightBox || isFullscreen) {
|
|
4791
4635
|
document.body.classList.add('noscroll');
|
|
@@ -4795,18 +4639,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4795
4639
|
}
|
|
4796
4640
|
clearCacheUsedEmailOrPhone();
|
|
4797
4641
|
}, []);
|
|
4798
|
-
useEffect(() => {
|
|
4799
|
-
isPushedRef.current = isPushed;
|
|
4800
|
-
}, [isPushed]);
|
|
4801
|
-
useEffect(() => {
|
|
4802
|
-
keyOpenRef.current = keyOpen;
|
|
4803
|
-
}, [keyOpen]);
|
|
4804
|
-
useEffect(() => {
|
|
4805
|
-
bottomSpacingRef.current = bottomSpacing;
|
|
4806
|
-
}, [bottomSpacing]);
|
|
4807
|
-
useEffect(() => {
|
|
4808
|
-
isScrollingRef.current = isScrolling;
|
|
4809
|
-
}, [isScrolling]);
|
|
4810
4642
|
useEffect(() => {
|
|
4811
4643
|
formRef.current && setLastFormRef(formRef.current);
|
|
4812
4644
|
}, [formRef.current]);
|
|
@@ -4834,18 +4666,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4834
4666
|
}
|
|
4835
4667
|
return () => clearInterval(intervalId);
|
|
4836
4668
|
}, [showThankyou]);
|
|
4837
|
-
useEffect(() => {
|
|
4838
|
-
setBottomSpacing(isMobile && isIos && isLightBoxB
|
|
4839
|
-
? !isPushed && keyOpen
|
|
4840
|
-
? (() => {
|
|
4841
|
-
var _a;
|
|
4842
|
-
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4843
|
-
const isErrorDevice = visualHeight === initialHeight.current;
|
|
4844
|
-
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
4845
|
-
})()
|
|
4846
|
-
: 0
|
|
4847
|
-
: 0);
|
|
4848
|
-
}, [isPushed, keyOpen, isMobile, isIos, isLightBoxB]);
|
|
4849
4669
|
const listBlockAddedRequired = useMemo(() => leadGenFieldRequired(listBlockAdded), listBlockAdded);
|
|
4850
4670
|
const disabledButtonSubmit = useMemo(() => {
|
|
4851
4671
|
if (listBlockAddedRequired.length) {
|
|
@@ -4853,47 +4673,11 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4853
4673
|
}
|
|
4854
4674
|
return false;
|
|
4855
4675
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4856
|
-
const handlePopupContentScroll = () => {
|
|
4857
|
-
if (!isScrollingRef.current) {
|
|
4858
|
-
const active = document.activeElement;
|
|
4859
|
-
if (formRef.current && formRef.current.contains(active)) {
|
|
4860
|
-
active.blur();
|
|
4861
|
-
}
|
|
4862
|
-
}
|
|
4863
|
-
};
|
|
4864
4676
|
const onFocus = (e) => {
|
|
4865
4677
|
// EL-926 Temporary turn off handling focus form on mobile to fix scrolling bug on lightbox A
|
|
4866
4678
|
// return false
|
|
4867
4679
|
e.preventDefault();
|
|
4868
|
-
|
|
4869
|
-
return;
|
|
4870
|
-
setTimeout(() => {
|
|
4871
|
-
var _a, _b;
|
|
4872
|
-
if (!isPushedRef.current && keyOpenRef.current) {
|
|
4873
|
-
const input = e.target;
|
|
4874
|
-
const rect = input.getBoundingClientRect();
|
|
4875
|
-
const inputHeight = rect.height;
|
|
4876
|
-
const inputTop = rect.top;
|
|
4877
|
-
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4878
|
-
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
4879
|
-
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
4880
|
-
const currentScrollY = popupContentRef.current.scrollTop;
|
|
4881
|
-
const viewPort = isErrorDevice
|
|
4882
|
-
? window.innerHeight * 0.4
|
|
4883
|
-
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height;
|
|
4884
|
-
if (currentTop >= viewPort) {
|
|
4885
|
-
const gap = currentTop - viewPort;
|
|
4886
|
-
const targetScrollY = currentScrollY + gap;
|
|
4887
|
-
if (!isNaN(targetScrollY)) {
|
|
4888
|
-
setIsScrolling(true);
|
|
4889
|
-
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
4890
|
-
setTimeout(() => {
|
|
4891
|
-
setIsScrolling(false);
|
|
4892
|
-
}, 500);
|
|
4893
|
-
}
|
|
4894
|
-
}
|
|
4895
|
-
}
|
|
4896
|
-
}, 300);
|
|
4680
|
+
handleFocus(e);
|
|
4897
4681
|
};
|
|
4898
4682
|
const middlewareOnSubmit = (e) => {
|
|
4899
4683
|
e.preventDefault();
|
|
@@ -5017,14 +4801,10 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5017
4801
|
const PopupEmpty = showEmpty && (React__default.createElement(EmptyComponent, { onClose: onClose, onContinue: () => setShowEmpty(false) }));
|
|
5018
4802
|
const PopupForm = (React__default.createElement(LeadFormProvider, { form: form },
|
|
5019
4803
|
React__default.createElement("form", { ref: formRef, className: "leadgen-form", onFocus: onFocus, onSubmit: middlewareOnSubmit },
|
|
5020
|
-
React__default.createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm },
|
|
4804
|
+
React__default.createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm, isLightBoxA: isLightBoxA, bottomStyle: bottomStyle, popupContentRef: popupContentRef, handlePopupContentScroll: handlePopupContentScroll },
|
|
5021
4805
|
React__default.createElement("div", { className: "leadgen-form_inner" },
|
|
5022
4806
|
React__default.createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit, hasSubmitBtn: Boolean(ButtonSubmit), isSubmitLoading: isSubmitLoading, disabledButtonSubmit: disabledButtonSubmit })))),
|
|
5023
|
-
React__default.createElement("div", { style:
|
|
5024
|
-
height: `${bottomSpacing}px`,
|
|
5025
|
-
width: '100%',
|
|
5026
|
-
transition: 'height .2s ease',
|
|
5027
|
-
} })));
|
|
4807
|
+
isLightBoxB && React__default.createElement("div", { style: bottomStyle })));
|
|
5028
4808
|
const PopupOtp = showOtpPhone && (React__default.createElement(OtpBlock, { otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
5029
4809
|
setShowOtpPhone(null);
|
|
5030
4810
|
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
@@ -5035,7 +4815,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5035
4815
|
});
|
|
5036
4816
|
} }));
|
|
5037
4817
|
const PopupThankYou = showThankyou && (React__default.createElement(ThankyouPopup, { title: showThankyou.title, titleAlign: showThankyou.titleAlign, subtitle: showThankyou.subtitle, subtitleAlign: showThankyou.subtitleAlign, link: showThankyou.link, linkNewTab: showThankyou.linkNewTab, linkText: showThankyou.linkText, image: showThankyou.image }));
|
|
5038
|
-
const PopupContent = (React__default.createElement("div", { ref: popupContentRef, className: clsx('leadgen-content', {
|
|
4818
|
+
const PopupContent = (React__default.createElement("div", { ref: isLightBoxB ? popupContentRef : undefined, className: clsx('leadgen-content', {
|
|
5039
4819
|
'leadgen-content_small': limitFieldsLightBoxB,
|
|
5040
4820
|
}), onScroll: handlePopupContentScroll },
|
|
5041
4821
|
!headerInsideFormContainer && PopupHeader,
|
|
@@ -5081,7 +4861,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5081
4861
|
position: 'absolute',
|
|
5082
4862
|
inset: 0,
|
|
5083
4863
|
zIndex: snap === 1 ? -1 : 1,
|
|
5084
|
-
}, onClick: () => setSnap(1) })))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName
|
|
4864
|
+
}, onClick: () => setSnap(1) })))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName },
|
|
5085
4865
|
isFullscreen ? (React__default.createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
5086
4866
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
5087
4867
|
} })) : null,
|
|
@@ -5095,7 +4875,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5095
4875
|
return React__default.createElement(SideBarLayout, { content: PopupContainer });
|
|
5096
4876
|
}
|
|
5097
4877
|
else if (isInline) {
|
|
5098
|
-
return (React__default.createElement(InlineLayout, { action: action, content:
|
|
4878
|
+
return (React__default.createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5099
4879
|
}
|
|
5100
4880
|
return null;
|
|
5101
4881
|
};
|
|
@@ -5288,11 +5068,10 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
|
|
|
5288
5068
|
}
|
|
5289
5069
|
else if (currentLayout.includes('LightBox') ||
|
|
5290
5070
|
currentLayout.includes('Inline') ||
|
|
5291
|
-
currentLayout.includes('Freebie') ||
|
|
5292
5071
|
currentLayout == 'Fullscreen' ||
|
|
5293
5072
|
currentLayout == 'Sidebar' ||
|
|
5294
5073
|
currentLayout == 'Slider') {
|
|
5295
|
-
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout,
|
|
5074
|
+
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
|
|
5296
5075
|
}
|
|
5297
5076
|
else if (currentLayout.includes('Skin')) {
|
|
5298
5077
|
return (React__default.createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
|
|
@@ -5388,6 +5167,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5388
5167
|
var _a, _b;
|
|
5389
5168
|
const scrollEventHandlerRef = useRef();
|
|
5390
5169
|
const leadStartTimeRef = useRef(Date.now());
|
|
5170
|
+
const [, setScrollLocked] = useScrollLock();
|
|
5391
5171
|
const { apiUrl } = useMemo(() => {
|
|
5392
5172
|
let apiUrl = apiUrlProp;
|
|
5393
5173
|
if (apiUrl.includes('localhost')) {
|
|
@@ -5403,6 +5183,9 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5403
5183
|
const [showEmpty, setShowEmpty] = useState(false);
|
|
5404
5184
|
const [redirectUrl, setRedirectUrl] = useState();
|
|
5405
5185
|
const currentLayout = useMemo(() => showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout, [showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout]);
|
|
5186
|
+
const layoutUseOverlay = useMemo(() => !!currentLayout &&
|
|
5187
|
+
!currentLayout.includes('Inline') &&
|
|
5188
|
+
!currentLayout.includes('Sidebar'), [currentLayout]);
|
|
5406
5189
|
useEffect(() => {
|
|
5407
5190
|
if (forceCampaign) {
|
|
5408
5191
|
setShowCampaign(forceCampaign);
|
|
@@ -5422,6 +5205,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5422
5205
|
document.body.classList.remove('noscroll');
|
|
5423
5206
|
setShowCampaign(null);
|
|
5424
5207
|
setShowThankyou(null);
|
|
5208
|
+
setScrollLocked(false);
|
|
5425
5209
|
setAction('HIDE');
|
|
5426
5210
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
5427
5211
|
};
|
|
@@ -5443,36 +5227,41 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5443
5227
|
}
|
|
5444
5228
|
}
|
|
5445
5229
|
}
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
body: JSON.stringify({
|
|
5453
|
-
action: 'CLICK',
|
|
5454
|
-
url: location.href.toLowerCase(),
|
|
5455
|
-
title_article: document.title,
|
|
5456
|
-
cookie_id: getCookie('hhg-id') || '',
|
|
5457
|
-
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5458
|
-
}),
|
|
5459
|
-
}),
|
|
5460
|
-
!showThankyou &&
|
|
5461
|
-
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5462
|
-
trackingCompletionForm({
|
|
5463
|
-
commonData: {
|
|
5464
|
-
cookie_id: getCookie('hhg-id') || '',
|
|
5465
|
-
ga_client_id: getCookie('_ga') || null,
|
|
5466
|
-
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5467
|
-
status: 'in_progress',
|
|
5468
|
-
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5469
|
-
total_fields: listBlockAdded.length,
|
|
5470
|
-
type: 'close',
|
|
5230
|
+
try {
|
|
5231
|
+
yield Promise.all([
|
|
5232
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/popup_exit`, {
|
|
5233
|
+
method: 'POST',
|
|
5234
|
+
headers: {
|
|
5235
|
+
'Content-Type': 'application/json',
|
|
5471
5236
|
},
|
|
5472
|
-
|
|
5473
|
-
|
|
5237
|
+
body: JSON.stringify({
|
|
5238
|
+
action: 'CLICK',
|
|
5239
|
+
url: location.href.toLowerCase(),
|
|
5240
|
+
title_article: document.title,
|
|
5241
|
+
cookie_id: getCookie('hhg-id') || '',
|
|
5242
|
+
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5243
|
+
}),
|
|
5474
5244
|
}),
|
|
5475
|
-
|
|
5245
|
+
!showThankyou &&
|
|
5246
|
+
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5247
|
+
trackingCompletionForm({
|
|
5248
|
+
commonData: {
|
|
5249
|
+
cookie_id: getCookie('hhg-id') || '',
|
|
5250
|
+
ga_client_id: getCookie('_ga') || null,
|
|
5251
|
+
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5252
|
+
status: 'in_progress',
|
|
5253
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5254
|
+
total_fields: listBlockAdded.length,
|
|
5255
|
+
type: 'close',
|
|
5256
|
+
},
|
|
5257
|
+
currentLayout,
|
|
5258
|
+
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
5259
|
+
}),
|
|
5260
|
+
]);
|
|
5261
|
+
}
|
|
5262
|
+
catch (err) {
|
|
5263
|
+
console.log(err);
|
|
5264
|
+
}
|
|
5476
5265
|
onCloseBase();
|
|
5477
5266
|
});
|
|
5478
5267
|
const onUnmount = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -5730,6 +5519,9 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5730
5519
|
leadStartTimeRef.current = Date.now();
|
|
5731
5520
|
}
|
|
5732
5521
|
}, [showCampaign]);
|
|
5522
|
+
useEffect(() => {
|
|
5523
|
+
setScrollLocked(layoutUseOverlay);
|
|
5524
|
+
}, [layoutUseOverlay]);
|
|
5733
5525
|
return (React__default.createElement(LeadGenContext$1.Provider, { value: {
|
|
5734
5526
|
primaryColor,
|
|
5735
5527
|
apiUrl,
|
|
@@ -5745,10 +5537,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5745
5537
|
React__default.createElement(Transition, { mounted: Boolean(((_b = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _b === void 0 ? void 0 : _b.popupVersion) === '2.1'), transition: "fade", duration: 600, timingFunction: "ease", exitDuration: 200 }, (styles) => {
|
|
5746
5538
|
var _a;
|
|
5747
5539
|
return (React__default.createElement(Box, { style: styles }, ((_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.popupVersion) === '2.1' && (React__default.createElement(React__default.Fragment, null,
|
|
5748
|
-
|
|
5749
|
-
!currentLayout.includes('Inline') &&
|
|
5750
|
-
!currentLayout.includes('Sidebar') &&
|
|
5751
|
-
!currentLayout.includes('Freebie') && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5540
|
+
layoutUseOverlay && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5752
5541
|
React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5753
5542
|
}))))))));
|
|
5754
5543
|
};
|