@hhgtech/hhg-components 1.29.430-beta-1 → 1.29.431-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-55aa861c.js → InputDate-078ab5aa.js} +5 -5
- package/build/{LastPeriod-70d38a49.js → LastPeriod-88e66817.js} +1 -1
- package/build/{MobileBottomNavigationIcon-56c3bfd1.js → MobileBottomNavigationIcon-42376e95.js} +3 -3
- package/build/{Spinner-237ab29e.js → Spinner-fbb7702d.js} +1 -1
- package/build/{WhatsApp-3e1a7d95.js → WhatsApp-b5fe357f.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +49 -49
- package/build/babyGrowth.js +85 -85
- package/build/cache.js +2 -2
- package/build/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/care/interfaces/types.d.ts +1 -0
- package/build/care.js +20 -19
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/atoms/imageUpload/ImageUpload.d.ts +4 -0
- package/build/components/atoms/imageUpload/ImageUpload.types.d.ts +39 -0
- package/build/components/atoms/imageUpload/ImageUpload.utils.d.ts +1 -0
- package/build/components/atoms/imageUpload/index.d.ts +2 -0
- package/build/components/atoms/imageUpload/index.styled.d.ts +21 -0
- package/build/components/atoms/inputMB/index.styled.d.ts +2 -2
- package/build/components/mantine/phoneInput/PhoneInput.d.ts +1 -1
- package/build/components/mantine/provider/index.d.ts +2 -1
- package/build/components/mantine/text/index.d.ts +8 -1
- package/build/components/mantine/theme/text.d.ts +3 -1
- package/build/components/molecules/cardListItem/index.d.ts +5 -2
- package/build/components/molecules/productDetail/generalInfo/index.styled.d.ts +4 -0
- package/build/components/molecules/ratingStars/RatingStar.d.ts +3 -0
- package/build/components/molecules/ratingStars/RatingStars.d.ts +4 -0
- package/build/components/molecules/ratingStars/RatingStarsInput.d.ts +4 -0
- package/build/components/molecules/ratingStars/index.const.d.ts +1 -0
- package/build/components/molecules/ratingStars/index.d.ts +4 -0
- package/build/components/molecules/ratingStars/index.styled.d.ts +13 -0
- package/build/components/molecules/ratingStars/index.types.d.ts +23 -0
- package/build/components/organisms/clinicInfo/index.d.ts +1 -1
- package/build/components/organisms/map/index.d.ts +1 -1
- package/build/components.js +102 -101
- package/build/{constants-c3a0423c.js → constants-bf3d1caa.js} +2 -1
- 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-4f62805d.js → core-6a9d2951.js} +1 -1
- package/build/{dataTransform-289e7968.js → dataTransform-cbcfc958.js} +1 -1
- package/build/ecom.js +22 -25
- package/build/{editor-3f6a99d9.js → editor-d5d313b8.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-fae872e9.js → InputDate-7eb655c3.js} +5 -5
- package/build/esm/{LastPeriod-6399ffed.js → LastPeriod-096d65d6.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-cf3b044a.js → MobileBottomNavigationIcon-b7daa1e6.js} +3 -3
- package/build/esm/{Spinner-5a99aaef.js → Spinner-80499ba3.js} +1 -1
- package/build/esm/{WhatsApp-8904f7c0.js → WhatsApp-6678d1b9.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +49 -49
- package/build/esm/babyGrowth.js +85 -85
- package/build/esm/cache.js +2 -2
- package/build/esm/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/esm/care/interfaces/types.d.ts +1 -0
- package/build/esm/care.js +18 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/atoms/imageUpload/ImageUpload.d.ts +4 -0
- package/build/esm/components/atoms/imageUpload/ImageUpload.types.d.ts +39 -0
- package/build/esm/components/atoms/imageUpload/ImageUpload.utils.d.ts +1 -0
- package/build/esm/components/atoms/imageUpload/index.d.ts +2 -0
- package/build/esm/components/atoms/imageUpload/index.styled.d.ts +21 -0
- package/build/esm/components/atoms/inputMB/index.styled.d.ts +2 -2
- package/build/esm/components/mantine/phoneInput/PhoneInput.d.ts +1 -1
- package/build/esm/components/mantine/provider/index.d.ts +2 -1
- package/build/esm/components/mantine/text/index.d.ts +8 -1
- package/build/esm/components/mantine/theme/text.d.ts +3 -1
- package/build/esm/components/molecules/cardListItem/index.d.ts +5 -2
- package/build/esm/components/molecules/productDetail/generalInfo/index.styled.d.ts +4 -0
- package/build/esm/components/molecules/ratingStars/RatingStar.d.ts +3 -0
- package/build/esm/components/molecules/ratingStars/RatingStars.d.ts +4 -0
- package/build/esm/components/molecules/ratingStars/RatingStarsInput.d.ts +4 -0
- package/build/esm/components/molecules/ratingStars/index.const.d.ts +1 -0
- package/build/esm/components/molecules/ratingStars/index.d.ts +4 -0
- package/build/esm/components/molecules/ratingStars/index.styled.d.ts +13 -0
- package/build/esm/components/molecules/ratingStars/index.types.d.ts +23 -0
- package/build/esm/components/organisms/clinicInfo/index.d.ts +1 -1
- package/build/esm/components/organisms/map/index.d.ts +1 -1
- package/build/esm/components.js +102 -101
- package/build/esm/{constants-eb64d227.js → constants-80c9b8c0.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-48c0b8cc.js → core-045f8163.js} +1 -1
- package/build/esm/{dataTransform-67e41d99.js → dataTransform-596b9937.js} +1 -1
- package/build/esm/ecom.js +5 -8
- package/build/esm/{editor-ea73bd01.js → editor-8bc3d581.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-791618e5.js → healthTools-141b2712.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n-values/tl-PH.js +12 -0
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/icons/StarFull.d.ts +4 -0
- package/build/esm/icons/StarHalf.d.ts +4 -0
- package/build/esm/icons/Upload.d.ts +4 -0
- package/build/esm/icons/index.d.ts +9 -6
- package/build/esm/{index-4a10d2cf.js → index-001f6a7c.js} +13 -13
- package/build/esm/{index-ef697ce2.js → index-049ed0de.js} +13 -13
- package/build/esm/{types-ab67db08.js → index-099e1ba5.js} +3 -16
- package/build/esm/{index-09b3bbbf.js → index-117a0f5e.js} +2 -2
- package/build/esm/{index-86241274.js → index-13fa3e14.js} +1 -1
- package/build/esm/{index-f178a264.js → index-17d135a6.js} +1 -1
- package/build/esm/{index-bd5034ae.js → index-254565f3.js} +3 -3
- package/build/esm/{index-1d64d446.js → index-291cd201.js} +32 -32
- package/build/esm/{index-2d92db09.js → index-2cca619a.js} +14 -14
- package/build/esm/{index-99b2bf70.js → index-2d71e5b3.js} +13 -13
- package/build/esm/index-2e5dc26a.js +15 -0
- package/build/esm/{index-d31c8567.js → index-3169558c.js} +17 -17
- package/build/esm/{index-d45f602e.js → index-32a50c3a.js} +15 -15
- package/build/esm/{index-f679930b.js → index-35e070b0.js} +2 -2
- package/build/esm/{index-a5b52cf4.js → index-38dbf5f1.js} +17 -17
- package/build/esm/{index-7c106975.js → index-3d0ec2fe.js} +33 -33
- package/build/esm/{index-93b7c70a.js → index-4139e5ae.js} +3 -3
- package/build/esm/{index-33361704.js → index-4271cde2.js} +7 -7
- package/build/esm/{index-1dff51d6.js → index-45d33051.js} +8 -8
- package/build/esm/{index-8a20b3c6.js → index-478831cf.js} +7 -7
- package/build/esm/{index-fff3714d.js → index-48831658.js} +22 -22
- package/build/esm/{index-13ffa8f1.js → index-498d4518.js} +2 -2
- package/build/esm/{index-8d21e5ac.js → index-4b09003a.js} +6 -6
- package/build/esm/{index-d7d44efc.js → index-4d852860.js} +17 -17
- package/build/esm/{index-c4065aad.js → index-4e0f1753.js} +15 -15
- package/build/esm/{index-44ecf83d.js → index-4f49074d.js} +4 -4
- package/build/esm/{index-f0dc1995.js → index-546f5191.js} +21 -21
- package/build/esm/{index-b4b4c4e8.js → index-554359b6.js} +15 -15
- package/build/esm/{index-ad3b2f13.js → index-56a97e0e.js} +6 -6
- package/build/esm/{index-4ba2447d.js → index-57bd84e3.js} +2 -2
- package/build/esm/{index-5e3f6d2c.js → index-58f9eaea.js} +2 -2
- package/build/esm/{index-17d75778.js → index-5e21c797.js} +13 -13
- package/build/esm/{index-780ea467.js → index-609a26e8.js} +86 -36
- package/build/esm/{index-78e1d080.js → index-634f4076.js} +8 -8
- package/build/esm/{index-7657fecc.js → index-699350ef.js} +1 -1
- package/build/esm/{index-4f9db631.js → index-6e8d421f.js} +32 -32
- package/build/esm/{index-408acb89.js → index-716dfc9f.js} +3 -3
- package/build/esm/{index-6ed7bdf7.js → index-752a64fb.js} +3 -3
- package/build/esm/{index-8a453f73.js → index-7ffe30e3.js} +17 -17
- package/build/esm/{index-bf27da33.js → index-80608be0.js} +2 -2
- package/build/esm/{index-9b5d22e6.js → index-84d5c70c.js} +2 -2
- package/build/esm/{index-09cf90ac.js → index-84eac0b1.js} +2 -2
- package/build/esm/{index-6039def7.js → index-85736a1b.js} +2 -2
- package/build/esm/{index-4af5003e.js → index-8ce567a7.js} +2 -2
- package/build/esm/{index-7461a925.js → index-97f793d0.js} +1 -1
- package/build/esm/{index-fc737e2a.js → index-9b65f791.js} +2 -2
- package/build/esm/{index-81e60f9d.js → index-a67b1c17.js} +25 -25
- package/build/esm/{index-65c28612.js → index-a6d5c07f.js} +1 -1
- package/build/esm/{index-3c6ae1ef.js → index-a73fa06e.js} +13 -13
- package/build/esm/{index-7beda0bc.js → index-a992a40c.js} +4 -4
- package/build/esm/{index-2fb9f797.js → index-ac236b44.js} +5 -5
- package/build/esm/{index-674c92ea.js → index-b245f8fa.js} +16 -16
- package/build/esm/{index-566eeff0.js → index-b8a04f39.js} +36 -52
- package/build/esm/{index-314803d9.js → index-bbdd6707.js} +11 -11
- package/build/esm/{index-3ff671cb.js → index-be11d09d.js} +2 -2
- package/build/esm/{index-cacefd85.js → index-be19e743.js} +3 -3
- package/build/esm/{index-f00c5b3c.js → index-be9fbb1a.js} +2 -2
- package/build/esm/{index-40bb5de7.js → index-c6d30d69.js} +6 -6
- package/build/esm/{index-a9761de1.js → index-cb55fcc3.js} +3 -3
- package/build/esm/{index-840dae58.js → index-ce49bbb1.js} +2 -2
- package/build/esm/{index-8fe534b0.js → index-cf5ec350.js} +11 -8
- package/build/esm/{index-f96c7577.js → index-d21bc57a.js} +16 -16
- package/build/esm/{index-98f7f24d.js → index-d34c1cb4.js} +10 -10
- package/build/esm/{index-eb8d4d59.js → index-d41e4c18.js} +2 -2
- package/build/esm/{index-37a6819d.js → index-d4d02f75.js} +6 -6
- package/build/esm/{index-1a9b8d19.js → index-e9e46daa.js} +1 -1
- package/build/esm/{index-fcb8a66e.js → index-ea53aee7.js} +13 -13
- package/build/esm/{index-0870c489.js → index-eb3004e2.js} +1 -1
- package/build/esm/{index-fa79fecb.js → index-f0669163.js} +4 -3
- package/build/esm/{index-4a3d7b67.js → index-f41edf28.js} +1 -1
- package/build/esm/{index-bebe62e8.js → index-f522d35d.js} +6 -6
- package/build/esm/index.js +145 -127
- package/build/esm/{labelSorting-30e44b06.js → labelSorting-6ff314c0.js} +4 -4
- package/build/esm/lead/components/close.d.ts +1 -1
- package/build/esm/lead/icons/Gift.d.ts +4 -0
- package/build/esm/lead/icons/Star.d.ts +4 -0
- package/build/esm/lead/icons/index.d.ts +4 -0
- package/build/esm/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.d.ts +5 -0
- package/build/esm/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.styled.d.ts +9 -0
- package/build/esm/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.types.d.ts +10 -0
- package/build/esm/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.d.ts +4 -0
- package/build/esm/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.styled.d.ts +16 -0
- package/build/esm/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.types.d.ts +7 -0
- package/build/esm/lead/layouts/inlineFreebie/InlineFreebie.d.ts +8 -0
- package/build/esm/lead/layouts/inlineFreebie/InlineFreebie.styled.d.ts +23 -0
- package/build/esm/lead/layouts/inlineFreebie/InlineFreebie.types.d.ts +32 -0
- package/build/esm/lead/layouts/inlineFreebie/index.d.ts +2 -0
- package/build/esm/lead/layouts/lightbox/formContainer.d.ts +1 -5
- package/build/esm/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/esm/lead.js +456 -245
- package/build/esm/{logoIcon-576f20c8.js → logoIcon-06f58603.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc/theme.d.ts +4 -0
- 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/miscTheme.js +2 -0
- 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 +57 -56
- package/build/esm/{post-52667f83.js → post-600c5d0c.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.js +31 -31
- package/build/esm/{store-934dc7ac.js → store-c85c3dc7.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-18bf1f86.js → surveyThankyouCard-86d647be.js} +5 -5
- package/build/esm/{text-48d81c22.js → text-2c52aa10.js} +2 -0
- 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-8472bb49.js → translationsProvider-f890e5c6.js} +1 -1
- package/build/esm/{treePopoverMenu-4b20c5a9.js → treePopoverMenu-e446207b.js} +19 -19
- package/build/esm/types-51a57954.js +16 -0
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-b8ce67fa.js → useCategory-5b99887b.js} +5 -5
- package/build/esm/{useHealthToolCache-85e6504e.js → useHealthToolCache-47bf13bc.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-e888b953.js → usePlacesAutocomplete-2436375c.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-bb4326ab.js → utils-23dac1af.js} +2 -2
- package/build/esm/utils-5c924928.js +15 -0
- package/build/esm/{utils-254a783a.js → utils-98ba337b.js} +2 -2
- package/build/esm/{utils-df03b54e.js → utils-c7a278ff.js} +5 -5
- package/build/esm/{utils-0d847619.js → utils-e993f9d6.js} +3 -3
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-f712b02f.js → healthTools-dab5b1a9.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks.js +13 -13
- package/build/i18n-values/tl-PH.js +12 -0
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/icons/StarFull.d.ts +4 -0
- package/build/icons/StarHalf.d.ts +4 -0
- package/build/icons/Upload.d.ts +4 -0
- package/build/icons/index.d.ts +9 -6
- package/build/{index-a4a54429.js → index-098e0a89.js} +1 -1
- package/build/{index-a42dcb53.js → index-0a9a537d.js} +3 -3
- package/build/{index-0cbe67d4.js → index-0ff06aef.js} +13 -13
- package/build/{index-7e8b7d40.js → index-18937bc7.js} +5 -5
- package/build/{index-45109514.js → index-1bb11ebc.js} +86 -36
- package/build/{index-3f54b2b6.js → index-1d7e96fe.js} +4 -4
- package/build/{index-2e3f1a32.js → index-2435386d.js} +2 -2
- package/build/{index-1597cffa.js → index-24781cb2.js} +2 -2
- package/build/{index-b25e254d.js → index-259f5c4b.js} +11 -8
- package/build/{index-a23bde59.js → index-283474dc.js} +4 -4
- package/build/{index-e4b5116a.js → index-29a88110.js} +2 -2
- package/build/{index-6ddcabae.js → index-2c940d76.js} +2 -2
- package/build/{index-65580259.js → index-2ee72be6.js} +5 -5
- package/build/{index-f17348eb.js → index-2f7bcb97.js} +13 -13
- package/build/{index-d7e39137.js → index-337de168.js} +2 -2
- package/build/{index-50497629.js → index-351dcb15.js} +32 -32
- package/build/{index-c883cc10.js → index-35282959.js} +25 -25
- package/build/{index-ed4ded3f.js → index-355a2646.js} +15 -15
- package/build/{index-d54a8891.js → index-36e544fb.js} +37 -53
- package/build/{index-aa4b7a59.js → index-395c64b6.js} +3 -3
- package/build/{index-481f4dbf.js → index-3c63847c.js} +2 -2
- package/build/{index-3e890b6b.js → index-45a060f8.js} +2 -2
- package/build/{index-f48586bc.js → index-47b0ca3d.js} +1 -1
- package/build/{index-a467bb6c.js → index-48321dfa.js} +6 -6
- package/build/{index-0e6b1743.js → index-4e84bdc8.js} +3 -3
- package/build/{index-5a6c86d1.js → index-5c095800.js} +2 -2
- package/build/{index-c314e9d9.js → index-5c1614fa.js} +13 -13
- package/build/{index-0e8be3b9.js → index-5c5d8e88.js} +6 -6
- package/build/{index-2fcc35dc.js → index-5d3b7a1c.js} +16 -16
- package/build/{index-5250b255.js → index-60bc5082.js} +14 -14
- package/build/{index-c9522d9a.js → index-60ff3f94.js} +8 -8
- package/build/{index-3b70b5d2.js → index-619cc3b8.js} +17 -17
- package/build/{index-8b2e2650.js → index-687a595e.js} +13 -13
- package/build/{index-a898d0b8.js → index-6a549749.js} +3 -3
- package/build/{index-c7e3ecb3.js → index-6d11558a.js} +8 -8
- package/build/{index-784452e2.js → index-6e345218.js} +21 -21
- package/build/{index-40e0c80a.js → index-6f5e8b18.js} +6 -6
- package/build/{index-180b3d7a.js → index-73923dee.js} +1 -1
- package/build/{index-5bbf0842.js → index-74a06429.js} +3 -3
- package/build/{index-bc4e4e53.js → index-77fa9fe1.js} +2 -2
- package/build/{index-83a83526.js → index-7ade673a.js} +2 -2
- package/build/{index-956db2a8.js → index-7cc21ba7.js} +17 -17
- package/build/{index-91b463d2.js → index-7d343a1e.js} +16 -16
- package/build/{index-28e38db9.js → index-7fac8c92.js} +13 -13
- package/build/{index-69964602.js → index-82192291.js} +10 -10
- package/build/{index-dd845aa3.js → index-8b9f3ebb.js} +2 -2
- package/build/{index-eda5fead.js → index-8e44227a.js} +32 -32
- package/build/{index-6dc1cd91.js → index-8f59559d.js} +4 -3
- package/build/{index-bca7cd59.js → index-8f8e535c.js} +2 -2
- package/build/{index-cfeb8bc1.js → index-8fe26fb6.js} +7 -7
- package/build/{index-18bbdfe8.js → index-935a1bfc.js} +17 -17
- package/build/{types-e58583f3.js → index-9b2698d9.js} +2 -16
- package/build/{index-f28c14cb.js → index-a2c2dbe9.js} +2 -2
- package/build/{index-163fe53e.js → index-a4dcb2c9.js} +13 -13
- package/build/{index-29745b17.js → index-a976d0c2.js} +22 -22
- package/build/{index-961ca517.js → index-aa358317.js} +11 -11
- package/build/{index-ba3d68b4.js → index-b4fbb091.js} +2 -2
- package/build/{index-a4870456.js → index-b6102036.js} +2 -2
- package/build/{index-c2663452.js → index-b68e1442.js} +5 -5
- package/build/{index-0249a156.js → index-bb13d750.js} +32 -32
- package/build/{index-55b0242d.js → index-bf1c7e48.js} +6 -6
- package/build/{index-b2cb3045.js → index-bf529260.js} +15 -15
- package/build/{index-3e3172e1.js → index-c2c2415c.js} +1 -1
- package/build/{index-ce6d17ab.js → index-c3301efd.js} +17 -17
- package/build/{index-e68af67b.js → index-c802092e.js} +7 -7
- package/build/{index-c8802d84.js → index-d53859b3.js} +1 -1
- package/build/{index-5cd2a931.js → index-e6aaedf8.js} +1 -1
- package/build/{index-d53b1267.js → index-eae0bb63.js} +3 -3
- package/build/{index-c02ac057.js → index-ec2b00e1.js} +1 -1
- package/build/{index-687dee05.js → index-ed68ce85.js} +15 -15
- package/build/{index-4932ab6c.js → index-ff7f6ccc.js} +1 -1
- package/build/index.js +154 -133
- package/build/{labelSorting-161c37b3.js → labelSorting-de5a7b98.js} +4 -4
- package/build/lead/components/close.d.ts +1 -1
- package/build/lead/icons/Gift.d.ts +4 -0
- package/build/lead/icons/Star.d.ts +4 -0
- package/build/lead/icons/index.d.ts +4 -0
- package/build/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.d.ts +5 -0
- package/build/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.styled.d.ts +9 -0
- package/build/lead/layouts/inlineFreebie/FreebieCard/FreebieCard.types.d.ts +10 -0
- package/build/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.d.ts +4 -0
- package/build/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.styled.d.ts +16 -0
- package/build/lead/layouts/inlineFreebie/FreebieCarousel/FreebieCarousel.types.d.ts +7 -0
- package/build/lead/layouts/inlineFreebie/InlineFreebie.d.ts +8 -0
- package/build/lead/layouts/inlineFreebie/InlineFreebie.styled.d.ts +23 -0
- package/build/lead/layouts/inlineFreebie/InlineFreebie.types.d.ts +32 -0
- package/build/lead/layouts/inlineFreebie/index.d.ts +2 -0
- package/build/lead/layouts/lightbox/formContainer.d.ts +1 -5
- package/build/lead/layouts/lightbox/index.d.ts +2 -1
- package/build/lead.js +454 -243
- package/build/{logoIcon-f1794acb.js → logoIcon-6723cec9.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc/theme.d.ts +4 -0
- 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/miscTheme.js +2 -0
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +77 -77
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +47 -47
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +27 -27
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +57 -56
- package/build/{post-738fb70a.js → post-b454a0c6.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2.js +29 -29
- package/build/{store-953fd695.js → store-2ae366b5.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-82c29018.js → surveyThankyouCard-f166f69a.js} +5 -5
- package/build/{text-cdee258b.js → text-2eaa7a96.js} +2 -0
- 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-99232afb.js → translationsProvider-5e7a1d28.js} +1 -1
- package/build/{treePopoverMenu-da12df14.js → treePopoverMenu-aae2ef43.js} +19 -19
- package/build/types-06cc2668.js +19 -0
- package/build/types.js +2 -2
- package/build/{useCategory-6a8fc45f.js → useCategory-3804aadb.js} +5 -5
- package/build/{useHealthToolCache-4091e8ff.js → useHealthToolCache-254ad52e.js} +1 -1
- package/build/{usePlacesAutocomplete-12e1dddb.js → usePlacesAutocomplete-01697f13.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-a2e2121c.js → utils-904949ec.js} +5 -5
- package/build/{utils-7e137398.js → utils-c980d0cf.js} +2 -2
- package/build/utils-ce822cd0.js +18 -0
- package/build/{utils-7415741d.js → utils-db0b217c.js} +2 -2
- package/build/{utils-f1ee144d.js → utils-dbe7248e.js} +3 -3
- package/build/vaccination.js +22 -22
- package/package.json +2 -1
- package/build/esm/hooks/useFocusFieldOnDevice.d.ts +0 -12
- package/build/esm/index-cdf443ee.js +0 -15
- package/build/hooks/useFocusFieldOnDevice.d.ts +0 -12
- /package/build/{BMI_BOYS.percentile.monthly-a1fb8959.js → BMI_BOYS.percentile.monthly-b8375647.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-270cde1f.js → BMI_BOYS.percentile.weekly-68eabd39.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-d70aa382.js → BMI_BOYS.percentile.yearly-1b2e01ff.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b677de84.js → BMI_BOYS.zscore.monthly-52d8343d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-5355ede6.js → BMI_BOYS.zscore.weekly-de2d4b3d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-deb430b1.js → BMI_BOYS.zscore.yearly-fd00df9e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-1803089a.js → BMI_GIRLS.percentile.monthly-8865c5d0.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-eab65c56.js → BMI_GIRLS.percentile.weekly-a24ca9d5.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-d2decec0.js → BMI_GIRLS.percentile.yearly-9a50a761.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-d7e57e33.js → BMI_GIRLS.zscore.monthly-59197118.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-a4cf03c9.js → BMI_GIRLS.zscore.weekly-f88ef488.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-1c2b8468.js → BMI_GIRLS.zscore.yearly-e126dd91.js} +0 -0
- /package/build/{ChevronDown-a2eb5ade.js → ChevronDown-a4e7d6a6.js} +0 -0
- /package/build/{Close-01e199d0.js → Close-3bf156d2.js} +0 -0
- /package/build/{Google-2375af77.js → Google-d33ca2b0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-309adc58.js → HEAD CIRCUM_BOYS.percentile.monthly-e59ef836.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-b2b8cc5c.js → HEAD CIRCUM_BOYS.percentile.weekly-ec39aa9c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-fc276e88.js → HEAD CIRCUM_BOYS.percentile.yearly-7b57cff9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-c2040b09.js → HEAD CIRCUM_BOYS.zscore.monthly-6d5af065.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c8412342.js → HEAD CIRCUM_BOYS.zscore.weekly-652a9955.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-fbf4c99a.js → HEAD CIRCUM_BOYS.zscore.yearly-827b9f40.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-c91634b0.js → HEAD CIRCUM_GIRLS.percentile.monthly-47acb1f6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-aea96844.js → HEAD CIRCUM_GIRLS.percentile.weekly-4cb9adc1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-cbcb31f4.js → HEAD CIRCUM_GIRLS.percentile.yearly-e8036077.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-ef2b09b7.js → HEAD CIRCUM_GIRLS.zscore.monthly-0c69bbf5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e9d716b6.js → HEAD CIRCUM_GIRLS.zscore.weekly-e3d38031.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3c2fd593.js → HEAD CIRCUM_GIRLS.zscore.yearly-a2b7f091.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-fa6abddf.js → HEIGHT_BOYS.percentile.monthly-5fbd78d7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-ac3bf414.js → HEIGHT_BOYS.percentile.weekly-81530ad7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-811e1c69.js → HEIGHT_BOYS.percentile.yearly-d5e0059f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-ba47bff1.js → HEIGHT_BOYS.zscore.monthly-745f7556.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-5ed0c523.js → HEIGHT_BOYS.zscore.weekly-b9d87bf1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-34d6c76a.js → HEIGHT_BOYS.zscore.yearly-3a2d0471.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-c540acec.js → HEIGHT_GIRLS.percentile.monthly-8857bebd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-0d7997b0.js → HEIGHT_GIRLS.percentile.weekly-779b5afd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-6ab33a0d.js → HEIGHT_GIRLS.percentile.yearly-0fc244ab.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-f5058c85.js → HEIGHT_GIRLS.zscore.monthly-7249d51f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-c07a9932.js → HEIGHT_GIRLS.zscore.weekly-edc7e257.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-903c8459.js → HEIGHT_GIRLS.zscore.yearly-80fd3deb.js} +0 -0
- /package/build/{Locale-84c7ea1d.js → Locale-1251caf9.js} +0 -0
- /package/build/{Visible-af919995.js → Visible-450f4cbd.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-aea06477.js → WEIGHT_BOYS.percentile.monthly-bd1c7463.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-b4c99349.js → WEIGHT_BOYS.percentile.weekly-d67a0dcb.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-6ff8c8f5.js → WEIGHT_BOYS.percentile.yearly-24eef5c2.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-ca48dbd5.js → WEIGHT_BOYS.zscore.monthly-a8234e64.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-62285867.js → WEIGHT_BOYS.zscore.weekly-c5b0745e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-ba00391e.js → WEIGHT_BOYS.zscore.yearly-7e9d986f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-ce1cb779.js → WEIGHT_GIRLS.percentile.monthly-c6ac94e7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-f436def1.js → WEIGHT_GIRLS.percentile.weekly-014829b8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-3a135574.js → WEIGHT_GIRLS.percentile.yearly-1ec2e67a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-018c2326.js → WEIGHT_GIRLS.zscore.monthly-f8c31a73.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-4b9af28c.js → WEIGHT_GIRLS.zscore.weekly-4d279624.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-10db2708.js → WEIGHT_GIRLS.zscore.yearly-05122a06.js} +0 -0
- /package/build/{ageGenerate-de8cc8fc.js → ageGenerate-5b14e976.js} +0 -0
- /package/build/{animation-acc1971d.js → animation-03978149.js} +0 -0
- /package/build/{constants-0fec3569.js → constants-c7582824.js} +0 -0
- /package/build/{constants-b234fccd.js → constants-e7ffc3c1.js} +0 -0
- /package/build/{constants-506e4d40.js → constants-ec828833.js} +0 -0
- /package/build/{dataTransform-5eb9939e.js → dataTransform-276d8e3d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-8b889b55.js → BMI_BOYS.percentile.monthly-81c423f4.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-e36cd385.js → BMI_BOYS.percentile.weekly-9f8ce72d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-bc8d8848.js → BMI_BOYS.percentile.yearly-13265e9f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-9cf50908.js → BMI_BOYS.zscore.monthly-3cf5e257.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-04ffb038.js → BMI_BOYS.zscore.weekly-c97640a0.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-0f1206dc.js → BMI_BOYS.zscore.yearly-c3d5e510.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-a1baa42d.js → BMI_GIRLS.percentile.monthly-cf266fe3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-14184884.js → BMI_GIRLS.percentile.weekly-e200289e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-52adc423.js → BMI_GIRLS.percentile.yearly-44347377.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-e49adc4c.js → BMI_GIRLS.zscore.monthly-9ee8deaa.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-cdb8f033.js → BMI_GIRLS.zscore.weekly-67d04b69.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-77334dd7.js → BMI_GIRLS.zscore.yearly-70aa9f83.js} +0 -0
- /package/build/esm/{ChevronDown-1fc91841.js → ChevronDown-90377008.js} +0 -0
- /package/build/esm/{Close-39790a50.js → Close-f682fcdf.js} +0 -0
- /package/build/esm/{Google-341e7d4a.js → Google-4eda1036.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-0f899a09.js → HEAD CIRCUM_BOYS.percentile.monthly-da3ebc20.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-e0983a19.js → HEAD CIRCUM_BOYS.percentile.weekly-e887a7b1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9bca61cd.js → HEAD CIRCUM_BOYS.percentile.yearly-a1240461.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-95cd5071.js → HEAD CIRCUM_BOYS.zscore.monthly-3f5c522d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a16608c5.js → HEAD CIRCUM_BOYS.zscore.weekly-a42b9d88.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-2bc30b52.js → HEAD CIRCUM_BOYS.zscore.yearly-891c8399.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ecc1a579.js → HEAD CIRCUM_GIRLS.percentile.monthly-976b80cc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-0ecec686.js → HEAD CIRCUM_GIRLS.percentile.weekly-2d108702.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-df5c4209.js → HEAD CIRCUM_GIRLS.percentile.yearly-8afc71de.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-1e11af82.js → HEAD CIRCUM_GIRLS.zscore.monthly-8292c3d0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-aa82cf27.js → HEAD CIRCUM_GIRLS.zscore.weekly-fe18e53c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d77b20fb.js → HEAD CIRCUM_GIRLS.zscore.yearly-9e0500f2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-5487800a.js → HEIGHT_BOYS.percentile.monthly-e53886b9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-fc832d50.js → HEIGHT_BOYS.percentile.weekly-8755afb2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-4530b852.js → HEIGHT_BOYS.percentile.yearly-e45adbcf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-3a9a6eba.js → HEIGHT_BOYS.zscore.monthly-e2edccbb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-20d32341.js → HEIGHT_BOYS.zscore.weekly-121097b6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-54595d4f.js → HEIGHT_BOYS.zscore.yearly-b5427ddf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e70ace1f.js → HEIGHT_GIRLS.percentile.monthly-ee462181.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-aae43293.js → HEIGHT_GIRLS.percentile.weekly-c7f04cf1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-94fc6ddd.js → HEIGHT_GIRLS.percentile.yearly-1de8e3ac.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-864ca3ce.js → HEIGHT_GIRLS.zscore.monthly-a47e61ac.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e7a2eb25.js → HEIGHT_GIRLS.zscore.weekly-0d246117.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-41f5c4e0.js → HEIGHT_GIRLS.zscore.yearly-0af4c63a.js} +0 -0
- /package/build/esm/{Locale-1fefc2dd.js → Locale-cf278100.js} +0 -0
- /package/build/esm/{Visible-30249f32.js → Visible-d67ff7cf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-0e112cc1.js → WEIGHT_BOYS.percentile.monthly-19d31767.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-81037e90.js → WEIGHT_BOYS.percentile.weekly-e02c2221.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-123bada9.js → WEIGHT_BOYS.percentile.yearly-ee86c4cf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ddfe2af6.js → WEIGHT_BOYS.zscore.monthly-03a5bd01.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-c88401a1.js → WEIGHT_BOYS.zscore.weekly-8cc1955c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-e64cc73e.js → WEIGHT_BOYS.zscore.yearly-29bf753c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-77cb7c42.js → WEIGHT_GIRLS.percentile.monthly-125bd788.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-8106da8f.js → WEIGHT_GIRLS.percentile.weekly-46890aab.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-0fd4bcb7.js → WEIGHT_GIRLS.percentile.yearly-7eaa2119.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-63dba62d.js → WEIGHT_GIRLS.zscore.monthly-0f003b44.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-406ecdb0.js → WEIGHT_GIRLS.zscore.weekly-699b0229.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d92c06e8.js → WEIGHT_GIRLS.zscore.yearly-dc1f5828.js} +0 -0
- /package/build/esm/{ageGenerate-832a74e7.js → ageGenerate-c9a02783.js} +0 -0
- /package/build/esm/{animation-5b168565.js → animation-0bbc19e6.js} +0 -0
- /package/build/esm/{constants-311d12cf.js → constants-bd3a5c9b.js} +0 -0
- /package/build/esm/{constants-51e0ef5c.js → constants-e808a21d.js} +0 -0
- /package/build/esm/{constants-55f96dd0.js → constants-ecffc961.js} +0 -0
- /package/build/esm/{dataTransform-4616ff34.js → dataTransform-9dc46b82.js} +0 -0
- /package/build/esm/{index-1d3c4e1b.js → index-698bef6d.js} +0 -0
- /package/build/esm/{index-8f5b4762.js → index-9ab9a9ad.js} +0 -0
- /package/build/esm/{index-47eb0c1e.js → index-b27b2a3e.js} +0 -0
- /package/build/esm/{index-6d3f94f9.js → index-bee159d4.js} +0 -0
- /package/build/esm/{index-8051ae38.js → index-cd635940.js} +0 -0
- /package/build/esm/{index-863b83d6.js → index-d623bd74.js} +0 -0
- /package/build/esm/{index-e5b36892.js → index-e9555c7b.js} +0 -0
- /package/build/esm/{index-26f109c5.js → index-ff238251.js} +0 -0
- /package/build/esm/{index.styles-2cd5ded3.js → index.styles-72dcd9b3.js} +0 -0
- /package/build/esm/{localizeNumberFormat-c7d710e1.js → localizeNumberFormat-563e46aa.js} +0 -0
- /package/build/esm/{normalizeLink-985e7c58.js → normalizeLink-4f9809ba.js} +0 -0
- /package/build/esm/{number-51446888.js → number-81439267.js} +0 -0
- /package/build/esm/{paths-c9362431.js → paths-55dff93a.js} +0 -0
- /package/build/esm/{shared-e9fe4d41.js → shared-90647db5.js} +0 -0
- /package/build/esm/{translationsContext-ca8fa406.js → translationsContext-17866e80.js} +0 -0
- /package/build/esm/{tslib.es6-f67c6f6f.js → tslib.es6-642792ed.js} +0 -0
- /package/build/esm/{types-a5a890ee.js → types-a9490a6c.js} +0 -0
- /package/build/esm/{useIsInit-88258e2b.js → useIsInit-094e9cbc.js} +0 -0
- /package/build/esm/{useOutsideClick-fca4f909.js → useOutsideClick-b9428675.js} +0 -0
- /package/build/esm/{useScrollbarSize-34825c19.js → useScrollbarSize-fa88e842.js} +0 -0
- /package/build/esm/{useUniqueId-5e00c0a8.js → useUniqueId-b79cd5d9.js} +0 -0
- /package/build/esm/{utils-a32cf217.js → utils-d217a8a8.js} +0 -0
- /package/build/{index-0ef430ac.js → index-0be02aa2.js} +0 -0
- /package/build/{index-35cd77a0.js → index-2fe95bdb.js} +0 -0
- /package/build/{index-136020c2.js → index-4273987f.js} +0 -0
- /package/build/{index-fb5bb8b0.js → index-77ca9002.js} +0 -0
- /package/build/{index-f0a5c03e.js → index-7fe12f20.js} +0 -0
- /package/build/{index-f7d0113e.js → index-a29ccc0e.js} +0 -0
- /package/build/{index-224b66f9.js → index-d333b01b.js} +0 -0
- /package/build/{index-bc19cdcd.js → index-f3e2a299.js} +0 -0
- /package/build/{index.styles-2a92bd70.js → index.styles-8c61f4be.js} +0 -0
- /package/build/{localizeNumberFormat-31281dd0.js → localizeNumberFormat-6d2694e2.js} +0 -0
- /package/build/{normalizeLink-a7165467.js → normalizeLink-7844e407.js} +0 -0
- /package/build/{number-378fad7c.js → number-b3ecd2c1.js} +0 -0
- /package/build/{paths-3a80c7c1.js → paths-bbc05982.js} +0 -0
- /package/build/{shared-a5e0a90e.js → shared-1f6a17b8.js} +0 -0
- /package/build/{translationsContext-10f7b0e2.js → translationsContext-b797b2e1.js} +0 -0
- /package/build/{tslib.es6-a7b592ce.js → tslib.es6-370364b7.js} +0 -0
- /package/build/{types-4cd12ed8.js → types-1ad8efd7.js} +0 -0
- /package/build/{useIsInit-868bde04.js → useIsInit-29229b42.js} +0 -0
- /package/build/{useOutsideClick-b062e042.js → useOutsideClick-c102e6a3.js} +0 -0
- /package/build/{useScrollbarSize-f47f0a8e.js → useScrollbarSize-f8c67b26.js} +0 -0
- /package/build/{useUniqueId-1f54ee4d.js → useUniqueId-a18cf14d.js} +0 -0
- /package/build/{utils-be09deb2.js → utils-4249781d.js} +0 -0
package/build/lead.js
CHANGED
|
@@ -2,60 +2,61 @@
|
|
|
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-370364b7.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-1d7e96fe.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-ff7f6ccc.js');
|
|
14
|
+
var translationsContext = require('./translationsContext-b797b2e1.js');
|
|
15
|
+
var utils$1 = require('./utils-4249781d.js');
|
|
16
|
+
var index$2 = require('./index-b68e1442.js');
|
|
17
|
+
var index$3 = require('./index-6d11558a.js');
|
|
18
|
+
var index$5 = require('./index-6f5e8b18.js');
|
|
19
|
+
var index$4 = require('./index-6a549749.js');
|
|
20
|
+
require('./index.styles-8c61f4be.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-60ff3f94.js');
|
|
23
|
+
var text = require('./text-2eaa7a96.js');
|
|
24
|
+
require('./index-395c64b6.js');
|
|
25
|
+
var utils = require('./utils-c980d0cf.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-b4fbb091.js');
|
|
28
|
+
var index$b = require('./index-e6aaedf8.js');
|
|
29
|
+
require('./index-f3e2a299.js');
|
|
30
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-01697f13.js');
|
|
31
|
+
var index$6 = require('./index-a2c2dbe9.js');
|
|
32
|
+
var translationsProvider = require('./translationsProvider-5e7a1d28.js');
|
|
33
|
+
var Locale = require('./Locale-1251caf9.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-8b9f3ebb.js');
|
|
40
|
+
var togetherComponentGlobalContext = require('./utils-dbe7248e.js');
|
|
41
|
+
var index$9 = require('./index-18937bc7.js');
|
|
42
|
+
var index$a = require('./index-0be02aa2.js');
|
|
43
|
+
var index$c = require('./index-8f8e535c.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
|
|
48
|
+
var InputDate = require('./InputDate-078ab5aa.js');
|
|
49
|
+
var carousel = require('@mantine/carousel');
|
|
50
|
+
var utils$2 = require('./utils-ce822cd0.js');
|
|
51
|
+
var index$d = require('./index-8f59559d.js');
|
|
52
|
+
var Close = require('./Close-3bf156d2.js');
|
|
51
53
|
require('./constantsIsProduction.js');
|
|
52
|
-
require('./normalizeLink-
|
|
54
|
+
require('./normalizeLink-7844e407.js');
|
|
53
55
|
require('@hhgtech/icons/other');
|
|
54
|
-
require('@mantine/carousel');
|
|
55
56
|
require('classnames');
|
|
56
|
-
require('./useUniqueId-
|
|
57
|
+
require('./useUniqueId-a18cf14d.js');
|
|
57
58
|
require('./constantsSite.js');
|
|
58
|
-
require('./shared-
|
|
59
|
+
require('./shared-1f6a17b8.js');
|
|
59
60
|
require('@mantine/notifications');
|
|
60
61
|
require('date-fns/locale');
|
|
61
62
|
require('./constantsRiskScreener.js');
|
|
@@ -72,11 +73,12 @@ require('./i18n-values/vi-VN_MB.js');
|
|
|
72
73
|
require('./i18n-values/zh-SG.js');
|
|
73
74
|
require('./i18n-values/zh-TW.js');
|
|
74
75
|
require('@emotion/react');
|
|
75
|
-
require('./index-
|
|
76
|
+
require('./index-4273987f.js');
|
|
76
77
|
require('slugify');
|
|
77
78
|
require('string-format');
|
|
78
79
|
require('./togetherApiPaths.js');
|
|
79
|
-
require('./constants-
|
|
80
|
+
require('./constants-ec828833.js');
|
|
81
|
+
require('./constants-bf3d1caa.js');
|
|
80
82
|
require('vaul');
|
|
81
83
|
|
|
82
84
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -962,7 +964,7 @@ const Description = (_a) => {
|
|
|
962
964
|
|
|
963
965
|
const LeadGenContext$1 = React.createContext({});
|
|
964
966
|
|
|
965
|
-
var useStyles$
|
|
967
|
+
var useStyles$3 = core.createStyles(() => {
|
|
966
968
|
return {
|
|
967
969
|
control: {},
|
|
968
970
|
};
|
|
@@ -1025,7 +1027,7 @@ const TitleBlock$1 = ({ children, align, }) => (React__default["default"].create
|
|
|
1025
1027
|
|
|
1026
1028
|
const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, styles, classNames, popoverProps, }) => {
|
|
1027
1029
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
1028
|
-
const { classes, cx } = useStyles$
|
|
1030
|
+
const { classes, cx } = useStyles$3(undefined, {
|
|
1029
1031
|
name: 'LeadGen__Field',
|
|
1030
1032
|
styles,
|
|
1031
1033
|
classNames,
|
|
@@ -1113,7 +1115,7 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1113
1115
|
})));
|
|
1114
1116
|
};
|
|
1115
1117
|
|
|
1116
|
-
var useStyles$
|
|
1118
|
+
var useStyles$2 = core.createStyles((theme) => {
|
|
1117
1119
|
return {
|
|
1118
1120
|
root: {},
|
|
1119
1121
|
header: {},
|
|
@@ -1143,7 +1145,7 @@ const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps,
|
|
|
1143
1145
|
const { listBlockAdded, leadFormConfig: { form, validateObj }, validatingEmailRef, validatingPhoneRef,
|
|
1144
1146
|
// formRef,
|
|
1145
1147
|
setFormRef, onClose, onOtherSubmit, actionBlocks, locale, setShowOtpPhone, onSubmit, } = React.useContext(LeadGenComponentContext);
|
|
1146
|
-
const { classes, cx } = useStyles$
|
|
1148
|
+
const { classes, cx } = useStyles$2(undefined, {
|
|
1147
1149
|
name: 'LeadGen__FormComponent',
|
|
1148
1150
|
styles,
|
|
1149
1151
|
classNames,
|
|
@@ -1237,7 +1239,7 @@ const Form = (props) => {
|
|
|
1237
1239
|
return showThankyou || showOtpPhone ? null : React__default["default"].createElement(FormComponent, Object.assign({}, props));
|
|
1238
1240
|
};
|
|
1239
1241
|
|
|
1240
|
-
var useStyles = core.createStyles(() => {
|
|
1242
|
+
var useStyles$1 = core.createStyles(() => {
|
|
1241
1243
|
return {
|
|
1242
1244
|
root: {},
|
|
1243
1245
|
header: {},
|
|
@@ -1262,7 +1264,7 @@ const OtpBlockComponent = ({ otpData, onSuccess, autoSendWhenOpen, className, st
|
|
|
1262
1264
|
const [displayPhone, setDisplayPhone] = React.useState('');
|
|
1263
1265
|
const formatPhoneNumberIntlRef = React.useRef();
|
|
1264
1266
|
const [isSubmitLoading, setIsSubmitLoading] = React.useState(false);
|
|
1265
|
-
const { classes, cx } = useStyles(undefined, {
|
|
1267
|
+
const { classes, cx } = useStyles$1(undefined, {
|
|
1266
1268
|
name: 'LeadGen__OTP',
|
|
1267
1269
|
styles,
|
|
1268
1270
|
classNames,
|
|
@@ -1431,6 +1433,9 @@ var enPH = {
|
|
|
1431
1433
|
"lead.empty.title": "Oops, seem your information is empty, do you want to submit the information again?",
|
|
1432
1434
|
"lead.empty.cancel": "Cancel",
|
|
1433
1435
|
"lead.empty.submitAgain": "Submit again",
|
|
1436
|
+
"inlineFreebie.freeSample.title": "Free Sample",
|
|
1437
|
+
"inlineFreebie.luckyDrawGift.title": "Lucky-draw Gift",
|
|
1438
|
+
"inlineFreebie.value": "Value",
|
|
1434
1439
|
"common.day": "Day",
|
|
1435
1440
|
"common.month": "Month",
|
|
1436
1441
|
"common.year": "Year"
|
|
@@ -1454,6 +1459,9 @@ var hiIN = {
|
|
|
1454
1459
|
"lead.empty.title": "ऊप्स! लगता है आपकी जानकारी खाली है। क्या आप जानकारी फिर से सबमिट करना चाहते हैं?",
|
|
1455
1460
|
"lead.empty.cancel": "रद्द करें",
|
|
1456
1461
|
"lead.empty.submitAgain": "फिर से सबमिट करें",
|
|
1462
|
+
"inlineFreebie.freeSample.title": "मुफ्त नमूना",
|
|
1463
|
+
"inlineFreebie.luckyDrawGift.title": "लकी-ड्रा गिफ्ट",
|
|
1464
|
+
"inlineFreebie.value": "मूल्य",
|
|
1457
1465
|
"common.day": "साल",
|
|
1458
1466
|
"common.month": "महीना",
|
|
1459
1467
|
"common.year": ""
|
|
@@ -1479,6 +1487,9 @@ var idID = {
|
|
|
1479
1487
|
"lead.empty.title": "Oops, sepertinya informasi Anda kosong. Apakah Anda ingin mengirimkan informasi lagi?",
|
|
1480
1488
|
"lead.empty.cancel": "Batal",
|
|
1481
1489
|
"lead.empty.submitAgain": "Kirim lagi",
|
|
1490
|
+
"inlineFreebie.freeSample.title": "Sampel Gratis",
|
|
1491
|
+
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1492
|
+
"inlineFreebie.value": "Nilai",
|
|
1482
1493
|
"common.day": "Hari",
|
|
1483
1494
|
"common.month": "Bulan",
|
|
1484
1495
|
"common.year": "Tahun"
|
|
@@ -1504,6 +1515,9 @@ var kmKH = {
|
|
|
1504
1515
|
"lead.empty.title": "អូុបស! ហាក់ដូចជាព័ត៌មានរបស់អ្នកទទេ។ តើអ្នកចង់ដាក់ស្នើព័ត៌មានម្តងទៀតទេ?",
|
|
1505
1516
|
"lead.empty.cancel": "លុបចោល",
|
|
1506
1517
|
"lead.empty.submitAgain": "ដាក់ស្នើម្ដងទៀត",
|
|
1518
|
+
"inlineFreebie.freeSample.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1519
|
+
"inlineFreebie.luckyDrawGift.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1520
|
+
"inlineFreebie.value": "តម្លៃ",
|
|
1507
1521
|
"common.day": "ឆ្នាំ",
|
|
1508
1522
|
"common.month": "ខែ",
|
|
1509
1523
|
"common.year": "ថ្ងៃ"
|
|
@@ -1529,6 +1543,9 @@ var msMY = {
|
|
|
1529
1543
|
"lead.empty.title": "Oops, nampaknya maklumat anda kosong. Adakah anda ingin menghantar maklumat semula?",
|
|
1530
1544
|
"lead.empty.cancel": "Batal",
|
|
1531
1545
|
"lead.empty.submitAgain": "Hantar semula",
|
|
1546
|
+
"inlineFreebie.freeSample.title": "Sampel Percuma",
|
|
1547
|
+
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1548
|
+
"inlineFreebie.value": "Nilai",
|
|
1532
1549
|
"common.day": "Hari",
|
|
1533
1550
|
"common.month": "Bulan",
|
|
1534
1551
|
"common.year": "Tahun"
|
|
@@ -1554,6 +1571,9 @@ var myMM = {
|
|
|
1554
1571
|
"lead.empty.title": "အုပ်စ်! သင့်အချက်အလက်သည် ဗလာဖြစ်နေသလိုဖြစ်သည်။ ထပ်မံတင်သွင်းလိုပါသလား?",
|
|
1555
1572
|
"lead.empty.cancel": "မလုပ်ဆောင်ပါ",
|
|
1556
1573
|
"lead.empty.submitAgain": "ထပ်မံတင်သွင်းပါ",
|
|
1574
|
+
"inlineFreebie.freeSample.title": "အခမဲ့အစားအစာ",
|
|
1575
|
+
"inlineFreebie.luckyDrawGift.title": "အခမဲ့အစားအစာ",
|
|
1576
|
+
"inlineFreebie.value": "တန်ဖိုး",
|
|
1557
1577
|
"common.day": "ရက်",
|
|
1558
1578
|
"common.month": "လ",
|
|
1559
1579
|
"common.year": "နှစ်"
|
|
@@ -1579,6 +1599,9 @@ var thTH = {
|
|
|
1579
1599
|
"lead.empty.title": "อุ๊ปส์! ดูเหมือนว่าข้อมูลของคุณว่างเปล่า คุณต้องการส่งข้อมูลอีกครั้งหรือไม่?",
|
|
1580
1600
|
"lead.empty.cancel": "ยกเลิก",
|
|
1581
1601
|
"lead.empty.submitAgain": "ส่งอีกครั้ง",
|
|
1602
|
+
"inlineFreebie.freeSample.title": "ตัวอย่างฟรี",
|
|
1603
|
+
"inlineFreebie.luckyDrawGift.title": "ของรางวัลที่ถูกรางวัล",
|
|
1604
|
+
"inlineFreebie.value": "ค่า",
|
|
1582
1605
|
"common.day": "วัน",
|
|
1583
1606
|
"common.month": "เดือน",
|
|
1584
1607
|
"common.year": "ปี"
|
|
@@ -1615,6 +1638,9 @@ var viVN = {
|
|
|
1615
1638
|
"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?",
|
|
1616
1639
|
"lead.empty.cancel": "Hủy",
|
|
1617
1640
|
"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á",
|
|
1618
1644
|
"common.day": "Ngày",
|
|
1619
1645
|
"common.month": "Tháng",
|
|
1620
1646
|
"common.year": "Năm"
|
|
@@ -1640,6 +1666,9 @@ var zhTW = {
|
|
|
1640
1666
|
"lead.empty.title": "哎呀,您的資訊似乎是空的,您想要重新提交資訊嗎?",
|
|
1641
1667
|
"lead.empty.cancel": "取消",
|
|
1642
1668
|
"lead.empty.submitAgain": "重新提交",
|
|
1669
|
+
"inlineFreebie.freeSample.title": "免費試用",
|
|
1670
|
+
"inlineFreebie.luckyDrawGift.title": "幸運抽獎禮品",
|
|
1671
|
+
"inlineFreebie.value": "價值",
|
|
1643
1672
|
"common.day": "日",
|
|
1644
1673
|
"common.month": "月",
|
|
1645
1674
|
"common.year": "年"
|
|
@@ -3297,26 +3326,6 @@ const FloatingLayout = ({ popupId, url, title, urlText, titleAlign, subtitle, su
|
|
|
3297
3326
|
React__default["default"].createElement(CloseButton, { onClose: onClose, containerClassName: "close-button-top-right" }))))));
|
|
3298
3327
|
};
|
|
3299
3328
|
|
|
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
|
-
|
|
3320
3329
|
function useScrollTo() {
|
|
3321
3330
|
const scrollTo = React.useCallback((element, to, duration = 500) => {
|
|
3322
3331
|
if (!element)
|
|
@@ -3340,6 +3349,35 @@ function useScrollTo() {
|
|
|
3340
3349
|
return scrollTo;
|
|
3341
3350
|
}
|
|
3342
3351
|
|
|
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
|
+
|
|
3343
3381
|
// Default handling for Safari & Chrome
|
|
3344
3382
|
function useViewportPushedByKeyboard(threshold = 20) {
|
|
3345
3383
|
const ref = React.useRef(null);
|
|
@@ -3384,102 +3422,25 @@ function useKeyboardOpen(isAndroid = false) {
|
|
|
3384
3422
|
return keyOpen;
|
|
3385
3423
|
}
|
|
3386
3424
|
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
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
|
-
};
|
|
3425
|
+
function isMac() {
|
|
3426
|
+
return testPlatform(/^Mac/);
|
|
3427
|
+
}
|
|
3428
|
+
function isIPhone() {
|
|
3429
|
+
return testPlatform(/^iPhone/);
|
|
3430
|
+
}
|
|
3431
|
+
function isIPad() {
|
|
3432
|
+
return (testPlatform(/^iPad/) ||
|
|
3433
|
+
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
3434
|
+
(isMac() && navigator.maxTouchPoints > 1));
|
|
3435
|
+
}
|
|
3436
|
+
function isIOS() {
|
|
3437
|
+
return isIPhone() || isIPad();
|
|
3438
|
+
}
|
|
3439
|
+
function testPlatform(re) {
|
|
3440
|
+
return typeof window !== 'undefined' && window.navigator != null
|
|
3441
|
+
? re.test(window.navigator.platform)
|
|
3442
|
+
: undefined;
|
|
3443
|
+
}
|
|
3483
3444
|
|
|
3484
3445
|
function chain(...callbacks) {
|
|
3485
3446
|
return (...args) => {
|
|
@@ -3736,35 +3697,6 @@ function isInput(target) {
|
|
|
3736
3697
|
(target instanceof HTMLElement && target.isContentEditable));
|
|
3737
3698
|
}
|
|
3738
3699
|
|
|
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
|
-
|
|
3768
3700
|
const StyledLeadGenLightBoxBFooter = styled__default["default"].div `
|
|
3769
3701
|
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3770
3702
|
padding-inline: var(--spacing-x, 20px);
|
|
@@ -4395,7 +4327,7 @@ const StyledFormContainer = styled__default["default"].div `
|
|
|
4395
4327
|
*
|
|
4396
4328
|
*/
|
|
4397
4329
|
const FormContainer = (_a) => {
|
|
4398
|
-
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer
|
|
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"]);
|
|
4399
4331
|
const HeaderContent = (React__default["default"].createElement("div", { className: "leadgen-form_header" },
|
|
4400
4332
|
iconComponent,
|
|
4401
4333
|
React__default["default"].createElement(index$2.Text, { as: "h2", size: 'h4', variant: "primary", weight: 'semiBold', className: "leadgen-title", "data-align": titleAlign }, title),
|
|
@@ -4405,13 +4337,13 @@ const FormContainer = (_a) => {
|
|
|
4405
4337
|
}
|
|
4406
4338
|
return (React__default["default"].createElement(StyledFormContainer, Object.assign({ className: core.clsx(className, 'leadgen-form_container'), style: style }, restProps),
|
|
4407
4339
|
React__default["default"].createElement("div", { className: "leadgen-form_wrapper" },
|
|
4408
|
-
header
|
|
4340
|
+
!!header && (React__default["default"].createElement("div", { className: "leadgen-form_scrollable" },
|
|
4409
4341
|
header,
|
|
4410
4342
|
HeaderContent,
|
|
4411
|
-
React__default["default"].createElement("div", { className: "leadgen-form_body" }, children),
|
|
4412
|
-
|
|
4343
|
+
React__default["default"].createElement("div", { className: "leadgen-form_body" }, children))),
|
|
4344
|
+
!header && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
4413
4345
|
HeaderContent,
|
|
4414
|
-
React__default["default"].createElement("div", { className: "leadgen-form_body"
|
|
4346
|
+
React__default["default"].createElement("div", { className: "leadgen-form_body" }, children))),
|
|
4415
4347
|
React__default["default"].createElement("div", { className: "leadgen-form_footer" }, footer))));
|
|
4416
4348
|
};
|
|
4417
4349
|
|
|
@@ -4565,6 +4497,215 @@ const OtpBlock = ({ otpData, onSuccess, autoSendWhenOpen, }) => {
|
|
|
4565
4497
|
} }))))));
|
|
4566
4498
|
};
|
|
4567
4499
|
|
|
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
|
+
|
|
4568
4709
|
// url: imageBlocks.imageMobile.data.url
|
|
4569
4710
|
// newTab: imageBlocks.imageMobile.data.newtab
|
|
4570
4711
|
// image: campaignShow.image
|
|
@@ -4582,7 +4723,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4582
4723
|
];
|
|
4583
4724
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4584
4725
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
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, }) => {
|
|
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, campaign, }) => {
|
|
4586
4727
|
var _a, _b;
|
|
4587
4728
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
4588
4729
|
const { isMobile } = index$c.useScreenSize();
|
|
@@ -4607,6 +4748,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4607
4748
|
});
|
|
4608
4749
|
}
|
|
4609
4750
|
};
|
|
4751
|
+
const { height } = useViewportDimensions();
|
|
4610
4752
|
// usePreventScroll()
|
|
4611
4753
|
const formActiveTime = React.useRef(0);
|
|
4612
4754
|
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
@@ -4621,7 +4763,8 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4621
4763
|
const isLightBox = currentLayout.includes('LightBox');
|
|
4622
4764
|
const isLightBoxA = currentLayout === LEADGEN_LAYOUT.LightBoxA;
|
|
4623
4765
|
const isLightBoxB = currentLayout === LEADGEN_LAYOUT.LightBoxB;
|
|
4624
|
-
const isInline = currentLayout.includes('Inline');
|
|
4766
|
+
const isInline = currentLayout.includes('Inline') || currentLayout.includes('Freebie');
|
|
4767
|
+
const isFreebie = currentLayout.includes('Freebie');
|
|
4625
4768
|
const isFullscreen = currentLayout === LEADGEN_LAYOUT.Fullscreen;
|
|
4626
4769
|
const isInPage = isInline || isSidebar;
|
|
4627
4770
|
const isDrawer = isLightBoxB && isMobile;
|
|
@@ -4645,7 +4788,19 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4645
4788
|
userInfo,
|
|
4646
4789
|
format: (_a = (index$7.ISO_FORMAT[locale] || index$7.ISO_FORMAT['vi-VN'])) === null || _a === void 0 ? void 0 : _a.dateFormat,
|
|
4647
4790
|
});
|
|
4648
|
-
const
|
|
4791
|
+
const popupContentRef = React.useRef(null);
|
|
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();
|
|
4649
4804
|
const handleDoImpression = React.useCallback((type = 'impression') => doImpression({
|
|
4650
4805
|
formValues: form.values,
|
|
4651
4806
|
formActiveTime: formActiveTime.current,
|
|
@@ -4659,6 +4814,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4659
4814
|
return null;
|
|
4660
4815
|
}
|
|
4661
4816
|
React.useEffect(() => {
|
|
4817
|
+
initialHeight.current = window.innerHeight;
|
|
4662
4818
|
(isLightBox || isSlider) && handleDoImpression();
|
|
4663
4819
|
if (isLightBox || isFullscreen) {
|
|
4664
4820
|
document.body.classList.add('noscroll');
|
|
@@ -4668,6 +4824,18 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4668
4824
|
}
|
|
4669
4825
|
clearCacheUsedEmailOrPhone();
|
|
4670
4826
|
}, []);
|
|
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]);
|
|
4671
4839
|
React.useEffect(() => {
|
|
4672
4840
|
formRef.current && setLastFormRef(formRef.current);
|
|
4673
4841
|
}, [formRef.current]);
|
|
@@ -4695,6 +4863,18 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4695
4863
|
}
|
|
4696
4864
|
return () => clearInterval(intervalId);
|
|
4697
4865
|
}, [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]);
|
|
4698
4878
|
const listBlockAddedRequired = React.useMemo(() => leadGenFieldRequired(listBlockAdded), listBlockAdded);
|
|
4699
4879
|
const disabledButtonSubmit = React.useMemo(() => {
|
|
4700
4880
|
if (listBlockAddedRequired.length) {
|
|
@@ -4702,11 +4882,47 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4702
4882
|
}
|
|
4703
4883
|
return false;
|
|
4704
4884
|
}, [...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
|
+
};
|
|
4705
4893
|
const onFocus = (e) => {
|
|
4706
4894
|
// EL-926 Temporary turn off handling focus form on mobile to fix scrolling bug on lightbox A
|
|
4707
4895
|
// return false
|
|
4708
4896
|
e.preventDefault();
|
|
4709
|
-
|
|
4897
|
+
if (!isMobile || !isIos || !isLightBoxB)
|
|
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);
|
|
4710
4926
|
};
|
|
4711
4927
|
const middlewareOnSubmit = (e) => {
|
|
4712
4928
|
e.preventDefault();
|
|
@@ -4830,10 +5046,14 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4830
5046
|
const PopupEmpty = showEmpty && (React__default["default"].createElement(EmptyComponent, { onClose: onClose, onContinue: () => setShowEmpty(false) }));
|
|
4831
5047
|
const PopupForm = (React__default["default"].createElement(LeadFormProvider, { form: form },
|
|
4832
5048
|
React__default["default"].createElement("form", { ref: formRef, className: "leadgen-form", onFocus: onFocus, onSubmit: middlewareOnSubmit },
|
|
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
|
|
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 },
|
|
4834
5050
|
React__default["default"].createElement("div", { className: "leadgen-form_inner" },
|
|
4835
5051
|
React__default["default"].createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit, hasSubmitBtn: Boolean(ButtonSubmit), isSubmitLoading: isSubmitLoading, disabledButtonSubmit: disabledButtonSubmit })))),
|
|
4836
|
-
|
|
5052
|
+
React__default["default"].createElement("div", { style: {
|
|
5053
|
+
height: `${bottomSpacing}px`,
|
|
5054
|
+
width: '100%',
|
|
5055
|
+
transition: 'height .2s ease',
|
|
5056
|
+
} })));
|
|
4837
5057
|
const PopupOtp = showOtpPhone && (React__default["default"].createElement(OtpBlock, { otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
4838
5058
|
setShowOtpPhone(null);
|
|
4839
5059
|
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
@@ -4844,7 +5064,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4844
5064
|
});
|
|
4845
5065
|
} }));
|
|
4846
5066
|
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 }));
|
|
4847
|
-
const PopupContent = (React__default["default"].createElement("div", { ref:
|
|
5067
|
+
const PopupContent = (React__default["default"].createElement("div", { ref: popupContentRef, className: core.clsx('leadgen-content', {
|
|
4848
5068
|
'leadgen-content_small': limitFieldsLightBoxB,
|
|
4849
5069
|
}), onScroll: handlePopupContentScroll },
|
|
4850
5070
|
!headerInsideFormContainer && PopupHeader,
|
|
@@ -4890,7 +5110,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4890
5110
|
position: 'absolute',
|
|
4891
5111
|
inset: 0,
|
|
4892
5112
|
zIndex: snap === 1 ? -1 : 1,
|
|
4893
|
-
}, onClick: () => setSnap(1) })))) : (React__default["default"].createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName },
|
|
5113
|
+
}, onClick: () => setSnap(1) })))) : (React__default["default"].createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName, style: isMobile ? { maxHeight: height } : undefined },
|
|
4894
5114
|
isFullscreen ? (React__default["default"].createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
4895
5115
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
4896
5116
|
} })) : null,
|
|
@@ -4904,7 +5124,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4904
5124
|
return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
|
|
4905
5125
|
}
|
|
4906
5126
|
else if (isInline) {
|
|
4907
|
-
return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5127
|
+
return (React__default["default"].createElement(InlineLayout, { action: action, content: isFreebie ? (React__default["default"].createElement(InlineFreebie, { campaign: campaign.freebie[0], locale: locale })) : (PopupContainer), campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
4908
5128
|
}
|
|
4909
5129
|
return null;
|
|
4910
5130
|
};
|
|
@@ -5097,10 +5317,11 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
|
|
|
5097
5317
|
}
|
|
5098
5318
|
else if (currentLayout.includes('LightBox') ||
|
|
5099
5319
|
currentLayout.includes('Inline') ||
|
|
5320
|
+
currentLayout.includes('Freebie') ||
|
|
5100
5321
|
currentLayout == 'Fullscreen' ||
|
|
5101
5322
|
currentLayout == 'Sidebar' ||
|
|
5102
5323
|
currentLayout == 'Slider') {
|
|
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 }));
|
|
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, campaign: campaign, 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 }));
|
|
5104
5325
|
}
|
|
5105
5326
|
else if (currentLayout.includes('Skin')) {
|
|
5106
5327
|
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 }));
|
|
@@ -5196,7 +5417,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5196
5417
|
var _a, _b;
|
|
5197
5418
|
const scrollEventHandlerRef = React.useRef();
|
|
5198
5419
|
const leadStartTimeRef = React.useRef(Date.now());
|
|
5199
|
-
const [, setScrollLocked] = hooks.useScrollLock();
|
|
5200
5420
|
const { apiUrl } = React.useMemo(() => {
|
|
5201
5421
|
let apiUrl = apiUrlProp;
|
|
5202
5422
|
if (apiUrl.includes('localhost')) {
|
|
@@ -5212,9 +5432,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5212
5432
|
const [showEmpty, setShowEmpty] = React.useState(false);
|
|
5213
5433
|
const [redirectUrl, setRedirectUrl] = React.useState();
|
|
5214
5434
|
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]);
|
|
5218
5435
|
React.useEffect(() => {
|
|
5219
5436
|
if (forceCampaign) {
|
|
5220
5437
|
setShowCampaign(forceCampaign);
|
|
@@ -5234,7 +5451,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5234
5451
|
document.body.classList.remove('noscroll');
|
|
5235
5452
|
setShowCampaign(null);
|
|
5236
5453
|
setShowThankyou(null);
|
|
5237
|
-
setScrollLocked(false);
|
|
5238
5454
|
setAction('HIDE');
|
|
5239
5455
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
5240
5456
|
};
|
|
@@ -5256,41 +5472,36 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5256
5472
|
}
|
|
5257
5473
|
}
|
|
5258
5474
|
}
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5475
|
+
yield Promise.all([
|
|
5476
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/popup_exit`, {
|
|
5477
|
+
method: 'POST',
|
|
5478
|
+
headers: {
|
|
5479
|
+
'Content-Type': 'application/json',
|
|
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: {
|
|
5270
5493
|
cookie_id: miscCookieHelper.getCookie('hhg-id') || '',
|
|
5271
|
-
|
|
5272
|
-
|
|
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',
|
|
5500
|
+
},
|
|
5501
|
+
currentLayout,
|
|
5502
|
+
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
5273
5503
|
}),
|
|
5274
|
-
|
|
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
|
-
}
|
|
5504
|
+
]);
|
|
5294
5505
|
onCloseBase();
|
|
5295
5506
|
});
|
|
5296
5507
|
const onUnmount = (params) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -5548,9 +5759,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5548
5759
|
leadStartTimeRef.current = Date.now();
|
|
5549
5760
|
}
|
|
5550
5761
|
}, [showCampaign]);
|
|
5551
|
-
React.useEffect(() => {
|
|
5552
|
-
setScrollLocked(layoutUseOverlay);
|
|
5553
|
-
}, [layoutUseOverlay]);
|
|
5554
5762
|
return (React__default["default"].createElement(LeadGenContext$1.Provider, { value: {
|
|
5555
5763
|
primaryColor,
|
|
5556
5764
|
apiUrl,
|
|
@@ -5566,7 +5774,10 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5566
5774
|
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) => {
|
|
5567
5775
|
var _a;
|
|
5568
5776
|
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,
|
|
5569
|
-
|
|
5777
|
+
!!currentLayout &&
|
|
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() })),
|
|
5570
5781
|
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 })))));
|
|
5571
5782
|
}))))))));
|
|
5572
5783
|
};
|