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