@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/lead.js
CHANGED
|
@@ -2,61 +2,60 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-b0fcf70a.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var core = require('@mantine/core');
|
|
8
8
|
var debounce = require('lodash/debounce');
|
|
9
9
|
var form = require('@mantine/form');
|
|
10
10
|
var dayjs = require('dayjs');
|
|
11
|
-
var index = require('./index-
|
|
11
|
+
var index = require('./index-fd2f1513.js');
|
|
12
12
|
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
13
|
-
var index$1 = require('./index-
|
|
14
|
-
var translationsContext = require('./translationsContext-
|
|
15
|
-
var utils$1 = require('./utils-
|
|
16
|
-
var index$2 = require('./index-
|
|
17
|
-
var index$3 = require('./index-
|
|
18
|
-
var index$5 = require('./index-
|
|
19
|
-
var index$4 = require('./index-
|
|
20
|
-
require('./index.styles-
|
|
13
|
+
var index$1 = require('./index-69ae58ad.js');
|
|
14
|
+
var translationsContext = require('./translationsContext-8aafd4a3.js');
|
|
15
|
+
var utils$1 = require('./utils-34b07135.js');
|
|
16
|
+
var index$2 = require('./index-656a4492.js');
|
|
17
|
+
var index$3 = require('./index-f72a5eb7.js');
|
|
18
|
+
var index$5 = require('./index-3753c23c.js');
|
|
19
|
+
var index$4 = require('./index-297ee109.js');
|
|
20
|
+
require('./index.styles-11eee103.js');
|
|
21
21
|
var hooks = require('@mantine/hooks');
|
|
22
|
-
require('./index-
|
|
23
|
-
var text = require('./text-
|
|
24
|
-
require('./index-
|
|
25
|
-
var utils = require('./utils-
|
|
22
|
+
require('./index-1ac68c15.js');
|
|
23
|
+
var text = require('./text-e5cb14b7.js');
|
|
24
|
+
require('./index-65dff0fb.js');
|
|
25
|
+
var utils = require('./utils-9d40a658.js');
|
|
26
26
|
var dates = require('@mantine/dates');
|
|
27
|
-
var index$7 = require('./index-
|
|
28
|
-
var index$b = require('./index-
|
|
29
|
-
require('./index-
|
|
30
|
-
var usePlacesAutocomplete = require('./usePlacesAutocomplete-
|
|
31
|
-
var index$6 = require('./index-
|
|
32
|
-
var translationsProvider = require('./translationsProvider-
|
|
33
|
-
var Locale = require('./Locale-
|
|
27
|
+
var index$7 = require('./index-86708d23.js');
|
|
28
|
+
var index$b = require('./index-b6d94c63.js');
|
|
29
|
+
require('./index-5af5e002.js');
|
|
30
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-65553675.js');
|
|
31
|
+
var index$6 = require('./index-923ce84a.js');
|
|
32
|
+
var translationsProvider = require('./translationsProvider-1e83343d.js');
|
|
33
|
+
var Locale = require('./Locale-bb109c7a.js');
|
|
34
34
|
var uuid = require('uuid');
|
|
35
35
|
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
36
36
|
var PhoneInputBase = require('react-phone-number-input');
|
|
37
37
|
var styled = require('@emotion/styled');
|
|
38
38
|
var miscTheme = require('./miscTheme.js');
|
|
39
|
-
var index$8 = require('./index-
|
|
40
|
-
var togetherComponentGlobalContext = require('./utils-
|
|
41
|
-
var index$9 = require('./index-
|
|
42
|
-
var index$a = require('./index-
|
|
43
|
-
var index$c = require('./index-
|
|
39
|
+
var index$8 = require('./index-2236e64a.js');
|
|
40
|
+
var togetherComponentGlobalContext = require('./utils-ec38b3b6.js');
|
|
41
|
+
var index$9 = require('./index-ea023cf2.js');
|
|
42
|
+
var index$a = require('./index-73058e4d.js');
|
|
43
|
+
var index$c = require('./index-7a256061.js');
|
|
44
44
|
var framerMotion = require('framer-motion');
|
|
45
45
|
var ReactDOM = require('react-dom');
|
|
46
46
|
var arrow = require('@hhgtech/icons/arrow');
|
|
47
47
|
var core$1 = require('@hhgtech/icons/core');
|
|
48
|
-
var InputDate = require('./InputDate-
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var index$d = require('./index-13e624cc.js');
|
|
52
|
-
var Close = require('./Close-b30d6abc.js');
|
|
48
|
+
var InputDate = require('./InputDate-b37b57d7.js');
|
|
49
|
+
var index$d = require('./index-c3de764f.js');
|
|
50
|
+
var Close = require('./Close-c4e16b3c.js');
|
|
53
51
|
require('./constantsIsProduction.js');
|
|
54
|
-
require('./normalizeLink-
|
|
52
|
+
require('./normalizeLink-3049e9d8.js');
|
|
55
53
|
require('@hhgtech/icons/other');
|
|
54
|
+
require('@mantine/carousel');
|
|
56
55
|
require('classnames');
|
|
57
|
-
require('./useUniqueId-
|
|
56
|
+
require('./useUniqueId-5b3003ed.js');
|
|
58
57
|
require('./constantsSite.js');
|
|
59
|
-
require('./shared-
|
|
58
|
+
require('./shared-9d4d91f6.js');
|
|
60
59
|
require('@mantine/notifications');
|
|
61
60
|
require('date-fns/locale');
|
|
62
61
|
require('./constantsRiskScreener.js');
|
|
@@ -73,12 +72,11 @@ require('./i18n-values/vi-VN_MB.js');
|
|
|
73
72
|
require('./i18n-values/zh-SG.js');
|
|
74
73
|
require('./i18n-values/zh-TW.js');
|
|
75
74
|
require('@emotion/react');
|
|
76
|
-
require('./index-
|
|
75
|
+
require('./index-9225a0de.js');
|
|
77
76
|
require('slugify');
|
|
78
77
|
require('string-format');
|
|
79
78
|
require('./togetherApiPaths.js');
|
|
80
|
-
require('./constants-
|
|
81
|
-
require('./constants-4e2120af.js');
|
|
79
|
+
require('./constants-03ec6a24.js');
|
|
82
80
|
require('vaul');
|
|
83
81
|
|
|
84
82
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -964,7 +962,7 @@ const Description = (_a) => {
|
|
|
964
962
|
|
|
965
963
|
const LeadGenContext$1 = React.createContext({});
|
|
966
964
|
|
|
967
|
-
var useStyles$
|
|
965
|
+
var useStyles$2 = core.createStyles(() => {
|
|
968
966
|
return {
|
|
969
967
|
control: {},
|
|
970
968
|
};
|
|
@@ -1027,7 +1025,7 @@ const TitleBlock$1 = ({ children, align, }) => (React__default["default"].create
|
|
|
1027
1025
|
|
|
1028
1026
|
const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, styles, classNames, popoverProps, }) => {
|
|
1029
1027
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
1030
|
-
const { classes, cx } = useStyles$
|
|
1028
|
+
const { classes, cx } = useStyles$2(undefined, {
|
|
1031
1029
|
name: 'LeadGen__Field',
|
|
1032
1030
|
styles,
|
|
1033
1031
|
classNames,
|
|
@@ -1115,7 +1113,7 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1115
1113
|
})));
|
|
1116
1114
|
};
|
|
1117
1115
|
|
|
1118
|
-
var useStyles$
|
|
1116
|
+
var useStyles$1 = core.createStyles((theme) => {
|
|
1119
1117
|
return {
|
|
1120
1118
|
root: {},
|
|
1121
1119
|
header: {},
|
|
@@ -1145,7 +1143,7 @@ const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps,
|
|
|
1145
1143
|
const { listBlockAdded, leadFormConfig: { form, validateObj }, validatingEmailRef, validatingPhoneRef,
|
|
1146
1144
|
// formRef,
|
|
1147
1145
|
setFormRef, onClose, onOtherSubmit, actionBlocks, locale, setShowOtpPhone, onSubmit, } = React.useContext(LeadGenComponentContext);
|
|
1148
|
-
const { classes, cx } = useStyles$
|
|
1146
|
+
const { classes, cx } = useStyles$1(undefined, {
|
|
1149
1147
|
name: 'LeadGen__FormComponent',
|
|
1150
1148
|
styles,
|
|
1151
1149
|
classNames,
|
|
@@ -1239,7 +1237,7 @@ const Form = (props) => {
|
|
|
1239
1237
|
return showThankyou || showOtpPhone ? null : React__default["default"].createElement(FormComponent, Object.assign({}, props));
|
|
1240
1238
|
};
|
|
1241
1239
|
|
|
1242
|
-
var useStyles
|
|
1240
|
+
var useStyles = core.createStyles(() => {
|
|
1243
1241
|
return {
|
|
1244
1242
|
root: {},
|
|
1245
1243
|
header: {},
|
|
@@ -1264,7 +1262,7 @@ const OtpBlockComponent = ({ otpData, onSuccess, autoSendWhenOpen, className, st
|
|
|
1264
1262
|
const [displayPhone, setDisplayPhone] = React.useState('');
|
|
1265
1263
|
const formatPhoneNumberIntlRef = React.useRef();
|
|
1266
1264
|
const [isSubmitLoading, setIsSubmitLoading] = React.useState(false);
|
|
1267
|
-
const { classes, cx } = useStyles
|
|
1265
|
+
const { classes, cx } = useStyles(undefined, {
|
|
1268
1266
|
name: 'LeadGen__OTP',
|
|
1269
1267
|
styles,
|
|
1270
1268
|
classNames,
|
|
@@ -1433,9 +1431,6 @@ var enPH = {
|
|
|
1433
1431
|
"lead.empty.title": "Oops, seem your information is empty, do you want to submit the information again?",
|
|
1434
1432
|
"lead.empty.cancel": "Cancel",
|
|
1435
1433
|
"lead.empty.submitAgain": "Submit again",
|
|
1436
|
-
"inlineFreebie.freeSample.title": "Free Sample",
|
|
1437
|
-
"inlineFreebie.luckyDrawGift.title": "Lucky-draw Gift",
|
|
1438
|
-
"inlineFreebie.value": "Value",
|
|
1439
1434
|
"common.day": "Day",
|
|
1440
1435
|
"common.month": "Month",
|
|
1441
1436
|
"common.year": "Year"
|
|
@@ -1459,9 +1454,6 @@ var hiIN = {
|
|
|
1459
1454
|
"lead.empty.title": "ऊप्स! लगता है आपकी जानकारी खाली है। क्या आप जानकारी फिर से सबमिट करना चाहते हैं?",
|
|
1460
1455
|
"lead.empty.cancel": "रद्द करें",
|
|
1461
1456
|
"lead.empty.submitAgain": "फिर से सबमिट करें",
|
|
1462
|
-
"inlineFreebie.freeSample.title": "मुफ्त नमूना",
|
|
1463
|
-
"inlineFreebie.luckyDrawGift.title": "लकी-ड्रा गिफ्ट",
|
|
1464
|
-
"inlineFreebie.value": "मूल्य",
|
|
1465
1457
|
"common.day": "साल",
|
|
1466
1458
|
"common.month": "महीना",
|
|
1467
1459
|
"common.year": ""
|
|
@@ -1487,9 +1479,6 @@ var idID = {
|
|
|
1487
1479
|
"lead.empty.title": "Oops, sepertinya informasi Anda kosong. Apakah Anda ingin mengirimkan informasi lagi?",
|
|
1488
1480
|
"lead.empty.cancel": "Batal",
|
|
1489
1481
|
"lead.empty.submitAgain": "Kirim lagi",
|
|
1490
|
-
"inlineFreebie.freeSample.title": "Sampel Gratis",
|
|
1491
|
-
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1492
|
-
"inlineFreebie.value": "Nilai",
|
|
1493
1482
|
"common.day": "Hari",
|
|
1494
1483
|
"common.month": "Bulan",
|
|
1495
1484
|
"common.year": "Tahun"
|
|
@@ -1515,9 +1504,6 @@ var kmKH = {
|
|
|
1515
1504
|
"lead.empty.title": "អូុបស! ហាក់ដូចជាព័ត៌មានរបស់អ្នកទទេ។ តើអ្នកចង់ដាក់ស្នើព័ត៌មានម្តងទៀតទេ?",
|
|
1516
1505
|
"lead.empty.cancel": "លុបចោល",
|
|
1517
1506
|
"lead.empty.submitAgain": "ដាក់ស្នើម្ដងទៀត",
|
|
1518
|
-
"inlineFreebie.freeSample.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1519
|
-
"inlineFreebie.luckyDrawGift.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1520
|
-
"inlineFreebie.value": "តម្លៃ",
|
|
1521
1507
|
"common.day": "ឆ្នាំ",
|
|
1522
1508
|
"common.month": "ខែ",
|
|
1523
1509
|
"common.year": "ថ្ងៃ"
|
|
@@ -1543,9 +1529,6 @@ var msMY = {
|
|
|
1543
1529
|
"lead.empty.title": "Oops, nampaknya maklumat anda kosong. Adakah anda ingin menghantar maklumat semula?",
|
|
1544
1530
|
"lead.empty.cancel": "Batal",
|
|
1545
1531
|
"lead.empty.submitAgain": "Hantar semula",
|
|
1546
|
-
"inlineFreebie.freeSample.title": "Sampel Percuma",
|
|
1547
|
-
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1548
|
-
"inlineFreebie.value": "Nilai",
|
|
1549
1532
|
"common.day": "Hari",
|
|
1550
1533
|
"common.month": "Bulan",
|
|
1551
1534
|
"common.year": "Tahun"
|
|
@@ -1571,9 +1554,6 @@ var myMM = {
|
|
|
1571
1554
|
"lead.empty.title": "အုပ်စ်! သင့်အချက်အလက်သည် ဗလာဖြစ်နေသလိုဖြစ်သည်။ ထပ်မံတင်သွင်းလိုပါသလား?",
|
|
1572
1555
|
"lead.empty.cancel": "မလုပ်ဆောင်ပါ",
|
|
1573
1556
|
"lead.empty.submitAgain": "ထပ်မံတင်သွင်းပါ",
|
|
1574
|
-
"inlineFreebie.freeSample.title": "အခမဲ့အစားအစာ",
|
|
1575
|
-
"inlineFreebie.luckyDrawGift.title": "အခမဲ့အစားအစာ",
|
|
1576
|
-
"inlineFreebie.value": "တန်ဖိုး",
|
|
1577
1557
|
"common.day": "ရက်",
|
|
1578
1558
|
"common.month": "လ",
|
|
1579
1559
|
"common.year": "နှစ်"
|
|
@@ -1599,9 +1579,6 @@ var thTH = {
|
|
|
1599
1579
|
"lead.empty.title": "อุ๊ปส์! ดูเหมือนว่าข้อมูลของคุณว่างเปล่า คุณต้องการส่งข้อมูลอีกครั้งหรือไม่?",
|
|
1600
1580
|
"lead.empty.cancel": "ยกเลิก",
|
|
1601
1581
|
"lead.empty.submitAgain": "ส่งอีกครั้ง",
|
|
1602
|
-
"inlineFreebie.freeSample.title": "ตัวอย่างฟรี",
|
|
1603
|
-
"inlineFreebie.luckyDrawGift.title": "ของรางวัลที่ถูกรางวัล",
|
|
1604
|
-
"inlineFreebie.value": "ค่า",
|
|
1605
1582
|
"common.day": "วัน",
|
|
1606
1583
|
"common.month": "เดือน",
|
|
1607
1584
|
"common.year": "ปี"
|
|
@@ -1638,9 +1615,6 @@ var viVN = {
|
|
|
1638
1615
|
"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?",
|
|
1639
1616
|
"lead.empty.cancel": "Hủy",
|
|
1640
1617
|
"lead.empty.submitAgain": "Gửi lại",
|
|
1641
|
-
"inlineFreebie.freeSample.title": "Dùng thử miễn phí",
|
|
1642
|
-
"inlineFreebie.luckyDrawGift.title": "Phần thưởng may mắn",
|
|
1643
|
-
"inlineFreebie.value": "Trị giá",
|
|
1644
1618
|
"common.day": "Ngày",
|
|
1645
1619
|
"common.month": "Tháng",
|
|
1646
1620
|
"common.year": "Năm"
|
|
@@ -1666,9 +1640,6 @@ var zhTW = {
|
|
|
1666
1640
|
"lead.empty.title": "哎呀,您的資訊似乎是空的,您想要重新提交資訊嗎?",
|
|
1667
1641
|
"lead.empty.cancel": "取消",
|
|
1668
1642
|
"lead.empty.submitAgain": "重新提交",
|
|
1669
|
-
"inlineFreebie.freeSample.title": "免費試用",
|
|
1670
|
-
"inlineFreebie.luckyDrawGift.title": "幸運抽獎禮品",
|
|
1671
|
-
"inlineFreebie.value": "價值",
|
|
1672
1643
|
"common.day": "日",
|
|
1673
1644
|
"common.month": "月",
|
|
1674
1645
|
"common.year": "年"
|
|
@@ -3326,6 +3297,26 @@ const FloatingLayout = ({ popupId, url, title, urlText, titleAlign, subtitle, su
|
|
|
3326
3297
|
React__default["default"].createElement(CloseButton, { onClose: onClose, containerClassName: "close-button-top-right" }))))));
|
|
3327
3298
|
};
|
|
3328
3299
|
|
|
3300
|
+
function isMac() {
|
|
3301
|
+
return testPlatform(/^Mac/);
|
|
3302
|
+
}
|
|
3303
|
+
function isIPhone() {
|
|
3304
|
+
return testPlatform(/^iPhone/);
|
|
3305
|
+
}
|
|
3306
|
+
function isIPad() {
|
|
3307
|
+
return (testPlatform(/^iPad/) ||
|
|
3308
|
+
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
3309
|
+
(isMac() && navigator.maxTouchPoints > 1));
|
|
3310
|
+
}
|
|
3311
|
+
function isIOS() {
|
|
3312
|
+
return isIPhone() || isIPad();
|
|
3313
|
+
}
|
|
3314
|
+
function testPlatform(re) {
|
|
3315
|
+
return typeof window !== 'undefined' && window.navigator != null
|
|
3316
|
+
? re.test(window.navigator.platform)
|
|
3317
|
+
: undefined;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3329
3320
|
function useScrollTo() {
|
|
3330
3321
|
const scrollTo = React.useCallback((element, to, duration = 500) => {
|
|
3331
3322
|
if (!element)
|
|
@@ -3349,35 +3340,6 @@ function useScrollTo() {
|
|
|
3349
3340
|
return scrollTo;
|
|
3350
3341
|
}
|
|
3351
3342
|
|
|
3352
|
-
const useViewportDimensions = () => {
|
|
3353
|
-
const dimensionsRef = React.useRef({ width: 0, height: 0 });
|
|
3354
|
-
const [dimensions, setDimensions] = React.useState(() => ({
|
|
3355
|
-
width: window.screen.availWidth,
|
|
3356
|
-
height: window.screen.availHeight,
|
|
3357
|
-
}));
|
|
3358
|
-
React.useEffect(() => {
|
|
3359
|
-
var _a;
|
|
3360
|
-
function visualViewport(e) {
|
|
3361
|
-
if (dimensionsRef.current.width === e.target.width &&
|
|
3362
|
-
dimensionsRef.current.height === e.target.height) {
|
|
3363
|
-
return;
|
|
3364
|
-
}
|
|
3365
|
-
const newDimensions = {
|
|
3366
|
-
width: e.target.width,
|
|
3367
|
-
height: e.target.height,
|
|
3368
|
-
};
|
|
3369
|
-
dimensionsRef.current = newDimensions;
|
|
3370
|
-
setDimensions(newDimensions);
|
|
3371
|
-
}
|
|
3372
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3373
|
-
return () => {
|
|
3374
|
-
var _a;
|
|
3375
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3376
|
-
};
|
|
3377
|
-
}, []);
|
|
3378
|
-
return React.useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3379
|
-
};
|
|
3380
|
-
|
|
3381
3343
|
// Default handling for Safari & Chrome
|
|
3382
3344
|
function useViewportPushedByKeyboard(threshold = 20) {
|
|
3383
3345
|
const ref = React.useRef(null);
|
|
@@ -3422,25 +3384,102 @@ function useKeyboardOpen(isAndroid = false) {
|
|
|
3422
3384
|
return keyOpen;
|
|
3423
3385
|
}
|
|
3424
3386
|
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3387
|
+
const useFocusFieldOnDevice = (isMobile, isEnable, gapToCheckAvai = 0) => {
|
|
3388
|
+
const isIos = isIOS();
|
|
3389
|
+
const popupContentRef = React.useRef(null);
|
|
3390
|
+
const { isPushed, bottomRef } = useViewportPushedByKeyboard();
|
|
3391
|
+
const [bottomSpacing, setBottomSpacing] = React.useState(0);
|
|
3392
|
+
const [isScrolling, setIsScrolling] = React.useState(false);
|
|
3393
|
+
const keyOpen = useKeyboardOpen();
|
|
3394
|
+
const isPushedRef = React.useRef(isPushed);
|
|
3395
|
+
const keyOpenRef = React.useRef(keyOpen);
|
|
3396
|
+
const bottomSpacingRef = React.useRef(bottomSpacing);
|
|
3397
|
+
const isScrollingRef = React.useRef(false);
|
|
3398
|
+
const gapBottomSpace = React.useRef(40);
|
|
3399
|
+
const initialHeight = React.useRef(0);
|
|
3400
|
+
const scrollTo = useScrollTo();
|
|
3401
|
+
const handlePopupContentScroll = (formRef) => {
|
|
3402
|
+
if (!isScrollingRef.current && !!(formRef === null || formRef === void 0 ? void 0 : formRef.target)) {
|
|
3403
|
+
const focusableElements = formRef.target.querySelectorAll('input, textarea, select, button, [tabindex]:not([tabindex="-1"])');
|
|
3404
|
+
focusableElements.forEach((el) => {
|
|
3405
|
+
if (el === document.activeElement) {
|
|
3406
|
+
el.blur();
|
|
3407
|
+
}
|
|
3408
|
+
});
|
|
3409
|
+
}
|
|
3410
|
+
};
|
|
3411
|
+
const handleFocus = (e) => {
|
|
3412
|
+
if (!isMobile || !isIos || !isEnable)
|
|
3413
|
+
return;
|
|
3414
|
+
setTimeout(() => {
|
|
3415
|
+
var _a, _b;
|
|
3416
|
+
if (!isPushedRef.current &&
|
|
3417
|
+
keyOpenRef.current &&
|
|
3418
|
+
popupContentRef.current) {
|
|
3419
|
+
const input = e.target;
|
|
3420
|
+
const rect = input.getBoundingClientRect();
|
|
3421
|
+
const inputHeight = rect.height;
|
|
3422
|
+
const inputTop = rect.top;
|
|
3423
|
+
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3424
|
+
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
3425
|
+
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
3426
|
+
const currentScrollY = popupContentRef.current.scrollTop;
|
|
3427
|
+
const viewPort = (isErrorDevice
|
|
3428
|
+
? window.innerHeight * 0.4
|
|
3429
|
+
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height) - gapToCheckAvai;
|
|
3430
|
+
if (currentTop >= viewPort) {
|
|
3431
|
+
const gap = currentTop - viewPort;
|
|
3432
|
+
const targetScrollY = currentScrollY + gap;
|
|
3433
|
+
if (!isNaN(targetScrollY)) {
|
|
3434
|
+
setIsScrolling(true);
|
|
3435
|
+
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
3436
|
+
setTimeout(() => {
|
|
3437
|
+
setIsScrolling(false);
|
|
3438
|
+
}, 500);
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
}, 300);
|
|
3443
|
+
};
|
|
3444
|
+
React.useEffect(() => {
|
|
3445
|
+
initialHeight.current = window.innerHeight;
|
|
3446
|
+
}, []);
|
|
3447
|
+
React.useEffect(() => {
|
|
3448
|
+
isPushedRef.current = isPushed;
|
|
3449
|
+
}, [isPushed]);
|
|
3450
|
+
React.useEffect(() => {
|
|
3451
|
+
keyOpenRef.current = keyOpen;
|
|
3452
|
+
}, [keyOpen]);
|
|
3453
|
+
React.useEffect(() => {
|
|
3454
|
+
bottomSpacingRef.current = bottomSpacing;
|
|
3455
|
+
}, [bottomSpacing]);
|
|
3456
|
+
React.useEffect(() => {
|
|
3457
|
+
setBottomSpacing(isMobile && isIos && isEnable
|
|
3458
|
+
? !isPushed && keyOpen
|
|
3459
|
+
? (() => {
|
|
3460
|
+
var _a;
|
|
3461
|
+
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3462
|
+
const isErrorDevice = visualHeight === initialHeight.current;
|
|
3463
|
+
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
3464
|
+
})()
|
|
3465
|
+
: 0
|
|
3466
|
+
: 0);
|
|
3467
|
+
}, [isPushed, keyOpen, isMobile, isIos, isEnable]);
|
|
3468
|
+
React.useEffect(() => {
|
|
3469
|
+
isScrollingRef.current = isScrolling;
|
|
3470
|
+
}, [isScrolling]);
|
|
3471
|
+
return {
|
|
3472
|
+
popupContentRef,
|
|
3473
|
+
bottomRef,
|
|
3474
|
+
bottomStyle: {
|
|
3475
|
+
height: `${bottomSpacing}px`,
|
|
3476
|
+
width: '100%',
|
|
3477
|
+
transition: 'height .2s ease',
|
|
3478
|
+
},
|
|
3479
|
+
handleFocus,
|
|
3480
|
+
handlePopupContentScroll,
|
|
3481
|
+
};
|
|
3482
|
+
};
|
|
3444
3483
|
|
|
3445
3484
|
function chain(...callbacks) {
|
|
3446
3485
|
return (...args) => {
|
|
@@ -3697,6 +3736,35 @@ function isInput(target) {
|
|
|
3697
3736
|
(target instanceof HTMLElement && target.isContentEditable));
|
|
3698
3737
|
}
|
|
3699
3738
|
|
|
3739
|
+
const useViewportDimensions = () => {
|
|
3740
|
+
const dimensionsRef = React.useRef({ width: 0, height: 0 });
|
|
3741
|
+
const [dimensions, setDimensions] = React.useState(() => ({
|
|
3742
|
+
width: window.screen.availWidth,
|
|
3743
|
+
height: window.screen.availHeight,
|
|
3744
|
+
}));
|
|
3745
|
+
React.useEffect(() => {
|
|
3746
|
+
var _a;
|
|
3747
|
+
function visualViewport(e) {
|
|
3748
|
+
if (dimensionsRef.current.width === e.target.width &&
|
|
3749
|
+
dimensionsRef.current.height === e.target.height) {
|
|
3750
|
+
return;
|
|
3751
|
+
}
|
|
3752
|
+
const newDimensions = {
|
|
3753
|
+
width: e.target.width,
|
|
3754
|
+
height: e.target.height,
|
|
3755
|
+
};
|
|
3756
|
+
dimensionsRef.current = newDimensions;
|
|
3757
|
+
setDimensions(newDimensions);
|
|
3758
|
+
}
|
|
3759
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3760
|
+
return () => {
|
|
3761
|
+
var _a;
|
|
3762
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3763
|
+
};
|
|
3764
|
+
}, []);
|
|
3765
|
+
return React.useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3766
|
+
};
|
|
3767
|
+
|
|
3700
3768
|
const StyledLeadGenLightBoxBFooter = styled__default["default"].div `
|
|
3701
3769
|
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3702
3770
|
padding-inline: var(--spacing-x, 20px);
|
|
@@ -4327,7 +4395,7 @@ const StyledFormContainer = styled__default["default"].div `
|
|
|
4327
4395
|
*
|
|
4328
4396
|
*/
|
|
4329
4397
|
const FormContainer = (_a) => {
|
|
4330
|
-
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer } = _a, restProps = tslib_es6.__rest(_a, ["iconComponent", "title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "header", "footer"]);
|
|
4398
|
+
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer, isLightBoxA, bottomStyle, popupContentRef, handlePopupContentScroll } = _a, restProps = tslib_es6.__rest(_a, ["iconComponent", "title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "header", "footer", "isLightBoxA", "bottomStyle", "popupContentRef", "handlePopupContentScroll"]);
|
|
4331
4399
|
const HeaderContent = (React__default["default"].createElement("div", { className: "leadgen-form_header" },
|
|
4332
4400
|
iconComponent,
|
|
4333
4401
|
React__default["default"].createElement(index$2.Text, { as: "h2", size: 'h4', variant: "primary", weight: 'semiBold', className: "leadgen-title", "data-align": titleAlign }, title),
|
|
@@ -4337,13 +4405,13 @@ const FormContainer = (_a) => {
|
|
|
4337
4405
|
}
|
|
4338
4406
|
return (React__default["default"].createElement(StyledFormContainer, Object.assign({ className: core.clsx(className, 'leadgen-form_container'), style: style }, restProps),
|
|
4339
4407
|
React__default["default"].createElement("div", { className: "leadgen-form_wrapper" },
|
|
4340
|
-
|
|
4408
|
+
header ? (React__default["default"].createElement("div", { className: "leadgen-form_scrollable", ref: popupContentRef, onScroll: handlePopupContentScroll },
|
|
4341
4409
|
header,
|
|
4342
4410
|
HeaderContent,
|
|
4343
|
-
React__default["default"].createElement("div", { className: "leadgen-form_body" }, children)
|
|
4344
|
-
|
|
4411
|
+
React__default["default"].createElement("div", { className: "leadgen-form_body" }, children),
|
|
4412
|
+
isLightBoxA && React__default["default"].createElement("div", { style: bottomStyle }))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
4345
4413
|
HeaderContent,
|
|
4346
|
-
React__default["default"].createElement("div", { className: "leadgen-form_body" }, children))),
|
|
4414
|
+
React__default["default"].createElement("div", { className: "leadgen-form_body", ref: popupContentRef, onScroll: handlePopupContentScroll }, children))),
|
|
4347
4415
|
React__default["default"].createElement("div", { className: "leadgen-form_footer" }, footer))));
|
|
4348
4416
|
};
|
|
4349
4417
|
|
|
@@ -4497,215 +4565,6 @@ const OtpBlock = ({ otpData, onSuccess, autoSendWhenOpen, }) => {
|
|
|
4497
4565
|
} }))))));
|
|
4498
4566
|
};
|
|
4499
4567
|
|
|
4500
|
-
const Gift = ({ className, style }) => {
|
|
4501
|
-
return (React__default["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 },
|
|
4502
|
-
React__default["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" }),
|
|
4503
|
-
React__default["default"].createElement("path", { d: "M10 5.83337V18.0556", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4504
|
-
React__default["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" }),
|
|
4505
|
-
React__default["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" }),
|
|
4506
|
-
React__default["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" }),
|
|
4507
|
-
React__default["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" })));
|
|
4508
|
-
};
|
|
4509
|
-
|
|
4510
|
-
const Star = ({ className, style }) => {
|
|
4511
|
-
return (React__default["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 },
|
|
4512
|
-
React__default["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" }),
|
|
4513
|
-
React__default["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" }),
|
|
4514
|
-
React__default["default"].createElement("path", { d: "M2.22168 17.7777L5.55501 14.4443", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4515
|
-
React__default["default"].createElement("path", { d: "M1.94434 13.611L2.49989 13.0554", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4516
|
-
React__default["default"].createElement("path", { d: "M6.38867 18.0556L6.94423 17.5", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
4517
|
-
};
|
|
4518
|
-
|
|
4519
|
-
const StyledFreebieCarouselTitle = styled__default["default"].div `
|
|
4520
|
-
display: flex;
|
|
4521
|
-
align-items: center;
|
|
4522
|
-
gap: ${core.rem(8)};
|
|
4523
|
-
margin-bottom: ${core.rem(16)};
|
|
4524
|
-
`;
|
|
4525
|
-
var useStyles = core.createStyles((theme) => ({
|
|
4526
|
-
indicators: {
|
|
4527
|
-
bottom: 0,
|
|
4528
|
-
gap: core.rem(4),
|
|
4529
|
-
},
|
|
4530
|
-
indicator: {
|
|
4531
|
-
width: core.rem(5),
|
|
4532
|
-
height: core.rem(5),
|
|
4533
|
-
borderRadius: '100%',
|
|
4534
|
-
background: theme.colors.neutral[2],
|
|
4535
|
-
opacity: 1,
|
|
4536
|
-
'&[data-active]': {
|
|
4537
|
-
backgroundColor: theme.fn.primaryColor(),
|
|
4538
|
-
},
|
|
4539
|
-
},
|
|
4540
|
-
container: {
|
|
4541
|
-
padding: `0 0 ${core.rem(21)} 0`,
|
|
4542
|
-
},
|
|
4543
|
-
root: {
|
|
4544
|
-
marginBottom: core.rem(16),
|
|
4545
|
-
},
|
|
4546
|
-
}));
|
|
4547
|
-
|
|
4548
|
-
const StyledFreebiesCard = styled__default["default"].div `
|
|
4549
|
-
display: flex;
|
|
4550
|
-
flex-direction: column;
|
|
4551
|
-
border-radius: ${core.rem(16)};
|
|
4552
|
-
box-shadow: 0px 32px 32px -16px rgba(0, 0, 0, 0.04),
|
|
4553
|
-
0px 6px 6px -3px rgba(0, 0, 0, 0.04), 0px 3px 3px -1.5px rgba(0, 0, 0, 0.04),
|
|
4554
|
-
0px 1px 1px -0.5px rgba(0, 0, 0, 0.04);
|
|
4555
|
-
background-color: ${miscTheme.theme.colors.white};
|
|
4556
|
-
|
|
4557
|
-
.mantine-AspectRatio-root {
|
|
4558
|
-
width: 100%;
|
|
4559
|
-
|
|
4560
|
-
img {
|
|
4561
|
-
border-radius: ${core.rem(16)} ${core.rem(16)} 0 0;
|
|
4562
|
-
margin: 0;
|
|
4563
|
-
}
|
|
4564
|
-
}
|
|
4565
|
-
|
|
4566
|
-
.mantine-Badge-root {
|
|
4567
|
-
height: fit-content;
|
|
4568
|
-
width: fit-content;
|
|
4569
|
-
position: absolute;
|
|
4570
|
-
padding: ${core.rem(4)} ${core.rem(8)};
|
|
4571
|
-
border-radius: ${core.rem(8)};
|
|
4572
|
-
bottom: ${core.rem(12)};
|
|
4573
|
-
left: ${core.rem(12)};
|
|
4574
|
-
|
|
4575
|
-
.mantine-Text-root {
|
|
4576
|
-
line-height: ${core.rem(12)};
|
|
4577
|
-
}
|
|
4578
|
-
|
|
4579
|
-
background-color: #00000080;
|
|
4580
|
-
}
|
|
4581
|
-
`;
|
|
4582
|
-
const StyledImageWrap = styled__default["default"].div `
|
|
4583
|
-
width: 100%;
|
|
4584
|
-
height: 100%;
|
|
4585
|
-
position: relative;
|
|
4586
|
-
`;
|
|
4587
|
-
|
|
4588
|
-
const FreebieLuckyGiftItem = ({ isHostedByClient, locale, data: { image, name, desc, prize_value, prize_unit, cta_button, winning_slot, }, }) => {
|
|
4589
|
-
const { t } = index$1.useTranslations();
|
|
4590
|
-
console.log(prize_value, prize_unit, locale);
|
|
4591
|
-
const formattedPrice = prize_value && prize_unit
|
|
4592
|
-
? utils$2.currencyFormat(prize_value, locale, prize_unit)
|
|
4593
|
-
: '';
|
|
4594
|
-
return (React__default["default"].createElement(StyledFreebiesCard, null,
|
|
4595
|
-
React__default["default"].createElement(StyledImageWrap, null,
|
|
4596
|
-
React__default["default"].createElement(core.AspectRatio, { ratio: 3 / 2 },
|
|
4597
|
-
React__default["default"].createElement(index$c.ImageWrap, { src: image, alt: name || '' })),
|
|
4598
|
-
winning_slot > 0 && (React__default["default"].createElement(core.Badge, null,
|
|
4599
|
-
React__default["default"].createElement(index$2.Text, { size: "c2", color: miscTheme.theme.colors.white },
|
|
4600
|
-
winning_slot,
|
|
4601
|
-
" SLOTS")))),
|
|
4602
|
-
React__default["default"].createElement(core.Box, { p: "12px" },
|
|
4603
|
-
React__default["default"].createElement(core.Tooltip, { label: name, position: "top", withArrow: true },
|
|
4604
|
-
React__default["default"].createElement(index$2.Text, { lineClamp: 2, size: "title2", mb: core.rem(4), style: { height: core.rem(48) } }, name)),
|
|
4605
|
-
React__default["default"].createElement(core.Tooltip, { label: desc, position: "top", withArrow: true },
|
|
4606
|
-
React__default["default"].createElement(index$2.Text, { lineClamp: 2, size: "p3", mb: core.rem(16), style: { height: core.rem(40) } }, desc)),
|
|
4607
|
-
React__default["default"].createElement(index$2.Text, { size: "p3", fw: 500 },
|
|
4608
|
-
React__default["default"].createElement(index$2.Text, { as: "span" },
|
|
4609
|
-
t('inlineFreebie.value'),
|
|
4610
|
-
" "),
|
|
4611
|
-
React__default["default"].createElement(index$2.Text, { as: "span", color: miscTheme.theme.colors.primaryBase }, formattedPrice)),
|
|
4612
|
-
isHostedByClient && (React__default["default"].createElement(index$4.Button, { className: "inline-freebie-button" },
|
|
4613
|
-
React__default["default"].createElement(index$2.Text, { size: "p2" }, cta_button))))));
|
|
4614
|
-
};
|
|
4615
|
-
const FreebieFreeSampleItem = ({ data: { image, name, desc, cta_button }, }) => (React__default["default"].createElement(StyledFreebiesCard, null,
|
|
4616
|
-
React__default["default"].createElement(core.AspectRatio, { ratio: 3 / 2 },
|
|
4617
|
-
React__default["default"].createElement(index$c.ImageWrap, { src: image, alt: name || '' })),
|
|
4618
|
-
React__default["default"].createElement(core.Box, { p: "12px" },
|
|
4619
|
-
React__default["default"].createElement(core.Tooltip, { label: name, position: "top", withArrow: true },
|
|
4620
|
-
React__default["default"].createElement(index$2.Text, { lineClamp: 2, size: "title2", mb: core.rem(4), style: { height: core.rem(48) } }, name)),
|
|
4621
|
-
React__default["default"].createElement(core.Tooltip, { label: desc, position: "top", withArrow: true },
|
|
4622
|
-
React__default["default"].createElement(index$2.Text, { lineClamp: 3, size: "p3", style: { height: core.rem(60) } }, desc)),
|
|
4623
|
-
React__default["default"].createElement(index$4.Button, { className: "lucky-gift-button inline-freebie-button" },
|
|
4624
|
-
React__default["default"].createElement(index$2.Text, { size: "p2" }, cta_button)))));
|
|
4625
|
-
|
|
4626
|
-
var EHostedBy;
|
|
4627
|
-
(function (EHostedBy) {
|
|
4628
|
-
EHostedBy["CLIENT"] = "CLIENT";
|
|
4629
|
-
EHostedBy["HHG"] = "HHG";
|
|
4630
|
-
})(EHostedBy || (EHostedBy = {}));
|
|
4631
|
-
var EFreebieType;
|
|
4632
|
-
(function (EFreebieType) {
|
|
4633
|
-
EFreebieType["SAMPLE"] = "SAMPLE";
|
|
4634
|
-
EFreebieType["LUCKY_DRAW"] = "LUCKY_DRAW";
|
|
4635
|
-
})(EFreebieType || (EFreebieType = {}));
|
|
4636
|
-
|
|
4637
|
-
const FreebieCarousel = ({ isHostedByClient, data, locale, }) => {
|
|
4638
|
-
const { classes } = useStyles(undefined, {
|
|
4639
|
-
name: 'Carousel',
|
|
4640
|
-
});
|
|
4641
|
-
const { t } = index$1.useTranslations();
|
|
4642
|
-
const freeSample = data.filter((item) => item.type === EFreebieType.SAMPLE);
|
|
4643
|
-
const luckyGift = data.filter((item) => item.type === EFreebieType.LUCKY_DRAW);
|
|
4644
|
-
const isHasLuckyGift = luckyGift.length > 0;
|
|
4645
|
-
const isHasFreeSample = freeSample.length > 0;
|
|
4646
|
-
const isHasLuckyGiftMoreThanOne = luckyGift.length > 1;
|
|
4647
|
-
const isHasFreeSampleMoreThanOne = freeSample.length > 1;
|
|
4648
|
-
const luckyGiftCtaButton = luckyGift[0].cta_button;
|
|
4649
|
-
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
4650
|
-
isHasLuckyGift && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
4651
|
-
React__default["default"].createElement(StyledFreebieCarouselTitle, null,
|
|
4652
|
-
React__default["default"].createElement(Gift, null),
|
|
4653
|
-
React__default["default"].createElement(index$2.Text, { size: "title2", color: miscTheme.theme.colors.pink800 }, t('inlineFreebie.freeSample.title'))),
|
|
4654
|
-
React__default["default"].createElement(carousel.Carousel, { slideSize: isHasFreeSampleMoreThanOne ? core.rem(262) : core.rem(355), slideGap: core.rem(12), align: "start", withControls: false, withIndicators: isHasFreeSampleMoreThanOne, classNames: Object.assign({}, classes) }, freeSample.map((item) => (React__default["default"].createElement(carousel.Carousel.Slide, { key: `${item.type}-${item.product_code}` },
|
|
4655
|
-
React__default["default"].createElement(FreebieFreeSampleItem, { data: item }))))))),
|
|
4656
|
-
isHasFreeSample && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
4657
|
-
React__default["default"].createElement(StyledFreebieCarouselTitle, null,
|
|
4658
|
-
React__default["default"].createElement(Star, null),
|
|
4659
|
-
React__default["default"].createElement(index$2.Text, { size: "title2", color: miscTheme.theme.colors.primaryBase }, t('inlineFreebie.luckyDrawGift.title'))),
|
|
4660
|
-
React__default["default"].createElement(carousel.Carousel, { slideSize: isHasLuckyGiftMoreThanOne ? core.rem(262) : core.rem(355), slideGap: core.rem(12), align: "start", withControls: false, withIndicators: isHasLuckyGiftMoreThanOne, classNames: Object.assign({}, classes) }, luckyGift.map((item) => (React__default["default"].createElement(carousel.Carousel.Slide, { key: `${item.type}-${item.product_code}` },
|
|
4661
|
-
React__default["default"].createElement(FreebieLuckyGiftItem, { isHostedByClient: isHostedByClient, data: item, locale: locale }))))),
|
|
4662
|
-
!isHostedByClient && (React__default["default"].createElement(index$4.Button, { className: "inline-freebie-button" },
|
|
4663
|
-
React__default["default"].createElement(index$2.Text, { size: "p2" }, luckyGiftCtaButton)))))));
|
|
4664
|
-
};
|
|
4665
|
-
|
|
4666
|
-
const StyledBox = styled__default["default"].div `
|
|
4667
|
-
margin-bottom: ${core.rem(4)};
|
|
4668
|
-
`;
|
|
4669
|
-
const StyledTitle = styled__default["default"](index$2.Text) `
|
|
4670
|
-
margin-bottom: ${core.rem(16)};
|
|
4671
|
-
`;
|
|
4672
|
-
const StyledBrandImage = styled__default["default"].img `
|
|
4673
|
-
height: ${core.rem(32)};
|
|
4674
|
-
width: auto;
|
|
4675
|
-
`;
|
|
4676
|
-
const StyledInlineFreebieContainer = styled__default["default"].div `
|
|
4677
|
-
padding: ${core.rem(16)};
|
|
4678
|
-
background-color: ${miscTheme.theme.colors.neutral50};
|
|
4679
|
-
|
|
4680
|
-
.inline-freebie-button {
|
|
4681
|
-
width: 100%;
|
|
4682
|
-
margin-top: ${core.rem(12)};
|
|
4683
|
-
|
|
4684
|
-
.mantine-Text-root {
|
|
4685
|
-
color: ${miscTheme.theme.colors.white};
|
|
4686
|
-
font-weight: 600;
|
|
4687
|
-
}
|
|
4688
|
-
|
|
4689
|
-
&.lucky-gift-button {
|
|
4690
|
-
background-color: ${miscTheme.theme.colors.pink800};
|
|
4691
|
-
|
|
4692
|
-
&:hover {
|
|
4693
|
-
background-color: ${miscTheme.theme.colors.pink700};
|
|
4694
|
-
}
|
|
4695
|
-
}
|
|
4696
|
-
}
|
|
4697
|
-
`;
|
|
4698
|
-
|
|
4699
|
-
const InlineFreebie = ({ campaign, locale, }) => {
|
|
4700
|
-
const { hosted_by, brand_image, widget_title, data_freebies } = campaign;
|
|
4701
|
-
const isHostedByClient = hosted_by === 'CLIENT';
|
|
4702
|
-
return (React__default["default"].createElement(StyledInlineFreebieContainer, null,
|
|
4703
|
-
React__default["default"].createElement(StyledBox, null,
|
|
4704
|
-
React__default["default"].createElement(StyledBrandImage, { src: brand_image, alt: widget_title || '', loading: "lazy", style: { height: '32px', width: 'auto' } })),
|
|
4705
|
-
React__default["default"].createElement(StyledTitle, { size: "title1" }, widget_title || ''),
|
|
4706
|
-
React__default["default"].createElement(FreebieCarousel, { isHostedByClient: isHostedByClient, data: data_freebies, locale: locale })));
|
|
4707
|
-
};
|
|
4708
|
-
|
|
4709
4568
|
// url: imageBlocks.imageMobile.data.url
|
|
4710
4569
|
// newTab: imageBlocks.imageMobile.data.newtab
|
|
4711
4570
|
// image: campaignShow.image
|
|
@@ -4723,7 +4582,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4723
4582
|
];
|
|
4724
4583
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4725
4584
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
4726
|
-
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,
|
|
4585
|
+
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, }) => {
|
|
4727
4586
|
var _a, _b;
|
|
4728
4587
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
4729
4588
|
const { isMobile } = index$c.useScreenSize();
|
|
@@ -4748,7 +4607,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4748
4607
|
});
|
|
4749
4608
|
}
|
|
4750
4609
|
};
|
|
4751
|
-
const { height } = useViewportDimensions();
|
|
4752
4610
|
// usePreventScroll()
|
|
4753
4611
|
const formActiveTime = React.useRef(0);
|
|
4754
4612
|
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
@@ -4763,8 +4621,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4763
4621
|
const isLightBox = currentLayout.includes('LightBox');
|
|
4764
4622
|
const isLightBoxA = currentLayout === LEADGEN_LAYOUT.LightBoxA;
|
|
4765
4623
|
const isLightBoxB = currentLayout === LEADGEN_LAYOUT.LightBoxB;
|
|
4766
|
-
const isInline = currentLayout.includes('Inline')
|
|
4767
|
-
const isFreebie = currentLayout.includes('Freebie');
|
|
4624
|
+
const isInline = currentLayout.includes('Inline');
|
|
4768
4625
|
const isFullscreen = currentLayout === LEADGEN_LAYOUT.Fullscreen;
|
|
4769
4626
|
const isInPage = isInline || isSidebar;
|
|
4770
4627
|
const isDrawer = isLightBoxB && isMobile;
|
|
@@ -4788,19 +4645,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4788
4645
|
userInfo,
|
|
4789
4646
|
format: (_a = (index$7.ISO_FORMAT[locale] || index$7.ISO_FORMAT['vi-VN'])) === null || _a === void 0 ? void 0 : _a.dateFormat,
|
|
4790
4647
|
});
|
|
4791
|
-
const popupContentRef =
|
|
4792
|
-
const isIos = isIOS();
|
|
4793
|
-
const keyOpen = useKeyboardOpen();
|
|
4794
|
-
const { isPushed, bottomRef } = useViewportPushedByKeyboard();
|
|
4795
|
-
const [bottomSpacing, setBottomSpacing] = React.useState(0);
|
|
4796
|
-
const bottomSpacingRef = React.useRef(bottomSpacing);
|
|
4797
|
-
const isPushedRef = React.useRef(isPushed);
|
|
4798
|
-
const keyOpenRef = React.useRef(keyOpen);
|
|
4799
|
-
const [isScrolling, setIsScrolling] = React.useState(false);
|
|
4800
|
-
const isScrollingRef = React.useRef(false);
|
|
4801
|
-
const gapBottomSpace = React.useRef(40);
|
|
4802
|
-
const initialHeight = React.useRef(0);
|
|
4803
|
-
const scrollTo = useScrollTo();
|
|
4648
|
+
const { bottomRef, bottomStyle, handlePopupContentScroll, handleFocus, popupContentRef, } = useFocusFieldOnDevice(isMobile, isLightBoxB || isLightBoxA, isLightBoxA ? 85 : 0);
|
|
4804
4649
|
const handleDoImpression = React.useCallback((type = 'impression') => doImpression({
|
|
4805
4650
|
formValues: form.values,
|
|
4806
4651
|
formActiveTime: formActiveTime.current,
|
|
@@ -4814,7 +4659,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4814
4659
|
return null;
|
|
4815
4660
|
}
|
|
4816
4661
|
React.useEffect(() => {
|
|
4817
|
-
initialHeight.current = window.innerHeight;
|
|
4818
4662
|
(isLightBox || isSlider) && handleDoImpression();
|
|
4819
4663
|
if (isLightBox || isFullscreen) {
|
|
4820
4664
|
document.body.classList.add('noscroll');
|
|
@@ -4824,18 +4668,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4824
4668
|
}
|
|
4825
4669
|
clearCacheUsedEmailOrPhone();
|
|
4826
4670
|
}, []);
|
|
4827
|
-
React.useEffect(() => {
|
|
4828
|
-
isPushedRef.current = isPushed;
|
|
4829
|
-
}, [isPushed]);
|
|
4830
|
-
React.useEffect(() => {
|
|
4831
|
-
keyOpenRef.current = keyOpen;
|
|
4832
|
-
}, [keyOpen]);
|
|
4833
|
-
React.useEffect(() => {
|
|
4834
|
-
bottomSpacingRef.current = bottomSpacing;
|
|
4835
|
-
}, [bottomSpacing]);
|
|
4836
|
-
React.useEffect(() => {
|
|
4837
|
-
isScrollingRef.current = isScrolling;
|
|
4838
|
-
}, [isScrolling]);
|
|
4839
4671
|
React.useEffect(() => {
|
|
4840
4672
|
formRef.current && setLastFormRef(formRef.current);
|
|
4841
4673
|
}, [formRef.current]);
|
|
@@ -4863,18 +4695,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4863
4695
|
}
|
|
4864
4696
|
return () => clearInterval(intervalId);
|
|
4865
4697
|
}, [showThankyou]);
|
|
4866
|
-
React.useEffect(() => {
|
|
4867
|
-
setBottomSpacing(isMobile && isIos && isLightBoxB
|
|
4868
|
-
? !isPushed && keyOpen
|
|
4869
|
-
? (() => {
|
|
4870
|
-
var _a;
|
|
4871
|
-
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4872
|
-
const isErrorDevice = visualHeight === initialHeight.current;
|
|
4873
|
-
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
4874
|
-
})()
|
|
4875
|
-
: 0
|
|
4876
|
-
: 0);
|
|
4877
|
-
}, [isPushed, keyOpen, isMobile, isIos, isLightBoxB]);
|
|
4878
4698
|
const listBlockAddedRequired = React.useMemo(() => leadGenFieldRequired(listBlockAdded), listBlockAdded);
|
|
4879
4699
|
const disabledButtonSubmit = React.useMemo(() => {
|
|
4880
4700
|
if (listBlockAddedRequired.length) {
|
|
@@ -4882,47 +4702,11 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4882
4702
|
}
|
|
4883
4703
|
return false;
|
|
4884
4704
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4885
|
-
const handlePopupContentScroll = () => {
|
|
4886
|
-
if (!isScrollingRef.current) {
|
|
4887
|
-
const active = document.activeElement;
|
|
4888
|
-
if (formRef.current && formRef.current.contains(active)) {
|
|
4889
|
-
active.blur();
|
|
4890
|
-
}
|
|
4891
|
-
}
|
|
4892
|
-
};
|
|
4893
4705
|
const onFocus = (e) => {
|
|
4894
4706
|
// EL-926 Temporary turn off handling focus form on mobile to fix scrolling bug on lightbox A
|
|
4895
4707
|
// return false
|
|
4896
4708
|
e.preventDefault();
|
|
4897
|
-
|
|
4898
|
-
return;
|
|
4899
|
-
setTimeout(() => {
|
|
4900
|
-
var _a, _b;
|
|
4901
|
-
if (!isPushedRef.current && keyOpenRef.current) {
|
|
4902
|
-
const input = e.target;
|
|
4903
|
-
const rect = input.getBoundingClientRect();
|
|
4904
|
-
const inputHeight = rect.height;
|
|
4905
|
-
const inputTop = rect.top;
|
|
4906
|
-
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4907
|
-
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
4908
|
-
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
4909
|
-
const currentScrollY = popupContentRef.current.scrollTop;
|
|
4910
|
-
const viewPort = isErrorDevice
|
|
4911
|
-
? window.innerHeight * 0.4
|
|
4912
|
-
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height;
|
|
4913
|
-
if (currentTop >= viewPort) {
|
|
4914
|
-
const gap = currentTop - viewPort;
|
|
4915
|
-
const targetScrollY = currentScrollY + gap;
|
|
4916
|
-
if (!isNaN(targetScrollY)) {
|
|
4917
|
-
setIsScrolling(true);
|
|
4918
|
-
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
4919
|
-
setTimeout(() => {
|
|
4920
|
-
setIsScrolling(false);
|
|
4921
|
-
}, 500);
|
|
4922
|
-
}
|
|
4923
|
-
}
|
|
4924
|
-
}
|
|
4925
|
-
}, 300);
|
|
4709
|
+
handleFocus(e);
|
|
4926
4710
|
};
|
|
4927
4711
|
const middlewareOnSubmit = (e) => {
|
|
4928
4712
|
e.preventDefault();
|
|
@@ -5046,14 +4830,10 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5046
4830
|
const PopupEmpty = showEmpty && (React__default["default"].createElement(EmptyComponent, { onClose: onClose, onContinue: () => setShowEmpty(false) }));
|
|
5047
4831
|
const PopupForm = (React__default["default"].createElement(LeadFormProvider, { form: form },
|
|
5048
4832
|
React__default["default"].createElement("form", { ref: formRef, className: "leadgen-form", onFocus: onFocus, onSubmit: middlewareOnSubmit },
|
|
5049
|
-
React__default["default"].createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm },
|
|
4833
|
+
React__default["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 },
|
|
5050
4834
|
React__default["default"].createElement("div", { className: "leadgen-form_inner" },
|
|
5051
4835
|
React__default["default"].createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit, hasSubmitBtn: Boolean(ButtonSubmit), isSubmitLoading: isSubmitLoading, disabledButtonSubmit: disabledButtonSubmit })))),
|
|
5052
|
-
React__default["default"].createElement("div", { style:
|
|
5053
|
-
height: `${bottomSpacing}px`,
|
|
5054
|
-
width: '100%',
|
|
5055
|
-
transition: 'height .2s ease',
|
|
5056
|
-
} })));
|
|
4836
|
+
isLightBoxB && React__default["default"].createElement("div", { style: bottomStyle })));
|
|
5057
4837
|
const PopupOtp = showOtpPhone && (React__default["default"].createElement(OtpBlock, { otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
5058
4838
|
setShowOtpPhone(null);
|
|
5059
4839
|
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
@@ -5064,7 +4844,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5064
4844
|
});
|
|
5065
4845
|
} }));
|
|
5066
4846
|
const PopupThankYou = showThankyou && (React__default["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 }));
|
|
5067
|
-
const PopupContent = (React__default["default"].createElement("div", { ref: popupContentRef, className: core.clsx('leadgen-content', {
|
|
4847
|
+
const PopupContent = (React__default["default"].createElement("div", { ref: isLightBoxB ? popupContentRef : undefined, className: core.clsx('leadgen-content', {
|
|
5068
4848
|
'leadgen-content_small': limitFieldsLightBoxB,
|
|
5069
4849
|
}), onScroll: handlePopupContentScroll },
|
|
5070
4850
|
!headerInsideFormContainer && PopupHeader,
|
|
@@ -5110,7 +4890,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5110
4890
|
position: 'absolute',
|
|
5111
4891
|
inset: 0,
|
|
5112
4892
|
zIndex: snap === 1 ? -1 : 1,
|
|
5113
|
-
}, onClick: () => setSnap(1) })))) : (React__default["default"].createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName
|
|
4893
|
+
}, onClick: () => setSnap(1) })))) : (React__default["default"].createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName },
|
|
5114
4894
|
isFullscreen ? (React__default["default"].createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
5115
4895
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
5116
4896
|
} })) : null,
|
|
@@ -5124,7 +4904,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5124
4904
|
return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
|
|
5125
4905
|
}
|
|
5126
4906
|
else if (isInline) {
|
|
5127
|
-
return (React__default["default"].createElement(InlineLayout, { action: action, content:
|
|
4907
|
+
return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5128
4908
|
}
|
|
5129
4909
|
return null;
|
|
5130
4910
|
};
|
|
@@ -5317,11 +5097,10 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
|
|
|
5317
5097
|
}
|
|
5318
5098
|
else if (currentLayout.includes('LightBox') ||
|
|
5319
5099
|
currentLayout.includes('Inline') ||
|
|
5320
|
-
currentLayout.includes('Freebie') ||
|
|
5321
5100
|
currentLayout == 'Fullscreen' ||
|
|
5322
5101
|
currentLayout == 'Sidebar' ||
|
|
5323
5102
|
currentLayout == 'Slider') {
|
|
5324
|
-
return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout,
|
|
5103
|
+
return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
|
|
5325
5104
|
}
|
|
5326
5105
|
else if (currentLayout.includes('Skin')) {
|
|
5327
5106
|
return (React__default["default"].createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
|
|
@@ -5417,6 +5196,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5417
5196
|
var _a, _b;
|
|
5418
5197
|
const scrollEventHandlerRef = React.useRef();
|
|
5419
5198
|
const leadStartTimeRef = React.useRef(Date.now());
|
|
5199
|
+
const [, setScrollLocked] = hooks.useScrollLock();
|
|
5420
5200
|
const { apiUrl } = React.useMemo(() => {
|
|
5421
5201
|
let apiUrl = apiUrlProp;
|
|
5422
5202
|
if (apiUrl.includes('localhost')) {
|
|
@@ -5432,6 +5212,9 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5432
5212
|
const [showEmpty, setShowEmpty] = React.useState(false);
|
|
5433
5213
|
const [redirectUrl, setRedirectUrl] = React.useState();
|
|
5434
5214
|
const currentLayout = React.useMemo(() => showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout, [showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout]);
|
|
5215
|
+
const layoutUseOverlay = React.useMemo(() => !!currentLayout &&
|
|
5216
|
+
!currentLayout.includes('Inline') &&
|
|
5217
|
+
!currentLayout.includes('Sidebar'), [currentLayout]);
|
|
5435
5218
|
React.useEffect(() => {
|
|
5436
5219
|
if (forceCampaign) {
|
|
5437
5220
|
setShowCampaign(forceCampaign);
|
|
@@ -5451,6 +5234,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5451
5234
|
document.body.classList.remove('noscroll');
|
|
5452
5235
|
setShowCampaign(null);
|
|
5453
5236
|
setShowThankyou(null);
|
|
5237
|
+
setScrollLocked(false);
|
|
5454
5238
|
setAction('HIDE');
|
|
5455
5239
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
5456
5240
|
};
|
|
@@ -5472,36 +5256,41 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5472
5256
|
}
|
|
5473
5257
|
}
|
|
5474
5258
|
}
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
body: JSON.stringify({
|
|
5482
|
-
action: 'CLICK',
|
|
5483
|
-
url: location.href.toLowerCase(),
|
|
5484
|
-
title_article: document.title,
|
|
5485
|
-
cookie_id: miscCookieHelper.getCookie('hhg-id') || '',
|
|
5486
|
-
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5487
|
-
}),
|
|
5488
|
-
}),
|
|
5489
|
-
!showThankyou &&
|
|
5490
|
-
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5491
|
-
trackingCompletionForm({
|
|
5492
|
-
commonData: {
|
|
5493
|
-
cookie_id: miscCookieHelper.getCookie('hhg-id') || '',
|
|
5494
|
-
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
5495
|
-
country_code: locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5496
|
-
status: 'in_progress',
|
|
5497
|
-
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5498
|
-
total_fields: listBlockAdded.length,
|
|
5499
|
-
type: 'close',
|
|
5259
|
+
try {
|
|
5260
|
+
yield Promise.all([
|
|
5261
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/popup_exit`, {
|
|
5262
|
+
method: 'POST',
|
|
5263
|
+
headers: {
|
|
5264
|
+
'Content-Type': 'application/json',
|
|
5500
5265
|
},
|
|
5501
|
-
|
|
5502
|
-
|
|
5266
|
+
body: JSON.stringify({
|
|
5267
|
+
action: 'CLICK',
|
|
5268
|
+
url: location.href.toLowerCase(),
|
|
5269
|
+
title_article: document.title,
|
|
5270
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id') || '',
|
|
5271
|
+
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5272
|
+
}),
|
|
5503
5273
|
}),
|
|
5504
|
-
|
|
5274
|
+
!showThankyou &&
|
|
5275
|
+
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5276
|
+
trackingCompletionForm({
|
|
5277
|
+
commonData: {
|
|
5278
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id') || '',
|
|
5279
|
+
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
5280
|
+
country_code: locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5281
|
+
status: 'in_progress',
|
|
5282
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5283
|
+
total_fields: listBlockAdded.length,
|
|
5284
|
+
type: 'close',
|
|
5285
|
+
},
|
|
5286
|
+
currentLayout,
|
|
5287
|
+
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
5288
|
+
}),
|
|
5289
|
+
]);
|
|
5290
|
+
}
|
|
5291
|
+
catch (err) {
|
|
5292
|
+
console.log(err);
|
|
5293
|
+
}
|
|
5505
5294
|
onCloseBase();
|
|
5506
5295
|
});
|
|
5507
5296
|
const onUnmount = (params) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -5759,6 +5548,9 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5759
5548
|
leadStartTimeRef.current = Date.now();
|
|
5760
5549
|
}
|
|
5761
5550
|
}, [showCampaign]);
|
|
5551
|
+
React.useEffect(() => {
|
|
5552
|
+
setScrollLocked(layoutUseOverlay);
|
|
5553
|
+
}, [layoutUseOverlay]);
|
|
5762
5554
|
return (React__default["default"].createElement(LeadGenContext$1.Provider, { value: {
|
|
5763
5555
|
primaryColor,
|
|
5764
5556
|
apiUrl,
|
|
@@ -5774,10 +5566,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5774
5566
|
React__default["default"].createElement(core.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) => {
|
|
5775
5567
|
var _a;
|
|
5776
5568
|
return (React__default["default"].createElement(core.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["default"].createElement(React__default["default"].Fragment, null,
|
|
5777
|
-
|
|
5778
|
-
!currentLayout.includes('Inline') &&
|
|
5779
|
-
!currentLayout.includes('Sidebar') &&
|
|
5780
|
-
!currentLayout.includes('Freebie') && (React__default["default"].createElement(core.Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5569
|
+
layoutUseOverlay && (React__default["default"].createElement(core.Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5781
5570
|
React__default["default"].createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5782
5571
|
}))))))));
|
|
5783
5572
|
};
|