@hhgtech/hhg-components 1.29.431-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-39204294.js → InputDate-078ab5aa.js} +5 -5
- package/build/{LastPeriod-3acf0aff.js → LastPeriod-88e66817.js} +1 -1
- package/build/{MobileBottomNavigationIcon-acbc41ea.js → MobileBottomNavigationIcon-42376e95.js} +3 -3
- package/build/{Spinner-234d86f2.js → Spinner-fbb7702d.js} +1 -1
- package/build/{WhatsApp-91e21909.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/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-8ad5fdfc.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-33e24e8b.js → core-6a9d2951.js} +1 -1
- package/build/{dataTransform-43c4517e.js → dataTransform-cbcfc958.js} +1 -1
- package/build/ecom.js +22 -25
- package/build/{editor-0f12da8e.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-d3fd66b6.js → InputDate-7eb655c3.js} +5 -5
- package/build/esm/{LastPeriod-f7824281.js → LastPeriod-096d65d6.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-2d2be41c.js → MobileBottomNavigationIcon-b7daa1e6.js} +3 -3
- package/build/esm/{Spinner-66b76bc7.js → Spinner-80499ba3.js} +1 -1
- package/build/esm/{WhatsApp-100bdaa1.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/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-15eb5ed9.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-46f6bd5a.js → core-045f8163.js} +1 -1
- package/build/esm/{dataTransform-0f54c39d.js → dataTransform-596b9937.js} +1 -1
- package/build/esm/ecom.js +5 -8
- package/build/esm/{editor-871a6752.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-5025c5e5.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-10f66cb1.js → index-001f6a7c.js} +13 -13
- package/build/esm/{index-9b8c8ccc.js → index-049ed0de.js} +13 -13
- package/build/esm/{types-44fd0139.js → index-099e1ba5.js} +3 -16
- package/build/esm/{index-a4cd2ce0.js → index-117a0f5e.js} +2 -2
- package/build/esm/{index-464e0154.js → index-13fa3e14.js} +1 -1
- package/build/esm/{index-83c94000.js → index-17d135a6.js} +1 -1
- package/build/esm/{index-e2c86336.js → index-254565f3.js} +3 -3
- package/build/esm/{index-f4c5b2c3.js → index-291cd201.js} +32 -32
- package/build/esm/{index-070e49bf.js → index-2cca619a.js} +14 -14
- package/build/esm/{index-c0e1cdc9.js → index-2d71e5b3.js} +13 -13
- package/build/esm/{index-3ade7656.js → index-2e5dc26a.js} +3 -3
- package/build/esm/{index-8cf53035.js → index-3169558c.js} +17 -17
- package/build/esm/{index-7ba07d42.js → index-32a50c3a.js} +15 -15
- package/build/esm/{index-9fa45608.js → index-35e070b0.js} +2 -2
- package/build/esm/{index-4361fec2.js → index-38dbf5f1.js} +17 -17
- package/build/esm/{index-be004701.js → index-3d0ec2fe.js} +33 -33
- package/build/esm/{index-10fa3bc7.js → index-4139e5ae.js} +3 -3
- package/build/esm/{index-3476ac28.js → index-4271cde2.js} +7 -7
- package/build/esm/{index-b868abd9.js → index-45d33051.js} +8 -8
- package/build/esm/{index-f2217a44.js → index-478831cf.js} +7 -7
- package/build/esm/{index-2d1b3347.js → index-48831658.js} +22 -22
- package/build/esm/{index-f3b4ace4.js → index-498d4518.js} +2 -2
- package/build/esm/{index-df67cde5.js → index-4b09003a.js} +6 -6
- package/build/esm/{index-36f6eaaa.js → index-4d852860.js} +17 -17
- package/build/esm/{index-9a029eb6.js → index-4e0f1753.js} +15 -15
- package/build/esm/{index-e53677f7.js → index-4f49074d.js} +4 -4
- package/build/esm/{index-b0c20d07.js → index-546f5191.js} +21 -21
- package/build/esm/{index-eb8708d1.js → index-554359b6.js} +15 -15
- package/build/esm/{index-46e32c6b.js → index-56a97e0e.js} +6 -6
- package/build/esm/{index-77a2202e.js → index-57bd84e3.js} +2 -2
- package/build/esm/{index-a6de8892.js → index-58f9eaea.js} +2 -2
- package/build/esm/{index-a86b9882.js → index-5e21c797.js} +13 -13
- package/build/esm/{index-9c180ac1.js → index-609a26e8.js} +79 -33
- package/build/esm/{index-364faf68.js → index-634f4076.js} +8 -8
- package/build/esm/{index-c40c6b9c.js → index-699350ef.js} +1 -1
- package/build/esm/{index-3ee41017.js → index-6e8d421f.js} +32 -32
- package/build/esm/{index-c3512644.js → index-716dfc9f.js} +3 -3
- package/build/esm/{index-db633615.js → index-752a64fb.js} +3 -3
- package/build/esm/{index-61ab456b.js → index-7ffe30e3.js} +17 -17
- package/build/esm/{index-c0b8dd14.js → index-80608be0.js} +2 -2
- package/build/esm/{index-3190a2e3.js → index-84d5c70c.js} +2 -2
- package/build/esm/{index-7db8ec1f.js → index-84eac0b1.js} +2 -2
- package/build/esm/{index-e3b96af3.js → index-85736a1b.js} +2 -2
- package/build/esm/{index-5d88d5a9.js → index-8ce567a7.js} +2 -2
- package/build/esm/{index-75ba6d51.js → index-97f793d0.js} +1 -1
- package/build/esm/{index-f3ff764e.js → index-9b65f791.js} +2 -2
- package/build/esm/{index-30407eb8.js → index-a67b1c17.js} +25 -25
- package/build/esm/{index-7df250b1.js → index-a6d5c07f.js} +1 -1
- package/build/esm/{index-c55db129.js → index-a73fa06e.js} +13 -13
- package/build/esm/{index-d191ec84.js → index-a992a40c.js} +4 -4
- package/build/esm/{index-1097e0dc.js → index-ac236b44.js} +5 -5
- package/build/esm/{index-e5117510.js → index-b245f8fa.js} +16 -16
- package/build/esm/{index-0eed7817.js → index-b8a04f39.js} +32 -52
- package/build/esm/{index-c47f0842.js → index-bbdd6707.js} +11 -11
- package/build/esm/{index-3d10cb25.js → index-be11d09d.js} +2 -2
- package/build/esm/{index-e1be06f9.js → index-be19e743.js} +3 -3
- package/build/esm/{index-455415d9.js → index-be9fbb1a.js} +2 -2
- package/build/esm/{index-1d7691ee.js → index-c6d30d69.js} +6 -6
- package/build/esm/{index-38a7776c.js → index-cb55fcc3.js} +3 -3
- package/build/esm/{index-e6d1b77b.js → index-ce49bbb1.js} +2 -2
- package/build/esm/{index-02acf4f9.js → index-cf5ec350.js} +11 -8
- package/build/esm/{index-b24711de.js → index-d21bc57a.js} +16 -16
- package/build/esm/{index-824345f0.js → index-d34c1cb4.js} +10 -10
- package/build/esm/{index-0d649f7e.js → index-d41e4c18.js} +2 -2
- package/build/esm/{index-cbc77b21.js → index-d4d02f75.js} +6 -6
- package/build/esm/{index-0c247d01.js → index-e9e46daa.js} +1 -1
- package/build/esm/{index-2922abde.js → index-ea53aee7.js} +13 -13
- package/build/esm/{index-5e25a0b0.js → index-eb3004e2.js} +1 -1
- package/build/esm/{index-f7e0bb95.js → index-f0669163.js} +4 -3
- package/build/esm/{index-bedd823e.js → index-f41edf28.js} +1 -1
- package/build/esm/{index-42681ea5.js → index-f522d35d.js} +6 -6
- package/build/esm/index.js +145 -127
- package/build/esm/{labelSorting-f96e61bf.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-70f14bec.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-a39717ac.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-ae2eca26.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-6ac02ac8.js → surveyThankyouCard-86d647be.js} +5 -5
- package/build/esm/{text-39e5fc32.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-e4abf8b5.js → translationsProvider-f890e5c6.js} +1 -1
- package/build/esm/{treePopoverMenu-5e4df537.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-7a8f33b4.js → useCategory-5b99887b.js} +5 -5
- package/build/esm/{useHealthToolCache-5aeed91c.js → useHealthToolCache-47bf13bc.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-366f61e8.js → usePlacesAutocomplete-2436375c.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-89a62c67.js → utils-23dac1af.js} +2 -2
- package/build/esm/utils-5c924928.js +15 -0
- package/build/esm/{utils-a2f800b5.js → utils-98ba337b.js} +2 -2
- package/build/esm/{utils-61830752.js → utils-c7a278ff.js} +5 -5
- package/build/esm/{utils-45c77185.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-0215edbf.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-f4f8a782.js → index-098e0a89.js} +1 -1
- package/build/{index-b1e9c787.js → index-0a9a537d.js} +3 -3
- package/build/{index-778ec4a7.js → index-0ff06aef.js} +13 -13
- package/build/{index-649ff486.js → index-18937bc7.js} +3 -3
- package/build/{index-da4e2edd.js → index-1bb11ebc.js} +79 -33
- package/build/{index-f41c40b3.js → index-1d7e96fe.js} +4 -4
- package/build/{index-7bbfcb81.js → index-2435386d.js} +2 -2
- package/build/{index-4b535579.js → index-24781cb2.js} +2 -2
- package/build/{index-b7899227.js → index-259f5c4b.js} +11 -8
- package/build/{index-e089644e.js → index-283474dc.js} +4 -4
- package/build/{index-ede0443b.js → index-29a88110.js} +2 -2
- package/build/{index-7d358656.js → index-2c940d76.js} +2 -2
- package/build/{index-52ce1cda.js → index-2ee72be6.js} +5 -5
- package/build/{index-4f55815c.js → index-2f7bcb97.js} +13 -13
- package/build/{index-d1c4f0f9.js → index-337de168.js} +2 -2
- package/build/{index-a45c868f.js → index-351dcb15.js} +32 -32
- package/build/{index-140f7115.js → index-35282959.js} +25 -25
- package/build/{index-59336ad1.js → index-355a2646.js} +15 -15
- package/build/{index-edd38f88.js → index-36e544fb.js} +33 -53
- package/build/{index-6cb8c808.js → index-395c64b6.js} +3 -3
- package/build/{index-3d2f2e74.js → index-3c63847c.js} +2 -2
- package/build/{index-41769d81.js → index-45a060f8.js} +2 -2
- package/build/{index-ef161c1c.js → index-47b0ca3d.js} +1 -1
- package/build/{index-550bbbe9.js → index-48321dfa.js} +6 -6
- package/build/{index-cad4747d.js → index-4e84bdc8.js} +3 -3
- package/build/{index-3bcc6519.js → index-5c095800.js} +2 -2
- package/build/{index-9a104427.js → index-5c1614fa.js} +13 -13
- package/build/{index-d0039071.js → index-5c5d8e88.js} +6 -6
- package/build/{index-d731f837.js → index-5d3b7a1c.js} +16 -16
- package/build/{index-dab36de8.js → index-60bc5082.js} +14 -14
- package/build/{index-91130a88.js → index-60ff3f94.js} +8 -8
- package/build/{index-80347796.js → index-619cc3b8.js} +17 -17
- package/build/{index-c3d2035e.js → index-687a595e.js} +13 -13
- package/build/{index-9c371a34.js → index-6a549749.js} +3 -3
- package/build/{index-f852390c.js → index-6d11558a.js} +8 -8
- package/build/{index-6100697a.js → index-6e345218.js} +21 -21
- package/build/{index-85d55857.js → index-6f5e8b18.js} +6 -6
- package/build/{index-64a8c050.js → index-73923dee.js} +1 -1
- package/build/{index-73c2f300.js → index-74a06429.js} +3 -3
- package/build/{index-3d25dab3.js → index-77fa9fe1.js} +2 -2
- package/build/{index-0e476654.js → index-7ade673a.js} +2 -2
- package/build/{index-5c6ae55b.js → index-7cc21ba7.js} +17 -17
- package/build/{index-e021c40c.js → index-7d343a1e.js} +16 -16
- package/build/{index-7da5e222.js → index-7fac8c92.js} +13 -13
- package/build/{index-ec8eb614.js → index-82192291.js} +10 -10
- package/build/{index-36c8cb77.js → index-8b9f3ebb.js} +2 -2
- package/build/{index-d0157342.js → index-8e44227a.js} +32 -32
- package/build/{index-8f11a215.js → index-8f59559d.js} +4 -3
- package/build/{index-092eb3f3.js → index-8f8e535c.js} +2 -2
- package/build/{index-5d0f8a58.js → index-8fe26fb6.js} +7 -7
- package/build/{index-09bcd9dd.js → index-935a1bfc.js} +17 -17
- package/build/{types-75ca8d81.js → index-9b2698d9.js} +2 -16
- package/build/{index-a3934c2e.js → index-a2c2dbe9.js} +2 -2
- package/build/{index-e0bf6144.js → index-a4dcb2c9.js} +13 -13
- package/build/{index-374ed98e.js → index-a976d0c2.js} +22 -22
- package/build/{index-d45a7e67.js → index-aa358317.js} +11 -11
- package/build/{index-54629439.js → index-b4fbb091.js} +2 -2
- package/build/{index-b5a937d2.js → index-b6102036.js} +2 -2
- package/build/{index-eedaceb5.js → index-b68e1442.js} +5 -5
- package/build/{index-516b5712.js → index-bb13d750.js} +32 -32
- package/build/{index-692ca07a.js → index-bf1c7e48.js} +6 -6
- package/build/{index-c09408b5.js → index-bf529260.js} +15 -15
- package/build/{index-83105441.js → index-c2c2415c.js} +1 -1
- package/build/{index-16e09e37.js → index-c3301efd.js} +17 -17
- package/build/{index-37734a8d.js → index-c802092e.js} +7 -7
- package/build/{index-de6ed3ca.js → index-d53859b3.js} +1 -1
- package/build/{index-2cd0d825.js → index-e6aaedf8.js} +1 -1
- package/build/{index-1706bae7.js → index-eae0bb63.js} +3 -3
- package/build/{index-778b3c9e.js → index-ec2b00e1.js} +1 -1
- package/build/{index-f861c704.js → index-ed68ce85.js} +15 -15
- package/build/{index-fbb502dc.js → index-ff7f6ccc.js} +1 -1
- package/build/index.js +154 -133
- package/build/{labelSorting-d7416968.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-8d0da705.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-202623ee.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-74173912.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-643966cf.js → surveyThankyouCard-f166f69a.js} +5 -5
- package/build/{text-050beca1.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-32f6e970.js → translationsProvider-5e7a1d28.js} +1 -1
- package/build/{treePopoverMenu-51ae1ac8.js → treePopoverMenu-aae2ef43.js} +19 -19
- package/build/types-06cc2668.js +19 -0
- package/build/types.js +2 -2
- package/build/{useCategory-8bd1c96f.js → useCategory-3804aadb.js} +5 -5
- package/build/{useHealthToolCache-2f0b1d7d.js → useHealthToolCache-254ad52e.js} +1 -1
- package/build/{usePlacesAutocomplete-50f51753.js → usePlacesAutocomplete-01697f13.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-0d4548ad.js → utils-904949ec.js} +5 -5
- package/build/{utils-6a1afd2c.js → utils-c980d0cf.js} +2 -2
- package/build/utils-ce822cd0.js +18 -0
- package/build/{utils-37272428.js → utils-db0b217c.js} +2 -2
- package/build/{utils-16fd7e9b.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/hooks/useFocusFieldOnDevice.d.ts +0 -12
- /package/build/{BMI_BOYS.percentile.monthly-125148b3.js → BMI_BOYS.percentile.monthly-b8375647.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-f0682843.js → BMI_BOYS.percentile.weekly-68eabd39.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-88709588.js → BMI_BOYS.percentile.yearly-1b2e01ff.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-91ef32f5.js → BMI_BOYS.zscore.monthly-52d8343d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-68c7d132.js → BMI_BOYS.zscore.weekly-de2d4b3d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-2a827291.js → BMI_BOYS.zscore.yearly-fd00df9e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-0d5ffe06.js → BMI_GIRLS.percentile.monthly-8865c5d0.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-8d552b1c.js → BMI_GIRLS.percentile.weekly-a24ca9d5.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-59b64c13.js → BMI_GIRLS.percentile.yearly-9a50a761.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-869bf468.js → BMI_GIRLS.zscore.monthly-59197118.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-0ea18761.js → BMI_GIRLS.zscore.weekly-f88ef488.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-476ee4a9.js → BMI_GIRLS.zscore.yearly-e126dd91.js} +0 -0
- /package/build/{ChevronDown-92d7f44f.js → ChevronDown-a4e7d6a6.js} +0 -0
- /package/build/{Close-aa5fe339.js → Close-3bf156d2.js} +0 -0
- /package/build/{Google-de808de3.js → Google-d33ca2b0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-162d46a3.js → HEAD CIRCUM_BOYS.percentile.monthly-e59ef836.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f3c42860.js → HEAD CIRCUM_BOYS.percentile.weekly-ec39aa9c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-fc03373f.js → HEAD CIRCUM_BOYS.percentile.yearly-7b57cff9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-93d6cdcb.js → HEAD CIRCUM_BOYS.zscore.monthly-6d5af065.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a4857ef0.js → HEAD CIRCUM_BOYS.zscore.weekly-652a9955.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-355f4687.js → HEAD CIRCUM_BOYS.zscore.yearly-827b9f40.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-80a529b0.js → HEAD CIRCUM_GIRLS.percentile.monthly-47acb1f6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a2606d40.js → HEAD CIRCUM_GIRLS.percentile.weekly-4cb9adc1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-9e6d39d7.js → HEAD CIRCUM_GIRLS.percentile.yearly-e8036077.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-c5f2d255.js → HEAD CIRCUM_GIRLS.zscore.monthly-0c69bbf5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-f624b1b7.js → HEAD CIRCUM_GIRLS.zscore.weekly-e3d38031.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-f5686c6c.js → HEAD CIRCUM_GIRLS.zscore.yearly-a2b7f091.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-b2184bf9.js → HEIGHT_BOYS.percentile.monthly-5fbd78d7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-b42a18b0.js → HEIGHT_BOYS.percentile.weekly-81530ad7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-33d9e79a.js → HEIGHT_BOYS.percentile.yearly-d5e0059f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-0ebfed07.js → HEIGHT_BOYS.zscore.monthly-745f7556.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-61d2aec3.js → HEIGHT_BOYS.zscore.weekly-b9d87bf1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-8c9277c7.js → HEIGHT_BOYS.zscore.yearly-3a2d0471.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-4dc08170.js → HEIGHT_GIRLS.percentile.monthly-8857bebd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-339a0037.js → HEIGHT_GIRLS.percentile.weekly-779b5afd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-58c0e30a.js → HEIGHT_GIRLS.percentile.yearly-0fc244ab.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-c2511ae4.js → HEIGHT_GIRLS.zscore.monthly-7249d51f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-2b85d745.js → HEIGHT_GIRLS.zscore.weekly-edc7e257.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-06893610.js → HEIGHT_GIRLS.zscore.yearly-80fd3deb.js} +0 -0
- /package/build/{Locale-96c65183.js → Locale-1251caf9.js} +0 -0
- /package/build/{Visible-388e4d48.js → Visible-450f4cbd.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-e8c359e3.js → WEIGHT_BOYS.percentile.monthly-bd1c7463.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-f00c9987.js → WEIGHT_BOYS.percentile.weekly-d67a0dcb.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-4aa195ba.js → WEIGHT_BOYS.percentile.yearly-24eef5c2.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-af26f018.js → WEIGHT_BOYS.zscore.monthly-a8234e64.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-c830be22.js → WEIGHT_BOYS.zscore.weekly-c5b0745e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-524f9e69.js → WEIGHT_BOYS.zscore.yearly-7e9d986f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-f2011e88.js → WEIGHT_GIRLS.percentile.monthly-c6ac94e7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-3de94da8.js → WEIGHT_GIRLS.percentile.weekly-014829b8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-43034275.js → WEIGHT_GIRLS.percentile.yearly-1ec2e67a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-0ed35857.js → WEIGHT_GIRLS.zscore.monthly-f8c31a73.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-d5a0a980.js → WEIGHT_GIRLS.zscore.weekly-4d279624.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-257a734b.js → WEIGHT_GIRLS.zscore.yearly-05122a06.js} +0 -0
- /package/build/{ageGenerate-9b75fb17.js → ageGenerate-5b14e976.js} +0 -0
- /package/build/{animation-ccd402b2.js → animation-03978149.js} +0 -0
- /package/build/{constants-9d0ca38e.js → constants-c7582824.js} +0 -0
- /package/build/{constants-dc137f90.js → constants-e7ffc3c1.js} +0 -0
- /package/build/{constants-06a52d27.js → constants-ec828833.js} +0 -0
- /package/build/{dataTransform-63857be7.js → dataTransform-276d8e3d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-1f5f4f17.js → BMI_BOYS.percentile.monthly-81c423f4.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-2f2b5d9c.js → BMI_BOYS.percentile.weekly-9f8ce72d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-ea9e3e8f.js → BMI_BOYS.percentile.yearly-13265e9f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-5f5a0b05.js → BMI_BOYS.zscore.monthly-3cf5e257.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-89718c18.js → BMI_BOYS.zscore.weekly-c97640a0.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-cdc76a61.js → BMI_BOYS.zscore.yearly-c3d5e510.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-0610d13d.js → BMI_GIRLS.percentile.monthly-cf266fe3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-bdf2edf2.js → BMI_GIRLS.percentile.weekly-e200289e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-60e5d0c8.js → BMI_GIRLS.percentile.yearly-44347377.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-78371670.js → BMI_GIRLS.zscore.monthly-9ee8deaa.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-ae4995d3.js → BMI_GIRLS.zscore.weekly-67d04b69.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-93ec1099.js → BMI_GIRLS.zscore.yearly-70aa9f83.js} +0 -0
- /package/build/esm/{ChevronDown-9bb7d031.js → ChevronDown-90377008.js} +0 -0
- /package/build/esm/{Close-13801b86.js → Close-f682fcdf.js} +0 -0
- /package/build/esm/{Google-3cf42cbb.js → Google-4eda1036.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-b8c27ada.js → HEAD CIRCUM_BOYS.percentile.monthly-da3ebc20.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-9293ac85.js → HEAD CIRCUM_BOYS.percentile.weekly-e887a7b1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f8ed1758.js → HEAD CIRCUM_BOYS.percentile.yearly-a1240461.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-04898777.js → HEAD CIRCUM_BOYS.zscore.monthly-3f5c522d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-68d759cc.js → HEAD CIRCUM_BOYS.zscore.weekly-a42b9d88.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-dfffd3fe.js → HEAD CIRCUM_BOYS.zscore.yearly-891c8399.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-4dd9d271.js → HEAD CIRCUM_GIRLS.percentile.monthly-976b80cc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-b5a5e0be.js → HEAD CIRCUM_GIRLS.percentile.weekly-2d108702.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-0f6e4232.js → HEAD CIRCUM_GIRLS.percentile.yearly-8afc71de.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-a8624081.js → HEAD CIRCUM_GIRLS.zscore.monthly-8292c3d0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-daaba2da.js → HEAD CIRCUM_GIRLS.zscore.weekly-fe18e53c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-76a09375.js → HEAD CIRCUM_GIRLS.zscore.yearly-9e0500f2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0882e000.js → HEIGHT_BOYS.percentile.monthly-e53886b9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-3abb9879.js → HEIGHT_BOYS.percentile.weekly-8755afb2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-cc209994.js → HEIGHT_BOYS.percentile.yearly-e45adbcf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-10eea6bb.js → HEIGHT_BOYS.zscore.monthly-e2edccbb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b9390159.js → HEIGHT_BOYS.zscore.weekly-121097b6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-31e4c55b.js → HEIGHT_BOYS.zscore.yearly-b5427ddf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-380adc2b.js → HEIGHT_GIRLS.percentile.monthly-ee462181.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-9b26d781.js → HEIGHT_GIRLS.percentile.weekly-c7f04cf1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4fcdba6c.js → HEIGHT_GIRLS.percentile.yearly-1de8e3ac.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-cb05efa9.js → HEIGHT_GIRLS.zscore.monthly-a47e61ac.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-002a6587.js → HEIGHT_GIRLS.zscore.weekly-0d246117.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-b9ab0d35.js → HEIGHT_GIRLS.zscore.yearly-0af4c63a.js} +0 -0
- /package/build/esm/{Locale-2e1d5233.js → Locale-cf278100.js} +0 -0
- /package/build/esm/{Visible-9a5adcd2.js → Visible-d67ff7cf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-3cde0a19.js → WEIGHT_BOYS.percentile.monthly-19d31767.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-86b02db4.js → WEIGHT_BOYS.percentile.weekly-e02c2221.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-47796503.js → WEIGHT_BOYS.percentile.yearly-ee86c4cf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-02758590.js → WEIGHT_BOYS.zscore.monthly-03a5bd01.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-85f74ee8.js → WEIGHT_BOYS.zscore.weekly-8cc1955c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6c3cb69e.js → WEIGHT_BOYS.zscore.yearly-29bf753c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-c3e8b41e.js → WEIGHT_GIRLS.percentile.monthly-125bd788.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-63ffc164.js → WEIGHT_GIRLS.percentile.weekly-46890aab.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f35e0382.js → WEIGHT_GIRLS.percentile.yearly-7eaa2119.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-28d2ffa4.js → WEIGHT_GIRLS.zscore.monthly-0f003b44.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-1691e956.js → WEIGHT_GIRLS.zscore.weekly-699b0229.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-fa648dd7.js → WEIGHT_GIRLS.zscore.yearly-dc1f5828.js} +0 -0
- /package/build/esm/{ageGenerate-24733d62.js → ageGenerate-c9a02783.js} +0 -0
- /package/build/esm/{animation-8570eda0.js → animation-0bbc19e6.js} +0 -0
- /package/build/esm/{constants-0086d1b7.js → constants-bd3a5c9b.js} +0 -0
- /package/build/esm/{constants-ab0e2d87.js → constants-e808a21d.js} +0 -0
- /package/build/esm/{constants-d2db8f8c.js → constants-ecffc961.js} +0 -0
- /package/build/esm/{dataTransform-436b85f8.js → dataTransform-9dc46b82.js} +0 -0
- /package/build/esm/{index-727cbdb5.js → index-698bef6d.js} +0 -0
- /package/build/esm/{index-f2ce03b6.js → index-9ab9a9ad.js} +0 -0
- /package/build/esm/{index-7a66a3c4.js → index-b27b2a3e.js} +0 -0
- /package/build/esm/{index-6318b4ea.js → index-bee159d4.js} +0 -0
- /package/build/esm/{index-fab5d4c9.js → index-cd635940.js} +0 -0
- /package/build/esm/{index-c87b51f8.js → index-d623bd74.js} +0 -0
- /package/build/esm/{index-9ae488aa.js → index-e9555c7b.js} +0 -0
- /package/build/esm/{index-e93c97c7.js → index-ff238251.js} +0 -0
- /package/build/esm/{index.styles-352abedc.js → index.styles-72dcd9b3.js} +0 -0
- /package/build/esm/{localizeNumberFormat-45ffa783.js → localizeNumberFormat-563e46aa.js} +0 -0
- /package/build/esm/{normalizeLink-a42c6388.js → normalizeLink-4f9809ba.js} +0 -0
- /package/build/esm/{number-88bb79b9.js → number-81439267.js} +0 -0
- /package/build/esm/{paths-c8cdf8fe.js → paths-55dff93a.js} +0 -0
- /package/build/esm/{shared-36390799.js → shared-90647db5.js} +0 -0
- /package/build/esm/{translationsContext-32518edc.js → translationsContext-17866e80.js} +0 -0
- /package/build/esm/{tslib.es6-ec31c219.js → tslib.es6-642792ed.js} +0 -0
- /package/build/esm/{types-33bf208b.js → types-a9490a6c.js} +0 -0
- /package/build/esm/{useIsInit-964a3a99.js → useIsInit-094e9cbc.js} +0 -0
- /package/build/esm/{useOutsideClick-4792bd6b.js → useOutsideClick-b9428675.js} +0 -0
- /package/build/esm/{useScrollbarSize-cadbbdd5.js → useScrollbarSize-fa88e842.js} +0 -0
- /package/build/esm/{useUniqueId-7e716a7d.js → useUniqueId-b79cd5d9.js} +0 -0
- /package/build/esm/{utils-4f0cd383.js → utils-d217a8a8.js} +0 -0
- /package/build/{index-c2d481ee.js → index-0be02aa2.js} +0 -0
- /package/build/{index-cd467e9a.js → index-2fe95bdb.js} +0 -0
- /package/build/{index-6e28481c.js → index-4273987f.js} +0 -0
- /package/build/{index-ca6b08a2.js → index-77ca9002.js} +0 -0
- /package/build/{index-31d48fc2.js → index-7fe12f20.js} +0 -0
- /package/build/{index-0a7ee164.js → index-a29ccc0e.js} +0 -0
- /package/build/{index-0c35e6e0.js → index-d333b01b.js} +0 -0
- /package/build/{index-f18dead7.js → index-f3e2a299.js} +0 -0
- /package/build/{index.styles-26b831ce.js → index.styles-8c61f4be.js} +0 -0
- /package/build/{localizeNumberFormat-c24239d5.js → localizeNumberFormat-6d2694e2.js} +0 -0
- /package/build/{normalizeLink-e42bcbaa.js → normalizeLink-7844e407.js} +0 -0
- /package/build/{number-cd5a2635.js → number-b3ecd2c1.js} +0 -0
- /package/build/{paths-f5fa461d.js → paths-bbc05982.js} +0 -0
- /package/build/{shared-84e30a10.js → shared-1f6a17b8.js} +0 -0
- /package/build/{translationsContext-cfdf03db.js → translationsContext-b797b2e1.js} +0 -0
- /package/build/{tslib.es6-06715056.js → tslib.es6-370364b7.js} +0 -0
- /package/build/{types-d00aed54.js → types-1ad8efd7.js} +0 -0
- /package/build/{useIsInit-ea567b66.js → useIsInit-29229b42.js} +0 -0
- /package/build/{useOutsideClick-f4934f9e.js → useOutsideClick-c102e6a3.js} +0 -0
- /package/build/{useScrollbarSize-c9f638b1.js → useScrollbarSize-f8c67b26.js} +0 -0
- /package/build/{useUniqueId-392865b6.js → useUniqueId-a18cf14d.js} +0 -0
- /package/build/{utils-e86463dc.js → utils-4249781d.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-642792ed.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, useCallback, forwardRef, useImperativeHandle, memo, useLayoutEffect } from 'react';
|
|
3
|
-
import { createStyles, Box, useMantineTheme, Button as Button$1, Autocomplete, Input as Input$1, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, Flex, clsx, TextInput, NumberInput as NumberInput$1, rem, Portal, Transition, Overlay } from '@mantine/core';
|
|
3
|
+
import { createStyles, Box, useMantineTheme, Button as Button$1, Autocomplete, Input as Input$1, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, Flex, clsx, TextInput, NumberInput as NumberInput$1, rem, AspectRatio, Badge, Tooltip, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import debounce from 'lodash/debounce';
|
|
5
5
|
import { createFormContext, useForm } from '@mantine/form';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
7
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-4f49074d.js';
|
|
8
8
|
import { getCookie, setCookie } from './miscCookieHelper.js';
|
|
9
|
-
import { u as useTranslations } from './index-
|
|
10
|
-
import { T as TranslationsContext } from './translationsContext-
|
|
11
|
-
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-
|
|
12
|
-
import { T as Text } from './index-
|
|
13
|
-
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-
|
|
14
|
-
import { D as DatePicker } from './index-
|
|
15
|
-
import { B as Button } from './index-
|
|
16
|
-
import './index.styles-
|
|
17
|
-
import { useIntersection
|
|
18
|
-
import './index-
|
|
19
|
-
import { G as GlobalTextStyleNew, C as CustomStylesType, F as FontWeight } from './text-
|
|
20
|
-
import './index-
|
|
21
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
9
|
+
import { u as useTranslations } from './index-e9e46daa.js';
|
|
10
|
+
import { T as TranslationsContext } from './translationsContext-17866e80.js';
|
|
11
|
+
import { M as MediaQueries, b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-d217a8a8.js';
|
|
12
|
+
import { T as Text } from './index-d4d02f75.js';
|
|
13
|
+
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-45d33051.js';
|
|
14
|
+
import { D as DatePicker } from './index-f522d35d.js';
|
|
15
|
+
import { B as Button } from './index-716dfc9f.js';
|
|
16
|
+
import './index.styles-72dcd9b3.js';
|
|
17
|
+
import { useIntersection } from '@mantine/hooks';
|
|
18
|
+
import './index-634f4076.js';
|
|
19
|
+
import { G as GlobalTextStyleNew, C as CustomStylesType, F as FontWeight } from './text-2c52aa10.js';
|
|
20
|
+
import './index-752a64fb.js';
|
|
21
|
+
import { M as MAPPED_LOCALE } from './utils-23dac1af.js';
|
|
22
22
|
import { DateInput } from '@mantine/dates';
|
|
23
|
-
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-
|
|
24
|
-
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-
|
|
25
|
-
import './index-
|
|
26
|
-
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-
|
|
27
|
-
import { H as Heading$1 } from './index-
|
|
28
|
-
import { t as translationsMap$1 } from './translationsProvider-
|
|
29
|
-
import { L as LOCALE } from './Locale-
|
|
23
|
+
import { L as LOCALE_SPECS, Z as ZINDEX_SSO, I as ISO_FORMAT } from './index-498d4518.js';
|
|
24
|
+
import { C as COMMON_DATE_TRANSLATE_KEY } from './index-699350ef.js';
|
|
25
|
+
import './index-698bef6d.js';
|
|
26
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-2436375c.js';
|
|
27
|
+
import { H as Heading$1 } from './index-57bd84e3.js';
|
|
28
|
+
import { t as translationsMap$1 } from './translationsProvider-f890e5c6.js';
|
|
29
|
+
import { L as LOCALE } from './Locale-cf278100.js';
|
|
30
30
|
import { v1 } from 'uuid';
|
|
31
31
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
32
32
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
33
33
|
import styled from '@emotion/styled';
|
|
34
34
|
import { theme } from './miscTheme.js';
|
|
35
|
-
import { u as useTextStyles, C as ChoiceField, T as TextField, E as ErrorIcon } from './index-
|
|
36
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
37
|
-
import { M as MantineProvider } from './index-
|
|
38
|
-
import { i as isVideo } from './index-
|
|
39
|
-
import { u as useScreenSize } from './index-
|
|
35
|
+
import { u as useTextStyles, C as ChoiceField, T as TextField, E as ErrorIcon } from './index-8ce567a7.js';
|
|
36
|
+
import { T as TogetherComponentGlobalContext } from './utils-e993f9d6.js';
|
|
37
|
+
import { M as MantineProvider } from './index-2e5dc26a.js';
|
|
38
|
+
import { i as isVideo } from './index-d623bd74.js';
|
|
39
|
+
import { I as ImageWrap, u as useScreenSize } from './index-be9fbb1a.js';
|
|
40
40
|
import { motion } from 'framer-motion';
|
|
41
41
|
import { createPortal } from 'react-dom';
|
|
42
42
|
import { ChevronDown } from '@hhgtech/icons/arrow';
|
|
43
43
|
import { MapPin } from '@hhgtech/icons/core';
|
|
44
|
-
import { I as InputDate } from './InputDate-
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
44
|
+
import { I as InputDate } from './InputDate-7eb655c3.js';
|
|
45
|
+
import { Carousel } from '@mantine/carousel';
|
|
46
|
+
import { c as currencyFormat } from './utils-5c924928.js';
|
|
47
|
+
import { D as DrawerComponent } from './index-f0669163.js';
|
|
48
|
+
import { C as Close } from './Close-f682fcdf.js';
|
|
47
49
|
import './constantsIsProduction.js';
|
|
48
|
-
import './normalizeLink-
|
|
50
|
+
import './normalizeLink-4f9809ba.js';
|
|
49
51
|
import '@hhgtech/icons/other';
|
|
50
|
-
import '@mantine/carousel';
|
|
51
52
|
import 'classnames';
|
|
52
|
-
import './useUniqueId-
|
|
53
|
+
import './useUniqueId-b79cd5d9.js';
|
|
53
54
|
import './constantsSite.js';
|
|
54
|
-
import './shared-
|
|
55
|
+
import './shared-90647db5.js';
|
|
55
56
|
import '@mantine/notifications';
|
|
56
57
|
import 'date-fns/locale';
|
|
57
58
|
import './constantsRiskScreener.js';
|
|
@@ -68,11 +69,12 @@ import './i18n-values/vi-VN_MB.js';
|
|
|
68
69
|
import './i18n-values/zh-SG.js';
|
|
69
70
|
import './i18n-values/zh-TW.js';
|
|
70
71
|
import '@emotion/react';
|
|
71
|
-
import './index-
|
|
72
|
+
import './index-9ab9a9ad.js';
|
|
72
73
|
import 'slugify';
|
|
73
74
|
import 'string-format';
|
|
74
75
|
import './togetherApiPaths.js';
|
|
75
|
-
import './constants-
|
|
76
|
+
import './constants-bd3a5c9b.js';
|
|
77
|
+
import './constants-80c9b8c0.js';
|
|
76
78
|
import 'vaul';
|
|
77
79
|
|
|
78
80
|
const LeadGenComponentContext = createContext({});
|
|
@@ -933,7 +935,7 @@ const Description = (_a) => {
|
|
|
933
935
|
|
|
934
936
|
const LeadGenContext$1 = createContext({});
|
|
935
937
|
|
|
936
|
-
var useStyles$
|
|
938
|
+
var useStyles$3 = createStyles(() => {
|
|
937
939
|
return {
|
|
938
940
|
control: {},
|
|
939
941
|
};
|
|
@@ -996,7 +998,7 @@ const TitleBlock$1 = ({ children, align, }) => (React__default.createElement("h2
|
|
|
996
998
|
|
|
997
999
|
const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, styles, classNames, popoverProps, }) => {
|
|
998
1000
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
999
|
-
const { classes, cx } = useStyles$
|
|
1001
|
+
const { classes, cx } = useStyles$3(undefined, {
|
|
1000
1002
|
name: 'LeadGen__Field',
|
|
1001
1003
|
styles,
|
|
1002
1004
|
classNames,
|
|
@@ -1084,7 +1086,7 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1084
1086
|
})));
|
|
1085
1087
|
};
|
|
1086
1088
|
|
|
1087
|
-
var useStyles$
|
|
1089
|
+
var useStyles$2 = createStyles((theme) => {
|
|
1088
1090
|
return {
|
|
1089
1091
|
root: {},
|
|
1090
1092
|
header: {},
|
|
@@ -1114,7 +1116,7 @@ const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps,
|
|
|
1114
1116
|
const { listBlockAdded, leadFormConfig: { form, validateObj }, validatingEmailRef, validatingPhoneRef,
|
|
1115
1117
|
// formRef,
|
|
1116
1118
|
setFormRef, onClose, onOtherSubmit, actionBlocks, locale, setShowOtpPhone, onSubmit, } = useContext(LeadGenComponentContext);
|
|
1117
|
-
const { classes, cx } = useStyles$
|
|
1119
|
+
const { classes, cx } = useStyles$2(undefined, {
|
|
1118
1120
|
name: 'LeadGen__FormComponent',
|
|
1119
1121
|
styles,
|
|
1120
1122
|
classNames,
|
|
@@ -1208,7 +1210,7 @@ const Form = (props) => {
|
|
|
1208
1210
|
return showThankyou || showOtpPhone ? null : React__default.createElement(FormComponent, Object.assign({}, props));
|
|
1209
1211
|
};
|
|
1210
1212
|
|
|
1211
|
-
var useStyles = createStyles(() => {
|
|
1213
|
+
var useStyles$1 = createStyles(() => {
|
|
1212
1214
|
return {
|
|
1213
1215
|
root: {},
|
|
1214
1216
|
header: {},
|
|
@@ -1233,7 +1235,7 @@ const OtpBlockComponent = ({ otpData, onSuccess, autoSendWhenOpen, className, st
|
|
|
1233
1235
|
const [displayPhone, setDisplayPhone] = useState('');
|
|
1234
1236
|
const formatPhoneNumberIntlRef = useRef();
|
|
1235
1237
|
const [isSubmitLoading, setIsSubmitLoading] = useState(false);
|
|
1236
|
-
const { classes, cx } = useStyles(undefined, {
|
|
1238
|
+
const { classes, cx } = useStyles$1(undefined, {
|
|
1237
1239
|
name: 'LeadGen__OTP',
|
|
1238
1240
|
styles,
|
|
1239
1241
|
classNames,
|
|
@@ -1402,6 +1404,9 @@ var enPH = {
|
|
|
1402
1404
|
"lead.empty.title": "Oops, seem your information is empty, do you want to submit the information again?",
|
|
1403
1405
|
"lead.empty.cancel": "Cancel",
|
|
1404
1406
|
"lead.empty.submitAgain": "Submit again",
|
|
1407
|
+
"inlineFreebie.freeSample.title": "Free Sample",
|
|
1408
|
+
"inlineFreebie.luckyDrawGift.title": "Lucky-draw Gift",
|
|
1409
|
+
"inlineFreebie.value": "Value",
|
|
1405
1410
|
"common.day": "Day",
|
|
1406
1411
|
"common.month": "Month",
|
|
1407
1412
|
"common.year": "Year"
|
|
@@ -1425,6 +1430,9 @@ var hiIN = {
|
|
|
1425
1430
|
"lead.empty.title": "ऊप्स! लगता है आपकी जानकारी खाली है। क्या आप जानकारी फिर से सबमिट करना चाहते हैं?",
|
|
1426
1431
|
"lead.empty.cancel": "रद्द करें",
|
|
1427
1432
|
"lead.empty.submitAgain": "फिर से सबमिट करें",
|
|
1433
|
+
"inlineFreebie.freeSample.title": "मुफ्त नमूना",
|
|
1434
|
+
"inlineFreebie.luckyDrawGift.title": "लकी-ड्रा गिफ्ट",
|
|
1435
|
+
"inlineFreebie.value": "मूल्य",
|
|
1428
1436
|
"common.day": "साल",
|
|
1429
1437
|
"common.month": "महीना",
|
|
1430
1438
|
"common.year": ""
|
|
@@ -1450,6 +1458,9 @@ var idID = {
|
|
|
1450
1458
|
"lead.empty.title": "Oops, sepertinya informasi Anda kosong. Apakah Anda ingin mengirimkan informasi lagi?",
|
|
1451
1459
|
"lead.empty.cancel": "Batal",
|
|
1452
1460
|
"lead.empty.submitAgain": "Kirim lagi",
|
|
1461
|
+
"inlineFreebie.freeSample.title": "Sampel Gratis",
|
|
1462
|
+
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1463
|
+
"inlineFreebie.value": "Nilai",
|
|
1453
1464
|
"common.day": "Hari",
|
|
1454
1465
|
"common.month": "Bulan",
|
|
1455
1466
|
"common.year": "Tahun"
|
|
@@ -1475,6 +1486,9 @@ var kmKH = {
|
|
|
1475
1486
|
"lead.empty.title": "អូុបស! ហាក់ដូចជាព័ត៌មានរបស់អ្នកទទេ។ តើអ្នកចង់ដាក់ស្នើព័ត៌មានម្តងទៀតទេ?",
|
|
1476
1487
|
"lead.empty.cancel": "លុបចោល",
|
|
1477
1488
|
"lead.empty.submitAgain": "ដាក់ស្នើម្ដងទៀត",
|
|
1489
|
+
"inlineFreebie.freeSample.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1490
|
+
"inlineFreebie.luckyDrawGift.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1491
|
+
"inlineFreebie.value": "តម្លៃ",
|
|
1478
1492
|
"common.day": "ឆ្នាំ",
|
|
1479
1493
|
"common.month": "ខែ",
|
|
1480
1494
|
"common.year": "ថ្ងៃ"
|
|
@@ -1500,6 +1514,9 @@ var msMY = {
|
|
|
1500
1514
|
"lead.empty.title": "Oops, nampaknya maklumat anda kosong. Adakah anda ingin menghantar maklumat semula?",
|
|
1501
1515
|
"lead.empty.cancel": "Batal",
|
|
1502
1516
|
"lead.empty.submitAgain": "Hantar semula",
|
|
1517
|
+
"inlineFreebie.freeSample.title": "Sampel Percuma",
|
|
1518
|
+
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1519
|
+
"inlineFreebie.value": "Nilai",
|
|
1503
1520
|
"common.day": "Hari",
|
|
1504
1521
|
"common.month": "Bulan",
|
|
1505
1522
|
"common.year": "Tahun"
|
|
@@ -1525,6 +1542,9 @@ var myMM = {
|
|
|
1525
1542
|
"lead.empty.title": "အုပ်စ်! သင့်အချက်အလက်သည် ဗလာဖြစ်နေသလိုဖြစ်သည်။ ထပ်မံတင်သွင်းလိုပါသလား?",
|
|
1526
1543
|
"lead.empty.cancel": "မလုပ်ဆောင်ပါ",
|
|
1527
1544
|
"lead.empty.submitAgain": "ထပ်မံတင်သွင်းပါ",
|
|
1545
|
+
"inlineFreebie.freeSample.title": "အခမဲ့အစားအစာ",
|
|
1546
|
+
"inlineFreebie.luckyDrawGift.title": "အခမဲ့အစားအစာ",
|
|
1547
|
+
"inlineFreebie.value": "တန်ဖိုး",
|
|
1528
1548
|
"common.day": "ရက်",
|
|
1529
1549
|
"common.month": "လ",
|
|
1530
1550
|
"common.year": "နှစ်"
|
|
@@ -1550,6 +1570,9 @@ var thTH = {
|
|
|
1550
1570
|
"lead.empty.title": "อุ๊ปส์! ดูเหมือนว่าข้อมูลของคุณว่างเปล่า คุณต้องการส่งข้อมูลอีกครั้งหรือไม่?",
|
|
1551
1571
|
"lead.empty.cancel": "ยกเลิก",
|
|
1552
1572
|
"lead.empty.submitAgain": "ส่งอีกครั้ง",
|
|
1573
|
+
"inlineFreebie.freeSample.title": "ตัวอย่างฟรี",
|
|
1574
|
+
"inlineFreebie.luckyDrawGift.title": "ของรางวัลที่ถูกรางวัล",
|
|
1575
|
+
"inlineFreebie.value": "ค่า",
|
|
1553
1576
|
"common.day": "วัน",
|
|
1554
1577
|
"common.month": "เดือน",
|
|
1555
1578
|
"common.year": "ปี"
|
|
@@ -1586,6 +1609,9 @@ var viVN = {
|
|
|
1586
1609
|
"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?",
|
|
1587
1610
|
"lead.empty.cancel": "Hủy",
|
|
1588
1611
|
"lead.empty.submitAgain": "Gửi lại",
|
|
1612
|
+
"inlineFreebie.freeSample.title": "Dùng thử miễn phí",
|
|
1613
|
+
"inlineFreebie.luckyDrawGift.title": "Phần thưởng may mắn",
|
|
1614
|
+
"inlineFreebie.value": "Trị giá",
|
|
1589
1615
|
"common.day": "Ngày",
|
|
1590
1616
|
"common.month": "Tháng",
|
|
1591
1617
|
"common.year": "Năm"
|
|
@@ -1611,6 +1637,9 @@ var zhTW = {
|
|
|
1611
1637
|
"lead.empty.title": "哎呀,您的資訊似乎是空的,您想要重新提交資訊嗎?",
|
|
1612
1638
|
"lead.empty.cancel": "取消",
|
|
1613
1639
|
"lead.empty.submitAgain": "重新提交",
|
|
1640
|
+
"inlineFreebie.freeSample.title": "免費試用",
|
|
1641
|
+
"inlineFreebie.luckyDrawGift.title": "幸運抽獎禮品",
|
|
1642
|
+
"inlineFreebie.value": "價值",
|
|
1614
1643
|
"common.day": "日",
|
|
1615
1644
|
"common.month": "月",
|
|
1616
1645
|
"common.year": "年"
|
|
@@ -3268,26 +3297,6 @@ const FloatingLayout = ({ popupId, url, title, urlText, titleAlign, subtitle, su
|
|
|
3268
3297
|
React__default.createElement(CloseButton, { onClose: onClose, containerClassName: "close-button-top-right" }))))));
|
|
3269
3298
|
};
|
|
3270
3299
|
|
|
3271
|
-
function isMac() {
|
|
3272
|
-
return testPlatform(/^Mac/);
|
|
3273
|
-
}
|
|
3274
|
-
function isIPhone() {
|
|
3275
|
-
return testPlatform(/^iPhone/);
|
|
3276
|
-
}
|
|
3277
|
-
function isIPad() {
|
|
3278
|
-
return (testPlatform(/^iPad/) ||
|
|
3279
|
-
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
3280
|
-
(isMac() && navigator.maxTouchPoints > 1));
|
|
3281
|
-
}
|
|
3282
|
-
function isIOS() {
|
|
3283
|
-
return isIPhone() || isIPad();
|
|
3284
|
-
}
|
|
3285
|
-
function testPlatform(re) {
|
|
3286
|
-
return typeof window !== 'undefined' && window.navigator != null
|
|
3287
|
-
? re.test(window.navigator.platform)
|
|
3288
|
-
: undefined;
|
|
3289
|
-
}
|
|
3290
|
-
|
|
3291
3300
|
function useScrollTo() {
|
|
3292
3301
|
const scrollTo = useCallback((element, to, duration = 500) => {
|
|
3293
3302
|
if (!element)
|
|
@@ -3311,6 +3320,35 @@ function useScrollTo() {
|
|
|
3311
3320
|
return scrollTo;
|
|
3312
3321
|
}
|
|
3313
3322
|
|
|
3323
|
+
const useViewportDimensions = () => {
|
|
3324
|
+
const dimensionsRef = useRef({ width: 0, height: 0 });
|
|
3325
|
+
const [dimensions, setDimensions] = useState(() => ({
|
|
3326
|
+
width: window.screen.availWidth,
|
|
3327
|
+
height: window.screen.availHeight,
|
|
3328
|
+
}));
|
|
3329
|
+
useEffect(() => {
|
|
3330
|
+
var _a;
|
|
3331
|
+
function visualViewport(e) {
|
|
3332
|
+
if (dimensionsRef.current.width === e.target.width &&
|
|
3333
|
+
dimensionsRef.current.height === e.target.height) {
|
|
3334
|
+
return;
|
|
3335
|
+
}
|
|
3336
|
+
const newDimensions = {
|
|
3337
|
+
width: e.target.width,
|
|
3338
|
+
height: e.target.height,
|
|
3339
|
+
};
|
|
3340
|
+
dimensionsRef.current = newDimensions;
|
|
3341
|
+
setDimensions(newDimensions);
|
|
3342
|
+
}
|
|
3343
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3344
|
+
return () => {
|
|
3345
|
+
var _a;
|
|
3346
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3347
|
+
};
|
|
3348
|
+
}, []);
|
|
3349
|
+
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3350
|
+
};
|
|
3351
|
+
|
|
3314
3352
|
// Default handling for Safari & Chrome
|
|
3315
3353
|
function useViewportPushedByKeyboard(threshold = 20) {
|
|
3316
3354
|
const ref = useRef(null);
|
|
@@ -3355,102 +3393,25 @@ function useKeyboardOpen(isAndroid = false) {
|
|
|
3355
3393
|
return keyOpen;
|
|
3356
3394
|
}
|
|
3357
3395
|
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
el.blur();
|
|
3378
|
-
}
|
|
3379
|
-
});
|
|
3380
|
-
}
|
|
3381
|
-
};
|
|
3382
|
-
const handleFocus = (e) => {
|
|
3383
|
-
if (!isMobile || !isIos || !isEnable)
|
|
3384
|
-
return;
|
|
3385
|
-
setTimeout(() => {
|
|
3386
|
-
var _a, _b;
|
|
3387
|
-
if (!isPushedRef.current &&
|
|
3388
|
-
keyOpenRef.current &&
|
|
3389
|
-
popupContentRef.current) {
|
|
3390
|
-
const input = e.target;
|
|
3391
|
-
const rect = input.getBoundingClientRect();
|
|
3392
|
-
const inputHeight = rect.height;
|
|
3393
|
-
const inputTop = rect.top;
|
|
3394
|
-
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3395
|
-
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
3396
|
-
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
3397
|
-
const currentScrollY = popupContentRef.current.scrollTop;
|
|
3398
|
-
const viewPort = (isErrorDevice
|
|
3399
|
-
? window.innerHeight * 0.4
|
|
3400
|
-
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height) - gapToCheckAvai;
|
|
3401
|
-
if (currentTop >= viewPort) {
|
|
3402
|
-
const gap = currentTop - viewPort;
|
|
3403
|
-
const targetScrollY = currentScrollY + gap;
|
|
3404
|
-
if (!isNaN(targetScrollY)) {
|
|
3405
|
-
setIsScrolling(true);
|
|
3406
|
-
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
3407
|
-
setTimeout(() => {
|
|
3408
|
-
setIsScrolling(false);
|
|
3409
|
-
}, 500);
|
|
3410
|
-
}
|
|
3411
|
-
}
|
|
3412
|
-
}
|
|
3413
|
-
}, 300);
|
|
3414
|
-
};
|
|
3415
|
-
useEffect(() => {
|
|
3416
|
-
initialHeight.current = window.innerHeight;
|
|
3417
|
-
}, []);
|
|
3418
|
-
useEffect(() => {
|
|
3419
|
-
isPushedRef.current = isPushed;
|
|
3420
|
-
}, [isPushed]);
|
|
3421
|
-
useEffect(() => {
|
|
3422
|
-
keyOpenRef.current = keyOpen;
|
|
3423
|
-
}, [keyOpen]);
|
|
3424
|
-
useEffect(() => {
|
|
3425
|
-
bottomSpacingRef.current = bottomSpacing;
|
|
3426
|
-
}, [bottomSpacing]);
|
|
3427
|
-
useEffect(() => {
|
|
3428
|
-
setBottomSpacing(isMobile && isIos && isEnable
|
|
3429
|
-
? !isPushed && keyOpen
|
|
3430
|
-
? (() => {
|
|
3431
|
-
var _a;
|
|
3432
|
-
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3433
|
-
const isErrorDevice = visualHeight === initialHeight.current;
|
|
3434
|
-
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
3435
|
-
})()
|
|
3436
|
-
: 0
|
|
3437
|
-
: 0);
|
|
3438
|
-
}, [isPushed, keyOpen, isMobile, isIos, isEnable]);
|
|
3439
|
-
useEffect(() => {
|
|
3440
|
-
isScrollingRef.current = isScrolling;
|
|
3441
|
-
}, [isScrolling]);
|
|
3442
|
-
return {
|
|
3443
|
-
popupContentRef,
|
|
3444
|
-
bottomRef,
|
|
3445
|
-
bottomStyle: {
|
|
3446
|
-
height: `${bottomSpacing}px`,
|
|
3447
|
-
width: '100%',
|
|
3448
|
-
transition: 'height .2s ease',
|
|
3449
|
-
},
|
|
3450
|
-
handleFocus,
|
|
3451
|
-
handlePopupContentScroll,
|
|
3452
|
-
};
|
|
3453
|
-
};
|
|
3396
|
+
function isMac() {
|
|
3397
|
+
return testPlatform(/^Mac/);
|
|
3398
|
+
}
|
|
3399
|
+
function isIPhone() {
|
|
3400
|
+
return testPlatform(/^iPhone/);
|
|
3401
|
+
}
|
|
3402
|
+
function isIPad() {
|
|
3403
|
+
return (testPlatform(/^iPad/) ||
|
|
3404
|
+
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
3405
|
+
(isMac() && navigator.maxTouchPoints > 1));
|
|
3406
|
+
}
|
|
3407
|
+
function isIOS() {
|
|
3408
|
+
return isIPhone() || isIPad();
|
|
3409
|
+
}
|
|
3410
|
+
function testPlatform(re) {
|
|
3411
|
+
return typeof window !== 'undefined' && window.navigator != null
|
|
3412
|
+
? re.test(window.navigator.platform)
|
|
3413
|
+
: undefined;
|
|
3414
|
+
}
|
|
3454
3415
|
|
|
3455
3416
|
function chain(...callbacks) {
|
|
3456
3417
|
return (...args) => {
|
|
@@ -3707,35 +3668,6 @@ function isInput(target) {
|
|
|
3707
3668
|
(target instanceof HTMLElement && target.isContentEditable));
|
|
3708
3669
|
}
|
|
3709
3670
|
|
|
3710
|
-
const useViewportDimensions = () => {
|
|
3711
|
-
const dimensionsRef = useRef({ width: 0, height: 0 });
|
|
3712
|
-
const [dimensions, setDimensions] = useState(() => ({
|
|
3713
|
-
width: window.screen.availWidth,
|
|
3714
|
-
height: window.screen.availHeight,
|
|
3715
|
-
}));
|
|
3716
|
-
useEffect(() => {
|
|
3717
|
-
var _a;
|
|
3718
|
-
function visualViewport(e) {
|
|
3719
|
-
if (dimensionsRef.current.width === e.target.width &&
|
|
3720
|
-
dimensionsRef.current.height === e.target.height) {
|
|
3721
|
-
return;
|
|
3722
|
-
}
|
|
3723
|
-
const newDimensions = {
|
|
3724
|
-
width: e.target.width,
|
|
3725
|
-
height: e.target.height,
|
|
3726
|
-
};
|
|
3727
|
-
dimensionsRef.current = newDimensions;
|
|
3728
|
-
setDimensions(newDimensions);
|
|
3729
|
-
}
|
|
3730
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3731
|
-
return () => {
|
|
3732
|
-
var _a;
|
|
3733
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3734
|
-
};
|
|
3735
|
-
}, []);
|
|
3736
|
-
return useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3737
|
-
};
|
|
3738
|
-
|
|
3739
3671
|
const StyledLeadGenLightBoxBFooter = styled.div `
|
|
3740
3672
|
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3741
3673
|
padding-inline: var(--spacing-x, 20px);
|
|
@@ -4366,7 +4298,7 @@ const StyledFormContainer = styled.div `
|
|
|
4366
4298
|
*
|
|
4367
4299
|
*/
|
|
4368
4300
|
const FormContainer = (_a) => {
|
|
4369
|
-
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer
|
|
4301
|
+
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer } = _a, restProps = __rest(_a, ["iconComponent", "title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "header", "footer"]);
|
|
4370
4302
|
const HeaderContent = (React__default.createElement("div", { className: "leadgen-form_header" },
|
|
4371
4303
|
iconComponent,
|
|
4372
4304
|
React__default.createElement(Text, { as: "h2", size: 'h4', variant: "primary", weight: 'semiBold', className: "leadgen-title", "data-align": titleAlign }, title),
|
|
@@ -4376,13 +4308,13 @@ const FormContainer = (_a) => {
|
|
|
4376
4308
|
}
|
|
4377
4309
|
return (React__default.createElement(StyledFormContainer, Object.assign({ className: clsx(className, 'leadgen-form_container'), style: style }, restProps),
|
|
4378
4310
|
React__default.createElement("div", { className: "leadgen-form_wrapper" },
|
|
4379
|
-
header
|
|
4311
|
+
!!header && (React__default.createElement("div", { className: "leadgen-form_scrollable" },
|
|
4380
4312
|
header,
|
|
4381
4313
|
HeaderContent,
|
|
4382
|
-
React__default.createElement("div", { className: "leadgen-form_body" }, children),
|
|
4383
|
-
|
|
4314
|
+
React__default.createElement("div", { className: "leadgen-form_body" }, children))),
|
|
4315
|
+
!header && (React__default.createElement(React__default.Fragment, null,
|
|
4384
4316
|
HeaderContent,
|
|
4385
|
-
React__default.createElement("div", { className: "leadgen-form_body"
|
|
4317
|
+
React__default.createElement("div", { className: "leadgen-form_body" }, children))),
|
|
4386
4318
|
React__default.createElement("div", { className: "leadgen-form_footer" }, footer))));
|
|
4387
4319
|
};
|
|
4388
4320
|
|
|
@@ -4536,6 +4468,215 @@ const OtpBlock = ({ otpData, onSuccess, autoSendWhenOpen, }) => {
|
|
|
4536
4468
|
} }))))));
|
|
4537
4469
|
};
|
|
4538
4470
|
|
|
4471
|
+
const Gift = ({ className, style }) => {
|
|
4472
|
+
return (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
4473
|
+
React__default.createElement("path", { d: "M15.8337 9.16675V15.8334C15.8337 17.0612 14.8392 18.0556 13.6114 18.0556H6.38921C5.16144 18.0556 4.16699 17.0612 4.16699 15.8334V9.16675", fill: "#FEC7DC" }),
|
|
4474
|
+
React__default.createElement("path", { d: "M10 5.83337V18.0556", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4475
|
+
React__default.createElement("path", { d: "M4.16699 3.8889C4.16699 2.81557 5.0381 1.94446 6.11144 1.94446C8.9881 1.94446 10.0003 5.83335 10.0003 5.83335H6.11144C5.0381 5.83335 4.16699 4.96224 4.16699 3.8889Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4476
|
+
React__default.createElement("path", { d: "M13.8889 5.83335H10C10 5.83335 11.0122 1.94446 13.8889 1.94446C14.9622 1.94446 15.8333 2.81557 15.8333 3.8889C15.8333 4.96224 14.9622 5.83335 13.8889 5.83335Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4477
|
+
React__default.createElement("path", { d: "M15.8337 9.16675V15.8334C15.8337 17.0612 14.8392 18.0556 13.6114 18.0556H6.38921C5.16144 18.0556 4.16699 17.0612 4.16699 15.8334V9.16675", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4478
|
+
React__default.createElement("path", { d: "M16.9443 5.83337H3.05545C2.4418 5.83337 1.94434 6.33084 1.94434 6.94449V8.0556C1.94434 8.66924 2.4418 9.16671 3.05545 9.16671H16.9443C17.558 9.16671 18.0554 8.66924 18.0554 8.0556V6.94449C18.0554 6.33084 17.558 5.83337 16.9443 5.83337Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
4479
|
+
};
|
|
4480
|
+
|
|
4481
|
+
const Star = ({ className, style }) => {
|
|
4482
|
+
return (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
4483
|
+
React__default.createElement("path", { d: "M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z", fill: "#91CAFF" }),
|
|
4484
|
+
React__default.createElement("path", { d: "M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4485
|
+
React__default.createElement("path", { d: "M2.22168 17.7777L5.55501 14.4443", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4486
|
+
React__default.createElement("path", { d: "M1.94434 13.611L2.49989 13.0554", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4487
|
+
React__default.createElement("path", { d: "M6.38867 18.0556L6.94423 17.5", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
4488
|
+
};
|
|
4489
|
+
|
|
4490
|
+
const StyledFreebieCarouselTitle = styled.div `
|
|
4491
|
+
display: flex;
|
|
4492
|
+
align-items: center;
|
|
4493
|
+
gap: ${rem(8)};
|
|
4494
|
+
margin-bottom: ${rem(16)};
|
|
4495
|
+
`;
|
|
4496
|
+
var useStyles = createStyles((theme) => ({
|
|
4497
|
+
indicators: {
|
|
4498
|
+
bottom: 0,
|
|
4499
|
+
gap: rem(4),
|
|
4500
|
+
},
|
|
4501
|
+
indicator: {
|
|
4502
|
+
width: rem(5),
|
|
4503
|
+
height: rem(5),
|
|
4504
|
+
borderRadius: '100%',
|
|
4505
|
+
background: theme.colors.neutral[2],
|
|
4506
|
+
opacity: 1,
|
|
4507
|
+
'&[data-active]': {
|
|
4508
|
+
backgroundColor: theme.fn.primaryColor(),
|
|
4509
|
+
},
|
|
4510
|
+
},
|
|
4511
|
+
container: {
|
|
4512
|
+
padding: `0 0 ${rem(21)} 0`,
|
|
4513
|
+
},
|
|
4514
|
+
root: {
|
|
4515
|
+
marginBottom: rem(16),
|
|
4516
|
+
},
|
|
4517
|
+
}));
|
|
4518
|
+
|
|
4519
|
+
const StyledFreebiesCard = styled.div `
|
|
4520
|
+
display: flex;
|
|
4521
|
+
flex-direction: column;
|
|
4522
|
+
border-radius: ${rem(16)};
|
|
4523
|
+
box-shadow: 0px 32px 32px -16px rgba(0, 0, 0, 0.04),
|
|
4524
|
+
0px 6px 6px -3px rgba(0, 0, 0, 0.04), 0px 3px 3px -1.5px rgba(0, 0, 0, 0.04),
|
|
4525
|
+
0px 1px 1px -0.5px rgba(0, 0, 0, 0.04);
|
|
4526
|
+
background-color: ${theme.colors.white};
|
|
4527
|
+
|
|
4528
|
+
.mantine-AspectRatio-root {
|
|
4529
|
+
width: 100%;
|
|
4530
|
+
|
|
4531
|
+
img {
|
|
4532
|
+
border-radius: ${rem(16)} ${rem(16)} 0 0;
|
|
4533
|
+
margin: 0;
|
|
4534
|
+
}
|
|
4535
|
+
}
|
|
4536
|
+
|
|
4537
|
+
.mantine-Badge-root {
|
|
4538
|
+
height: fit-content;
|
|
4539
|
+
width: fit-content;
|
|
4540
|
+
position: absolute;
|
|
4541
|
+
padding: ${rem(4)} ${rem(8)};
|
|
4542
|
+
border-radius: ${rem(8)};
|
|
4543
|
+
bottom: ${rem(12)};
|
|
4544
|
+
left: ${rem(12)};
|
|
4545
|
+
|
|
4546
|
+
.mantine-Text-root {
|
|
4547
|
+
line-height: ${rem(12)};
|
|
4548
|
+
}
|
|
4549
|
+
|
|
4550
|
+
background-color: #00000080;
|
|
4551
|
+
}
|
|
4552
|
+
`;
|
|
4553
|
+
const StyledImageWrap = styled.div `
|
|
4554
|
+
width: 100%;
|
|
4555
|
+
height: 100%;
|
|
4556
|
+
position: relative;
|
|
4557
|
+
`;
|
|
4558
|
+
|
|
4559
|
+
const FreebieLuckyGiftItem = ({ isHostedByClient, locale, data: { image, name, desc, prize_value, prize_unit, cta_button, winning_slot, }, }) => {
|
|
4560
|
+
const { t } = useTranslations();
|
|
4561
|
+
console.log(prize_value, prize_unit, locale);
|
|
4562
|
+
const formattedPrice = prize_value && prize_unit
|
|
4563
|
+
? currencyFormat(prize_value, locale, prize_unit)
|
|
4564
|
+
: '';
|
|
4565
|
+
return (React__default.createElement(StyledFreebiesCard, null,
|
|
4566
|
+
React__default.createElement(StyledImageWrap, null,
|
|
4567
|
+
React__default.createElement(AspectRatio, { ratio: 3 / 2 },
|
|
4568
|
+
React__default.createElement(ImageWrap, { src: image, alt: name || '' })),
|
|
4569
|
+
winning_slot > 0 && (React__default.createElement(Badge, null,
|
|
4570
|
+
React__default.createElement(Text, { size: "c2", color: theme.colors.white },
|
|
4571
|
+
winning_slot,
|
|
4572
|
+
" SLOTS")))),
|
|
4573
|
+
React__default.createElement(Box, { p: "12px" },
|
|
4574
|
+
React__default.createElement(Tooltip, { label: name, position: "top", withArrow: true },
|
|
4575
|
+
React__default.createElement(Text, { lineClamp: 2, size: "title2", mb: rem(4), style: { height: rem(48) } }, name)),
|
|
4576
|
+
React__default.createElement(Tooltip, { label: desc, position: "top", withArrow: true },
|
|
4577
|
+
React__default.createElement(Text, { lineClamp: 2, size: "p3", mb: rem(16), style: { height: rem(40) } }, desc)),
|
|
4578
|
+
React__default.createElement(Text, { size: "p3", fw: 500 },
|
|
4579
|
+
React__default.createElement(Text, { as: "span" },
|
|
4580
|
+
t('inlineFreebie.value'),
|
|
4581
|
+
" "),
|
|
4582
|
+
React__default.createElement(Text, { as: "span", color: theme.colors.primaryBase }, formattedPrice)),
|
|
4583
|
+
isHostedByClient && (React__default.createElement(Button, { className: "inline-freebie-button" },
|
|
4584
|
+
React__default.createElement(Text, { size: "p2" }, cta_button))))));
|
|
4585
|
+
};
|
|
4586
|
+
const FreebieFreeSampleItem = ({ data: { image, name, desc, cta_button }, }) => (React__default.createElement(StyledFreebiesCard, null,
|
|
4587
|
+
React__default.createElement(AspectRatio, { ratio: 3 / 2 },
|
|
4588
|
+
React__default.createElement(ImageWrap, { src: image, alt: name || '' })),
|
|
4589
|
+
React__default.createElement(Box, { p: "12px" },
|
|
4590
|
+
React__default.createElement(Tooltip, { label: name, position: "top", withArrow: true },
|
|
4591
|
+
React__default.createElement(Text, { lineClamp: 2, size: "title2", mb: rem(4), style: { height: rem(48) } }, name)),
|
|
4592
|
+
React__default.createElement(Tooltip, { label: desc, position: "top", withArrow: true },
|
|
4593
|
+
React__default.createElement(Text, { lineClamp: 3, size: "p3", style: { height: rem(60) } }, desc)),
|
|
4594
|
+
React__default.createElement(Button, { className: "lucky-gift-button inline-freebie-button" },
|
|
4595
|
+
React__default.createElement(Text, { size: "p2" }, cta_button)))));
|
|
4596
|
+
|
|
4597
|
+
var EHostedBy;
|
|
4598
|
+
(function (EHostedBy) {
|
|
4599
|
+
EHostedBy["CLIENT"] = "CLIENT";
|
|
4600
|
+
EHostedBy["HHG"] = "HHG";
|
|
4601
|
+
})(EHostedBy || (EHostedBy = {}));
|
|
4602
|
+
var EFreebieType;
|
|
4603
|
+
(function (EFreebieType) {
|
|
4604
|
+
EFreebieType["SAMPLE"] = "SAMPLE";
|
|
4605
|
+
EFreebieType["LUCKY_DRAW"] = "LUCKY_DRAW";
|
|
4606
|
+
})(EFreebieType || (EFreebieType = {}));
|
|
4607
|
+
|
|
4608
|
+
const FreebieCarousel = ({ isHostedByClient, data, locale, }) => {
|
|
4609
|
+
const { classes } = useStyles(undefined, {
|
|
4610
|
+
name: 'Carousel',
|
|
4611
|
+
});
|
|
4612
|
+
const { t } = useTranslations();
|
|
4613
|
+
const freeSample = data.filter((item) => item.type === EFreebieType.SAMPLE);
|
|
4614
|
+
const luckyGift = data.filter((item) => item.type === EFreebieType.LUCKY_DRAW);
|
|
4615
|
+
const isHasLuckyGift = luckyGift.length > 0;
|
|
4616
|
+
const isHasFreeSample = freeSample.length > 0;
|
|
4617
|
+
const isHasLuckyGiftMoreThanOne = luckyGift.length > 1;
|
|
4618
|
+
const isHasFreeSampleMoreThanOne = freeSample.length > 1;
|
|
4619
|
+
const luckyGiftCtaButton = luckyGift[0].cta_button;
|
|
4620
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
4621
|
+
isHasLuckyGift && (React__default.createElement(React__default.Fragment, null,
|
|
4622
|
+
React__default.createElement(StyledFreebieCarouselTitle, null,
|
|
4623
|
+
React__default.createElement(Gift, null),
|
|
4624
|
+
React__default.createElement(Text, { size: "title2", color: theme.colors.pink800 }, t('inlineFreebie.freeSample.title'))),
|
|
4625
|
+
React__default.createElement(Carousel, { slideSize: isHasFreeSampleMoreThanOne ? rem(262) : rem(355), slideGap: rem(12), align: "start", withControls: false, withIndicators: isHasFreeSampleMoreThanOne, classNames: Object.assign({}, classes) }, freeSample.map((item) => (React__default.createElement(Carousel.Slide, { key: `${item.type}-${item.product_code}` },
|
|
4626
|
+
React__default.createElement(FreebieFreeSampleItem, { data: item }))))))),
|
|
4627
|
+
isHasFreeSample && (React__default.createElement(React__default.Fragment, null,
|
|
4628
|
+
React__default.createElement(StyledFreebieCarouselTitle, null,
|
|
4629
|
+
React__default.createElement(Star, null),
|
|
4630
|
+
React__default.createElement(Text, { size: "title2", color: theme.colors.primaryBase }, t('inlineFreebie.luckyDrawGift.title'))),
|
|
4631
|
+
React__default.createElement(Carousel, { slideSize: isHasLuckyGiftMoreThanOne ? rem(262) : rem(355), slideGap: rem(12), align: "start", withControls: false, withIndicators: isHasLuckyGiftMoreThanOne, classNames: Object.assign({}, classes) }, luckyGift.map((item) => (React__default.createElement(Carousel.Slide, { key: `${item.type}-${item.product_code}` },
|
|
4632
|
+
React__default.createElement(FreebieLuckyGiftItem, { isHostedByClient: isHostedByClient, data: item, locale: locale }))))),
|
|
4633
|
+
!isHostedByClient && (React__default.createElement(Button, { className: "inline-freebie-button" },
|
|
4634
|
+
React__default.createElement(Text, { size: "p2" }, luckyGiftCtaButton)))))));
|
|
4635
|
+
};
|
|
4636
|
+
|
|
4637
|
+
const StyledBox = styled.div `
|
|
4638
|
+
margin-bottom: ${rem(4)};
|
|
4639
|
+
`;
|
|
4640
|
+
const StyledTitle = styled(Text) `
|
|
4641
|
+
margin-bottom: ${rem(16)};
|
|
4642
|
+
`;
|
|
4643
|
+
const StyledBrandImage = styled.img `
|
|
4644
|
+
height: ${rem(32)};
|
|
4645
|
+
width: auto;
|
|
4646
|
+
`;
|
|
4647
|
+
const StyledInlineFreebieContainer = styled.div `
|
|
4648
|
+
padding: ${rem(16)};
|
|
4649
|
+
background-color: ${theme.colors.neutral50};
|
|
4650
|
+
|
|
4651
|
+
.inline-freebie-button {
|
|
4652
|
+
width: 100%;
|
|
4653
|
+
margin-top: ${rem(12)};
|
|
4654
|
+
|
|
4655
|
+
.mantine-Text-root {
|
|
4656
|
+
color: ${theme.colors.white};
|
|
4657
|
+
font-weight: 600;
|
|
4658
|
+
}
|
|
4659
|
+
|
|
4660
|
+
&.lucky-gift-button {
|
|
4661
|
+
background-color: ${theme.colors.pink800};
|
|
4662
|
+
|
|
4663
|
+
&:hover {
|
|
4664
|
+
background-color: ${theme.colors.pink700};
|
|
4665
|
+
}
|
|
4666
|
+
}
|
|
4667
|
+
}
|
|
4668
|
+
`;
|
|
4669
|
+
|
|
4670
|
+
const InlineFreebie = ({ campaign, locale, }) => {
|
|
4671
|
+
const { hosted_by, brand_image, widget_title, data_freebies } = campaign;
|
|
4672
|
+
const isHostedByClient = hosted_by === 'CLIENT';
|
|
4673
|
+
return (React__default.createElement(StyledInlineFreebieContainer, null,
|
|
4674
|
+
React__default.createElement(StyledBox, null,
|
|
4675
|
+
React__default.createElement(StyledBrandImage, { src: brand_image, alt: widget_title || '', loading: "lazy", style: { height: '32px', width: 'auto' } })),
|
|
4676
|
+
React__default.createElement(StyledTitle, { size: "title1" }, widget_title || ''),
|
|
4677
|
+
React__default.createElement(FreebieCarousel, { isHostedByClient: isHostedByClient, data: data_freebies, locale: locale })));
|
|
4678
|
+
};
|
|
4679
|
+
|
|
4539
4680
|
// url: imageBlocks.imageMobile.data.url
|
|
4540
4681
|
// newTab: imageBlocks.imageMobile.data.newtab
|
|
4541
4682
|
// image: campaignShow.image
|
|
@@ -4553,7 +4694,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4553
4694
|
];
|
|
4554
4695
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4555
4696
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
4556
|
-
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
|
|
4697
|
+
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, campaign, }) => {
|
|
4557
4698
|
var _a, _b;
|
|
4558
4699
|
const { primaryColor } = useContext(LeadGenContext$1);
|
|
4559
4700
|
const { isMobile } = useScreenSize();
|
|
@@ -4578,6 +4719,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4578
4719
|
});
|
|
4579
4720
|
}
|
|
4580
4721
|
};
|
|
4722
|
+
const { height } = useViewportDimensions();
|
|
4581
4723
|
// usePreventScroll()
|
|
4582
4724
|
const formActiveTime = useRef(0);
|
|
4583
4725
|
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
@@ -4592,7 +4734,8 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4592
4734
|
const isLightBox = currentLayout.includes('LightBox');
|
|
4593
4735
|
const isLightBoxA = currentLayout === LEADGEN_LAYOUT.LightBoxA;
|
|
4594
4736
|
const isLightBoxB = currentLayout === LEADGEN_LAYOUT.LightBoxB;
|
|
4595
|
-
const isInline = currentLayout.includes('Inline');
|
|
4737
|
+
const isInline = currentLayout.includes('Inline') || currentLayout.includes('Freebie');
|
|
4738
|
+
const isFreebie = currentLayout.includes('Freebie');
|
|
4596
4739
|
const isFullscreen = currentLayout === LEADGEN_LAYOUT.Fullscreen;
|
|
4597
4740
|
const isInPage = isInline || isSidebar;
|
|
4598
4741
|
const isDrawer = isLightBoxB && isMobile;
|
|
@@ -4616,7 +4759,19 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4616
4759
|
userInfo,
|
|
4617
4760
|
format: (_a = (ISO_FORMAT[locale] || ISO_FORMAT['vi-VN'])) === null || _a === void 0 ? void 0 : _a.dateFormat,
|
|
4618
4761
|
});
|
|
4619
|
-
const
|
|
4762
|
+
const popupContentRef = useRef(null);
|
|
4763
|
+
const isIos = isIOS();
|
|
4764
|
+
const keyOpen = useKeyboardOpen();
|
|
4765
|
+
const { isPushed, bottomRef } = useViewportPushedByKeyboard();
|
|
4766
|
+
const [bottomSpacing, setBottomSpacing] = useState(0);
|
|
4767
|
+
const bottomSpacingRef = useRef(bottomSpacing);
|
|
4768
|
+
const isPushedRef = useRef(isPushed);
|
|
4769
|
+
const keyOpenRef = useRef(keyOpen);
|
|
4770
|
+
const [isScrolling, setIsScrolling] = useState(false);
|
|
4771
|
+
const isScrollingRef = useRef(false);
|
|
4772
|
+
const gapBottomSpace = useRef(40);
|
|
4773
|
+
const initialHeight = useRef(0);
|
|
4774
|
+
const scrollTo = useScrollTo();
|
|
4620
4775
|
const handleDoImpression = useCallback((type = 'impression') => doImpression({
|
|
4621
4776
|
formValues: form.values,
|
|
4622
4777
|
formActiveTime: formActiveTime.current,
|
|
@@ -4630,6 +4785,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4630
4785
|
return null;
|
|
4631
4786
|
}
|
|
4632
4787
|
useEffect(() => {
|
|
4788
|
+
initialHeight.current = window.innerHeight;
|
|
4633
4789
|
(isLightBox || isSlider) && handleDoImpression();
|
|
4634
4790
|
if (isLightBox || isFullscreen) {
|
|
4635
4791
|
document.body.classList.add('noscroll');
|
|
@@ -4639,6 +4795,18 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4639
4795
|
}
|
|
4640
4796
|
clearCacheUsedEmailOrPhone();
|
|
4641
4797
|
}, []);
|
|
4798
|
+
useEffect(() => {
|
|
4799
|
+
isPushedRef.current = isPushed;
|
|
4800
|
+
}, [isPushed]);
|
|
4801
|
+
useEffect(() => {
|
|
4802
|
+
keyOpenRef.current = keyOpen;
|
|
4803
|
+
}, [keyOpen]);
|
|
4804
|
+
useEffect(() => {
|
|
4805
|
+
bottomSpacingRef.current = bottomSpacing;
|
|
4806
|
+
}, [bottomSpacing]);
|
|
4807
|
+
useEffect(() => {
|
|
4808
|
+
isScrollingRef.current = isScrolling;
|
|
4809
|
+
}, [isScrolling]);
|
|
4642
4810
|
useEffect(() => {
|
|
4643
4811
|
formRef.current && setLastFormRef(formRef.current);
|
|
4644
4812
|
}, [formRef.current]);
|
|
@@ -4666,6 +4834,18 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4666
4834
|
}
|
|
4667
4835
|
return () => clearInterval(intervalId);
|
|
4668
4836
|
}, [showThankyou]);
|
|
4837
|
+
useEffect(() => {
|
|
4838
|
+
setBottomSpacing(isMobile && isIos && isLightBoxB
|
|
4839
|
+
? !isPushed && keyOpen
|
|
4840
|
+
? (() => {
|
|
4841
|
+
var _a;
|
|
4842
|
+
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4843
|
+
const isErrorDevice = visualHeight === initialHeight.current;
|
|
4844
|
+
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
4845
|
+
})()
|
|
4846
|
+
: 0
|
|
4847
|
+
: 0);
|
|
4848
|
+
}, [isPushed, keyOpen, isMobile, isIos, isLightBoxB]);
|
|
4669
4849
|
const listBlockAddedRequired = useMemo(() => leadGenFieldRequired(listBlockAdded), listBlockAdded);
|
|
4670
4850
|
const disabledButtonSubmit = useMemo(() => {
|
|
4671
4851
|
if (listBlockAddedRequired.length) {
|
|
@@ -4673,11 +4853,47 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4673
4853
|
}
|
|
4674
4854
|
return false;
|
|
4675
4855
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4856
|
+
const handlePopupContentScroll = () => {
|
|
4857
|
+
if (!isScrollingRef.current) {
|
|
4858
|
+
const active = document.activeElement;
|
|
4859
|
+
if (formRef.current && formRef.current.contains(active)) {
|
|
4860
|
+
active.blur();
|
|
4861
|
+
}
|
|
4862
|
+
}
|
|
4863
|
+
};
|
|
4676
4864
|
const onFocus = (e) => {
|
|
4677
4865
|
// EL-926 Temporary turn off handling focus form on mobile to fix scrolling bug on lightbox A
|
|
4678
4866
|
// return false
|
|
4679
4867
|
e.preventDefault();
|
|
4680
|
-
|
|
4868
|
+
if (!isMobile || !isIos || !isLightBoxB)
|
|
4869
|
+
return;
|
|
4870
|
+
setTimeout(() => {
|
|
4871
|
+
var _a, _b;
|
|
4872
|
+
if (!isPushedRef.current && keyOpenRef.current) {
|
|
4873
|
+
const input = e.target;
|
|
4874
|
+
const rect = input.getBoundingClientRect();
|
|
4875
|
+
const inputHeight = rect.height;
|
|
4876
|
+
const inputTop = rect.top;
|
|
4877
|
+
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4878
|
+
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
4879
|
+
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
4880
|
+
const currentScrollY = popupContentRef.current.scrollTop;
|
|
4881
|
+
const viewPort = isErrorDevice
|
|
4882
|
+
? window.innerHeight * 0.4
|
|
4883
|
+
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height;
|
|
4884
|
+
if (currentTop >= viewPort) {
|
|
4885
|
+
const gap = currentTop - viewPort;
|
|
4886
|
+
const targetScrollY = currentScrollY + gap;
|
|
4887
|
+
if (!isNaN(targetScrollY)) {
|
|
4888
|
+
setIsScrolling(true);
|
|
4889
|
+
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
4890
|
+
setTimeout(() => {
|
|
4891
|
+
setIsScrolling(false);
|
|
4892
|
+
}, 500);
|
|
4893
|
+
}
|
|
4894
|
+
}
|
|
4895
|
+
}
|
|
4896
|
+
}, 300);
|
|
4681
4897
|
};
|
|
4682
4898
|
const middlewareOnSubmit = (e) => {
|
|
4683
4899
|
e.preventDefault();
|
|
@@ -4801,10 +5017,14 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4801
5017
|
const PopupEmpty = showEmpty && (React__default.createElement(EmptyComponent, { onClose: onClose, onContinue: () => setShowEmpty(false) }));
|
|
4802
5018
|
const PopupForm = (React__default.createElement(LeadFormProvider, { form: form },
|
|
4803
5019
|
React__default.createElement("form", { ref: formRef, className: "leadgen-form", onFocus: onFocus, onSubmit: middlewareOnSubmit },
|
|
4804
|
-
React__default.createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm
|
|
5020
|
+
React__default.createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm },
|
|
4805
5021
|
React__default.createElement("div", { className: "leadgen-form_inner" },
|
|
4806
5022
|
React__default.createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit, hasSubmitBtn: Boolean(ButtonSubmit), isSubmitLoading: isSubmitLoading, disabledButtonSubmit: disabledButtonSubmit })))),
|
|
4807
|
-
|
|
5023
|
+
React__default.createElement("div", { style: {
|
|
5024
|
+
height: `${bottomSpacing}px`,
|
|
5025
|
+
width: '100%',
|
|
5026
|
+
transition: 'height .2s ease',
|
|
5027
|
+
} })));
|
|
4808
5028
|
const PopupOtp = showOtpPhone && (React__default.createElement(OtpBlock, { otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
4809
5029
|
setShowOtpPhone(null);
|
|
4810
5030
|
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
@@ -4815,7 +5035,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4815
5035
|
});
|
|
4816
5036
|
} }));
|
|
4817
5037
|
const PopupThankYou = showThankyou && (React__default.createElement(ThankyouPopup, { title: showThankyou.title, titleAlign: showThankyou.titleAlign, subtitle: showThankyou.subtitle, subtitleAlign: showThankyou.subtitleAlign, link: showThankyou.link, linkNewTab: showThankyou.linkNewTab, linkText: showThankyou.linkText, image: showThankyou.image }));
|
|
4818
|
-
const PopupContent = (React__default.createElement("div", { ref:
|
|
5038
|
+
const PopupContent = (React__default.createElement("div", { ref: popupContentRef, className: clsx('leadgen-content', {
|
|
4819
5039
|
'leadgen-content_small': limitFieldsLightBoxB,
|
|
4820
5040
|
}), onScroll: handlePopupContentScroll },
|
|
4821
5041
|
!headerInsideFormContainer && PopupHeader,
|
|
@@ -4861,7 +5081,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4861
5081
|
position: 'absolute',
|
|
4862
5082
|
inset: 0,
|
|
4863
5083
|
zIndex: snap === 1 ? -1 : 1,
|
|
4864
|
-
}, onClick: () => setSnap(1) })))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName },
|
|
5084
|
+
}, onClick: () => setSnap(1) })))) : (React__default.createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName, style: isMobile ? { maxHeight: height } : undefined },
|
|
4865
5085
|
isFullscreen ? (React__default.createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
4866
5086
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
4867
5087
|
} })) : null,
|
|
@@ -4875,7 +5095,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4875
5095
|
return React__default.createElement(SideBarLayout, { content: PopupContainer });
|
|
4876
5096
|
}
|
|
4877
5097
|
else if (isInline) {
|
|
4878
|
-
return (React__default.createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5098
|
+
return (React__default.createElement(InlineLayout, { action: action, content: isFreebie ? (React__default.createElement(InlineFreebie, { campaign: campaign.freebie[0], locale: locale })) : (PopupContainer), campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
4879
5099
|
}
|
|
4880
5100
|
return null;
|
|
4881
5101
|
};
|
|
@@ -5068,10 +5288,11 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
|
|
|
5068
5288
|
}
|
|
5069
5289
|
else if (currentLayout.includes('LightBox') ||
|
|
5070
5290
|
currentLayout.includes('Inline') ||
|
|
5291
|
+
currentLayout.includes('Freebie') ||
|
|
5071
5292
|
currentLayout == 'Fullscreen' ||
|
|
5072
5293
|
currentLayout == 'Sidebar' ||
|
|
5073
5294
|
currentLayout == 'Slider') {
|
|
5074
|
-
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
|
|
5295
|
+
return (React__default.createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, 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 }));
|
|
5075
5296
|
}
|
|
5076
5297
|
else if (currentLayout.includes('Skin')) {
|
|
5077
5298
|
return (React__default.createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
|
|
@@ -5167,7 +5388,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5167
5388
|
var _a, _b;
|
|
5168
5389
|
const scrollEventHandlerRef = useRef();
|
|
5169
5390
|
const leadStartTimeRef = useRef(Date.now());
|
|
5170
|
-
const [, setScrollLocked] = useScrollLock();
|
|
5171
5391
|
const { apiUrl } = useMemo(() => {
|
|
5172
5392
|
let apiUrl = apiUrlProp;
|
|
5173
5393
|
if (apiUrl.includes('localhost')) {
|
|
@@ -5183,9 +5403,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5183
5403
|
const [showEmpty, setShowEmpty] = useState(false);
|
|
5184
5404
|
const [redirectUrl, setRedirectUrl] = useState();
|
|
5185
5405
|
const currentLayout = useMemo(() => showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout, [showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout]);
|
|
5186
|
-
const layoutUseOverlay = useMemo(() => !!currentLayout &&
|
|
5187
|
-
!currentLayout.includes('Inline') &&
|
|
5188
|
-
!currentLayout.includes('Sidebar'), [currentLayout]);
|
|
5189
5406
|
useEffect(() => {
|
|
5190
5407
|
if (forceCampaign) {
|
|
5191
5408
|
setShowCampaign(forceCampaign);
|
|
@@ -5205,7 +5422,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5205
5422
|
document.body.classList.remove('noscroll');
|
|
5206
5423
|
setShowCampaign(null);
|
|
5207
5424
|
setShowThankyou(null);
|
|
5208
|
-
setScrollLocked(false);
|
|
5209
5425
|
setAction('HIDE');
|
|
5210
5426
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
5211
5427
|
};
|
|
@@ -5227,41 +5443,36 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5227
5443
|
}
|
|
5228
5444
|
}
|
|
5229
5445
|
}
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5446
|
+
yield Promise.all([
|
|
5447
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/popup_exit`, {
|
|
5448
|
+
method: 'POST',
|
|
5449
|
+
headers: {
|
|
5450
|
+
'Content-Type': 'application/json',
|
|
5451
|
+
},
|
|
5452
|
+
body: JSON.stringify({
|
|
5453
|
+
action: 'CLICK',
|
|
5454
|
+
url: location.href.toLowerCase(),
|
|
5455
|
+
title_article: document.title,
|
|
5456
|
+
cookie_id: getCookie('hhg-id') || '',
|
|
5457
|
+
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5458
|
+
}),
|
|
5459
|
+
}),
|
|
5460
|
+
!showThankyou &&
|
|
5461
|
+
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5462
|
+
trackingCompletionForm({
|
|
5463
|
+
commonData: {
|
|
5241
5464
|
cookie_id: getCookie('hhg-id') || '',
|
|
5242
|
-
|
|
5243
|
-
|
|
5465
|
+
ga_client_id: getCookie('_ga') || null,
|
|
5466
|
+
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5467
|
+
status: 'in_progress',
|
|
5468
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5469
|
+
total_fields: listBlockAdded.length,
|
|
5470
|
+
type: 'close',
|
|
5471
|
+
},
|
|
5472
|
+
currentLayout,
|
|
5473
|
+
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
5244
5474
|
}),
|
|
5245
|
-
|
|
5246
|
-
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5247
|
-
trackingCompletionForm({
|
|
5248
|
-
commonData: {
|
|
5249
|
-
cookie_id: getCookie('hhg-id') || '',
|
|
5250
|
-
ga_client_id: getCookie('_ga') || null,
|
|
5251
|
-
country_code: locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5252
|
-
status: 'in_progress',
|
|
5253
|
-
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5254
|
-
total_fields: listBlockAdded.length,
|
|
5255
|
-
type: 'close',
|
|
5256
|
-
},
|
|
5257
|
-
currentLayout,
|
|
5258
|
-
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
5259
|
-
}),
|
|
5260
|
-
]);
|
|
5261
|
-
}
|
|
5262
|
-
catch (err) {
|
|
5263
|
-
console.log(err);
|
|
5264
|
-
}
|
|
5475
|
+
]);
|
|
5265
5476
|
onCloseBase();
|
|
5266
5477
|
});
|
|
5267
5478
|
const onUnmount = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -5519,9 +5730,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5519
5730
|
leadStartTimeRef.current = Date.now();
|
|
5520
5731
|
}
|
|
5521
5732
|
}, [showCampaign]);
|
|
5522
|
-
useEffect(() => {
|
|
5523
|
-
setScrollLocked(layoutUseOverlay);
|
|
5524
|
-
}, [layoutUseOverlay]);
|
|
5525
5733
|
return (React__default.createElement(LeadGenContext$1.Provider, { value: {
|
|
5526
5734
|
primaryColor,
|
|
5527
5735
|
apiUrl,
|
|
@@ -5537,7 +5745,10 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5537
5745
|
React__default.createElement(Transition, { mounted: Boolean(((_b = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _b === void 0 ? void 0 : _b.popupVersion) === '2.1'), transition: "fade", duration: 600, timingFunction: "ease", exitDuration: 200 }, (styles) => {
|
|
5538
5746
|
var _a;
|
|
5539
5747
|
return (React__default.createElement(Box, { style: styles }, ((_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.popupVersion) === '2.1' && (React__default.createElement(React__default.Fragment, null,
|
|
5540
|
-
|
|
5748
|
+
!!currentLayout &&
|
|
5749
|
+
!currentLayout.includes('Inline') &&
|
|
5750
|
+
!currentLayout.includes('Sidebar') &&
|
|
5751
|
+
!currentLayout.includes('Freebie') && (React__default.createElement(Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5541
5752
|
React__default.createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5542
5753
|
}))))))));
|
|
5543
5754
|
};
|