@hhgtech/hhg-components 1.29.429 → 1.29.430-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-ec0bea76.js → InputDate-55aa861c.js} +5 -5
- package/build/{LastPeriod-f25909db.js → LastPeriod-70d38a49.js} +1 -1
- package/build/{MobileBottomNavigationIcon-969f4512.js → MobileBottomNavigationIcon-56c3bfd1.js} +3 -3
- package/build/{Spinner-d2905cca.js → Spinner-237ab29e.js} +1 -1
- package/build/{WhatsApp-70907cad.js → WhatsApp-3e1a7d95.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +51 -50
- 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/DragFreeCarousel/index.d.ts +9 -0
- package/build/components/atoms/DragFreeCarousel/index.style.d.ts +3 -0
- package/build/components/atoms/cardCollapse/index.d.ts +2 -1
- package/build/components/atoms/index.d.ts +2 -0
- package/build/components/mantine/text/index.d.ts +1 -8
- package/build/components/mantine/theme/text.d.ts +1 -3
- package/build/components/molecules/certificateItem/index.d.ts +9 -0
- package/build/components/molecules/{ratingStars → certificateItem}/index.styled.d.ts +7 -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 +4 -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 +21 -0
- package/build/components/molecules/voucherItem/index.d.ts +10 -0
- package/build/components/molecules/voucherItem/index.style.d.ts +21 -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 +166 -162
- package/build/{constants-c207bcf2.js → constants-c3a0423c.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-938e4b29.js → core-4f62805d.js} +1 -1
- package/build/{dataTransform-506aa309.js → dataTransform-289e7968.js} +1 -1
- package/build/ecom.js +25 -22
- package/build/{editor-2ccb9735.js → editor-3f6a99d9.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/{InputDate-150d51f1.js → InputDate-fae872e9.js} +5 -5
- package/build/esm/{LastPeriod-4cdcb16b.js → LastPeriod-6399ffed.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-11ef4634.js → MobileBottomNavigationIcon-cf3b044a.js} +3 -3
- package/build/esm/{Spinner-336745a0.js → Spinner-5a99aaef.js} +1 -1
- package/build/esm/{WhatsApp-fcedeb2f.js → WhatsApp-8904f7c0.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +50 -50
- 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/DragFreeCarousel/index.d.ts +9 -0
- package/build/esm/components/atoms/DragFreeCarousel/index.style.d.ts +3 -0
- package/build/esm/components/atoms/cardCollapse/index.d.ts +2 -1
- package/build/esm/components/atoms/index.d.ts +2 -0
- 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/certificateItem/index.d.ts +9 -0
- package/build/esm/components/molecules/{ratingStars → certificateItem}/index.styled.d.ts +7 -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 +4 -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 +21 -0
- package/build/esm/components/molecules/voucherItem/index.d.ts +10 -0
- package/build/esm/components/molecules/voucherItem/index.style.d.ts +21 -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 +102 -103
- package/build/esm/{constants-9edb5de7.js → constants-eb64d227.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-74f7840e.js → core-48c0b8cc.js} +1 -1
- package/build/esm/{dataTransform-e9889171.js → dataTransform-67e41d99.js} +1 -1
- package/build/esm/ecom.js +8 -5
- package/build/esm/{editor-fe1a1482.js → editor-ea73bd01.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-37373fb5.js → healthTools-791618e5.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 +4 -0
- package/build/esm/i18n-values/hi-IN.js +4 -0
- package/build/esm/i18n-values/id-ID.js +4 -0
- package/build/esm/i18n-values/km-KH.js +4 -0
- package/build/esm/i18n-values/ms-MY.js +4 -0
- package/build/esm/i18n-values/my-MM.js +4 -0
- package/build/esm/i18n-values/th-TH.js +8 -4
- package/build/esm/i18n-values/tl-PH.js +0 -8
- package/build/esm/i18n-values/vi-VN.js +4 -0
- package/build/esm/i18n-values/vi-VN_MB.js +4 -0
- package/build/esm/i18n-values/zh-SG.js +4 -0
- package/build/esm/i18n-values/zh-TW.js +4 -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/icons/index.d.ts +6 -8
- package/build/esm/{index-70486dba.js → index-0870c489.js} +1 -1
- package/build/esm/{index-b91b840c.js → index-09b3bbbf.js} +2 -2
- package/build/esm/{index-5fe544e7.js → index-09cf90ac.js} +2 -2
- package/build/esm/{index-3da0e5c4.js → index-13ffa8f1.js} +2 -2
- package/build/esm/{index-c9e764c7.js → index-17d75778.js} +13 -13
- package/build/esm/{index-aaa8f9c1.js → index-1a9b8d19.js} +1 -1
- package/build/esm/{index-297df8a4.js → index-1d64d446.js} +32 -32
- package/build/esm/{index-97b839cf.js → index-1dff51d6.js} +8 -8
- package/build/esm/{index-a0603676.js → index-2d92db09.js} +14 -14
- package/build/esm/{index-f452c0f8.js → index-2fb9f797.js} +5 -5
- package/build/esm/{index-3c90651c.js → index-314803d9.js} +11 -11
- package/build/esm/{index-cf8f2f44.js → index-33361704.js} +7 -7
- package/build/esm/{index-8e947475.js → index-37a6819d.js} +6 -6
- package/build/esm/{index-35c5d7d5.js → index-3c6ae1ef.js} +13 -13
- package/build/esm/{index-08412ca5.js → index-3ff671cb.js} +2 -2
- package/build/esm/{index-e2a568ff.js → index-408acb89.js} +3 -3
- package/build/esm/{index-83903d35.js → index-40bb5de7.js} +6 -6
- package/build/esm/{index-d5bfc5cf.js → index-44ecf83d.js} +4 -4
- package/build/esm/{index-dc0c1d6e.js → index-4a10d2cf.js} +14 -14
- package/build/esm/{index-8370370e.js → index-4a3d7b67.js} +1 -1
- package/build/esm/{index-913cd40f.js → index-4af5003e.js} +2 -2
- package/build/esm/{index-73d4bf68.js → index-4ba2447d.js} +2 -2
- package/build/esm/{index-b0bcdca4.js → index-4f9db631.js} +32 -32
- package/build/esm/{index-562960ad.js → index-566eeff0.js} +86 -49
- package/build/esm/{index-aa8dbb6f.js → index-5e3f6d2c.js} +2 -2
- package/build/esm/{index-2be0ce94.js → index-6039def7.js} +2 -2
- package/build/esm/{index-5d944e03.js → index-65c28612.js} +1 -1
- package/build/esm/{index-1f36edb7.js → index-674c92ea.js} +16 -16
- package/build/esm/{index-9d8682e0.js → index-6ed7bdf7.js} +3 -3
- package/build/esm/{index-8b05318a.js → index-7461a925.js} +1 -1
- package/build/esm/{index-887de622.js → index-7657fecc.js} +1 -1
- package/build/esm/index-780ea467.js +5312 -0
- package/build/esm/{index-0d821f2d.js → index-78e1d080.js} +8 -8
- package/build/esm/{index-c614bd17.js → index-7beda0bc.js} +4 -4
- package/build/esm/{index-c3ee376e.js → index-7c106975.js} +33 -33
- package/build/esm/{index-2bc8bb3a.js → index-81e60f9d.js} +25 -25
- package/build/esm/{index-ec66991e.js → index-840dae58.js} +2 -2
- package/build/esm/{index-d0da75ba.js → index-86241274.js} +1 -1
- package/build/esm/{index-45af50e7.js → index-8a20b3c6.js} +7 -7
- package/build/esm/{index-630c6453.js → index-8a453f73.js} +17 -17
- package/build/esm/{index-48f2f9d9.js → index-8d21e5ac.js} +6 -6
- package/build/esm/{index-c087a620.js → index-8fe534b0.js} +31 -17
- package/build/esm/{index-f029acfa.js → index-93b7c70a.js} +3 -3
- package/build/esm/{index-38868b60.js → index-98f7f24d.js} +10 -10
- package/build/esm/{index-93d7cef2.js → index-99b2bf70.js} +13 -13
- package/build/esm/{index-13e6c278.js → index-9b5d22e6.js} +2 -2
- package/build/esm/{index-d41992df.js → index-a5b52cf4.js} +17 -17
- package/build/esm/{index-652b30e5.js → index-a9761de1.js} +3 -3
- package/build/esm/{index-2029e489.js → index-ad3b2f13.js} +6 -6
- package/build/esm/{index-756c979d.js → index-b4b4c4e8.js} +15 -15
- package/build/esm/{index-889d24ad.js → index-bd5034ae.js} +3 -3
- package/build/esm/{index-ba229c28.js → index-bebe62e8.js} +6 -6
- package/build/esm/{index-dbcd754c.js → index-bf27da33.js} +2 -2
- package/build/esm/{index-b8e1f575.js → index-c4065aad.js} +15 -15
- package/build/esm/{index-07d599a5.js → index-cacefd85.js} +3 -3
- package/build/esm/{index-79a9c1bf.js → index-cdf443ee.js} +3 -3
- package/build/esm/{index-281c49d7.js → index-d31c8567.js} +17 -17
- package/build/esm/{index-101ad2f7.js → index-d45f602e.js} +15 -15
- package/build/esm/{index-82b80e49.js → index-d7d44efc.js} +17 -17
- package/build/esm/{index-ac30ca44.js → index-eb8d4d59.js} +2 -2
- package/build/esm/{index-aa702e26.js → index-ef697ce2.js} +13 -13
- package/build/esm/{index-e52c8890.js → index-f00c5b3c.js} +2 -2
- package/build/esm/{index-b9b796f2.js → index-f0dc1995.js} +21 -21
- package/build/esm/{index-e6f7269f.js → index-f178a264.js} +1 -1
- package/build/esm/{index-4beeec6a.js → index-f679930b.js} +2 -2
- package/build/esm/{index-c88a3f55.js → index-f96c7577.js} +16 -16
- package/build/esm/{index-26b0cb59.js → index-fa79fecb.js} +3 -4
- package/build/esm/{index-2f5de1d7.js → index-fc737e2a.js} +2 -2
- package/build/esm/{index-7a70b730.js → index-fcb8a66e.js} +13 -13
- package/build/esm/{index-9439984b.js → index-fff3714d.js} +22 -22
- package/build/esm/index.js +127 -141
- package/build/esm/{labelSorting-8c2c1ed5.js → labelSorting-30e44b06.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-ab04e756.js → logoIcon-576f20c8.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-3328af03.js → post-52667f83.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-4b1a7f5f.js → store-934dc7ac.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-e27bd36b.js → surveyThankyouCard-18bf1f86.js} +5 -5
- package/build/esm/{text-fb20ee8a.js → text-48d81c22.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-349d8427.js → translationsProvider-8472bb49.js} +1 -1
- package/build/esm/{treePopoverMenu-908db5ad.js → treePopoverMenu-4b20c5a9.js} +19 -19
- package/build/esm/{index-0e1f46ed.js → types-ab67db08.js} +16 -3
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-0b28e231.js → useCategory-b8ce67fa.js} +5 -5
- package/build/esm/{useHealthToolCache-0c6043c2.js → useHealthToolCache-85e6504e.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-f696847a.js → usePlacesAutocomplete-e888b953.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-fe2d7d46.js → utils-0d847619.js} +3 -3
- package/build/esm/{utils-1f587ddc.js → utils-254a783a.js} +2 -2
- package/build/esm/{utils-2deee8e8.js → utils-bb4326ab.js} +2 -2
- package/build/esm/{utils-373ccfa4.js → utils-df03b54e.js} +5 -5
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-7c1705c2.js → healthTools-f712b02f.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 +4 -0
- package/build/i18n-values/hi-IN.js +4 -0
- package/build/i18n-values/id-ID.js +4 -0
- package/build/i18n-values/km-KH.js +4 -0
- package/build/i18n-values/ms-MY.js +4 -0
- package/build/i18n-values/my-MM.js +4 -0
- package/build/i18n-values/th-TH.js +8 -4
- package/build/i18n-values/tl-PH.js +0 -8
- package/build/i18n-values/vi-VN.js +4 -0
- package/build/i18n-values/vi-VN_MB.js +4 -0
- package/build/i18n-values/zh-SG.js +4 -0
- package/build/i18n-values/zh-TW.js +4 -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/icons/index.d.ts +6 -8
- package/build/{index-f5307942.js → index-0249a156.js} +32 -32
- package/build/{index-43d579b4.js → index-0cbe67d4.js} +13 -13
- package/build/{index-3cbb3f12.js → index-0e6b1743.js} +3 -3
- package/build/{index-71cc985b.js → index-0e8be3b9.js} +6 -6
- package/build/{index-eea96fe2.js → index-1597cffa.js} +2 -2
- package/build/{index-324af2d8.js → index-163fe53e.js} +13 -13
- package/build/{index-88ac0659.js → index-180b3d7a.js} +1 -1
- package/build/{index-852f5813.js → index-18bbdfe8.js} +17 -17
- package/build/{index-27344921.js → index-28e38db9.js} +13 -13
- package/build/{index-4a251dcb.js → index-29745b17.js} +22 -22
- package/build/{index-b3f79121.js → index-2e3f1a32.js} +2 -2
- package/build/{index-066f5fcb.js → index-2fcc35dc.js} +16 -16
- package/build/{index-6bf7bc1a.js → index-3b70b5d2.js} +17 -17
- package/build/{index-0d60e66d.js → index-3e3172e1.js} +1 -1
- package/build/{index-7dc9df86.js → index-3e890b6b.js} +2 -2
- package/build/{index-0356df80.js → index-3f54b2b6.js} +4 -4
- package/build/{index-73fd3e83.js → index-40e0c80a.js} +6 -6
- package/build/index-45109514.js +5376 -0
- package/build/{index-5513833c.js → index-481f4dbf.js} +2 -2
- package/build/{index-e41d8c16.js → index-4932ab6c.js} +1 -1
- package/build/{index-a7adcc80.js → index-50497629.js} +32 -32
- package/build/{index-dbba8758.js → index-5250b255.js} +14 -14
- package/build/{index-3327c40e.js → index-55b0242d.js} +6 -6
- package/build/{index-5616bac5.js → index-5a6c86d1.js} +2 -2
- package/build/{index-87879e9b.js → index-5bbf0842.js} +3 -3
- package/build/{index-aee94255.js → index-5cd2a931.js} +1 -1
- package/build/{index-9b5801fc.js → index-65580259.js} +5 -5
- package/build/{index-1fcab5b3.js → index-687dee05.js} +15 -15
- package/build/{index-e89ec099.js → index-69964602.js} +10 -10
- package/build/{index-43747f24.js → index-6dc1cd91.js} +3 -4
- package/build/{index-ca63ffab.js → index-6ddcabae.js} +2 -2
- package/build/{index-e16e1a5b.js → index-784452e2.js} +21 -21
- package/build/{index-6ac71f27.js → index-7e8b7d40.js} +3 -3
- package/build/{index-3aebd148.js → index-83a83526.js} +2 -2
- package/build/{index-9f1a224f.js → index-8b2e2650.js} +14 -14
- package/build/{index-3ca442b9.js → index-91b463d2.js} +16 -16
- package/build/{index-19ff6902.js → index-956db2a8.js} +17 -17
- package/build/{index-82f5436b.js → index-961ca517.js} +11 -11
- package/build/{index-1883b37f.js → index-a23bde59.js} +4 -4
- package/build/{index-6cd2cb2a.js → index-a42dcb53.js} +3 -3
- package/build/{index-130fb722.js → index-a467bb6c.js} +6 -6
- package/build/{index-a26d1003.js → index-a4870456.js} +2 -2
- package/build/{index-58b40d12.js → index-a4a54429.js} +1 -1
- package/build/{index-2e20e8b1.js → index-a898d0b8.js} +3 -3
- package/build/{index-48131ffe.js → index-aa4b7a59.js} +3 -3
- package/build/{index-e2f8947e.js → index-b25e254d.js} +31 -16
- package/build/{index-d22c2fd3.js → index-b2cb3045.js} +15 -15
- package/build/{index-3dde740f.js → index-ba3d68b4.js} +2 -2
- package/build/{index-ea776875.js → index-bc4e4e53.js} +2 -2
- package/build/{index-d6fdb515.js → index-bca7cd59.js} +2 -2
- package/build/{index-8c70c1e1.js → index-c02ac057.js} +1 -1
- package/build/{index-e19debd8.js → index-c2663452.js} +5 -5
- package/build/{index-269efb10.js → index-c314e9d9.js} +13 -13
- package/build/{index-0992f37f.js → index-c7e3ecb3.js} +8 -8
- package/build/{index-e5dabc7c.js → index-c8802d84.js} +1 -1
- package/build/{index-22d4d601.js → index-c883cc10.js} +25 -25
- package/build/{index-48900e51.js → index-c9522d9a.js} +8 -8
- package/build/{index-808a4c21.js → index-ce6d17ab.js} +17 -17
- package/build/{index-bb61e823.js → index-cfeb8bc1.js} +7 -7
- package/build/{index-d43a6b5d.js → index-d53b1267.js} +3 -3
- package/build/{index-65626156.js → index-d54a8891.js} +87 -50
- package/build/{index-ea485904.js → index-d7e39137.js} +2 -2
- package/build/{index-e36a0eca.js → index-dd845aa3.js} +2 -2
- package/build/{index-7d9ac7bb.js → index-e4b5116a.js} +2 -2
- package/build/{index-a9ce9bc6.js → index-e68af67b.js} +7 -7
- package/build/{index-71bb99e8.js → index-ed4ded3f.js} +15 -15
- package/build/{index-975e719c.js → index-eda5fead.js} +32 -32
- package/build/{index-dfe2cfe0.js → index-f17348eb.js} +13 -13
- package/build/{index-22713a13.js → index-f28c14cb.js} +2 -2
- package/build/{index-c5ad69a4.js → index-f48586bc.js} +1 -1
- package/build/index.js +225 -236
- package/build/{labelSorting-7dec075d.js → labelSorting-161c37b3.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-7e7ba8ca.js → logoIcon-f1794acb.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 +126 -122
- 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-75575422.js → post-738fb70a.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-2bcfb4ce.js → store-953fd695.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-decf99ef.js → surveyThankyouCard-82c29018.js} +5 -5
- package/build/{text-fd8c6f4e.js → text-cdee258b.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-d61159a9.js → translationsProvider-99232afb.js} +1 -1
- package/build/{treePopoverMenu-e3cb4989.js → treePopoverMenu-da12df14.js} +19 -19
- package/build/{index-f5357c6d.js → types-e58583f3.js} +16 -2
- package/build/types.js +2 -2
- package/build/{useCategory-b91aac67.js → useCategory-6a8fc45f.js} +5 -5
- package/build/{useHealthToolCache-0d4ed8b2.js → useHealthToolCache-4091e8ff.js} +1 -1
- package/build/{usePlacesAutocomplete-99ea6f27.js → usePlacesAutocomplete-12e1dddb.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-0cee2298.js → utils-7415741d.js} +2 -2
- package/build/{utils-5ff7297b.js → utils-7e137398.js} +2 -2
- package/build/{utils-b50918be.js → utils-a2e2121c.js} +5 -5
- package/build/{utils-a2444b2a.js → utils-f1ee144d.js} +3 -3
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/GeneralInfo-144082bf.js +0 -5111
- package/build/components/molecules/ratingStars/RatingStar.d.ts +0 -3
- package/build/components/molecules/ratingStars/RatingStars.d.ts +0 -4
- package/build/components/molecules/ratingStars/RatingStarsInput.d.ts +0 -4
- package/build/components/molecules/ratingStars/index.const.d.ts +0 -1
- package/build/components/molecules/ratingStars/index.d.ts +0 -4
- package/build/components/molecules/ratingStars/index.types.d.ts +0 -23
- package/build/esm/GeneralInfo-d09a7163.js +0 -5068
- package/build/esm/components/molecules/ratingStars/RatingStar.d.ts +0 -3
- package/build/esm/components/molecules/ratingStars/RatingStars.d.ts +0 -4
- package/build/esm/components/molecules/ratingStars/RatingStarsInput.d.ts +0 -4
- package/build/esm/components/molecules/ratingStars/index.const.d.ts +0 -1
- package/build/esm/components/molecules/ratingStars/index.d.ts +0 -4
- package/build/esm/components/molecules/ratingStars/index.types.d.ts +0 -23
- package/build/esm/icons/StarFull.d.ts +0 -4
- package/build/esm/icons/StarHalf.d.ts +0 -4
- 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-fca702eb.js +0 -16
- package/build/esm/utils-9b2ad9e5.js +0 -15
- package/build/icons/StarFull.d.ts +0 -4
- package/build/icons/StarHalf.d.ts +0 -4
- 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-2cdd78b8.js +0 -19
- package/build/utils-1a9edc75.js +0 -18
- /package/build/{BMI_BOYS.percentile.monthly-1ceb0666.js → BMI_BOYS.percentile.monthly-a1fb8959.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-daadac39.js → BMI_BOYS.percentile.weekly-270cde1f.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-19b60cd2.js → BMI_BOYS.percentile.yearly-d70aa382.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-32eaa389.js → BMI_BOYS.zscore.monthly-b677de84.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-cfdb3ef8.js → BMI_BOYS.zscore.weekly-5355ede6.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-793c719f.js → BMI_BOYS.zscore.yearly-deb430b1.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-6216af7c.js → BMI_GIRLS.percentile.monthly-1803089a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-98d98f7f.js → BMI_GIRLS.percentile.weekly-eab65c56.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-8820968b.js → BMI_GIRLS.percentile.yearly-d2decec0.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-2b10d634.js → BMI_GIRLS.zscore.monthly-d7e57e33.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-fdd0517c.js → BMI_GIRLS.zscore.weekly-a4cf03c9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-22a394a5.js → BMI_GIRLS.zscore.yearly-1c2b8468.js} +0 -0
- /package/build/{ChevronDown-3f7d04a1.js → ChevronDown-a2eb5ade.js} +0 -0
- /package/build/{Close-1f8c9b66.js → Close-01e199d0.js} +0 -0
- /package/build/{Google-a5e04b19.js → Google-2375af77.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-19bbfe63.js → HEAD CIRCUM_BOYS.percentile.monthly-309adc58.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-8aeabb51.js → HEAD CIRCUM_BOYS.percentile.weekly-b2b8cc5c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-1cd23123.js → HEAD CIRCUM_BOYS.percentile.yearly-fc276e88.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b573e11d.js → HEAD CIRCUM_BOYS.zscore.monthly-c2040b09.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-85cd9286.js → HEAD CIRCUM_BOYS.zscore.weekly-c8412342.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-a9f3a551.js → HEAD CIRCUM_BOYS.zscore.yearly-fbf4c99a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-94ae65c8.js → HEAD CIRCUM_GIRLS.percentile.monthly-c91634b0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-4116b288.js → HEAD CIRCUM_GIRLS.percentile.weekly-aea96844.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4a0acc9c.js → HEAD CIRCUM_GIRLS.percentile.yearly-cbcb31f4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-ea78f840.js → HEAD CIRCUM_GIRLS.zscore.monthly-ef2b09b7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-537f51e7.js → HEAD CIRCUM_GIRLS.zscore.weekly-e9d716b6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-fbaf8330.js → HEAD CIRCUM_GIRLS.zscore.yearly-3c2fd593.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-e5edb3d8.js → HEIGHT_BOYS.percentile.monthly-fa6abddf.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-65c1497e.js → HEIGHT_BOYS.percentile.weekly-ac3bf414.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-e7139339.js → HEIGHT_BOYS.percentile.yearly-811e1c69.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-9d600b13.js → HEIGHT_BOYS.zscore.monthly-ba47bff1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-a9a1f95d.js → HEIGHT_BOYS.zscore.weekly-5ed0c523.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-3580c407.js → HEIGHT_BOYS.zscore.yearly-34d6c76a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-e241faf4.js → HEIGHT_GIRLS.percentile.monthly-c540acec.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-706d6fe1.js → HEIGHT_GIRLS.percentile.weekly-0d7997b0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-ceef6782.js → HEIGHT_GIRLS.percentile.yearly-6ab33a0d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-a74bc84c.js → HEIGHT_GIRLS.zscore.monthly-f5058c85.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-5a5b53a1.js → HEIGHT_GIRLS.zscore.weekly-c07a9932.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-8658924d.js → HEIGHT_GIRLS.zscore.yearly-903c8459.js} +0 -0
- /package/build/{Locale-11e16821.js → Locale-84c7ea1d.js} +0 -0
- /package/build/{Visible-641dc13a.js → Visible-af919995.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-e247f58c.js → WEIGHT_BOYS.percentile.monthly-aea06477.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-768cc514.js → WEIGHT_BOYS.percentile.weekly-b4c99349.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-d90cb9e5.js → WEIGHT_BOYS.percentile.yearly-6ff8c8f5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e84f874d.js → WEIGHT_BOYS.zscore.monthly-ca48dbd5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-de9b35a4.js → WEIGHT_BOYS.zscore.weekly-62285867.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-3704f300.js → WEIGHT_BOYS.zscore.yearly-ba00391e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-61d9cf2d.js → WEIGHT_GIRLS.percentile.monthly-ce1cb779.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-bc745ee3.js → WEIGHT_GIRLS.percentile.weekly-f436def1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-78da2e9e.js → WEIGHT_GIRLS.percentile.yearly-3a135574.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-5ad1bd58.js → WEIGHT_GIRLS.zscore.monthly-018c2326.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-02eed4aa.js → WEIGHT_GIRLS.zscore.weekly-4b9af28c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-b9228b02.js → WEIGHT_GIRLS.zscore.yearly-10db2708.js} +0 -0
- /package/build/{ageGenerate-38c4ee7f.js → ageGenerate-de8cc8fc.js} +0 -0
- /package/build/{animation-19d1bad7.js → animation-acc1971d.js} +0 -0
- /package/build/{constants-06224b18.js → constants-0fec3569.js} +0 -0
- /package/build/{constants-11512981.js → constants-506e4d40.js} +0 -0
- /package/build/{constants-33b39074.js → constants-b234fccd.js} +0 -0
- /package/build/{dataTransform-5dc0059c.js → dataTransform-5eb9939e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-0dba699d.js → BMI_BOYS.percentile.monthly-8b889b55.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b77b41d9.js → BMI_BOYS.percentile.weekly-e36cd385.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-e9307ec4.js → BMI_BOYS.percentile.yearly-bc8d8848.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-35c8a976.js → BMI_BOYS.zscore.monthly-9cf50908.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-709021fa.js → BMI_BOYS.zscore.weekly-04ffb038.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-a1544d29.js → BMI_BOYS.zscore.yearly-0f1206dc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-c57586f8.js → BMI_GIRLS.percentile.monthly-a1baa42d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-eb4dbece.js → BMI_GIRLS.percentile.weekly-14184884.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-f521846f.js → BMI_GIRLS.percentile.yearly-52adc423.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-93ad36c0.js → BMI_GIRLS.zscore.monthly-e49adc4c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-b29a4100.js → BMI_GIRLS.zscore.weekly-cdb8f033.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-02805036.js → BMI_GIRLS.zscore.yearly-77334dd7.js} +0 -0
- /package/build/esm/{ChevronDown-f0d305ad.js → ChevronDown-1fc91841.js} +0 -0
- /package/build/esm/{Close-65cb2752.js → Close-39790a50.js} +0 -0
- /package/build/esm/{Google-7486db9d.js → Google-341e7d4a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-8e87698f.js → HEAD CIRCUM_BOYS.percentile.monthly-0f899a09.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d181eb5a.js → HEAD CIRCUM_BOYS.percentile.weekly-e0983a19.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-db125c5e.js → HEAD CIRCUM_BOYS.percentile.yearly-9bca61cd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4552e346.js → HEAD CIRCUM_BOYS.zscore.monthly-95cd5071.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-35dafdff.js → HEAD CIRCUM_BOYS.zscore.weekly-a16608c5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-80cccc7e.js → HEAD CIRCUM_BOYS.zscore.yearly-2bc30b52.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-2ee3f162.js → HEAD CIRCUM_GIRLS.percentile.monthly-ecc1a579.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-cb9eae85.js → HEAD CIRCUM_GIRLS.percentile.weekly-0ecec686.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-2bcfd0f9.js → HEAD CIRCUM_GIRLS.percentile.yearly-df5c4209.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-74dcd22a.js → HEAD CIRCUM_GIRLS.zscore.monthly-1e11af82.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-41f75d42.js → HEAD CIRCUM_GIRLS.zscore.weekly-aa82cf27.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b9f6e507.js → HEAD CIRCUM_GIRLS.zscore.yearly-d77b20fb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-aacba6ad.js → HEIGHT_BOYS.percentile.monthly-5487800a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-c15ea54f.js → HEIGHT_BOYS.percentile.weekly-fc832d50.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-aeb682ac.js → HEIGHT_BOYS.percentile.yearly-4530b852.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-9a4f3449.js → HEIGHT_BOYS.zscore.monthly-3a9a6eba.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b581f665.js → HEIGHT_BOYS.zscore.weekly-20d32341.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-7d19fd0f.js → HEIGHT_BOYS.zscore.yearly-54595d4f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-f8b26d9d.js → HEIGHT_GIRLS.percentile.monthly-e70ace1f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-12daee04.js → HEIGHT_GIRLS.percentile.weekly-aae43293.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-946cf06e.js → HEIGHT_GIRLS.percentile.yearly-94fc6ddd.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-01da306a.js → HEIGHT_GIRLS.zscore.monthly-864ca3ce.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-b2bbba45.js → HEIGHT_GIRLS.zscore.weekly-e7a2eb25.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-e79df2df.js → HEIGHT_GIRLS.zscore.yearly-41f5c4e0.js} +0 -0
- /package/build/esm/{Locale-1a4dde1a.js → Locale-1fefc2dd.js} +0 -0
- /package/build/esm/{Visible-e1785571.js → Visible-30249f32.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-693520b5.js → WEIGHT_BOYS.percentile.monthly-0e112cc1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-969d7e5c.js → WEIGHT_BOYS.percentile.weekly-81037e90.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-912d64ee.js → WEIGHT_BOYS.percentile.yearly-123bada9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-7bc163d6.js → WEIGHT_BOYS.zscore.monthly-ddfe2af6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-740819f1.js → WEIGHT_BOYS.zscore.weekly-c88401a1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-5836bd2f.js → WEIGHT_BOYS.zscore.yearly-e64cc73e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-08b7f4b5.js → WEIGHT_GIRLS.percentile.monthly-77cb7c42.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-5818cae3.js → WEIGHT_GIRLS.percentile.weekly-8106da8f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-7f5d9f3c.js → WEIGHT_GIRLS.percentile.yearly-0fd4bcb7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-095c88ca.js → WEIGHT_GIRLS.zscore.monthly-63dba62d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-af1fe973.js → WEIGHT_GIRLS.zscore.weekly-406ecdb0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-06d970e8.js → WEIGHT_GIRLS.zscore.yearly-d92c06e8.js} +0 -0
- /package/build/esm/{ageGenerate-910ac80c.js → ageGenerate-832a74e7.js} +0 -0
- /package/build/esm/{animation-16b5643b.js → animation-5b168565.js} +0 -0
- /package/build/esm/{constants-786742dd.js → constants-311d12cf.js} +0 -0
- /package/build/esm/{constants-a7a2261a.js → constants-51e0ef5c.js} +0 -0
- /package/build/esm/{constants-1650c8cc.js → constants-55f96dd0.js} +0 -0
- /package/build/esm/{dataTransform-48088b90.js → dataTransform-4616ff34.js} +0 -0
- /package/build/esm/{index-bbbd83e5.js → index-1d3c4e1b.js} +0 -0
- /package/build/esm/{index-eb80e0e4.js → index-26f109c5.js} +0 -0
- /package/build/esm/{index-c7725ad6.js → index-47eb0c1e.js} +0 -0
- /package/build/esm/{index-a96b3cbb.js → index-6d3f94f9.js} +0 -0
- /package/build/esm/{index-84da0094.js → index-8051ae38.js} +0 -0
- /package/build/esm/{index-7eaa88e2.js → index-863b83d6.js} +0 -0
- /package/build/esm/{index-3b04b698.js → index-8f5b4762.js} +0 -0
- /package/build/esm/{index-d2ab2f79.js → index-e5b36892.js} +0 -0
- /package/build/esm/{index.styles-ec097679.js → index.styles-2cd5ded3.js} +0 -0
- /package/build/esm/{localizeNumberFormat-2d35ee62.js → localizeNumberFormat-c7d710e1.js} +0 -0
- /package/build/esm/{normalizeLink-2641055f.js → normalizeLink-985e7c58.js} +0 -0
- /package/build/esm/{number-08c2c073.js → number-51446888.js} +0 -0
- /package/build/esm/{paths-8c92e714.js → paths-c9362431.js} +0 -0
- /package/build/esm/{shared-e751cd0d.js → shared-e9fe4d41.js} +0 -0
- /package/build/esm/{translationsContext-9a23580d.js → translationsContext-ca8fa406.js} +0 -0
- /package/build/esm/{tslib.es6-b66cc7c7.js → tslib.es6-f67c6f6f.js} +0 -0
- /package/build/esm/{types-61af8de6.js → types-a5a890ee.js} +0 -0
- /package/build/esm/{useIsInit-b0d33e87.js → useIsInit-88258e2b.js} +0 -0
- /package/build/esm/{useOutsideClick-273250ba.js → useOutsideClick-fca4f909.js} +0 -0
- /package/build/esm/{useScrollbarSize-6cbd67f8.js → useScrollbarSize-34825c19.js} +0 -0
- /package/build/esm/{useUniqueId-a77bb58d.js → useUniqueId-5e00c0a8.js} +0 -0
- /package/build/esm/{utils-b97786aa.js → utils-a32cf217.js} +0 -0
- /package/build/{index-c6c30f9f.js → index-0ef430ac.js} +0 -0
- /package/build/{index-d84247b3.js → index-136020c2.js} +0 -0
- /package/build/{index-ba57394f.js → index-224b66f9.js} +0 -0
- /package/build/{index-897c0ebe.js → index-35cd77a0.js} +0 -0
- /package/build/{index-cd2c1241.js → index-bc19cdcd.js} +0 -0
- /package/build/{index-ca538f60.js → index-f0a5c03e.js} +0 -0
- /package/build/{index-d05b0695.js → index-f7d0113e.js} +0 -0
- /package/build/{index-17fc29e5.js → index-fb5bb8b0.js} +0 -0
- /package/build/{index.styles-cfef019d.js → index.styles-2a92bd70.js} +0 -0
- /package/build/{localizeNumberFormat-3a283196.js → localizeNumberFormat-31281dd0.js} +0 -0
- /package/build/{normalizeLink-37dcc032.js → normalizeLink-a7165467.js} +0 -0
- /package/build/{number-274975a1.js → number-378fad7c.js} +0 -0
- /package/build/{paths-1653905a.js → paths-3a80c7c1.js} +0 -0
- /package/build/{shared-86da99c5.js → shared-a5e0a90e.js} +0 -0
- /package/build/{translationsContext-b3127cab.js → translationsContext-10f7b0e2.js} +0 -0
- /package/build/{tslib.es6-d3b8ad7b.js → tslib.es6-a7b592ce.js} +0 -0
- /package/build/{types-d290b855.js → types-4cd12ed8.js} +0 -0
- /package/build/{useIsInit-15819adb.js → useIsInit-868bde04.js} +0 -0
- /package/build/{useOutsideClick-729d10d6.js → useOutsideClick-b062e042.js} +0 -0
- /package/build/{useScrollbarSize-df87ceef.js → useScrollbarSize-f47f0a8e.js} +0 -0
- /package/build/{useUniqueId-e67c1056.js → useUniqueId-1f54ee4d.js} +0 -0
- /package/build/{utils-802ed24c.js → utils-be09deb2.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,58 +1,57 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-f67c6f6f.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback, forwardRef, useImperativeHandle, memo, useLayoutEffect } from 'react';
|
|
3
|
-
import { createStyles, Box, useMantineTheme, Button as Button$1, Autocomplete, Input as Input$1, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, Flex, clsx, TextInput, NumberInput as NumberInput$1, rem,
|
|
3
|
+
import { createStyles, Box, useMantineTheme, Button as Button$1, Autocomplete, Input as Input$1, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, Flex, clsx, TextInput, NumberInput as NumberInput$1, rem, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import debounce from 'lodash/debounce';
|
|
5
5
|
import { createFormContext, useForm } from '@mantine/form';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-44ecf83d.js';
|
|
8
8
|
import { getCookie, setCookie } from './miscCookieHelper.js';
|
|
9
|
-
import { u as useTranslations } from './index-
|
|
10
|
-
import { T as TranslationsContext } from './translationsContext-
|
|
11
|
-
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-
|
|
12
|
-
import { T as Text } from './index-
|
|
13
|
-
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-
|
|
14
|
-
import { D as DatePicker } from './index-
|
|
15
|
-
import { B as Button } from './index-
|
|
16
|
-
import './index.styles-
|
|
17
|
-
import { useIntersection } from '@mantine/hooks';
|
|
18
|
-
import './index-
|
|
19
|
-
import { G as GlobalTextStyleNew, C as CustomStylesType, F as FontWeight } from './text-
|
|
20
|
-
import './index-
|
|
21
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
9
|
+
import { u as useTranslations } from './index-1a9b8d19.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-ca8fa406.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-a32cf217.js';
|
|
12
|
+
import { T as Text } from './index-37a6819d.js';
|
|
13
|
+
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-1dff51d6.js';
|
|
14
|
+
import { D as DatePicker } from './index-bebe62e8.js';
|
|
15
|
+
import { B as Button } from './index-408acb89.js';
|
|
16
|
+
import './index.styles-2cd5ded3.js';
|
|
17
|
+
import { useIntersection, useScrollLock } from '@mantine/hooks';
|
|
18
|
+
import './index-78e1d080.js';
|
|
19
|
+
import { G as GlobalTextStyleNew, C as CustomStylesType, F as FontWeight } from './text-48d81c22.js';
|
|
20
|
+
import './index-6ed7bdf7.js';
|
|
21
|
+
import { M as MAPPED_LOCALE } from './utils-bb4326ab.js';
|
|
22
22
|
import { DateInput } from '@mantine/dates';
|
|
23
|
-
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-
|
|
24
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
25
|
-
import './index-
|
|
26
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-
|
|
27
|
-
import { H as Heading$1 } from './index-
|
|
28
|
-
import { t as translationsMap$1 } from './translationsProvider-
|
|
29
|
-
import { L as LOCALE } from './Locale-
|
|
23
|
+
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-13ffa8f1.js';
|
|
24
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-7657fecc.js';
|
|
25
|
+
import './index-1d3c4e1b.js';
|
|
26
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-e888b953.js';
|
|
27
|
+
import { H as Heading$1 } from './index-4ba2447d.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-8472bb49.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-1fefc2dd.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
32
32
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
33
33
|
import styled from '@emotion/styled';
|
|
34
34
|
import { theme } from './miscTheme.js';
|
|
35
|
-
import { u as useTextStyles, C as ChoiceField, T as TextField, E as ErrorIcon } from './index-
|
|
36
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
37
|
-
import { M as MantineProvider } from './index-
|
|
38
|
-
import { i as isVideo } from './index-
|
|
39
|
-
import {
|
|
35
|
+
import { u as useTextStyles, C as ChoiceField, T as TextField, E as ErrorIcon } from './index-4af5003e.js';
|
|
36
|
+
import { T as TogetherComponentGlobalContext } from './utils-0d847619.js';
|
|
37
|
+
import { M as MantineProvider } from './index-cdf443ee.js';
|
|
38
|
+
import { i as isVideo } from './index-863b83d6.js';
|
|
39
|
+
import { u as useScreenSize } from './index-f00c5b3c.js';
|
|
40
40
|
import { motion } from 'framer-motion';
|
|
41
41
|
import { createPortal } from 'react-dom';
|
|
42
42
|
import { ChevronDown } from '@hhgtech/icons/arrow';
|
|
43
43
|
import { MapPin } from '@hhgtech/icons/core';
|
|
44
|
-
import { I as InputDate } from './InputDate-
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import { D as DrawerComponent } from './index-26b0cb59.js';
|
|
48
|
-
import { C as Close } from './Close-65cb2752.js';
|
|
44
|
+
import { I as InputDate } from './InputDate-fae872e9.js';
|
|
45
|
+
import { D as DrawerComponent } from './index-fa79fecb.js';
|
|
46
|
+
import { C as Close } from './Close-39790a50.js';
|
|
49
47
|
import './constantsIsProduction.js';
|
|
50
|
-
import './normalizeLink-
|
|
48
|
+
import './normalizeLink-985e7c58.js';
|
|
51
49
|
import '@hhgtech/icons/other';
|
|
50
|
+
import '@mantine/carousel';
|
|
52
51
|
import 'classnames';
|
|
53
|
-
import './useUniqueId-
|
|
52
|
+
import './useUniqueId-5e00c0a8.js';
|
|
54
53
|
import './constantsSite.js';
|
|
55
|
-
import './shared-
|
|
54
|
+
import './shared-e9fe4d41.js';
|
|
56
55
|
import '@mantine/notifications';
|
|
57
56
|
import 'date-fns/locale';
|
|
58
57
|
import './constantsRiskScreener.js';
|
|
@@ -69,12 +68,11 @@ import './i18n-values/vi-VN_MB.js';
|
|
|
69
68
|
import './i18n-values/zh-SG.js';
|
|
70
69
|
import './i18n-values/zh-TW.js';
|
|
71
70
|
import '@emotion/react';
|
|
72
|
-
import './index-
|
|
71
|
+
import './index-8f5b4762.js';
|
|
73
72
|
import 'slugify';
|
|
74
73
|
import 'string-format';
|
|
75
74
|
import './togetherApiPaths.js';
|
|
76
|
-
import './constants-
|
|
77
|
-
import './constants-9edb5de7.js';
|
|
75
|
+
import './constants-311d12cf.js';
|
|
78
76
|
import 'vaul';
|
|
79
77
|
|
|
80
78
|
const LeadGenComponentContext = createContext({});
|
|
@@ -935,7 +933,7 @@ const Description = (_a) => {
|
|
|
935
933
|
|
|
936
934
|
const LeadGenContext$1 = createContext({});
|
|
937
935
|
|
|
938
|
-
var useStyles$
|
|
936
|
+
var useStyles$2 = createStyles(() => {
|
|
939
937
|
return {
|
|
940
938
|
control: {},
|
|
941
939
|
};
|
|
@@ -998,7 +996,7 @@ const TitleBlock$1 = ({ children, align, }) => (React__default.createElement("h2
|
|
|
998
996
|
|
|
999
997
|
const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, styles, classNames, popoverProps, }) => {
|
|
1000
998
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
1001
|
-
const { classes, cx } = useStyles$
|
|
999
|
+
const { classes, cx } = useStyles$2(undefined, {
|
|
1002
1000
|
name: 'LeadGen__Field',
|
|
1003
1001
|
styles,
|
|
1004
1002
|
classNames,
|
|
@@ -1086,7 +1084,7 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1086
1084
|
})));
|
|
1087
1085
|
};
|
|
1088
1086
|
|
|
1089
|
-
var useStyles$
|
|
1087
|
+
var useStyles$1 = createStyles((theme) => {
|
|
1090
1088
|
return {
|
|
1091
1089
|
root: {},
|
|
1092
1090
|
header: {},
|
|
@@ -1116,7 +1114,7 @@ const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps,
|
|
|
1116
1114
|
const { listBlockAdded, leadFormConfig: { form, validateObj }, validatingEmailRef, validatingPhoneRef,
|
|
1117
1115
|
// formRef,
|
|
1118
1116
|
setFormRef, onClose, onOtherSubmit, actionBlocks, locale, setShowOtpPhone, onSubmit, } = useContext(LeadGenComponentContext);
|
|
1119
|
-
const { classes, cx } = useStyles$
|
|
1117
|
+
const { classes, cx } = useStyles$1(undefined, {
|
|
1120
1118
|
name: 'LeadGen__FormComponent',
|
|
1121
1119
|
styles,
|
|
1122
1120
|
classNames,
|
|
@@ -1210,7 +1208,7 @@ const Form = (props) => {
|
|
|
1210
1208
|
return showThankyou || showOtpPhone ? null : React__default.createElement(FormComponent, Object.assign({}, props));
|
|
1211
1209
|
};
|
|
1212
1210
|
|
|
1213
|
-
var useStyles
|
|
1211
|
+
var useStyles = createStyles(() => {
|
|
1214
1212
|
return {
|
|
1215
1213
|
root: {},
|
|
1216
1214
|
header: {},
|
|
@@ -1235,7 +1233,7 @@ const OtpBlockComponent = ({ otpData, onSuccess, autoSendWhenOpen, className, st
|
|
|
1235
1233
|
const [displayPhone, setDisplayPhone] = useState('');
|
|
1236
1234
|
const formatPhoneNumberIntlRef = useRef();
|
|
1237
1235
|
const [isSubmitLoading, setIsSubmitLoading] = useState(false);
|
|
1238
|
-
const { classes, cx } = useStyles
|
|
1236
|
+
const { classes, cx } = useStyles(undefined, {
|
|
1239
1237
|
name: 'LeadGen__OTP',
|
|
1240
1238
|
styles,
|
|
1241
1239
|
classNames,
|
|
@@ -1404,9 +1402,6 @@ var enPH = {
|
|
|
1404
1402
|
"lead.empty.title": "Oops, seem your information is empty, do you want to submit the information again?",
|
|
1405
1403
|
"lead.empty.cancel": "Cancel",
|
|
1406
1404
|
"lead.empty.submitAgain": "Submit again",
|
|
1407
|
-
"inlineFreebie.freeSample.title": "Free Sample",
|
|
1408
|
-
"inlineFreebie.luckyDrawGift.title": "Lucky-draw Gift",
|
|
1409
|
-
"inlineFreebie.value": "Value",
|
|
1410
1405
|
"common.day": "Day",
|
|
1411
1406
|
"common.month": "Month",
|
|
1412
1407
|
"common.year": "Year"
|
|
@@ -1430,9 +1425,6 @@ var hiIN = {
|
|
|
1430
1425
|
"lead.empty.title": "ऊप्स! लगता है आपकी जानकारी खाली है। क्या आप जानकारी फिर से सबमिट करना चाहते हैं?",
|
|
1431
1426
|
"lead.empty.cancel": "रद्द करें",
|
|
1432
1427
|
"lead.empty.submitAgain": "फिर से सबमिट करें",
|
|
1433
|
-
"inlineFreebie.freeSample.title": "मुफ्त नमूना",
|
|
1434
|
-
"inlineFreebie.luckyDrawGift.title": "लकी-ड्रा गिफ्ट",
|
|
1435
|
-
"inlineFreebie.value": "मूल्य",
|
|
1436
1428
|
"common.day": "साल",
|
|
1437
1429
|
"common.month": "महीना",
|
|
1438
1430
|
"common.year": ""
|
|
@@ -1458,9 +1450,6 @@ var idID = {
|
|
|
1458
1450
|
"lead.empty.title": "Oops, sepertinya informasi Anda kosong. Apakah Anda ingin mengirimkan informasi lagi?",
|
|
1459
1451
|
"lead.empty.cancel": "Batal",
|
|
1460
1452
|
"lead.empty.submitAgain": "Kirim lagi",
|
|
1461
|
-
"inlineFreebie.freeSample.title": "Sampel Gratis",
|
|
1462
|
-
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1463
|
-
"inlineFreebie.value": "Nilai",
|
|
1464
1453
|
"common.day": "Hari",
|
|
1465
1454
|
"common.month": "Bulan",
|
|
1466
1455
|
"common.year": "Tahun"
|
|
@@ -1486,9 +1475,6 @@ var kmKH = {
|
|
|
1486
1475
|
"lead.empty.title": "អូុបស! ហាក់ដូចជាព័ត៌មានរបស់អ្នកទទេ។ តើអ្នកចង់ដាក់ស្នើព័ត៌មានម្តងទៀតទេ?",
|
|
1487
1476
|
"lead.empty.cancel": "លុបចោល",
|
|
1488
1477
|
"lead.empty.submitAgain": "ដាក់ស្នើម្ដងទៀត",
|
|
1489
|
-
"inlineFreebie.freeSample.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1490
|
-
"inlineFreebie.luckyDrawGift.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1491
|
-
"inlineFreebie.value": "តម្លៃ",
|
|
1492
1478
|
"common.day": "ឆ្នាំ",
|
|
1493
1479
|
"common.month": "ខែ",
|
|
1494
1480
|
"common.year": "ថ្ងៃ"
|
|
@@ -1514,9 +1500,6 @@ var msMY = {
|
|
|
1514
1500
|
"lead.empty.title": "Oops, nampaknya maklumat anda kosong. Adakah anda ingin menghantar maklumat semula?",
|
|
1515
1501
|
"lead.empty.cancel": "Batal",
|
|
1516
1502
|
"lead.empty.submitAgain": "Hantar semula",
|
|
1517
|
-
"inlineFreebie.freeSample.title": "Sampel Percuma",
|
|
1518
|
-
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1519
|
-
"inlineFreebie.value": "Nilai",
|
|
1520
1503
|
"common.day": "Hari",
|
|
1521
1504
|
"common.month": "Bulan",
|
|
1522
1505
|
"common.year": "Tahun"
|
|
@@ -1542,9 +1525,6 @@ var myMM = {
|
|
|
1542
1525
|
"lead.empty.title": "အုပ်စ်! သင့်အချက်အလက်သည် ဗလာဖြစ်နေသလိုဖြစ်သည်။ ထပ်မံတင်သွင်းလိုပါသလား?",
|
|
1543
1526
|
"lead.empty.cancel": "မလုပ်ဆောင်ပါ",
|
|
1544
1527
|
"lead.empty.submitAgain": "ထပ်မံတင်သွင်းပါ",
|
|
1545
|
-
"inlineFreebie.freeSample.title": "အခမဲ့အစားအစာ",
|
|
1546
|
-
"inlineFreebie.luckyDrawGift.title": "အခမဲ့အစားအစာ",
|
|
1547
|
-
"inlineFreebie.value": "တန်ဖိုး",
|
|
1548
1528
|
"common.day": "ရက်",
|
|
1549
1529
|
"common.month": "လ",
|
|
1550
1530
|
"common.year": "နှစ်"
|
|
@@ -1570,9 +1550,6 @@ var thTH = {
|
|
|
1570
1550
|
"lead.empty.title": "อุ๊ปส์! ดูเหมือนว่าข้อมูลของคุณว่างเปล่า คุณต้องการส่งข้อมูลอีกครั้งหรือไม่?",
|
|
1571
1551
|
"lead.empty.cancel": "ยกเลิก",
|
|
1572
1552
|
"lead.empty.submitAgain": "ส่งอีกครั้ง",
|
|
1573
|
-
"inlineFreebie.freeSample.title": "ตัวอย่างฟรี",
|
|
1574
|
-
"inlineFreebie.luckyDrawGift.title": "ของรางวัลที่ถูกรางวัล",
|
|
1575
|
-
"inlineFreebie.value": "ค่า",
|
|
1576
1553
|
"common.day": "วัน",
|
|
1577
1554
|
"common.month": "เดือน",
|
|
1578
1555
|
"common.year": "ปี"
|
|
@@ -1609,9 +1586,6 @@ var viVN = {
|
|
|
1609
1586
|
"lead.empty.title": "Oops, có vẻ như thông tin của bạn đang trống. Bạn có muốn gửi lại thông tin không?",
|
|
1610
1587
|
"lead.empty.cancel": "Hủy",
|
|
1611
1588
|
"lead.empty.submitAgain": "Gửi lại",
|
|
1612
|
-
"inlineFreebie.freeSample.title": "Dùng thử miễn phí",
|
|
1613
|
-
"inlineFreebie.luckyDrawGift.title": "Phần thưởng may mắn",
|
|
1614
|
-
"inlineFreebie.value": "Trị giá",
|
|
1615
1589
|
"common.day": "Ngày",
|
|
1616
1590
|
"common.month": "Tháng",
|
|
1617
1591
|
"common.year": "Năm"
|
|
@@ -1637,9 +1611,6 @@ var zhTW = {
|
|
|
1637
1611
|
"lead.empty.title": "哎呀,您的資訊似乎是空的,您想要重新提交資訊嗎?",
|
|
1638
1612
|
"lead.empty.cancel": "取消",
|
|
1639
1613
|
"lead.empty.submitAgain": "重新提交",
|
|
1640
|
-
"inlineFreebie.freeSample.title": "免費試用",
|
|
1641
|
-
"inlineFreebie.luckyDrawGift.title": "幸運抽獎禮品",
|
|
1642
|
-
"inlineFreebie.value": "價值",
|
|
1643
1614
|
"common.day": "日",
|
|
1644
1615
|
"common.month": "月",
|
|
1645
1616
|
"common.year": "年"
|
|
@@ -3297,6 +3268,26 @@ const FloatingLayout = ({ popupId, url, title, urlText, titleAlign, subtitle, su
|
|
|
3297
3268
|
React__default.createElement(CloseButton, { onClose: onClose, containerClassName: "close-button-top-right" }))))));
|
|
3298
3269
|
};
|
|
3299
3270
|
|
|
3271
|
+
function isMac() {
|
|
3272
|
+
return testPlatform(/^Mac/);
|
|
3273
|
+
}
|
|
3274
|
+
function isIPhone() {
|
|
3275
|
+
return testPlatform(/^iPhone/);
|
|
3276
|
+
}
|
|
3277
|
+
function isIPad() {
|
|
3278
|
+
return (testPlatform(/^iPad/) ||
|
|
3279
|
+
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
3280
|
+
(isMac() && navigator.maxTouchPoints > 1));
|
|
3281
|
+
}
|
|
3282
|
+
function isIOS() {
|
|
3283
|
+
return isIPhone() || isIPad();
|
|
3284
|
+
}
|
|
3285
|
+
function testPlatform(re) {
|
|
3286
|
+
return typeof window !== 'undefined' && window.navigator != null
|
|
3287
|
+
? re.test(window.navigator.platform)
|
|
3288
|
+
: undefined;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3300
3291
|
function useScrollTo() {
|
|
3301
3292
|
const scrollTo = useCallback((element, to, duration = 500) => {
|
|
3302
3293
|
if (!element)
|
|
@@ -3320,35 +3311,6 @@ function useScrollTo() {
|
|
|
3320
3311
|
return scrollTo;
|
|
3321
3312
|
}
|
|
3322
3313
|
|
|
3323
|
-
const useViewportDimensions = () => {
|
|
3324
|
-
const dimensionsRef = useRef({ width: 0, height: 0 });
|
|
3325
|
-
const [dimensions, setDimensions] = useState(() => ({
|
|
3326
|
-
width: window.screen.availWidth,
|
|
3327
|
-
height: window.screen.availHeight,
|
|
3328
|
-
}));
|
|
3329
|
-
useEffect(() => {
|
|
3330
|
-
var _a;
|
|
3331
|
-
function visualViewport(e) {
|
|
3332
|
-
if (dimensionsRef.current.width === e.target.width &&
|
|
3333
|
-
dimensionsRef.current.height === e.target.height) {
|
|
3334
|
-
return;
|
|
3335
|
-
}
|
|
3336
|
-
const newDimensions = {
|
|
3337
|
-
width: e.target.width,
|
|
3338
|
-
height: e.target.height,
|
|
3339
|
-
};
|
|
3340
|
-
dimensionsRef.current = newDimensions;
|
|
3341
|
-
setDimensions(newDimensions);
|
|
3342
|
-
}
|
|
3343
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3344
|
-
return () => {
|
|
3345
|
-
var _a;
|
|
3346
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3347
|
-
};
|
|
3348
|
-
}, []);
|
|
3349
|
-
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3350
|
-
};
|
|
3351
|
-
|
|
3352
3314
|
// Default handling for Safari & Chrome
|
|
3353
3315
|
function useViewportPushedByKeyboard(threshold = 20) {
|
|
3354
3316
|
const ref = useRef(null);
|
|
@@ -3393,25 +3355,102 @@ function useKeyboardOpen(isAndroid = false) {
|
|
|
3393
3355
|
return keyOpen;
|
|
3394
3356
|
}
|
|
3395
3357
|
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3358
|
+
const useFocusFieldOnDevice = (isMobile, isEnable, gapToCheckAvai = 0) => {
|
|
3359
|
+
const isIos = isIOS();
|
|
3360
|
+
const popupContentRef = useRef(null);
|
|
3361
|
+
const { isPushed, bottomRef } = useViewportPushedByKeyboard();
|
|
3362
|
+
const [bottomSpacing, setBottomSpacing] = useState(0);
|
|
3363
|
+
const [isScrolling, setIsScrolling] = useState(false);
|
|
3364
|
+
const keyOpen = useKeyboardOpen();
|
|
3365
|
+
const isPushedRef = useRef(isPushed);
|
|
3366
|
+
const keyOpenRef = useRef(keyOpen);
|
|
3367
|
+
const bottomSpacingRef = useRef(bottomSpacing);
|
|
3368
|
+
const isScrollingRef = useRef(false);
|
|
3369
|
+
const gapBottomSpace = useRef(40);
|
|
3370
|
+
const initialHeight = useRef(0);
|
|
3371
|
+
const scrollTo = useScrollTo();
|
|
3372
|
+
const handlePopupContentScroll = (formRef) => {
|
|
3373
|
+
if (!isScrollingRef.current && !!(formRef === null || formRef === void 0 ? void 0 : formRef.target)) {
|
|
3374
|
+
const focusableElements = formRef.target.querySelectorAll('input, textarea, select, button, [tabindex]:not([tabindex="-1"])');
|
|
3375
|
+
focusableElements.forEach((el) => {
|
|
3376
|
+
if (el === document.activeElement) {
|
|
3377
|
+
el.blur();
|
|
3378
|
+
}
|
|
3379
|
+
});
|
|
3380
|
+
}
|
|
3381
|
+
};
|
|
3382
|
+
const handleFocus = (e) => {
|
|
3383
|
+
if (!isMobile || !isIos || !isEnable)
|
|
3384
|
+
return;
|
|
3385
|
+
setTimeout(() => {
|
|
3386
|
+
var _a, _b;
|
|
3387
|
+
if (!isPushedRef.current &&
|
|
3388
|
+
keyOpenRef.current &&
|
|
3389
|
+
popupContentRef.current) {
|
|
3390
|
+
const input = e.target;
|
|
3391
|
+
const rect = input.getBoundingClientRect();
|
|
3392
|
+
const inputHeight = rect.height;
|
|
3393
|
+
const inputTop = rect.top;
|
|
3394
|
+
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3395
|
+
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
3396
|
+
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
3397
|
+
const currentScrollY = popupContentRef.current.scrollTop;
|
|
3398
|
+
const viewPort = (isErrorDevice
|
|
3399
|
+
? window.innerHeight * 0.4
|
|
3400
|
+
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height) - gapToCheckAvai;
|
|
3401
|
+
if (currentTop >= viewPort) {
|
|
3402
|
+
const gap = currentTop - viewPort;
|
|
3403
|
+
const targetScrollY = currentScrollY + gap;
|
|
3404
|
+
if (!isNaN(targetScrollY)) {
|
|
3405
|
+
setIsScrolling(true);
|
|
3406
|
+
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
3407
|
+
setTimeout(() => {
|
|
3408
|
+
setIsScrolling(false);
|
|
3409
|
+
}, 500);
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
}, 300);
|
|
3414
|
+
};
|
|
3415
|
+
useEffect(() => {
|
|
3416
|
+
initialHeight.current = window.innerHeight;
|
|
3417
|
+
}, []);
|
|
3418
|
+
useEffect(() => {
|
|
3419
|
+
isPushedRef.current = isPushed;
|
|
3420
|
+
}, [isPushed]);
|
|
3421
|
+
useEffect(() => {
|
|
3422
|
+
keyOpenRef.current = keyOpen;
|
|
3423
|
+
}, [keyOpen]);
|
|
3424
|
+
useEffect(() => {
|
|
3425
|
+
bottomSpacingRef.current = bottomSpacing;
|
|
3426
|
+
}, [bottomSpacing]);
|
|
3427
|
+
useEffect(() => {
|
|
3428
|
+
setBottomSpacing(isMobile && isIos && isEnable
|
|
3429
|
+
? !isPushed && keyOpen
|
|
3430
|
+
? (() => {
|
|
3431
|
+
var _a;
|
|
3432
|
+
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3433
|
+
const isErrorDevice = visualHeight === initialHeight.current;
|
|
3434
|
+
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
3435
|
+
})()
|
|
3436
|
+
: 0
|
|
3437
|
+
: 0);
|
|
3438
|
+
}, [isPushed, keyOpen, isMobile, isIos, isEnable]);
|
|
3439
|
+
useEffect(() => {
|
|
3440
|
+
isScrollingRef.current = isScrolling;
|
|
3441
|
+
}, [isScrolling]);
|
|
3442
|
+
return {
|
|
3443
|
+
popupContentRef,
|
|
3444
|
+
bottomRef,
|
|
3445
|
+
bottomStyle: {
|
|
3446
|
+
height: `${bottomSpacing}px`,
|
|
3447
|
+
width: '100%',
|
|
3448
|
+
transition: 'height .2s ease',
|
|
3449
|
+
},
|
|
3450
|
+
handleFocus,
|
|
3451
|
+
handlePopupContentScroll,
|
|
3452
|
+
};
|
|
3453
|
+
};
|
|
3415
3454
|
|
|
3416
3455
|
function chain(...callbacks) {
|
|
3417
3456
|
return (...args) => {
|
|
@@ -3668,6 +3707,35 @@ function isInput(target) {
|
|
|
3668
3707
|
(target instanceof HTMLElement && target.isContentEditable));
|
|
3669
3708
|
}
|
|
3670
3709
|
|
|
3710
|
+
const useViewportDimensions = () => {
|
|
3711
|
+
const dimensionsRef = useRef({ width: 0, height: 0 });
|
|
3712
|
+
const [dimensions, setDimensions] = useState(() => ({
|
|
3713
|
+
width: window.screen.availWidth,
|
|
3714
|
+
height: window.screen.availHeight,
|
|
3715
|
+
}));
|
|
3716
|
+
useEffect(() => {
|
|
3717
|
+
var _a;
|
|
3718
|
+
function visualViewport(e) {
|
|
3719
|
+
if (dimensionsRef.current.width === e.target.width &&
|
|
3720
|
+
dimensionsRef.current.height === e.target.height) {
|
|
3721
|
+
return;
|
|
3722
|
+
}
|
|
3723
|
+
const newDimensions = {
|
|
3724
|
+
width: e.target.width,
|
|
3725
|
+
height: e.target.height,
|
|
3726
|
+
};
|
|
3727
|
+
dimensionsRef.current = newDimensions;
|
|
3728
|
+
setDimensions(newDimensions);
|
|
3729
|
+
}
|
|
3730
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3731
|
+
return () => {
|
|
3732
|
+
var _a;
|
|
3733
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3734
|
+
};
|
|
3735
|
+
}, []);
|
|
3736
|
+
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3737
|
+
};
|
|
3738
|
+
|
|
3671
3739
|
const StyledLeadGenLightBoxBFooter = styled.div `
|
|
3672
3740
|
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3673
3741
|
padding-inline: var(--spacing-x, 20px);
|
|
@@ -4298,7 +4366,7 @@ const StyledFormContainer = styled.div `
|
|
|
4298
4366
|
*
|
|
4299
4367
|
*/
|
|
4300
4368
|
const FormContainer = (_a) => {
|
|
4301
|
-
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer } = _a, restProps = __rest(_a, ["iconComponent", "title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "header", "footer"]);
|
|
4369
|
+
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer, isLightBoxA, bottomStyle, popupContentRef, handlePopupContentScroll } = _a, restProps = __rest(_a, ["iconComponent", "title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "header", "footer", "isLightBoxA", "bottomStyle", "popupContentRef", "handlePopupContentScroll"]);
|
|
4302
4370
|
const HeaderContent = (React__default.createElement("div", { className: "leadgen-form_header" },
|
|
4303
4371
|
iconComponent,
|
|
4304
4372
|
React__default.createElement(Text, { as: "h2", size: 'h4', variant: "primary", weight: 'semiBold', className: "leadgen-title", "data-align": titleAlign }, title),
|
|
@@ -4308,13 +4376,13 @@ const FormContainer = (_a) => {
|
|
|
4308
4376
|
}
|
|
4309
4377
|
return (React__default.createElement(StyledFormContainer, Object.assign({ className: clsx(className, 'leadgen-form_container'), style: style }, restProps),
|
|
4310
4378
|
React__default.createElement("div", { className: "leadgen-form_wrapper" },
|
|
4311
|
-
|
|
4379
|
+
header ? (React__default.createElement("div", { className: "leadgen-form_scrollable", ref: popupContentRef, onScroll: handlePopupContentScroll },
|
|
4312
4380
|
header,
|
|
4313
4381
|
HeaderContent,
|
|
4314
|
-
React__default.createElement("div", { className: "leadgen-form_body" }, children)
|
|
4315
|
-
|
|
4382
|
+
React__default.createElement("div", { className: "leadgen-form_body" }, children),
|
|
4383
|
+
isLightBoxA && React__default.createElement("div", { style: bottomStyle }))) : (React__default.createElement(React__default.Fragment, null,
|
|
4316
4384
|
HeaderContent,
|
|
4317
|
-
React__default.createElement("div", { className: "leadgen-form_body" }, children))),
|
|
4385
|
+
React__default.createElement("div", { className: "leadgen-form_body", ref: popupContentRef, onScroll: handlePopupContentScroll }, children))),
|
|
4318
4386
|
React__default.createElement("div", { className: "leadgen-form_footer" }, footer))));
|
|
4319
4387
|
};
|
|
4320
4388
|
|
|
@@ -4468,215 +4536,6 @@ const OtpBlock = ({ otpData, onSuccess, autoSendWhenOpen, }) => {
|
|
|
4468
4536
|
} }))))));
|
|
4469
4537
|
};
|
|
4470
4538
|
|
|
4471
|
-
const Gift = ({ className, style }) => {
|
|
4472
|
-
return (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
4473
|
-
React__default.createElement("path", { d: "M15.8337 9.16675V15.8334C15.8337 17.0612 14.8392 18.0556 13.6114 18.0556H6.38921C5.16144 18.0556 4.16699 17.0612 4.16699 15.8334V9.16675", fill: "#FEC7DC" }),
|
|
4474
|
-
React__default.createElement("path", { d: "M10 5.83337V18.0556", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4475
|
-
React__default.createElement("path", { d: "M4.16699 3.8889C4.16699 2.81557 5.0381 1.94446 6.11144 1.94446C8.9881 1.94446 10.0003 5.83335 10.0003 5.83335H6.11144C5.0381 5.83335 4.16699 4.96224 4.16699 3.8889Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4476
|
-
React__default.createElement("path", { d: "M13.8889 5.83335H10C10 5.83335 11.0122 1.94446 13.8889 1.94446C14.9622 1.94446 15.8333 2.81557 15.8333 3.8889C15.8333 4.96224 14.9622 5.83335 13.8889 5.83335Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4477
|
-
React__default.createElement("path", { d: "M15.8337 9.16675V15.8334C15.8337 17.0612 14.8392 18.0556 13.6114 18.0556H6.38921C5.16144 18.0556 4.16699 17.0612 4.16699 15.8334V9.16675", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4478
|
-
React__default.createElement("path", { d: "M16.9443 5.83337H3.05545C2.4418 5.83337 1.94434 6.33084 1.94434 6.94449V8.0556C1.94434 8.66924 2.4418 9.16671 3.05545 9.16671H16.9443C17.558 9.16671 18.0554 8.66924 18.0554 8.0556V6.94449C18.0554 6.33084 17.558 5.83337 16.9443 5.83337Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
4479
|
-
};
|
|
4480
|
-
|
|
4481
|
-
const Star = ({ className, style }) => {
|
|
4482
|
-
return (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
4483
|
-
React__default.createElement("path", { d: "M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z", fill: "#91CAFF" }),
|
|
4484
|
-
React__default.createElement("path", { d: "M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4485
|
-
React__default.createElement("path", { d: "M2.22168 17.7777L5.55501 14.4443", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4486
|
-
React__default.createElement("path", { d: "M1.94434 13.611L2.49989 13.0554", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4487
|
-
React__default.createElement("path", { d: "M6.38867 18.0556L6.94423 17.5", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
4488
|
-
};
|
|
4489
|
-
|
|
4490
|
-
const StyledFreebieCarouselTitle = styled.div `
|
|
4491
|
-
display: flex;
|
|
4492
|
-
align-items: center;
|
|
4493
|
-
gap: ${rem(8)};
|
|
4494
|
-
margin-bottom: ${rem(16)};
|
|
4495
|
-
`;
|
|
4496
|
-
var useStyles = createStyles((theme) => ({
|
|
4497
|
-
indicators: {
|
|
4498
|
-
bottom: 0,
|
|
4499
|
-
gap: rem(4),
|
|
4500
|
-
},
|
|
4501
|
-
indicator: {
|
|
4502
|
-
width: rem(5),
|
|
4503
|
-
height: rem(5),
|
|
4504
|
-
borderRadius: '100%',
|
|
4505
|
-
background: theme.colors.neutral[2],
|
|
4506
|
-
opacity: 1,
|
|
4507
|
-
'&[data-active]': {
|
|
4508
|
-
backgroundColor: theme.fn.primaryColor(),
|
|
4509
|
-
},
|
|
4510
|
-
},
|
|
4511
|
-
container: {
|
|
4512
|
-
padding: `0 0 ${rem(21)} 0`,
|
|
4513
|
-
},
|
|
4514
|
-
root: {
|
|
4515
|
-
marginBottom: rem(16),
|
|
4516
|
-
},
|
|
4517
|
-
}));
|
|
4518
|
-
|
|
4519
|
-
const StyledFreebiesCard = styled.div `
|
|
4520
|
-
display: flex;
|
|
4521
|
-
flex-direction: column;
|
|
4522
|
-
border-radius: ${rem(16)};
|
|
4523
|
-
box-shadow: 0px 32px 32px -16px rgba(0, 0, 0, 0.04),
|
|
4524
|
-
0px 6px 6px -3px rgba(0, 0, 0, 0.04), 0px 3px 3px -1.5px rgba(0, 0, 0, 0.04),
|
|
4525
|
-
0px 1px 1px -0.5px rgba(0, 0, 0, 0.04);
|
|
4526
|
-
background-color: ${theme.colors.white};
|
|
4527
|
-
|
|
4528
|
-
.mantine-AspectRatio-root {
|
|
4529
|
-
width: 100%;
|
|
4530
|
-
|
|
4531
|
-
img {
|
|
4532
|
-
border-radius: ${rem(16)} ${rem(16)} 0 0;
|
|
4533
|
-
margin: 0;
|
|
4534
|
-
}
|
|
4535
|
-
}
|
|
4536
|
-
|
|
4537
|
-
.mantine-Badge-root {
|
|
4538
|
-
height: fit-content;
|
|
4539
|
-
width: fit-content;
|
|
4540
|
-
position: absolute;
|
|
4541
|
-
padding: ${rem(4)} ${rem(8)};
|
|
4542
|
-
border-radius: ${rem(8)};
|
|
4543
|
-
bottom: ${rem(12)};
|
|
4544
|
-
left: ${rem(12)};
|
|
4545
|
-
|
|
4546
|
-
.mantine-Text-root {
|
|
4547
|
-
line-height: ${rem(12)};
|
|
4548
|
-
}
|
|
4549
|
-
|
|
4550
|
-
background-color: #00000080;
|
|
4551
|
-
}
|
|
4552
|
-
`;
|
|
4553
|
-
const StyledImageWrap = styled.div `
|
|
4554
|
-
width: 100%;
|
|
4555
|
-
height: 100%;
|
|
4556
|
-
position: relative;
|
|
4557
|
-
`;
|
|
4558
|
-
|
|
4559
|
-
const FreebieLuckyGiftItem = ({ isHostedByClient, locale, data: { image, name, desc, prize_value, prize_unit, cta_button, winning_slot, }, }) => {
|
|
4560
|
-
const { t } = useTranslations();
|
|
4561
|
-
console.log(prize_value, prize_unit, locale);
|
|
4562
|
-
const formattedPrice = prize_value && prize_unit
|
|
4563
|
-
? currencyFormat(prize_value, locale, prize_unit)
|
|
4564
|
-
: '';
|
|
4565
|
-
return (React__default.createElement(StyledFreebiesCard, null,
|
|
4566
|
-
React__default.createElement(StyledImageWrap, null,
|
|
4567
|
-
React__default.createElement(AspectRatio, { ratio: 3 / 2 },
|
|
4568
|
-
React__default.createElement(ImageWrap, { src: image, alt: name || '' })),
|
|
4569
|
-
winning_slot > 0 && (React__default.createElement(Badge, null,
|
|
4570
|
-
React__default.createElement(Text, { size: "c2", color: theme.colors.white },
|
|
4571
|
-
winning_slot,
|
|
4572
|
-
" SLOTS")))),
|
|
4573
|
-
React__default.createElement(Box, { p: "12px" },
|
|
4574
|
-
React__default.createElement(Tooltip, { label: name, position: "top", withArrow: true },
|
|
4575
|
-
React__default.createElement(Text, { lineClamp: 2, size: "title2", mb: rem(4), style: { height: rem(48) } }, name)),
|
|
4576
|
-
React__default.createElement(Tooltip, { label: desc, position: "top", withArrow: true },
|
|
4577
|
-
React__default.createElement(Text, { lineClamp: 2, size: "p3", mb: rem(16), style: { height: rem(40) } }, desc)),
|
|
4578
|
-
React__default.createElement(Text, { size: "p3", fw: 500 },
|
|
4579
|
-
React__default.createElement(Text, { as: "span" },
|
|
4580
|
-
t('inlineFreebie.value'),
|
|
4581
|
-
" "),
|
|
4582
|
-
React__default.createElement(Text, { as: "span", color: theme.colors.primaryBase }, formattedPrice)),
|
|
4583
|
-
isHostedByClient && (React__default.createElement(Button, { className: "inline-freebie-button" },
|
|
4584
|
-
React__default.createElement(Text, { size: "p2" }, cta_button))))));
|
|
4585
|
-
};
|
|
4586
|
-
const FreebieFreeSampleItem = ({ data: { image, name, desc, cta_button }, }) => (React__default.createElement(StyledFreebiesCard, null,
|
|
4587
|
-
React__default.createElement(AspectRatio, { ratio: 3 / 2 },
|
|
4588
|
-
React__default.createElement(ImageWrap, { src: image, alt: name || '' })),
|
|
4589
|
-
React__default.createElement(Box, { p: "12px" },
|
|
4590
|
-
React__default.createElement(Tooltip, { label: name, position: "top", withArrow: true },
|
|
4591
|
-
React__default.createElement(Text, { lineClamp: 2, size: "title2", mb: rem(4), style: { height: rem(48) } }, name)),
|
|
4592
|
-
React__default.createElement(Tooltip, { label: desc, position: "top", withArrow: true },
|
|
4593
|
-
React__default.createElement(Text, { lineClamp: 3, size: "p3", style: { height: rem(60) } }, desc)),
|
|
4594
|
-
React__default.createElement(Button, { className: "lucky-gift-button inline-freebie-button" },
|
|
4595
|
-
React__default.createElement(Text, { size: "p2" }, cta_button)))));
|
|
4596
|
-
|
|
4597
|
-
var EHostedBy;
|
|
4598
|
-
(function (EHostedBy) {
|
|
4599
|
-
EHostedBy["CLIENT"] = "CLIENT";
|
|
4600
|
-
EHostedBy["HHG"] = "HHG";
|
|
4601
|
-
})(EHostedBy || (EHostedBy = {}));
|
|
4602
|
-
var EFreebieType;
|
|
4603
|
-
(function (EFreebieType) {
|
|
4604
|
-
EFreebieType["SAMPLE"] = "SAMPLE";
|
|
4605
|
-
EFreebieType["LUCKY_DRAW"] = "LUCKY_DRAW";
|
|
4606
|
-
})(EFreebieType || (EFreebieType = {}));
|
|
4607
|
-
|
|
4608
|
-
const FreebieCarousel = ({ isHostedByClient, data, locale, }) => {
|
|
4609
|
-
const { classes } = useStyles(undefined, {
|
|
4610
|
-
name: 'Carousel',
|
|
4611
|
-
});
|
|
4612
|
-
const { t } = useTranslations();
|
|
4613
|
-
const freeSample = data.filter((item) => item.type === EFreebieType.SAMPLE);
|
|
4614
|
-
const luckyGift = data.filter((item) => item.type === EFreebieType.LUCKY_DRAW);
|
|
4615
|
-
const isHasLuckyGift = luckyGift.length > 0;
|
|
4616
|
-
const isHasFreeSample = freeSample.length > 0;
|
|
4617
|
-
const isHasLuckyGiftMoreThanOne = luckyGift.length > 1;
|
|
4618
|
-
const isHasFreeSampleMoreThanOne = freeSample.length > 1;
|
|
4619
|
-
const luckyGiftCtaButton = luckyGift[0].cta_button;
|
|
4620
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
4621
|
-
isHasLuckyGift && (React__default.createElement(React__default.Fragment, null,
|
|
4622
|
-
React__default.createElement(StyledFreebieCarouselTitle, null,
|
|
4623
|
-
React__default.createElement(Gift, null),
|
|
4624
|
-
React__default.createElement(Text, { size: "title2", color: theme.colors.pink800 }, t('inlineFreebie.freeSample.title'))),
|
|
4625
|
-
React__default.createElement(Carousel, { slideSize: isHasFreeSampleMoreThanOne ? rem(262) : rem(355), slideGap: rem(12), align: "start", withControls: false, withIndicators: isHasFreeSampleMoreThanOne, classNames: Object.assign({}, classes) }, freeSample.map((item) => (React__default.createElement(Carousel.Slide, { key: `${item.type}-${item.product_code}` },
|
|
4626
|
-
React__default.createElement(FreebieFreeSampleItem, { data: item }))))))),
|
|
4627
|
-
isHasFreeSample && (React__default.createElement(React__default.Fragment, null,
|
|
4628
|
-
React__default.createElement(StyledFreebieCarouselTitle, null,
|
|
4629
|
-
React__default.createElement(Star, null),
|
|
4630
|
-
React__default.createElement(Text, { size: "title2", color: theme.colors.primaryBase }, t('inlineFreebie.luckyDrawGift.title'))),
|
|
4631
|
-
React__default.createElement(Carousel, { slideSize: isHasLuckyGiftMoreThanOne ? rem(262) : rem(355), slideGap: rem(12), align: "start", withControls: false, withIndicators: isHasLuckyGiftMoreThanOne, classNames: Object.assign({}, classes) }, luckyGift.map((item) => (React__default.createElement(Carousel.Slide, { key: `${item.type}-${item.product_code}` },
|
|
4632
|
-
React__default.createElement(FreebieLuckyGiftItem, { isHostedByClient: isHostedByClient, data: item, locale: locale }))))),
|
|
4633
|
-
!isHostedByClient && (React__default.createElement(Button, { className: "inline-freebie-button" },
|
|
4634
|
-
React__default.createElement(Text, { size: "p2" }, luckyGiftCtaButton)))))));
|
|
4635
|
-
};
|
|
4636
|
-
|
|
4637
|
-
const StyledBox = styled.div `
|
|
4638
|
-
margin-bottom: ${rem(4)};
|
|
4639
|
-
`;
|
|
4640
|
-
const StyledTitle = styled(Text) `
|
|
4641
|
-
margin-bottom: ${rem(16)};
|
|
4642
|
-
`;
|
|
4643
|
-
const StyledBrandImage = styled.img `
|
|
4644
|
-
height: ${rem(32)};
|
|
4645
|
-
width: auto;
|
|
4646
|
-
`;
|
|
4647
|
-
const StyledInlineFreebieContainer = styled.div `
|
|
4648
|
-
padding: ${rem(16)};
|
|
4649
|
-
background-color: ${theme.colors.neutral50};
|
|
4650
|
-
|
|
4651
|
-
.inline-freebie-button {
|
|
4652
|
-
width: 100%;
|
|
4653
|
-
margin-top: ${rem(12)};
|
|
4654
|
-
|
|
4655
|
-
.mantine-Text-root {
|
|
4656
|
-
color: ${theme.colors.white};
|
|
4657
|
-
font-weight: 600;
|
|
4658
|
-
}
|
|
4659
|
-
|
|
4660
|
-
&.lucky-gift-button {
|
|
4661
|
-
background-color: ${theme.colors.pink800};
|
|
4662
|
-
|
|
4663
|
-
&:hover {
|
|
4664
|
-
background-color: ${theme.colors.pink700};
|
|
4665
|
-
}
|
|
4666
|
-
}
|
|
4667
|
-
}
|
|
4668
|
-
`;
|
|
4669
|
-
|
|
4670
|
-
const InlineFreebie = ({ campaign, locale, }) => {
|
|
4671
|
-
const { hosted_by, brand_image, widget_title, data_freebies } = campaign;
|
|
4672
|
-
const isHostedByClient = hosted_by === 'CLIENT';
|
|
4673
|
-
return (React__default.createElement(StyledInlineFreebieContainer, null,
|
|
4674
|
-
React__default.createElement(StyledBox, null,
|
|
4675
|
-
React__default.createElement(StyledBrandImage, { src: brand_image, alt: widget_title || '', loading: "lazy", style: { height: '32px', width: 'auto' } })),
|
|
4676
|
-
React__default.createElement(StyledTitle, { size: "title1" }, widget_title || ''),
|
|
4677
|
-
React__default.createElement(FreebieCarousel, { isHostedByClient: isHostedByClient, data: data_freebies, locale: locale })));
|
|
4678
|
-
};
|
|
4679
|
-
|
|
4680
4539
|
// url: imageBlocks.imageMobile.data.url
|
|
4681
4540
|
// newTab: imageBlocks.imageMobile.data.newtab
|
|
4682
4541
|
// image: campaignShow.image
|
|
@@ -4694,7 +4553,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4694
4553
|
];
|
|
4695
4554
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4696
4555
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
4697
|
-
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action,
|
|
4556
|
+
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
|
|
4698
4557
|
var _a, _b;
|
|
4699
4558
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
4700
4559
|
const { isMobile } = useScreenSize();
|
|
@@ -4719,7 +4578,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4719
4578
|
});
|
|
4720
4579
|
}
|
|
4721
4580
|
};
|
|
4722
|
-
const { height } = useViewportDimensions();
|
|
4723
4581
|
// usePreventScroll()
|
|
4724
4582
|
const formActiveTime = useRef(0);
|
|
4725
4583
|
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
@@ -4734,8 +4592,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4734
4592
|
const isLightBox = currentLayout.includes('LightBox');
|
|
4735
4593
|
const isLightBoxA = currentLayout === LEADGEN_LAYOUT.LightBoxA;
|
|
4736
4594
|
const isLightBoxB = currentLayout === LEADGEN_LAYOUT.LightBoxB;
|
|
4737
|
-
const isInline = currentLayout.includes('Inline')
|
|
4738
|
-
const isFreebie = currentLayout.includes('Freebie');
|
|
4595
|
+
const isInline = currentLayout.includes('Inline');
|
|
4739
4596
|
const isFullscreen = currentLayout === LEADGEN_LAYOUT.Fullscreen;
|
|
4740
4597
|
const isInPage = isInline || isSidebar;
|
|
4741
4598
|
const isDrawer = isLightBoxB && isMobile;
|
|
@@ -4759,19 +4616,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4759
4616
|
userInfo,
|
|
4760
4617
|
format: (_a = (ISO_FORMAT[locale] || ISO_FORMAT['vi-VN'])) === null || _a === void 0 ? void 0 : _a.dateFormat,
|
|
4761
4618
|
});
|
|
4762
|
-
const popupContentRef =
|
|
4763
|
-
const isIos = isIOS();
|
|
4764
|
-
const keyOpen = useKeyboardOpen();
|
|
4765
|
-
const { isPushed, bottomRef } = useViewportPushedByKeyboard();
|
|
4766
|
-
const [bottomSpacing, setBottomSpacing] = useState(0);
|
|
4767
|
-
const bottomSpacingRef = useRef(bottomSpacing);
|
|
4768
|
-
const isPushedRef = useRef(isPushed);
|
|
4769
|
-
const keyOpenRef = useRef(keyOpen);
|
|
4770
|
-
const [isScrolling, setIsScrolling] = useState(false);
|
|
4771
|
-
const isScrollingRef = useRef(false);
|
|
4772
|
-
const gapBottomSpace = useRef(40);
|
|
4773
|
-
const initialHeight = useRef(0);
|
|
4774
|
-
const scrollTo = useScrollTo();
|
|
4619
|
+
const { bottomRef, bottomStyle, handlePopupContentScroll, handleFocus, popupContentRef, } = useFocusFieldOnDevice(isMobile, isLightBoxB || isLightBoxA, isLightBoxA ? 85 : 0);
|
|
4775
4620
|
const handleDoImpression = useCallback((type = 'impression') => doImpression({
|
|
4776
4621
|
formValues: form.values,
|
|
4777
4622
|
formActiveTime: formActiveTime.current,
|
|
@@ -4785,7 +4630,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4785
4630
|
return null;
|
|
4786
4631
|
}
|
|
4787
4632
|
useEffect(() => {
|
|
4788
|
-
initialHeight.current = window.innerHeight;
|
|
4789
4633
|
(isLightBox || isSlider) && handleDoImpression();
|
|
4790
4634
|
if (isLightBox || isFullscreen) {
|
|
4791
4635
|
document.body.classList.add('noscroll');
|
|
@@ -4795,18 +4639,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4795
4639
|
}
|
|
4796
4640
|
clearCacheUsedEmailOrPhone();
|
|
4797
4641
|
}, []);
|
|
4798
|
-
useEffect(() => {
|
|
4799
|
-
isPushedRef.current = isPushed;
|
|
4800
|
-
}, [isPushed]);
|
|
4801
|
-
useEffect(() => {
|
|
4802
|
-
keyOpenRef.current = keyOpen;
|
|
4803
|
-
}, [keyOpen]);
|
|
4804
|
-
useEffect(() => {
|
|
4805
|
-
bottomSpacingRef.current = bottomSpacing;
|
|
4806
|
-
}, [bottomSpacing]);
|
|
4807
|
-
useEffect(() => {
|
|
4808
|
-
isScrollingRef.current = isScrolling;
|
|
4809
|
-
}, [isScrolling]);
|
|
4810
4642
|
useEffect(() => {
|
|
4811
4643
|
formRef.current && setLastFormRef(formRef.current);
|
|
4812
4644
|
}, [formRef.current]);
|
|
@@ -4834,18 +4666,6 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4834
4666
|
}
|
|
4835
4667
|
return () => clearInterval(intervalId);
|
|
4836
4668
|
}, [showThankyou]);
|
|
4837
|
-
useEffect(() => {
|
|
4838
|
-
setBottomSpacing(isMobile && isIos && isLightBoxB
|
|
4839
|
-
? !isPushed && keyOpen
|
|
4840
|
-
? (() => {
|
|
4841
|
-
var _a;
|
|
4842
|
-
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4843
|
-
const isErrorDevice = visualHeight === initialHeight.current;
|
|
4844
|
-
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
4845
|
-
})()
|
|
4846
|
-
: 0
|
|
4847
|
-
: 0);
|
|
4848
|
-
}, [isPushed, keyOpen, isMobile, isIos, isLightBoxB]);
|
|
4849
4669
|
const listBlockAddedRequired = useMemo(() => leadGenFieldRequired(listBlockAdded), listBlockAdded);
|
|
4850
4670
|
const disabledButtonSubmit = useMemo(() => {
|
|
4851
4671
|
if (listBlockAddedRequired.length) {
|
|
@@ -4853,47 +4673,11 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4853
4673
|
}
|
|
4854
4674
|
return false;
|
|
4855
4675
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4856
|
-
const handlePopupContentScroll = () => {
|
|
4857
|
-
if (!isScrollingRef.current) {
|
|
4858
|
-
const active = document.activeElement;
|
|
4859
|
-
if (formRef.current && formRef.current.contains(active)) {
|
|
4860
|
-
active.blur();
|
|
4861
|
-
}
|
|
4862
|
-
}
|
|
4863
|
-
};
|
|
4864
4676
|
const onFocus = (e) => {
|
|
4865
4677
|
// EL-926 Temporary turn off handling focus form on mobile to fix scrolling bug on lightbox A
|
|
4866
4678
|
// return false
|
|
4867
4679
|
e.preventDefault();
|
|
4868
|
-
|
|
4869
|
-
return;
|
|
4870
|
-
setTimeout(() => {
|
|
4871
|
-
var _a, _b;
|
|
4872
|
-
if (!isPushedRef.current && keyOpenRef.current) {
|
|
4873
|
-
const input = e.target;
|
|
4874
|
-
const rect = input.getBoundingClientRect();
|
|
4875
|
-
const inputHeight = rect.height;
|
|
4876
|
-
const inputTop = rect.top;
|
|
4877
|
-
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4878
|
-
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
4879
|
-
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
4880
|
-
const currentScrollY = popupContentRef.current.scrollTop;
|
|
4881
|
-
const viewPort = isErrorDevice
|
|
4882
|
-
? window.innerHeight * 0.4
|
|
4883
|
-
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height;
|
|
4884
|
-
if (currentTop >= viewPort) {
|
|
4885
|
-
const gap = currentTop - viewPort;
|
|
4886
|
-
const targetScrollY = currentScrollY + gap;
|
|
4887
|
-
if (!isNaN(targetScrollY)) {
|
|
4888
|
-
setIsScrolling(true);
|
|
4889
|
-
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
4890
|
-
setTimeout(() => {
|
|
4891
|
-
setIsScrolling(false);
|
|
4892
|
-
}, 500);
|
|
4893
|
-
}
|
|
4894
|
-
}
|
|
4895
|
-
}
|
|
4896
|
-
}, 300);
|
|
4680
|
+
handleFocus(e);
|
|
4897
4681
|
};
|
|
4898
4682
|
const middlewareOnSubmit = (e) => {
|
|
4899
4683
|
e.preventDefault();
|
|
@@ -5017,14 +4801,10 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5017
4801
|
const PopupEmpty = showEmpty && (React__default.createElement(EmptyComponent, { onClose: onClose, onContinue: () => setShowEmpty(false) }));
|
|
5018
4802
|
const PopupForm = (React__default.createElement(LeadFormProvider, { form: form },
|
|
5019
4803
|
React__default.createElement("form", { ref: formRef, className: "leadgen-form", onFocus: onFocus, onSubmit: middlewareOnSubmit },
|
|
5020
|
-
React__default.createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm },
|
|
4804
|
+
React__default.createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm, isLightBoxA: isLightBoxA, bottomStyle: bottomStyle, popupContentRef: popupContentRef, handlePopupContentScroll: handlePopupContentScroll },
|
|
5021
4805
|
React__default.createElement("div", { className: "leadgen-form_inner" },
|
|
5022
4806
|
React__default.createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit, hasSubmitBtn: Boolean(ButtonSubmit), isSubmitLoading: isSubmitLoading, disabledButtonSubmit: disabledButtonSubmit })))),
|
|
5023
|
-
React__default.createElement("div", { style:
|
|
5024
|
-
height: `${bottomSpacing}px`,
|
|
5025
|
-
width: '100%',
|
|
5026
|
-
transition: 'height .2s ease',
|
|
5027
|
-
} })));
|
|
4807
|
+
isLightBoxB && React__default.createElement("div", { style: bottomStyle })));
|
|
5028
4808
|
const PopupOtp = showOtpPhone && (React__default.createElement(OtpBlock, { otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
5029
4809
|
setShowOtpPhone(null);
|
|
5030
4810
|
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
@@ -5035,7 +4815,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5035
4815
|
});
|
|
5036
4816
|
} }));
|
|
5037
4817
|
const PopupThankYou = showThankyou && (React__default.createElement(ThankyouPopup, { title: showThankyou.title, titleAlign: showThankyou.titleAlign, subtitle: showThankyou.subtitle, subtitleAlign: showThankyou.subtitleAlign, link: showThankyou.link, linkNewTab: showThankyou.linkNewTab, linkText: showThankyou.linkText, image: showThankyou.image }));
|
|
5038
|
-
const PopupContent = (React__default.createElement("div", { ref: popupContentRef, className: clsx('leadgen-content', {
|
|
4818
|
+
const PopupContent = (React__default.createElement("div", { ref: isLightBoxB ? popupContentRef : undefined, className: clsx('leadgen-content', {
|
|
5039
4819
|
'leadgen-content_small': limitFieldsLightBoxB,
|
|
5040
4820
|
}), onScroll: handlePopupContentScroll },
|
|
5041
4821
|
!headerInsideFormContainer && PopupHeader,
|
|
@@ -5081,7 +4861,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5081
4861
|
position: 'absolute',
|
|
5082
4862
|
inset: 0,
|
|
5083
4863
|
zIndex: snap === 1 ? -1 : 1,
|
|
5084
|
-
}, onClick: () => setSnap(1) })))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName
|
|
4864
|
+
}, onClick: () => setSnap(1) })))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName },
|
|
5085
4865
|
isFullscreen ? (React__default.createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
5086
4866
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
5087
4867
|
} })) : null,
|
|
@@ -5095,7 +4875,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
5095
4875
|
return React__default.createElement(SideBarLayout, { content: PopupContainer });
|
|
5096
4876
|
}
|
|
5097
4877
|
else if (isInline) {
|
|
5098
|
-
return (React__default.createElement(InlineLayout, { action: action, content:
|
|
4878
|
+
return (React__default.createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5099
4879
|
}
|
|
5100
4880
|
return null;
|
|
5101
4881
|
};
|
|
@@ -5288,11 +5068,10 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
|
|
|
5288
5068
|
}
|
|
5289
5069
|
else if (currentLayout.includes('LightBox') ||
|
|
5290
5070
|
currentLayout.includes('Inline') ||
|
|
5291
|
-
currentLayout.includes('Freebie') ||
|
|
5292
5071
|
currentLayout == 'Fullscreen' ||
|
|
5293
5072
|
currentLayout == 'Sidebar' ||
|
|
5294
5073
|
currentLayout == 'Slider') {
|
|
5295
|
-
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout,
|
|
5074
|
+
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
|
|
5296
5075
|
}
|
|
5297
5076
|
else if (currentLayout.includes('Skin')) {
|
|
5298
5077
|
return (React__default.createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
|
|
@@ -5388,6 +5167,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5388
5167
|
var _a, _b;
|
|
5389
5168
|
const scrollEventHandlerRef = useRef();
|
|
5390
5169
|
const leadStartTimeRef = useRef(Date.now());
|
|
5170
|
+
const [, setScrollLocked] = useScrollLock();
|
|
5391
5171
|
const { apiUrl } = useMemo(() => {
|
|
5392
5172
|
let apiUrl = apiUrlProp;
|
|
5393
5173
|
if (apiUrl.includes('localhost')) {
|
|
@@ -5403,6 +5183,9 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5403
5183
|
const [showEmpty, setShowEmpty] = useState(false);
|
|
5404
5184
|
const [redirectUrl, setRedirectUrl] = useState();
|
|
5405
5185
|
const currentLayout = useMemo(() => showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout, [showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout]);
|
|
5186
|
+
const layoutUseOverlay = useMemo(() => !!currentLayout &&
|
|
5187
|
+
!currentLayout.includes('Inline') &&
|
|
5188
|
+
!currentLayout.includes('Sidebar'), [currentLayout]);
|
|
5406
5189
|
useEffect(() => {
|
|
5407
5190
|
if (forceCampaign) {
|
|
5408
5191
|
setShowCampaign(forceCampaign);
|
|
@@ -5422,6 +5205,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5422
5205
|
document.body.classList.remove('noscroll');
|
|
5423
5206
|
setShowCampaign(null);
|
|
5424
5207
|
setShowThankyou(null);
|
|
5208
|
+
setScrollLocked(false);
|
|
5425
5209
|
setAction('HIDE');
|
|
5426
5210
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
5427
5211
|
};
|
|
@@ -5443,36 +5227,41 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5443
5227
|
}
|
|
5444
5228
|
}
|
|
5445
5229
|
}
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
body: JSON.stringify({
|
|
5453
|
-
action: 'CLICK',
|
|
5454
|
-
url: location.href.toLowerCase(),
|
|
5455
|
-
title_article: document.title,
|
|
5456
|
-
cookie_id: getCookie('hhg-id') || '',
|
|
5457
|
-
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5458
|
-
}),
|
|
5459
|
-
}),
|
|
5460
|
-
!showThankyou &&
|
|
5461
|
-
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5462
|
-
trackingCompletionForm({
|
|
5463
|
-
commonData: {
|
|
5464
|
-
cookie_id: getCookie('hhg-id') || '',
|
|
5465
|
-
ga_client_id: getCookie('_ga') || null,
|
|
5466
|
-
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5467
|
-
status: 'in_progress',
|
|
5468
|
-
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5469
|
-
total_fields: listBlockAdded.length,
|
|
5470
|
-
type: 'close',
|
|
5230
|
+
try {
|
|
5231
|
+
yield Promise.all([
|
|
5232
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/popup_exit`, {
|
|
5233
|
+
method: 'POST',
|
|
5234
|
+
headers: {
|
|
5235
|
+
'Content-Type': 'application/json',
|
|
5471
5236
|
},
|
|
5472
|
-
|
|
5473
|
-
|
|
5237
|
+
body: JSON.stringify({
|
|
5238
|
+
action: 'CLICK',
|
|
5239
|
+
url: location.href.toLowerCase(),
|
|
5240
|
+
title_article: document.title,
|
|
5241
|
+
cookie_id: getCookie('hhg-id') || '',
|
|
5242
|
+
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5243
|
+
}),
|
|
5474
5244
|
}),
|
|
5475
|
-
|
|
5245
|
+
!showThankyou &&
|
|
5246
|
+
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5247
|
+
trackingCompletionForm({
|
|
5248
|
+
commonData: {
|
|
5249
|
+
cookie_id: getCookie('hhg-id') || '',
|
|
5250
|
+
ga_client_id: getCookie('_ga') || null,
|
|
5251
|
+
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5252
|
+
status: 'in_progress',
|
|
5253
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5254
|
+
total_fields: listBlockAdded.length,
|
|
5255
|
+
type: 'close',
|
|
5256
|
+
},
|
|
5257
|
+
currentLayout,
|
|
5258
|
+
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
5259
|
+
}),
|
|
5260
|
+
]);
|
|
5261
|
+
}
|
|
5262
|
+
catch (err) {
|
|
5263
|
+
console.log(err);
|
|
5264
|
+
}
|
|
5476
5265
|
onCloseBase();
|
|
5477
5266
|
});
|
|
5478
5267
|
const onUnmount = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -5730,6 +5519,9 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5730
5519
|
leadStartTimeRef.current = Date.now();
|
|
5731
5520
|
}
|
|
5732
5521
|
}, [showCampaign]);
|
|
5522
|
+
useEffect(() => {
|
|
5523
|
+
setScrollLocked(layoutUseOverlay);
|
|
5524
|
+
}, [layoutUseOverlay]);
|
|
5733
5525
|
return (React__default.createElement(LeadGenContext$1.Provider, { value: {
|
|
5734
5526
|
primaryColor,
|
|
5735
5527
|
apiUrl,
|
|
@@ -5745,10 +5537,7 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5745
5537
|
React__default.createElement(Transition, { mounted: Boolean(((_b = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _b === void 0 ? void 0 : _b.popupVersion) === '2.1'), transition: "fade", duration: 600, timingFunction: "ease", exitDuration: 200 }, (styles) => {
|
|
5746
5538
|
var _a;
|
|
5747
5539
|
return (React__default.createElement(Box, { style: styles }, ((_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.popupVersion) === '2.1' && (React__default.createElement(React__default.Fragment, null,
|
|
5748
|
-
|
|
5749
|
-
!currentLayout.includes('Inline') &&
|
|
5750
|
-
!currentLayout.includes('Sidebar') &&
|
|
5751
|
-
!currentLayout.includes('Freebie') && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5540
|
+
layoutUseOverlay && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5752
5541
|
React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5753
5542
|
}))))))));
|
|
5754
5543
|
};
|