@hhgtech/hhg-components 1.27.116 → 1.27.117
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/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/molecules/surveyOrPremiumBanner/constants.d.ts +38 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-5a4802f1.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/molecules/surveyOrPremiumBanner/constants.d.ts +38 -0
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-d5f86c30.js → core-e1653ac3.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-6ec8bfe8.js → fixedBottomAdBlock-7a9b5687.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-a48d1221.js → getDynamicHealthTool-4a5c0672.js} +1 -1
- package/build/esm/{getSocialList-caa69154.js → getSocialList-2926c636.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-2cc58993.js → index-17f8c37e.js} +1 -1
- package/build/esm/{index-f6f5f317.js → index-1e8be272.js} +1 -1
- package/build/esm/{index-8551904b.js → index-2aeaeb40.js} +1 -1
- package/build/esm/{index-e82154db.js → index-3f879aea.js} +1 -1
- package/build/esm/{index-27b5f2f6.js → index-460e54da.js} +1 -1
- package/build/esm/{index-a3aacc1d.js → index-59d7af38.js} +23 -23
- package/build/esm/{index-5e88525b.js → index-61a33982.js} +1 -1
- package/build/esm/index-62dadf70.js +1 -0
- package/build/esm/{index-a39fdd9b.js → index-6578d97f.js} +1 -1
- package/build/esm/{index-39c6d79e.js → index-7de443c7.js} +1 -1
- package/build/esm/{index-dada87eb.js → index-9a28c8a5.js} +1 -1
- package/build/esm/{index-d7b3c107.js → index-9b21a457.js} +1 -1
- package/build/esm/{index-904154ed.js → index-a8c5ea6f.js} +6 -6
- package/build/esm/index-a9223384.js +1 -0
- package/build/esm/{index-d02f6f7e.js → index-ae4a6e0a.js} +4 -4
- package/build/esm/{index-61b606da.js → index-c06b123b.js} +1 -1
- package/build/esm/{index-0027f4d5.js → index-c986ff0b.js} +1 -1
- package/build/esm/{index-20c430d5.js → index-d612cd0f.js} +1 -1
- package/build/esm/{index-64e54f8a.js → index-da7ea3c7.js} +1 -1
- package/build/esm/index-eab665d2.js +1 -0
- package/build/esm/{index-479d7500.js → index-f3bdf79c.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-29497d9c.js +50 -0
- package/build/esm/{index.styled-6196831f.js → index.styled-728e560f.js} +3 -3
- package/build/esm/{index.styled-eeb89098.js → index.styled-8b2691e0.js} +1 -1
- package/build/esm/{index.styles-7a9113c1.js → index.styles-91e32efd.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/{normalizeLink-4b74ae03.js → normalizeLink-f3588f13.js} +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +3 -3
- package/build/esm/together.js +1 -1
- package/build/esm/{types-e6c8e176.js → types-a58b3954.js} +1 -1
- package/build/esm/{types-9fe85abc.js → types-e8c598b7.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-16e50509.js → useCategory-68b3c360.js} +1 -1
- package/build/esm/{useHealthToolCache-3c6e7944.js → useHealthToolCache-0ee4d91c.js} +1 -1
- package/build/esm/{useRafState-ac9467c8.js → useRafState-f0eb95fd.js} +1 -1
- package/build/esm/{useTranslations-b1be8a29.js → useTranslations-1986da74.js} +1 -1
- package/build/esm/{utils-e516ba3d.js → utils-54d73494.js} +1 -1
- package/build/esm/vaccination.js +5 -5
- package/build/{fixedBottomAdBlock-b4f15122.js → fixedBottomAdBlock-553bef70.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-c72bd725.js → getDynamicHealthTool-0ddbfef8.js} +1 -1
- package/build/{getSocialList-ae26e4f3.js → getSocialList-1fef8756.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-cd8a90ce.js → index-09fae3e3.js} +4 -4
- package/build/{index-0ca8783e.js → index-0c44c15b.js} +1 -1
- package/build/index-171186ad.js +1 -0
- package/build/index-3efc19e0.js +1 -0
- package/build/{index-2631c46c.js → index-4a9e025c.js} +2 -2
- package/build/{index-9e7ea74e.js → index-53711d07.js} +1 -1
- package/build/{index-ed62f07d.js → index-562d73eb.js} +1 -1
- package/build/{index-41301f0c.js → index-5ea9f3d5.js} +1 -1
- package/build/{index-4b190dd5.js → index-6b2a06ec.js} +1 -1
- package/build/index-74afea91.js +1 -0
- package/build/{index-118ca017.js → index-8b3d083e.js} +2 -2
- package/build/{index-f8dc542c.js → index-8d047c09.js} +1 -1
- package/build/{index-883e5d33.js → index-92dc3540.js} +1 -1
- package/build/{index-d2481555.js → index-95a6ce34.js} +1 -1
- package/build/{index-ab048566.js → index-98fcd499.js} +1 -1
- package/build/{index-9fe9bf65.js → index-b743aa47.js} +1 -1
- package/build/{index-a0e02781.js → index-c79752fd.js} +3 -3
- package/build/{index-ee67f7a4.js → index-d256ced5.js} +1 -1
- package/build/{index-7b7953ba.js → index-d86b9e2b.js} +1 -1
- package/build/{index-5c8fbc7a.js → index-d955e78c.js} +1 -1
- package/build/{index-6857ac87.js → index-f9a80bc7.js} +2 -2
- package/build/index.js +1 -1
- package/build/{index.styled-786fe414.js → index.styled-0cef8dc8.js} +1 -1
- package/build/index.styled-60dece07.js +50 -0
- package/build/{index.styled-a20477d5.js → index.styled-cbabbb4a.js} +3 -3
- package/build/{index.styles-412e2fb9.js → index.styles-c170f300.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/{normalizeLink-e0b77a83.js → normalizeLink-b24e3eff.js} +1 -1
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +4 -4
- package/build/together.js +1 -1
- package/build/{types-afd6d465.js → types-0d68af87.js} +1 -1
- package/build/{types-624439ae.js → types-34e44794.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-20ea92de.js → useCategory-ede077c1.js} +1 -1
- package/build/useHealthToolCache-05cfe325.js +1 -0
- package/build/{useRafState-51954011.js → useRafState-f3f6f3fb.js} +1 -1
- package/build/{useTranslations-8ddbe2cf.js → useTranslations-1ac42131.js} +1 -1
- package/build/{utils-8a0e7a73.js → utils-cdbde2a0.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-e9e9ac59.js +0 -1
- package/build/esm/index-93d96552.js +0 -1
- package/build/esm/index-af3c4f7d.js +0 -1
- package/build/esm/index-ee4107d0.js +0 -1
- package/build/esm/index.styled-c548ab67.js +0 -50
- package/build/index-8dd8bc2b.js +0 -1
- package/build/index-d73dfdc7.js +0 -1
- package/build/index-ecc9315a.js +0 -1
- package/build/index.styled-96db1a5a.js +0 -50
- package/build/useHealthToolCache-efaa59f2.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-a328ef5e.js → BMI_BOYS.percentile.monthly-7684f8d5.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-65949882.js → BMI_BOYS.percentile.weekly-29527b00.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-980702c1.js → BMI_BOYS.percentile.yearly-16726134.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-223f4199.js → BMI_BOYS.zscore.monthly-09ea5b7c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-0f46c205.js → BMI_BOYS.zscore.weekly-14edf441.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-ca86b731.js → BMI_BOYS.zscore.yearly-63f075a7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-0f3fb3a1.js → BMI_GIRLS.percentile.monthly-5d117505.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-5bdaccb7.js → BMI_GIRLS.percentile.weekly-152c93d7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-344e432d.js → BMI_GIRLS.percentile.yearly-3def9460.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-953d0d6f.js → BMI_GIRLS.zscore.monthly-253cf85e.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-6f11181e.js → BMI_GIRLS.zscore.weekly-fe055d44.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-37797d94.js → BMI_GIRLS.zscore.yearly-485b111f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-65c8cd64.js → HEAD CIRCUM_BOYS.percentile.monthly-e6f66c0b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-50ff29c1.js → HEAD CIRCUM_BOYS.percentile.weekly-875119ea.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-82a01fcb.js → HEAD CIRCUM_BOYS.percentile.yearly-bbbe47d1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-d16866e6.js → HEAD CIRCUM_BOYS.zscore.monthly-6e13a8cb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-871d3825.js → HEAD CIRCUM_BOYS.zscore.weekly-e18bf3bc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-54b487eb.js → HEAD CIRCUM_BOYS.zscore.yearly-fc1597af.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-3bf7839a.js → HEAD CIRCUM_GIRLS.percentile.monthly-6f508ae0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-867a3251.js → HEAD CIRCUM_GIRLS.percentile.weekly-9e9fc342.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-81f91e05.js → HEAD CIRCUM_GIRLS.percentile.yearly-e46399be.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-bbdcb858.js → HEAD CIRCUM_GIRLS.zscore.monthly-15a8cf7a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-5bd5564c.js → HEAD CIRCUM_GIRLS.zscore.weekly-ab81f0e7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-9cfa7cfa.js → HEAD CIRCUM_GIRLS.zscore.yearly-1012cf15.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-a77de81f.js → HEIGHT_BOYS.percentile.monthly-12423312.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-cd97a3cd.js → HEIGHT_BOYS.percentile.weekly-b82dee0a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-8f02dfaa.js → HEIGHT_BOYS.percentile.yearly-d08126f7.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-e7bf346f.js → HEIGHT_BOYS.zscore.monthly-87293d07.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-f123f752.js → HEIGHT_BOYS.zscore.weekly-07f607af.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-578c9f8f.js → HEIGHT_BOYS.zscore.yearly-dbcf62fa.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-c6663d49.js → HEIGHT_GIRLS.percentile.monthly-7975f504.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-b8d87eb0.js → HEIGHT_GIRLS.percentile.weekly-d8c5a558.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-18f8609f.js → HEIGHT_GIRLS.percentile.yearly-a910f865.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-e98fe2e5.js → HEIGHT_GIRLS.zscore.monthly-2cb059c0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-5c331003.js → HEIGHT_GIRLS.zscore.weekly-179976c9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-74ab8aba.js → HEIGHT_GIRLS.zscore.yearly-c81fc918.js} +0 -0
- /package/build/{Onboarding-816df77b.js → Onboarding-2c0f2c98.js} +0 -0
- /package/build/{Visible-7bbd829a.js → Visible-1f49598e.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-6d3cca4a.js → WEIGHT_BOYS.percentile.monthly-568036c8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-a1ca616d.js → WEIGHT_BOYS.percentile.weekly-7314cbf6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-fd6bf0ed.js → WEIGHT_BOYS.percentile.yearly-714436c0.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-4b120f96.js → WEIGHT_BOYS.zscore.monthly-522e8b26.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-d1917acb.js → WEIGHT_BOYS.zscore.weekly-b3330a0f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-563a77b6.js → WEIGHT_BOYS.zscore.yearly-7ded6ed4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-69238b90.js → WEIGHT_GIRLS.percentile.monthly-2528443b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-3aaf18a6.js → WEIGHT_GIRLS.percentile.weekly-ad6e4ddc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-13f4a8f1.js → WEIGHT_GIRLS.percentile.yearly-7f4c77a7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-a5e9746b.js → WEIGHT_GIRLS.zscore.monthly-6f6cef22.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-957a979c.js → WEIGHT_GIRLS.zscore.weekly-27c72d1d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-1656a630.js → WEIGHT_GIRLS.zscore.yearly-6f967339.js} +0 -0
- /package/build/{constants-d61064ed.js → constants-43abc1ce.js} +0 -0
- /package/build/{cookieHelper-fd1952df.js → cookieHelper-de1de786.js} +0 -0
- /package/build/{dataTransform-fe55bddf.js → dataTransform-a6c20d94.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-e0d579c1.js → BMI_BOYS.percentile.monthly-eba7fad8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-5423a078.js → BMI_BOYS.percentile.weekly-1efdda1c.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-5108f14e.js → BMI_BOYS.percentile.yearly-1ce1fd50.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-95a6ac9d.js → BMI_BOYS.zscore.monthly-70023745.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-bd28819b.js → BMI_BOYS.zscore.weekly-d3062ed2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-363113cb.js → BMI_BOYS.zscore.yearly-a98b374b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-6868bfc9.js → BMI_GIRLS.percentile.monthly-de62ea0d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-4dcf3a72.js → BMI_GIRLS.percentile.weekly-5c63822d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-a0633d46.js → BMI_GIRLS.percentile.yearly-83c7b5e8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-cb8e2372.js → BMI_GIRLS.zscore.monthly-80dbd7cf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-eade51d8.js → BMI_GIRLS.zscore.weekly-8860eca7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-35314972.js → BMI_GIRLS.zscore.yearly-40e395b8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-6ec3866f.js → HEAD CIRCUM_BOYS.percentile.monthly-18207ba4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f02f133c.js → HEAD CIRCUM_BOYS.percentile.weekly-71f6fc87.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-0015852e.js → HEAD CIRCUM_BOYS.percentile.yearly-2b68b095.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-973f6d0d.js → HEAD CIRCUM_BOYS.zscore.monthly-1798e077.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-f9e2c620.js → HEAD CIRCUM_BOYS.zscore.weekly-d1c91e26.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-9385af70.js → HEAD CIRCUM_BOYS.zscore.yearly-4dc97647.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-3199770f.js → HEAD CIRCUM_GIRLS.percentile.monthly-7aa15a43.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-038e2999.js → HEAD CIRCUM_GIRLS.percentile.weekly-88e2173d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-09f3f554.js → HEAD CIRCUM_GIRLS.percentile.yearly-35897053.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-4484c579.js → HEAD CIRCUM_GIRLS.zscore.monthly-f473131f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-6fa18787.js → HEAD CIRCUM_GIRLS.zscore.weekly-81adac62.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c8ac527c.js → HEAD CIRCUM_GIRLS.zscore.yearly-7008309e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-dc2dfdc2.js → HEIGHT_BOYS.percentile.monthly-82c50e54.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-0ae79629.js → HEIGHT_BOYS.percentile.weekly-65bd0958.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-e31d2be4.js → HEIGHT_BOYS.percentile.yearly-9dcb054f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-597a3c01.js → HEIGHT_BOYS.zscore.monthly-2086eee6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-66d7a037.js → HEIGHT_BOYS.zscore.weekly-a8ec9154.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-52e16651.js → HEIGHT_BOYS.zscore.yearly-e1b8163d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-1c3b6910.js → HEIGHT_GIRLS.percentile.monthly-f91a444c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-875011f6.js → HEIGHT_GIRLS.percentile.weekly-4d39a9ea.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-6a6418bb.js → HEIGHT_GIRLS.percentile.yearly-960b1d12.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b77727d1.js → HEIGHT_GIRLS.zscore.monthly-1a0fb062.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-6b8f65ed.js → HEIGHT_GIRLS.zscore.weekly-2b0cf11c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-72bb2101.js → HEIGHT_GIRLS.zscore.yearly-f91dc8b4.js} +0 -0
- /package/build/esm/{Onboarding-4b540166.js → Onboarding-c49f7629.js} +0 -0
- /package/build/esm/{Visible-3cfa9ccd.js → Visible-8ad64feb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-53f2b898.js → WEIGHT_BOYS.percentile.monthly-7830af6e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-20340f48.js → WEIGHT_BOYS.percentile.weekly-1fe808e1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-243cb49d.js → WEIGHT_BOYS.percentile.yearly-0c527e51.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ad50aa7e.js → WEIGHT_BOYS.zscore.monthly-2e199911.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-af3f02d2.js → WEIGHT_BOYS.zscore.weekly-533e3267.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-7facefaa.js → WEIGHT_BOYS.zscore.yearly-c7e0eb89.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-1963ac15.js → WEIGHT_GIRLS.percentile.monthly-9f4d218b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-7d86b805.js → WEIGHT_GIRLS.percentile.weekly-5479065a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-0c5e4724.js → WEIGHT_GIRLS.percentile.yearly-999e539f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-1776fe58.js → WEIGHT_GIRLS.zscore.monthly-8a2453b2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-b3f2c8e5.js → WEIGHT_GIRLS.zscore.weekly-cbfd1ee5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-377cb035.js → WEIGHT_GIRLS.zscore.yearly-5bf8f6a7.js} +0 -0
- /package/build/esm/{constants-4db920a7.js → constants-ebd14cc2.js} +0 -0
- /package/build/esm/{cookieHelper-7cdc7050.js → cookieHelper-2d320574.js} +0 -0
- /package/build/esm/{dataTransform-7db18bcb.js → dataTransform-059ff9c2.js} +0 -0
- /package/build/esm/{index-89868b22.js → index-ae1e37f0.js} +0 -0
- /package/build/esm/{isProduction-674d3030.js → isProduction-e51193f7.js} +0 -0
- /package/build/esm/{localizeNumberFormat-aab100cf.js → localizeNumberFormat-45d42a96.js} +0 -0
- /package/build/esm/{number-136741a4.js → number-0aa74dcd.js} +0 -0
- /package/build/esm/{paths-93c43665.js → paths-d1aa7632.js} +0 -0
- /package/build/esm/{screenSizeContext-59d225c9.js → screenSizeContext-ec11c471.js} +0 -0
- /package/build/esm/{theme-eed2b691.js → theme-e8a9aabf.js} +0 -0
- /package/build/esm/{translationsContext-94abb77a.js → translationsContext-b4928084.js} +0 -0
- /package/build/esm/{tslib.es6-c7c364d0.js → tslib.es6-944f3452.js} +0 -0
- /package/build/esm/{types-40b3a5a2.js → types-a7213f30.js} +0 -0
- /package/build/esm/{useIsInit-7a12e27f.js → useIsInit-44d08a4a.js} +0 -0
- /package/build/esm/{useOutsideClick-1eedbd72.js → useOutsideClick-861c0acd.js} +0 -0
- /package/build/esm/{useScrollbarSize-64fe34f2.js → useScrollbarSize-02bbd37b.js} +0 -0
- /package/build/esm/{useUniqueId-c3fee558.js → useUniqueId-e4e98dbe.js} +0 -0
- /package/build/{index-ebe061ca.js → index-bd9ff267.js} +0 -0
- /package/build/{isProduction-fc8ac18d.js → isProduction-af82e297.js} +0 -0
- /package/build/{localizeNumberFormat-603766ef.js → localizeNumberFormat-e49226d5.js} +0 -0
- /package/build/{number-d5cdd007.js → number-f1d6efee.js} +0 -0
- /package/build/{paths-dab476cc.js → paths-fd1580cb.js} +0 -0
- /package/build/{screenSizeContext-f2fc50bf.js → screenSizeContext-eaf0c2a4.js} +0 -0
- /package/build/{theme-6eebc8ce.js → theme-b8cae51a.js} +0 -0
- /package/build/{translationsContext-41b73b25.js → translationsContext-27e8c4db.js} +0 -0
- /package/build/{tslib.es6-888abbb9.js → tslib.es6-61e2dd67.js} +0 -0
- /package/build/{types-1879adc0.js → types-4717844b.js} +0 -0
- /package/build/{useIsInit-b9d8185f.js → useIsInit-3d00fb64.js} +0 -0
- /package/build/{useOutsideClick-d17db9ba.js → useOutsideClick-3436b684.js} +0 -0
- /package/build/{useScrollbarSize-61f72af6.js → useScrollbarSize-258151e0.js} +0 -0
- /package/build/{useUniqueId-1bdb1e7b.js → useUniqueId-86feb5ec.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-61e2dd67.js"),t=require("react"),a=require("@mantine/core"),i=require("./index.styles-c170f300.js"),n=require("./index-8b3d083e.js"),o=require("./gAssets.js"),r=require("./index-f9a80bc7.js"),l=require("./screenSizeContext-eaf0c2a4.js"),s=require("./theme-b8cae51a.js"),d=require("./useTranslations-1ac42131.js");require("@mantine/dates");var c=require("./index-53711d07.js"),u=require("./Onboarding-2c0f2c98.js"),p=require("dayjs"),m=require("styled-components"),h=require("./normalizeLink-b24e3eff.js"),g=require("./isProduction-af82e297.js"),f=require("@mantine/hooks"),b=require("lodash/debounce");require("./useCategory-ede077c1.js");var x=require("./cookieHelper-de1de786.js"),v=require("./index.styled-0cef8dc8.js"),y=require("./number-f1d6efee.js");require("innertext");var w=require("date-fns"),C=require("react-day-picker/DayPickerInput");require("react-dom");var E=require("./index-c79752fd.js");require("lodash/throttle");var k=require("./index-95a6ce34.js"),S=require("./index-171186ad.js"),A=require("./index-562d73eb.js"),T=require("./index-0c44c15b.js"),N=require("./types-4717844b.js"),I=require("react-hook-form");require("./translationsContext-27e8c4db.js"),require("string-format");var B=require("@hookform/resolvers/yup"),P=require("./index-92dc3540.js"),D=require("./index-3efc19e0.js");require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./index.styled-60dece07.js"),require("uuid"),require("./utils-cdbde2a0.js");var M=require("dayjs/plugin/relativeTime"),z=require("./paths-fd1580cb.js"),O=require("./constants-43abc1ce.js"),L=require("./index-d256ced5.js"),_=require("./useUniqueId-86feb5ec.js");require("react-contenteditable");var R=require("@mantine/form"),j=require("./useHealthToolCache-05cfe325.js"),$=require("js-cookie"),F=require("lodash/flatten"),U=require("lodash/uniqBy");function V(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function H(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var q=V(t),G=H(t),W=V(p),Q=V(m),Z=V(b),X=V(C),Y=V(M),K=V($),J=V(F),ee=V(U);const te=({type:e,size:t="small",label:a,name:n,checked:o,value:r,className:l,isDisabled:s=!1,onChange:d,dataEventCategory:c,dataEventAction:u,dataEventLabel:p})=>{const m=!!u&&!!c&&!!p?{"data-event-category":c,"data-event-action":u,"data-event-label":p}:{};return q.default.createElement(i.StyledRadio,{"data-disabled":s,className:l,"data-type":e,"data-size":t},q.default.createElement("label",Object.assign({style:{display:"flex",alignItems:"center"}},m),q.default.createElement("input",Object.assign({type:"radio",checked:o,name:n,value:r,onChange:()=>d(r)},m)),a))},ae={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},ie=t=>{var{siteType:a,role:n,title:o,styles:r,className:l}=t,s=e.__rest(t,["siteType","role","title","styles","className"]);const{t:c}=d.useTranslations(),u=n?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(n):"",{classes:p,cx:m}=i.useStyles$1(void 0,{name:"AuthorBadge",styles:r});return u&&ae[u]?q.default.createElement("div",Object.assign({className:m(p.root,l),"data-label-type":u,"data-is-marrybaby":"marryBaby"===a},s),o||c(ae[u])):null},ne=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),oe=a=>{var{label:n,bookingId:o,bookingType:r="doctor",locale:l="vi-VN"}=a,s=e.__rest(a,["label","bookingId","bookingType","locale"]);const{t:u}=d.useTranslations(),[p,m]=t.useState(!1),h=t.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]),f=t.useCallback((()=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,n,s,d,u,p,h,f,b,x,v,y,w;const C="doctor"===r?z.PATHS.GET_DOCTOR_DETAIL:"hospital"===r?z.PATHS.GET_HOSPITAL_DETAIL:"service"===r?z.PATHS.GET_SERVICE_DETAIL:"";try{m(!0);const E=yield i.callApi(i.getCarePath(C,{id:o,site:c.domainLocales[l]}),"get");if(1===(null==E?void 0:E._status)){const i="doctor"===r?{id:null===(t=null===(e=null==E?void 0:E._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(n=null===(a=null==E?void 0:E._data)||void 0===a?void 0:a.doctor)||void 0===n?void 0:n.slug,localSlug:null===(s=O.LOCALIZED_SLUGS[l])||void 0===s?void 0:s.DOCTOR}:"hospital"===r?{id:null===(u=null===(d=null==E?void 0:E._data)||void 0===d?void 0:d.branch)||void 0===u?void 0:u.id,slug:null===(h=null===(p=null==E?void 0:E._data)||void 0===p?void 0:p.branch)||void 0===h?void 0:h.slug,localSlug:null===(f=O.LOCALIZED_SLUGS[l])||void 0===f?void 0:f.HOSPITAL}:{id:null===(x=null===(b=null==E?void 0:E._data)||void 0===b?void 0:b.service)||void 0===x?void 0:x.id,slug:null===(y=null===(v=null==E?void 0:E._data)||void 0===v?void 0:v.service)||void 0===y?void 0:y.slug,localSlug:null===(w=O.LOCALIZED_SLUGS[l])||void 0===w?void 0:w.SERVICE};window.location.href=`https://${g.isProduction?"":"discover."}${c.domainLocales[l]}/care/${i.localSlug}/${i.slug}-${i.id}/`}else m(!1)}catch(e){console.log(e),m(!1)}}))),[]);return o&&r?q.default.createElement(i.Button,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:h,onClick:f,loading:p},s),n||u("careBooking.bookAnAppointment")):null},re=t.memo((()=>q.default.createElement("div",{className:"shoppable"},q.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),q.default.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),le=t.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>q.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),se=t.memo((({dataEventCategoryForBookmark:e,dataEventActionForBookmark:t,dataEventLabelForBookmark:a})=>q.default.createElement("svg",{"data-event-category":e,"data-event-action":t,"data-event-label":a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"}))));var de=a.createStyles(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const ce=Q.default.a`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 125px;
|
|
4
4
|
|
|
@@ -6894,4 +6894,4 @@
|
|
|
6894
6894
|
`,ws=Q.default(vs)`
|
|
6895
6895
|
margin-top: 12px;
|
|
6896
6896
|
padding: 0.5rem 1rem 1rem;
|
|
6897
|
-
`;var Cs;!function(e){e.DUE_DATE="due-date-calculator",e.BMI="bmi",e.BMR="bmr",e.OVULATION="ovulation",e.IFRAME="IFRAME",e.PWG="pregnancy-weight-gain",e.THR="heart-rate",e.BABY_VACCINE="vaccination-tool",e.BABY_GROWTH="baby-growth-tracking",e.BABY_POOP="baby-poop-checking"}(Cs||(Cs={}));const Es={DUE_DATE:Cs.DUE_DATE,BMI:Cs.BMI,BMR:Cs.BMR,OVULATION:Cs.OVULATION,IFRAME:Cs.IFRAME,PWG:Cs.PWG,THR:Cs.THR,BABY_VACCINE:Cs.BABY_VACCINE,BABY_GROWTH:Cs.BABY_GROWTH,BABY_POOP:Cs.BABY_POOP},ks={[Es.DUE_DATE]:o.CommonGAssets.getAssetPath("health-tools/due-date-icon.svg")};var Ss,As,Ts,Ns;!function(e){e.Pregnant="pregnant",e.Parenting="parenting"}(Ss||(Ss={})),function(e){e.Option="option"}(As||(As={})),function(e){e.Button="button",e.Checkbox="checkbox"}(Ts||(Ts={})),function(e){e.ShowTool="showTool",e.ShowPremiumModal="showPremiumModal",e.ShowOptionBanner="showOptionBanner",e.Hide="hide"}(Ns||(Ns={}));const Is=e=>({[Es.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:Es.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[Es.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:Es.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[Es.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:Es.BABY_GROWTH},[c.RISK_SCREENER_NAME.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:c.RISK_SCREENER_NAME.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),Bs=t.createContext({}),Ps="api/v1/categories?site={website_url}",Ds="api/v1/subscription?site={website_url}",Ms="api/v1/categories?site={website_url}";var zs=a.createStyles((e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:a.rem(32),padding:`${a.rem(6)} ${a.rem(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}})));const Os=({heading:e,description:n,thumbnail:o={desktop:"",mobile:""},hideDescOnMobile:r,children:l})=>{const{isMobile:s,minHeight:d}=t.useContext(Bs);return q.default.createElement(a.Box,{sx:()=>({borderRadius:a.rem(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},q.default.createElement(a.Box,{sx:e=>({minHeight:a.rem(d),borderRadius:"inherit",background:`url(${s?o.mobile:o.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${a.rem(24)} ${a.rem(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${a.rem(22)} ${a.rem(32)}`}})},q.default.createElement(a.Stack,{spacing:a.rem(16)},q.default.createElement(a.Stack,{spacing:a.rem(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},e&&q.default.createElement(i.Heading,{tag:"h4"},e),!(r&&s)&&n&&q.default.createElement(i.Text,{size:"p4"},n)),q.default.createElement(a.Box,null,l))))},Ls=n=>{const{styleType:o=Ts.Button,items:l=[],buttonProps:s,styles:u,submitBtnTracking:p}=n,{classes:m}=zs(void 0,{name:"PremiumBannerWithOptions",styles:u}),{t:h,locale:g}=d.useTranslations(),{surveyType:f,articleId:b,handleClickOption:x,source:v,isMobile:y,isBack:w,hasPremiumBanner:C,setShowPNModal:E}=t.useContext(Bs),k=t.useMemo((()=>w||!C?l.filter((e=>!Boolean(e.isPNBtn))).filter(Boolean):l),[l]),{getHealthToolLink:S}=j.useHealthToolsCache(g),A=R.useForm({initialValues:{bannerOptions:[]}}),T=t=>e.__awaiter(void 0,void 0,void 0,(function*(){return yield i.callApiWithAuth(i.getApiPath(i.PATHS.HEALTH_TOOL.CREATE,{_locale:g,type:nd[f]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:t,article:b,source:v}})})),N=t.useCallback((()=>q.default.createElement(a.Flex,{gap:a.rem(8),className:m.wrapper},k.map(((e,t)=>q.default.createElement(a.Box,{key:String(t),component:e.isLink?"a":"div",href:e.isRiskScreener?`https://${c.domainLocales[g]}/bot/${c.RISK_SCREENER_SLUG[g][e.activeTool]}/`:e.isLink?S(e.activeTool):void 0},q.default.createElement(i.Button,Object.assign({className:m.button,classNames:{label:m.buttonLabel},size:"sm"},e.tracking,s,{onClick:()=>{e.isLink||(e.isPNBtn?E(!0):(T(e.value),x(e.value)))}}),e.label)))))),[k,A]),I=t.useCallback((()=>q.default.createElement(a.Flex,null,q.default.createElement(a.Flex,{align:"center",gap:a.rem(24),sx:e=>({background:"white",borderRadius:a.rem(8),padding:a.rem(4),[e.fn.largerThan("sm")]:{paddingLeft:a.rem(16)}})},q.default.createElement(i.Checkbox.Group,Object.assign({},A.getInputProps("bannerOptions",{type:"checkbox"})),q.default.createElement(a.Flex,{gap:a.rem(16)},k.map(((e,t)=>q.default.createElement(i.Checkbox,{key:String(t),value:e.value,label:e.label,styles:{label:{cursor:"pointer"}}}))))),q.default.createElement(i.Button,Object.assign({size:"sm"},p,s,{disabled:0===A.getInputProps("bannerOptions").value.length,leftIcon:y?q.default.createElement(r.Icon.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{const e=A.getInputProps("bannerOptions").value;T(e.join("|")),x(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:a.rem(38),minWidth:"auto",padding:0}}})}),!y&&h("pnBanner.submit"))))),[k,A]);return q.default.createElement(Os,Object.assign({},n),o===Ts.Button?N():o===Ts.Checkbox?I():null)},_s=e=>{var n,o;const{t:r}=d.useTranslations(),{heading:l,description:s,thumbnail:u,btnLabel:p,value:m,isRiskScreener:h,hideDescOnMobile:f,dataEventAction:b}=e,{locale:x}=d.useTranslations(),{isMobile:v}=t.useContext(Bs),{getHealthToolLink:y,allTools:w}=j.useHealthToolsCache(x),C=h?"mainBanner":"toolBanner",E=t.useMemo((()=>{const e=h?`https://${g.isProduction?"":"discover."}${c.domainLocales[x]}/bot/${c.RISK_SCREENER_SLUG[x][m]}`:y(m);return q.default.createElement("a",{href:e},q.default.createElement(i.Button,{size:"sm","data-event-category":"Focused Audience","data-event-action":b,"data-event-label":e},p||r("pnBanner.caclNow")))}),[w]);return"mainBanner"===C?q.default.createElement(Os,Object.assign({},Object.assign(Object.assign({},e),{thumbnail:e.thumbnail})),E):q.default.createElement(a.Flex,{gap:a.rem(7),align:"center",justify:"space-between",sx:e=>({borderRadius:a.rem(8),background:e.colors.blue[0],minHeight:a.rem(180),padding:`${a.rem(24)} ${a.rem(16)}`,[e.fn.largerThan("sm")]:{padding:`${a.rem(34)} ${a.rem(32)}`}})},q.default.createElement(a.Stack,{spacing:a.rem(12)},q.default.createElement(a.Stack,{spacing:a.rem(4)},l&&q.default.createElement(i.Heading,{tag:"h4"},l),!(v&&f)&&s&&q.default.createElement(i.Text,{size:"p4"},s)),q.default.createElement(a.Flex,{gap:a.rem(8),sx:{button:{minWidth:a.rem(120)}}},E)),q.default.createElement(a.Flex,{align:"center",justify:"center",sx:e=>({width:a.rem(96),height:a.rem(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:a.rem(112),height:a.rem(112)},img:{maxWidth:a.rem(64),[e.fn.largerThan("sm")]:{maxWidth:a.rem(73)}}})},q.default.createElement("img",{alt:"health-tool-icon",src:u||(null===(o=null===(n=w.filter((e=>e.template===m)))||void 0===n?void 0:n[0])||void 0===o?void 0:o.icon)||ks[m]||"",loading:"lazy"})))},Rs=()=>{var e,a,i;const{t:n}=d.useTranslations(),{state:o,Outside:r}=t.useContext(Bs);return(null==o?void 0:o.action)===Ns.ShowTool?q.default.createElement(r,null,Is(n)[null===(e=null==o?void 0:o.props)||void 0===e?void 0:e.value]?q.default.createElement(_s,Object.assign({},Is(n)[null===(a=null==o?void 0:o.props)||void 0===a?void 0:a.value],{value:null===(i=null==o?void 0:o.props)||void 0===i?void 0:i.value})):null):(null==o?void 0:o.action)===Ns.ShowOptionBanner?q.default.createElement(r,null,q.default.createElement(Ls,Object.assign({},null==o?void 0:o.props))):null},js=n=>{var{isMobile:l,children:s,desktopBanner:d=o.CommonGAssets.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:c=o.CommonGAssets.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:u={width:937,height:536},mobileBannerRatio:p={width:750,height:480},desktopBannerRatio:m={width:420,height:536},closeProps:h}=n,g=e.__rest(n,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);const{width:b,height:x}=f.useViewportSize(),v=(x<=667?190:265)+b*p.height/p.width+74,[y,w]=t.useState(!1);return q.default.createElement(L.Modal,Object.assign({styles:e=>({content:{flex:"auto",background:"transparent",[e.fn.smallerThan("sm")]:{maxHeight:"100%",height:"100%",position:"relative",borderRadius:0},[e.fn.largerThan("sm")]:{maxWidth:a.rem(u.width),width:"100%",height:"100%",maxHeight:a.rem(u.height),boxShadow:"none"}},body:{padding:0,width:"100%",height:"100%",[e.fn.largerThan("sm")]:{display:"flex",alignItems:"center"}},inner:{padding:0,[e.fn.smallerThan("sm")]:{display:"flex",alignItems:"flex-end"}}})},g),l?q.default.createElement(a.Box,{sx:{position:"relative",height:"100%"},onTouchStart:()=>w(!0)},q.default.createElement(a.Box,{className:"mobile-template",sx:{position:"absolute",height:100*(y?1:v/x)+"%",left:0,bottom:0,right:0,transition:"height 0.4s ease"}},q.default.createElement(a.Box,{sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:y?0:a.rem(12),borderTopRightRadius:y?0:a.rem(12)}},q.default.createElement(a.Box,{sx:{height:"calc(100% - 74px)",background:`url(${c})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},q.default.createElement(i.Button,Object.assign({unstyled:!0,leftIcon:q.default.createElement(r.Icon.Close,null),sx:{position:"absolute",right:0,top:"10px",zIndex:1}},h,{onClick:()=>null==g?void 0:g.onClose()})),q.default.createElement(a.AspectRatio,{ratio:(null==p?void 0:p.width)/(null==p?void 0:p.height),w:"100%"}),q.default.createElement(a.Box,{sx:{padding:`${a.rem(28)} ${a.rem(16)} ${a.rem(16)}`,background:"white"}},s))))):q.default.createElement(a.AspectRatio,{className:"desktop-template",ratio:u.width/u.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},q.default.createElement(a.Box,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:a.rem(8),background:"white",boxShadow:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"}},q.default.createElement("img",{alt:"",src:d,loading:"lazy",style:{borderTopLeftRadius:a.rem(8),borderBottomLeftRadius:a.rem(8),height:"100%",display:"block"}}),q.default.createElement(a.Box,{sx:{position:"relative",height:"100%",width:(u.width-m.width)/u.width*100+"%"}},q.default.createElement(i.Button,Object.assign({unstyled:!0,leftIcon:q.default.createElement(r.Icon.Close,null)},h,{onClick:()=>null==g?void 0:g.onClose(),sx:{position:"absolute",right:0,top:"10px"}})),q.default.createElement(a.Box,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${a.rem(40)} ${a.rem(24)} 0`}},s)))))},$s="user/subscription",Fs=t.createContext({}),Us=n=>{var o,{value:r,name:l,isMobile:s}=n,d=e.__rest(n,["value","name","isMobile"]);const c=t.useRef(null),u=t.useMemo((()=>{var e;return Boolean(null===(e=c.current)||void 0===e?void 0:e.checked)}),[null===(o=c.current)||void 0===o?void 0:o.checked]);return t.useEffect((()=>{var e,t;if(u){const a=null===(e=c.current)||void 0===e?void 0:e.querySelector(".mantine-Chip-checkIcon"),i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("width","16"),i.setAttribute("height","16"),i.setAttribute("viewBox","0 0 16 16"),i.setAttribute("fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("class","mantine-Chip-checkIcon");const n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("d","M13.32 3.99443C13.1468 3.99959 12.9825 4.07198 12.8617 4.19625L5.99973 11.0582L3.80442 8.86292C3.74299 8.79894 3.66941 8.74786 3.58799 8.71267C3.50657 8.67748 3.41895 8.65889 3.33025 8.65798C3.24156 8.65708 3.15358 8.67388 3.07146 8.70741C2.98934 8.74094 2.91474 8.79051 2.85202 8.85323C2.7893 8.91595 2.73973 8.99055 2.7062 9.07267C2.67267 9.15479 2.65587 9.24277 2.65677 9.33146C2.65768 9.42016 2.67627 9.50778 2.71146 9.5892C2.74665 9.67062 2.79773 9.7442 2.86171 9.80563L5.52838 12.4723C5.65341 12.5973 5.82295 12.6675 5.99973 12.6675C6.17651 12.6675 6.34606 12.5973 6.47108 12.4723L13.8044 5.13896C13.9008 5.04532 13.9666 4.92476 13.9932 4.79308C14.0198 4.6614 14.0061 4.52474 13.9537 4.40102C13.9013 4.2773 13.8128 4.17228 13.6998 4.09972C13.5867 4.02717 13.4543 3.99047 13.32 3.99443Z"),n.setAttribute("fill","#2D87F3"),i.appendChild(n),null===(t=null==a?void 0:a.parentNode)||void 0===t||t.replaceChild(i,a)}}),[u]),q.default.createElement(a.Chip,Object.assign({ref:c,value:r,radius:6},d,{styles:e=>({label:{display:"flex",border:"1px solid #DBDFE5 !important",borderRadius:6,padding:"8px 12px 8px 8px",height:"initial",gap:4,position:"relative","&[data-checked='true']":{borderColor:"#2D87F3 !important",backgroundColor:"#E3F2FF !important",color:"#2D87F3 !important",gap:0},"&:hover":{color:"initial",backgroundColor:"initial"},"&:not([data-checked])":{paddingLeft:36,[e.fn.smallerThan("sm")]:{paddingLeft:30},"&::before":{top:5,content:'"+"',position:"absolute",left:16,fontSize:18,color:"#262626",[e.fn.smallerThan("sm")]:{left:11}}}},input:{display:"none"}})}),q.default.createElement(i.Text,{size:s?"p3":"p4",color:"gray.7",span:!0},l))},Vs=({topicsGroup:e,onTopicChange:n,isBlock:o=!1,selectedTopics:r=[],inputProps:l,labelProps:s,maxSelect:c=5,hasScroll:u,readonly:p})=>{const{action:{pushNotifications:m}}=t.useContext(i.TogetherComponentGlobalContext),h=J.default(e.map((e=>e.topics||[]))),{t:g}=d.useTranslations(),[f,b]=t.useState([]);t.useEffect((()=>{b(r)}),[r.length]),t.useEffect((()=>{null==n||n(f)}),[f]);const x=e=>{e.length>5?m({type:"danger",title:g("pnTopicSection.maxSelectError.title",{maxSelect:c}),message:g("pnTopicSection.maxSelectError.desc")}):!p&&b((()=>h.filter((t=>e.some((e=>t.catId===e))))))};return q.default.createElement(a.Stack,{spacing:12},e.map(((e,t)=>q.default.createElement(a.Stack,{key:String(t),spacing:12},e.label&&q.default.createElement(i.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},s),e.label),u?q.default.createElement(a.ScrollArea,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},q.default.createElement(a.Box,{w:800},q.default.createElement(a.Chip.Group,Object.assign({value:f.map((e=>e.catId)),multiple:!0},l,{onChange:x}),q.default.createElement(a.Flex,{gap:8,wrap:"wrap"},e.topics.map((t=>q.default.createElement(Us,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:o},e.tracking)))))))):q.default.createElement(a.Chip.Group,Object.assign({value:f.map((e=>e.catId)),multiple:!0},l,{onChange:x}),q.default.createElement(a.Flex,{gap:8,wrap:"wrap"},e.topics.map((t=>t.catId?q.default.createElement(Us,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:o},e.tracking)):q.default.isValidElement(t.component)?t.component:null))))))))},Hs=n=>{var{heading:o,children:r,stickyActions:l}=n,s=e.__rest(n,["heading","children","stickyActions"]);const{isMobile:d}=t.useContext(Fs),c=q.default.createElement(a.Stack,{spacing:a.rem(24),sx:{height:"100%"}},q.default.createElement(i.Heading,{tag:"h4",style:{textAlign:"center"}},o),q.default.createElement(a.Box,null,r));return q.default.createElement(a.Box,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},d?c:q.default.createElement(a.ScrollArea,Object.assign({className:"layout-body",h:l?"calc(100% - 90px)":"100%"},s),c),l&&q.default.createElement(a.Flex,{gap:a.rem(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:a.rem(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${a.rem(24)} 0`}})},l))},qs=()=>{const{t:n,locale:o}=d.useTranslations(),{data:{userInfo:l},action:{pushNotifications:s}}=t.useContext(i.TogetherComponentGlobalContext),c=null==l?void 0:l.id,{currentUrl:u,isMobile:p,pnSuggestCategory:m=[],nextStep:h,formValues:g,setFormValues:f,onSubmit:b,submitLoading:x,selectCategory:v,setCategoryLibs:y,setSelectCategory:w,maxSelectCategory:C}=t.useContext(Fs),E=m.map((e=>e.catId)),k=R.useForm({validate:{name:R.isNotEmpty(n("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},g),{fitnessTopics:E})}),[S,A]=t.useState([]),[T,N]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e;try{const t=yield i.callApiWithAuth(i.getPremiumApiPath(Ms,{_locale:o}),"get"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.subscription)||[]).filter((e=>!E.includes(e.catId)));A(m),N(a),y([...m,...a])}catch(e){console.log(e)}}))}),[]),t.useEffect((()=>{c&&k.setFieldValue("name",(null==l?void 0:l.name)||"")}),[c]);const I=()=>{""!==k.getInputProps("name").value?(f(k.getTransformedValues()),h()):k.validateField("name")},B=t.useMemo((()=>q.default.createElement(i.Button,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:u,leftIcon:q.default.createElement(r.Icon.Plus,{size:16,color:"#262626",useCurrentColor:!0}),onClick:I,styles:e=>({root:{borderRadius:a.rem(6),padding:"2px 15px",height:a.rem(40)},label:{fontSize:a.rem(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:a.rem(12),lineHeight:a.rem(16),height:a.rem(40)}},leftIcon:{marginRight:"5px"}})},q.default.createElement(i.Text,{size:p?"p3":"p4"},n("home.seeMore")))),[k]);return t.useEffect((()=>{k.setFieldValue("fitnessTopics",v.map((e=>e.catId)))}),[v]),q.default.createElement("form",{style:{height:"100%"},onSubmit:k.onSubmit((e=>{if(0===v.length)return s({type:"danger",title:n("newsletter.error.minTitle"),message:n("newsletter.error.minCotennt")}),!1;f(e),null==b||b(e.name)}))},q.default.createElement(Hs,{heading:n("healthToolPNModal.heading"),stickyActions:q.default.createElement(q.default.Fragment,null,q.default.createElement(i.Button,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:u,loading:x,sx:{maxWidth:a.rem(240)}},n("healthToolPNModal.register")))},q.default.createElement(a.Stack,{spacing:a.rem(16)},q.default.createElement(i.Input,Object.assign({label:n("newsletter.welcome.description")},k.getInputProps("name"))),q.default.createElement(Vs,{topicsGroup:[...0===m.length&&0===T.length?[{topics:[{component:B}]}]:[],...m.length>0?[{label:n("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...m,...0===T.length?[{component:B}]:[]]}]:[],...T.length>0?[{label:n("healthToolPNModal.findMore.chooseFav"),topics:[...T,...T.length>0?[{component:B}]:[]]}]:[]],selectedTopics:[...S],labelProps:{size:p?"p3":"p4",color:"gray.6"},onTopicChange:w,maxSelect:C}))))},Gs=t.forwardRef((function(t,n){var{label:o}=t,r=e.__rest(t,["label"]);return q.default.createElement("div",Object.assign({ref:n},r),q.default.createElement(a.Group,{noWrap:!0},q.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72615 14.8099 11.1702 14.2653 12.3086 13.3547L15.2376 16.2837C15.5264 16.5725 15.9946 16.5725 16.2833 16.2837C16.5721 15.9949 16.5721 15.5267 16.2833 15.238L13.3544 12.3091C14.2652 11.1705 14.8099 9.72634 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"#8C8C8C"})),q.default.createElement(i.Text,{size:"p3"},o)))})),Ws=t.forwardRef((function(t,a){var{label:n}=t,o=e.__rest(t,["label"]);return q.default.createElement("div",Object.assign({ref:a},o),q.default.createElement(i.Text,{size:"p3"},n))})),Qs=({history:e,onDelete:t})=>q.default.createElement(a.Flex,{wrap:"wrap",gap:8},ee.default(e,"catId").map((e=>q.default.createElement(a.Badge,{key:e.catId,rightSection:q.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:()=>null==t?void 0:t(e)},q.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 9C1.5 4.8525 4.8525 1.5 9 1.5C13.1475 1.5 16.5 4.8525 16.5 9C16.5 13.1475 13.1475 16.5 9 16.5C4.8525 16.5 1.5 13.1475 1.5 9ZM11.1677 12.2248C11.4602 12.5173 11.9327 12.5173 12.2252 12.2248C12.5101 11.9323 12.5101 11.4523 12.2252 11.1673L10.0577 8.99979L12.2252 6.83229C12.5177 6.53979 12.5177 6.0673 12.2252 5.7748C11.9327 5.4823 11.4602 5.4823 11.1677 5.7748L9.00015 7.9423L6.83265 5.7748C6.54015 5.4823 6.06765 5.4823 5.77515 5.7748C5.63471 5.91492 5.55579 6.10516 5.55579 6.30354C5.55579 6.50193 5.63471 6.69217 5.77515 6.83229L7.94265 8.99979L5.77515 11.1673C5.63471 11.3074 5.55579 11.4977 5.55579 11.696C5.55579 11.8944 5.63471 12.0847 5.77515 12.2248C6.06765 12.5173 6.54015 12.5173 6.83265 12.2248L9.00015 10.0573L11.1677 12.2248Z",fill:"#8C8C8C"})),styles:{root:{height:32,background:"#ffffff",padding:"5px 12px",border:`1px solid ${i.themeColors.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},q.default.createElement(i.Text,{size:"p4"},e.localName))))),Zs=({topics:e,onTopicChange:n,isBlock:o=!1,selectedTopics:r,labelProps:l,maxSelect:s=5})=>{const{action:{pushNotifications:c}}=t.useContext(i.TogetherComponentGlobalContext),[u,p]=t.useState([]),{t:m}=d.useTranslations();t.useEffect((()=>{p(r)}),[r.length]),t.useEffect((()=>{n(u)}),[u]);return e&&0!==e.length?q.default.createElement(a.Stack,{spacing:12,px:16,mx:-16},q.default.createElement(i.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},l),m("pnTopicSection.recentView")),q.default.createElement(a.Chip.Group,{value:u.map((e=>e.catId)),onChange:t=>{o&&u.length<t.length?c({type:"danger",title:m("pnTopicSection.maxSelectError.title",{maxSelect:s}),message:m("pnTopicSection.maxSelectError.desc")}):p((()=>e.filter((e=>t.some((t=>e.catId===t))))))},multiple:!0},q.default.createElement(a.Flex,{gap:8,wrap:"wrap"},e.map(((e,t)=>q.default.createElement(Us,{key:t,value:e.catId,name:e.localName,isBlock:o})))))):null},Xs=t=>{var{topic:n,active:o,onClick:r}=t,l=e.__rest(t,["topic","active","onClick"]);return q.default.createElement(a.Box,Object.assign({sx:e=>({position:"relative",cursor:"pointer",padding:2,borderRadius:8,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04)",minHeight:a.rem(130),[e.fn.largerThan("sm")]:{minHeight:a.rem(138)}}),onClick:()=>r(n,o)},l),o&&q.default.createElement(a.Box,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},q.default.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66699 9.99984C1.66699 5.39984 5.40033 1.6665 10.0003 1.6665C14.6003 1.6665 18.3337 5.39984 18.3337 9.99984C18.3337 14.5998 14.6003 18.3332 10.0003 18.3332C5.40033 18.3332 1.66699 14.5998 1.66699 9.99984ZM4.75066 10.5827L7.74232 13.5744C8.06732 13.8994 8.60066 13.8994 8.91732 13.5744L15.2423 7.2494C15.5673 6.9244 15.5673 6.3994 15.2423 6.0744C14.9173 5.7494 14.3923 5.7494 14.0673 6.0744L8.33399 11.8077L5.92566 9.40773C5.60066 9.08273 5.07566 9.08273 4.75066 9.40773C4.59461 9.56342 4.50692 9.7748 4.50692 9.99523C4.50692 10.2157 4.59461 10.427 4.75066 10.5827Z",fill:"#2D87F3"}),q.default.createElement("path",{d:"M7.74224 13.5772L4.75057 10.5856C4.59453 10.4299 4.50684 10.2185 4.50684 9.99808C4.50684 9.77765 4.59453 9.56627 4.75057 9.41058C5.07557 9.08558 5.60057 9.08558 5.92557 9.41058L8.33391 11.8106L14.0672 6.07725C14.3922 5.75225 14.9172 5.75225 15.2422 6.07725C15.5672 6.40225 15.5672 6.92725 15.2422 7.25225L8.91724 13.5772C8.60057 13.9022 8.06724 13.9022 7.74224 13.5772Z",fill:"white"}))),q.default.createElement(a.Box,{sx:{borderRadius:"8px"}},q.default.createElement(i.AspectRatio,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},q.default.createElement(a.Box,null,q.default.createElement("img",{src:n.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),q.default.createElement(i.Text,{size:"p4",ta:"center",px:6,sx:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},n.localName||""))},Ys=({topics:e,selectedTopics:n=[],onTopicChange:o,isBlock:r=!1,labelProps:l,pushNotifications:s,maxSelect:c=5})=>{const{t:u}=d.useTranslations(),[p,m]=t.useState([]),h=(e,t)=>{if(t)m((t=>t.filter((t=>t.catId!==e.catId))));else{if(r)return void s({type:"danger",title:u("pnTopicSection.maxSelectError.title",{maxSelect:c}),message:u("pnTopicSection.maxSelectError.desc")});m((t=>[...t,e]))}};t.useEffect((()=>{m(n)}),[n.length]),t.useEffect((()=>{o(p)}),[p]);const[g,f]=t.useState(!1),[b,x]=t.useState(0),[v,y]=t.useState(0),w=t.useRef(null),C=()=>{f(!1)};return q.default.createElement(a.Stack,{spacing:10},q.default.createElement(a.Flex,{justify:"space-between",align:"center",w:"100%"},q.default.createElement(i.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},l),u("pnTopicSection.trending"))),q.default.createElement(a.Box,null,q.default.createElement(a.ScrollArea,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:w,viewportProps:{onMouseDown:e=>{e.preventDefault(),w.current&&(f(!0),x(e.pageX-w.current.offsetLeft),y(w.current.scrollLeft))},onMouseUp:C,onMouseLeave:C,onMouseMove:e=>{if(e.preventDefault(),!g||!w.current)return;const t=2*(e.pageX-w.current.offsetLeft-b);w.current.scrollLeft=v-t}},styles:{viewport:{paddingBottom:16}}},q.default.createElement(a.Box,{w:{base:112*e.length+8*(e.length-1)+10}},q.default.createElement(a.Flex,{gap:8},e.map(((e,t)=>q.default.createElement(Xs,{key:t,topic:e,onClick:h,active:p.some((t=>t.catId===e.catId)),w:{base:112}}))))))))},Ks=n=>{var{isLoggedIn:o,maxSelect:r=5,values:l=[],labelProps:s,onChange:c}=n,u=e.__rest(n,["isLoggedIn","maxSelect","values","labelProps","onChange"]);const{action:{pushNotifications:p}}=t.useContext(i.TogetherComponentGlobalContext),[m,h]=t.useState(""),{t:g,locale:f}=d.useTranslations(),b=t.useRef(null),[x,v]=t.useState([]),[y,w]=t.useState([]),[C,E]=t.useState([]),[k,S]=t.useState([]),[A,T]=t.useState(null),[N,I]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e,t;const a=yield i.callApiWithAuth(i.getPremiumApiPath(Ps,{_locale:f}),"get"),n=(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.interested)||[],o=(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.trending)||[],r=ee.default([...n,...o],"catId").map((e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""})));if(I(r||[]),T((null==a?void 0:a.data)||null),l.length>0){const e=n.filter((e=>l.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"interested"}))),t=o.filter((e=>l.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"trending"})));S(e),w(t)}}))}),[o]);const B=t.useMemo((()=>ee.default([...x,...y,...k,...C],"catId")),[x,y,k,C]),[P,D]=t.useState(!1);t.useEffect((()=>{B.length>=r?D(!0):D(!1),null==c||c(B)}),[B]);return q.default.createElement(a.Stack,Object.assign({spacing:a.rem(16)},u),q.default.createElement(a.Stack,{spacing:a.rem(8)},q.default.createElement(i.Text,{size:"p3"},g("pnTopicSection.maxSelectError.detail",{max:r,maxTopic:B.length})),q.default.createElement(a.MultiSelect,{ref:b,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:i.themeColors.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:q.default.createElement(i.Text,{size:"s4",color:"gray.6"},g("pnTopicSection.notFound")),itemComponent:""===m?Gs:Ws,size:"lg",placeholder:g("pnTopicSection.plsEnterFavTopics"),data:N,onSearchChange:h,searchValue:m,icon:q.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9682 19.7465 14.8936 19.0205 16.4115 17.8063L20.3168 21.7116C20.7018 22.0966 21.3261 22.0966 21.7111 21.7116C22.0961 21.3266 22.0961 20.7023 21.7111 20.3173L17.8059 16.4121C19.0203 14.894 19.7465 12.9684 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#595959"})),rightSection:q.default.createElement(q.default.Fragment,null),zIndex:500,searchable:!0,withinPortal:!0,onChange:t=>{return a=t,e.__awaiter(void 0,void 0,void 0,(function*(){var e;const t={trending:w,recently:E,interested:S,default:v};let i="default";if(P)p({type:"danger",title:g("pnTopicSection.maxSelectError.title",{maxSelect:r}),message:g("pnTopicSection.maxSelectError.desc")});else{const n=[{key:"trending",array:null==A?void 0:A.trending},{key:"recently",array:null==A?void 0:A.recently},{key:"interested",array:null==A?void 0:A.interested}].find((e=>{var t;return null===(t=e.array)||void 0===t?void 0:t.some((e=>e.catId===a[0]))}));i=(null==n?void 0:n.key)||"default",t[i]((e=>[...e,...N.filter((e=>a.some((t=>e.catId===t))))].map((e=>Object.assign(Object.assign({},e),{template:i}))))),null===(e=b.current)||void 0===e||e.blur()}return null}));var a},value:[]}),B&&B.length>0&&q.default.createElement(Qs,{history:B,onDelete:e=>{const t={trending:w,recently:E,interested:S,default:v};(t[e.template]||t.default)((t=>{const a=[...t],i=a.findIndex((t=>t.catId===e.catId));return a.splice(i,1),a}))}})),q.default.createElement(a.Box,{sx:e=>({position:"relative",height:a.rem(175),[e.fn.largerThan("sm")]:{height:a.rem(190)}})},q.default.createElement(a.Box,{sx:{position:"absolute",top:0,right:0,left:0}},q.default.createElement(Ys,{topics:((null==A?void 0:A.trending)||[]).map((e=>Object.assign(Object.assign({},e),{template:"trending"}))),selectedTopics:y,onTopicChange:w,isBlock:P,labelProps:s}))),q.default.createElement(Zs,{topics:((null==A?void 0:A.recently)||[]).map((e=>Object.assign(Object.assign({},e),{template:"recently"}))),selectedTopics:C,onTopicChange:E,isBlock:P,labelProps:s}),q.default.createElement(Vs,{labelProps:s,topicsGroup:[{label:g("pnTopicSection.ppAlsoInterested"),topics:((null==A?void 0:A.interested)||[]).map((e=>Object.assign(Object.assign({},e),{template:"interested"})))}],selectedTopics:k,onTopicChange:S,isBlock:P}))},Js=()=>{const{t:e}=d.useTranslations(),{action:{pushNotifications:n}}=t.useContext(i.TogetherComponentGlobalContext),{prevStep:o,formValues:r,submitLoading:l,onSubmit:s,selectCategory:c,maxSelectCategory:u,setSelectCategory:p,currentUrl:m,isLoggedIn:h}=t.useContext(Fs);return q.default.createElement(Hs,{heading:e("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:a.rem(25)}},stickyActions:q.default.createElement(q.default.Fragment,null,q.default.createElement(i.Button,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:m,onClick:o},e("healthToolPNModal.back")),q.default.createElement(i.Button,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:m,onClick:()=>{if(0===c.length)return n({type:"danger",title:e("newsletter.error.minTitle"),message:e("newsletter.error.minCotennt")}),!1;null==s||s(r.name)},loading:l},e("healthToolPNModal.next")))},q.default.createElement(Ks,{isLoggedIn:h,maxSelect:u,values:r.fitnessTopics,onChange:p,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},ed=()=>{const{t:e}=d.useTranslations(),{close:n,selectCategory:o,onRegisterSuccess:r,currentUrl:l,finishLabelOnResult:s,disclaimerText:c}=t.useContext(Fs);return t.useEffect((()=>()=>{setTimeout((()=>{null==r||r()}),400)}),[]),q.default.createElement(Hs,{heading:e("healthToolPNModal.heading"),stickyActions:q.default.createElement(i.Button,{fullWidth:!0,sx:{maxWidth:a.rem(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:l,onClick:()=>{n()}},s||e("healthToolPNModal.finish"))},q.default.createElement(a.Stack,null,q.default.createElement(a.Flex,{gap:a.rem(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:a.rem(8),padding:a.rem(8)})},q.default.createElement(a.Box,null,q.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M9.99984 18.3334C14.6022 18.3334 18.3332 14.6025 18.3332 10.0001C18.3332 5.39771 14.6022 1.66675 9.99984 1.66675C5.39746 1.66675 1.6665 5.39771 1.6665 10.0001C1.6665 14.6025 5.39746 18.3334 9.99984 18.3334Z",fill:"#00B16A"}),q.default.createElement("path",{d:"M9.58558 12.6674C9.22944 12.668 8.87668 12.5983 8.54752 12.4623C8.21835 12.3264 7.91925 12.1268 7.66732 11.8751L6.68587 10.8931C6.55607 10.7587 6.48424 10.5787 6.48587 10.3919C6.48749 10.2051 6.56243 10.0263 6.69455 9.89422C6.82667 9.7621 7.00539 9.68716 7.19222 9.68554C7.37906 9.68391 7.55906 9.75574 7.69345 9.88554L8.67491 10.8675C8.79344 10.986 8.93415 11.08 9.08902 11.1442C9.24389 11.2083 9.40987 11.2413 9.5775 11.2413C9.74513 11.2413 9.91111 11.2083 10.066 11.1442C10.2208 11.08 10.3616 10.986 10.4801 10.8675L16.7033 5.24335C16.8443 5.12184 17.0272 5.06032 17.213 5.07195C17.3987 5.08358 17.5726 5.16744 17.6973 5.30558C17.8221 5.44373 17.8878 5.6252 17.8805 5.81118C17.8731 5.99717 17.7933 6.17291 17.6581 6.30081L11.4592 11.8998C11.2128 12.1448 10.9205 12.3387 10.5989 12.4705C10.2774 12.6022 9.93304 12.6692 9.58558 12.6674Z",fill:"white"}))),q.default.createElement(i.Text,{size:"p3"},c||e("pnModal.disclaimer"))),q.default.createElement(i.Heading,{tag:"h5"},e("healthToolPNModal.yourPre")),o.length>0&&q.default.createElement(Vs,{topicsGroup:[{label:"",topics:o}],selectedTopics:o,readonly:!0})))},td=({isMobile:n,isLoggedIn:r,pnSuggestCategory:l=[],acquisitionInfo:s,currentUrl:p,opened:m,close:h,finishLabelOnResult:g,onRegisterSuccess:f,disclaimerText:b})=>{const{t:x,locale:v}=d.useTranslations(),{action:{pushNotifications:y}}=t.useContext(i.TogetherComponentGlobalContext),w=o.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),C=o.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[E,k]=t.useState([]),[S,A]=t.useState([]),[T,N]=t.useState(0),[I,B]=t.useState({name:"",fitnessTopics:[]}),[P,D]=t.useState(!1),M=()=>N(2),z=t.useCallback((t=>e.__awaiter(void 0,void 0,void 0,(function*(){try{D(!0),yield i.callApiWithAuth(i.getPremiumApiPath(Ds,{website_url:i.getWebsiteUrlApi(v)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:K.default.get(c.GA_TOKEN_COOKIE),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},s.userInfo),{name:t||I.name,type_subscription:1}),domain:c.domainLocales[v||u.LOCALE.Vietnam],category:S,perferred:s.preferredTopics.map((({id:e})=>({id:e})))}}),D(!1),yield i.callApiWithAuth(i.getSsoApiPath($s),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),M()}catch(e){console.log({err:e}),D(!1),y({title:x("notification.comment.somethingWrong"),message:"",type:"danger"})}}))),[I,S]);return t.useEffect((()=>{[w,C].forEach((e=>{(new Image).src=e}))}),[]),q.default.createElement(Fs.Provider,{value:{currentUrl:p,isMobile:n,isLoggedIn:r,opened:m,close:h,pnSuggestCategory:l,nextStep:()=>N((e=>e<3?e+1:e)),prevStep:()=>N((e=>e>0?e-1:e)),lastStep:M,categoryLibs:E,setCategoryLibs:k,selectCategory:S,setSelectCategory:A,formValues:I,setFormValues:B,maxSelectCategory:5,submitLoading:P,onSubmit:z,onRegisterSuccess:f,finishLabelOnResult:g,disclaimerText:b}},q.default.createElement(js,{isMobile:n,desktopBanner:o.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:o.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:m,onClose:h,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:p}},q.default.createElement(a.Stepper,{active:T,onStepClick:N,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},q.default.createElement(a.Stepper.Step,null,q.default.createElement(qs,null)),q.default.createElement(a.Stepper.Step,null,q.default.createElement(Js,null)),q.default.createElement(a.Stepper.Step,null,q.default.createElement(ed,null)))))},ad=()=>{const{locale:a}=d.useTranslations(),{isMobile:n,isLoggedIn:o,currentUrl:r,acquisitionInfo:l,categoryIds:s,state:c,setState:u,settings:p,submitHandler:m,subcribeHealthStatus:h,showPNModal:g,setShowPNModal:f,setIsBack:b}=t.useContext(Bs),[x,v]=t.useState([]),[y,w]=t.useState(g);return t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e,t;const n=yield i.callApiWithAuth(i.getPremiumApiPath(Ps,{_locale:a}),"get"),o=[...(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.interested)||[],...(null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.trending)||[]];v(o.filter((e=>s.includes(Number(e.catId)))))}))}),[]),t.useEffect((()=>{const e=(null==h?void 0:h.value)||"",t=e.split("|").filter(Boolean);let a=e;t.length>1&&(b(!0),Object.keys(m).map((e=>{const i=e.split("|");if(t.length===i.length){let n=0;t.map((e=>{i.includes(String(e))&&(n+=1)})),n===t.length&&(a=e)}})));const i=t.length>0?m[a]:p;u(i)}),[h]),t.useEffect((()=>{w(g)}),[g]),(null==c?void 0:c.action)!==Ns.Hide?q.default.createElement(q.default.Fragment,null,q.default.createElement(Rs,Object.assign({},p.props)),q.default.createElement(td,{acquisitionInfo:l,isMobile:n,isLoggedIn:o,currentUrl:r,pnSuggestCategory:x,opened:y,close:()=>{var e;w(!1),f(!1),setTimeout((()=>{var e;(null===(e=c.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&u({action:Ns.Hide})}),400),(null===(e=c.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&u({action:Ns.Hide})},onRegisterSuccess:()=>w(!1)})):null},id={pregnancy:Ss.Pregnant,parenting:Ss.Parenting},nd={[Ss.Pregnant]:"pregnant",[Ss.Parenting]:"parent"};exports.API_DATE_FORMAT=gi,exports.AdBlock=Pn,exports.AffiliateIcon=re,exports.AuthorBadge=ie,exports.Body=({children:e,className:t,style:a,isHoverable:i,isStriped:n})=>q.default.createElement(tt,{className:t,style:a,"data-is-striped":n||void 0,"data-is-hoverable":i||void 0},e),exports.BookingBtn=oe,exports.BookmarkedIcon=le,exports.CardAuthor=Xo,exports.CardReactions=Yn,exports.Cell=({children:e,className:t,style:a,textAlign:i,isTableHead:n})=>q.default.createElement(Ye,{className:t,style:a,"data-text-align":i||"left",as:n?"th":"td"},e),exports.Close=ne,exports.DatePicker=ge,exports.DateToInputValue=fi,exports.DoctorInfo=Ue,exports.Dropdown=Ce,exports.FormControl=Pi,exports.FormControl$1=Ki,exports.FormControl$2=an,exports.Head=({isSticky:e,children:t,className:a,style:i})=>q.default.createElement(et,{className:a,"data-is-sticky":e||void 0,style:i},q.default.createElement(Je,null,t)),exports.LabelSortPin=eo,exports.LabelSorting=({onChange:e,className:a,style:n,leftLabel:o,rightLabel:r,color:l,value:s,choices:d})=>{const{data:{env:{isMarryBaby:c}}}=t.useContext(i.TogetherComponentGlobalContext);return q.default.createElement(eo,{label:o,rightLabel:q.default.createElement(no,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:d.map((t=>({label:t.label,onClick:()=>e&&e(String(t.value)),selected:t.value===s,className:"bold-item"})))},toggleButtonContent:q.default.createElement("div",{style:{display:"flex"}},q.default.createElement(S.Text,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},r),q.default.createElement("img",{src:c?"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M8 14L12 18L16 14' stroke='%233E3F58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16 10L12 6L8 10' stroke='%233E3F58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.49992 7H11.4998C11.6352 7 11.7525 6.94506 11.8514 6.83509C11.9502 6.72515 11.9999 6.59496 11.9999 6.44449C11.9999 6.29402 11.9503 6.16389 11.8514 6.0538L8.35141 2.16491C8.25252 2.05509 8.13538 2 7.99988 2C7.86437 2 7.74723 2.05509 7.64826 2.16491L4.1483 6.0538C4.04932 6.16377 3.99988 6.29402 3.99988 6.44449C3.99988 6.59493 4.04932 6.72515 4.1483 6.83509C4.24738 6.94506 4.36452 7 4.49992 7Z' fill='%238C8C8C'/%3e%3cpath d='M11.4998 9H4.49992C4.36441 9 4.24727 9.05497 4.1483 9.16482C4.04932 9.2748 3.99988 9.40496 3.99988 9.55543C3.99988 9.7059 4.04932 9.83616 4.1483 9.94607L7.64826 13.835C7.74734 13.9449 7.86448 14 7.99988 14C8.13527 14 8.25252 13.9449 8.35141 13.835L11.8514 9.94604C11.9502 9.83616 11.9999 9.7059 11.9999 9.5554C11.9999 9.40496 11.9503 9.2748 11.8514 9.16479C11.7525 9.05485 11.6352 9 11.4998 9Z' fill='%238C8C8C'/%3e%3c/svg%3e",style:{width:16,height:16,alignSelf:"center"},loading:"lazy"}))}),color:"gray",className:a,style:n})},exports.Loading=_n,exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=nd,exports.MAPPING_CATEGORY_PREMIUM_TYPE=id,exports.MainInputTriggerContext=Rr,exports.MenuLink=({icon:e,isActive:t,children:a,isCollapsed:i,activeIcon:n,onLinkClick:o,textSize:r="base",textType:l="bold",textColorActive:s="#fff",textColor:d="#595959"})=>q.default.createElement(He,{"data-is-link-active":t||void 0,onClick:o,"data-is-link-collapsed":i||void 0},t&&n?n:e,!i&&q.default.createElement(S.Text,{size:r,type:l,color:t?s:d},a)),exports.MobileBottomNavigation=Pt,exports.MobileBottomNavigationIcon=Bt,exports.OvulationCalculator=({locale:e,onSubmitOvulation:a,isSide:n,siteType:o})=>{const{t:r}=d.useTranslations(),[l,s]=t.useState(rn.trackPeriod),c=[{label:r("ovulationPage.trackPeriod"),value:rn.trackPeriod},{label:r("ovulationPage.conceive"),value:rn.conceive},{label:r("ovulationPage.avoidPregnancy"),value:rn.avoidPregnancy}];return q.default.createElement(yi,null,q.default.createElement(ci,{className:"input-form input-section","data-is-side":!0},"marryBaby"===o?q.default.createElement(si,{groupedWithLabel:r("dueDatePage.calculationMethod"),options:c,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:c[l],onChange:e=>{s(e.value)}}):q.default.createElement(q.default.Fragment,null,q.default.createElement(i.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},r("ovulationPage.objectives")),q.default.createElement(ui,{"data-is-side":n},q.default.createElement(Ce,{options:c,placeholder:r("ovulationPage.trackPeriod"),id:"due-date-dropdown",size:"md",value:c[l],onChange:e=>{s(e.value)}})))),q.default.createElement(on,{siteType:o,locale:e,onSubmit:({startDate:e,cycle:t,periodLength:i})=>{a&&a({method:l,periodDateStart:e,cycle:t,periodLength:i})},isSide:n}))},exports.PopoverMenu=io,exports.PopupDoctor=Bo,exports.PopupExpert=Ro,exports.PopupFrame=Lr,exports.PopupHospital=Vo,exports.PostContent=Gr,exports.ProfileDetail=Jl,exports.ProfileDetailModal=Qo,exports.Radio=te,exports.RadioGroup=_e,exports.RichTextEditor=({html:a,onChange:n,className:o,style:r,onImagePickerClick:l,bannedWords:s=[],onInvalidUrlsChange:d,onPreviewUrlChange:c,setEditorRef:u,isReplying:p})=>{var m,h,g,f;const b=t.useRef([]);b.current=s;const[y,w]=t.useState([]),[C,E]=t.useState(null),{data:{locale:k}}=t.useContext(i.TogetherComponentGlobalContext),A=(null==s?void 0:s.join(","))||"";t.useEffect((()=>{var e,t;const a=null===(t=null===(e=z.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;I(a)}),[A]);const T=e=>{C&&C.url===e||(E({url:e,isFetching:!0}),i.callApi(i.getApiPath(i.PATHS.FETCH_PREVIEW,{_locale:k}),"POST",{data:{link:e}}).then((t=>{var a,i,n,o;E({title:null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.title,description:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.description,image:(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.image)||(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.logo),url:e})})).catch((()=>{E(null)})))},N=t.useRef(T);N.current=T;const I=t.useCallback(Z.default((e=>{if(e){const t=Sr(e,{bannedWords:b.current,formatUrl:!0}),{invalidUrls:a,previewUrl:i,value:o}=t;a&&w(a),i?N.current(i):E(null),o!==e&&(null==n||n(o))}}),500),[]);t.useEffect((()=>{d&&d(y)}),[y]),t.useEffect((()=>{c&&((null==C?void 0:C.url)?c({title:C.title||"",url:C.url||"",image:C.image||"",description:C.description||""}):c(null))}),[C]);const B=t.useRef(l);B.current=l;const P=_.useUniqueId(),D=t.useRef({toolbar:{handlers:{image:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.call(B)},link:()=>!1},container:"#toolbar-"+P},preserveWhiteSpace:!0}),M=t.useRef(-1),z=t.useRef(null);u&&(null===(h=null===(m=z.current)||void 0===m?void 0:m.getEditor())||void 0===h?void 0:h.root)&&u(null===(f=null===(g=z.current)||void 0===g?void 0:g.getEditor())||void 0===f?void 0:f.root);const O=()=>{var e,t,a,i,n,o,r,l;if(null===(t=null===(e=z.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Er(null===(i=null===(a=z.current)||void 0===a?void 0:a.getEditor())||void 0===i?void 0:i.root),t=null===(o=null===(n=z.current)||void 0===n?void 0:n.getEditor())||void 0===o?void 0:o.root.innerHTML;if(e>=0&&e<t.length){if(hr(t,!0).length<30-(p?1:0)){const e=function(e){var t,a;let i=null;if(void 0!==window.getSelection){const n=window.getSelection();if((null==n?void 0:n.rangeCount)&&(null==n?void 0:n.rangeCount)>0){const n=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(n){const t=n.cloneRange();t.selectNodeContents(e),t.setEnd(n.endContainer,n.endOffset);const o=(t.endContainer.nodeValue||"").substring(0,n.endOffset),r=o.lastIndexOf("@");if(r+1<o.length&&(0===r||" @"===o.slice(r-1,r+1))){const e=null===(a=o.slice(r+1))||void 0===a?void 0:a.trim();if(e){t.setStart(n.endContainer,r);const a=t.cloneRange();a.setStart(a.endContainer,r),i={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return i}(null===(l=null===(r=z.current)||void 0===r?void 0:r.getEditor())||void 0===l?void 0:l.root);e?(F(e.name,e.rect),H.current=e.replaceRange):(H.current=null,F("",null))}else H.current=null,F("",null);M.current=e}}else R([])},[L,R]=t.useState([]),[j,$]=t.useState({top:0,left:0}),F=t.useCallback(Z.default(((t,a,n)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,o,r,l;if(!t||!DOMRect)return R([]);const s=yield((null===(e=x.getCookie(i.BEARER_TOKEN_COOKIE))||void 0===e?void 0:e.length)||0)>0?i.callApiWithAuth(i.getApiPath(i.PATHS.SEARCH_USER,{_locale:k,name:t}),"get"):i.callApiWithAdminAuth(i.getApiPath(i.ADMIN_PATHS.SEARCH_USER,{_locale:k,name:t}),"get");Q(0),R(null===(r=null===(o=null==s?void 0:s.data)||void 0===o?void 0:o.users)||void 0===r?void 0:r.filter((e=>!(null==n?void 0:n.includes(String(e.id))))));const d=a,c=null===(l=V.current)||void 0===l?void 0:l.getBoundingClientRect();if(d&&c){const e=343,t=256,a={top:d.bottom-c.top,width:"min(343px, 100%)",maxHeight:t};c.width-(d.left-c.left)<e?a.right=0:a.left=d.left-c.left,$(a)}}))),500),[]),U=(e,t)=>{var a,i,n;if(H.current){H.current.deleteContents();const o=document.createElement("mention");o.setAttribute("data-id",e),o.setAttribute("data-name",t),o.innerText=t;const r=document.createTextNode(" ");H.current.insertNode(r),H.current.insertNode(o);(null===(i=null===(a=z.current)||void 0===a?void 0:a.getEditor())||void 0===i?void 0:i.root).focus();const l=null===(n=window.getSelection())||void 0===n?void 0:n.getRangeAt(0);null==l||l.setStart(H.current.endContainer,H.current.endOffset),null==l||l.setEnd(H.current.endContainer,H.current.endOffset)}R([])},V=t.useRef(null),H=t.useRef(null),G=t.useRef(null),[W,Q]=t.useState(0);return t.useEffect((()=>{if(G.current){const e=G.current,t=e.children.item(W);if(t){const a=e.getBoundingClientRect(),i=t.getBoundingClientRect();t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:t.offsetTop+i.height>e.scrollTop+a.height&&(e.scrollTop=t.offsetTop-a.height+i.height)}}}),[W]),t.useEffect((()=>{const e=function(e){var t;(null===(t=V.current)||void 0===t?void 0:t.contains(e.target))||R([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),q.default.createElement(wr,{ref:V,className:o,style:r,onKeyDownCapture:e=>{if(null==L?void 0:L.length){let t=!1;if("ArrowDown"===e.key)t=!0,Q((e=>e+1>=L.length?0:e+1));else if("Escape"===e.key)t=!0,Q(0),R([]);else if("ArrowUp"===e.key)t=!0,Q((e=>e-1<0?L.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=L[W];e&&(t=!0,U(e.id,e.name))}if(t)return e.preventDefault(),!1}}},q.default.createElement(Ar,{id:P,onAddLink:(e,t)=>{var a,i;const o=M.current+1,r=null===(i=null===(a=z.current)||void 0===a?void 0:a.getEditor())||void 0===i?void 0:i.root.innerHTML,l=((null==r?void 0:r.substring(0,o))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==r?void 0:r.substring(o))||"");null==n||n(l),I(l)}}),Cr&&q.default.createElement(Cr,{ref:z,theme:"snow",value:a,onChange:e=>{null==n||n(e),I(e),O()},onChangeSelection:()=>{O()},modules:D.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==L?void 0:L.length)&&q.default.createElement("div",{ref:G,className:"mention-search-container",style:j},L.map(((e,t)=>q.default.createElement("div",{className:"mention-search-item "+(W===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),U(e.id,e.name)},onMouseEnter:()=>{Q(t)}},q.default.createElement(v.UserAvatar,{className:"search-avatar",username:e.name,avatar:e.avatar}),q.default.createElement("div",null,q.default.createElement(S.Text,{size:"p2"},e.name),q.default.createElement(S.Text,{size:"p4",color:"#595959"},"@",e.username)))))))},exports.Row=Je,exports.ShareBox=Fr,exports.SharePopup=({trackingCategory:e,className:n,style:o,url:r,avatar:s,text:c,onClose:u})=>{const{data:{env:{isMarryBaby:p}}}=t.useContext(i.TogetherComponentGlobalContext),{t:m}=d.useTranslations(),[h,g]=t.useState(!1);return t.useEffect((()=>(l.toggleNoScroll(!0),setTimeout((()=>g(!0)),0),()=>l.toggleNoScroll(!1))),[]),q.default.createElement(a.Portal,null,q.default.createElement(Ur,{"data-is-marrybaby":p,className:n,style:o},q.default.createElement(Lr,{className:"share-popup",isOpen:h,onClose:u,heading:m("bottomBar.share")},p?q.default.createElement(S.Text,{className:"share-mb-text",size:"sm"},m("article.shareOn")):q.default.createElement("div",{className:"custom-share__header"},s&&q.default.createElement("div",{className:"custom-share__header-image"},q.default.createElement("img",{src:s,loading:"lazy"})),q.default.createElement("div",{className:"custom-share__header-info"},q.default.createElement(i.Heading,{tag:"h4"},c),q.default.createElement(S.Text,{className:"desc",size:"md"},r))),h&&q.default.createElement(Fr,{trackingCategory:e,shareUrl:r||("undefined"!=typeof window?window.location.href:""),title:c}))))},exports.SideHeader=({isCollapsed:e,defaultLogo:t,onBackClick:a,customIcon:i})=>q.default.createElement(je,null,q.default.createElement(k.Logo,{type:e?"logomark":t||"hellocare",customSize:{width:e?"24px":"77px",height:"24px"}}),q.default.createElement($e,{"data-is-collapsed":e||void 0,onClick:a},i||q.default.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 20 20",width:"20px",height:"20px"},q.default.createElement("path",{d:"M10 .75A9.25 9.25 0 1019.25 10 9.25 9.25 0 0010 .75z",fill:"none",stroke:"#d2d6dc",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),q.default.createElement("path",{d:"M11.44 6.53L8 10l3.48 3.47",fill:"none",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})))),exports.SideMenu=({isCollapsed:e,className:t,style:a,children:i})=>q.default.createElement(Re,{style:a,className:t,"data-is-collapsed":e||void 0},i),exports.SourceList=vs,exports.StyleForm=Gi,exports.StyledAcceptButton=Et,exports.StyledAcceptCardContainer=vt,exports.StyledActive=Ci,exports.StyledArrowWrapper=il,exports.StyledBabyGrowthWrapper=qi,exports.StyledBreadcrumbContainer=Ie,exports.StyledBreadcrumbWrapper=Be,exports.StyledButton=Ni,exports.StyledButton$1=Xi,exports.StyledButton$2=en,exports.StyledButtonGroup=Ct,exports.StyledCalendarCellsWrapper=sn,exports.StyledCalendarDateGrid=fn,exports.StyledCalendarDayLabel=pn,exports.StyledCalendarDayNumber=xn,exports.StyledCalendarDayNumberWrapper=bn,exports.StyledCalendarDaysOfWeek=un,exports.StyledCalendarDaysWrapper=hn,exports.StyledCalendarHead=dn,exports.StyledCalendarMonthSeparator=mn,exports.StyledCalendarMonthWrapper=gn,exports.StyledCalendarWrapper=ln,exports.StyledCalendarWrapper$1=yn,exports.StyledCardLink=Rn,exports.StyledCardPost=ys,exports.StyledCardPost$1=ts,exports.StyledCategoryCard=ce,exports.StyledCheckboxGroup=ue,exports.StyledCircleArrow=nl,exports.StyledContainer=Ai,exports.StyledContainer$1=Bi,exports.StyledContainer$2=Yi,exports.StyledContainer$3=tn,exports.StyledContent=Si,exports.StyledCreateNewPost=Yo,exports.StyledCreatePostDescription=yr,exports.StyledCreatePostTitle=Ir,exports.StyledDescription=wt,exports.StyledDescriptionWrapper=Qe,exports.StyledDetailStep=Pe,exports.StyledDetailStepDescription=Oe,exports.StyledDetailStepIndicator=De,exports.StyledDetailStepIndicatorExternal=Me,exports.StyledDetailStepLabel=ze,exports.StyledDot=We,exports.StyledDropDown=si,exports.StyledError=Jo,exports.StyledFixedAdBlock=En,exports.StyledFloatButtonGroup=ut,exports.StyledFloatButtonGroupBackgroundPanel=pt,exports.StyledFloatButtonGroupButton=ft,exports.StyledFloatButtonGroupButtonIcon=xt,exports.StyledFloatButtonGroupButtonLabel=bt,exports.StyledFloatButtonGroupContent=mt,exports.StyledFloatButtonGroupItemsWrapper=ht,exports.StyledFloatButtonGroupToggleIcon=gt,exports.StyledFormInput=wi,exports.StyledIcon=sl,exports.StyledIconText=Ee,exports.StyledImagePreviewContainer=el,exports.StyledImagePreviewPopup=Kr,exports.StyledImagePreviewTopbar=tl,exports.StyledImagePreviewWrapper=al,exports.StyledInner=ll,exports.StyledInput=Ii,exports.StyledInputCommentBar=_r,exports.StyledInputForm=xi,exports.StyledInputWrapper=yi,exports.StyledIsQuestion=Ko,exports.StyledLastPeriodFormContainer=pi,exports.StyledMethodContainer=ci,exports.StyledMethodSwitcherContainer=ui,exports.StyledNotificationBar=Jr,exports.StyledPoliciesButton=kt,exports.StyledPopupDanger=Pr,exports.StyledPostImagePreview=Yr,exports.StyledRadioGroup=Ti,exports.StyledRadioImageGroup=Qi,exports.StyledRadioImageItem=Zi,exports.StyledRow=Di,exports.StyledRow$1=Ji,exports.StyledRow$2=nn,exports.StyledScrollList=qe,exports.StyledShareContainer=wn,exports.StyledShareDrawer=Cn,exports.StyledSlider=ke,exports.StyledSocialLinkPreview=cl,exports.StyledSourceList=ws,exports.StyledStatisticContainer=Ge,exports.StyledStatisticNumberWrapper=Ze,exports.StyledStep=Se,exports.StyledStepLabel=Ne,exports.StyledSubmitButton=vi,exports.StyledSubmitReportForm=Vr,exports.StyledSurveyQuestionCard=it,exports.StyledSurveyThankyouCard=ot,exports.StyledTextField=di,exports.StyledTitleSection=yt,exports.StyledTopicSelectList=Br,exports.StyledTrack=Te,exports.StyledTrackContainer=Ae,exports.StyledTwins=bi,exports.StyledWrapper=vn,exports.StyledWrapper$1=dl,exports.SurveyOrPremiumBanner=r=>{var{type:l,articleId:s=0,categoryIds:u=[],isMarketing:p,isSurveyType:m,hasPremiumBanner:g,currentUrl:f,isMobile:b,subcribeHealthStatus:x,setShouldAcquisitionModalOpen:v,onValueChange:y,source:w="discover",Wrapper:C}=r,E=e.__rest(r,["type","articleId","categoryIds","isMarketing","isSurveyType","hasPremiumBanner","currentUrl","isMobile","subcribeHealthStatus","setShouldAcquisitionModalOpen","onValueChange","source","Wrapper"]);const{locale:k,t:S}=d.useTranslations(),{data:{userInfo:A}}=t.useContext(i.TogetherComponentGlobalContext),T=Boolean(null==A?void 0:A.id),[N,I]=t.useState(null),[B,P]=t.useState(),[D,M]=t.useState(""),[z,O]=t.useState(!1),[L,_]=t.useState(!1),R=t.useMemo((()=>id[l]),[]),j=((e,t)=>({[Ss.Pregnant]:{action:Ns.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:Ts.Button,thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:a.rem(80),[e.fn.largerThan("sm")]:{minWidth:a.rem(120)}})},items:[{label:e("switchBtn.yes"),value:"yes",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - Yes Click",dataEventLabel:t}},{label:e("switchBtn.no"),value:"no",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - No Click",dataEventLabel:t}}]},submitHandler:{yes:{action:Ns.ShowTool,props:{value:Es.DUE_DATE}},no:{action:Ns.ShowPremiumModal}}},[Ss.Parenting]:{action:Ns.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:Ts.Checkbox,items:[{label:e("pnBanner.toddlers"),value:"todders"},{label:e("pnBanner.teenager"),value:"teenager"}],submitBtnTracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the age range of your kids Click",dataEventLabel:t}},submitHandler:{todders:{action:Ns.ShowTool,props:{value:Es.BABY_VACCINE}},teenager:{action:Ns.ShowOptionBanner,props:{styleType:Ts.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},buttonProps:{variant:"white"},items:[{label:e("childCard.boy"),value:"teenager.boy",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Boy Click",dataEventLabel:t}},{label:e("childCard.girl"),value:"teenager.girl",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Girl Click",dataEventLabel:t}}]}},"teenager.boy":{action:Ns.ShowPremiumModal},"teenager.girl":{action:Ns.ShowTool,activeTool:c.RISK_SCREENER_NAME.HPV,props:{value:c.RISK_SCREENER_NAME.HPV}},"todders|teenager":{action:Ns.ShowOptionBanner,props:{styleType:Ts.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:Es.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}},{label:e("pnBanner.pn.btnLabel"),isPNBtn:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Premium Newsletter Click",dataEventLabel:t}}]}}}}}))(S,f)[R],$=null==j?void 0:j.submitHandler,F=()=>e.__awaiter(void 0,void 0,void 0,(function*(){const e=p?h.getCurrentBaseUrl(k)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;T?null==v||v():window.location.href=`${h.getCurrentSsoUrl(k)}/?returnUrl=${encodeURIComponent(e)}`})),U=e=>{const t=(e=>{let t="";const a=e.split("|");return 1===a.length?e:(Object.keys($).map((e=>{const i=e.split("|");if(a.length===i.length){let n=0;a.map((e=>{i.includes(String(e))&&(n+=1)})),n===a.length&&(t=e)}})),t)})(e);if(t){const a=$[t];a.action===Ns.ShowPremiumModal?g?(O(!0),P(Object.assign(Object.assign({},B),{actionParams:{hideBannerWhenClose:a.action===Ns.ShowPremiumModal}}))):(P({action:Ns.Hide}),null==y||y(e)):(P(a),null==y||y(e))}},V=C||a.Box,H=()=>q.default.createElement(a.Container,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:F,"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":f,className:"pointer-event-child-none"},E),q.default.createElement(n.ImageWrap,{src:p?o.CommonGAssets.getAssetPath(`newsletter/${b?"Mobile":"Desktop"}_Marketing.png`):o.CommonGAssets.getAssetPath(`newsletter/${b?"Mobile":"Desktop"}_${l}.png`),alt:"newsletter banner"})),G=()=>1!==(null==A?void 0:A.subscription)?q.default.createElement(H,null):null;return t.useEffect((()=>{T&&I({userInfo:A,preferredTopics:Dn,healthTopics:[]})}),[T]),T?m&&j&&void 0!==x?(()=>{const e=$[(null==x?void 0:x.value)||""];return(null==e?void 0:e.action)===Ns.ShowPremiumModal?G():q.default.createElement(Bs.Provider,{value:{settings:j,submitHandler:$,type:l,surveyType:R,value:D,setValue:M,isMobile:b,isLoggedIn:T,hasPremiumBanner:g,currentUrl:f,acquisitionInfo:N,categoryIds:u,subcribeHealthStatus:x,articleId:s,onValueChange:y,state:B,setState:P,handleClickOption:U,showPNModal:z,setShowPNModal:O,source:w,Outside:V,isBack:L,setIsBack:_,minHeight:180}},q.default.createElement(ad,null))})():g?G():null:g?q.default.createElement(H,null):null},exports.SurveyQuestionCard=({className:e,headerText:a,style:i,question:n,termAndPolicyText:o,prevText:r,nextText:l,isContactForm:s,isDisableNext:d,isDisablePrev:c,onPrevClick:u,onNextClick:p,isSubmitButton:m,isButtonCenter:h,progress:g,descriptionText:f})=>{var b,x,v;const[y,w]=t.useState([]),{is_multi_select:C,multi_select_option:E,from:k,to:T}=n,N=null==n?void 0:n.type,I="checkbox"===N&&(null===(b=n.options)||void 0===b?void 0:b.length)&&(!y||0===y.length||C&&E===dt.RANGE&&(y.length<k||y.length>T)||C&&E===dt.EXACT_NUMBER&&y.length!==k)||"radio"===N&&(null===(x=n.options)||void 0===x?void 0:x.length)&&(!y||0===y.length)||"textbox"===N&&(null===(v=n.textOptions)||void 0===v?void 0:v.length)&&(y.length<n.textOptions.length||y.some((e=>!e.value))),B="number"==typeof g?g>1?1:g<0?0:Number(g.toFixed(2)):-1,P=t.useRef(null),D=()=>"textbox"!==N||P.current.reportValidity();return q.default.createElement(it,{className:e,style:i},q.default.createElement("div",{className:"survey-inner-wrapper"},a&&q.default.createElement("div",{className:"survey-header"},q.default.createElement(S.Text,{className:"survey-header-text",size:"c2"},a)),q.default.createElement("form",{ref:P,onSubmit:e=>e.preventDefault()},q.default.createElement(st,{question:n,description:f,onOptionsChange:e=>{w(e)},onTextOptionsChange:e=>{w(e)}})),s&&l&&q.default.createElement(A.Button,{className:"survey-contact-submit",size:"lg",isDisabled:d||I,onClick:()=>D()&&p&&p(y)},l),o&&q.default.createElement("div",{className:"term-policy-container"},o),"number"==typeof g&&q.default.createElement("div",{className:"survey-progress-wrapper"},q.default.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${B})`}})),(r||l)&&q.default.createElement("div",{"data-center":h,className:"survey-button-wrapper"},r&&q.default.createElement(A.Button,{className:"survey-prev-button",size:"lg",color:c?"primary":"secondary",isDisabled:c,icon:q.default.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M2.44677 4.99999L5.31252 2.13424C5.62302 1.82374 5.62302 1.31974 5.31252 1.00924C5.00202 0.698742 4.49802 0.698742 4.18752 1.00924L0.727018 4.46974C0.433768 4.76299 0.433768 5.23774 0.727018 5.53024L4.18752 8.99074C4.49802 9.30124 5.00202 9.30124 5.31252 8.99074C5.62302 8.68024 5.62302 8.17624 5.31252 7.86574L2.44677 4.99999Z",fill:c?"#fff":"#2D87F3"})),onClick:u},r),!s&&l&&q.default.createElement(A.Button,{onClick:()=>D()&&p&&p(y),className:"survey-next-button",size:"lg",isDisabled:d||I},l," ",m?void 0:q.default.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M3.80322 5.19994L0.937465 2.33419C0.626965 2.02369 0.626965 1.51969 0.937465 1.20919C1.24796 0.898693 1.75196 0.898693 2.06246 1.20919L5.52297 4.66969C5.81622 4.96294 5.81622 5.43769 5.52297 5.73019L2.06246 9.19069C1.75196 9.50119 1.24796 9.50119 0.937465 9.19069C0.626965 8.88019 0.626965 8.37619 0.937465 8.06569L3.80322 5.19994Z",fill:"#ffffff"}))))))},exports.TRANSITION_TIMING=ct,exports.Table=({children:e,className:t,style:a,horizontalPadding:i,verticalPadding:n})=>q.default.createElement(Xe,{className:t,style:a,theme:{horizontalPadding:i,verticalPadding:n}},e),exports.TagTopic=a=>{var{topics:n=[],onClick:o,className:r,style:l,trackingCategory:s="Together",locale:u="vi-VN",classNames:p,styles:m,unstyled:h,shortenedNumber:g=3,shortenedStyle:f}=a,b=e.__rest(a,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:x}=d.useTranslations(),{classes:v}=Kn(void 0,{name:"TagTopic",classNames:p,styles:m,unstyled:h}),{data:{env:{togetherBasePath:y}},action:{sanitizeFunction:C}}=t.useContext(i.TogetherComponentGlobalContext),[E,k]=t.useState(!f);return q.default.createElement("div",Object.assign({onClick:o,className:`${v.wrapper} ${r}`,style:l},b),(E?n:n.slice(0,g)).map(((e,t)=>{const a=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return q.default.createElement("a",{className:v.item,key:t,"data-event-category":s,"data-event-action":"Topic in Post Click","data-event-label":`${i.getCurrentBaseUrl(u)}${y}${e.url}`,href:e.isActive&&!e.isHidden?`${y}${e.url}/`:void 0},q.default.createElement(i.Text,{size:"p4"},q.default.createElement("span",{style:Object.assign({},a&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:a?`${w.format(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:c.DATE_FNS_LOCALE[u]})}/${null==e?void 0:e.dueDateYear}`:(null==C?void 0:C(e.name))||e.name}})))})),!E&&n.length>g&&q.default.createElement("a",{className:v.item,href:"#",onClick:e=>{e.preventDefault(),k(!0)}},q.default.createElement(i.Text,{size:"p4"},"+",x("tagTopic.moreTopics",{number:n.length-g}))))},exports.TogetherAuthConfigContext=Mn,exports.TogetherAuthConfigContextProvider=({children:e,defaultParams:t})=>q.default.createElement(Mn.Provider,{value:{defaultParams:t}},e),exports.ToolsBannerCard=li,exports.TreePopoverMenu=no,exports.UnbookmarkedIcon=se,exports.UserInfo=({isCollapsed:e,userName:t,role:a,avatar:i})=>q.default.createElement(Ve,{"data-is-collapsed":e||void 0},q.default.createElement(Ue,{image:i,name:t,description:a,isDescriptionHidden:e})),exports.decodeMention=pr,exports.decodePostUrl=ur,exports.encodePostContent=(e,t=(e=>e))=>((e,t=(e=>e))=>{var a;return t(null===(a=e.replace(/(\ )+/g," ").replace(/(\&)+/g,"&"))||void 0===a?void 0:a.replace(/(\u200c|‌)+/g,"").replace(tr,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(er,((e,t,a)=>{var i;const n=null===(i=t.match(/data-href="([^"]*)"/im))||void 0===i?void 0:i[1];return n?`<a href="${n}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(ir,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(fr(e)),t),exports.getDueDateConception=e=>{const t=new Date(e);return t.setDate(t.getDate()+265),{startDate:e,dueDate:t,otherInfo:{method:exports.DueDateCalculatorType.conception+1,conception_date:w.format(e,gi),first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}},exports.getDueDateIVF=(e,t)=>{const a=new Date(e);return a.setDate(a.getDate()+265-t),{startDate:e,dueDate:a,otherInfo:{method:exports.DueDateCalculatorType.IVF+1,ivf_transfer_date:w.format(e,gi),days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}},exports.getDueDateLastPeriod=(e,t)=>{const a=t-21+272,i=new Date(e);return i.setDate(i.getDate()+a),{startDate:e,dueDate:i,otherInfo:{method:exports.DueDateCalculatorType.lastPeriod+1,first_day:w.format(e,gi),cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}},exports.getMentionIdsFromString=hr,exports.highlightBadWords=vr,exports.htmlReactParser=Wa,exports.img=Or,exports.removeBannedWordWrapper=fr,exports.uploadAndGetSrc=(t,a,n)=>"string"==typeof t?Promise.resolve(t):e.__awaiter(void 0,void 0,void 0,(function*(){var e;const o=new FormData;if(t.type.startsWith("image/gif"))o.append("image",t);else{const e=yield Promise.resolve().then((function(){return H(require("browser-image-compression"))})),a=yield e.default(t,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});o.append("image",a)}const r=n?i.callApiWithAdminAuth:i.callApiWithAuth,l=yield r(i.getApiPath(n?i.ADMIN_PATHS.COMMENT.IMAGE_UPLOAD:i.PATHS.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:o});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),exports.useStyles=de,exports.useStyles$1=at,exports.useStyles$2=Wi,exports.useTogetherAuthRequiredAction=zn,exports.youtubeVidIdGetter=e=>{var t;if(!e.includes("youtu"))return"";return(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""};
|
|
6897
|
+
`;var Cs;!function(e){e.DUE_DATE="due-date-calculator",e.BMI="bmi",e.BMR="bmr",e.OVULATION="ovulation",e.IFRAME="IFRAME",e.PWG="pregnancy-weight-gain",e.THR="heart-rate",e.BABY_VACCINE="vaccination-tool",e.BABY_GROWTH="baby-growth-tracking",e.BABY_POOP="baby-poop-checking"}(Cs||(Cs={}));const Es={DUE_DATE:Cs.DUE_DATE,BMI:Cs.BMI,BMR:Cs.BMR,OVULATION:Cs.OVULATION,IFRAME:Cs.IFRAME,PWG:Cs.PWG,THR:Cs.THR,BABY_VACCINE:Cs.BABY_VACCINE,BABY_GROWTH:Cs.BABY_GROWTH,BABY_POOP:Cs.BABY_POOP},ks={[Es.DUE_DATE]:o.CommonGAssets.getAssetPath("health-tools/due-date-icon.svg")};var Ss,As,Ts,Ns;!function(e){e.Pregnant="pregnant",e.Parenting="parenting"}(Ss||(Ss={})),function(e){e.Option="option"}(As||(As={})),function(e){e.Button="button",e.Checkbox="checkbox"}(Ts||(Ts={})),function(e){e.ShowTool="showTool",e.ShowPremiumModal="showPremiumModal",e.ShowOptionBanner="showOptionBanner",e.Hide="hide"}(Ns||(Ns={}));const Is=e=>({[Es.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:Es.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[Es.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:Es.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[Es.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:Es.BABY_GROWTH},[c.RISK_SCREENER_NAME.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:c.RISK_SCREENER_NAME.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),Bs=t.createContext({}),Ps="api/v1/categories?site={website_url}",Ds="api/v1/subscription?site={website_url}",Ms="api/v1/categories?site={website_url}";var zs=a.createStyles((e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:a.rem(32),padding:`${a.rem(6)} ${a.rem(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}})));const Os=({heading:e,description:n,thumbnail:o={desktop:"",mobile:""},hideDescOnMobile:r,children:l})=>{const{isMobile:s,minHeight:d}=t.useContext(Bs);return q.default.createElement(a.Box,{sx:()=>({borderRadius:a.rem(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},q.default.createElement(a.Box,{sx:e=>({minHeight:a.rem(d),borderRadius:"inherit",background:`url(${s?o.mobile:o.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${a.rem(24)} ${a.rem(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${a.rem(22)} ${a.rem(32)}`}})},q.default.createElement(a.Stack,{spacing:a.rem(16)},q.default.createElement(a.Stack,{spacing:a.rem(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},e&&q.default.createElement(i.Heading,{tag:"h4"},e),!(r&&s)&&n&&q.default.createElement(i.Text,{size:"p4"},n)),q.default.createElement(a.Box,null,l))))},Ls=n=>{const{styleType:o=Ts.Button,items:l=[],buttonProps:s,styles:u,submitBtnTracking:p}=n,{classes:m}=zs(void 0,{name:"PremiumBannerWithOptions",styles:u}),{t:h,locale:g}=d.useTranslations(),{surveyType:f,articleId:b,handleClickOption:x,source:v,isMobile:y,setShowPNModal:w}=t.useContext(Bs),{getHealthToolLink:C}=j.useHealthToolsCache(g),E=R.useForm({initialValues:{bannerOptions:[]}}),k=t=>e.__awaiter(void 0,void 0,void 0,(function*(){return yield i.callApiWithAuth(i.getApiPath(i.PATHS.HEALTH_TOOL.CREATE,{_locale:g,type:nd[f]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:t,article:b,source:v}})})),S=t.useCallback((()=>q.default.createElement(a.Flex,{gap:a.rem(8),className:m.wrapper},l.map(((e,t)=>q.default.createElement(a.Box,{key:String(t),component:e.isLink?"a":"div",href:e.isRiskScreener?`https://${c.domainLocales[g]}/bot/${c.RISK_SCREENER_SLUG[g][e.activeTool]}/`:e.isLink?C(e.activeTool):void 0},q.default.createElement(i.Button,Object.assign({className:m.button,classNames:{label:m.buttonLabel},size:"sm"},e.tracking,s,{onClick:()=>{e.isLink||(e.isPNBtn&&w(!0),k(e.value),x(e.value))}}),e.label)))))),[l,E]),A=t.useCallback((()=>q.default.createElement(a.Flex,null,q.default.createElement(a.Flex,{align:"center",gap:a.rem(24),sx:e=>({background:"white",borderRadius:a.rem(8),padding:a.rem(4),[e.fn.largerThan("sm")]:{paddingLeft:a.rem(16)}})},q.default.createElement(i.Checkbox.Group,Object.assign({},E.getInputProps("bannerOptions",{type:"checkbox"})),q.default.createElement(a.Flex,{gap:a.rem(16)},l.map(((e,t)=>q.default.createElement(i.Checkbox,{key:String(t),value:e.value,label:e.label,styles:{label:{cursor:"pointer"}}}))))),q.default.createElement(i.Button,Object.assign({size:"sm"},p,s,{disabled:0===E.getInputProps("bannerOptions").value.length,leftIcon:y?q.default.createElement(r.Icon.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{const e=E.getInputProps("bannerOptions").value;k(e.join("|")),x(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:a.rem(38),minWidth:"auto",padding:0}}})}),!y&&h("pnBanner.submit"))))),[l,E]);return q.default.createElement(Os,Object.assign({},n),o===Ts.Button?S():o===Ts.Checkbox?A():null)},_s=e=>{var n,o;const{t:r}=d.useTranslations(),{heading:l,description:s,thumbnail:u,btnLabel:p,value:m,isRiskScreener:h,hideDescOnMobile:f,dataEventAction:b}=e,{locale:x}=d.useTranslations(),{isMobile:v}=t.useContext(Bs),{getHealthToolLink:y,allTools:w}=j.useHealthToolsCache(x),C=h?"mainBanner":"toolBanner",E=t.useMemo((()=>{const e=h?`https://${g.isProduction?"":"discover."}${c.domainLocales[x]}/bot/${c.RISK_SCREENER_SLUG[x][m]}`:y(m);return q.default.createElement("a",{href:e},q.default.createElement(i.Button,{size:"sm","data-event-category":"Focused Audience","data-event-action":b,"data-event-label":e},p||r("pnBanner.caclNow")))}),[w]);return"mainBanner"===C?q.default.createElement(Os,Object.assign({},Object.assign(Object.assign({},e),{thumbnail:e.thumbnail})),E):q.default.createElement(a.Flex,{gap:a.rem(7),align:"center",justify:"space-between",sx:e=>({borderRadius:a.rem(8),background:e.colors.blue[0],minHeight:a.rem(180),padding:`${a.rem(24)} ${a.rem(16)}`,[e.fn.largerThan("sm")]:{padding:`${a.rem(34)} ${a.rem(32)}`}})},q.default.createElement(a.Stack,{spacing:a.rem(12)},q.default.createElement(a.Stack,{spacing:a.rem(4)},l&&q.default.createElement(i.Heading,{tag:"h4"},l),!(v&&f)&&s&&q.default.createElement(i.Text,{size:"p4"},s)),q.default.createElement(a.Flex,{gap:a.rem(8),sx:{button:{minWidth:a.rem(120)}}},E)),q.default.createElement(a.Flex,{align:"center",justify:"center",sx:e=>({width:a.rem(96),height:a.rem(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:a.rem(112),height:a.rem(112)},img:{maxWidth:a.rem(64),[e.fn.largerThan("sm")]:{maxWidth:a.rem(73)}}})},q.default.createElement("img",{alt:"health-tool-icon",src:u||(null===(o=null===(n=w.filter((e=>e.template===m)))||void 0===n?void 0:n[0])||void 0===o?void 0:o.icon)||ks[m]||"",loading:"lazy"})))},Rs=()=>{var e,a,i;const{t:n}=d.useTranslations(),{state:o,Outside:r}=t.useContext(Bs);return(null==o?void 0:o.action)===Ns.ShowTool?q.default.createElement(r,null,Is(n)[null===(e=null==o?void 0:o.props)||void 0===e?void 0:e.value]?q.default.createElement(_s,Object.assign({},Is(n)[null===(a=null==o?void 0:o.props)||void 0===a?void 0:a.value],{value:null===(i=null==o?void 0:o.props)||void 0===i?void 0:i.value})):null):(null==o?void 0:o.action)===Ns.ShowOptionBanner?q.default.createElement(r,null,q.default.createElement(Ls,Object.assign({},null==o?void 0:o.props))):null},js=n=>{var{isMobile:l,children:s,desktopBanner:d=o.CommonGAssets.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:c=o.CommonGAssets.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:u={width:937,height:536},mobileBannerRatio:p={width:750,height:480},desktopBannerRatio:m={width:420,height:536},closeProps:h}=n,g=e.__rest(n,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);const{width:b,height:x}=f.useViewportSize(),v=(x<=667?190:265)+b*p.height/p.width+74,[y,w]=t.useState(!1);return q.default.createElement(L.Modal,Object.assign({styles:e=>({content:{flex:"auto",background:"transparent",[e.fn.smallerThan("sm")]:{maxHeight:"100%",height:"100%",position:"relative",borderRadius:0},[e.fn.largerThan("sm")]:{maxWidth:a.rem(u.width),width:"100%",height:"100%",maxHeight:a.rem(u.height),boxShadow:"none"}},body:{padding:0,width:"100%",height:"100%",[e.fn.largerThan("sm")]:{display:"flex",alignItems:"center"}},inner:{padding:0,[e.fn.smallerThan("sm")]:{display:"flex",alignItems:"flex-end"}}})},g),l?q.default.createElement(a.Box,{sx:{position:"relative",height:"100%"},onTouchStart:()=>w(!0)},q.default.createElement(a.Box,{className:"mobile-template",sx:{position:"absolute",height:100*(y?1:v/x)+"%",left:0,bottom:0,right:0,transition:"height 0.4s ease"}},q.default.createElement(a.Box,{sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:y?0:a.rem(12),borderTopRightRadius:y?0:a.rem(12)}},q.default.createElement(a.Box,{sx:{height:"calc(100% - 74px)",background:`url(${c})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},q.default.createElement(i.Button,Object.assign({unstyled:!0,leftIcon:q.default.createElement(r.Icon.Close,null),sx:{position:"absolute",right:0,top:"10px",zIndex:1}},h,{onClick:()=>null==g?void 0:g.onClose()})),q.default.createElement(a.AspectRatio,{ratio:(null==p?void 0:p.width)/(null==p?void 0:p.height),w:"100%"}),q.default.createElement(a.Box,{sx:{padding:`${a.rem(28)} ${a.rem(16)} ${a.rem(16)}`,background:"white"}},s))))):q.default.createElement(a.AspectRatio,{className:"desktop-template",ratio:u.width/u.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},q.default.createElement(a.Box,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:a.rem(8),background:"white",boxShadow:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"}},q.default.createElement("img",{alt:"",src:d,loading:"lazy",style:{borderTopLeftRadius:a.rem(8),borderBottomLeftRadius:a.rem(8),height:"100%",display:"block"}}),q.default.createElement(a.Box,{sx:{position:"relative",height:"100%",width:(u.width-m.width)/u.width*100+"%"}},q.default.createElement(i.Button,Object.assign({unstyled:!0,leftIcon:q.default.createElement(r.Icon.Close,null)},h,{onClick:()=>null==g?void 0:g.onClose(),sx:{position:"absolute",right:0,top:"10px"}})),q.default.createElement(a.Box,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${a.rem(40)} ${a.rem(24)} 0`}},s)))))},$s="user/subscription",Fs=t.createContext({}),Us=n=>{var o,{value:r,name:l,isMobile:s}=n,d=e.__rest(n,["value","name","isMobile"]);const c=t.useRef(null),u=t.useMemo((()=>{var e;return Boolean(null===(e=c.current)||void 0===e?void 0:e.checked)}),[null===(o=c.current)||void 0===o?void 0:o.checked]);return t.useEffect((()=>{var e,t;if(u){const a=null===(e=c.current)||void 0===e?void 0:e.querySelector(".mantine-Chip-checkIcon"),i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("width","16"),i.setAttribute("height","16"),i.setAttribute("viewBox","0 0 16 16"),i.setAttribute("fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("class","mantine-Chip-checkIcon");const n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("d","M13.32 3.99443C13.1468 3.99959 12.9825 4.07198 12.8617 4.19625L5.99973 11.0582L3.80442 8.86292C3.74299 8.79894 3.66941 8.74786 3.58799 8.71267C3.50657 8.67748 3.41895 8.65889 3.33025 8.65798C3.24156 8.65708 3.15358 8.67388 3.07146 8.70741C2.98934 8.74094 2.91474 8.79051 2.85202 8.85323C2.7893 8.91595 2.73973 8.99055 2.7062 9.07267C2.67267 9.15479 2.65587 9.24277 2.65677 9.33146C2.65768 9.42016 2.67627 9.50778 2.71146 9.5892C2.74665 9.67062 2.79773 9.7442 2.86171 9.80563L5.52838 12.4723C5.65341 12.5973 5.82295 12.6675 5.99973 12.6675C6.17651 12.6675 6.34606 12.5973 6.47108 12.4723L13.8044 5.13896C13.9008 5.04532 13.9666 4.92476 13.9932 4.79308C14.0198 4.6614 14.0061 4.52474 13.9537 4.40102C13.9013 4.2773 13.8128 4.17228 13.6998 4.09972C13.5867 4.02717 13.4543 3.99047 13.32 3.99443Z"),n.setAttribute("fill","#2D87F3"),i.appendChild(n),null===(t=null==a?void 0:a.parentNode)||void 0===t||t.replaceChild(i,a)}}),[u]),q.default.createElement(a.Chip,Object.assign({ref:c,value:r,radius:6},d,{styles:e=>({label:{display:"flex",border:"1px solid #DBDFE5 !important",borderRadius:6,padding:"8px 12px 8px 8px",height:"initial",gap:4,position:"relative","&[data-checked='true']":{borderColor:"#2D87F3 !important",backgroundColor:"#E3F2FF !important",color:"#2D87F3 !important",gap:0},"&:hover":{color:"initial",backgroundColor:"initial"},"&:not([data-checked])":{paddingLeft:36,[e.fn.smallerThan("sm")]:{paddingLeft:30},"&::before":{top:5,content:'"+"',position:"absolute",left:16,fontSize:18,color:"#262626",[e.fn.smallerThan("sm")]:{left:11}}}},input:{display:"none"}})}),q.default.createElement(i.Text,{size:s?"p3":"p4",color:"gray.7",span:!0},l))},Vs=({topicsGroup:e,onTopicChange:n,isBlock:o=!1,selectedTopics:r=[],inputProps:l,labelProps:s,maxSelect:c=5,hasScroll:u,readonly:p})=>{const{action:{pushNotifications:m}}=t.useContext(i.TogetherComponentGlobalContext),h=J.default(e.map((e=>e.topics||[]))),{t:g}=d.useTranslations(),[f,b]=t.useState([]);t.useEffect((()=>{b(r)}),[r.length]),t.useEffect((()=>{null==n||n(f)}),[f]);const x=e=>{e.length>5?m({type:"danger",title:g("pnTopicSection.maxSelectError.title",{maxSelect:c}),message:g("pnTopicSection.maxSelectError.desc")}):!p&&b((()=>h.filter((t=>e.some((e=>t.catId===e))))))};return q.default.createElement(a.Stack,{spacing:12},e.map(((e,t)=>q.default.createElement(a.Stack,{key:String(t),spacing:12},e.label&&q.default.createElement(i.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},s),e.label),u?q.default.createElement(a.ScrollArea,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},q.default.createElement(a.Box,{w:800},q.default.createElement(a.Chip.Group,Object.assign({value:f.map((e=>e.catId)),multiple:!0},l,{onChange:x}),q.default.createElement(a.Flex,{gap:8,wrap:"wrap"},e.topics.map((t=>q.default.createElement(Us,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:o},e.tracking)))))))):q.default.createElement(a.Chip.Group,Object.assign({value:f.map((e=>e.catId)),multiple:!0},l,{onChange:x}),q.default.createElement(a.Flex,{gap:8,wrap:"wrap"},e.topics.map((t=>t.catId?q.default.createElement(Us,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:o},e.tracking)):q.default.isValidElement(t.component)?t.component:null))))))))},Hs=n=>{var{heading:o,children:r,stickyActions:l}=n,s=e.__rest(n,["heading","children","stickyActions"]);const{isMobile:d}=t.useContext(Fs),c=q.default.createElement(a.Stack,{spacing:a.rem(24),sx:{height:"100%"}},q.default.createElement(i.Heading,{tag:"h4",style:{textAlign:"center"}},o),q.default.createElement(a.Box,null,r));return q.default.createElement(a.Box,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},d?c:q.default.createElement(a.ScrollArea,Object.assign({className:"layout-body",h:l?"calc(100% - 90px)":"100%"},s),c),l&&q.default.createElement(a.Flex,{gap:a.rem(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:a.rem(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${a.rem(24)} 0`}})},l))},qs=()=>{const{t:n,locale:o}=d.useTranslations(),{data:{userInfo:l},action:{pushNotifications:s}}=t.useContext(i.TogetherComponentGlobalContext),c=null==l?void 0:l.id,{currentUrl:u,isMobile:p,pnSuggestCategory:m=[],nextStep:h,formValues:g,setFormValues:f,onSubmit:b,submitLoading:x,selectCategory:v,setCategoryLibs:y,setSelectCategory:w,maxSelectCategory:C}=t.useContext(Fs),E=m.map((e=>e.catId)),k=R.useForm({validate:{name:R.isNotEmpty(n("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},g),{fitnessTopics:E})}),[S,A]=t.useState([]),[T,N]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e;try{const t=yield i.callApiWithAuth(i.getPremiumApiPath(Ms,{_locale:o}),"get"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.subscription)||[]).filter((e=>!E.includes(e.catId)));A(m),N(a),y([...m,...a])}catch(e){console.log(e)}}))}),[]),t.useEffect((()=>{c&&k.setFieldValue("name",(null==l?void 0:l.name)||"")}),[c]);const I=()=>{""!==k.getInputProps("name").value?(f(k.getTransformedValues()),h()):k.validateField("name")},B=t.useMemo((()=>q.default.createElement(i.Button,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:u,leftIcon:q.default.createElement(r.Icon.Plus,{size:16,color:"#262626",useCurrentColor:!0}),onClick:I,styles:e=>({root:{borderRadius:a.rem(6),padding:"2px 15px",height:a.rem(40)},label:{fontSize:a.rem(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:a.rem(12),lineHeight:a.rem(16),height:a.rem(40)}},leftIcon:{marginRight:"5px"}})},q.default.createElement(i.Text,{size:p?"p3":"p4"},n("home.seeMore")))),[k]);return t.useEffect((()=>{k.setFieldValue("fitnessTopics",v.map((e=>e.catId)))}),[v]),q.default.createElement("form",{style:{height:"100%"},onSubmit:k.onSubmit((e=>{if(0===v.length)return s({type:"danger",title:n("newsletter.error.minTitle"),message:n("newsletter.error.minCotennt")}),!1;f(e),null==b||b(e.name)}))},q.default.createElement(Hs,{heading:n("healthToolPNModal.heading"),stickyActions:q.default.createElement(q.default.Fragment,null,q.default.createElement(i.Button,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:u,loading:x,sx:{maxWidth:a.rem(240)}},n("healthToolPNModal.register")))},q.default.createElement(a.Stack,{spacing:a.rem(16)},q.default.createElement(i.Input,Object.assign({label:n("newsletter.welcome.description")},k.getInputProps("name"))),q.default.createElement(Vs,{topicsGroup:[...0===m.length&&0===T.length?[{topics:[{component:B}]}]:[],...m.length>0?[{label:n("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...m,...0===T.length?[{component:B}]:[]]}]:[],...T.length>0?[{label:n("healthToolPNModal.findMore.chooseFav"),topics:[...T,...T.length>0?[{component:B}]:[]]}]:[]],selectedTopics:[...S],labelProps:{size:p?"p3":"p4",color:"gray.6"},onTopicChange:w,maxSelect:C}))))},Gs=t.forwardRef((function(t,n){var{label:o}=t,r=e.__rest(t,["label"]);return q.default.createElement("div",Object.assign({ref:n},r),q.default.createElement(a.Group,{noWrap:!0},q.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72615 14.8099 11.1702 14.2653 12.3086 13.3547L15.2376 16.2837C15.5264 16.5725 15.9946 16.5725 16.2833 16.2837C16.5721 15.9949 16.5721 15.5267 16.2833 15.238L13.3544 12.3091C14.2652 11.1705 14.8099 9.72634 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"#8C8C8C"})),q.default.createElement(i.Text,{size:"p3"},o)))})),Ws=t.forwardRef((function(t,a){var{label:n}=t,o=e.__rest(t,["label"]);return q.default.createElement("div",Object.assign({ref:a},o),q.default.createElement(i.Text,{size:"p3"},n))})),Qs=({history:e,onDelete:t})=>q.default.createElement(a.Flex,{wrap:"wrap",gap:8},ee.default(e,"catId").map((e=>q.default.createElement(a.Badge,{key:e.catId,rightSection:q.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:()=>null==t?void 0:t(e)},q.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 9C1.5 4.8525 4.8525 1.5 9 1.5C13.1475 1.5 16.5 4.8525 16.5 9C16.5 13.1475 13.1475 16.5 9 16.5C4.8525 16.5 1.5 13.1475 1.5 9ZM11.1677 12.2248C11.4602 12.5173 11.9327 12.5173 12.2252 12.2248C12.5101 11.9323 12.5101 11.4523 12.2252 11.1673L10.0577 8.99979L12.2252 6.83229C12.5177 6.53979 12.5177 6.0673 12.2252 5.7748C11.9327 5.4823 11.4602 5.4823 11.1677 5.7748L9.00015 7.9423L6.83265 5.7748C6.54015 5.4823 6.06765 5.4823 5.77515 5.7748C5.63471 5.91492 5.55579 6.10516 5.55579 6.30354C5.55579 6.50193 5.63471 6.69217 5.77515 6.83229L7.94265 8.99979L5.77515 11.1673C5.63471 11.3074 5.55579 11.4977 5.55579 11.696C5.55579 11.8944 5.63471 12.0847 5.77515 12.2248C6.06765 12.5173 6.54015 12.5173 6.83265 12.2248L9.00015 10.0573L11.1677 12.2248Z",fill:"#8C8C8C"})),styles:{root:{height:32,background:"#ffffff",padding:"5px 12px",border:`1px solid ${i.themeColors.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},q.default.createElement(i.Text,{size:"p4"},e.localName))))),Zs=({topics:e,onTopicChange:n,isBlock:o=!1,selectedTopics:r,labelProps:l,maxSelect:s=5})=>{const{action:{pushNotifications:c}}=t.useContext(i.TogetherComponentGlobalContext),[u,p]=t.useState([]),{t:m}=d.useTranslations();t.useEffect((()=>{p(r)}),[r.length]),t.useEffect((()=>{n(u)}),[u]);return e&&0!==e.length?q.default.createElement(a.Stack,{spacing:12,px:16,mx:-16},q.default.createElement(i.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},l),m("pnTopicSection.recentView")),q.default.createElement(a.Chip.Group,{value:u.map((e=>e.catId)),onChange:t=>{o&&u.length<t.length?c({type:"danger",title:m("pnTopicSection.maxSelectError.title",{maxSelect:s}),message:m("pnTopicSection.maxSelectError.desc")}):p((()=>e.filter((e=>t.some((t=>e.catId===t))))))},multiple:!0},q.default.createElement(a.Flex,{gap:8,wrap:"wrap"},e.map(((e,t)=>q.default.createElement(Us,{key:t,value:e.catId,name:e.localName,isBlock:o})))))):null},Xs=t=>{var{topic:n,active:o,onClick:r}=t,l=e.__rest(t,["topic","active","onClick"]);return q.default.createElement(a.Box,Object.assign({sx:e=>({position:"relative",cursor:"pointer",padding:2,borderRadius:8,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04)",minHeight:a.rem(130),[e.fn.largerThan("sm")]:{minHeight:a.rem(138)}}),onClick:()=>r(n,o)},l),o&&q.default.createElement(a.Box,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},q.default.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66699 9.99984C1.66699 5.39984 5.40033 1.6665 10.0003 1.6665C14.6003 1.6665 18.3337 5.39984 18.3337 9.99984C18.3337 14.5998 14.6003 18.3332 10.0003 18.3332C5.40033 18.3332 1.66699 14.5998 1.66699 9.99984ZM4.75066 10.5827L7.74232 13.5744C8.06732 13.8994 8.60066 13.8994 8.91732 13.5744L15.2423 7.2494C15.5673 6.9244 15.5673 6.3994 15.2423 6.0744C14.9173 5.7494 14.3923 5.7494 14.0673 6.0744L8.33399 11.8077L5.92566 9.40773C5.60066 9.08273 5.07566 9.08273 4.75066 9.40773C4.59461 9.56342 4.50692 9.7748 4.50692 9.99523C4.50692 10.2157 4.59461 10.427 4.75066 10.5827Z",fill:"#2D87F3"}),q.default.createElement("path",{d:"M7.74224 13.5772L4.75057 10.5856C4.59453 10.4299 4.50684 10.2185 4.50684 9.99808C4.50684 9.77765 4.59453 9.56627 4.75057 9.41058C5.07557 9.08558 5.60057 9.08558 5.92557 9.41058L8.33391 11.8106L14.0672 6.07725C14.3922 5.75225 14.9172 5.75225 15.2422 6.07725C15.5672 6.40225 15.5672 6.92725 15.2422 7.25225L8.91724 13.5772C8.60057 13.9022 8.06724 13.9022 7.74224 13.5772Z",fill:"white"}))),q.default.createElement(a.Box,{sx:{borderRadius:"8px"}},q.default.createElement(i.AspectRatio,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},q.default.createElement(a.Box,null,q.default.createElement("img",{src:n.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),q.default.createElement(i.Text,{size:"p4",ta:"center",px:6,sx:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},n.localName||""))},Ys=({topics:e,selectedTopics:n=[],onTopicChange:o,isBlock:r=!1,labelProps:l,pushNotifications:s,maxSelect:c=5})=>{const{t:u}=d.useTranslations(),[p,m]=t.useState([]),h=(e,t)=>{if(t)m((t=>t.filter((t=>t.catId!==e.catId))));else{if(r)return void s({type:"danger",title:u("pnTopicSection.maxSelectError.title",{maxSelect:c}),message:u("pnTopicSection.maxSelectError.desc")});m((t=>[...t,e]))}};t.useEffect((()=>{m(n)}),[n.length]),t.useEffect((()=>{o(p)}),[p]);const[g,f]=t.useState(!1),[b,x]=t.useState(0),[v,y]=t.useState(0),w=t.useRef(null),C=()=>{f(!1)};return q.default.createElement(a.Stack,{spacing:10},q.default.createElement(a.Flex,{justify:"space-between",align:"center",w:"100%"},q.default.createElement(i.Text,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},l),u("pnTopicSection.trending"))),q.default.createElement(a.Box,null,q.default.createElement(a.ScrollArea,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:w,viewportProps:{onMouseDown:e=>{e.preventDefault(),w.current&&(f(!0),x(e.pageX-w.current.offsetLeft),y(w.current.scrollLeft))},onMouseUp:C,onMouseLeave:C,onMouseMove:e=>{if(e.preventDefault(),!g||!w.current)return;const t=2*(e.pageX-w.current.offsetLeft-b);w.current.scrollLeft=v-t}},styles:{viewport:{paddingBottom:16}}},q.default.createElement(a.Box,{w:{base:112*e.length+8*(e.length-1)+10}},q.default.createElement(a.Flex,{gap:8},e.map(((e,t)=>q.default.createElement(Xs,{key:t,topic:e,onClick:h,active:p.some((t=>t.catId===e.catId)),w:{base:112}}))))))))},Ks=n=>{var{isLoggedIn:o,maxSelect:r=5,values:l=[],labelProps:s,onChange:c}=n,u=e.__rest(n,["isLoggedIn","maxSelect","values","labelProps","onChange"]);const{action:{pushNotifications:p}}=t.useContext(i.TogetherComponentGlobalContext),[m,h]=t.useState(""),{t:g,locale:f}=d.useTranslations(),b=t.useRef(null),[x,v]=t.useState([]),[y,w]=t.useState([]),[C,E]=t.useState([]),[k,S]=t.useState([]),[A,T]=t.useState(null),[N,I]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e,t;const a=yield i.callApiWithAuth(i.getPremiumApiPath(Ps,{_locale:f}),"get"),n=(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.interested)||[],o=(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.trending)||[],r=ee.default([...n,...o],"catId").map((e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""})));if(I(r||[]),T((null==a?void 0:a.data)||null),l.length>0){const e=n.filter((e=>l.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"interested"}))),t=o.filter((e=>l.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"trending"})));S(e),w(t)}}))}),[o]);const B=t.useMemo((()=>ee.default([...x,...y,...k,...C],"catId")),[x,y,k,C]),[P,D]=t.useState(!1);t.useEffect((()=>{B.length>=r?D(!0):D(!1),null==c||c(B)}),[B]);return q.default.createElement(a.Stack,Object.assign({spacing:a.rem(16)},u),q.default.createElement(a.Stack,{spacing:a.rem(8)},q.default.createElement(i.Text,{size:"p3"},g("pnTopicSection.maxSelectError.detail",{max:r,maxTopic:B.length})),q.default.createElement(a.MultiSelect,{ref:b,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:i.themeColors.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:q.default.createElement(i.Text,{size:"s4",color:"gray.6"},g("pnTopicSection.notFound")),itemComponent:""===m?Gs:Ws,size:"lg",placeholder:g("pnTopicSection.plsEnterFavTopics"),data:N,onSearchChange:h,searchValue:m,icon:q.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9682 19.7465 14.8936 19.0205 16.4115 17.8063L20.3168 21.7116C20.7018 22.0966 21.3261 22.0966 21.7111 21.7116C22.0961 21.3266 22.0961 20.7023 21.7111 20.3173L17.8059 16.4121C19.0203 14.894 19.7465 12.9684 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#595959"})),rightSection:q.default.createElement(q.default.Fragment,null),zIndex:500,searchable:!0,withinPortal:!0,onChange:t=>{return a=t,e.__awaiter(void 0,void 0,void 0,(function*(){var e;const t={trending:w,recently:E,interested:S,default:v};let i="default";if(P)p({type:"danger",title:g("pnTopicSection.maxSelectError.title",{maxSelect:r}),message:g("pnTopicSection.maxSelectError.desc")});else{const n=[{key:"trending",array:null==A?void 0:A.trending},{key:"recently",array:null==A?void 0:A.recently},{key:"interested",array:null==A?void 0:A.interested}].find((e=>{var t;return null===(t=e.array)||void 0===t?void 0:t.some((e=>e.catId===a[0]))}));i=(null==n?void 0:n.key)||"default",t[i]((e=>[...e,...N.filter((e=>a.some((t=>e.catId===t))))].map((e=>Object.assign(Object.assign({},e),{template:i}))))),null===(e=b.current)||void 0===e||e.blur()}return null}));var a},value:[]}),B&&B.length>0&&q.default.createElement(Qs,{history:B,onDelete:e=>{const t={trending:w,recently:E,interested:S,default:v};(t[e.template]||t.default)((t=>{const a=[...t],i=a.findIndex((t=>t.catId===e.catId));return a.splice(i,1),a}))}})),q.default.createElement(a.Box,{sx:e=>({position:"relative",height:a.rem(175),[e.fn.largerThan("sm")]:{height:a.rem(190)}})},q.default.createElement(a.Box,{sx:{position:"absolute",top:0,right:0,left:0}},q.default.createElement(Ys,{topics:((null==A?void 0:A.trending)||[]).map((e=>Object.assign(Object.assign({},e),{template:"trending"}))),selectedTopics:y,onTopicChange:w,isBlock:P,labelProps:s}))),q.default.createElement(Zs,{topics:((null==A?void 0:A.recently)||[]).map((e=>Object.assign(Object.assign({},e),{template:"recently"}))),selectedTopics:C,onTopicChange:E,isBlock:P,labelProps:s}),q.default.createElement(Vs,{labelProps:s,topicsGroup:[{label:g("pnTopicSection.ppAlsoInterested"),topics:((null==A?void 0:A.interested)||[]).map((e=>Object.assign(Object.assign({},e),{template:"interested"})))}],selectedTopics:k,onTopicChange:S,isBlock:P}))},Js=()=>{const{t:e}=d.useTranslations(),{action:{pushNotifications:n}}=t.useContext(i.TogetherComponentGlobalContext),{prevStep:o,formValues:r,submitLoading:l,onSubmit:s,selectCategory:c,maxSelectCategory:u,setSelectCategory:p,currentUrl:m,isLoggedIn:h}=t.useContext(Fs);return q.default.createElement(Hs,{heading:e("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:a.rem(25)}},stickyActions:q.default.createElement(q.default.Fragment,null,q.default.createElement(i.Button,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:m,onClick:o},e("healthToolPNModal.back")),q.default.createElement(i.Button,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:m,onClick:()=>{if(0===c.length)return n({type:"danger",title:e("newsletter.error.minTitle"),message:e("newsletter.error.minCotennt")}),!1;null==s||s(r.name)},loading:l},e("healthToolPNModal.next")))},q.default.createElement(Ks,{isLoggedIn:h,maxSelect:u,values:r.fitnessTopics,onChange:p,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},ed=()=>{const{t:e}=d.useTranslations(),{close:n,selectCategory:o,onRegisterSuccess:r,currentUrl:l,finishLabelOnResult:s,disclaimerText:c}=t.useContext(Fs);return t.useEffect((()=>()=>{setTimeout((()=>{null==r||r()}),400)}),[]),q.default.createElement(Hs,{heading:e("healthToolPNModal.heading"),stickyActions:q.default.createElement(i.Button,{fullWidth:!0,sx:{maxWidth:a.rem(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:l,onClick:()=>{n()}},s||e("healthToolPNModal.finish"))},q.default.createElement(a.Stack,null,q.default.createElement(a.Flex,{gap:a.rem(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:a.rem(8),padding:a.rem(8)})},q.default.createElement(a.Box,null,q.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M9.99984 18.3334C14.6022 18.3334 18.3332 14.6025 18.3332 10.0001C18.3332 5.39771 14.6022 1.66675 9.99984 1.66675C5.39746 1.66675 1.6665 5.39771 1.6665 10.0001C1.6665 14.6025 5.39746 18.3334 9.99984 18.3334Z",fill:"#00B16A"}),q.default.createElement("path",{d:"M9.58558 12.6674C9.22944 12.668 8.87668 12.5983 8.54752 12.4623C8.21835 12.3264 7.91925 12.1268 7.66732 11.8751L6.68587 10.8931C6.55607 10.7587 6.48424 10.5787 6.48587 10.3919C6.48749 10.2051 6.56243 10.0263 6.69455 9.89422C6.82667 9.7621 7.00539 9.68716 7.19222 9.68554C7.37906 9.68391 7.55906 9.75574 7.69345 9.88554L8.67491 10.8675C8.79344 10.986 8.93415 11.08 9.08902 11.1442C9.24389 11.2083 9.40987 11.2413 9.5775 11.2413C9.74513 11.2413 9.91111 11.2083 10.066 11.1442C10.2208 11.08 10.3616 10.986 10.4801 10.8675L16.7033 5.24335C16.8443 5.12184 17.0272 5.06032 17.213 5.07195C17.3987 5.08358 17.5726 5.16744 17.6973 5.30558C17.8221 5.44373 17.8878 5.6252 17.8805 5.81118C17.8731 5.99717 17.7933 6.17291 17.6581 6.30081L11.4592 11.8998C11.2128 12.1448 10.9205 12.3387 10.5989 12.4705C10.2774 12.6022 9.93304 12.6692 9.58558 12.6674Z",fill:"white"}))),q.default.createElement(i.Text,{size:"p3"},c||e("pnModal.disclaimer"))),q.default.createElement(i.Heading,{tag:"h5"},e("healthToolPNModal.yourPre")),o.length>0&&q.default.createElement(Vs,{topicsGroup:[{label:"",topics:o}],selectedTopics:o,readonly:!0})))},td=({isMobile:n,isLoggedIn:r,pnSuggestCategory:l=[],acquisitionInfo:s,currentUrl:p,opened:m,close:h,finishLabelOnResult:g,onRegisterSuccess:f,disclaimerText:b})=>{const{t:x,locale:v}=d.useTranslations(),{action:{pushNotifications:y}}=t.useContext(i.TogetherComponentGlobalContext),w=o.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),C=o.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[E,k]=t.useState([]),[S,A]=t.useState([]),[T,N]=t.useState(0),[I,B]=t.useState({name:"",fitnessTopics:[]}),[P,D]=t.useState(!1),M=()=>N(2),z=t.useCallback((t=>e.__awaiter(void 0,void 0,void 0,(function*(){try{D(!0),yield i.callApiWithAuth(i.getPremiumApiPath(Ds,{website_url:i.getWebsiteUrlApi(v)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:K.default.get(c.GA_TOKEN_COOKIE),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},s.userInfo),{name:t||I.name,type_subscription:1}),domain:c.domainLocales[v||u.LOCALE.Vietnam],category:S,perferred:s.preferredTopics.map((({id:e})=>({id:e})))}}),D(!1),yield i.callApiWithAuth(i.getSsoApiPath($s),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),M()}catch(e){console.log({err:e}),D(!1),y({title:x("notification.comment.somethingWrong"),message:"",type:"danger"})}}))),[I,S]);return t.useEffect((()=>{[w,C].forEach((e=>{(new Image).src=e}))}),[]),q.default.createElement(Fs.Provider,{value:{currentUrl:p,isMobile:n,isLoggedIn:r,opened:m,close:h,pnSuggestCategory:l,nextStep:()=>N((e=>e<3?e+1:e)),prevStep:()=>N((e=>e>0?e-1:e)),lastStep:M,categoryLibs:E,setCategoryLibs:k,selectCategory:S,setSelectCategory:A,formValues:I,setFormValues:B,maxSelectCategory:5,submitLoading:P,onSubmit:z,onRegisterSuccess:f,finishLabelOnResult:g,disclaimerText:b}},q.default.createElement(js,{isMobile:n,desktopBanner:o.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:o.CommonGAssets.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:m,onClose:h,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:p}},q.default.createElement(a.Stepper,{active:T,onStepClick:N,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},q.default.createElement(a.Stepper.Step,null,q.default.createElement(qs,null)),q.default.createElement(a.Stepper.Step,null,q.default.createElement(Js,null)),q.default.createElement(a.Stepper.Step,null,q.default.createElement(ed,null)))))},ad=()=>{const{locale:a}=d.useTranslations(),{isMobile:n,isLoggedIn:o,currentUrl:r,acquisitionInfo:l,categoryIds:s,state:c,setState:u,settings:p,submitHandler:m,subcribeHealthStatus:h,showPNModal:g,setShowPNModal:f,setIsBack:b}=t.useContext(Bs),[x,v]=t.useState([]),[y,w]=t.useState(g);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e,t;const n=yield i.callApiWithAuth(i.getPremiumApiPath(Ps,{_locale:a}),"get"),o=[...(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.interested)||[],...(null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.trending)||[]];v(o.filter((e=>s.includes(Number(e.catId)))))}))}),[]);const C=t.useRef([]);return t.useEffect((()=>{const e=(null==h?void 0:h.value)||"",t=e.split("|").filter(Boolean);let a=e;C.current.push(h),t.length>1&&(null!==C.current[0]&&b(!0),Object.keys(m).map((e=>{const i=e.split("|");if(t.length===i.length){let n=0;t.map((e=>{i.includes(String(e))&&(n+=1)})),n===t.length&&(a=e)}})));const i=t.length>0?m[a]:p;u(i)}),[h]),t.useEffect((()=>{w(g)}),[g]),(null==c?void 0:c.action)!==Ns.Hide?q.default.createElement(q.default.Fragment,null,q.default.createElement(Rs,Object.assign({},p.props)),q.default.createElement(td,{acquisitionInfo:l,isMobile:n,isLoggedIn:o,currentUrl:r,pnSuggestCategory:x,opened:y,close:()=>{var e;w(!1),f(!1),setTimeout((()=>{var e;(null===(e=c.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&u({action:Ns.Hide})}),400),(null===(e=c.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&u({action:Ns.Hide})},onRegisterSuccess:()=>w(!1)})):null},id={pregnancy:Ss.Pregnant,parenting:Ss.Parenting},nd={[Ss.Pregnant]:"pregnant",[Ss.Parenting]:"parent"};exports.API_DATE_FORMAT=gi,exports.AdBlock=Pn,exports.AffiliateIcon=re,exports.AuthorBadge=ie,exports.Body=({children:e,className:t,style:a,isHoverable:i,isStriped:n})=>q.default.createElement(tt,{className:t,style:a,"data-is-striped":n||void 0,"data-is-hoverable":i||void 0},e),exports.BookingBtn=oe,exports.BookmarkedIcon=le,exports.CardAuthor=Xo,exports.CardReactions=Yn,exports.Cell=({children:e,className:t,style:a,textAlign:i,isTableHead:n})=>q.default.createElement(Ye,{className:t,style:a,"data-text-align":i||"left",as:n?"th":"td"},e),exports.Close=ne,exports.DatePicker=ge,exports.DateToInputValue=fi,exports.DoctorInfo=Ue,exports.Dropdown=Ce,exports.FormControl=Pi,exports.FormControl$1=Ki,exports.FormControl$2=an,exports.Head=({isSticky:e,children:t,className:a,style:i})=>q.default.createElement(et,{className:a,"data-is-sticky":e||void 0,style:i},q.default.createElement(Je,null,t)),exports.LabelSortPin=eo,exports.LabelSorting=({onChange:e,className:a,style:n,leftLabel:o,rightLabel:r,color:l,value:s,choices:d})=>{const{data:{env:{isMarryBaby:c}}}=t.useContext(i.TogetherComponentGlobalContext);return q.default.createElement(eo,{label:o,rightLabel:q.default.createElement(no,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:d.map((t=>({label:t.label,onClick:()=>e&&e(String(t.value)),selected:t.value===s,className:"bold-item"})))},toggleButtonContent:q.default.createElement("div",{style:{display:"flex"}},q.default.createElement(S.Text,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},r),q.default.createElement("img",{src:c?"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M8 14L12 18L16 14' stroke='%233E3F58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16 10L12 6L8 10' stroke='%233E3F58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.49992 7H11.4998C11.6352 7 11.7525 6.94506 11.8514 6.83509C11.9502 6.72515 11.9999 6.59496 11.9999 6.44449C11.9999 6.29402 11.9503 6.16389 11.8514 6.0538L8.35141 2.16491C8.25252 2.05509 8.13538 2 7.99988 2C7.86437 2 7.74723 2.05509 7.64826 2.16491L4.1483 6.0538C4.04932 6.16377 3.99988 6.29402 3.99988 6.44449C3.99988 6.59493 4.04932 6.72515 4.1483 6.83509C4.24738 6.94506 4.36452 7 4.49992 7Z' fill='%238C8C8C'/%3e%3cpath d='M11.4998 9H4.49992C4.36441 9 4.24727 9.05497 4.1483 9.16482C4.04932 9.2748 3.99988 9.40496 3.99988 9.55543C3.99988 9.7059 4.04932 9.83616 4.1483 9.94607L7.64826 13.835C7.74734 13.9449 7.86448 14 7.99988 14C8.13527 14 8.25252 13.9449 8.35141 13.835L11.8514 9.94604C11.9502 9.83616 11.9999 9.7059 11.9999 9.5554C11.9999 9.40496 11.9503 9.2748 11.8514 9.16479C11.7525 9.05485 11.6352 9 11.4998 9Z' fill='%238C8C8C'/%3e%3c/svg%3e",style:{width:16,height:16,alignSelf:"center"},loading:"lazy"}))}),color:"gray",className:a,style:n})},exports.Loading=_n,exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=nd,exports.MAPPING_CATEGORY_PREMIUM_TYPE=id,exports.MainInputTriggerContext=Rr,exports.MenuLink=({icon:e,isActive:t,children:a,isCollapsed:i,activeIcon:n,onLinkClick:o,textSize:r="base",textType:l="bold",textColorActive:s="#fff",textColor:d="#595959"})=>q.default.createElement(He,{"data-is-link-active":t||void 0,onClick:o,"data-is-link-collapsed":i||void 0},t&&n?n:e,!i&&q.default.createElement(S.Text,{size:r,type:l,color:t?s:d},a)),exports.MobileBottomNavigation=Pt,exports.MobileBottomNavigationIcon=Bt,exports.OvulationCalculator=({locale:e,onSubmitOvulation:a,isSide:n,siteType:o})=>{const{t:r}=d.useTranslations(),[l,s]=t.useState(rn.trackPeriod),c=[{label:r("ovulationPage.trackPeriod"),value:rn.trackPeriod},{label:r("ovulationPage.conceive"),value:rn.conceive},{label:r("ovulationPage.avoidPregnancy"),value:rn.avoidPregnancy}];return q.default.createElement(yi,null,q.default.createElement(ci,{className:"input-form input-section","data-is-side":!0},"marryBaby"===o?q.default.createElement(si,{groupedWithLabel:r("dueDatePage.calculationMethod"),options:c,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:c[l],onChange:e=>{s(e.value)}}):q.default.createElement(q.default.Fragment,null,q.default.createElement(i.Text,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},r("ovulationPage.objectives")),q.default.createElement(ui,{"data-is-side":n},q.default.createElement(Ce,{options:c,placeholder:r("ovulationPage.trackPeriod"),id:"due-date-dropdown",size:"md",value:c[l],onChange:e=>{s(e.value)}})))),q.default.createElement(on,{siteType:o,locale:e,onSubmit:({startDate:e,cycle:t,periodLength:i})=>{a&&a({method:l,periodDateStart:e,cycle:t,periodLength:i})},isSide:n}))},exports.PopoverMenu=io,exports.PopupDoctor=Bo,exports.PopupExpert=Ro,exports.PopupFrame=Lr,exports.PopupHospital=Vo,exports.PostContent=Gr,exports.ProfileDetail=Jl,exports.ProfileDetailModal=Qo,exports.Radio=te,exports.RadioGroup=_e,exports.RichTextEditor=({html:a,onChange:n,className:o,style:r,onImagePickerClick:l,bannedWords:s=[],onInvalidUrlsChange:d,onPreviewUrlChange:c,setEditorRef:u,isReplying:p})=>{var m,h,g,f;const b=t.useRef([]);b.current=s;const[y,w]=t.useState([]),[C,E]=t.useState(null),{data:{locale:k}}=t.useContext(i.TogetherComponentGlobalContext),A=(null==s?void 0:s.join(","))||"";t.useEffect((()=>{var e,t;const a=null===(t=null===(e=z.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;I(a)}),[A]);const T=e=>{C&&C.url===e||(E({url:e,isFetching:!0}),i.callApi(i.getApiPath(i.PATHS.FETCH_PREVIEW,{_locale:k}),"POST",{data:{link:e}}).then((t=>{var a,i,n,o;E({title:null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.title,description:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.description,image:(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.image)||(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.logo),url:e})})).catch((()=>{E(null)})))},N=t.useRef(T);N.current=T;const I=t.useCallback(Z.default((e=>{if(e){const t=Sr(e,{bannedWords:b.current,formatUrl:!0}),{invalidUrls:a,previewUrl:i,value:o}=t;a&&w(a),i?N.current(i):E(null),o!==e&&(null==n||n(o))}}),500),[]);t.useEffect((()=>{d&&d(y)}),[y]),t.useEffect((()=>{c&&((null==C?void 0:C.url)?c({title:C.title||"",url:C.url||"",image:C.image||"",description:C.description||""}):c(null))}),[C]);const B=t.useRef(l);B.current=l;const P=_.useUniqueId(),D=t.useRef({toolbar:{handlers:{image:()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.call(B)},link:()=>!1},container:"#toolbar-"+P},preserveWhiteSpace:!0}),M=t.useRef(-1),z=t.useRef(null);u&&(null===(h=null===(m=z.current)||void 0===m?void 0:m.getEditor())||void 0===h?void 0:h.root)&&u(null===(f=null===(g=z.current)||void 0===g?void 0:g.getEditor())||void 0===f?void 0:f.root);const O=()=>{var e,t,a,i,n,o,r,l;if(null===(t=null===(e=z.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Er(null===(i=null===(a=z.current)||void 0===a?void 0:a.getEditor())||void 0===i?void 0:i.root),t=null===(o=null===(n=z.current)||void 0===n?void 0:n.getEditor())||void 0===o?void 0:o.root.innerHTML;if(e>=0&&e<t.length){if(hr(t,!0).length<30-(p?1:0)){const e=function(e){var t,a;let i=null;if(void 0!==window.getSelection){const n=window.getSelection();if((null==n?void 0:n.rangeCount)&&(null==n?void 0:n.rangeCount)>0){const n=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(n){const t=n.cloneRange();t.selectNodeContents(e),t.setEnd(n.endContainer,n.endOffset);const o=(t.endContainer.nodeValue||"").substring(0,n.endOffset),r=o.lastIndexOf("@");if(r+1<o.length&&(0===r||" @"===o.slice(r-1,r+1))){const e=null===(a=o.slice(r+1))||void 0===a?void 0:a.trim();if(e){t.setStart(n.endContainer,r);const a=t.cloneRange();a.setStart(a.endContainer,r),i={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return i}(null===(l=null===(r=z.current)||void 0===r?void 0:r.getEditor())||void 0===l?void 0:l.root);e?(F(e.name,e.rect),H.current=e.replaceRange):(H.current=null,F("",null))}else H.current=null,F("",null);M.current=e}}else R([])},[L,R]=t.useState([]),[j,$]=t.useState({top:0,left:0}),F=t.useCallback(Z.default(((t,a,n)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,o,r,l;if(!t||!DOMRect)return R([]);const s=yield((null===(e=x.getCookie(i.BEARER_TOKEN_COOKIE))||void 0===e?void 0:e.length)||0)>0?i.callApiWithAuth(i.getApiPath(i.PATHS.SEARCH_USER,{_locale:k,name:t}),"get"):i.callApiWithAdminAuth(i.getApiPath(i.ADMIN_PATHS.SEARCH_USER,{_locale:k,name:t}),"get");Q(0),R(null===(r=null===(o=null==s?void 0:s.data)||void 0===o?void 0:o.users)||void 0===r?void 0:r.filter((e=>!(null==n?void 0:n.includes(String(e.id))))));const d=a,c=null===(l=V.current)||void 0===l?void 0:l.getBoundingClientRect();if(d&&c){const e=343,t=256,a={top:d.bottom-c.top,width:"min(343px, 100%)",maxHeight:t};c.width-(d.left-c.left)<e?a.right=0:a.left=d.left-c.left,$(a)}}))),500),[]),U=(e,t)=>{var a,i,n;if(H.current){H.current.deleteContents();const o=document.createElement("mention");o.setAttribute("data-id",e),o.setAttribute("data-name",t),o.innerText=t;const r=document.createTextNode(" ");H.current.insertNode(r),H.current.insertNode(o);(null===(i=null===(a=z.current)||void 0===a?void 0:a.getEditor())||void 0===i?void 0:i.root).focus();const l=null===(n=window.getSelection())||void 0===n?void 0:n.getRangeAt(0);null==l||l.setStart(H.current.endContainer,H.current.endOffset),null==l||l.setEnd(H.current.endContainer,H.current.endOffset)}R([])},V=t.useRef(null),H=t.useRef(null),G=t.useRef(null),[W,Q]=t.useState(0);return t.useEffect((()=>{if(G.current){const e=G.current,t=e.children.item(W);if(t){const a=e.getBoundingClientRect(),i=t.getBoundingClientRect();t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:t.offsetTop+i.height>e.scrollTop+a.height&&(e.scrollTop=t.offsetTop-a.height+i.height)}}}),[W]),t.useEffect((()=>{const e=function(e){var t;(null===(t=V.current)||void 0===t?void 0:t.contains(e.target))||R([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),q.default.createElement(wr,{ref:V,className:o,style:r,onKeyDownCapture:e=>{if(null==L?void 0:L.length){let t=!1;if("ArrowDown"===e.key)t=!0,Q((e=>e+1>=L.length?0:e+1));else if("Escape"===e.key)t=!0,Q(0),R([]);else if("ArrowUp"===e.key)t=!0,Q((e=>e-1<0?L.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=L[W];e&&(t=!0,U(e.id,e.name))}if(t)return e.preventDefault(),!1}}},q.default.createElement(Ar,{id:P,onAddLink:(e,t)=>{var a,i;const o=M.current+1,r=null===(i=null===(a=z.current)||void 0===a?void 0:a.getEditor())||void 0===i?void 0:i.root.innerHTML,l=((null==r?void 0:r.substring(0,o))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==r?void 0:r.substring(o))||"");null==n||n(l),I(l)}}),Cr&&q.default.createElement(Cr,{ref:z,theme:"snow",value:a,onChange:e=>{null==n||n(e),I(e),O()},onChangeSelection:()=>{O()},modules:D.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==L?void 0:L.length)&&q.default.createElement("div",{ref:G,className:"mention-search-container",style:j},L.map(((e,t)=>q.default.createElement("div",{className:"mention-search-item "+(W===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),U(e.id,e.name)},onMouseEnter:()=>{Q(t)}},q.default.createElement(v.UserAvatar,{className:"search-avatar",username:e.name,avatar:e.avatar}),q.default.createElement("div",null,q.default.createElement(S.Text,{size:"p2"},e.name),q.default.createElement(S.Text,{size:"p4",color:"#595959"},"@",e.username)))))))},exports.Row=Je,exports.ShareBox=Fr,exports.SharePopup=({trackingCategory:e,className:n,style:o,url:r,avatar:s,text:c,onClose:u})=>{const{data:{env:{isMarryBaby:p}}}=t.useContext(i.TogetherComponentGlobalContext),{t:m}=d.useTranslations(),[h,g]=t.useState(!1);return t.useEffect((()=>(l.toggleNoScroll(!0),setTimeout((()=>g(!0)),0),()=>l.toggleNoScroll(!1))),[]),q.default.createElement(a.Portal,null,q.default.createElement(Ur,{"data-is-marrybaby":p,className:n,style:o},q.default.createElement(Lr,{className:"share-popup",isOpen:h,onClose:u,heading:m("bottomBar.share")},p?q.default.createElement(S.Text,{className:"share-mb-text",size:"sm"},m("article.shareOn")):q.default.createElement("div",{className:"custom-share__header"},s&&q.default.createElement("div",{className:"custom-share__header-image"},q.default.createElement("img",{src:s,loading:"lazy"})),q.default.createElement("div",{className:"custom-share__header-info"},q.default.createElement(i.Heading,{tag:"h4"},c),q.default.createElement(S.Text,{className:"desc",size:"md"},r))),h&&q.default.createElement(Fr,{trackingCategory:e,shareUrl:r||("undefined"!=typeof window?window.location.href:""),title:c}))))},exports.SideHeader=({isCollapsed:e,defaultLogo:t,onBackClick:a,customIcon:i})=>q.default.createElement(je,null,q.default.createElement(k.Logo,{type:e?"logomark":t||"hellocare",customSize:{width:e?"24px":"77px",height:"24px"}}),q.default.createElement($e,{"data-is-collapsed":e||void 0,onClick:a},i||q.default.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 20 20",width:"20px",height:"20px"},q.default.createElement("path",{d:"M10 .75A9.25 9.25 0 1019.25 10 9.25 9.25 0 0010 .75z",fill:"none",stroke:"#d2d6dc",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),q.default.createElement("path",{d:"M11.44 6.53L8 10l3.48 3.47",fill:"none",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})))),exports.SideMenu=({isCollapsed:e,className:t,style:a,children:i})=>q.default.createElement(Re,{style:a,className:t,"data-is-collapsed":e||void 0},i),exports.SourceList=vs,exports.StyleForm=Gi,exports.StyledAcceptButton=Et,exports.StyledAcceptCardContainer=vt,exports.StyledActive=Ci,exports.StyledArrowWrapper=il,exports.StyledBabyGrowthWrapper=qi,exports.StyledBreadcrumbContainer=Ie,exports.StyledBreadcrumbWrapper=Be,exports.StyledButton=Ni,exports.StyledButton$1=Xi,exports.StyledButton$2=en,exports.StyledButtonGroup=Ct,exports.StyledCalendarCellsWrapper=sn,exports.StyledCalendarDateGrid=fn,exports.StyledCalendarDayLabel=pn,exports.StyledCalendarDayNumber=xn,exports.StyledCalendarDayNumberWrapper=bn,exports.StyledCalendarDaysOfWeek=un,exports.StyledCalendarDaysWrapper=hn,exports.StyledCalendarHead=dn,exports.StyledCalendarMonthSeparator=mn,exports.StyledCalendarMonthWrapper=gn,exports.StyledCalendarWrapper=ln,exports.StyledCalendarWrapper$1=yn,exports.StyledCardLink=Rn,exports.StyledCardPost=ys,exports.StyledCardPost$1=ts,exports.StyledCategoryCard=ce,exports.StyledCheckboxGroup=ue,exports.StyledCircleArrow=nl,exports.StyledContainer=Ai,exports.StyledContainer$1=Bi,exports.StyledContainer$2=Yi,exports.StyledContainer$3=tn,exports.StyledContent=Si,exports.StyledCreateNewPost=Yo,exports.StyledCreatePostDescription=yr,exports.StyledCreatePostTitle=Ir,exports.StyledDescription=wt,exports.StyledDescriptionWrapper=Qe,exports.StyledDetailStep=Pe,exports.StyledDetailStepDescription=Oe,exports.StyledDetailStepIndicator=De,exports.StyledDetailStepIndicatorExternal=Me,exports.StyledDetailStepLabel=ze,exports.StyledDot=We,exports.StyledDropDown=si,exports.StyledError=Jo,exports.StyledFixedAdBlock=En,exports.StyledFloatButtonGroup=ut,exports.StyledFloatButtonGroupBackgroundPanel=pt,exports.StyledFloatButtonGroupButton=ft,exports.StyledFloatButtonGroupButtonIcon=xt,exports.StyledFloatButtonGroupButtonLabel=bt,exports.StyledFloatButtonGroupContent=mt,exports.StyledFloatButtonGroupItemsWrapper=ht,exports.StyledFloatButtonGroupToggleIcon=gt,exports.StyledFormInput=wi,exports.StyledIcon=sl,exports.StyledIconText=Ee,exports.StyledImagePreviewContainer=el,exports.StyledImagePreviewPopup=Kr,exports.StyledImagePreviewTopbar=tl,exports.StyledImagePreviewWrapper=al,exports.StyledInner=ll,exports.StyledInput=Ii,exports.StyledInputCommentBar=_r,exports.StyledInputForm=xi,exports.StyledInputWrapper=yi,exports.StyledIsQuestion=Ko,exports.StyledLastPeriodFormContainer=pi,exports.StyledMethodContainer=ci,exports.StyledMethodSwitcherContainer=ui,exports.StyledNotificationBar=Jr,exports.StyledPoliciesButton=kt,exports.StyledPopupDanger=Pr,exports.StyledPostImagePreview=Yr,exports.StyledRadioGroup=Ti,exports.StyledRadioImageGroup=Qi,exports.StyledRadioImageItem=Zi,exports.StyledRow=Di,exports.StyledRow$1=Ji,exports.StyledRow$2=nn,exports.StyledScrollList=qe,exports.StyledShareContainer=wn,exports.StyledShareDrawer=Cn,exports.StyledSlider=ke,exports.StyledSocialLinkPreview=cl,exports.StyledSourceList=ws,exports.StyledStatisticContainer=Ge,exports.StyledStatisticNumberWrapper=Ze,exports.StyledStep=Se,exports.StyledStepLabel=Ne,exports.StyledSubmitButton=vi,exports.StyledSubmitReportForm=Vr,exports.StyledSurveyQuestionCard=it,exports.StyledSurveyThankyouCard=ot,exports.StyledTextField=di,exports.StyledTitleSection=yt,exports.StyledTopicSelectList=Br,exports.StyledTrack=Te,exports.StyledTrackContainer=Ae,exports.StyledTwins=bi,exports.StyledWrapper=vn,exports.StyledWrapper$1=dl,exports.SurveyOrPremiumBanner=r=>{var{type:l,articleId:s=0,categoryIds:u=[],isMarketing:p,isSurveyType:m,hasPremiumBanner:g,currentUrl:f,isMobile:b,subcribeHealthStatus:x,setShouldAcquisitionModalOpen:v,onValueChange:y,source:w="discover",Wrapper:C}=r,E=e.__rest(r,["type","articleId","categoryIds","isMarketing","isSurveyType","hasPremiumBanner","currentUrl","isMobile","subcribeHealthStatus","setShouldAcquisitionModalOpen","onValueChange","source","Wrapper"]);const{locale:k,t:S}=d.useTranslations(),{data:{userInfo:A}}=t.useContext(i.TogetherComponentGlobalContext),T=Boolean(null==A?void 0:A.id),[N,I]=t.useState(null),[B,P]=t.useState(),[D,M]=t.useState(""),[z,O]=t.useState(!1),[L,_]=t.useState(!1),R=t.useMemo((()=>id[l]),[]),j=((e,t)=>({[Ss.Pregnant]:{action:Ns.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:Ts.Button,thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:a.rem(80),[e.fn.largerThan("sm")]:{minWidth:a.rem(120)}})},items:[{label:e("switchBtn.yes"),value:"yes",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - Yes Click",dataEventLabel:t}},{label:e("switchBtn.no"),value:"no",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - No Click",dataEventLabel:t}}]},submitHandler:{yes:{action:Ns.ShowTool,props:{value:Es.DUE_DATE}},no:{action:Ns.ShowPremiumModal}}},[Ss.Parenting]:{action:Ns.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:Ts.Checkbox,items:[{label:e("pnBanner.toddlers"),value:"todders"},{label:e("pnBanner.teenager"),value:"teenager"}],submitBtnTracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the age range of your kids Click",dataEventLabel:t}},submitHandler:{todders:{action:Ns.ShowTool,props:{value:Es.BABY_VACCINE}},teenager:{action:Ns.ShowOptionBanner,props:{styleType:Ts.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},buttonProps:{variant:"white"},items:[{label:e("childCard.boy"),value:"teenager.boy",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Boy Click",dataEventLabel:t}},{label:e("childCard.girl"),value:"teenager.girl",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Girl Click",dataEventLabel:t}}]}},"teenager.boy":{action:Ns.ShowPremiumModal},"teenager.girl":{action:Ns.ShowTool,activeTool:c.RISK_SCREENER_NAME.HPV,props:{value:c.RISK_SCREENER_NAME.HPV}},"todders|teenager":{action:Ns.ShowOptionBanner,props:{styleType:Ts.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:Es.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}},{label:e("pnBanner.pn.btnLabel"),value:"todders|teenager.showPN",isPNBtn:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Premium Newsletter Click",dataEventLabel:t}}]}},"todders|teenager.showPN":{action:Ns.ShowOptionBanner,props:{styleType:Ts.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:o.CommonGAssets.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:Es.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}))(S,f)[R],$=null==j?void 0:j.submitHandler,F=()=>e.__awaiter(void 0,void 0,void 0,(function*(){const e=p?h.getCurrentBaseUrl(k)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;T?null==v||v():window.location.href=`${h.getCurrentSsoUrl(k)}/?returnUrl=${encodeURIComponent(e)}`})),U=e=>{const t=(e=>{let t="";const a=e.split("|");return 1===a.length?e:(Object.keys($).map((e=>{const i=e.split("|");if(a.length===i.length){let n=0;a.map((e=>{i.includes(String(e))&&(n+=1)})),n===a.length&&(t=e)}})),t)})(e);if(t){const a=$[t];a.action===Ns.ShowPremiumModal?g?(O(!0),P(Object.assign(Object.assign({},B),{actionParams:{hideBannerWhenClose:a.action===Ns.ShowPremiumModal}}))):(P({action:Ns.Hide}),null==y||y(e)):(P(a),null==y||y(e))}},V=C||a.Box,H=()=>q.default.createElement(a.Container,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:F,"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":f,className:"pointer-event-child-none"},E),q.default.createElement(n.ImageWrap,{src:p?o.CommonGAssets.getAssetPath(`newsletter/${b?"Mobile":"Desktop"}_Marketing.png`):o.CommonGAssets.getAssetPath(`newsletter/${b?"Mobile":"Desktop"}_${l}.png`),alt:"newsletter banner"})),G=()=>g&&1!==(null==A?void 0:A.subscription)?q.default.createElement(H,null):null;return t.useEffect((()=>{T&&I({userInfo:A,preferredTopics:Dn,healthTopics:[]})}),[T]),T?m&&j&&void 0!==x?(()=>{const e=$[(null==x?void 0:x.value)||""];return(null==e?void 0:e.action)===Ns.ShowPremiumModal?G():q.default.createElement(Bs.Provider,{value:{settings:j,submitHandler:$,type:l,surveyType:R,value:D,setValue:M,isMobile:b,isLoggedIn:T,hasPremiumBanner:g,currentUrl:f,acquisitionInfo:N,categoryIds:u,subcribeHealthStatus:x,articleId:s,onValueChange:y,state:B,setState:P,handleClickOption:U,showPNModal:z,setShowPNModal:O,source:w,Outside:V,isBack:L,setIsBack:_,minHeight:180}},q.default.createElement(ad,null))})():G():g?q.default.createElement(H,null):null},exports.SurveyQuestionCard=({className:e,headerText:a,style:i,question:n,termAndPolicyText:o,prevText:r,nextText:l,isContactForm:s,isDisableNext:d,isDisablePrev:c,onPrevClick:u,onNextClick:p,isSubmitButton:m,isButtonCenter:h,progress:g,descriptionText:f})=>{var b,x,v;const[y,w]=t.useState([]),{is_multi_select:C,multi_select_option:E,from:k,to:T}=n,N=null==n?void 0:n.type,I="checkbox"===N&&(null===(b=n.options)||void 0===b?void 0:b.length)&&(!y||0===y.length||C&&E===dt.RANGE&&(y.length<k||y.length>T)||C&&E===dt.EXACT_NUMBER&&y.length!==k)||"radio"===N&&(null===(x=n.options)||void 0===x?void 0:x.length)&&(!y||0===y.length)||"textbox"===N&&(null===(v=n.textOptions)||void 0===v?void 0:v.length)&&(y.length<n.textOptions.length||y.some((e=>!e.value))),B="number"==typeof g?g>1?1:g<0?0:Number(g.toFixed(2)):-1,P=t.useRef(null),D=()=>"textbox"!==N||P.current.reportValidity();return q.default.createElement(it,{className:e,style:i},q.default.createElement("div",{className:"survey-inner-wrapper"},a&&q.default.createElement("div",{className:"survey-header"},q.default.createElement(S.Text,{className:"survey-header-text",size:"c2"},a)),q.default.createElement("form",{ref:P,onSubmit:e=>e.preventDefault()},q.default.createElement(st,{question:n,description:f,onOptionsChange:e=>{w(e)},onTextOptionsChange:e=>{w(e)}})),s&&l&&q.default.createElement(A.Button,{className:"survey-contact-submit",size:"lg",isDisabled:d||I,onClick:()=>D()&&p&&p(y)},l),o&&q.default.createElement("div",{className:"term-policy-container"},o),"number"==typeof g&&q.default.createElement("div",{className:"survey-progress-wrapper"},q.default.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${B})`}})),(r||l)&&q.default.createElement("div",{"data-center":h,className:"survey-button-wrapper"},r&&q.default.createElement(A.Button,{className:"survey-prev-button",size:"lg",color:c?"primary":"secondary",isDisabled:c,icon:q.default.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M2.44677 4.99999L5.31252 2.13424C5.62302 1.82374 5.62302 1.31974 5.31252 1.00924C5.00202 0.698742 4.49802 0.698742 4.18752 1.00924L0.727018 4.46974C0.433768 4.76299 0.433768 5.23774 0.727018 5.53024L4.18752 8.99074C4.49802 9.30124 5.00202 9.30124 5.31252 8.99074C5.62302 8.68024 5.62302 8.17624 5.31252 7.86574L2.44677 4.99999Z",fill:c?"#fff":"#2D87F3"})),onClick:u},r),!s&&l&&q.default.createElement(A.Button,{onClick:()=>D()&&p&&p(y),className:"survey-next-button",size:"lg",isDisabled:d||I},l," ",m?void 0:q.default.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q.default.createElement("path",{d:"M3.80322 5.19994L0.937465 2.33419C0.626965 2.02369 0.626965 1.51969 0.937465 1.20919C1.24796 0.898693 1.75196 0.898693 2.06246 1.20919L5.52297 4.66969C5.81622 4.96294 5.81622 5.43769 5.52297 5.73019L2.06246 9.19069C1.75196 9.50119 1.24796 9.50119 0.937465 9.19069C0.626965 8.88019 0.626965 8.37619 0.937465 8.06569L3.80322 5.19994Z",fill:"#ffffff"}))))))},exports.TRANSITION_TIMING=ct,exports.Table=({children:e,className:t,style:a,horizontalPadding:i,verticalPadding:n})=>q.default.createElement(Xe,{className:t,style:a,theme:{horizontalPadding:i,verticalPadding:n}},e),exports.TagTopic=a=>{var{topics:n=[],onClick:o,className:r,style:l,trackingCategory:s="Together",locale:u="vi-VN",classNames:p,styles:m,unstyled:h,shortenedNumber:g=3,shortenedStyle:f}=a,b=e.__rest(a,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:x}=d.useTranslations(),{classes:v}=Kn(void 0,{name:"TagTopic",classNames:p,styles:m,unstyled:h}),{data:{env:{togetherBasePath:y}},action:{sanitizeFunction:C}}=t.useContext(i.TogetherComponentGlobalContext),[E,k]=t.useState(!f);return q.default.createElement("div",Object.assign({onClick:o,className:`${v.wrapper} ${r}`,style:l},b),(E?n:n.slice(0,g)).map(((e,t)=>{const a=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return q.default.createElement("a",{className:v.item,key:t,"data-event-category":s,"data-event-action":"Topic in Post Click","data-event-label":`${i.getCurrentBaseUrl(u)}${y}${e.url}`,href:e.isActive&&!e.isHidden?`${y}${e.url}/`:void 0},q.default.createElement(i.Text,{size:"p4"},q.default.createElement("span",{style:Object.assign({},a&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:a?`${w.format(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:c.DATE_FNS_LOCALE[u]})}/${null==e?void 0:e.dueDateYear}`:(null==C?void 0:C(e.name))||e.name}})))})),!E&&n.length>g&&q.default.createElement("a",{className:v.item,href:"#",onClick:e=>{e.preventDefault(),k(!0)}},q.default.createElement(i.Text,{size:"p4"},"+",x("tagTopic.moreTopics",{number:n.length-g}))))},exports.TogetherAuthConfigContext=Mn,exports.TogetherAuthConfigContextProvider=({children:e,defaultParams:t})=>q.default.createElement(Mn.Provider,{value:{defaultParams:t}},e),exports.ToolsBannerCard=li,exports.TreePopoverMenu=no,exports.UnbookmarkedIcon=se,exports.UserInfo=({isCollapsed:e,userName:t,role:a,avatar:i})=>q.default.createElement(Ve,{"data-is-collapsed":e||void 0},q.default.createElement(Ue,{image:i,name:t,description:a,isDescriptionHidden:e})),exports.decodeMention=pr,exports.decodePostUrl=ur,exports.encodePostContent=(e,t=(e=>e))=>((e,t=(e=>e))=>{var a;return t(null===(a=e.replace(/(\ )+/g," ").replace(/(\&)+/g,"&"))||void 0===a?void 0:a.replace(/(\u200c|‌)+/g,"").replace(tr,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(er,((e,t,a)=>{var i;const n=null===(i=t.match(/data-href="([^"]*)"/im))||void 0===i?void 0:i[1];return n?`<a href="${n}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(ir,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(fr(e)),t),exports.getDueDateConception=e=>{const t=new Date(e);return t.setDate(t.getDate()+265),{startDate:e,dueDate:t,otherInfo:{method:exports.DueDateCalculatorType.conception+1,conception_date:w.format(e,gi),first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}},exports.getDueDateIVF=(e,t)=>{const a=new Date(e);return a.setDate(a.getDate()+265-t),{startDate:e,dueDate:a,otherInfo:{method:exports.DueDateCalculatorType.IVF+1,ivf_transfer_date:w.format(e,gi),days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}},exports.getDueDateLastPeriod=(e,t)=>{const a=t-21+272,i=new Date(e);return i.setDate(i.getDate()+a),{startDate:e,dueDate:i,otherInfo:{method:exports.DueDateCalculatorType.lastPeriod+1,first_day:w.format(e,gi),cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}},exports.getMentionIdsFromString=hr,exports.highlightBadWords=vr,exports.htmlReactParser=Wa,exports.img=Or,exports.removeBannedWordWrapper=fr,exports.uploadAndGetSrc=(t,a,n)=>"string"==typeof t?Promise.resolve(t):e.__awaiter(void 0,void 0,void 0,(function*(){var e;const o=new FormData;if(t.type.startsWith("image/gif"))o.append("image",t);else{const e=yield Promise.resolve().then((function(){return H(require("browser-image-compression"))})),a=yield e.default(t,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});o.append("image",a)}const r=n?i.callApiWithAdminAuth:i.callApiWithAuth,l=yield r(i.getApiPath(n?i.ADMIN_PATHS.COMMENT.IMAGE_UPLOAD:i.PATHS.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:o});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),exports.useStyles=de,exports.useStyles$1=at,exports.useStyles$2=Wi,exports.useTogetherAuthRequiredAction=zn,exports.youtubeVidIdGetter=e=>{var t;if(!e.includes("youtu"))return"";return(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("date-fns/locale"),o=require("./Onboarding-816df77b.js"),l=require("./isProduction-fc8ac18d.js");const i={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},n={HELLO_HEALTH_GROUP:{lng:o.LOCALE.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:o.LOCALE.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:o.LOCALE.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:o.LOCALE.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:o.LOCALE.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:o.LOCALE.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:o.LOCALE.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:o.LOCALE.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:o.LOCALE.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:o.LOCALE.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:o.LOCALE.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:o.LOCALE.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}};exports.RISK_SCREENER_NAME=void 0,(exports.RISK_SCREENER_NAME||(exports.RISK_SCREENER_NAME={})).HPV="hpv";const t={[o.LOCALE.Vietnam]:{[exports.RISK_SCREENER_NAME.HPV]:"hpv-vaccine"},[o.LOCALE.Indonesia]:{[exports.RISK_SCREENER_NAME.HPV]:"deteksi-dini-hpv"}},a="userGeoLocationCoordinates",s={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},E={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},O={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},c="user",I=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],r=["vi-VN"],h=["vi-VN","id-ID","en-PH","tl-PH","ms-MY"],T=["vi-VN","id-ID"],p={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var _;exports.QUERY_HEALTH_TOOL=void 0,(_=exports.QUERY_HEALTH_TOOL||(exports.QUERY_HEALTH_TOOL={})).bmi="mi",_.gender="gndr",_.age="ge",_.slug="slug",_.resultId="resultId",_.bmr="mr",_.height="gt",_.weight="wght",_.source="surc",_.type="tp",_.startDate="sd",_.additional="tnl",_.week="wk",_.twins="twn",_.weightBefore="wb",_.yourself="yrslf",_.intensity="sy",_.rate="rt",_.method="mthd",_.day="dy",_.pwg="pwg",_.cycle="le",_.period="prd",_.access_token="tkn",_.name="nm",_.id="id";const A={[o.LOCALE.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[o.LOCALE.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[o.LOCALE.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[o.LOCALE.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.LOCALE.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.LOCALE.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},m="hhg_user_token",C={[o.LOCALE.PhilippinesEnglish]:e.enUS,[o.LOCALE.Vietnam]:e.vi,[o.LOCALE.Cambodia]:e.km,[o.LOCALE.India]:e.hi,[o.LOCALE.Indonesia]:e.id,[o.LOCALE.Myanmar]:e.enUS,[o.LOCALE.Malaysia]:e.ms,[o.LOCALE.Thailand]:e.th,[o.LOCALE.Taiwan]:e.zhTW},L="https://cdn.hellohealthgroup.com/countries";var S=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:a,domainLocales:s,LOCALE_SPECS:E,STATIC_PAGES:O,UP_BASEPATH:c,TOGETHER_LOCALES:I,ECOM_LOCALES:r,CARE_LOCALES:h,CARE_BOOKING_LOCALES:T,FAVICONS:p,get QUERY_HEALTH_TOOL(){return exports.QUERY_HEALTH_TOOL},ISO_FORMAT:A,BEARER_TOKEN_COOKIE:m,DATE_FNS_LOCALE:C,CDN_ADDRESS:L,GA_TOKEN_COOKIE:"_ga",siteHost:i,siteOptions:n,get RISK_SCREENER_NAME(){return exports.RISK_SCREENER_NAME},RISK_SCREENER_SLUG:t,isProduction:l.isProduction});exports.BEARER_TOKEN_COOKIE=m,exports.CARE_BOOKING_LOCALES=T,exports.CARE_LOCALES=h,exports.CDN_ADDRESS=L,exports.DATE_FNS_LOCALE=C,exports.ECOM_LOCALES=r,exports.FAVICONS=p,exports.GA_TOKEN_COOKIE="_ga",exports.ISO_FORMAT=A,exports.LOCALE_SPECS=E,exports.RISK_SCREENER_SLUG=t,exports.STATIC_PAGES=O,exports.TOGETHER_LOCALES=I,exports.UP_BASEPATH=c,exports.USER_GEOLOCATION_COORDINATES_COOKIE=a,exports.domainLocales=s,exports.index=S,exports.siteHost=i,exports.siteOptions=n;
|
|
1
|
+
"use strict";var e=require("date-fns/locale"),o=require("./Onboarding-2c0f2c98.js"),l=require("./isProduction-af82e297.js");const i={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},n={HELLO_HEALTH_GROUP:{lng:o.LOCALE.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:o.LOCALE.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:o.LOCALE.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:o.LOCALE.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:o.LOCALE.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:o.LOCALE.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:o.LOCALE.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:o.LOCALE.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:o.LOCALE.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:o.LOCALE.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:o.LOCALE.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:o.LOCALE.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}};exports.RISK_SCREENER_NAME=void 0,(exports.RISK_SCREENER_NAME||(exports.RISK_SCREENER_NAME={})).HPV="hpv";const t={[o.LOCALE.Vietnam]:{[exports.RISK_SCREENER_NAME.HPV]:"hpv-vaccine"},[o.LOCALE.Indonesia]:{[exports.RISK_SCREENER_NAME.HPV]:"deteksi-dini-hpv"}},a="userGeoLocationCoordinates",s={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},E={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},O={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},c="user",I=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],r=["vi-VN"],h=["vi-VN","id-ID","en-PH","tl-PH","ms-MY"],T=["vi-VN","id-ID"],p={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var _;exports.QUERY_HEALTH_TOOL=void 0,(_=exports.QUERY_HEALTH_TOOL||(exports.QUERY_HEALTH_TOOL={})).bmi="mi",_.gender="gndr",_.age="ge",_.slug="slug",_.resultId="resultId",_.bmr="mr",_.height="gt",_.weight="wght",_.source="surc",_.type="tp",_.startDate="sd",_.additional="tnl",_.week="wk",_.twins="twn",_.weightBefore="wb",_.yourself="yrslf",_.intensity="sy",_.rate="rt",_.method="mthd",_.day="dy",_.pwg="pwg",_.cycle="le",_.period="prd",_.access_token="tkn",_.name="nm",_.id="id";const A={[o.LOCALE.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[o.LOCALE.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[o.LOCALE.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.LOCALE.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[o.LOCALE.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.LOCALE.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.LOCALE.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},m="hhg_user_token",C={[o.LOCALE.PhilippinesEnglish]:e.enUS,[o.LOCALE.Vietnam]:e.vi,[o.LOCALE.Cambodia]:e.km,[o.LOCALE.India]:e.hi,[o.LOCALE.Indonesia]:e.id,[o.LOCALE.Myanmar]:e.enUS,[o.LOCALE.Malaysia]:e.ms,[o.LOCALE.Thailand]:e.th,[o.LOCALE.Taiwan]:e.zhTW},L="https://cdn.hellohealthgroup.com/countries";var S=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:a,domainLocales:s,LOCALE_SPECS:E,STATIC_PAGES:O,UP_BASEPATH:c,TOGETHER_LOCALES:I,ECOM_LOCALES:r,CARE_LOCALES:h,CARE_BOOKING_LOCALES:T,FAVICONS:p,get QUERY_HEALTH_TOOL(){return exports.QUERY_HEALTH_TOOL},ISO_FORMAT:A,BEARER_TOKEN_COOKIE:m,DATE_FNS_LOCALE:C,CDN_ADDRESS:L,GA_TOKEN_COOKIE:"_ga",siteHost:i,siteOptions:n,get RISK_SCREENER_NAME(){return exports.RISK_SCREENER_NAME},RISK_SCREENER_SLUG:t,isProduction:l.isProduction});exports.BEARER_TOKEN_COOKIE=m,exports.CARE_BOOKING_LOCALES=T,exports.CARE_LOCALES=h,exports.CDN_ADDRESS=L,exports.DATE_FNS_LOCALE=C,exports.ECOM_LOCALES=r,exports.FAVICONS=p,exports.GA_TOKEN_COOKIE="_ga",exports.ISO_FORMAT=A,exports.LOCALE_SPECS=E,exports.RISK_SCREENER_SLUG=t,exports.STATIC_PAGES=O,exports.TOGETHER_LOCALES=I,exports.UP_BASEPATH=c,exports.USER_GEOLOCATION_COORDINATES_COOKIE=a,exports.domainLocales=s,exports.index=S,exports.siteHost=i,exports.siteOptions=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-
|
|
1
|
+
"use strict";var t=require("./tslib.es6-61e2dd67.js");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var e=a(require("react")),d="P03rcnV",o="LsvykAk",c="S2kaD9B",i="fAwTdkg",l="ITgol3T",r="cD-HMFz",n="oAG2-aJ",s="Y9fGCaj";exports.Button=a=>{var{size:u,color:C="primary",theme:m="helloSites",isDisabled:h,isBlock:p,title:f,className:g,onClick:P,icon:k,iconPosition:v="left",children:E,isLoading:y=!1,loadingText:b,dataEventCategory:N,dataEventAction:w,dataEventLabel:L,dataProductChannel:B,dataProductSku:x,dataProductBrand:A,dataProductName:T,dataProductPrice:j,dataProductCategory:z,dataProductPosition:D,type:S}=a,F=t.__rest(a,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);const M={"data-event-category":N,"data-event-action":w,"data-event-label":L,"data-product-channel":B,"data-product-sku":x,"data-product-brand":A,"data-product-name":T,"data-product-price":j,"data-product-category":z,"data-product-position":D},q=e.default.createElement("span",{className:o},e.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.default.createElement("circle",{className:s,cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),e.default.createElement("svg",{className:d,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.default.createElement("mask",{id:"path-1-inside-1",fill:"white"},e.default.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),e.default.createElement("path",{className:n,d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"}))),G=(k||y)&&e.default.createElement("span",{className:r},y?q:k," ");return e.default.createElement("button",Object.assign({},M,{className:`${l} ${g||""}`,"data-size":u,"data-color":C,"data-block":p,"data-has-icon":!!k||void 0,"data-theme":m,disabled:h,onClick:t=>{!y&&!h&&P&&P(t)},title:f,"data-is-loading":y,type:S},F),e.default.createElement("span",{className:i},"left"===v&&G,E&&e.default.createElement("span",{className:c},y&&b||E),"right"===v&&G))};
|