@hhgtech/hhg-components 1.29.428-beta-1 → 1.29.429
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{GeneralInfo-1aa0091e.js → GeneralInfo-144082bf.js} +77 -85
- package/build/{InputDate-1d0ab729.js → InputDate-ec0bea76.js} +5 -5
- package/build/{LastPeriod-52e72d62.js → LastPeriod-f25909db.js} +1 -1
- package/build/{MobileBottomNavigationIcon-f77d8b9b.js → MobileBottomNavigationIcon-969f4512.js} +3 -3
- package/build/{Spinner-35c88da9.js → Spinner-d2905cca.js} +1 -1
- package/build/{WhatsApp-68a6393b.js → WhatsApp-70907cad.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 -2
- package/build/care.js +20 -19
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/atoms/cardCollapse/index.d.ts +1 -2
- package/build/components/mantine/text/index.d.ts +8 -1
- package/build/components/mantine/theme/text.d.ts +3 -1
- package/build/components/molecules/index.d.ts +0 -1
- 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/clinicInfo/index.styled.d.ts +0 -7
- package/build/components/organisms/map/index.d.ts +1 -1
- package/build/components.js +102 -102
- package/build/{constants-e258961a.js → constants-c207bcf2.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-0102830e.js → core-938e4b29.js} +1 -1
- package/build/{dataTransform-7ba5c8d2.js → dataTransform-506aa309.js} +1 -1
- package/build/ecom.js +22 -25
- package/build/{editor-eaf8d32d.js → editor-2ccb9735.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/{GeneralInfo-e9e87c34.js → GeneralInfo-d09a7163.js} +78 -85
- package/build/esm/{InputDate-036d702a.js → InputDate-150d51f1.js} +5 -5
- package/build/esm/{LastPeriod-083a680a.js → LastPeriod-4cdcb16b.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-3516a7cc.js → MobileBottomNavigationIcon-11ef4634.js} +3 -3
- package/build/esm/{Spinner-d55b953b.js → Spinner-336745a0.js} +1 -1
- package/build/esm/{WhatsApp-2ce6f672.js → WhatsApp-fcedeb2f.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 -2
- 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/cardCollapse/index.d.ts +1 -2
- 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/index.d.ts +0 -1
- 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/clinicInfo/index.styled.d.ts +0 -7
- package/build/esm/components/organisms/map/index.d.ts +1 -1
- package/build/esm/components.js +102 -101
- package/build/esm/{constants-72d3ed69.js → constants-9edb5de7.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-fdea0eed.js → core-74f7840e.js} +1 -1
- package/build/esm/{dataTransform-c7566396.js → dataTransform-e9889171.js} +1 -1
- package/build/esm/ecom.js +5 -8
- package/build/esm/{editor-27f5f633.js → editor-fe1a1482.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-0ac21095.js → healthTools-37373fb5.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/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +8 -0
- package/build/esm/i18n-values/hi-IN.js +8 -0
- package/build/esm/i18n-values/id-ID.js +8 -0
- package/build/esm/i18n-values/km-KH.js +8 -0
- package/build/esm/i18n-values/ms-MY.js +8 -0
- package/build/esm/i18n-values/my-MM.js +8 -0
- package/build/esm/i18n-values/th-TH.js +8 -0
- package/build/esm/i18n-values/tl-PH.js +8 -0
- package/build/esm/i18n-values/vi-VN.js +8 -0
- package/build/esm/i18n-values/vi-VN_MB.js +8 -0
- package/build/esm/i18n-values/zh-SG.js +8 -0
- package/build/esm/i18n-values/zh-TW.js +8 -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/index.d.ts +8 -6
- package/build/esm/{index-5f7fe6da.js → index-07d599a5.js} +3 -3
- package/build/esm/{index-5fa79508.js → index-08412ca5.js} +2 -2
- package/build/esm/{index-07809b8a.js → index-0d821f2d.js} +8 -8
- package/build/esm/{types-7c8fb601.js → index-0e1f46ed.js} +3 -16
- package/build/esm/{index-9f1d761c.js → index-101ad2f7.js} +15 -15
- package/build/esm/{index-77272775.js → index-13e6c278.js} +2 -2
- package/build/esm/{index-58c50818.js → index-1f36edb7.js} +16 -16
- package/build/esm/{index-93dfda98.js → index-2029e489.js} +6 -6
- package/build/esm/{index-c5df37f6.js → index-26b0cb59.js} +4 -3
- package/build/esm/{index-54e60938.js → index-281c49d7.js} +17 -17
- package/build/esm/{index-02975605.js → index-297df8a4.js} +32 -32
- package/build/esm/{index-00e7cea7.js → index-2bc8bb3a.js} +25 -25
- package/build/esm/{index-fcc457ed.js → index-2be0ce94.js} +2 -2
- package/build/esm/{index-afcd2e11.js → index-2f5de1d7.js} +2 -2
- package/build/esm/{index-39ca557b.js → index-35c5d7d5.js} +13 -13
- package/build/esm/{index-807319c5.js → index-38868b60.js} +10 -10
- package/build/esm/{index-d1cf6769.js → index-3c90651c.js} +11 -11
- package/build/esm/{index-8a1c0f96.js → index-3da0e5c4.js} +2 -2
- package/build/esm/{index-8f27a513.js → index-45af50e7.js} +7 -7
- package/build/esm/{index-61b5768c.js → index-48f2f9d9.js} +6 -6
- package/build/esm/{index-85e80779.js → index-4beeec6a.js} +2 -2
- package/build/esm/{index-f918bc9e.js → index-562960ad.js} +41 -80
- package/build/esm/{index-c7c54d0f.js → index-5d944e03.js} +1 -1
- package/build/esm/{index-01206782.js → index-5fe544e7.js} +2 -2
- package/build/esm/{index-f4d17a9c.js → index-630c6453.js} +17 -17
- package/build/esm/{index-ea6b1992.js → index-652b30e5.js} +3 -3
- package/build/esm/{index-60aae241.js → index-70486dba.js} +1 -1
- package/build/esm/{index-0c235141.js → index-73d4bf68.js} +2 -2
- package/build/esm/{index-827507f9.js → index-756c979d.js} +15 -15
- package/build/esm/{index-3831fb94.js → index-79a9c1bf.js} +3 -3
- package/build/esm/{index-bcbb877b.js → index-7a70b730.js} +13 -13
- package/build/esm/{index-bd23ee73.js → index-82b80e49.js} +17 -17
- package/build/esm/{index-db50ac52.js → index-8370370e.js} +1 -1
- package/build/esm/{index-5cadde94.js → index-83903d35.js} +6 -6
- package/build/esm/{index-6524dc07.js → index-887de622.js} +1 -1
- package/build/esm/{index-fb363ecd.js → index-889d24ad.js} +3 -3
- package/build/esm/{index-065816f6.js → index-8b05318a.js} +1 -1
- package/build/esm/{index-8e31f657.js → index-8e947475.js} +6 -6
- package/build/esm/{index-96e84d05.js → index-913cd40f.js} +2 -2
- package/build/esm/{index-9d9bf01d.js → index-93d7cef2.js} +13 -13
- package/build/esm/{index-058b0967.js → index-9439984b.js} +22 -22
- package/build/esm/{index-89cf8199.js → index-97b839cf.js} +8 -8
- package/build/esm/{index-d55c2070.js → index-9d8682e0.js} +3 -3
- package/build/esm/{index-03a16dd1.js → index-a0603676.js} +14 -14
- package/build/esm/{index-25d3efd8.js → index-aa702e26.js} +13 -13
- package/build/esm/{index-1b5b102d.js → index-aa8dbb6f.js} +2 -2
- package/build/esm/{index-afe6085f.js → index-aaa8f9c1.js} +1 -1
- package/build/esm/{index-090dea91.js → index-ac30ca44.js} +2 -2
- package/build/esm/{index-d29ed174.js → index-b0bcdca4.js} +32 -32
- package/build/esm/{index-b19b6df1.js → index-b8e1f575.js} +15 -15
- package/build/esm/{index-b2d6d634.js → index-b91b840c.js} +2 -2
- package/build/esm/{index-a5524300.js → index-b9b796f2.js} +21 -21
- package/build/esm/{index-e545a30c.js → index-ba229c28.js} +6 -6
- package/build/esm/{index-b7e85a3c.js → index-c087a620.js} +16 -18
- package/build/esm/{index-812eff27.js → index-c3ee376e.js} +33 -33
- package/build/esm/{index-a4126464.js → index-c614bd17.js} +4 -4
- package/build/esm/{index-b519315f.js → index-c88a3f55.js} +16 -16
- package/build/esm/{index-5c4c2c55.js → index-c9e764c7.js} +13 -13
- package/build/esm/{index-f5ef03a8.js → index-cf8f2f44.js} +7 -7
- package/build/esm/{index-4d2b3b0a.js → index-d0da75ba.js} +1 -1
- package/build/esm/{index-3afde005.js → index-d41992df.js} +17 -17
- package/build/esm/{index-49281ab1.js → index-d5bfc5cf.js} +4 -4
- package/build/esm/{index-5f11422b.js → index-dbcd754c.js} +2 -2
- package/build/esm/{index-4b4257f2.js → index-dc0c1d6e.js} +13 -13
- package/build/esm/{index-c86117e4.js → index-e2a568ff.js} +3 -3
- package/build/esm/{index-419ca2b8.js → index-e52c8890.js} +2 -2
- package/build/esm/{index-cf2d56cf.js → index-e6f7269f.js} +1 -1
- package/build/esm/{index-af9852ed.js → index-ec66991e.js} +2 -2
- package/build/esm/{index-6fb373b9.js → index-f029acfa.js} +3 -3
- package/build/esm/{index-a5e8193e.js → index-f452c0f8.js} +5 -5
- package/build/esm/index.js +141 -127
- package/build/esm/{labelSorting-0e328a23.js → labelSorting-8c2c1ed5.js} +4 -4
- 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-f8041ffb.js → logoIcon-ab04e756.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc.js +19 -19
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +77 -77
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +47 -47
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +27 -27
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +57 -56
- package/build/esm/{post-3bf2ae55.js → post-3328af03.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/esm/ssoV2.js +41 -53
- package/build/esm/{store-81441535.js → store-4b1a7f5f.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-5accfb82.js → surveyThankyouCard-e27bd36b.js} +5 -5
- package/build/esm/{text-fe36a7f8.js → text-fb20ee8a.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-e510e7ff.js → translationsProvider-349d8427.js} +1 -1
- package/build/esm/{treePopoverMenu-879aca94.js → treePopoverMenu-908db5ad.js} +19 -19
- package/build/esm/types-fca702eb.js +16 -0
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-a393324b.js → useCategory-0b28e231.js} +5 -5
- package/build/esm/{useHealthToolCache-76f052de.js → useHealthToolCache-0c6043c2.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-8ba5c917.js → usePlacesAutocomplete-f696847a.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-f6dd420c.js → utils-1f587ddc.js} +2 -2
- package/build/esm/{utils-cfb9b5cd.js → utils-2deee8e8.js} +2 -2
- package/build/esm/{utils-e142ccf1.js → utils-373ccfa4.js} +5 -5
- package/build/esm/utils-9b2ad9e5.js +15 -0
- package/build/esm/{utils-8d13ecca.js → utils-fe2d7d46.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-f8138d8c.js → healthTools-7c1705c2.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks.js +13 -13
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +8 -0
- package/build/i18n-values/hi-IN.js +8 -0
- package/build/i18n-values/id-ID.js +8 -0
- package/build/i18n-values/km-KH.js +8 -0
- package/build/i18n-values/ms-MY.js +8 -0
- package/build/i18n-values/my-MM.js +8 -0
- package/build/i18n-values/th-TH.js +8 -0
- package/build/i18n-values/tl-PH.js +8 -0
- package/build/i18n-values/vi-VN.js +8 -0
- package/build/i18n-values/vi-VN_MB.js +8 -0
- package/build/i18n-values/zh-SG.js +8 -0
- package/build/i18n-values/zh-TW.js +8 -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/index.d.ts +8 -6
- package/build/{index-d5af774d.js → index-0356df80.js} +4 -4
- package/build/{index-6a1b67b8.js → index-066f5fcb.js} +16 -16
- package/build/{index-f7ef3765.js → index-0992f37f.js} +8 -8
- package/build/{index-cf4a7449.js → index-0d60e66d.js} +1 -1
- package/build/{index-9fcd8e65.js → index-130fb722.js} +6 -6
- package/build/{index-275f57ff.js → index-1883b37f.js} +4 -4
- package/build/{index-6bd6120a.js → index-19ff6902.js} +17 -17
- package/build/{index-ddddbadc.js → index-1fcab5b3.js} +15 -15
- package/build/{index-08e83020.js → index-22713a13.js} +2 -2
- package/build/{index-ca704529.js → index-22d4d601.js} +25 -25
- package/build/{index-d8d00e05.js → index-269efb10.js} +13 -13
- package/build/{index-c7aece21.js → index-27344921.js} +13 -13
- package/build/{index-95cd3f2e.js → index-2e20e8b1.js} +3 -3
- package/build/{index-b74050b3.js → index-324af2d8.js} +13 -13
- package/build/{index-815ad42f.js → index-3327c40e.js} +6 -6
- package/build/{index-ed26b14f.js → index-3aebd148.js} +2 -2
- package/build/{index-285c523c.js → index-3ca442b9.js} +16 -16
- package/build/{index-5210a867.js → index-3cbb3f12.js} +3 -3
- package/build/{index-4e9ee460.js → index-3dde740f.js} +2 -2
- package/build/{index-97cd0baa.js → index-43747f24.js} +4 -3
- package/build/{index-0240275c.js → index-43d579b4.js} +13 -13
- package/build/{index-4cc88ab6.js → index-48131ffe.js} +3 -3
- package/build/{index-f8d2290b.js → index-48900e51.js} +8 -8
- package/build/{index-b6a7058e.js → index-4a251dcb.js} +22 -22
- package/build/{index-555f65d8.js → index-5513833c.js} +2 -2
- package/build/{index-a7910e07.js → index-5616bac5.js} +2 -2
- package/build/{index-152c04ba.js → index-58b40d12.js} +1 -1
- package/build/{index-e9c3e5a7.js → index-65626156.js} +42 -81
- package/build/{index-382c891c.js → index-6ac71f27.js} +3 -3
- package/build/{index-c1290a00.js → index-6bf7bc1a.js} +17 -17
- package/build/{index-b27284b8.js → index-6cd2cb2a.js} +3 -3
- package/build/{index-e7405658.js → index-71bb99e8.js} +15 -15
- package/build/{index-01294060.js → index-71cc985b.js} +6 -6
- package/build/{index-611609d6.js → index-73fd3e83.js} +6 -6
- package/build/{index-2be42333.js → index-7d9ac7bb.js} +2 -2
- package/build/{index-e7e8b1ae.js → index-7dc9df86.js} +2 -2
- package/build/{index-6acd9ff0.js → index-808a4c21.js} +17 -17
- package/build/{index-2fdbb2e8.js → index-82f5436b.js} +11 -11
- package/build/{index-fb65c286.js → index-852f5813.js} +17 -17
- package/build/{index-b144cab6.js → index-87879e9b.js} +3 -3
- package/build/{index-e5e6718b.js → index-88ac0659.js} +1 -1
- package/build/{index-3131cb0f.js → index-8c70c1e1.js} +1 -1
- package/build/{index-4703eca3.js → index-975e719c.js} +32 -32
- package/build/{index-f23a4b83.js → index-9b5801fc.js} +5 -5
- package/build/{index-11d614b1.js → index-9f1a224f.js} +13 -13
- package/build/{index-51bea6e4.js → index-a26d1003.js} +2 -2
- package/build/{index-238a3f93.js → index-a7adcc80.js} +32 -32
- package/build/{index-7fc84058.js → index-a9ce9bc6.js} +7 -7
- package/build/{index-0133d1fb.js → index-aee94255.js} +1 -1
- package/build/{index-010356fa.js → index-b3f79121.js} +2 -2
- package/build/{index-1949a1f0.js → index-bb61e823.js} +7 -7
- package/build/{index-8f6aa622.js → index-c5ad69a4.js} +1 -1
- package/build/{index-858931f0.js → index-ca63ffab.js} +2 -2
- package/build/{index-6b80d135.js → index-d22c2fd3.js} +15 -15
- package/build/{index-42d7dbf3.js → index-d43a6b5d.js} +3 -3
- package/build/{index-9aa54329.js → index-d6fdb515.js} +2 -2
- package/build/{index-2e25ef31.js → index-dbba8758.js} +14 -14
- package/build/{index-84a852c1.js → index-dfe2cfe0.js} +13 -13
- package/build/{index-f28a371e.js → index-e16e1a5b.js} +21 -21
- package/build/{index-fcb174ce.js → index-e19debd8.js} +5 -5
- package/build/{index-2547ba44.js → index-e2f8947e.js} +16 -18
- package/build/{index-a6238ac3.js → index-e36a0eca.js} +2 -2
- package/build/{index-8db0e27b.js → index-e41d8c16.js} +1 -1
- package/build/{index-de52b8bb.js → index-e5dabc7c.js} +1 -1
- package/build/{index-cd259a64.js → index-e89ec099.js} +10 -10
- package/build/{index-07d7bd32.js → index-ea485904.js} +2 -2
- package/build/{index-3f12ad5f.js → index-ea776875.js} +2 -2
- package/build/{index-c4f137fe.js → index-eea96fe2.js} +2 -2
- package/build/{index-62be6901.js → index-f5307942.js} +32 -32
- package/build/{types-889d3099.js → index-f5357c6d.js} +2 -16
- package/build/index.js +149 -134
- package/build/{labelSorting-043e8b38.js → labelSorting-7dec075d.js} +4 -4
- 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-6df48d89.js → logoIcon-7e7ba8ca.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc.js +19 -19
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +77 -78
- 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-c17cfed7.js → post-75575422.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2/api/featureFlag.d.ts +1 -2
- package/build/ssoV2.js +39 -51
- package/build/{store-03772418.js → store-2bcfb4ce.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-fee0f621.js → surveyThankyouCard-decf99ef.js} +5 -5
- package/build/{text-c781d461.js → text-fd8c6f4e.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-f36b5822.js → translationsProvider-d61159a9.js} +1 -1
- package/build/{treePopoverMenu-f06dbcc4.js → treePopoverMenu-e3cb4989.js} +19 -19
- package/build/types-2cdd78b8.js +19 -0
- package/build/types.js +2 -2
- package/build/{useCategory-7f90a915.js → useCategory-b91aac67.js} +5 -5
- package/build/{useHealthToolCache-388fabe4.js → useHealthToolCache-0d4ed8b2.js} +1 -1
- package/build/{usePlacesAutocomplete-9721f94b.js → usePlacesAutocomplete-99ea6f27.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-f4d7438b.js → utils-0cee2298.js} +2 -2
- package/build/utils-1a9edc75.js +18 -0
- package/build/{utils-a3ddb569.js → utils-5ff7297b.js} +2 -2
- package/build/{utils-a723729a.js → utils-a2444b2a.js} +3 -3
- package/build/{utils-89323f82.js → utils-b50918be.js} +5 -5
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/components/molecules/sumaryInfo/index.d.ts +0 -13
- package/build/components/molecules/sumaryInfo/index.styled.d.ts +0 -25
- package/build/esm/components/molecules/sumaryInfo/index.d.ts +0 -13
- package/build/esm/components/molecules/sumaryInfo/index.styled.d.ts +0 -25
- package/build/esm/hooks/useFocusFieldOnDevice.d.ts +0 -12
- package/build/esm/icons/Email.d.ts +0 -4
- package/build/hooks/useFocusFieldOnDevice.d.ts +0 -12
- package/build/icons/Email.d.ts +0 -4
- /package/build/{BMI_BOYS.percentile.monthly-aabd8ad7.js → BMI_BOYS.percentile.monthly-1ceb0666.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-a0570a7e.js → BMI_BOYS.percentile.weekly-daadac39.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-f6f71504.js → BMI_BOYS.percentile.yearly-19b60cd2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-0c3ec584.js → BMI_BOYS.zscore.monthly-32eaa389.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-0f38f669.js → BMI_BOYS.zscore.weekly-cfdb3ef8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-8e8ca54a.js → BMI_BOYS.zscore.yearly-793c719f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-2c06efa1.js → BMI_GIRLS.percentile.monthly-6216af7c.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-65d16387.js → BMI_GIRLS.percentile.weekly-98d98f7f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-a076b251.js → BMI_GIRLS.percentile.yearly-8820968b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-532c96bd.js → BMI_GIRLS.zscore.monthly-2b10d634.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-b76fab1d.js → BMI_GIRLS.zscore.weekly-fdd0517c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-8f22c3cb.js → BMI_GIRLS.zscore.yearly-22a394a5.js} +0 -0
- /package/build/{ChevronDown-c22d84ff.js → ChevronDown-3f7d04a1.js} +0 -0
- /package/build/{Close-40582baa.js → Close-1f8c9b66.js} +0 -0
- /package/build/{Google-069ae090.js → Google-a5e04b19.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-86fd06c7.js → HEAD CIRCUM_BOYS.percentile.monthly-19bbfe63.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-38d9ae38.js → HEAD CIRCUM_BOYS.percentile.weekly-8aeabb51.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-11e7db44.js → HEAD CIRCUM_BOYS.percentile.yearly-1cd23123.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-9a9ad66e.js → HEAD CIRCUM_BOYS.zscore.monthly-b573e11d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-aa5fbaae.js → HEAD CIRCUM_BOYS.zscore.weekly-85cd9286.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-ada152ed.js → HEAD CIRCUM_BOYS.zscore.yearly-a9f3a551.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-bd2fd5a7.js → HEAD CIRCUM_GIRLS.percentile.monthly-94ae65c8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-f4072ffd.js → HEAD CIRCUM_GIRLS.percentile.weekly-4116b288.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-d5476f23.js → HEAD CIRCUM_GIRLS.percentile.yearly-4a0acc9c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-4f180105.js → HEAD CIRCUM_GIRLS.zscore.monthly-ea78f840.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-62e4689a.js → HEAD CIRCUM_GIRLS.zscore.weekly-537f51e7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-65c0a218.js → HEAD CIRCUM_GIRLS.zscore.yearly-fbaf8330.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-281aae42.js → HEIGHT_BOYS.percentile.monthly-e5edb3d8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-eda57b57.js → HEIGHT_BOYS.percentile.weekly-65c1497e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-293d01fd.js → HEIGHT_BOYS.percentile.yearly-e7139339.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-bfb04e53.js → HEIGHT_BOYS.zscore.monthly-9d600b13.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-389c15b8.js → HEIGHT_BOYS.zscore.weekly-a9a1f95d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-dd94afdc.js → HEIGHT_BOYS.zscore.yearly-3580c407.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-2556e50a.js → HEIGHT_GIRLS.percentile.monthly-e241faf4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-bd731df1.js → HEIGHT_GIRLS.percentile.weekly-706d6fe1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-ee457c1b.js → HEIGHT_GIRLS.percentile.yearly-ceef6782.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-f5a3de20.js → HEIGHT_GIRLS.zscore.monthly-a74bc84c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-8ed74087.js → HEIGHT_GIRLS.zscore.weekly-5a5b53a1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-331d3cb8.js → HEIGHT_GIRLS.zscore.yearly-8658924d.js} +0 -0
- /package/build/{Locale-a1b1ec82.js → Locale-11e16821.js} +0 -0
- /package/build/{Visible-a014ab48.js → Visible-641dc13a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-aa96bb70.js → WEIGHT_BOYS.percentile.monthly-e247f58c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-d696d106.js → WEIGHT_BOYS.percentile.weekly-768cc514.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-3726a234.js → WEIGHT_BOYS.percentile.yearly-d90cb9e5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-54aed401.js → WEIGHT_BOYS.zscore.monthly-e84f874d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-14e71d1c.js → WEIGHT_BOYS.zscore.weekly-de9b35a4.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-de572448.js → WEIGHT_BOYS.zscore.yearly-3704f300.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-70412c05.js → WEIGHT_GIRLS.percentile.monthly-61d9cf2d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-5bf4cc3b.js → WEIGHT_GIRLS.percentile.weekly-bc745ee3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-9909c4e6.js → WEIGHT_GIRLS.percentile.yearly-78da2e9e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-519b5bdd.js → WEIGHT_GIRLS.zscore.monthly-5ad1bd58.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-08b61afc.js → WEIGHT_GIRLS.zscore.weekly-02eed4aa.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-ceba94d2.js → WEIGHT_GIRLS.zscore.yearly-b9228b02.js} +0 -0
- /package/build/{ageGenerate-62226049.js → ageGenerate-38c4ee7f.js} +0 -0
- /package/build/{animation-267ce396.js → animation-19d1bad7.js} +0 -0
- /package/build/{constants-310b07b8.js → constants-06224b18.js} +0 -0
- /package/build/{constants-cdc5ae49.js → constants-11512981.js} +0 -0
- /package/build/{constants-1e48d93f.js → constants-33b39074.js} +0 -0
- /package/build/{dataTransform-55ece460.js → dataTransform-5dc0059c.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-1ace03d1.js → BMI_BOYS.percentile.monthly-0dba699d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-5f12c187.js → BMI_BOYS.percentile.weekly-b77b41d9.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-715b92c7.js → BMI_BOYS.percentile.yearly-e9307ec4.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-63bbcafc.js → BMI_BOYS.zscore.monthly-35c8a976.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-9594b326.js → BMI_BOYS.zscore.weekly-709021fa.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-42560c41.js → BMI_BOYS.zscore.yearly-a1544d29.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-dfbbb804.js → BMI_GIRLS.percentile.monthly-c57586f8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-56d2e18b.js → BMI_GIRLS.percentile.weekly-eb4dbece.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-e28a1a30.js → BMI_GIRLS.percentile.yearly-f521846f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-7d492112.js → BMI_GIRLS.zscore.monthly-93ad36c0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-37169a4c.js → BMI_GIRLS.zscore.weekly-b29a4100.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-41193d88.js → BMI_GIRLS.zscore.yearly-02805036.js} +0 -0
- /package/build/esm/{ChevronDown-5e816a12.js → ChevronDown-f0d305ad.js} +0 -0
- /package/build/esm/{Close-1b4b3f6e.js → Close-65cb2752.js} +0 -0
- /package/build/esm/{Google-ab5b71ac.js → Google-7486db9d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-4d9d2f73.js → HEAD CIRCUM_BOYS.percentile.monthly-8e87698f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f9477642.js → HEAD CIRCUM_BOYS.percentile.weekly-d181eb5a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-5701a057.js → HEAD CIRCUM_BOYS.percentile.yearly-db125c5e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-6a0ba66b.js → HEAD CIRCUM_BOYS.zscore.monthly-4552e346.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-dbd57db9.js → HEAD CIRCUM_BOYS.zscore.weekly-35dafdff.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-32d4f4ec.js → HEAD CIRCUM_BOYS.zscore.yearly-80cccc7e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-85927c27.js → HEAD CIRCUM_GIRLS.percentile.monthly-2ee3f162.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-4e144e68.js → HEAD CIRCUM_GIRLS.percentile.weekly-cb9eae85.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-d15d725e.js → HEAD CIRCUM_GIRLS.percentile.yearly-2bcfd0f9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-5f4fc5ed.js → HEAD CIRCUM_GIRLS.zscore.monthly-74dcd22a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-7a2bffc7.js → HEAD CIRCUM_GIRLS.zscore.weekly-41f75d42.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-ef47e424.js → HEAD CIRCUM_GIRLS.zscore.yearly-b9f6e507.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-6244b439.js → HEIGHT_BOYS.percentile.monthly-aacba6ad.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-0c2227c8.js → HEIGHT_BOYS.percentile.weekly-c15ea54f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-e24be4fb.js → HEIGHT_BOYS.percentile.yearly-aeb682ac.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-9d29a23b.js → HEIGHT_BOYS.zscore.monthly-9a4f3449.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-2d4e2e5c.js → HEIGHT_BOYS.zscore.weekly-b581f665.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-e13ea868.js → HEIGHT_BOYS.zscore.yearly-7d19fd0f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-d228f5f7.js → HEIGHT_GIRLS.percentile.monthly-f8b26d9d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-18fccae8.js → HEIGHT_GIRLS.percentile.weekly-12daee04.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3989d75f.js → HEIGHT_GIRLS.percentile.yearly-946cf06e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-cd3ae6cc.js → HEIGHT_GIRLS.zscore.monthly-01da306a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4ea9b63a.js → HEIGHT_GIRLS.zscore.weekly-b2bbba45.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c39b2269.js → HEIGHT_GIRLS.zscore.yearly-e79df2df.js} +0 -0
- /package/build/esm/{Locale-5be8188a.js → Locale-1a4dde1a.js} +0 -0
- /package/build/esm/{Visible-8d4ecff1.js → Visible-e1785571.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-cd8b3e55.js → WEIGHT_BOYS.percentile.monthly-693520b5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b8c1202b.js → WEIGHT_BOYS.percentile.weekly-969d7e5c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-7f3e066b.js → WEIGHT_BOYS.percentile.yearly-912d64ee.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-3808b3b8.js → WEIGHT_BOYS.zscore.monthly-7bc163d6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-df4d230b.js → WEIGHT_BOYS.zscore.weekly-740819f1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-df32e99f.js → WEIGHT_BOYS.zscore.yearly-5836bd2f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-047f2926.js → WEIGHT_GIRLS.percentile.monthly-08b7f4b5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-a998da7b.js → WEIGHT_GIRLS.percentile.weekly-5818cae3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-1cffc87c.js → WEIGHT_GIRLS.percentile.yearly-7f5d9f3c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9e7ebcaf.js → WEIGHT_GIRLS.zscore.monthly-095c88ca.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-2a695ed4.js → WEIGHT_GIRLS.zscore.weekly-af1fe973.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-fa3600ed.js → WEIGHT_GIRLS.zscore.yearly-06d970e8.js} +0 -0
- /package/build/esm/{ageGenerate-83c2ce64.js → ageGenerate-910ac80c.js} +0 -0
- /package/build/esm/{animation-91b1e83d.js → animation-16b5643b.js} +0 -0
- /package/build/esm/{constants-768d67b8.js → constants-1650c8cc.js} +0 -0
- /package/build/esm/{constants-7dd2be5f.js → constants-786742dd.js} +0 -0
- /package/build/esm/{constants-ae115b9f.js → constants-a7a2261a.js} +0 -0
- /package/build/esm/{dataTransform-1444acc6.js → dataTransform-48088b90.js} +0 -0
- /package/build/esm/{index-7ef4b69d.js → index-3b04b698.js} +0 -0
- /package/build/esm/{index-453d72c1.js → index-7eaa88e2.js} +0 -0
- /package/build/esm/{index-ebc0208c.js → index-84da0094.js} +0 -0
- /package/build/esm/{index-d22dd163.js → index-a96b3cbb.js} +0 -0
- /package/build/esm/{index-99d47c00.js → index-bbbd83e5.js} +0 -0
- /package/build/esm/{index-c070f843.js → index-c7725ad6.js} +0 -0
- /package/build/esm/{index-68bed127.js → index-d2ab2f79.js} +0 -0
- /package/build/esm/{index-d72c5be3.js → index-eb80e0e4.js} +0 -0
- /package/build/esm/{index.styles-a80ccc56.js → index.styles-ec097679.js} +0 -0
- /package/build/esm/{localizeNumberFormat-1793a13f.js → localizeNumberFormat-2d35ee62.js} +0 -0
- /package/build/esm/{normalizeLink-dbd854ae.js → normalizeLink-2641055f.js} +0 -0
- /package/build/esm/{number-fb459821.js → number-08c2c073.js} +0 -0
- /package/build/esm/{paths-6fbd4b6a.js → paths-8c92e714.js} +0 -0
- /package/build/esm/{shared-08588d98.js → shared-e751cd0d.js} +0 -0
- /package/build/esm/{translationsContext-e45c090d.js → translationsContext-9a23580d.js} +0 -0
- /package/build/esm/{tslib.es6-7b2139eb.js → tslib.es6-b66cc7c7.js} +0 -0
- /package/build/esm/{types-cd5ea76c.js → types-61af8de6.js} +0 -0
- /package/build/esm/{useIsInit-75b17972.js → useIsInit-b0d33e87.js} +0 -0
- /package/build/esm/{useOutsideClick-ca21582a.js → useOutsideClick-273250ba.js} +0 -0
- /package/build/esm/{useScrollbarSize-8fe78db5.js → useScrollbarSize-6cbd67f8.js} +0 -0
- /package/build/esm/{useUniqueId-582a9b8b.js → useUniqueId-a77bb58d.js} +0 -0
- /package/build/esm/{utils-1e0330c1.js → utils-b97786aa.js} +0 -0
- /package/build/{index-2994da93.js → index-17fc29e5.js} +0 -0
- /package/build/{index-cfbd71f1.js → index-897c0ebe.js} +0 -0
- /package/build/{index-27d7affb.js → index-ba57394f.js} +0 -0
- /package/build/{index-2232c1b1.js → index-c6c30f9f.js} +0 -0
- /package/build/{index-0ee700a4.js → index-ca538f60.js} +0 -0
- /package/build/{index-2b2c0dd9.js → index-cd2c1241.js} +0 -0
- /package/build/{index-53811047.js → index-d05b0695.js} +0 -0
- /package/build/{index-c96a83af.js → index-d84247b3.js} +0 -0
- /package/build/{index.styles-1ca4a2c2.js → index.styles-cfef019d.js} +0 -0
- /package/build/{localizeNumberFormat-5fee20a1.js → localizeNumberFormat-3a283196.js} +0 -0
- /package/build/{normalizeLink-791a2900.js → normalizeLink-37dcc032.js} +0 -0
- /package/build/{number-2811edb2.js → number-274975a1.js} +0 -0
- /package/build/{paths-47bd7b41.js → paths-1653905a.js} +0 -0
- /package/build/{shared-f89c53a2.js → shared-86da99c5.js} +0 -0
- /package/build/{translationsContext-96803826.js → translationsContext-b3127cab.js} +0 -0
- /package/build/{tslib.es6-da217af3.js → tslib.es6-d3b8ad7b.js} +0 -0
- /package/build/{types-cd8cd4cc.js → types-d290b855.js} +0 -0
- /package/build/{useIsInit-47154c0d.js → useIsInit-15819adb.js} +0 -0
- /package/build/{useOutsideClick-cb592ec2.js → useOutsideClick-729d10d6.js} +0 -0
- /package/build/{useScrollbarSize-3b5d9d25.js → useScrollbarSize-df87ceef.js} +0 -0
- /package/build/{useUniqueId-64f321a3.js → useUniqueId-e67c1056.js} +0 -0
- /package/build/{utils-1e0c7e54.js → utils-802ed24c.js} +0 -0
package/build/lead.js
CHANGED
|
@@ -2,60 +2,61 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-d3b8ad7b.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var core = require('@mantine/core');
|
|
8
8
|
var debounce = require('lodash/debounce');
|
|
9
9
|
var form = require('@mantine/form');
|
|
10
10
|
var dayjs = require('dayjs');
|
|
11
|
-
var index = require('./index-
|
|
11
|
+
var index = require('./index-0356df80.js');
|
|
12
12
|
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
13
|
-
var index$1 = require('./index-
|
|
14
|
-
var translationsContext = require('./translationsContext-
|
|
15
|
-
var utils$1 = require('./utils-
|
|
16
|
-
var index$2 = require('./index-
|
|
17
|
-
var index$3 = require('./index-
|
|
18
|
-
var index$5 = require('./index-
|
|
19
|
-
var index$4 = require('./index-
|
|
20
|
-
require('./index.styles-
|
|
13
|
+
var index$1 = require('./index-e41d8c16.js');
|
|
14
|
+
var translationsContext = require('./translationsContext-b3127cab.js');
|
|
15
|
+
var utils$1 = require('./utils-802ed24c.js');
|
|
16
|
+
var index$2 = require('./index-e19debd8.js');
|
|
17
|
+
var index$3 = require('./index-0992f37f.js');
|
|
18
|
+
var index$5 = require('./index-73fd3e83.js');
|
|
19
|
+
var index$4 = require('./index-2e20e8b1.js');
|
|
20
|
+
require('./index.styles-cfef019d.js');
|
|
21
21
|
var hooks = require('@mantine/hooks');
|
|
22
|
-
require('./index-
|
|
23
|
-
var text = require('./text-
|
|
24
|
-
require('./index-
|
|
25
|
-
var utils = require('./utils-
|
|
22
|
+
require('./index-48900e51.js');
|
|
23
|
+
var text = require('./text-fd8c6f4e.js');
|
|
24
|
+
require('./index-48131ffe.js');
|
|
25
|
+
var utils = require('./utils-5ff7297b.js');
|
|
26
26
|
var dates = require('@mantine/dates');
|
|
27
|
-
var index$7 = require('./index-
|
|
28
|
-
var index$b = require('./index-
|
|
29
|
-
require('./index-
|
|
30
|
-
var usePlacesAutocomplete = require('./usePlacesAutocomplete-
|
|
31
|
-
var index$6 = require('./index-
|
|
32
|
-
var translationsProvider = require('./translationsProvider-
|
|
33
|
-
var Locale = require('./Locale-
|
|
27
|
+
var index$7 = require('./index-3dde740f.js');
|
|
28
|
+
var index$b = require('./index-aee94255.js');
|
|
29
|
+
require('./index-cd2c1241.js');
|
|
30
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-99ea6f27.js');
|
|
31
|
+
var index$6 = require('./index-22713a13.js');
|
|
32
|
+
var translationsProvider = require('./translationsProvider-d61159a9.js');
|
|
33
|
+
var Locale = require('./Locale-11e16821.js');
|
|
34
34
|
var uuid = require('uuid');
|
|
35
35
|
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
36
36
|
var PhoneInputBase = require('react-phone-number-input');
|
|
37
37
|
var styled = require('@emotion/styled');
|
|
38
38
|
var miscTheme = require('./miscTheme.js');
|
|
39
|
-
var index$8 = require('./index-
|
|
40
|
-
var togetherComponentGlobalContext = require('./utils-
|
|
41
|
-
var index$9 = require('./index-
|
|
42
|
-
var index$a = require('./index-
|
|
43
|
-
var index$c = require('./index-
|
|
39
|
+
var index$8 = require('./index-e36a0eca.js');
|
|
40
|
+
var togetherComponentGlobalContext = require('./utils-a2444b2a.js');
|
|
41
|
+
var index$9 = require('./index-6ac71f27.js');
|
|
42
|
+
var index$a = require('./index-c6c30f9f.js');
|
|
43
|
+
var index$c = require('./index-d6fdb515.js');
|
|
44
44
|
var framerMotion = require('framer-motion');
|
|
45
45
|
var ReactDOM = require('react-dom');
|
|
46
46
|
var arrow = require('@hhgtech/icons/arrow');
|
|
47
47
|
var core$1 = require('@hhgtech/icons/core');
|
|
48
|
-
var InputDate = require('./InputDate-
|
|
49
|
-
var
|
|
50
|
-
var
|
|
48
|
+
var InputDate = require('./InputDate-ec0bea76.js');
|
|
49
|
+
var carousel = require('@mantine/carousel');
|
|
50
|
+
var utils$2 = require('./utils-1a9edc75.js');
|
|
51
|
+
var index$d = require('./index-43747f24.js');
|
|
52
|
+
var Close = require('./Close-1f8c9b66.js');
|
|
51
53
|
require('./constantsIsProduction.js');
|
|
52
|
-
require('./normalizeLink-
|
|
54
|
+
require('./normalizeLink-37dcc032.js');
|
|
53
55
|
require('@hhgtech/icons/other');
|
|
54
|
-
require('@mantine/carousel');
|
|
55
56
|
require('classnames');
|
|
56
|
-
require('./useUniqueId-
|
|
57
|
+
require('./useUniqueId-e67c1056.js');
|
|
57
58
|
require('./constantsSite.js');
|
|
58
|
-
require('./shared-
|
|
59
|
+
require('./shared-86da99c5.js');
|
|
59
60
|
require('@mantine/notifications');
|
|
60
61
|
require('date-fns/locale');
|
|
61
62
|
require('./constantsRiskScreener.js');
|
|
@@ -72,11 +73,12 @@ require('./i18n-values/vi-VN_MB.js');
|
|
|
72
73
|
require('./i18n-values/zh-SG.js');
|
|
73
74
|
require('./i18n-values/zh-TW.js');
|
|
74
75
|
require('@emotion/react');
|
|
75
|
-
require('./index-
|
|
76
|
+
require('./index-d84247b3.js');
|
|
76
77
|
require('slugify');
|
|
77
78
|
require('string-format');
|
|
78
79
|
require('./togetherApiPaths.js');
|
|
79
|
-
require('./constants-
|
|
80
|
+
require('./constants-11512981.js');
|
|
81
|
+
require('./constants-c207bcf2.js');
|
|
80
82
|
require('vaul');
|
|
81
83
|
|
|
82
84
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -962,7 +964,7 @@ const Description = (_a) => {
|
|
|
962
964
|
|
|
963
965
|
const LeadGenContext$1 = React.createContext({});
|
|
964
966
|
|
|
965
|
-
var useStyles$
|
|
967
|
+
var useStyles$3 = core.createStyles(() => {
|
|
966
968
|
return {
|
|
967
969
|
control: {},
|
|
968
970
|
};
|
|
@@ -1025,7 +1027,7 @@ const TitleBlock$1 = ({ children, align, }) => (React__default["default"].create
|
|
|
1025
1027
|
|
|
1026
1028
|
const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, styles, classNames, popoverProps, }) => {
|
|
1027
1029
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
1028
|
-
const { classes, cx } = useStyles$
|
|
1030
|
+
const { classes, cx } = useStyles$3(undefined, {
|
|
1029
1031
|
name: 'LeadGen__Field',
|
|
1030
1032
|
styles,
|
|
1031
1033
|
classNames,
|
|
@@ -1113,7 +1115,7 @@ const Fields = ({ listBlockAdded, popupId, locale, onClose, onOtherSubmit, style
|
|
|
1113
1115
|
})));
|
|
1114
1116
|
};
|
|
1115
1117
|
|
|
1116
|
-
var useStyles$
|
|
1118
|
+
var useStyles$2 = core.createStyles((theme) => {
|
|
1117
1119
|
return {
|
|
1118
1120
|
root: {},
|
|
1119
1121
|
header: {},
|
|
@@ -1143,7 +1145,7 @@ const FormComponent = ({ styles, className, classNames, fillInfo, popoverProps,
|
|
|
1143
1145
|
const { listBlockAdded, leadFormConfig: { form, validateObj }, validatingEmailRef, validatingPhoneRef,
|
|
1144
1146
|
// formRef,
|
|
1145
1147
|
setFormRef, onClose, onOtherSubmit, actionBlocks, locale, setShowOtpPhone, onSubmit, } = React.useContext(LeadGenComponentContext);
|
|
1146
|
-
const { classes, cx } = useStyles$
|
|
1148
|
+
const { classes, cx } = useStyles$2(undefined, {
|
|
1147
1149
|
name: 'LeadGen__FormComponent',
|
|
1148
1150
|
styles,
|
|
1149
1151
|
classNames,
|
|
@@ -1237,7 +1239,7 @@ const Form = (props) => {
|
|
|
1237
1239
|
return showThankyou || showOtpPhone ? null : React__default["default"].createElement(FormComponent, Object.assign({}, props));
|
|
1238
1240
|
};
|
|
1239
1241
|
|
|
1240
|
-
var useStyles = core.createStyles(() => {
|
|
1242
|
+
var useStyles$1 = core.createStyles(() => {
|
|
1241
1243
|
return {
|
|
1242
1244
|
root: {},
|
|
1243
1245
|
header: {},
|
|
@@ -1262,7 +1264,7 @@ const OtpBlockComponent = ({ otpData, onSuccess, autoSendWhenOpen, className, st
|
|
|
1262
1264
|
const [displayPhone, setDisplayPhone] = React.useState('');
|
|
1263
1265
|
const formatPhoneNumberIntlRef = React.useRef();
|
|
1264
1266
|
const [isSubmitLoading, setIsSubmitLoading] = React.useState(false);
|
|
1265
|
-
const { classes, cx } = useStyles(undefined, {
|
|
1267
|
+
const { classes, cx } = useStyles$1(undefined, {
|
|
1266
1268
|
name: 'LeadGen__OTP',
|
|
1267
1269
|
styles,
|
|
1268
1270
|
classNames,
|
|
@@ -1431,6 +1433,9 @@ var enPH = {
|
|
|
1431
1433
|
"lead.empty.title": "Oops, seem your information is empty, do you want to submit the information again?",
|
|
1432
1434
|
"lead.empty.cancel": "Cancel",
|
|
1433
1435
|
"lead.empty.submitAgain": "Submit again",
|
|
1436
|
+
"inlineFreebie.freeSample.title": "Free Sample",
|
|
1437
|
+
"inlineFreebie.luckyDrawGift.title": "Lucky-draw Gift",
|
|
1438
|
+
"inlineFreebie.value": "Value",
|
|
1434
1439
|
"common.day": "Day",
|
|
1435
1440
|
"common.month": "Month",
|
|
1436
1441
|
"common.year": "Year"
|
|
@@ -1454,6 +1459,9 @@ var hiIN = {
|
|
|
1454
1459
|
"lead.empty.title": "ऊप्स! लगता है आपकी जानकारी खाली है। क्या आप जानकारी फिर से सबमिट करना चाहते हैं?",
|
|
1455
1460
|
"lead.empty.cancel": "रद्द करें",
|
|
1456
1461
|
"lead.empty.submitAgain": "फिर से सबमिट करें",
|
|
1462
|
+
"inlineFreebie.freeSample.title": "मुफ्त नमूना",
|
|
1463
|
+
"inlineFreebie.luckyDrawGift.title": "लकी-ड्रा गिफ्ट",
|
|
1464
|
+
"inlineFreebie.value": "मूल्य",
|
|
1457
1465
|
"common.day": "साल",
|
|
1458
1466
|
"common.month": "महीना",
|
|
1459
1467
|
"common.year": ""
|
|
@@ -1479,6 +1487,9 @@ var idID = {
|
|
|
1479
1487
|
"lead.empty.title": "Oops, sepertinya informasi Anda kosong. Apakah Anda ingin mengirimkan informasi lagi?",
|
|
1480
1488
|
"lead.empty.cancel": "Batal",
|
|
1481
1489
|
"lead.empty.submitAgain": "Kirim lagi",
|
|
1490
|
+
"inlineFreebie.freeSample.title": "Sampel Gratis",
|
|
1491
|
+
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1492
|
+
"inlineFreebie.value": "Nilai",
|
|
1482
1493
|
"common.day": "Hari",
|
|
1483
1494
|
"common.month": "Bulan",
|
|
1484
1495
|
"common.year": "Tahun"
|
|
@@ -1504,6 +1515,9 @@ var kmKH = {
|
|
|
1504
1515
|
"lead.empty.title": "អូុបស! ហាក់ដូចជាព័ត៌មានរបស់អ្នកទទេ។ តើអ្នកចង់ដាក់ស្នើព័ត៌មានម្តងទៀតទេ?",
|
|
1505
1516
|
"lead.empty.cancel": "លុបចោល",
|
|
1506
1517
|
"lead.empty.submitAgain": "ដាក់ស្នើម្ដងទៀត",
|
|
1518
|
+
"inlineFreebie.freeSample.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1519
|
+
"inlineFreebie.luckyDrawGift.title": "សំបុត្រស្រង់ពិន័យ",
|
|
1520
|
+
"inlineFreebie.value": "តម្លៃ",
|
|
1507
1521
|
"common.day": "ឆ្នាំ",
|
|
1508
1522
|
"common.month": "ខែ",
|
|
1509
1523
|
"common.year": "ថ្ងៃ"
|
|
@@ -1529,6 +1543,9 @@ var msMY = {
|
|
|
1529
1543
|
"lead.empty.title": "Oops, nampaknya maklumat anda kosong. Adakah anda ingin menghantar maklumat semula?",
|
|
1530
1544
|
"lead.empty.cancel": "Batal",
|
|
1531
1545
|
"lead.empty.submitAgain": "Hantar semula",
|
|
1546
|
+
"inlineFreebie.freeSample.title": "Sampel Percuma",
|
|
1547
|
+
"inlineFreebie.luckyDrawGift.title": "Hadiah Undian",
|
|
1548
|
+
"inlineFreebie.value": "Nilai",
|
|
1532
1549
|
"common.day": "Hari",
|
|
1533
1550
|
"common.month": "Bulan",
|
|
1534
1551
|
"common.year": "Tahun"
|
|
@@ -1554,6 +1571,9 @@ var myMM = {
|
|
|
1554
1571
|
"lead.empty.title": "အုပ်စ်! သင့်အချက်အလက်သည် ဗလာဖြစ်နေသလိုဖြစ်သည်။ ထပ်မံတင်သွင်းလိုပါသလား?",
|
|
1555
1572
|
"lead.empty.cancel": "မလုပ်ဆောင်ပါ",
|
|
1556
1573
|
"lead.empty.submitAgain": "ထပ်မံတင်သွင်းပါ",
|
|
1574
|
+
"inlineFreebie.freeSample.title": "အခမဲ့အစားအစာ",
|
|
1575
|
+
"inlineFreebie.luckyDrawGift.title": "အခမဲ့အစားအစာ",
|
|
1576
|
+
"inlineFreebie.value": "တန်ဖိုး",
|
|
1557
1577
|
"common.day": "ရက်",
|
|
1558
1578
|
"common.month": "လ",
|
|
1559
1579
|
"common.year": "နှစ်"
|
|
@@ -1579,6 +1599,9 @@ var thTH = {
|
|
|
1579
1599
|
"lead.empty.title": "อุ๊ปส์! ดูเหมือนว่าข้อมูลของคุณว่างเปล่า คุณต้องการส่งข้อมูลอีกครั้งหรือไม่?",
|
|
1580
1600
|
"lead.empty.cancel": "ยกเลิก",
|
|
1581
1601
|
"lead.empty.submitAgain": "ส่งอีกครั้ง",
|
|
1602
|
+
"inlineFreebie.freeSample.title": "ตัวอย่างฟรี",
|
|
1603
|
+
"inlineFreebie.luckyDrawGift.title": "ของรางวัลที่ถูกรางวัล",
|
|
1604
|
+
"inlineFreebie.value": "ค่า",
|
|
1582
1605
|
"common.day": "วัน",
|
|
1583
1606
|
"common.month": "เดือน",
|
|
1584
1607
|
"common.year": "ปี"
|
|
@@ -1615,6 +1638,9 @@ var viVN = {
|
|
|
1615
1638
|
"lead.empty.title": "Oops, có vẻ như thông tin của bạn đang trống. Bạn có muốn gửi lại thông tin không?",
|
|
1616
1639
|
"lead.empty.cancel": "Hủy",
|
|
1617
1640
|
"lead.empty.submitAgain": "Gửi lại",
|
|
1641
|
+
"inlineFreebie.freeSample.title": "Dùng thử miễn phí",
|
|
1642
|
+
"inlineFreebie.luckyDrawGift.title": "Phần thưởng may mắn",
|
|
1643
|
+
"inlineFreebie.value": "Trị giá",
|
|
1618
1644
|
"common.day": "Ngày",
|
|
1619
1645
|
"common.month": "Tháng",
|
|
1620
1646
|
"common.year": "Năm"
|
|
@@ -1640,6 +1666,9 @@ var zhTW = {
|
|
|
1640
1666
|
"lead.empty.title": "哎呀,您的資訊似乎是空的,您想要重新提交資訊嗎?",
|
|
1641
1667
|
"lead.empty.cancel": "取消",
|
|
1642
1668
|
"lead.empty.submitAgain": "重新提交",
|
|
1669
|
+
"inlineFreebie.freeSample.title": "免費試用",
|
|
1670
|
+
"inlineFreebie.luckyDrawGift.title": "幸運抽獎禮品",
|
|
1671
|
+
"inlineFreebie.value": "價值",
|
|
1643
1672
|
"common.day": "日",
|
|
1644
1673
|
"common.month": "月",
|
|
1645
1674
|
"common.year": "年"
|
|
@@ -3297,26 +3326,6 @@ const FloatingLayout = ({ popupId, url, title, urlText, titleAlign, subtitle, su
|
|
|
3297
3326
|
React__default["default"].createElement(CloseButton, { onClose: onClose, containerClassName: "close-button-top-right" }))))));
|
|
3298
3327
|
};
|
|
3299
3328
|
|
|
3300
|
-
function isMac() {
|
|
3301
|
-
return testPlatform(/^Mac/);
|
|
3302
|
-
}
|
|
3303
|
-
function isIPhone() {
|
|
3304
|
-
return testPlatform(/^iPhone/);
|
|
3305
|
-
}
|
|
3306
|
-
function isIPad() {
|
|
3307
|
-
return (testPlatform(/^iPad/) ||
|
|
3308
|
-
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
3309
|
-
(isMac() && navigator.maxTouchPoints > 1));
|
|
3310
|
-
}
|
|
3311
|
-
function isIOS() {
|
|
3312
|
-
return isIPhone() || isIPad();
|
|
3313
|
-
}
|
|
3314
|
-
function testPlatform(re) {
|
|
3315
|
-
return typeof window !== 'undefined' && window.navigator != null
|
|
3316
|
-
? re.test(window.navigator.platform)
|
|
3317
|
-
: undefined;
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
3329
|
function useScrollTo() {
|
|
3321
3330
|
const scrollTo = React.useCallback((element, to, duration = 500) => {
|
|
3322
3331
|
if (!element)
|
|
@@ -3340,6 +3349,35 @@ function useScrollTo() {
|
|
|
3340
3349
|
return scrollTo;
|
|
3341
3350
|
}
|
|
3342
3351
|
|
|
3352
|
+
const useViewportDimensions = () => {
|
|
3353
|
+
const dimensionsRef = React.useRef({ width: 0, height: 0 });
|
|
3354
|
+
const [dimensions, setDimensions] = React.useState(() => ({
|
|
3355
|
+
width: window.screen.availWidth,
|
|
3356
|
+
height: window.screen.availHeight,
|
|
3357
|
+
}));
|
|
3358
|
+
React.useEffect(() => {
|
|
3359
|
+
var _a;
|
|
3360
|
+
function visualViewport(e) {
|
|
3361
|
+
if (dimensionsRef.current.width === e.target.width &&
|
|
3362
|
+
dimensionsRef.current.height === e.target.height) {
|
|
3363
|
+
return;
|
|
3364
|
+
}
|
|
3365
|
+
const newDimensions = {
|
|
3366
|
+
width: e.target.width,
|
|
3367
|
+
height: e.target.height,
|
|
3368
|
+
};
|
|
3369
|
+
dimensionsRef.current = newDimensions;
|
|
3370
|
+
setDimensions(newDimensions);
|
|
3371
|
+
}
|
|
3372
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3373
|
+
return () => {
|
|
3374
|
+
var _a;
|
|
3375
|
+
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3376
|
+
};
|
|
3377
|
+
}, []);
|
|
3378
|
+
return React.useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3379
|
+
};
|
|
3380
|
+
|
|
3343
3381
|
// Default handling for Safari & Chrome
|
|
3344
3382
|
function useViewportPushedByKeyboard(threshold = 20) {
|
|
3345
3383
|
const ref = React.useRef(null);
|
|
@@ -3384,102 +3422,25 @@ function useKeyboardOpen(isAndroid = false) {
|
|
|
3384
3422
|
return keyOpen;
|
|
3385
3423
|
}
|
|
3386
3424
|
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
el.blur();
|
|
3407
|
-
}
|
|
3408
|
-
});
|
|
3409
|
-
}
|
|
3410
|
-
};
|
|
3411
|
-
const handleFocus = (e) => {
|
|
3412
|
-
if (!isMobile || !isIos || !isEnable)
|
|
3413
|
-
return;
|
|
3414
|
-
setTimeout(() => {
|
|
3415
|
-
var _a, _b;
|
|
3416
|
-
if (!isPushedRef.current &&
|
|
3417
|
-
keyOpenRef.current &&
|
|
3418
|
-
popupContentRef.current) {
|
|
3419
|
-
const input = e.target;
|
|
3420
|
-
const rect = input.getBoundingClientRect();
|
|
3421
|
-
const inputHeight = rect.height;
|
|
3422
|
-
const inputTop = rect.top;
|
|
3423
|
-
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3424
|
-
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
3425
|
-
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
3426
|
-
const currentScrollY = popupContentRef.current.scrollTop;
|
|
3427
|
-
const viewPort = (isErrorDevice
|
|
3428
|
-
? window.innerHeight * 0.4
|
|
3429
|
-
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height) - gapToCheckAvai;
|
|
3430
|
-
if (currentTop >= viewPort) {
|
|
3431
|
-
const gap = currentTop - viewPort;
|
|
3432
|
-
const targetScrollY = currentScrollY + gap;
|
|
3433
|
-
if (!isNaN(targetScrollY)) {
|
|
3434
|
-
setIsScrolling(true);
|
|
3435
|
-
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
3436
|
-
setTimeout(() => {
|
|
3437
|
-
setIsScrolling(false);
|
|
3438
|
-
}, 500);
|
|
3439
|
-
}
|
|
3440
|
-
}
|
|
3441
|
-
}
|
|
3442
|
-
}, 300);
|
|
3443
|
-
};
|
|
3444
|
-
React.useEffect(() => {
|
|
3445
|
-
initialHeight.current = window.innerHeight;
|
|
3446
|
-
}, []);
|
|
3447
|
-
React.useEffect(() => {
|
|
3448
|
-
isPushedRef.current = isPushed;
|
|
3449
|
-
}, [isPushed]);
|
|
3450
|
-
React.useEffect(() => {
|
|
3451
|
-
keyOpenRef.current = keyOpen;
|
|
3452
|
-
}, [keyOpen]);
|
|
3453
|
-
React.useEffect(() => {
|
|
3454
|
-
bottomSpacingRef.current = bottomSpacing;
|
|
3455
|
-
}, [bottomSpacing]);
|
|
3456
|
-
React.useEffect(() => {
|
|
3457
|
-
setBottomSpacing(isMobile && isIos && isEnable
|
|
3458
|
-
? !isPushed && keyOpen
|
|
3459
|
-
? (() => {
|
|
3460
|
-
var _a;
|
|
3461
|
-
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
3462
|
-
const isErrorDevice = visualHeight === initialHeight.current;
|
|
3463
|
-
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
3464
|
-
})()
|
|
3465
|
-
: 0
|
|
3466
|
-
: 0);
|
|
3467
|
-
}, [isPushed, keyOpen, isMobile, isIos, isEnable]);
|
|
3468
|
-
React.useEffect(() => {
|
|
3469
|
-
isScrollingRef.current = isScrolling;
|
|
3470
|
-
}, [isScrolling]);
|
|
3471
|
-
return {
|
|
3472
|
-
popupContentRef,
|
|
3473
|
-
bottomRef,
|
|
3474
|
-
bottomStyle: {
|
|
3475
|
-
height: `${bottomSpacing}px`,
|
|
3476
|
-
width: '100%',
|
|
3477
|
-
transition: 'height .2s ease',
|
|
3478
|
-
},
|
|
3479
|
-
handleFocus,
|
|
3480
|
-
handlePopupContentScroll,
|
|
3481
|
-
};
|
|
3482
|
-
};
|
|
3425
|
+
function isMac() {
|
|
3426
|
+
return testPlatform(/^Mac/);
|
|
3427
|
+
}
|
|
3428
|
+
function isIPhone() {
|
|
3429
|
+
return testPlatform(/^iPhone/);
|
|
3430
|
+
}
|
|
3431
|
+
function isIPad() {
|
|
3432
|
+
return (testPlatform(/^iPad/) ||
|
|
3433
|
+
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
3434
|
+
(isMac() && navigator.maxTouchPoints > 1));
|
|
3435
|
+
}
|
|
3436
|
+
function isIOS() {
|
|
3437
|
+
return isIPhone() || isIPad();
|
|
3438
|
+
}
|
|
3439
|
+
function testPlatform(re) {
|
|
3440
|
+
return typeof window !== 'undefined' && window.navigator != null
|
|
3441
|
+
? re.test(window.navigator.platform)
|
|
3442
|
+
: undefined;
|
|
3443
|
+
}
|
|
3483
3444
|
|
|
3484
3445
|
function chain(...callbacks) {
|
|
3485
3446
|
return (...args) => {
|
|
@@ -3736,35 +3697,6 @@ function isInput(target) {
|
|
|
3736
3697
|
(target instanceof HTMLElement && target.isContentEditable));
|
|
3737
3698
|
}
|
|
3738
3699
|
|
|
3739
|
-
const useViewportDimensions = () => {
|
|
3740
|
-
const dimensionsRef = React.useRef({ width: 0, height: 0 });
|
|
3741
|
-
const [dimensions, setDimensions] = React.useState(() => ({
|
|
3742
|
-
width: window.screen.availWidth,
|
|
3743
|
-
height: window.screen.availHeight,
|
|
3744
|
-
}));
|
|
3745
|
-
React.useEffect(() => {
|
|
3746
|
-
var _a;
|
|
3747
|
-
function visualViewport(e) {
|
|
3748
|
-
if (dimensionsRef.current.width === e.target.width &&
|
|
3749
|
-
dimensionsRef.current.height === e.target.height) {
|
|
3750
|
-
return;
|
|
3751
|
-
}
|
|
3752
|
-
const newDimensions = {
|
|
3753
|
-
width: e.target.width,
|
|
3754
|
-
height: e.target.height,
|
|
3755
|
-
};
|
|
3756
|
-
dimensionsRef.current = newDimensions;
|
|
3757
|
-
setDimensions(newDimensions);
|
|
3758
|
-
}
|
|
3759
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', visualViewport);
|
|
3760
|
-
return () => {
|
|
3761
|
-
var _a;
|
|
3762
|
-
(_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', visualViewport);
|
|
3763
|
-
};
|
|
3764
|
-
}, []);
|
|
3765
|
-
return React.useMemo(() => (Object.assign({}, dimensions)), [dimensions.height, dimensions.width]);
|
|
3766
|
-
};
|
|
3767
|
-
|
|
3768
3700
|
const StyledLeadGenLightBoxBFooter = styled__default["default"].div `
|
|
3769
3701
|
padding-top: calc(var(--spacing-y, 20px) * 8 / 20);
|
|
3770
3702
|
padding-inline: var(--spacing-x, 20px);
|
|
@@ -4395,7 +4327,7 @@ const StyledFormContainer = styled__default["default"].div `
|
|
|
4395
4327
|
*
|
|
4396
4328
|
*/
|
|
4397
4329
|
const FormContainer = (_a) => {
|
|
4398
|
-
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer
|
|
4330
|
+
var { iconComponent, title, titleAlign, description, descriptionAlign, className, style, children, header, footer } = _a, restProps = tslib_es6.__rest(_a, ["iconComponent", "title", "titleAlign", "description", "descriptionAlign", "className", "style", "children", "header", "footer"]);
|
|
4399
4331
|
const HeaderContent = (React__default["default"].createElement("div", { className: "leadgen-form_header" },
|
|
4400
4332
|
iconComponent,
|
|
4401
4333
|
React__default["default"].createElement(index$2.Text, { as: "h2", size: 'h4', variant: "primary", weight: 'semiBold', className: "leadgen-title", "data-align": titleAlign }, title),
|
|
@@ -4405,13 +4337,13 @@ const FormContainer = (_a) => {
|
|
|
4405
4337
|
}
|
|
4406
4338
|
return (React__default["default"].createElement(StyledFormContainer, Object.assign({ className: core.clsx(className, 'leadgen-form_container'), style: style }, restProps),
|
|
4407
4339
|
React__default["default"].createElement("div", { className: "leadgen-form_wrapper" },
|
|
4408
|
-
header
|
|
4340
|
+
!!header && (React__default["default"].createElement("div", { className: "leadgen-form_scrollable" },
|
|
4409
4341
|
header,
|
|
4410
4342
|
HeaderContent,
|
|
4411
|
-
React__default["default"].createElement("div", { className: "leadgen-form_body" }, children),
|
|
4412
|
-
|
|
4343
|
+
React__default["default"].createElement("div", { className: "leadgen-form_body" }, children))),
|
|
4344
|
+
!header && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
4413
4345
|
HeaderContent,
|
|
4414
|
-
React__default["default"].createElement("div", { className: "leadgen-form_body"
|
|
4346
|
+
React__default["default"].createElement("div", { className: "leadgen-form_body" }, children))),
|
|
4415
4347
|
React__default["default"].createElement("div", { className: "leadgen-form_footer" }, footer))));
|
|
4416
4348
|
};
|
|
4417
4349
|
|
|
@@ -4565,6 +4497,215 @@ const OtpBlock = ({ otpData, onSuccess, autoSendWhenOpen, }) => {
|
|
|
4565
4497
|
} }))))));
|
|
4566
4498
|
};
|
|
4567
4499
|
|
|
4500
|
+
const Gift = ({ className, style }) => {
|
|
4501
|
+
return (React__default["default"].createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
4502
|
+
React__default["default"].createElement("path", { d: "M15.8337 9.16675V15.8334C15.8337 17.0612 14.8392 18.0556 13.6114 18.0556H6.38921C5.16144 18.0556 4.16699 17.0612 4.16699 15.8334V9.16675", fill: "#FEC7DC" }),
|
|
4503
|
+
React__default["default"].createElement("path", { d: "M10 5.83337V18.0556", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4504
|
+
React__default["default"].createElement("path", { d: "M4.16699 3.8889C4.16699 2.81557 5.0381 1.94446 6.11144 1.94446C8.9881 1.94446 10.0003 5.83335 10.0003 5.83335H6.11144C5.0381 5.83335 4.16699 4.96224 4.16699 3.8889Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4505
|
+
React__default["default"].createElement("path", { d: "M13.8889 5.83335H10C10 5.83335 11.0122 1.94446 13.8889 1.94446C14.9622 1.94446 15.8333 2.81557 15.8333 3.8889C15.8333 4.96224 14.9622 5.83335 13.8889 5.83335Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4506
|
+
React__default["default"].createElement("path", { d: "M15.8337 9.16675V15.8334C15.8337 17.0612 14.8392 18.0556 13.6114 18.0556H6.38921C5.16144 18.0556 4.16699 17.0612 4.16699 15.8334V9.16675", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4507
|
+
React__default["default"].createElement("path", { d: "M16.9443 5.83337H3.05545C2.4418 5.83337 1.94434 6.33084 1.94434 6.94449V8.0556C1.94434 8.66924 2.4418 9.16671 3.05545 9.16671H16.9443C17.558 9.16671 18.0554 8.66924 18.0554 8.0556V6.94449C18.0554 6.33084 17.558 5.83337 16.9443 5.83337Z", stroke: "#FC488D", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
4508
|
+
};
|
|
4509
|
+
|
|
4510
|
+
const Star = ({ className, style }) => {
|
|
4511
|
+
return (React__default["default"].createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
|
|
4512
|
+
React__default["default"].createElement("path", { d: "M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z", fill: "#91CAFF" }),
|
|
4513
|
+
React__default["default"].createElement("path", { d: "M7.76093 1.94434L11.8267 4.92811L16.5893 3.27134L15.0077 8.05978L18.0553 12.0772L13.0127 12.0526L10.1339 16.1928L8.59882 11.3896L3.77148 9.93078L7.86504 6.98645L7.76093 1.94434Z", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4514
|
+
React__default["default"].createElement("path", { d: "M2.22168 17.7777L5.55501 14.4443", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4515
|
+
React__default["default"].createElement("path", { d: "M1.94434 13.611L2.49989 13.0554", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
4516
|
+
React__default["default"].createElement("path", { d: "M6.38867 18.0556L6.94423 17.5", stroke: "#2D87F3", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
4517
|
+
};
|
|
4518
|
+
|
|
4519
|
+
const StyledFreebieCarouselTitle = styled__default["default"].div `
|
|
4520
|
+
display: flex;
|
|
4521
|
+
align-items: center;
|
|
4522
|
+
gap: ${core.rem(8)};
|
|
4523
|
+
margin-bottom: ${core.rem(16)};
|
|
4524
|
+
`;
|
|
4525
|
+
var useStyles = core.createStyles((theme) => ({
|
|
4526
|
+
indicators: {
|
|
4527
|
+
bottom: 0,
|
|
4528
|
+
gap: core.rem(4),
|
|
4529
|
+
},
|
|
4530
|
+
indicator: {
|
|
4531
|
+
width: core.rem(5),
|
|
4532
|
+
height: core.rem(5),
|
|
4533
|
+
borderRadius: '100%',
|
|
4534
|
+
background: theme.colors.neutral[2],
|
|
4535
|
+
opacity: 1,
|
|
4536
|
+
'&[data-active]': {
|
|
4537
|
+
backgroundColor: theme.fn.primaryColor(),
|
|
4538
|
+
},
|
|
4539
|
+
},
|
|
4540
|
+
container: {
|
|
4541
|
+
padding: `0 0 ${core.rem(21)} 0`,
|
|
4542
|
+
},
|
|
4543
|
+
root: {
|
|
4544
|
+
marginBottom: core.rem(16),
|
|
4545
|
+
},
|
|
4546
|
+
}));
|
|
4547
|
+
|
|
4548
|
+
const StyledFreebiesCard = styled__default["default"].div `
|
|
4549
|
+
display: flex;
|
|
4550
|
+
flex-direction: column;
|
|
4551
|
+
border-radius: ${core.rem(16)};
|
|
4552
|
+
box-shadow: 0px 32px 32px -16px rgba(0, 0, 0, 0.04),
|
|
4553
|
+
0px 6px 6px -3px rgba(0, 0, 0, 0.04), 0px 3px 3px -1.5px rgba(0, 0, 0, 0.04),
|
|
4554
|
+
0px 1px 1px -0.5px rgba(0, 0, 0, 0.04);
|
|
4555
|
+
background-color: ${miscTheme.theme.colors.white};
|
|
4556
|
+
|
|
4557
|
+
.mantine-AspectRatio-root {
|
|
4558
|
+
width: 100%;
|
|
4559
|
+
|
|
4560
|
+
img {
|
|
4561
|
+
border-radius: ${core.rem(16)} ${core.rem(16)} 0 0;
|
|
4562
|
+
margin: 0;
|
|
4563
|
+
}
|
|
4564
|
+
}
|
|
4565
|
+
|
|
4566
|
+
.mantine-Badge-root {
|
|
4567
|
+
height: fit-content;
|
|
4568
|
+
width: fit-content;
|
|
4569
|
+
position: absolute;
|
|
4570
|
+
padding: ${core.rem(4)} ${core.rem(8)};
|
|
4571
|
+
border-radius: ${core.rem(8)};
|
|
4572
|
+
bottom: ${core.rem(12)};
|
|
4573
|
+
left: ${core.rem(12)};
|
|
4574
|
+
|
|
4575
|
+
.mantine-Text-root {
|
|
4576
|
+
line-height: ${core.rem(12)};
|
|
4577
|
+
}
|
|
4578
|
+
|
|
4579
|
+
background-color: #00000080;
|
|
4580
|
+
}
|
|
4581
|
+
`;
|
|
4582
|
+
const StyledImageWrap = styled__default["default"].div `
|
|
4583
|
+
width: 100%;
|
|
4584
|
+
height: 100%;
|
|
4585
|
+
position: relative;
|
|
4586
|
+
`;
|
|
4587
|
+
|
|
4588
|
+
const FreebieLuckyGiftItem = ({ isHostedByClient, locale, data: { image, name, desc, prize_value, prize_unit, cta_button, winning_slot, }, }) => {
|
|
4589
|
+
const { t } = index$1.useTranslations();
|
|
4590
|
+
console.log(prize_value, prize_unit, locale);
|
|
4591
|
+
const formattedPrice = prize_value && prize_unit
|
|
4592
|
+
? utils$2.currencyFormat(prize_value, locale, prize_unit)
|
|
4593
|
+
: '';
|
|
4594
|
+
return (React__default["default"].createElement(StyledFreebiesCard, null,
|
|
4595
|
+
React__default["default"].createElement(StyledImageWrap, null,
|
|
4596
|
+
React__default["default"].createElement(core.AspectRatio, { ratio: 3 / 2 },
|
|
4597
|
+
React__default["default"].createElement(index$c.ImageWrap, { src: image, alt: name || '' })),
|
|
4598
|
+
winning_slot > 0 && (React__default["default"].createElement(core.Badge, null,
|
|
4599
|
+
React__default["default"].createElement(index$2.Text, { size: "c2", color: miscTheme.theme.colors.white },
|
|
4600
|
+
winning_slot,
|
|
4601
|
+
" SLOTS")))),
|
|
4602
|
+
React__default["default"].createElement(core.Box, { p: "12px" },
|
|
4603
|
+
React__default["default"].createElement(core.Tooltip, { label: name, position: "top", withArrow: true },
|
|
4604
|
+
React__default["default"].createElement(index$2.Text, { lineClamp: 2, size: "title2", mb: core.rem(4), style: { height: core.rem(48) } }, name)),
|
|
4605
|
+
React__default["default"].createElement(core.Tooltip, { label: desc, position: "top", withArrow: true },
|
|
4606
|
+
React__default["default"].createElement(index$2.Text, { lineClamp: 2, size: "p3", mb: core.rem(16), style: { height: core.rem(40) } }, desc)),
|
|
4607
|
+
React__default["default"].createElement(index$2.Text, { size: "p3", fw: 500 },
|
|
4608
|
+
React__default["default"].createElement(index$2.Text, { as: "span" },
|
|
4609
|
+
t('inlineFreebie.value'),
|
|
4610
|
+
" "),
|
|
4611
|
+
React__default["default"].createElement(index$2.Text, { as: "span", color: miscTheme.theme.colors.primaryBase }, formattedPrice)),
|
|
4612
|
+
isHostedByClient && (React__default["default"].createElement(index$4.Button, { className: "inline-freebie-button" },
|
|
4613
|
+
React__default["default"].createElement(index$2.Text, { size: "p2" }, cta_button))))));
|
|
4614
|
+
};
|
|
4615
|
+
const FreebieFreeSampleItem = ({ data: { image, name, desc, cta_button }, }) => (React__default["default"].createElement(StyledFreebiesCard, null,
|
|
4616
|
+
React__default["default"].createElement(core.AspectRatio, { ratio: 3 / 2 },
|
|
4617
|
+
React__default["default"].createElement(index$c.ImageWrap, { src: image, alt: name || '' })),
|
|
4618
|
+
React__default["default"].createElement(core.Box, { p: "12px" },
|
|
4619
|
+
React__default["default"].createElement(core.Tooltip, { label: name, position: "top", withArrow: true },
|
|
4620
|
+
React__default["default"].createElement(index$2.Text, { lineClamp: 2, size: "title2", mb: core.rem(4), style: { height: core.rem(48) } }, name)),
|
|
4621
|
+
React__default["default"].createElement(core.Tooltip, { label: desc, position: "top", withArrow: true },
|
|
4622
|
+
React__default["default"].createElement(index$2.Text, { lineClamp: 3, size: "p3", style: { height: core.rem(60) } }, desc)),
|
|
4623
|
+
React__default["default"].createElement(index$4.Button, { className: "lucky-gift-button inline-freebie-button" },
|
|
4624
|
+
React__default["default"].createElement(index$2.Text, { size: "p2" }, cta_button)))));
|
|
4625
|
+
|
|
4626
|
+
var EHostedBy;
|
|
4627
|
+
(function (EHostedBy) {
|
|
4628
|
+
EHostedBy["CLIENT"] = "CLIENT";
|
|
4629
|
+
EHostedBy["HHG"] = "HHG";
|
|
4630
|
+
})(EHostedBy || (EHostedBy = {}));
|
|
4631
|
+
var EFreebieType;
|
|
4632
|
+
(function (EFreebieType) {
|
|
4633
|
+
EFreebieType["SAMPLE"] = "SAMPLE";
|
|
4634
|
+
EFreebieType["LUCKY_DRAW"] = "LUCKY_DRAW";
|
|
4635
|
+
})(EFreebieType || (EFreebieType = {}));
|
|
4636
|
+
|
|
4637
|
+
const FreebieCarousel = ({ isHostedByClient, data, locale, }) => {
|
|
4638
|
+
const { classes } = useStyles(undefined, {
|
|
4639
|
+
name: 'Carousel',
|
|
4640
|
+
});
|
|
4641
|
+
const { t } = index$1.useTranslations();
|
|
4642
|
+
const freeSample = data.filter((item) => item.type === EFreebieType.SAMPLE);
|
|
4643
|
+
const luckyGift = data.filter((item) => item.type === EFreebieType.LUCKY_DRAW);
|
|
4644
|
+
const isHasLuckyGift = luckyGift.length > 0;
|
|
4645
|
+
const isHasFreeSample = freeSample.length > 0;
|
|
4646
|
+
const isHasLuckyGiftMoreThanOne = luckyGift.length > 1;
|
|
4647
|
+
const isHasFreeSampleMoreThanOne = freeSample.length > 1;
|
|
4648
|
+
const luckyGiftCtaButton = luckyGift[0].cta_button;
|
|
4649
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
4650
|
+
isHasLuckyGift && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
4651
|
+
React__default["default"].createElement(StyledFreebieCarouselTitle, null,
|
|
4652
|
+
React__default["default"].createElement(Gift, null),
|
|
4653
|
+
React__default["default"].createElement(index$2.Text, { size: "title2", color: miscTheme.theme.colors.pink800 }, t('inlineFreebie.freeSample.title'))),
|
|
4654
|
+
React__default["default"].createElement(carousel.Carousel, { slideSize: isHasFreeSampleMoreThanOne ? core.rem(262) : core.rem(355), slideGap: core.rem(12), align: "start", withControls: false, withIndicators: isHasFreeSampleMoreThanOne, classNames: Object.assign({}, classes) }, freeSample.map((item) => (React__default["default"].createElement(carousel.Carousel.Slide, { key: `${item.type}-${item.product_code}` },
|
|
4655
|
+
React__default["default"].createElement(FreebieFreeSampleItem, { data: item }))))))),
|
|
4656
|
+
isHasFreeSample && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
4657
|
+
React__default["default"].createElement(StyledFreebieCarouselTitle, null,
|
|
4658
|
+
React__default["default"].createElement(Star, null),
|
|
4659
|
+
React__default["default"].createElement(index$2.Text, { size: "title2", color: miscTheme.theme.colors.primaryBase }, t('inlineFreebie.luckyDrawGift.title'))),
|
|
4660
|
+
React__default["default"].createElement(carousel.Carousel, { slideSize: isHasLuckyGiftMoreThanOne ? core.rem(262) : core.rem(355), slideGap: core.rem(12), align: "start", withControls: false, withIndicators: isHasLuckyGiftMoreThanOne, classNames: Object.assign({}, classes) }, luckyGift.map((item) => (React__default["default"].createElement(carousel.Carousel.Slide, { key: `${item.type}-${item.product_code}` },
|
|
4661
|
+
React__default["default"].createElement(FreebieLuckyGiftItem, { isHostedByClient: isHostedByClient, data: item, locale: locale }))))),
|
|
4662
|
+
!isHostedByClient && (React__default["default"].createElement(index$4.Button, { className: "inline-freebie-button" },
|
|
4663
|
+
React__default["default"].createElement(index$2.Text, { size: "p2" }, luckyGiftCtaButton)))))));
|
|
4664
|
+
};
|
|
4665
|
+
|
|
4666
|
+
const StyledBox = styled__default["default"].div `
|
|
4667
|
+
margin-bottom: ${core.rem(4)};
|
|
4668
|
+
`;
|
|
4669
|
+
const StyledTitle = styled__default["default"](index$2.Text) `
|
|
4670
|
+
margin-bottom: ${core.rem(16)};
|
|
4671
|
+
`;
|
|
4672
|
+
const StyledBrandImage = styled__default["default"].img `
|
|
4673
|
+
height: ${core.rem(32)};
|
|
4674
|
+
width: auto;
|
|
4675
|
+
`;
|
|
4676
|
+
const StyledInlineFreebieContainer = styled__default["default"].div `
|
|
4677
|
+
padding: ${core.rem(16)};
|
|
4678
|
+
background-color: ${miscTheme.theme.colors.neutral50};
|
|
4679
|
+
|
|
4680
|
+
.inline-freebie-button {
|
|
4681
|
+
width: 100%;
|
|
4682
|
+
margin-top: ${core.rem(12)};
|
|
4683
|
+
|
|
4684
|
+
.mantine-Text-root {
|
|
4685
|
+
color: ${miscTheme.theme.colors.white};
|
|
4686
|
+
font-weight: 600;
|
|
4687
|
+
}
|
|
4688
|
+
|
|
4689
|
+
&.lucky-gift-button {
|
|
4690
|
+
background-color: ${miscTheme.theme.colors.pink800};
|
|
4691
|
+
|
|
4692
|
+
&:hover {
|
|
4693
|
+
background-color: ${miscTheme.theme.colors.pink700};
|
|
4694
|
+
}
|
|
4695
|
+
}
|
|
4696
|
+
}
|
|
4697
|
+
`;
|
|
4698
|
+
|
|
4699
|
+
const InlineFreebie = ({ campaign, locale, }) => {
|
|
4700
|
+
const { hosted_by, brand_image, widget_title, data_freebies } = campaign;
|
|
4701
|
+
const isHostedByClient = hosted_by === 'CLIENT';
|
|
4702
|
+
return (React__default["default"].createElement(StyledInlineFreebieContainer, null,
|
|
4703
|
+
React__default["default"].createElement(StyledBox, null,
|
|
4704
|
+
React__default["default"].createElement(StyledBrandImage, { src: brand_image, alt: widget_title || '', loading: "lazy", style: { height: '32px', width: 'auto' } })),
|
|
4705
|
+
React__default["default"].createElement(StyledTitle, { size: "title1" }, widget_title || ''),
|
|
4706
|
+
React__default["default"].createElement(FreebieCarousel, { isHostedByClient: isHostedByClient, data: data_freebies, locale: locale })));
|
|
4707
|
+
};
|
|
4708
|
+
|
|
4568
4709
|
// url: imageBlocks.imageMobile.data.url
|
|
4569
4710
|
// newTab: imageBlocks.imageMobile.data.newtab
|
|
4570
4711
|
// image: campaignShow.image
|
|
@@ -4582,7 +4723,7 @@ const LEADGEN_SHOW_HEADER = [
|
|
|
4582
4723
|
];
|
|
4583
4724
|
// const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39', 'u0adw7hw8kw7t89']
|
|
4584
4725
|
const CAMPAGE_CODE_LIST_APPLY_NEW_UI = ['ri3lkoxcetjoj39'];
|
|
4585
|
-
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, }) => {
|
|
4726
|
+
const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSubmit, imageMobile, imageDesktop, imageOverlayMobile, imageOverlayDesktop, imageBackground, currentLayout, title, onSubmit, onUnmount, doImpression, showThankyou, campaignId, campaignCode, campaign_subot_id, locale, showEmpty, setShowEmpty, userInfo, action, campaign, }) => {
|
|
4586
4727
|
var _a, _b;
|
|
4587
4728
|
const { primaryColor } = React.useContext(LeadGenContext$1);
|
|
4588
4729
|
const { isMobile } = index$c.useScreenSize();
|
|
@@ -4607,6 +4748,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4607
4748
|
});
|
|
4608
4749
|
}
|
|
4609
4750
|
};
|
|
4751
|
+
const { height } = useViewportDimensions();
|
|
4610
4752
|
// usePreventScroll()
|
|
4611
4753
|
const formActiveTime = React.useRef(0);
|
|
4612
4754
|
const textBlocks = JSON.parse(extraFields.textBlocks);
|
|
@@ -4621,7 +4763,8 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4621
4763
|
const isLightBox = currentLayout.includes('LightBox');
|
|
4622
4764
|
const isLightBoxA = currentLayout === LEADGEN_LAYOUT.LightBoxA;
|
|
4623
4765
|
const isLightBoxB = currentLayout === LEADGEN_LAYOUT.LightBoxB;
|
|
4624
|
-
const isInline = currentLayout.includes('Inline');
|
|
4766
|
+
const isInline = currentLayout.includes('Inline') || currentLayout.includes('Freebie');
|
|
4767
|
+
const isFreebie = currentLayout.includes('Freebie');
|
|
4625
4768
|
const isFullscreen = currentLayout === LEADGEN_LAYOUT.Fullscreen;
|
|
4626
4769
|
const isInPage = isInline || isSidebar;
|
|
4627
4770
|
const isDrawer = isLightBoxB && isMobile;
|
|
@@ -4645,7 +4788,19 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4645
4788
|
userInfo,
|
|
4646
4789
|
format: (_a = (index$7.ISO_FORMAT[locale] || index$7.ISO_FORMAT['vi-VN'])) === null || _a === void 0 ? void 0 : _a.dateFormat,
|
|
4647
4790
|
});
|
|
4648
|
-
const
|
|
4791
|
+
const popupContentRef = React.useRef(null);
|
|
4792
|
+
const isIos = isIOS();
|
|
4793
|
+
const keyOpen = useKeyboardOpen();
|
|
4794
|
+
const { isPushed, bottomRef } = useViewportPushedByKeyboard();
|
|
4795
|
+
const [bottomSpacing, setBottomSpacing] = React.useState(0);
|
|
4796
|
+
const bottomSpacingRef = React.useRef(bottomSpacing);
|
|
4797
|
+
const isPushedRef = React.useRef(isPushed);
|
|
4798
|
+
const keyOpenRef = React.useRef(keyOpen);
|
|
4799
|
+
const [isScrolling, setIsScrolling] = React.useState(false);
|
|
4800
|
+
const isScrollingRef = React.useRef(false);
|
|
4801
|
+
const gapBottomSpace = React.useRef(40);
|
|
4802
|
+
const initialHeight = React.useRef(0);
|
|
4803
|
+
const scrollTo = useScrollTo();
|
|
4649
4804
|
const handleDoImpression = React.useCallback((type = 'impression') => doImpression({
|
|
4650
4805
|
formValues: form.values,
|
|
4651
4806
|
formActiveTime: formActiveTime.current,
|
|
@@ -4659,6 +4814,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4659
4814
|
return null;
|
|
4660
4815
|
}
|
|
4661
4816
|
React.useEffect(() => {
|
|
4817
|
+
initialHeight.current = window.innerHeight;
|
|
4662
4818
|
(isLightBox || isSlider) && handleDoImpression();
|
|
4663
4819
|
if (isLightBox || isFullscreen) {
|
|
4664
4820
|
document.body.classList.add('noscroll');
|
|
@@ -4668,6 +4824,18 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4668
4824
|
}
|
|
4669
4825
|
clearCacheUsedEmailOrPhone();
|
|
4670
4826
|
}, []);
|
|
4827
|
+
React.useEffect(() => {
|
|
4828
|
+
isPushedRef.current = isPushed;
|
|
4829
|
+
}, [isPushed]);
|
|
4830
|
+
React.useEffect(() => {
|
|
4831
|
+
keyOpenRef.current = keyOpen;
|
|
4832
|
+
}, [keyOpen]);
|
|
4833
|
+
React.useEffect(() => {
|
|
4834
|
+
bottomSpacingRef.current = bottomSpacing;
|
|
4835
|
+
}, [bottomSpacing]);
|
|
4836
|
+
React.useEffect(() => {
|
|
4837
|
+
isScrollingRef.current = isScrolling;
|
|
4838
|
+
}, [isScrolling]);
|
|
4671
4839
|
React.useEffect(() => {
|
|
4672
4840
|
formRef.current && setLastFormRef(formRef.current);
|
|
4673
4841
|
}, [formRef.current]);
|
|
@@ -4695,6 +4863,18 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4695
4863
|
}
|
|
4696
4864
|
return () => clearInterval(intervalId);
|
|
4697
4865
|
}, [showThankyou]);
|
|
4866
|
+
React.useEffect(() => {
|
|
4867
|
+
setBottomSpacing(isMobile && isIos && isLightBoxB
|
|
4868
|
+
? !isPushed && keyOpen
|
|
4869
|
+
? (() => {
|
|
4870
|
+
var _a;
|
|
4871
|
+
const visualHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4872
|
+
const isErrorDevice = visualHeight === initialHeight.current;
|
|
4873
|
+
return isErrorDevice ? window.innerHeight * 0.4 : visualHeight;
|
|
4874
|
+
})()
|
|
4875
|
+
: 0
|
|
4876
|
+
: 0);
|
|
4877
|
+
}, [isPushed, keyOpen, isMobile, isIos, isLightBoxB]);
|
|
4698
4878
|
const listBlockAddedRequired = React.useMemo(() => leadGenFieldRequired(listBlockAdded), listBlockAdded);
|
|
4699
4879
|
const disabledButtonSubmit = React.useMemo(() => {
|
|
4700
4880
|
if (listBlockAddedRequired.length) {
|
|
@@ -4702,11 +4882,47 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4702
4882
|
}
|
|
4703
4883
|
return false;
|
|
4704
4884
|
}, [...listBlockAddedRequired.map((k) => form.values[k])]);
|
|
4885
|
+
const handlePopupContentScroll = () => {
|
|
4886
|
+
if (!isScrollingRef.current) {
|
|
4887
|
+
const active = document.activeElement;
|
|
4888
|
+
if (formRef.current && formRef.current.contains(active)) {
|
|
4889
|
+
active.blur();
|
|
4890
|
+
}
|
|
4891
|
+
}
|
|
4892
|
+
};
|
|
4705
4893
|
const onFocus = (e) => {
|
|
4706
4894
|
// EL-926 Temporary turn off handling focus form on mobile to fix scrolling bug on lightbox A
|
|
4707
4895
|
// return false
|
|
4708
4896
|
e.preventDefault();
|
|
4709
|
-
|
|
4897
|
+
if (!isMobile || !isIos || !isLightBoxB)
|
|
4898
|
+
return;
|
|
4899
|
+
setTimeout(() => {
|
|
4900
|
+
var _a, _b;
|
|
4901
|
+
if (!isPushedRef.current && keyOpenRef.current) {
|
|
4902
|
+
const input = e.target;
|
|
4903
|
+
const rect = input.getBoundingClientRect();
|
|
4904
|
+
const inputHeight = rect.height;
|
|
4905
|
+
const inputTop = rect.top;
|
|
4906
|
+
const viewportHeight = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height;
|
|
4907
|
+
const isErrorDevice = viewportHeight === initialHeight.current;
|
|
4908
|
+
const currentTop = inputTop + inputHeight + (isErrorDevice ? 0 : gapBottomSpace.current);
|
|
4909
|
+
const currentScrollY = popupContentRef.current.scrollTop;
|
|
4910
|
+
const viewPort = isErrorDevice
|
|
4911
|
+
? window.innerHeight * 0.4
|
|
4912
|
+
: (_b = window.visualViewport) === null || _b === void 0 ? void 0 : _b.height;
|
|
4913
|
+
if (currentTop >= viewPort) {
|
|
4914
|
+
const gap = currentTop - viewPort;
|
|
4915
|
+
const targetScrollY = currentScrollY + gap;
|
|
4916
|
+
if (!isNaN(targetScrollY)) {
|
|
4917
|
+
setIsScrolling(true);
|
|
4918
|
+
scrollTo(popupContentRef.current, targetScrollY, 400);
|
|
4919
|
+
setTimeout(() => {
|
|
4920
|
+
setIsScrolling(false);
|
|
4921
|
+
}, 500);
|
|
4922
|
+
}
|
|
4923
|
+
}
|
|
4924
|
+
}
|
|
4925
|
+
}, 300);
|
|
4710
4926
|
};
|
|
4711
4927
|
const middlewareOnSubmit = (e) => {
|
|
4712
4928
|
e.preventDefault();
|
|
@@ -4830,10 +5046,14 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4830
5046
|
const PopupEmpty = showEmpty && (React__default["default"].createElement(EmptyComponent, { onClose: onClose, onContinue: () => setShowEmpty(false) }));
|
|
4831
5047
|
const PopupForm = (React__default["default"].createElement(LeadFormProvider, { form: form },
|
|
4832
5048
|
React__default["default"].createElement("form", { ref: formRef, className: "leadgen-form", onFocus: onFocus, onSubmit: middlewareOnSubmit },
|
|
4833
|
-
React__default["default"].createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm
|
|
5049
|
+
React__default["default"].createElement(FormContainer, { title: title, titleAlign: titleAlign, description: description, descriptionAlign: descriptionAlign, header: headerInsideFormContainer && PopupHeader, footer: hasForm ? ButtonSubmit : ButtonLink, "data-hidden-form": !hasForm },
|
|
4834
5050
|
React__default["default"].createElement("div", { className: "leadgen-form_inner" },
|
|
4835
5051
|
React__default["default"].createElement(LightboxFields, { listBlockAdded: listBlockAdded, popupId: popupId, locale: locale, onClose: onClose, onOtherSubmit: onOtherSubmit, hasSubmitBtn: Boolean(ButtonSubmit), isSubmitLoading: isSubmitLoading, disabledButtonSubmit: disabledButtonSubmit })))),
|
|
4836
|
-
|
|
5052
|
+
React__default["default"].createElement("div", { style: {
|
|
5053
|
+
height: `${bottomSpacing}px`,
|
|
5054
|
+
width: '100%',
|
|
5055
|
+
transition: 'height .2s ease',
|
|
5056
|
+
} })));
|
|
4837
5057
|
const PopupOtp = showOtpPhone && (React__default["default"].createElement(OtpBlock, { otpData: showOtpPhone, autoSendWhenOpen: false, onSuccess: () => {
|
|
4838
5058
|
setShowOtpPhone(null);
|
|
4839
5059
|
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
@@ -4844,7 +5064,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4844
5064
|
});
|
|
4845
5065
|
} }));
|
|
4846
5066
|
const PopupThankYou = showThankyou && (React__default["default"].createElement(ThankyouPopup, { title: showThankyou.title, titleAlign: showThankyou.titleAlign, subtitle: showThankyou.subtitle, subtitleAlign: showThankyou.subtitleAlign, link: showThankyou.link, linkNewTab: showThankyou.linkNewTab, linkText: showThankyou.linkText, image: showThankyou.image }));
|
|
4847
|
-
const PopupContent = (React__default["default"].createElement("div", { ref:
|
|
5067
|
+
const PopupContent = (React__default["default"].createElement("div", { ref: popupContentRef, className: core.clsx('leadgen-content', {
|
|
4848
5068
|
'leadgen-content_small': limitFieldsLightBoxB,
|
|
4849
5069
|
}), onScroll: handlePopupContentScroll },
|
|
4850
5070
|
!headerInsideFormContainer && PopupHeader,
|
|
@@ -4890,7 +5110,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4890
5110
|
position: 'absolute',
|
|
4891
5111
|
inset: 0,
|
|
4892
5112
|
zIndex: snap === 1 ? -1 : 1,
|
|
4893
|
-
}, onClick: () => setSnap(1) })))) : (React__default["default"].createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName },
|
|
5113
|
+
}, onClick: () => setSnap(1) })))) : (React__default["default"].createElement("div", { id: popupId, "data-popup-url": currentPath, "data-popup-type": "lightbox-inline", className: popupContainerClassName, style: isMobile ? { maxHeight: height } : undefined },
|
|
4894
5114
|
isFullscreen ? (React__default["default"].createElement("img", { className: "le-only-desktop le-fullscreen-img", draggable: false, src: imageBackground || '', style: {
|
|
4895
5115
|
aspectRatio: `${imageBackgroundWidth}/${imageBackgroundHeight}`,
|
|
4896
5116
|
} })) : null,
|
|
@@ -4904,7 +5124,7 @@ const LightboxLayout = ({ popupId, extraFields, onClose: onCloseProp, onOtherSub
|
|
|
4904
5124
|
return React__default["default"].createElement(SideBarLayout, { content: PopupContainer });
|
|
4905
5125
|
}
|
|
4906
5126
|
else if (isInline) {
|
|
4907
|
-
return (React__default["default"].createElement(InlineLayout, { action: action, content: PopupContainer, campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
5127
|
+
return (React__default["default"].createElement(InlineLayout, { action: action, content: isFreebie ? (React__default["default"].createElement(InlineFreebie, { campaign: campaign.freebie[0], locale: locale })) : (PopupContainer), campaignCode: campaignCode, inlinePosition: extraFields.popupInlinePosition, doImpression: handleDoImpression }));
|
|
4908
5128
|
}
|
|
4909
5129
|
return null;
|
|
4910
5130
|
};
|
|
@@ -5097,10 +5317,11 @@ const NewLeadPopup = ({ campaign, action, onSubmit, onClose, onUnmount, doImpres
|
|
|
5097
5317
|
}
|
|
5098
5318
|
else if (currentLayout.includes('LightBox') ||
|
|
5099
5319
|
currentLayout.includes('Inline') ||
|
|
5320
|
+
currentLayout.includes('Freebie') ||
|
|
5100
5321
|
currentLayout == 'Fullscreen' ||
|
|
5101
5322
|
currentLayout == 'Sidebar' ||
|
|
5102
5323
|
currentLayout == 'Slider') {
|
|
5103
|
-
return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
|
|
5324
|
+
return (React__default["default"].createElement(LightboxLayout, { popupId: popupIdRef.current, extraFields: extra_fields, onClose: onClose, onOtherSubmit: onOtherSubmit, onUnmount: onUnmount, doImpression: doImpression, imageMobile: image, imageDesktop: image_desktop, imageBackground: image_background, currentLayout: currentLayout, campaign: campaign, title: titleText, onSubmit: (params) => onSubmit(params, categoryLevel, categoryData), key: currentLayout, imageOverlayDesktop: image_overlay_desktop, imageOverlayMobile: image_overlay_mobile, showThankyou: showThankyou, campaignId: campaign.id, campaignCode: campaign.code, campaign_subot_id: campaign.bot_id || [], locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo, action: action }));
|
|
5104
5325
|
}
|
|
5105
5326
|
else if (currentLayout.includes('Skin')) {
|
|
5106
5327
|
return (React__default["default"].createElement(SkinLayout, { popupId: popupIdRef.current, link: actionBlocks.linkButtonBlock.data.url, linkNewTab: !!actionBlocks.linkButtonBlock.data.newtab, linkText: actionBlocks.linkButtonBlock.data.value, onClose: onClose, onOtherSubmit: onOtherSubmit, imageMobile: image, imageDesktop: image_desktop, currentLayout: currentLayout }));
|
|
@@ -5196,7 +5417,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5196
5417
|
var _a, _b;
|
|
5197
5418
|
const scrollEventHandlerRef = React.useRef();
|
|
5198
5419
|
const leadStartTimeRef = React.useRef(Date.now());
|
|
5199
|
-
const [, setScrollLocked] = hooks.useScrollLock();
|
|
5200
5420
|
const { apiUrl } = React.useMemo(() => {
|
|
5201
5421
|
let apiUrl = apiUrlProp;
|
|
5202
5422
|
if (apiUrl.includes('localhost')) {
|
|
@@ -5212,9 +5432,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5212
5432
|
const [showEmpty, setShowEmpty] = React.useState(false);
|
|
5213
5433
|
const [redirectUrl, setRedirectUrl] = React.useState();
|
|
5214
5434
|
const currentLayout = React.useMemo(() => showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout, [showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields.currentLayout]);
|
|
5215
|
-
const layoutUseOverlay = React.useMemo(() => !!currentLayout &&
|
|
5216
|
-
!currentLayout.includes('Inline') &&
|
|
5217
|
-
!currentLayout.includes('Sidebar'), [currentLayout]);
|
|
5218
5435
|
React.useEffect(() => {
|
|
5219
5436
|
if (forceCampaign) {
|
|
5220
5437
|
setShowCampaign(forceCampaign);
|
|
@@ -5234,7 +5451,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5234
5451
|
document.body.classList.remove('noscroll');
|
|
5235
5452
|
setShowCampaign(null);
|
|
5236
5453
|
setShowThankyou(null);
|
|
5237
|
-
setScrollLocked(false);
|
|
5238
5454
|
setAction('HIDE');
|
|
5239
5455
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
5240
5456
|
};
|
|
@@ -5256,41 +5472,36 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5256
5472
|
}
|
|
5257
5473
|
}
|
|
5258
5474
|
}
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5475
|
+
yield Promise.all([
|
|
5476
|
+
fetch(`${apiUrl}api/campaign/${showCampaign.code}/popup_exit`, {
|
|
5477
|
+
method: 'POST',
|
|
5478
|
+
headers: {
|
|
5479
|
+
'Content-Type': 'application/json',
|
|
5480
|
+
},
|
|
5481
|
+
body: JSON.stringify({
|
|
5482
|
+
action: 'CLICK',
|
|
5483
|
+
url: location.href.toLowerCase(),
|
|
5484
|
+
title_article: document.title,
|
|
5485
|
+
cookie_id: miscCookieHelper.getCookie('hhg-id') || '',
|
|
5486
|
+
duration: Math.ceil((Date.now() - leadStartTimeRef.current) / 1000),
|
|
5487
|
+
}),
|
|
5488
|
+
}),
|
|
5489
|
+
!showThankyou &&
|
|
5490
|
+
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5491
|
+
trackingCompletionForm({
|
|
5492
|
+
commonData: {
|
|
5270
5493
|
cookie_id: miscCookieHelper.getCookie('hhg-id') || '',
|
|
5271
|
-
|
|
5272
|
-
|
|
5494
|
+
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
5495
|
+
country_code: locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5496
|
+
status: 'in_progress',
|
|
5497
|
+
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5498
|
+
total_fields: listBlockAdded.length,
|
|
5499
|
+
type: 'close',
|
|
5500
|
+
},
|
|
5501
|
+
currentLayout,
|
|
5502
|
+
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
5273
5503
|
}),
|
|
5274
|
-
|
|
5275
|
-
!(params === null || params === void 0 ? void 0 : params.preventTrackingClose) &&
|
|
5276
|
-
trackingCompletionForm({
|
|
5277
|
-
commonData: {
|
|
5278
|
-
cookie_id: miscCookieHelper.getCookie('hhg-id') || '',
|
|
5279
|
-
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
5280
|
-
country_code: locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN',
|
|
5281
|
-
status: 'in_progress',
|
|
5282
|
-
campaign_id: showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.id,
|
|
5283
|
-
total_fields: listBlockAdded.length,
|
|
5284
|
-
type: 'close',
|
|
5285
|
-
},
|
|
5286
|
-
currentLayout,
|
|
5287
|
-
formParams: Object.assign(Object.assign({}, params), { listBlockAdded, formValues: formatFormData(formRef, formDataObj) }),
|
|
5288
|
-
}),
|
|
5289
|
-
]);
|
|
5290
|
-
}
|
|
5291
|
-
catch (err) {
|
|
5292
|
-
console.log(err);
|
|
5293
|
-
}
|
|
5504
|
+
]);
|
|
5294
5505
|
onCloseBase();
|
|
5295
5506
|
});
|
|
5296
5507
|
const onUnmount = (params) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -5548,9 +5759,6 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5548
5759
|
leadStartTimeRef.current = Date.now();
|
|
5549
5760
|
}
|
|
5550
5761
|
}, [showCampaign]);
|
|
5551
|
-
React.useEffect(() => {
|
|
5552
|
-
setScrollLocked(layoutUseOverlay);
|
|
5553
|
-
}, [layoutUseOverlay]);
|
|
5554
5762
|
return (React__default["default"].createElement(LeadGenContext$1.Provider, { value: {
|
|
5555
5763
|
primaryColor,
|
|
5556
5764
|
apiUrl,
|
|
@@ -5566,7 +5774,10 @@ const _LeadGen = ({ apiUrl: apiUrlProp, siteDomain, siteId, locale, primaryColor
|
|
|
5566
5774
|
React__default["default"].createElement(core.Transition, { mounted: Boolean(((_b = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _b === void 0 ? void 0 : _b.popupVersion) === '2.1'), transition: "fade", duration: 600, timingFunction: "ease", exitDuration: 200 }, (styles) => {
|
|
5567
5775
|
var _a;
|
|
5568
5776
|
return (React__default["default"].createElement(core.Box, { style: styles }, ((_a = showCampaign === null || showCampaign === void 0 ? void 0 : showCampaign.extra_fields) === null || _a === void 0 ? void 0 : _a.popupVersion) === '2.1' && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
5569
|
-
|
|
5777
|
+
!!currentLayout &&
|
|
5778
|
+
!currentLayout.includes('Inline') &&
|
|
5779
|
+
!currentLayout.includes('Sidebar') &&
|
|
5780
|
+
!currentLayout.includes('Freebie') && (React__default["default"].createElement(core.Overlay, { color: "#000", opacity: 0.6, center: true, zIndex: 400, pos: 'fixed', onClick: () => onClose() })),
|
|
5570
5781
|
React__default["default"].createElement(NewLeadPopup, { campaign: showCampaign, action: action, onSubmit: onSubmit, onClose: onClose, onUnmount: onUnmount, doImpression: doImpression, showThankyou: showThankyou, locale: locale, showEmpty: showEmpty, setShowEmpty: setShowEmpty, userInfo: userInfo })))));
|
|
5571
5782
|
}))))))));
|
|
5572
5783
|
};
|