@hhgtech/hhg-components 1.27.75 → 1.27.77
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/components/organisms/bookingSearchBarV2/reducer.d.ts +8 -1
- package/build/care/components/organisms/bookingSearchBarV2/types.d.ts +1 -0
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-f4e0cc96.js → core-b6a1615d.js} +1 -1
- package/build/{dataTransform-ab7e470d.js → dataTransform-0539103b.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +5 -5
- package/build/esm/cache.js +1 -1
- package/build/esm/care/components/organisms/bookingSearchBarV2/reducer.d.ts +8 -1
- package/build/esm/care/components/organisms/bookingSearchBarV2/types.d.ts +1 -0
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-2da3e6c2.js → core-de35b0f7.js} +1 -1
- package/build/esm/{dataTransform-1e8e57ae.js → dataTransform-3cd85e82.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-f2c420d3.js → fixedBottomAdBlock-e51b8cbb.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-e0a22cb8.js +1 -0
- package/build/esm/{getSocialList-ce1df33e.js → getSocialList-25a58184.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-23d39e23.js → index-0b0f8e1d.js} +1 -1
- package/build/esm/{index-d963ae02.js → index-170f4848.js} +1 -1
- package/build/esm/index-1e6b570d.js +1 -0
- package/build/esm/{index-fc253295.js → index-361d7498.js} +1 -1
- package/build/esm/{index-b6fd32a6.js → index-3fe7c8a1.js} +2 -2
- package/build/esm/{index-491bc339.js → index-7be87b68.js} +1 -1
- package/build/esm/{index-6bdfdf9d.js → index-8de53234.js} +1 -1
- package/build/esm/{index-a8ea5833.js → index-9d5eb4eb.js} +1 -1
- package/build/esm/{index-e3ebc389.js → index-aad021da.js} +1 -1
- package/build/esm/{index-9a3c7916.js → index-ac0a790f.js} +1 -1
- package/build/esm/index-b3e5649b.js +1 -0
- package/build/esm/{index-0045a7ab.js → index-b43c0134.js} +1 -1
- package/build/esm/{index-0972aea3.js → index-c9b8cf0e.js} +1 -1
- package/build/esm/{index-dfba6d17.js → index-cefc2aa9.js} +2 -2
- package/build/esm/{index-58124f3f.js → index-cff3e93e.js} +1 -1
- package/build/esm/{index-b046ac56.js → index-dafb8a8b.js} +1 -1
- package/build/esm/index-dd628c03.js +1 -0
- package/build/esm/{index-8d662abd.js → index-dd95ab43.js} +1 -1
- package/build/esm/{index-298d2dff.js → index-ea78769c.js} +4 -4
- package/build/esm/{index-e753d931.js → index-eba70594.js} +1 -1
- package/build/esm/{index-057b9753.js → index-ec811524.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-646add26.js → index.styled-01f2a57e.js} +4 -4
- package/build/esm/{index.styled-fa8d0af3.js → index.styled-7d670c7c.js} +1 -1
- package/build/esm/{index.styled-b32a424e.js → index.styled-87be1f69.js} +3 -3
- 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/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-ba8cdac1.js → routing-a6279020.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-71b5bdec.js → types-0feff4ba.js} +1 -1
- package/build/esm/{types-5014c71f.js → types-e1deec4b.js} +10 -10
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-44494a2f.js +1 -0
- package/build/esm/{useRafState-8aa33131.js → useRafState-9445ed41.js} +1 -1
- package/build/esm/{useTranslations-8b8b8c67.js → useTranslations-0662d321.js} +1 -1
- package/build/esm/{utils-91009635.js → utils-1014195f.js} +1 -1
- package/build/esm/{utils-8e9f95b2.js → utils-8d276e09.js} +1 -1
- package/build/esm/vaccination.js +5 -5
- package/build/{fixedBottomAdBlock-ffdcc228.js → fixedBottomAdBlock-35c427be.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-f1f8ea80.js +1 -0
- package/build/{getSocialList-e2aaf23c.js → getSocialList-96b8c383.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-2d36ac5d.js → index-0099a050.js} +1 -1
- package/build/{index-0d8392a7.js → index-1512d05d.js} +1 -1
- package/build/{index-f98a0f2f.js → index-28fd969c.js} +1 -1
- package/build/{index-d6015d3d.js → index-44e2c8b1.js} +1 -1
- package/build/{index-b4cbaf35.js → index-4ce63cf0.js} +1 -1
- package/build/{index-2837faed.js → index-50cc3489.js} +2 -2
- package/build/{index-fa8f07dd.js → index-54ddfef3.js} +1 -1
- package/build/{index-46846b7b.js → index-5a168e0d.js} +1 -1
- package/build/{index-77a0cf1d.js → index-5e1906ba.js} +1 -1
- package/build/{index-bf7a1f17.js → index-5eb364c7.js} +1 -1
- package/build/{index-d0b452f0.js → index-7d6ac546.js} +2 -2
- package/build/{index-4a0a729f.js → index-8cbc8c8a.js} +1 -1
- package/build/{index-c88b0d0c.js → index-8d346c59.js} +1 -1
- package/build/{index-85ab0e5c.js → index-93ae7a02.js} +1 -1
- package/build/{index-9a436c02.js → index-9d4f6d86.js} +1 -1
- package/build/{index-dbe7ddea.js → index-a0272415.js} +1 -1
- package/build/{index-1e89f0a6.js → index-b31641df.js} +1 -1
- package/build/{index-c8e735cb.js → index-bbff3cac.js} +1 -1
- package/build/index-beea8003.js +1 -0
- package/build/{index-d8986717.js → index-d00434b8.js} +1 -1
- package/build/{index-f4ef854b.js → index-fa6abd23.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-00a32037.js → index.styled-10731ab1.js} +4 -4
- package/build/{index.styled-50f6cf61.js → index.styled-4154967a.js} +5 -5
- package/build/{index.styled-e2817d70.js → index.styled-d83a7154.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/onboarding.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-77940f4a.js → routing-58a5c633.js} +1 -1
- package/build/together.js +1 -1
- package/build/{types-730eaaee.js → types-6313dc64.js} +61 -61
- package/build/{types-277f2105.js → types-85f7346b.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-af106c38.js +1 -0
- package/build/{useRafState-194aeabd.js → useRafState-c73a0d23.js} +1 -1
- package/build/{useTranslations-170ece47.js → useTranslations-dcf3a591.js} +1 -1
- package/build/{utils-54b6945d.js → utils-14390336.js} +1 -1
- package/build/{utils-439579f7.js → utils-3e873595.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/esm/getDynamicHealthTool-78177aa7.js +0 -1
- package/build/esm/index-40c07ce5.js +0 -1
- package/build/esm/index-c04051ef.js +0 -1
- package/build/esm/index-e0ff4805.js +0 -1
- package/build/esm/useHealthToolCache-51660606.js +0 -1
- package/build/getDynamicHealthTool-d475bbe4.js +0 -1
- package/build/index-8a94e57a.js +0 -1
- package/build/useHealthToolCache-53cde07d.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-81581f79.js → BMI_BOYS.percentile.monthly-8bc47d0e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-841a43ef.js → BMI_BOYS.percentile.weekly-3c3185fe.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-65c4e7d5.js → BMI_BOYS.percentile.yearly-a3c3be6a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-4185280b.js → BMI_BOYS.zscore.monthly-cb19c22b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-a1cedebe.js → BMI_BOYS.zscore.weekly-3c7914a9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-e9e1c8fb.js → BMI_BOYS.zscore.yearly-7b77041f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-ce408a70.js → BMI_GIRLS.percentile.monthly-e636e172.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-b4e0b788.js → BMI_GIRLS.percentile.weekly-3ccbe5c9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-c9d6bd4c.js → BMI_GIRLS.percentile.yearly-ad8ce2f9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-01e9254b.js → BMI_GIRLS.zscore.monthly-1847c867.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-898e4a4d.js → BMI_GIRLS.zscore.weekly-1cd173d5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-3d4767c2.js → BMI_GIRLS.zscore.yearly-1705ad77.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-ca73fc80.js → HEAD CIRCUM_BOYS.percentile.monthly-440023e5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-89a6448e.js → HEAD CIRCUM_BOYS.percentile.weekly-7501b8bd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7128e059.js → HEAD CIRCUM_BOYS.percentile.yearly-6f6c005e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-c793a2c4.js → HEAD CIRCUM_BOYS.zscore.monthly-eaa8cdbb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-f7e36157.js → HEAD CIRCUM_BOYS.zscore.weekly-2db75e08.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-de1c9730.js → HEAD CIRCUM_BOYS.zscore.yearly-6f0d5f94.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-1ed77c4b.js → HEAD CIRCUM_GIRLS.percentile.monthly-ac06f604.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-4de6b737.js → HEAD CIRCUM_GIRLS.percentile.weekly-dde131b0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-bd4f44ea.js → HEAD CIRCUM_GIRLS.percentile.yearly-d9bc0d4f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-82049fba.js → HEAD CIRCUM_GIRLS.zscore.monthly-88670aaa.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e9383a0f.js → HEAD CIRCUM_GIRLS.zscore.weekly-8fab6921.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0ff44730.js → HEAD CIRCUM_GIRLS.zscore.yearly-acb82961.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-98026016.js → HEIGHT_BOYS.percentile.monthly-d086e5dd.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-25bf0c79.js → HEIGHT_BOYS.percentile.weekly-a337b841.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-9bf64df8.js → HEIGHT_BOYS.percentile.yearly-1aae5285.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-763a2f78.js → HEIGHT_BOYS.zscore.monthly-3e77f873.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-b3534ca1.js → HEIGHT_BOYS.zscore.weekly-14b32aa4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-3682fa5c.js → HEIGHT_BOYS.zscore.yearly-a8a77653.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-384aedb3.js → HEIGHT_GIRLS.percentile.monthly-8b308fcb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-1b1e227d.js → HEIGHT_GIRLS.percentile.weekly-87102d56.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-b3115978.js → HEIGHT_GIRLS.percentile.yearly-3cdc5755.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-396b54d7.js → HEIGHT_GIRLS.zscore.monthly-892da7b0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-051e670a.js → HEIGHT_GIRLS.zscore.weekly-d59cfade.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-2d60c13f.js → HEIGHT_GIRLS.zscore.yearly-4862bf46.js} +0 -0
- /package/build/{Onboarding-1f90967e.js → Onboarding-0b7b7088.js} +0 -0
- /package/build/{Visible-a3467956.js → Visible-1637fdee.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-b1da6f55.js → WEIGHT_BOYS.percentile.monthly-307dca3c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-4b60f764.js → WEIGHT_BOYS.percentile.weekly-866d6426.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-006c0e9b.js → WEIGHT_BOYS.percentile.yearly-b75a7bd0.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-76f087ed.js → WEIGHT_BOYS.zscore.monthly-03f01b63.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-13d2bf3e.js → WEIGHT_BOYS.zscore.weekly-2213e0ea.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-1cc2de0d.js → WEIGHT_BOYS.zscore.yearly-c2d11a52.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-56fc6b58.js → WEIGHT_GIRLS.percentile.monthly-7fd8d5e7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-b3913718.js → WEIGHT_GIRLS.percentile.weekly-bb4fbb99.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-7e74041a.js → WEIGHT_GIRLS.percentile.yearly-bb50cb71.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-cd8f7f98.js → WEIGHT_GIRLS.zscore.monthly-bf5d6322.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-2e121f87.js → WEIGHT_GIRLS.zscore.weekly-613ff5f7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-abc4038a.js → WEIGHT_GIRLS.zscore.yearly-ce44d817.js} +0 -0
- /package/build/{constants-37a91c1c.js → constants-0b94b0ef.js} +0 -0
- /package/build/{cookieHelper-29cbe396.js → cookieHelper-28418d50.js} +0 -0
- /package/build/{dataTransform-7a9f5f99.js → dataTransform-e202fcea.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-0ee6baeb.js → BMI_BOYS.percentile.monthly-d576e8c8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-23fc910d.js → BMI_BOYS.percentile.weekly-9632ca1d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-ebe30e22.js → BMI_BOYS.percentile.yearly-34084400.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-f45a2ab9.js → BMI_BOYS.zscore.monthly-3925f585.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-d694bcc1.js → BMI_BOYS.zscore.weekly-380e5ab0.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-a8aca47b.js → BMI_BOYS.zscore.yearly-42e0f113.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-04ee6002.js → BMI_GIRLS.percentile.monthly-b0ea9ac6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-03351496.js → BMI_GIRLS.percentile.weekly-022c77d2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-2d20ec21.js → BMI_GIRLS.percentile.yearly-a35cf6b2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-9a675292.js → BMI_GIRLS.zscore.monthly-e16df50b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-0bb4ff01.js → BMI_GIRLS.zscore.weekly-b4126d87.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-c8fd4b16.js → BMI_GIRLS.zscore.yearly-9ce76edc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-1c3007b0.js → HEAD CIRCUM_BOYS.percentile.monthly-08883135.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-0e306f16.js → HEAD CIRCUM_BOYS.percentile.weekly-927ce0e7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-b32d67a5.js → HEAD CIRCUM_BOYS.percentile.yearly-5756fd15.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-09e3a52a.js → HEAD CIRCUM_BOYS.zscore.monthly-3cadb609.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-9db77e89.js → HEAD CIRCUM_BOYS.zscore.weekly-fe0a6bfb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-ded144f9.js → HEAD CIRCUM_BOYS.zscore.yearly-6a31c8e0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ba51199d.js → HEAD CIRCUM_GIRLS.percentile.monthly-6a5c21a1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-87c357a8.js → HEAD CIRCUM_GIRLS.percentile.weekly-e8e2940f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-4d180385.js → HEAD CIRCUM_GIRLS.percentile.yearly-9e2b18da.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-9a63c448.js → HEAD CIRCUM_GIRLS.zscore.monthly-4dc09062.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-9706a300.js → HEAD CIRCUM_GIRLS.zscore.weekly-dbc2c20d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-7e20a05b.js → HEAD CIRCUM_GIRLS.zscore.yearly-d967fc57.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-f1ddf4f4.js → HEIGHT_BOYS.percentile.monthly-12580d33.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-8c7d669f.js → HEIGHT_BOYS.percentile.weekly-67e8d3b3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-64db0f52.js → HEIGHT_BOYS.percentile.yearly-583f35bb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-f2fc7baa.js → HEIGHT_BOYS.zscore.monthly-eb0d568d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-a3d0bb4d.js → HEIGHT_BOYS.zscore.weekly-5579f50d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f157b62f.js → HEIGHT_BOYS.zscore.yearly-7a74b77e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-26fe4c4f.js → HEIGHT_GIRLS.percentile.monthly-346628e7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-aa22cf33.js → HEIGHT_GIRLS.percentile.weekly-d2c6e03f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-12c67e8a.js → HEIGHT_GIRLS.percentile.yearly-7fdb11fc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-d3a0eaf2.js → HEIGHT_GIRLS.zscore.monthly-ef45d4cc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e448068c.js → HEIGHT_GIRLS.zscore.weekly-7be8b157.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-cde5b988.js → HEIGHT_GIRLS.zscore.yearly-d3361f9f.js} +0 -0
- /package/build/esm/{Onboarding-31a3985d.js → Onboarding-4e9e8aae.js} +0 -0
- /package/build/esm/{Visible-863a4921.js → Visible-337f0ae8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-424df3a3.js → WEIGHT_BOYS.percentile.monthly-be8f1ed6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-29ea2f94.js → WEIGHT_BOYS.percentile.weekly-4c8ce1e9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-5191b4fa.js → WEIGHT_BOYS.percentile.yearly-c4e0d25f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-fd65eda5.js → WEIGHT_BOYS.zscore.monthly-226d4905.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1306d14e.js → WEIGHT_BOYS.zscore.weekly-af97ac08.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-7dac54be.js → WEIGHT_BOYS.zscore.yearly-47766db4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-428e29df.js → WEIGHT_GIRLS.percentile.monthly-a7824c0a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-75e3aa40.js → WEIGHT_GIRLS.percentile.weekly-cf9786b3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f9fc7972.js → WEIGHT_GIRLS.percentile.yearly-a84439e9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-ca3ab63f.js → WEIGHT_GIRLS.zscore.monthly-12e0b25b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-9e023ce4.js → WEIGHT_GIRLS.zscore.weekly-0250bc08.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-e3eea98c.js → WEIGHT_GIRLS.zscore.yearly-dc9bf4ba.js} +0 -0
- /package/build/esm/{constants-6209ef8e.js → constants-0d5c979d.js} +0 -0
- /package/build/esm/{cookieHelper-9b99e140.js → cookieHelper-d64c7ab8.js} +0 -0
- /package/build/esm/{dataTransform-919ee401.js → dataTransform-8d4b11a4.js} +0 -0
- /package/build/esm/{index-1a6cfade.js → index-ab915718.js} +0 -0
- /package/build/esm/{isProduction-80db27a7.js → isProduction-89bedce0.js} +0 -0
- /package/build/esm/{localizeNumberFormat-6c922ebb.js → localizeNumberFormat-ae9baae7.js} +0 -0
- /package/build/esm/{normalizeLink-39b0b487.js → normalizeLink-f8417b9d.js} +0 -0
- /package/build/esm/{paths-28c8a2a4.js → paths-f405024a.js} +0 -0
- /package/build/esm/{screenSizeContext-278fb125.js → screenSizeContext-df03e653.js} +0 -0
- /package/build/esm/{theme-45af8322.js → theme-7a103b73.js} +0 -0
- /package/build/esm/{translationsContext-ea69e400.js → translationsContext-e727348d.js} +0 -0
- /package/build/esm/{tslib.es6-bc654cf4.js → tslib.es6-ea0bc661.js} +0 -0
- /package/build/esm/{types-fa90358a.js → types-e0a41f1c.js} +0 -0
- /package/build/esm/{useIsInit-2e27a4a0.js → useIsInit-c7a67d73.js} +0 -0
- /package/build/esm/{useOutsideClick-94c8c5bb.js → useOutsideClick-52158cb8.js} +0 -0
- /package/build/esm/{useScrollbarSize-8eafa738.js → useScrollbarSize-0506fed9.js} +0 -0
- /package/build/esm/{useUniqueId-e6365df8.js → useUniqueId-7c6ee486.js} +0 -0
- /package/build/{index-4b7f51a1.js → index-605b050b.js} +0 -0
- /package/build/{isProduction-0d471101.js → isProduction-6789cec9.js} +0 -0
- /package/build/{localizeNumberFormat-aecbcf5e.js → localizeNumberFormat-ce36be96.js} +0 -0
- /package/build/{normalizeLink-f91c7f62.js → normalizeLink-a5972bc2.js} +0 -0
- /package/build/{paths-626520af.js → paths-aaf724d8.js} +0 -0
- /package/build/{screenSizeContext-78dcbc84.js → screenSizeContext-60c9a923.js} +0 -0
- /package/build/{theme-fa6346a6.js → theme-6d163020.js} +0 -0
- /package/build/{translationsContext-dbae5d91.js → translationsContext-83e9c923.js} +0 -0
- /package/build/{tslib.es6-5fc7b96d.js → tslib.es6-6b1f416b.js} +0 -0
- /package/build/{types-4802e362.js → types-cf30c0b1.js} +0 -0
- /package/build/{useIsInit-f38da90c.js → useIsInit-75d937c5.js} +0 -0
- /package/build/{useOutsideClick-acf8c291.js → useOutsideClick-a5b21ce9.js} +0 -0
- /package/build/{useScrollbarSize-decf02fe.js → useScrollbarSize-e66ee866.js} +0 -0
- /package/build/{useUniqueId-10a7c3de.js → useUniqueId-613b73ae.js} +0 -0
package/build/esm/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{B as t}from"./index-e753d931.js";import{C as a}from"./index-dfba6d17.js";import{T as l}from"./index-b046ac56.js";import n from"dayjs";import{d as o}from"./index-23d39e23.js";import{t as i}from"./theme-45af8322.js";import{u as r}from"./useTranslations-8b8b8c67.js";import{Flex as c,Stack as m,Box as s}from"@mantine/core";import{L as d}from"./index-a8ea5833.js";import{M as v}from"./index-e0ff4805.js";import{x as u}from"./utils-8e9f95b2.js";import"@mantine/dates";import"./Onboarding-31a3985d.js";import"./gAssets.js";import"./screenSizeContext-278fb125.js";import"styled-components";import"./isProduction-80db27a7.js";import"./translationsContext-ea69e400.js";import"string-format";import"./index-298d2dff.js";import"@mantine/hooks";import"./tslib.es6-bc654cf4.js";import"./useUniqueId-e6365df8.js";import"date-fns/locale";import"react-keyed-flatten-children";import"@mantine/carousel";import"lodash/debounce";import"./cookieHelper-9b99e140.js";import"slugify";import"lodash/throttle";var g="Lj0qoTD",p="OO-qFWT";const E=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:p,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),y=({className:c,type:m="main",footerInfo:s,isMobile:d,locale:v})=>{var u,p,y,f,b,N,h,k,F,z,$,x,T,j,M,C,L,_,H,w,S,I,A,G,B,q,D,U;const{t:O}=r(),J=null==s?void 0:s.menu,K=(null===(p=null===(u=null==s?void 0:s.general)||void 0===u?void 0:u.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${g} ${c||""}`,style:"mini"===m?{backgroundColor:i.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":m},"main"===m?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==s?void 0:s.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(f=null==s?void 0:s.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(b=null==s?void 0:s.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==s?void 0:s.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,J&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=J[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(z=J[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=J[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${o[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(T=J[2])||void 0===T?void 0:T.menu_title),null===(M=null===(j=J[2])||void 0===j?void 0:j.items)||void 0===M?void 0:M.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(C=null==s?void 0:s.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==s?void 0:s.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(E,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},K.length?K.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(l,{size:"xs",type:"regular",className:"copyright-content"},null===(H=null==s?void 0:s.general)||void 0===H?void 0:H.copyright.replace(/{currentYear}/gi,n().get("year").toString()))),"vi-VN"===v&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==s?void 0:s.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(w=null==s?void 0:s.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(S=null==s?void 0:s.menu[1])||void 0===S?void 0:S.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${o[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[v]}${t.url}`},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${o[v]}${t.url}`,size:"sm",type:"regular",style:{color:i.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==s?void 0:s.menu[2])||void 0===A?void 0:A.menu_title),null===(B=null===(G=null==s?void 0:s.menu[2])||void 0===G?void 0:G.items)||void 0===B?void 0:B.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(l,{size:"sm",type:"regular",style:{color:i.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==m&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(q=null==s?void 0:s.social)||void 0===q?void 0:q.title),e.createElement("div",{className:"icons"},null===(U=null===(D=null==s?void 0:s.social)||void 0===D?void 0:D.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var f="B6-KmWK",b="GS-7mbG",N="qc5bEb3",h="CQGVeuT",k="_8eUT8Jr",F="_6JMoel-",z="pFG7UH3";const $=({logoType:t="marryBaby",footerMenu:l,background:o})=>{var r;if(!l)return null;const{general:g,menu:p,socials:E}=l;return e.createElement("footer",{className:f,style:{backgroundColor:o||"none"}},e.createElement(a,null,e.createElement("div",{className:b},null==p?void 0:p.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:N,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:i.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:h,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:i.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:F},e.createElement(c,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(m,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(u,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==g?void 0:g.content}})),e.createElement("div",{className:z},null==E?void 0:E.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(s,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(u,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==g?void 0:g.information}})))))),e.createElement("div",{className:k},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(u,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==g?void 0:g.copyright.replace(/{currentYear}/gi,n().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(r=null==g?void 0:g.verified)||void 0===r?void 0:r.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},x=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(y,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement($,{footerMenu:n,background:i});export{x as Footer};
|
|
1
|
+
import e from"react";import{B as t}from"./index-eba70594.js";import{C as a}from"./index-cefc2aa9.js";import{T as l}from"./index-dafb8a8b.js";import n from"dayjs";import{d as o}from"./index-0b0f8e1d.js";import{t as i}from"./theme-7a103b73.js";import{u as r}from"./useTranslations-0662d321.js";import{Flex as c,Stack as m,Box as s}from"@mantine/core";import{L as d}from"./index-9d5eb4eb.js";import{M as v}from"./index-b3e5649b.js";import{x as u}from"./utils-8d276e09.js";import"@mantine/dates";import"./Onboarding-4e9e8aae.js";import"./gAssets.js";import"./screenSizeContext-df03e653.js";import"styled-components";import"./isProduction-89bedce0.js";import"./translationsContext-e727348d.js";import"string-format";import"./index-ea78769c.js";import"@mantine/hooks";import"./tslib.es6-ea0bc661.js";import"./useUniqueId-7c6ee486.js";import"date-fns/locale";import"react-keyed-flatten-children";import"@mantine/carousel";import"lodash/debounce";import"./cookieHelper-d64c7ab8.js";import"slugify";import"lodash/throttle";var g="Lj0qoTD",p="OO-qFWT";const E=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:p,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),y=({className:c,type:m="main",footerInfo:s,isMobile:d,locale:v})=>{var u,p,y,f,b,N,h,k,F,z,$,x,T,j,M,C,L,_,H,w,S,I,A,G,B,q,D,U;const{t:O}=r(),J=null==s?void 0:s.menu,K=(null===(p=null===(u=null==s?void 0:s.general)||void 0===u?void 0:u.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${g} ${c||""}`,style:"mini"===m?{backgroundColor:i.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":m},"main"===m?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==s?void 0:s.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(f=null==s?void 0:s.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(b=null==s?void 0:s.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==s?void 0:s.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,J&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=J[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(z=J[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=J[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${o[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(T=J[2])||void 0===T?void 0:T.menu_title),null===(M=null===(j=J[2])||void 0===j?void 0:j.items)||void 0===M?void 0:M.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(C=null==s?void 0:s.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==s?void 0:s.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(E,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},K.length?K.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(l,{size:"xs",type:"regular",className:"copyright-content"},null===(H=null==s?void 0:s.general)||void 0===H?void 0:H.copyright.replace(/{currentYear}/gi,n().get("year").toString()))),"vi-VN"===v&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==s?void 0:s.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(w=null==s?void 0:s.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(S=null==s?void 0:s.menu[1])||void 0===S?void 0:S.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${o[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[v]}${t.url}`},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${o[v]}${t.url}`,size:"sm",type:"regular",style:{color:i.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==s?void 0:s.menu[2])||void 0===A?void 0:A.menu_title),null===(B=null===(G=null==s?void 0:s.menu[2])||void 0===G?void 0:G.items)||void 0===B?void 0:B.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(l,{size:"sm",type:"regular",style:{color:i.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==m&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(q=null==s?void 0:s.social)||void 0===q?void 0:q.title),e.createElement("div",{className:"icons"},null===(U=null===(D=null==s?void 0:s.social)||void 0===D?void 0:D.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var f="B6-KmWK",b="GS-7mbG",N="qc5bEb3",h="CQGVeuT",k="_8eUT8Jr",F="_6JMoel-",z="pFG7UH3";const $=({logoType:t="marryBaby",footerMenu:l,background:o})=>{var r;if(!l)return null;const{general:g,menu:p,socials:E}=l;return e.createElement("footer",{className:f,style:{backgroundColor:o||"none"}},e.createElement(a,null,e.createElement("div",{className:b},null==p?void 0:p.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:N,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:i.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:h,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:i.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:F},e.createElement(c,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(m,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(u,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==g?void 0:g.content}})),e.createElement("div",{className:z},null==E?void 0:E.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(s,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(u,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==g?void 0:g.information}})))))),e.createElement("div",{className:k},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(u,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==g?void 0:g.copyright.replace(/{currentYear}/gi,n().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(r=null==g?void 0:g.verified)||void 0===r?void 0:r.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},x=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(y,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement($,{footerMenu:n,background:i});export{x as Footer};
|
package/build/esm/gAssets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as e}from"./index-0b0f8e1d.js";import{i as s}from"./isProduction-89bedce0.js";import"date-fns/locale";import"./Onboarding-4e9e8aae.js";const t="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,t,o)=>{const i="https://hhg-common."+[t||this.getBaseDomain(),o||this.subPath,e].join("/");return s||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,o=s.split("."),i=e[Object.keys(e).find((t=>s.includes(e[t])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?t:i}return t}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./tslib.es6-ea0bc661.js";import{g as o}from"./core-de35b0f7.js";import{n as i}from"./normalizeLink-f8417b9d.js";import{c as l}from"./routing-a6279020.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=o=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===o?"lang=fil":"";let a=[];try{const r=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,o))))||[]}catch(t){}return a}catch(t){console.error(t)}})),s=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>e(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{L as t}from"./Onboarding-31a3985d.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
|
|
1
|
+
import e from"react";import{L as t}from"./Onboarding-4e9e8aae.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
|
package/build/esm/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{u as useTranslations}from"./useTranslations-
|
|
1
|
+
export{u as useTranslations}from"./useTranslations-0662d321.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-0506fed9.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-9445ed41.js";export{u as useHealthToolsCache}from"./useHealthToolCache-44494a2f.js";export{u as useIsInit}from"./useIsInit-c7a67d73.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-52158cb8.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-7c6ee486.js";import"react";import"./translationsContext-e727348d.js";import"string-format";import"lodash/debounce";import"./tslib.es6-ea0bc661.js";import"./cookieHelper-d64c7ab8.js";import"./getDynamicHealthTool-e0a22cb8.js";import"./core-de35b0f7.js";import"./isProduction-89bedce0.js";import"./normalizeLink-f8417b9d.js";import"./routing-a6279020.js";import"./index-0b0f8e1d.js";import"date-fns/locale";import"./Onboarding-4e9e8aae.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as s}from"./translationsContext-
|
|
1
|
+
import{T as s}from"./translationsContext-e727348d.js";export{T as TranslationsContext}from"./translationsContext-e727348d.js";import o,{useState as e,useEffect as r,useMemo as t}from"react";import i from"./i18n-values/en-PH.js";import n from"./i18n-values/hi-IN.js";import a from"./i18n-values/id-ID.js";import l from"./i18n-values/km-KH.js";import m from"./i18n-values/ms-MY.js";import v from"./i18n-values/my-MM.js";import j from"./i18n-values/th-TH.js";import u from"./i18n-values/tl-PH.js";import p from"./i18n-values/vi-VN.js";import c from"./i18n-values/vi-VN_MB.js";import f from"./i18n-values/zh-TW.js";const d={"en-PH":i,"vi-VN":p,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":v,"km-KH":l,"zh-TW":f,"th-TH":j,"tl-PH":u,"vi-VN_MB":c},h=({locale:i="en-PH",overrides:n,overrideCurrentLocale:a,children:l,shouldLoadTranslation:m=!0,loader:v=null,onTranslationsLoaded:j})=>{const u=n&&n[i]||a,[p,c]=e((()=>Object.assign(Object.assign({},u),m?d[i]:{})));r((()=>{c(Object.assign(Object.assign({},u),m?d[i]:{}))}),[m,i]);const f=t((()=>p?{locale:i,values:p}:null),[i,p]);return r((()=>{j&&Object.keys(p).length&&j(p)}),[p]),o.createElement(s.Provider,{value:f},f?l:v)};export{h as TranslationsProvider,d as translationsMap};
|
package/build/esm/i18nV2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e}from"./translationsContext-
|
|
1
|
+
import{T as e}from"./translationsContext-e727348d.js";export{T as TranslationsContext}from"./translationsContext-e727348d.js";import t,{useMemo as o}from"react";const r=({locale:r="en-PH",values:n,children:a})=>{const l=o((()=>n?{locale:r,values:n}:null),[r,n]);return t.createElement(e.Provider,{value:l},a)};export{r as TranslationsProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{enUS as o,vi as e,km as l,hi as i,id as a,ms as n,th as t,zhTW as s}from"date-fns/locale";import{L as E}from"./Onboarding-31a3985d.js";import{i as c}from"./isProduction-80db27a7.js";const h={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"},I={HELLO_HEALTH_GROUP:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:E.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:E.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:E.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:E.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:E.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:E.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:E.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:E.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:E.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:E.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}},T="userGeoLocationCoordinates",r={"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"},O={"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"}},p={"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"}},_="user",m=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],A=["vi-VN"],u=["vi-VN","id-ID","en-PH","tl-PH"],y=["vi-VN","id-ID"],N={"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 S;!function(o){o.bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id"}(S||(S={}));const C={[E.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[E.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},g="hhg_user_token",R={[E.PhilippinesEnglish]:o,[E.Vietnam]:e,[E.Cambodia]:l,[E.India]:i,[E.Indonesia]:a,[E.Myanmar]:o,[E.Malaysia]:n,[E.Thailand]:t,[E.Taiwan]:s},L="https://cdn.hellohealthgroup.com/countries";var P=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:T,domainLocales:r,LOCALE_SPECS:O,STATIC_PAGES:p,UP_BASEPATH:_,TOGETHER_LOCALES:m,ECOM_LOCALES:A,CARE_LOCALES:u,CARE_BOOKING_LOCALES:y,FAVICONS:N,get QUERY_HEALTH_TOOL(){return S},ISO_FORMAT:C,BEARER_TOKEN_COOKIE:g,DATE_FNS_LOCALE:R,CDN_ADDRESS:L,siteHost:h,siteOptions:I,isProduction:c});export{g as B,u as C,R as D,A as E,N as F,C as I,O as L,S as Q,p as S,m as T,_ as U,L as a,y as b,T as c,r as d,h as e,P as i,I as s};
|
|
1
|
+
import{enUS as e,vi as o,km as l,hi as i,id as a,ms as n,th as t,zhTW as s}from"date-fns/locale";import{L as E}from"./Onboarding-4e9e8aae.js";import{i as c}from"./isProduction-89bedce0.js";const h={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"},I={HELLO_HEALTH_GROUP:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:E.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:E.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:E.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:E.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:E.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:E.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:E.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:E.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:E.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:E.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:E.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}},T="userGeoLocationCoordinates",r={"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"},O={"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"}},p={"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"}},_="user",m=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],A=["vi-VN"],u=["vi-VN","id-ID","en-PH","tl-PH"],y=["vi-VN","id-ID"],N={"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 S;!function(e){e.bmi="mi",e.gender="gndr",e.age="ge",e.slug="slug",e.resultId="resultId",e.bmr="mr",e.height="gt",e.weight="wght",e.source="surc",e.type="tp",e.startDate="sd",e.additional="tnl",e.week="wk",e.twins="twn",e.weightBefore="wb",e.yourself="yrslf",e.intensity="sy",e.rate="rt",e.method="mthd",e.day="dy",e.pwg="pwg",e.cycle="le",e.period="prd",e.access_token="tkn",e.name="nm",e.id="id"}(S||(S={}));const C={[E.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[E.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[E.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[E.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[E.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},g="hhg_user_token",R={[E.PhilippinesEnglish]:e,[E.Vietnam]:o,[E.Cambodia]:l,[E.India]:i,[E.Indonesia]:a,[E.Myanmar]:e,[E.Malaysia]:n,[E.Thailand]:t,[E.Taiwan]:s},L="https://cdn.hellohealthgroup.com/countries";var P=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:T,domainLocales:r,LOCALE_SPECS:O,STATIC_PAGES:p,UP_BASEPATH:_,TOGETHER_LOCALES:m,ECOM_LOCALES:A,CARE_LOCALES:u,CARE_BOOKING_LOCALES:y,FAVICONS:N,get QUERY_HEALTH_TOOL(){return S},ISO_FORMAT:C,BEARER_TOKEN_COOKIE:g,DATE_FNS_LOCALE:R,CDN_ADDRESS:L,siteHost:h,siteOptions:I,isProduction:c});export{g as B,u as C,R as D,A as E,N as F,C as I,O as L,S as Q,p as S,m as T,_ as U,L as a,y as b,T as c,r as d,h as e,P as i,I as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./tslib.es6-bc654cf4.js";import t,{useState as a,useEffect as l,useMemo as n,useRef as o,useContext as i,useCallback as s}from"react";import{g as r}from"./core-2da3e6c2.js";import{K as c,F as m,E as u,y as d,x as g,P as h,H as v}from"./utils-8e9f95b2.js";import{S as p,a as E,b as y,c as b,d as f,e as C,f as k,g as w,T as P,N,h as M,i as _,j as A,k as T,l as L,m as S,n as H,o as B,p as x,q as U,r as $,s as I,t as R,u as O,v as j,w as F,x as D,y as z,z as V,A as G,B as W,C as K,D as q,E as Q,F as Y,G as Z,H as J,I as X,J as ee,K as te,L as ae,M as le,O as ne,P as oe,Q as ie,R as se,V as re,W as ce,X as me,Y as ue,Z as de,_ as ge,$ as he,a0 as ve,a1 as pe,a2 as Ee,a3 as ye,a4 as be,a5 as fe,a6 as Ce,a7 as ke,a8 as we,a9 as Pe,aa as Ne,ab as Me,ac as _e,ad as Ae,ae as Te,af as Le,ag as Se,ah as He,ai as Be,aj as xe}from"./index.styled-fa8d0af3.js";import{T as Ue}from"./index-b046ac56.js";import{CommonGAssets as $e}from"./gAssets.js";import{d as Ie,L as Re,S as Oe,U as je,T as Fe,C as De}from"./index-23d39e23.js";import{n as ze,a as Ve}from"./normalizeLink-39b0b487.js";import{c as Ge,b as We,d as Ke}from"./routing-ba8cdac1.js";import{P as qe,b as Qe,c as Ye}from"./dataTransform-1e8e57ae.js";import{L as Ze}from"./index-a8ea5833.js";import{u as Je}from"./useTranslations-8b8b8c67.js";import Xe from"lodash/throttle";import{j as et}from"./screenSizeContext-278fb125.js";import{U as tt,C as at}from"./index-dfba6d17.js";import{L as lt}from"./Onboarding-31a3985d.js";import{t as nt}from"./theme-45af8322.js";import{g as ot}from"./cookieHelper-9b99e140.js";import{I as it}from"./index-298d2dff.js";import{B as st}from"./index-e753d931.js";import{Portal as rt}from"@mantine/core";import"@mantine/dates";import"dayjs";import"styled-components";import"./isProduction-80db27a7.js";import"@mantine/hooks";import ct from"lodash/debounce";import{L as mt}from"./constants-6209ef8e.js";import ut from"string-format";import{a as dt}from"./useUniqueId-e6365df8.js";import{I as gt}from"./index-c04051ef.js";import{u as ht}from"./useIsInit-2e27a4a0.js";const vt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},pt=({type:e="square",size:n,avatarImg:o,avatarUrl:i,firstLetter:s,backgroundColor:r,onClick:m,style:u,className:d,width:g,height:h,alt:v})=>{const p=n?vt[n]:void 0,[E,y]=a(!1);l((()=>{if(i){const e=document.createElement("img");e.setAttribute("src",i),e.addEventListener("error",(()=>{y(!0)}))}}),[i,y]);const b=(!i&&!o||E)&&s;return t.createElement(c,{style:Object.assign(Object.assign({},u),{"--size":p?p+"px":void 0,"--width-prop":g?g+"px":void 0,"--height-prop":h?h+"px":void 0,"--background-color":r}),"data-has-max":!(!g||!h),"data-avatar-type":e,onClick:m,className:d,avatarUrl:i,"data-custom-size":!!n},o,i&&!E&&t.createElement(it,{src:i,alt:v||"avatar"}),b&&s)},Et=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],yt=(e="")=>Et.some((t=>new URL(e).origin.endsWith(t))),bt=({options:e,label:l,labelRenderer:n,selected:o,onChange:i,showSelected:s=!0,style:r={},showIndicator:c=!0})=>{const[m,u]=a(!1);return t.createElement(t.Fragment,null,t.createElement(p,null,t.createElement(E,{onClick:()=>u((e=>!e))},l||(null==n?void 0:n(m))||null,t.createElement(y,{"data-is-open":m,style:r,"data-show-indicator":c},e.map(((e,a)=>t.createElement(b,{key:a,"data-selected":s&&o===e.value,onClick:t=>{o!==e.value&&(i(e.value),u((e=>!e))),t.stopPropagation()}},t.createElement(Ue,{size:"p3"},e.label),s&&o===e.value&&t.createElement("img",{src:$e.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&t.createElement(f,{onClick:()=>u(!1)}))},ft=({languageOptions:e,locale:a})=>{var l,n;const o=null==e?void 0:e.find((e=>e.locale===a));return(null==e?void 0:e.length)?t.createElement(bt,{options:e,selected:o.value,label:t.createElement(Ct,{locale:a,label:o.label||(null===(n=null===(l=a.split("-"))||void 0===l?void 0:l[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Ct=({locale:e,label:a,href:l})=>{var n,o,i;return t.createElement(C,{href:l},t.createElement(m,{country:null===(o=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===o?void 0:o.toUpperCase(),width:16,height:16,rounded:!0,language:null===(i=null==e?void 0:e.split("-"))||void 0===i?void 0:i[0]}),t.createElement("span",null,a))},kt=({forceDisplay:e,mediaQueryKey:a,children:l,className:o,style:i})=>{const[s,r]=n((()=>et(a)),[a]);return t.createElement(k,{lowerBound:e?0:s,upperBound:e?0:r,className:o,style:i},l)},wt=e=>{const{allowBgScroll:t}=e||{},a=o();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},Pt=({type:e="lead",closeIcon:a,isOpen:l=!0,onClose:n,children:o,enableAnimation:i=!0,targetAvatar:s,id:r,className:c})=>t.createElement(w,{"data-open":l,"data-type":e,"data-animation":i,"data-target":s,id:r,className:c},t.createElement("div",{className:"popup-content"},!!a&&t.createElement("div",{className:"close-button",onClick:n},a),o)),Nt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Mt="uJQBNNg",_t="TfG3dM5",At="aMtjFNf",Tt="cSz2RR-",Lt="GyFm00F";function St({userInfo:e,onClickMyProfileButton:a,themeName:l="helloSites"}){const{t:o}=Je(),i=n((()=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return t.createElement("div",{className:Mt,onClick:()=>{a&&a()}},t.createElement(pt,{className:_t,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:i,backgroundColor:"marryBaby"===l?nt.mbColors.pink:nt.colors.secondaryBase}),t.createElement("div",{className:At},t.createElement("div",{className:Tt},(null==e?void 0:e.name)||(null==e?void 0:e.username)),t.createElement("div",{className:Lt,style:{"--bg-hellosites":`url(${$e.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${$e.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},o("userProfile.nav.header.viewProfile"))))}var Ht="gn6HmGG",Bt="FCx8FEM",xt="zMiRxaE",Ut="lZ2Z9MQ",$t="rwm-agG",It="qMOscoq";const Rt=({themeName:e,locale:l,onClickItem:o})=>{const[i,s]=a(""),r=n((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:$e.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:$e.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:$e.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:$e.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?s((t=>t?"":e.key)):o&&o(e)}return t.createElement("div",{className:Ht},r.map((e=>t.createElement(Ot,{key:e.key,item:e,openKey:i,onClickItem:c,locale:l}))))},Ot=({item:e,openKey:a,onClickItem:l,locale:n})=>{var o;const{t:i}=Je();return(null===(o=e.disableLocale)||void 0===o?void 0:o.includes(n))?null:t.createElement("div",{className:`${Bt} nav-menu-item`,"data-is-open":a===e.key,key:e.key,"data-has-submenu":!!e.subMenu},t.createElement("div",{className:xt,onClick:()=>l(e)},e.icon&&t.createElement("div",{className:Ut,style:{backgroundImage:`url("${e.icon}")`}}),i(e.key),e.subMenu&&t.createElement("div",{className:$t,style:{"--after-bg":`url(${$e.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&t.createElement("div",{className:It},e.subMenu.map((e=>t.createElement(Ot,{key:e.key,item:e,openKey:a,onClickItem:l,locale:n})))))};var jt="-AZt1au",Ft="IvSIfCI",Dt="eahCJov",zt="XIyViFs",Vt="_4y-O0w3",Gt="kO8iNgD",Wt="a1d4E10",Kt="Tdguxxf",qt="-mOxsaU",Qt="yPeDBNZ";const Yt={helloSites:{member:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Zt=({themeName:e,rank:a="member",numberOfPosts:l=0})=>{const{t:o}=Je(),i=n((()=>{var t,l;return(null===(l=null===(t=Yt[e])||void 0===t?void 0:t[a])||void 0===l?void 0:l.call(t))||""}),[a,e]);return t.createElement("div",{className:Vt,"data-user-rank":a},t.createElement("div",{className:Gt},t.createElement("div",{className:Wt},t.createElement("div",{className:Kt,style:{backgroundImage:`url("${i}")`}}),t.createElement("h3",{className:qt},o(`userProfile.userRank.${a}`)),l>0&&t.createElement("p",{className:Qt},l," ",o("userProfile.nav.header.count.posts")))))},Jt=e=>{var t,a,l,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>Jt(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(l=e.reviewed_by,{postTitle:l.post_title,permalink:l.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},Xt=e=>{var t,a;if(!e)return{};const l=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),o=e.link?e.link.startsWith("http")||l?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:o,subtitle:e.subtitle,title:e.title}},ea=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},ta=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},aa=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=mt[a])||void 0===l?void 0:l.ALL}/${(null===(n=mt[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},la=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},na=e=>{const t=new Date;if(null==e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()<a.getTime())return!1}if(null==e?void 0:e.endDate){const a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0},oa=({SSO_URL:e,UP_BASEPATH:o="user",themeName:i="helloSites",cardUrls:s=Nt,enableCare:r,enableTogether:c,enableEcom:m,enableMySaved:u,userInfo:d,togetherApiDomain:g,userPostsNumber:h,onClickNavigationCard:v,onClickMyProfileButton:p,onClickMenuItem:E,onClickLogout:y,isUserProfileNavigatorMenuHidden:b=!1,isMyHealthEnabled:f=!1,locale:C})=>{const{t:k}=Je(),[w,M]=a(h||0),_="marryBaby"===i;l((()=>{if(d&&void 0===h){const e=ot("hhg_user_token");e&&fetch(ze(((e,t,a,l)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+ut(P.GET_USER_POSTS,Object.assign(Object.assign({},l),{websiteUrl:t?"https://marrybaby.vn":`https://${Ie[e]}`})))(C,_,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,l;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&M((null===(l=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===l?void 0:l.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[C,null!==d,h,g,_]);const A=n((()=>{let e;return e=_?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?r:"myCommunity"===e?c:"myHealth"===e?f:"eCom"===e?m:"mySaved"!==e||u))}),[_,f]),T=n((()=>"marryBaby"===i?null:t.createElement(st,{color:"tertiary",icon:t.createElement("img",{src:$e.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:zt},k("userProfile.nav.menu.logout"))),[i]),L=t=>{window.location.href=ze(`${e}${o}/${t}`)},S=e=>{const t=s[e];v?v(t):L(t)};return d?t.createElement("div",{className:jt,"data-theme":i},t.createElement(St,{userInfo:d,themeName:i,onClickMyProfileButton:()=>{p?p():L("profile")}}),t.createElement(Zt,{themeName:i,rank:"member",numberOfPosts:w}),t.createElement("div",{className:Ft},A.map((e=>t.createElement(N,{className:Dt,key:e,themeName:i,type:e,onClick:S})))),!b&&t.createElement(t.Fragment,null,t.createElement(Rt,{themeName:i,locale:C,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(E?E(e.link):L(e.link))}}),T)):null},ia=({SSO_URL:e,UP_BASEPATH:a,isOpen:l,targetAvatar:n,userInfo:o,enableCare:i,enableTogether:s,enableEcom:r,enableMySaved:c,closePopup:m,siteType:u="helloSites",dispatchLogout:d,userProfileRouterPush:g,isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v=!1,togetherApiDomain:p,locale:E})=>{const y=t=>{g?g(`/${t}`):e&&(window.location.href=ze(`${e}${a}/${t}`))},b=e=>{y(e),m()};return t.createElement(Pt,{isOpen:l,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},t.createElement(oa,{SSO_URL:e,UP_BASEPATH:a,themeName:u,userInfo:o,enableCare:i,enableTogether:s,enableEcom:r,enableMySaved:c,onClickLogout:()=>{d&&(d(),m())},onClickMenuItem:b,onClickNavigationCard:b,onClickMyProfileButton:()=>{y("profile"),m()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v,togetherApiDomain:p,locale:E}))},sa=({openLogoutPopup:e,onCloseHandler:a,onLogoutHandler:n,siteType:o="helloSites"})=>{const{t:i}=Je();return l((()=>{document.body.classList.toggle("noscroll",e)}),[e]),t.createElement(rt,null,t.createElement(qe,{type:"confirm",isOpen:e,closeIcon:t.createElement("img",{src:$e.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:a},t.createElement(M,null,"helloSites"===o&&t.createElement("img",{src:$e.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),t.createElement("h2",null,i("helloSites"===o?"logout.popup.ask1":"logout.popup.ask.mb")),t.createElement("p",null,i("logout.popup.ask2")),t.createElement(_,{siteType:o},t.createElement(st,{className:"logout-button",color:"tertiary",size:"lg",onClick:n},i("logout.popup.button.logout")),t.createElement(st,{className:"cancel-button",color:"primary",size:"lg",onClick:a},i("logout.popup.button.cancel"))))))},ra=({userInfo:n,siteType:o,onLoginClick:i,SSO_URL:s,currentUrl:r,isMinifyLogin:c,enableCare:m,enableTogether:h,enableEcom:v,isUserProfileNavigatorMenuHidden:p,UP_BASEPATH:E,isMyHealthEnabled:y,togetherApiDomain:b,onLogout:f,style:C,userProfileRouterPush:k,isLoading:w,locale:P,enableMySaved:N})=>{const{t:M}=Je(),[_,S]=a(!1),H=(null==n?void 0:n.name)||(null==n?void 0:n.username),[B,x]=a(!1);l((()=>{x(!0)}),[]);const{containerRef:U,onContainerFocus:$,onContainerBlur:I,onButtonMouseDown:R,onClose:O}=wt();return w?t.createElement(u,{size:"sm",color:"transparent",loading:w}):(null==n?void 0:n.id)?t.createElement(t.Fragment,null,t.createElement(A,{ref:U,style:C,tabIndex:0,onBlur:I,onFocus:$},t.createElement("div",{onMouseDown:R},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),t.createElement(d,{size:40,className:"user-avatar",src:null==n?void 0:n.avatar,color:"marryBaby"===o?nt.mbColors.pink:nt.colors.secondaryBase,placeholderText:H&&H.length?H[0].toUpperCase():"A"})),t.createElement(ia,{UP_BASEPATH:E,SSO_URL:s,dispatchLogout:()=>{O(),S(!0)},isOpen:!1,isMyHealthEnabled:y,enableCare:m,enableTogether:h,enableEcom:v,enableMySaved:N,closePopup:O,userInfo:n,siteType:o,isUserProfileNavigatorMenuHidden:p,togetherApiDomain:b,userProfileRouterPush:k,locale:P})),t.createElement(sa,{openLogoutPopup:_,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),S(!1)},siteType:o,onLogoutHandler:()=>e(void 0,void 0,void 0,(function*(){S(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):t.createElement(T,{style:Object.assign({textDecoration:"none"},C),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,href:B?void 0:ze(`${s}?returnUrl=${r}`),"data-site-type":o},c?t.createElement(L,{onClick:i},t.createElement("img",{src:$e.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):t.createElement(t.Fragment,null,"helloSites"===o&&(P===lt.Indonesia?t.createElement("img",{className:"mobile-only",src:$e.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:i}):t.createElement(u,{className:"mobile-only",size:"sm",onClick:i,leftIcon:t.createElement(tt,{useCurrentColor:!0,isSolid:!0,size:22}),styles:{root:{paddingLeft:"5px",paddingRight:"8px"},leftIcon:{marginRight:"5px"}}},M("navigation.loginJoin"))),"marryBaby"===o&&t.createElement("div",{className:"mobile-only",onClick:i,style:{paddingLeft:16}},t.createElement(g,{size:"p3",color:nt.mbColors.pink},M("navigation.loginJoin"))),t.createElement(u,{className:"login-btn",size:"md",onClick:i,leftIcon:t.createElement(tt,{useCurrentColor:!0,isSolid:!0,size:22})},M("navigation.loginJoin"))))};var ca="spdlGfq",ma="vgS16jX";const ua=({onCareHeaderClick:e,currentUrl:a,careUrlFe:l,btnName:n})=>e?t.createElement(st,{className:ca,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:a,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):t.createElement("a",{href:l,className:`${ma} care-button no-replace-click`},t.createElement(st,{className:ca,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:a},n));var da="y5VJdvw",ga="oVhOSCy",ha="pX8OXTM";function va({className:e}){return t.createElement("div",null,t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function pa({siteType:e,type:a,enableSearch:l,className:n}){return"helloSites"===e?t.createElement("div",null,t.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:l?$e.getAssetPath("hamburgerMenuNewWithSearch.svg"):$e.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:a,className:n,loading:"lazy"})):t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const Ea=()=>{const{locale:e,configs:{statics:a},siteType:l}=i(S),n=dt(),{t:o}=Je();return t.createElement(h,{className:"fake-search-input",name:"search-input-menu-service"+n,size:"md",placeholder:"marryBaby"===l?o("navigation.search.input.placeholder"):o("home.search",{site:Re[e||"en-PH"]?Re[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${a.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:t.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},t.createElement(H,null))})};var ya="wnUb-dV",ba="cjbOxWe",fa="gB4rp89";const Ca=({item:e,menu:a})=>{const{containerRef:l,onContainerFocus:n,onContainerBlur:o,onButtonMouseDown:i,onClose:s}=wt({allowBgScroll:!0}),r=ht();return!e.popupType&&e.link?t.createElement(ka,{isNew:e.isNew},t.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(r?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},t.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ba},e.name))):t.createElement(ka,{isNew:e.isNew},t.createElement("div",{ref:l,className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:o,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},t.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:i,className:ba},"care"===e.id&&t.createElement("a",{className:fa,href:ze(e.link+"/")},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name,e.popupType&&t.createElement("div",{className:ya},t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),t.isValidElement(a)?t.cloneElement(a,{onClose:s}):null))},ka=({isNew:e,children:a})=>{const{t:l}=Je();return e?t.createElement(gt,{color:"green",label:l("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},a):t.createElement(t.Fragment,null,a)},wa=({hrefViewMore:e,titleBtnViewMore:a,UrlFE:l,onClosePopup:n,menuItems:o,headingTitle:s})=>{const{siteType:r}=i(S);return t.createElement(B,null,t.createElement(x,null,t.createElement(v,{tag:"marryBaby"===r?"h5":"h6",as:"p",fontWeight:"semibold"},s)),null==o?void 0:o.slice(0,6).map(((e,a)=>{const o=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${l}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return t.createElement(U,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":o,"data-is-heading-category":!1,href:o},!yt(o)&&{target:"_blank"},{"data-theme":r,key:a,onClick:n}),t.createElement("div",{className:"icon"},t.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),t.createElement(ka,{isNew:e.isNew},t.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),t.createElement($,null,t.createElement("img",{src:$e.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),a&&t.createElement(I,{"data-theme":r,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},t.createElement(R,{onClick:n,"data-theme":r,"data-is-heading-category":!1},a,t.createElement(O,null,t.createElement("img",{className:"svg",src:"marryBaby"===r?$e.getAssetPath("chevronRightPink.svg"):$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},Pa=({item:e,index:a=0})=>{var l;const{t:n}=Je(),{locale:o,configs:{statics:s}}=i(S);if(!e)return null;const r=`${s.CARE_URL_FE}/${null===(l=mt[o])||void 0===l?void 0:l.HOSPITAL}/${e.slug}-${e.id}`;return t.createElement(j,{key:e.id,href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${a+1}`,"data-event-label":r},t.createElement("img",{src:$e.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),t.createElement(F,null,t.createElement(D,null,t.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),t.createElement(z,null,t.createElement(V,null,e.name),t.createElement(G,null,e.description),t.createElement(W,null,n("home.seeMore"),t.createElement("img",{src:$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},Na=({title:e,link:a,description:l,cta:n,icon:o})=>{const{siteType:s}=i(S);return t.createElement(K,{"data-theme":s},t.createElement(q,null,t.createElement("img",{src:"marryBaby"===s?$e.getAssetPath("navMBSpotlightBgNoData.svg"):$e.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),t.createElement(Q,null,o&&t.createElement("img",{src:o,width:64,height:64,loading:"lazy"}))),t.createElement("div",null,e&&t.createElement(Y,null,e),l&&t.createElement(Z,null,l),n&&t.createElement("div",null,t.createElement("a",{href:a},t.createElement(st,{theme:s,className:"survey-contact-submit",size:"md"},n)))))},Ma=({title:e,viewMore:a,children:l,link:n,dataEventAction:o=""})=>{const{siteType:s}=i(S);return t.createElement(J,null,t.createElement(X,null,t.createElement(v,{tag:"marryBaby"===s?"h5":"h6",as:"p",fontWeight:"semibold"},e),a&&t.createElement(ee,{"data-event-category":"Hamburger Navigation","data-event-action":o,"data-event-label":n,href:n,"data-theme":s},a,t.createElement("img",{src:"marryBaby"===s?$e.getAssetPath("chevronRightPink.svg"):$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),l)},_a=({spotlights:e=[],hrefViewMore:a})=>{const{t:l}=Je(),{siteType:n}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?t.createElement(t.Fragment,null,t.createElement(te,null,null==e?void 0:e.slice(0,3).map(((e,a)=>t.createElement(Pa,{key:a,index:a,item:e})))),t.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},t.createElement("a",{href:a},t.createElement(st,{theme:n,className:"survey-contact-submit",size:"md"},l("home.navigator.menu.care.homeButton"))))):t.createElement(Na,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:a,cta:l("home.navigator.menu.care.homeButton"),icon:$e.getAssetPath("community.svg")}))},Aa=({item:e,index:a=0})=>e?t.createElement(ae,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${a+1}`,"data-event-label":e.link},t.createElement(le,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),t.createElement(ne,null,e.title)):null,Ta=({spotlightsList:e=[],hrefViewMore:a})=>{const{t:l}=Je(),{configs:{statics:n}}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlights"),viewMore:l("home.navigator.menu.spotlights.seeAll"),link:a,dataEventAction:"Spotlight See More Click"},0!==e.length?t.createElement(oe,null,null==e?void 0:e.slice(0,4).map(((e,a)=>t.createElement(Aa,{key:a,index:a,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):t.createElement(Na,{title:l("home.navigator.menu.category.noDatas.title"),description:l("home.navigator.menu.category.noDatas.description"),link:a,cta:l("home.navigator.menu.category.noDatas.cta"),icon:$e.getAssetPath("Spotlight.svg")}))},La=({spotlights:e=[]})=>{const{configs:{statics:a}}=i(S),{t:l}=Je();return t.createElement(Ma,{title:l("home.navigator.menu.trendingPosts"),viewMore:l("home.navigator.menu.trendingPosts.seeMore"),link:Ve(a.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?t.createElement(ie,null,null==e?void 0:e.slice(0,4).map(((e,a)=>t.createElement(se,{index:a,post:e,key:e.id})))):t.createElement(Na,{title:l("home.navigator.menu.together.noPosts.title"),description:l("home.navigator.menu.together.noPosts.description"),link:`${a.HOME_PAGE_URL}/community/`,cta:l("home.navigator.menu.together.noPosts.cta"),icon:$e.getAssetPath("community.svg")}))},Sa=({item:e,index:a=0})=>{const{t:l}=Je(),{configs:{statics:n}}=i(S);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return t.createElement(re,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":o},t.createElement("img",{src:$e.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),t.createElement(ce,null,t.createElement(me,null,e.title),t.createElement(ue,null,e.subtitle),t.createElement(de,null,l("home.seeMore"),t.createElement("img",{src:$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),t.createElement(ge,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Ha=({item:e,index:a=0,color:l})=>{const{t:n}=Je(),{configs:{statics:o}}=i(S);if(!e)return null;const s=e.link?e.link.startsWith("http")?e.link:`${o.HOME_PAGE_URL}${e.link}`:void 0,r=()=>t.createElement(pe,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>t.createElement(Ee,null,t.createElement(ye,null,t.createElement(be,null,e.title),t.createElement(fe,null,e.subtitle)),t.createElement(Ce,null,t.createElement("div",{className:"mobile-only"},n("home.seeMore")),t.createElement("img",{src:$e.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return t.createElement(he,{href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":s,"data-color":l},t.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),t.createElement("img",{src:$e.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),t.createElement(ve,null,t.createElement("div",{className:"mobile-only"},r()),t.createElement("div",{className:"desktop-only"},c())),t.createElement("div",{className:"mobile-only"},c()),t.createElement("div",{className:"desktop-only"},r()))},Ba=({hrefViewMore:e,spotlightHealthTools:a=[]})=>{const{t:l}=Je(),n=["pink","orange","green"],{siteType:o}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlightTools")},0!==a.length&&t.createElement(ke,null,null==a?void 0:a.slice(0,3).map(((e,a)=>"marryBaby"===o?t.createElement(Ha,{key:a,index:a,item:e,color:n[a]}):t.createElement(Sa,{key:a,index:a,item:e})))),0===a.length&&t.createElement(Na,{title:l("home.navigator.menu.healthTools.noDatas.title"),description:l("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:l("home.navigator.menu.healthTools.noDatas.cta"),icon:$e.getAssetPath("community.svg")}))},xa=({closePopup:e,menuItems:a=[]})=>{var l,n;const{siteType:o,ssrMenuContent:{categories:s,healthTools:r,care:c,together:m},activeMenuService:u,configs:{statics:d,enableSearchBar:g},locale:h}=i(S),{t:v}=Je();return t.createElement(we,{id:"categories-menu"},g?t.createElement(Pe,{"data-theme":o,onClick:()=>{window.location.href=`${d.HOME_PAGE_URL}/search`}},t.createElement(Ea,null)):null,t.createElement(Ne,null,t.createElement(wa,{UrlFE:d.HOME_PAGE_URL,titleBtnViewMore:v("home.navigator.menuItem.allCategories"),menuItems:a,headingTitle:v("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===u&&t.createElement(Ta,{spotlightsList:(null==s?void 0:s.spotlights)||[],hrefViewMore:`${d.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}/spotlight/`}),"tools"===u&&t.createElement(Ba,{spotlightHealthTools:null==r?void 0:r.spotlights,hrefViewMore:`${d.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}${(null===(l=Oe[h])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===u&&t.createElement(_a,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${d.CARE_URL_FE}/${null===(n=mt[h])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===u&&t.createElement(La,{spotlights:null==m?void 0:m.spotlights})))},Ua=({type:e="home",menuItems:a})=>{const{siteType:l,configs:{enableSearchBar:n}}=i(S),{containerRef:o,onContainerFocus:s,onContainerBlur:r,onButtonMouseDown:c,onClose:m}=wt();return t.createElement(kt,{mediaQueryKey:"mbDown"},t.createElement("header",{className:da},t.createElement("div",{className:ga,ref:o,role:"button",tabIndex:0,onBlur:r,onFocus:s},t.createElement("div",{className:ha,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},t.createElement(va,{className:"mobile-close-icon"}),t.createElement(pa,{siteType:l,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),t.createElement(xa,{menuItems:a,closePopup:m}))))};var $a="q3nL5cp",Ia="_2DNf80G",Ra="Q-glX-n";const Oa=({onClosePopup:e})=>t.createElement("div",{className:`${Ra} close-btn`,onClick:e},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),ja=({onClosePopup:e,isDisplay:a,children:l,isNavMenu:n,hideCloseBtn:o})=>t.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!a,"data-is-nav-menu":!!n},t.createElement(at,null,!o&&t.createElement("div",{className:Ia},t.createElement(Oa,{onClosePopup:e})),t.createElement(at,{className:$a},l))),Fa=({careSpecialties:e=[],isOpen:a,onClose:l,spotlights:n=[]})=>{var o;const{t:s}=Je(),{locale:r,configs:{statics:c}}=i(S);return t.createElement(ja,{onClosePopup:l,isDisplay:a,isNavMenu:!0},t.createElement(wa,{headingTitle:s("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:s("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:aa({type:"DOCTOR",specialtySlug:e.slug,locale:r}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),t.createElement(_a,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(o=mt[r])||void 0===o?void 0:o.SPECIALTIES}/`}))},Da=({categories:e=[],spotlightsList:a=[],onClose:l,isOpen:n})=>{const{t:o}=Je(),{locale:s,configs:{statics:r}}=i(S);return t.createElement(ja,{onClosePopup:l,isDisplay:n,isNavMenu:!0},t.createElement(wa,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===s?"/fil":""}/categories/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:o("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:o("home.navigator.menuItem.healthCategories")}),t.createElement(Ta,{spotlightsList:a,hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===s?"/fil":""}/spotlight/`}))},za=({communities:e=[],onClose:a,isOpen:l,spotlights:n=[]})=>{const{t:o}=Je(),{configs:{statics:s}}=i(S);return t.createElement(ja,{onClosePopup:a,isDisplay:l,isNavMenu:!0},t.createElement(wa,{hrefViewMore:Ve(s.TOGETHER_URL_FE),UrlFE:ze(s.TOGETHER_URL_FE),onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:o("home.navigator.menuItem.allCommunitiesheadingTitle")}),t.createElement(La,{spotlights:n}))},Va=({locale:e,onClose:a,isOpen:l,spotlightHealthTools:n=[],healthTools:o=[]})=>{var s;const{t:r}=Je(),{configs:{statics:c}}=i(S),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(s=Oe[e])||void 0===s?void 0:s.HEALTH_TOOLS)||""}`;return t.createElement(ja,{onClosePopup:a,isDisplay:l,isNavMenu:!0},t.createElement(wa,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:a,headingTitle:r("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:r("home.navigator.menuItem.allHealthTools"),menuItems:o.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),t.createElement(Ba,{spotlightHealthTools:n,hrefViewMore:m}))},Ga=({onTopBarAppears:e,type:n="home",languageMenu:r,menuItems:c})=>{var m;const{siteType:u,isMobile:d=!1,locale:g,sitewideBanner:h,sitewideBannerShown:v=!0,sponsorComponent:p,onBookingClick:E,currentUrl:y,onLoginClick:b,configs:{statics:f,enableNavCareBooking:C,enableSearchBar:k,enableNavCare:w,enableProfileMyHealth:P,enableProfileMySaved:N,enableNavTogether:M,enableProfileEcom:_,enableProfileNavigatorMenu:A},userState:{userInfo:T},onLogout:L,userProfileRouterPush:H,isUserLoading:B}=i(S),{t:x}=Je(),{SSO_URL:U,HOME_PAGE_URL:$}=f,I=!!p,[R,O]=a(!1),j=o(47),F=o(null),D=o(!1),z="helloSites"===u?null===(m=Re[g])||void 0===m?void 0:m.LOGO_TYPE:u,V="undefined"!=typeof window,G=s(Xe((()=>{if("home"===n&&V){if(!F.current)return;const e=F.current.getBoundingClientRect();e.top<=0&&window.scrollY>j.current&&window.scrollY>e.height+20&&!D.current&&(D.current=!0,O(!0)),window.scrollY<j.current&&D.current&&(D.current=!1,O(!1)),window.scrollY>=0&&(j.current=window.scrollY)}}),200),[]);l((()=>{null==e||e(!R)}),[R]),l((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),l((()=>{d&&G()}),[d]);const W=v&&!!h;return t.createElement(Me,{"data-site-type":u,"data-sponsored":I,"data-sitewide-banner-shown":W,"data-header-type":n,"data-collapsed":R,"data-with-search-input":"popup-sub-level"!==n,"data-is-displayed":!0,id:"site-header",ref:F},h,t.createElement(_e,{"data-site-type":u},t.createElement(Ae,{"data-site-type":u},t.createElement(Ua,{menuItems:c,type:n}),t.createElement("a",{style:{flexShrink:0},href:$},t.createElement(Te,null,t.createElement(Ze,{style:{display:"flex"},type:z,badge:"id-ID"===g&&t.createElement("img",{src:$e.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===u?t.createElement(Ka,{menuItems:c}):k&&t.createElement(Wa,{siteType:u})),t.createElement(Le,{"data-site-type":u},"marryBaby"===u?k&&t.createElement(Wa,{siteType:u}):t.createElement(Ka,{menuItems:c}),t.createElement(Se,null,C&&t.createElement(kt,{mediaQueryKey:"mbUp"},t.createElement(ua,{careUrlFe:f.CARE_URL_FE,currentUrl:y,btnName:x("login.booking"),onCareHeaderClick:E})),r,t.createElement(ra,{userInfo:T,siteType:u,onLoginClick:b||(()=>{const e=window.location.href;window.location.href=U?ze(`${U}?returnUrl=${e}`):e}),SSO_URL:Ve(f.SSO_URL),currentUrl:y,onLogout:L,UP_BASEPATH:je,isMyHealthEnabled:P,enableCare:w,enableTogether:M,enableEcom:_,enableMySaved:N,togetherApiDomain:Ve(f.TOGETHER_API),isUserProfileNavigatorMenuHidden:!A,userProfileRouterPush:H,isLoading:B,locale:g})))),p?t.isValidElement(p)?t.cloneElement(p,{isCollapsed:R,locale:g,isMobile:d}):p:null)},Wa=({siteType:e})=>t.createElement(kt,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},t.createElement(Ea,null)),Ka=({menuItems:e})=>{const{siteType:a,locale:l,ssrMenuContent:{categories:n,healthTools:o,care:s,together:r}}=i(S);return t.createElement(kt,{mediaQueryKey:"mbUp",style:{height:"100%"}},t.createElement(He,{"data-site-type":a},null==e?void 0:e.map(((e,a)=>t.createElement(Ca,{key:a,item:e,menu:"categories"===e.popupType?t.createElement(Da,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?t.createElement(Va,{locale:l,healthTools:null==o?void 0:o.items,spotlightHealthTools:null==o?void 0:o.spotlights}):"together"===e.popupType?t.createElement(za,{communities:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):"care"===e.popupType?t.createElement(Fa,{careSpecialties:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):null})))))},qa=e=>{var r,c;const{isMobile:m,locale:u,onTopBarAppears:d,languageOptions:g,sponsorComponent:h,sitewideBanner:v,sitewideBannerShown:p,className:E}=e,y=(()=>{const{t:e}=Je(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:o,enableNavCare:s,enableNavTogether:r,enableNavEcom:c,statics:m}}=i(S),u="marryBaby"===t;return n((()=>{var t;const n=[];return l&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:u?$e.getAssetPath("categories-mb.svg"):$e.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),o&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=Oe[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:u?$e.getAssetPath("healthtools-mb.svg"):$e.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),r&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:ze(m.TOGETHER_URL_FE+"/"),thumbnail:u?$e.getAssetPath("community-mb.svg"):$e.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:ze(m.HOME_PAGE_URL+"/shop"),thumbnail:$e.getAssetPath("nav-icons/shop.svg"),popupType:null}),s&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:ze(m.HOME_PAGE_URL+"/care"),thumbnail:$e.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===a?null:"care"}),n}),[a,s,r,c])})();(()=>{const{isFirstLogin:e,userState:t}=i(S),{userInfo:a}=t;l((()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})}),[])})();const b=p&&!!v,f=!!h,C=!!(null===(c=null===(r=null==h?void 0:h.props)||void 0===r?void 0:r.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:k,defaultHeaderHeight:w,headerHeight:P,headerBottom:N}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:i,isMobile:r})=>{const c=o(null),[m,u]=a(0),[d,g]=a(64),h=s(ct((()=>{var e,t,a,l;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(u(n),g((null===(l=c.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||m))}),200),[]);l((()=>(window.addEventListener("resize",h,{passive:!0}),window.addEventListener("scroll",h,{passive:!0}),h(),()=>{window.removeEventListener("resize",h),window.removeEventListener("scroll",h)})),[]),l((()=>{h()}),[r,i,t,e,c.current]);const v=n((()=>{let a=r?64:69;return i&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,i,e,t]);return{defaultHeaderHeight:v,headerHeight:m||v,headerBottom:d,headerRef:c}})({isShowingSiteWideBanner:b,isSponsored:f,hasSponsoredBanners:C,isMobile:m});return t.createElement(xe,{id:"navigation-v2",style:{"--default-header-height":w+"px","--header-height":`calc(${P}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":N+"px"},className:E},t.createElement("section",{ref:k},t.createElement(Ga,{menuItems:y,type:"home",onTopBarAppears:d,languageMenu:t.createElement(ft,{languageOptions:g,locale:u})})))},Qa=e=>{const a=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return t.createElement(Be,Object.assign({},a),t.createElement(qa,Object.assign({},a)))},Ya=t=>e(void 0,void 0,void 0,(function*(){var e,a,l,n,o,i,s,r,c,m,u,d,g,h,v,p,E,y,b,f,C;const k={},w="vi-VN_MB"===t;try{const P="tl-PH"===t?"lang=fil":"";try{const[u,d,g,h]=yield Promise.all([fetch(ze(`${Ge(t)}/wp-json/api/categories${P?"?"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/spotlights?per_page=10&order_by=start_date${P?"&"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/${w?"health-tools":"healthtools"}${P?"?"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/${w?"health-tools":"healthtools"}/favorites${P?"?"+P:""}`)).then((e=>e.json()))]);k.categories={items:(null===(a=null===(e=null==u?void 0:u.data)||void 0===e?void 0:e.map)||void 0===a?void 0:a.call(e,Jt))||[],spotlights:(null===(i=null===(o=null===(n=null===(l=null==d?void 0:d.data)||void 0===l?void 0:l.articles)||void 0===n?void 0:n.map)||void 0===o?void 0:o.call(n,la))||void 0===i?void 0:i.filter(na))||[]},k.healthTools={items:(null===(r=null===(s=null==g?void 0:g.data)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,Xt))||[],spotlights:(null===(m=null===(c=null==h?void 0:h.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Xt))||[]}}catch(e){}if(w||Fe.includes(t))try{const[e,a]=yield Promise.all([fetch(ze(`${We()}/api/v1/community?website_url=https://${Ie[t]}`)).then((e=>e.json())),fetch(ze(`${We()}/api/v1/options?website_url=https://${Ie[t]}&meta_key=popular_post`)).then((e=>e.json()))]);k.together={items:(null===(g=null===(d=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.communities)||void 0===d?void 0:d.map)||void 0===g?void 0:g.call(d,Qe))||[],spotlights:(null===(p=null===(v=null===(h=null==a?void 0:a.data)||void 0===h?void 0:h.posts)||void 0===v?void 0:v.map)||void 0===p?void 0:p.call(v,Ye))||[]}}catch(e){}if(De.includes(t))try{const[e,a]=yield Promise.all([fetch(ze(Ke()+`/api/specialties?_ishome=1&site=${Ie[t]}`)).then((e=>e.json())),fetch(ze(Ke()+`/api/search/?site=${Ie[t]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);k.care={items:(null===(b=null===(y=null===(E=null==e?void 0:e._data)||void 0===E?void 0:E.specialties)||void 0===y?void 0:y.map)||void 0===b?void 0:b.call(y,ea))||[],spotlights:(null===(C=null===(f=null==a?void 0:a._data.searches)||void 0===f?void 0:f.map)||void 0===C?void 0:C.call(f,ta))||[]}}catch(e){}}catch(e){console.error(e)}return k})),Za=t=>e(void 0,void 0,void 0,(function*(){return(yield r("nav-menu-content",(()=>Ya(t||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}}));export{pt as A,ft as L,Qa as N,ia as P,oa as U,Za as a,St as b,Zt as c,sa as d,ra as e,Ya as g,yt as i};
|
|
1
|
+
import{a as e}from"./tslib.es6-ea0bc661.js";import t,{useState as a,useEffect as l,useMemo as n,useRef as o,useContext as i,useCallback as s}from"react";import{g as r}from"./core-de35b0f7.js";import{K as c,F as m,E as d,y as u,x as g,P as h,H as v}from"./utils-8d276e09.js";import{S as p,a as E,b as y,c as b,d as f,e as C,f as k,g as w,T as P,N,h as M,i as _,j as A,k as T,l as L,m as S,n as H,o as B,p as x,q as U,r as $,s as I,t as R,u as O,v as j,w as F,x as D,y as z,z as V,A as G,B as W,C as K,D as q,E as Q,F as Y,G as Z,H as J,I as X,J as ee,K as te,L as ae,M as le,O as ne,P as oe,Q as ie,R as se,V as re,W as ce,X as me,Y as de,Z as ue,_ as ge,$ as he,a0 as ve,a1 as pe,a2 as Ee,a3 as ye,a4 as be,a5 as fe,a6 as Ce,a7 as ke,a8 as we,a9 as Pe,aa as Ne,ab as Me,ac as _e,ad as Ae,ae as Te,af as Le,ag as Se,ah as He,ai as Be,aj as xe}from"./index.styled-7d670c7c.js";import{T as Ue}from"./index-dafb8a8b.js";import{CommonGAssets as $e}from"./gAssets.js";import{d as Ie,L as Re,S as Oe,U as je,T as Fe,C as De}from"./index-0b0f8e1d.js";import{n as ze,a as Ve}from"./normalizeLink-f8417b9d.js";import{c as Ge,b as We,d as Ke}from"./routing-a6279020.js";import{P as qe,b as Qe,c as Ye}from"./dataTransform-3cd85e82.js";import{L as Ze}from"./index-9d5eb4eb.js";import{u as Je}from"./useTranslations-0662d321.js";import Xe from"lodash/throttle";import{j as et}from"./screenSizeContext-df03e653.js";import{U as tt,C as at}from"./index-cefc2aa9.js";import{L as lt}from"./Onboarding-4e9e8aae.js";import{t as nt}from"./theme-7a103b73.js";import{g as ot}from"./cookieHelper-d64c7ab8.js";import{I as it}from"./index-ea78769c.js";import{B as st}from"./index-eba70594.js";import{Portal as rt}from"@mantine/core";import"@mantine/dates";import"dayjs";import"styled-components";import"./isProduction-89bedce0.js";import"@mantine/hooks";import ct from"lodash/debounce";import{L as mt}from"./constants-0d5c979d.js";import dt from"string-format";import{a as ut}from"./useUniqueId-7c6ee486.js";import{I as gt}from"./index-dd628c03.js";import{u as ht}from"./useIsInit-c7a67d73.js";const vt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},pt=({type:e="square",size:n,avatarImg:o,avatarUrl:i,firstLetter:s,backgroundColor:r,onClick:m,style:d,className:u,width:g,height:h,alt:v})=>{const p=n?vt[n]:void 0,[E,y]=a(!1);l((()=>{if(i){const e=document.createElement("img");e.setAttribute("src",i),e.addEventListener("error",(()=>{y(!0)}))}}),[i,y]);const b=(!i&&!o||E)&&s;return t.createElement(c,{style:Object.assign(Object.assign({},d),{"--size":p?p+"px":void 0,"--width-prop":g?g+"px":void 0,"--height-prop":h?h+"px":void 0,"--background-color":r}),"data-has-max":!(!g||!h),"data-avatar-type":e,onClick:m,className:u,avatarUrl:i,"data-custom-size":!!n},o,i&&!E&&t.createElement(it,{src:i,alt:v||"avatar"}),b&&s)},Et=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],yt=(e="")=>Et.some((t=>new URL(e).origin.endsWith(t))),bt=({options:e,label:l,labelRenderer:n,selected:o,onChange:i,showSelected:s=!0,style:r={},showIndicator:c=!0})=>{const[m,d]=a(!1);return t.createElement(t.Fragment,null,t.createElement(p,null,t.createElement(E,{onClick:()=>d((e=>!e))},l||(null==n?void 0:n(m))||null,t.createElement(y,{"data-is-open":m,style:r,"data-show-indicator":c},e.map(((e,a)=>t.createElement(b,{key:a,"data-selected":s&&o===e.value,onClick:t=>{o!==e.value&&(i(e.value),d((e=>!e))),t.stopPropagation()}},t.createElement(Ue,{size:"p3"},e.label),s&&o===e.value&&t.createElement("img",{src:$e.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&t.createElement(f,{onClick:()=>d(!1)}))},ft=({languageOptions:e,locale:a})=>{var l,n;const o=null==e?void 0:e.find((e=>e.locale===a));return(null==e?void 0:e.length)?t.createElement(bt,{options:e,selected:o.value,label:t.createElement(Ct,{locale:a,label:o.label||(null===(n=null===(l=a.split("-"))||void 0===l?void 0:l[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Ct=({locale:e,label:a,href:l})=>{var n,o,i;return t.createElement(C,{href:l},t.createElement(m,{country:null===(o=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===o?void 0:o.toUpperCase(),width:16,height:16,rounded:!0,language:null===(i=null==e?void 0:e.split("-"))||void 0===i?void 0:i[0]}),t.createElement("span",null,a))},kt=({forceDisplay:e,mediaQueryKey:a,children:l,className:o,style:i})=>{const[s,r]=n((()=>et(a)),[a]);return t.createElement(k,{lowerBound:e?0:s,upperBound:e?0:r,className:o,style:i},l)},wt=e=>{const{allowBgScroll:t}=e||{},a=o();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},Pt=({type:e="lead",closeIcon:a,isOpen:l=!0,onClose:n,children:o,enableAnimation:i=!0,targetAvatar:s,id:r,className:c})=>t.createElement(w,{"data-open":l,"data-type":e,"data-animation":i,"data-target":s,id:r,className:c},t.createElement("div",{className:"popup-content"},!!a&&t.createElement("div",{className:"close-button",onClick:n},a),o)),Nt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Mt="uJQBNNg",_t="TfG3dM5",At="aMtjFNf",Tt="cSz2RR-",Lt="GyFm00F";function St({userInfo:e,onClickMyProfileButton:a,themeName:l="helloSites"}){const{t:o}=Je(),i=n((()=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return t.createElement("div",{className:Mt,onClick:()=>{a&&a()}},t.createElement(pt,{className:_t,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:i,backgroundColor:"marryBaby"===l?nt.mbColors.pink:nt.colors.secondaryBase}),t.createElement("div",{className:At},t.createElement("div",{className:Tt},(null==e?void 0:e.name)||(null==e?void 0:e.username)),t.createElement("div",{className:Lt,style:{"--bg-hellosites":`url(${$e.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${$e.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},o("userProfile.nav.header.viewProfile"))))}var Ht="gn6HmGG",Bt="FCx8FEM",xt="zMiRxaE",Ut="lZ2Z9MQ",$t="rwm-agG",It="qMOscoq";const Rt=({themeName:e,locale:l,onClickItem:o})=>{const[i,s]=a(""),r=n((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:$e.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:$e.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:$e.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:$e.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?s((t=>t?"":e.key)):o&&o(e)}return t.createElement("div",{className:Ht},r.map((e=>t.createElement(Ot,{key:e.key,item:e,openKey:i,onClickItem:c,locale:l}))))},Ot=({item:e,openKey:a,onClickItem:l,locale:n})=>{var o;const{t:i}=Je();return(null===(o=e.disableLocale)||void 0===o?void 0:o.includes(n))?null:t.createElement("div",{className:`${Bt} nav-menu-item`,"data-is-open":a===e.key,key:e.key,"data-has-submenu":!!e.subMenu},t.createElement("div",{className:xt,onClick:()=>l(e)},e.icon&&t.createElement("div",{className:Ut,style:{backgroundImage:`url("${e.icon}")`}}),i(e.key),e.subMenu&&t.createElement("div",{className:$t,style:{"--after-bg":`url(${$e.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&t.createElement("div",{className:It},e.subMenu.map((e=>t.createElement(Ot,{key:e.key,item:e,openKey:a,onClickItem:l,locale:n})))))};var jt="-AZt1au",Ft="IvSIfCI",Dt="eahCJov",zt="XIyViFs",Vt="_4y-O0w3",Gt="kO8iNgD",Wt="a1d4E10",Kt="Tdguxxf",qt="-mOxsaU",Qt="yPeDBNZ";const Yt={helloSites:{member:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>$e.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>$e.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Zt=({themeName:e,rank:a="member",numberOfPosts:l=0})=>{const{t:o}=Je(),i=n((()=>{var t,l;return(null===(l=null===(t=Yt[e])||void 0===t?void 0:t[a])||void 0===l?void 0:l.call(t))||""}),[a,e]);return t.createElement("div",{className:Vt,"data-user-rank":a},t.createElement("div",{className:Gt},t.createElement("div",{className:Wt},t.createElement("div",{className:Kt,style:{backgroundImage:`url("${i}")`}}),t.createElement("h3",{className:qt},o(`userProfile.userRank.${a}`)),l>0&&t.createElement("p",{className:Qt},l," ",o("userProfile.nav.header.count.posts")))))},Jt=e=>{var t,a,l,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>Jt(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(l=e.reviewed_by,{postTitle:l.post_title,permalink:l.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},Xt=e=>{var t,a;if(!e)return{};const l=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),o=e.link?e.link.startsWith("http")||l?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:o,subtitle:e.subtitle,title:e.title}},ea=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},ta=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},aa=({type:e,specialtySlug:t,locale:a})=>{var l,n;return`${null===(l=mt[a])||void 0===l?void 0:l.ALL}/${(null===(n=mt[a])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},la=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},na=e=>{const t=new Date;if(null==e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()<a.getTime())return!1}if(null==e?void 0:e.endDate){const a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0},oa=({SSO_URL:e,UP_BASEPATH:o="user",themeName:i="helloSites",cardUrls:s=Nt,enableCare:r,enableTogether:c,enableEcom:m,enableMySaved:d,userInfo:u,togetherApiDomain:g,userPostsNumber:h,onClickNavigationCard:v,onClickMyProfileButton:p,onClickMenuItem:E,onClickLogout:y,isUserProfileNavigatorMenuHidden:b=!1,isMyHealthEnabled:f=!1,locale:C})=>{const{t:k}=Je(),[w,M]=a(h||0),_="marryBaby"===i;l((()=>{if(u&&void 0===h){const e=ot("hhg_user_token");e&&fetch(ze(((e,t,a,l)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+dt(P.GET_USER_POSTS,Object.assign(Object.assign({},l),{websiteUrl:t?"https://marrybaby.vn":`https://${Ie[e]}`})))(C,_,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,l;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&M((null===(l=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===l?void 0:l.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[C,null!==u,h,g,_]);const A=n((()=>{let e;return e=_?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?r:"myCommunity"===e?c:"myHealth"===e?f:"eCom"===e?m:"mySaved"!==e||d))}),[_,f]),T=n((()=>"marryBaby"===i?null:t.createElement(st,{color:"tertiary",icon:t.createElement("img",{src:$e.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:zt},k("userProfile.nav.menu.logout"))),[i]),L=t=>{window.location.href=ze(`${e}${o}/${t}`)},S=e=>{const t=s[e];v?v(t):L(t)};return u?t.createElement("div",{className:jt,"data-theme":i},t.createElement(St,{userInfo:u,themeName:i,onClickMyProfileButton:()=>{p?p():L("profile")}}),t.createElement(Zt,{themeName:i,rank:"member",numberOfPosts:w}),t.createElement("div",{className:Ft},A.map((e=>t.createElement(N,{className:Dt,key:e,themeName:i,type:e,onClick:S})))),!b&&t.createElement(t.Fragment,null,t.createElement(Rt,{themeName:i,locale:C,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(E?E(e.link):L(e.link))}}),T)):null},ia=({SSO_URL:e,UP_BASEPATH:a,isOpen:l,targetAvatar:n,userInfo:o,enableCare:i,enableTogether:s,enableEcom:r,enableMySaved:c,closePopup:m,siteType:d="helloSites",dispatchLogout:u,userProfileRouterPush:g,isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v=!1,togetherApiDomain:p,locale:E})=>{const y=t=>{g?g(`/${t}`):e&&(window.location.href=ze(`${e}${a}/${t}`))},b=e=>{y(e),m()};return t.createElement(Pt,{isOpen:l,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},t.createElement(oa,{SSO_URL:e,UP_BASEPATH:a,themeName:d,userInfo:o,enableCare:i,enableTogether:s,enableEcom:r,enableMySaved:c,onClickLogout:()=>{u&&(u(),m())},onClickMenuItem:b,onClickNavigationCard:b,onClickMyProfileButton:()=>{y("profile"),m()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v,togetherApiDomain:p,locale:E}))},sa=({openLogoutPopup:e,onCloseHandler:a,onLogoutHandler:n,siteType:o="helloSites"})=>{const{t:i}=Je();return l((()=>{document.body.classList.toggle("noscroll",e)}),[e]),t.createElement(rt,null,t.createElement(qe,{type:"confirm",isOpen:e,closeIcon:t.createElement("img",{src:$e.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:a},t.createElement(M,null,"helloSites"===o&&t.createElement("img",{src:$e.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),t.createElement("h2",null,i("helloSites"===o?"logout.popup.ask1":"logout.popup.ask.mb")),t.createElement("p",null,i("logout.popup.ask2")),t.createElement(_,{siteType:o},t.createElement(st,{className:"logout-button",color:"tertiary",size:"lg",onClick:n},i("logout.popup.button.logout")),t.createElement(st,{className:"cancel-button",color:"primary",size:"lg",onClick:a},i("logout.popup.button.cancel"))))))},ra=({userInfo:n,siteType:o,onLoginClick:i,SSO_URL:s,currentUrl:r,isMinifyLogin:c,enableCare:m,enableTogether:h,enableEcom:v,isUserProfileNavigatorMenuHidden:p,UP_BASEPATH:E,isMyHealthEnabled:y,togetherApiDomain:b,onLogout:f,style:C,userProfileRouterPush:k,isLoading:w,locale:P,enableMySaved:N})=>{const{t:M}=Je(),[_,S]=a(!1),H=(null==n?void 0:n.name)||(null==n?void 0:n.username),[B,x]=a(!1);l((()=>{x(!0)}),[]);const{containerRef:U,onContainerFocus:$,onContainerBlur:I,onButtonMouseDown:R,onClose:O}=wt();return w?t.createElement(d,{size:"sm",color:"transparent",loading:w}):(null==n?void 0:n.id)?t.createElement(t.Fragment,null,t.createElement(A,{ref:U,style:C,tabIndex:0,onBlur:I,onFocus:$},t.createElement("div",{onMouseDown:R},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),t.createElement(u,{size:40,className:"user-avatar",src:null==n?void 0:n.avatar,color:"marryBaby"===o?nt.mbColors.pink:nt.colors.secondaryBase,placeholderText:H&&H.length?H[0].toUpperCase():"A"})),t.createElement(ia,{UP_BASEPATH:E,SSO_URL:s,dispatchLogout:()=>{O(),S(!0)},isOpen:!1,isMyHealthEnabled:y,enableCare:m,enableTogether:h,enableEcom:v,enableMySaved:N,closePopup:O,userInfo:n,siteType:o,isUserProfileNavigatorMenuHidden:p,togetherApiDomain:b,userProfileRouterPush:k,locale:P})),t.createElement(sa,{openLogoutPopup:_,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),S(!1)},siteType:o,onLogoutHandler:()=>e(void 0,void 0,void 0,(function*(){S(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):t.createElement(T,{style:Object.assign({textDecoration:"none"},C),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":r,href:B?void 0:ze(`${s}?returnUrl=${r}`),"data-site-type":o},c?t.createElement(L,{onClick:i},t.createElement("img",{src:$e.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):t.createElement(t.Fragment,null,"helloSites"===o&&(P===lt.Indonesia?t.createElement("img",{className:"mobile-only",src:$e.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:i}):t.createElement(d,{className:"mobile-only",size:"sm",onClick:i,leftIcon:t.createElement(tt,{useCurrentColor:!0,isSolid:!0,size:22}),styles:{root:{paddingLeft:"5px",paddingRight:"8px"},leftIcon:{marginRight:"5px"}}},M("navigation.loginJoin"))),"marryBaby"===o&&t.createElement("div",{className:"mobile-only",onClick:i,style:{paddingLeft:16}},t.createElement(g,{size:"p3",color:nt.mbColors.pink},M("navigation.loginJoin"))),t.createElement(d,{className:"login-btn",size:"md",onClick:i,leftIcon:t.createElement(tt,{useCurrentColor:!0,isSolid:!0,size:22})},M("navigation.loginJoin"))))};var ca="spdlGfq",ma="vgS16jX";const da=({onCareHeaderClick:e,currentUrl:a,careUrlFe:l,btnName:n})=>e?t.createElement(st,{className:ca,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:a,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):t.createElement("a",{href:l,className:`${ma} care-button no-replace-click`},t.createElement(st,{className:ca,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:a},n));var ua="y5VJdvw",ga="oVhOSCy",ha="pX8OXTM";function va({className:e}){return t.createElement("div",null,t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function pa({siteType:e,type:a,enableSearch:l,className:n}){return"helloSites"===e?t.createElement("div",null,t.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:l?$e.getAssetPath("hamburgerMenuNewWithSearch.svg"):$e.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:a,className:n,loading:"lazy"})):t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const Ea=()=>{const{locale:e,configs:{statics:a},siteType:l}=i(S),n=ut(),{t:o}=Je();return t.createElement(h,{className:"fake-search-input",name:"search-input-menu-service"+n,size:"md",placeholder:"marryBaby"===l?o("navigation.search.input.placeholder"):o("home.search",{site:Re[e||"en-PH"]?Re[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${a.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:t.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},t.createElement(H,null))})};var ya="wnUb-dV",ba="cjbOxWe",fa="gB4rp89";const Ca=({item:e,menu:a})=>{const{containerRef:l,onContainerFocus:n,onContainerBlur:o,onButtonMouseDown:i,onClose:s}=wt({allowBgScroll:!0}),r=ht();return!e.popupType&&e.link?t.createElement(ka,{isNew:e.isNew},t.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(r?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},t.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ba},e.name))):t.createElement(ka,{isNew:e.isNew},t.createElement("div",{ref:l,className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:o,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},t.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:i,className:ba},"care"===e.id&&t.createElement("a",{className:fa,href:ze(e.link+"/")},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name,e.popupType&&t.createElement("div",{className:ya},t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),t.isValidElement(a)?t.cloneElement(a,{onClose:s}):null))},ka=({isNew:e,children:a})=>{const{t:l}=Je();return e?t.createElement(gt,{color:"green",label:l("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},a):t.createElement(t.Fragment,null,a)},wa=({hrefViewMore:e,titleBtnViewMore:a,UrlFE:l,onClosePopup:n,menuItems:o,headingTitle:s})=>{const{siteType:r}=i(S);return t.createElement(B,null,t.createElement(x,null,t.createElement(v,{tag:"marryBaby"===r?"h5":"h6",as:"p",fontWeight:"semibold"},s)),null==o?void 0:o.slice(0,6).map(((e,a)=>{const o=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${l}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return t.createElement(U,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":o,"data-is-heading-category":!1,href:o},!yt(o)&&{target:"_blank"},{"data-theme":r,key:a,onClick:n}),t.createElement("div",{className:"icon"},t.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),t.createElement(ka,{isNew:e.isNew},t.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),t.createElement($,null,t.createElement("img",{src:$e.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),a&&t.createElement(I,{"data-theme":r,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},t.createElement(R,{onClick:n,"data-theme":r,"data-is-heading-category":!1},a,t.createElement(O,null,t.createElement("img",{className:"svg",src:"marryBaby"===r?$e.getAssetPath("chevronRightPink.svg"):$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},Pa=({item:e,index:a=0})=>{var l;const{t:n}=Je(),{locale:o,configs:{statics:s}}=i(S);if(!e)return null;const r=`${s.CARE_URL_FE}/${null===(l=mt[o])||void 0===l?void 0:l.HOSPITAL}/${e.slug}-${e.id}`;return t.createElement(j,{key:e.id,href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${a+1}`,"data-event-label":r},t.createElement("img",{src:$e.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),t.createElement(F,null,t.createElement(D,null,t.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),t.createElement(z,null,t.createElement(V,null,e.name),t.createElement(G,null,e.description),t.createElement(W,null,n("home.seeMore"),t.createElement("img",{src:$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},Na=({title:e,link:a,description:l,cta:n,icon:o})=>{const{siteType:s}=i(S);return t.createElement(K,{"data-theme":s},t.createElement(q,null,t.createElement("img",{src:"marryBaby"===s?$e.getAssetPath("navMBSpotlightBgNoData.svg"):$e.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),t.createElement(Q,null,o&&t.createElement("img",{src:o,width:64,height:64,loading:"lazy"}))),t.createElement("div",null,e&&t.createElement(Y,null,e),l&&t.createElement(Z,null,l),n&&t.createElement("div",null,t.createElement("a",{href:a},t.createElement(st,{theme:s,className:"survey-contact-submit",size:"md"},n)))))},Ma=({title:e,viewMore:a,children:l,link:n,dataEventAction:o=""})=>{const{siteType:s}=i(S);return t.createElement(J,null,t.createElement(X,null,t.createElement(v,{tag:"marryBaby"===s?"h5":"h6",as:"p",fontWeight:"semibold"},e),a&&t.createElement(ee,{"data-event-category":"Hamburger Navigation","data-event-action":o,"data-event-label":n,href:n,"data-theme":s},a,t.createElement("img",{src:"marryBaby"===s?$e.getAssetPath("chevronRightPink.svg"):$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),l)},_a=({spotlights:e=[],hrefViewMore:a})=>{const{t:l}=Je(),{siteType:n}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?t.createElement(t.Fragment,null,t.createElement(te,null,null==e?void 0:e.slice(0,3).map(((e,a)=>t.createElement(Pa,{key:a,index:a,item:e})))),t.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},t.createElement("a",{href:a},t.createElement(st,{theme:n,className:"survey-contact-submit",size:"md"},l("home.navigator.menu.care.homeButton"))))):t.createElement(Na,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:a,cta:l("home.navigator.menu.care.homeButton"),icon:$e.getAssetPath("community.svg")}))},Aa=({item:e,index:a=0})=>e?t.createElement(ae,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${a+1}`,"data-event-label":e.link},t.createElement(le,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),t.createElement(ne,null,e.title)):null,Ta=({spotlightsList:e=[],hrefViewMore:a})=>{const{t:l}=Je(),{configs:{statics:n}}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlights"),viewMore:l("home.navigator.menu.spotlights.seeAll"),link:a,dataEventAction:"Spotlight See More Click"},0!==e.length?t.createElement(oe,null,null==e?void 0:e.slice(0,4).map(((e,a)=>t.createElement(Aa,{key:a,index:a,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):t.createElement(Na,{title:l("home.navigator.menu.category.noDatas.title"),description:l("home.navigator.menu.category.noDatas.description"),link:a,cta:l("home.navigator.menu.category.noDatas.cta"),icon:$e.getAssetPath("Spotlight.svg")}))},La=({spotlights:e=[]})=>{const{configs:{statics:a}}=i(S),{t:l}=Je();return t.createElement(Ma,{title:l("home.navigator.menu.trendingPosts"),viewMore:l("home.navigator.menu.trendingPosts.seeMore"),link:Ve(a.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?t.createElement(ie,null,null==e?void 0:e.slice(0,4).map(((e,a)=>t.createElement(se,{index:a,post:e,key:e.id})))):t.createElement(Na,{title:l("home.navigator.menu.together.noPosts.title"),description:l("home.navigator.menu.together.noPosts.description"),link:`${a.HOME_PAGE_URL}/community/`,cta:l("home.navigator.menu.together.noPosts.cta"),icon:$e.getAssetPath("community.svg")}))},Sa=({item:e,index:a=0})=>{const{t:l}=Je(),{configs:{statics:n}}=i(S);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return t.createElement(re,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":o},t.createElement("img",{src:$e.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),t.createElement(ce,null,t.createElement(me,null,e.title),t.createElement(de,null,e.subtitle),t.createElement(ue,null,l("home.seeMore"),t.createElement("img",{src:$e.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),t.createElement(ge,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Ha=({item:e,index:a=0,color:l})=>{const{t:n}=Je(),{configs:{statics:o}}=i(S);if(!e)return null;const s=e.link?e.link.startsWith("http")?e.link:`${o.HOME_PAGE_URL}${e.link}`:void 0,r=()=>t.createElement(pe,null,t.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>t.createElement(Ee,null,t.createElement(ye,null,t.createElement(be,null,e.title),t.createElement(fe,null,e.subtitle)),t.createElement(Ce,null,t.createElement("div",{className:"mobile-only"},n("home.seeMore")),t.createElement("img",{src:$e.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return t.createElement(he,{href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":s,"data-color":l},t.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),t.createElement("img",{src:$e.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),t.createElement(ve,null,t.createElement("div",{className:"mobile-only"},r()),t.createElement("div",{className:"desktop-only"},c())),t.createElement("div",{className:"mobile-only"},c()),t.createElement("div",{className:"desktop-only"},r()))},Ba=({hrefViewMore:e,spotlightHealthTools:a=[]})=>{const{t:l}=Je(),n=["pink","orange","green"],{siteType:o}=i(S);return t.createElement(Ma,{title:l("home.navigator.menu.spotlightTools")},0!==a.length&&t.createElement(ke,null,null==a?void 0:a.slice(0,3).map(((e,a)=>"marryBaby"===o?t.createElement(Ha,{key:a,index:a,item:e,color:n[a]}):t.createElement(Sa,{key:a,index:a,item:e})))),0===a.length&&t.createElement(Na,{title:l("home.navigator.menu.healthTools.noDatas.title"),description:l("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:l("home.navigator.menu.healthTools.noDatas.cta"),icon:$e.getAssetPath("community.svg")}))},xa=({closePopup:e,menuItems:a=[]})=>{var l,n;const{siteType:o,ssrMenuContent:{categories:s,healthTools:r,care:c,together:m},activeMenuService:d,configs:{statics:u,enableSearchBar:g},locale:h}=i(S),{t:v}=Je();return t.createElement(we,{id:"categories-menu"},g?t.createElement(Pe,{"data-theme":o,onClick:()=>{window.location.href=`${u.HOME_PAGE_URL}/search`}},t.createElement(Ea,null)):null,t.createElement(Ne,null,t.createElement(wa,{UrlFE:u.HOME_PAGE_URL,titleBtnViewMore:v("home.navigator.menuItem.allCategories"),menuItems:a,headingTitle:v("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===d&&t.createElement(Ta,{spotlightsList:(null==s?void 0:s.spotlights)||[],hrefViewMore:`${u.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}/spotlight/`}),"tools"===d&&t.createElement(Ba,{spotlightHealthTools:null==r?void 0:r.spotlights,hrefViewMore:`${u.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}${(null===(l=Oe[h])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`}),"care"===d&&t.createElement(_a,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${u.CARE_URL_FE}/${null===(n=mt[h])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&t.createElement(La,{spotlights:null==m?void 0:m.spotlights})))},Ua=({type:e="home",menuItems:a})=>{const{siteType:l,configs:{enableSearchBar:n}}=i(S),{containerRef:o,onContainerFocus:s,onContainerBlur:r,onButtonMouseDown:c,onClose:m}=wt();return t.createElement(kt,{mediaQueryKey:"mbDown"},t.createElement("header",{className:ua},t.createElement("div",{className:ga,ref:o,role:"button",tabIndex:0,onBlur:r,onFocus:s},t.createElement("div",{className:ha,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},t.createElement(va,{className:"mobile-close-icon"}),t.createElement(pa,{siteType:l,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),t.createElement(xa,{menuItems:a,closePopup:m}))))};var $a="q3nL5cp",Ia="_2DNf80G",Ra="Q-glX-n";const Oa=({onClosePopup:e})=>t.createElement("div",{className:`${Ra} close-btn`,onClick:e},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),ja=({onClosePopup:e,isDisplay:a,children:l,isNavMenu:n,hideCloseBtn:o})=>t.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!a,"data-is-nav-menu":!!n},t.createElement(at,null,!o&&t.createElement("div",{className:Ia},t.createElement(Oa,{onClosePopup:e})),t.createElement(at,{className:$a},l))),Fa=({careSpecialties:e=[],isOpen:a,onClose:l,spotlights:n=[]})=>{var o;const{t:s}=Je(),{locale:r,configs:{statics:c}}=i(S);return t.createElement(ja,{onClosePopup:l,isDisplay:a,isNavMenu:!0},t.createElement(wa,{headingTitle:s("home.navigator.menuItem.specialties"),hrefViewMore:`${c.CARE_URL_FE}/`,UrlFE:c.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:s("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:aa({type:"DOCTOR",specialtySlug:e.slug,locale:r}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),t.createElement(_a,{spotlights:n,hrefViewMore:`${c.CARE_URL_FE}/${null===(o=mt[r])||void 0===o?void 0:o.SPECIALTIES}/`}))},Da=({categories:e=[],spotlightsList:a=[],onClose:l,isOpen:n})=>{const{t:o}=Je(),{locale:s,configs:{statics:r}}=i(S);return t.createElement(ja,{onClosePopup:l,isDisplay:n,isNavMenu:!0},t.createElement(wa,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===s?"/fil":""}/categories/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:o("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:o("home.navigator.menuItem.healthCategories")}),t.createElement(Ta,{spotlightsList:a,hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===s?"/fil":""}/spotlight/`}))},za=({communities:e=[],onClose:a,isOpen:l,spotlights:n=[]})=>{const{t:o}=Je(),{configs:{statics:s}}=i(S);return t.createElement(ja,{onClosePopup:a,isDisplay:l,isNavMenu:!0},t.createElement(wa,{hrefViewMore:Ve(s.TOGETHER_URL_FE),UrlFE:ze(s.TOGETHER_URL_FE),onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:o("home.navigator.menuItem.allCommunitiesheadingTitle")}),t.createElement(La,{spotlights:n}))},Va=({locale:e,onClose:a,isOpen:l,spotlightHealthTools:n=[],healthTools:o=[]})=>{var s;const{t:r}=Je(),{configs:{statics:c}}=i(S),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(s=Oe[e])||void 0===s?void 0:s.HEALTH_TOOLS)||""}`;return t.createElement(ja,{onClosePopup:a,isDisplay:l,isNavMenu:!0},t.createElement(wa,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:a,headingTitle:r("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:r("home.navigator.menuItem.allHealthTools"),menuItems:o.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),t.createElement(Ba,{spotlightHealthTools:n,hrefViewMore:m}))},Ga=({onTopBarAppears:e,type:n="home",languageMenu:r,menuItems:c})=>{var m;const{siteType:d,isMobile:u=!1,locale:g,sitewideBanner:h,sitewideBannerShown:v=!0,sponsorComponent:p,onBookingClick:E,currentUrl:y,onLoginClick:b,configs:{statics:f,enableNavCareBooking:C,enableSearchBar:k,enableNavCare:w,enableProfileMyHealth:P,enableProfileMySaved:N,enableNavTogether:M,enableProfileEcom:_,enableProfileNavigatorMenu:A},userState:{userInfo:T},onLogout:L,userProfileRouterPush:H,isUserLoading:B}=i(S),{t:x}=Je(),{SSO_URL:U,HOME_PAGE_URL:$}=f,I=!!p,[R,O]=a(!1),j=o(47),F=o(null),D=o(!1),z="helloSites"===d?null===(m=Re[g])||void 0===m?void 0:m.LOGO_TYPE:d,V="undefined"!=typeof window,G=s(Xe((()=>{if("home"===n&&V){if(!F.current)return;const e=F.current.getBoundingClientRect();e.top<=0&&window.scrollY>j.current&&window.scrollY>e.height+20&&!D.current&&(D.current=!0,O(!0)),window.scrollY<j.current&&D.current&&(D.current=!1,O(!1)),window.scrollY>=0&&(j.current=window.scrollY)}}),200),[]);l((()=>{null==e||e(!R)}),[R]),l((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),l((()=>{u&&G()}),[u]);const W=v&&!!h;return t.createElement(Me,{"data-site-type":d,"data-sponsored":I,"data-sitewide-banner-shown":W,"data-header-type":n,"data-collapsed":R,"data-with-search-input":"popup-sub-level"!==n,"data-is-displayed":!0,id:"site-header",ref:F},h,t.createElement(_e,{"data-site-type":d},t.createElement(Ae,{"data-site-type":d},t.createElement(Ua,{menuItems:c,type:n}),t.createElement("a",{style:{flexShrink:0},href:$},t.createElement(Te,null,t.createElement(Ze,{style:{display:"flex"},type:z,badge:"id-ID"===g&&t.createElement("img",{src:$e.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===d?t.createElement(Ka,{menuItems:c}):k&&t.createElement(Wa,{siteType:d})),t.createElement(Le,{"data-site-type":d},"marryBaby"===d?k&&t.createElement(Wa,{siteType:d}):t.createElement(Ka,{menuItems:c}),t.createElement(Se,null,C&&t.createElement(kt,{mediaQueryKey:"mbUp"},t.createElement(da,{careUrlFe:f.CARE_URL_FE,currentUrl:y,btnName:x("login.booking"),onCareHeaderClick:E})),r,t.createElement(ra,{userInfo:T,siteType:d,onLoginClick:b||(()=>{const e=window.location.href;window.location.href=U?ze(`${U}?returnUrl=${e}`):e}),SSO_URL:Ve(f.SSO_URL),currentUrl:y,onLogout:L,UP_BASEPATH:je,isMyHealthEnabled:P,enableCare:w,enableTogether:M,enableEcom:_,enableMySaved:N,togetherApiDomain:Ve(f.TOGETHER_API),isUserProfileNavigatorMenuHidden:!A,userProfileRouterPush:H,isLoading:B,locale:g})))),p?t.isValidElement(p)?t.cloneElement(p,{isCollapsed:R,locale:g,isMobile:u}):p:null)},Wa=({siteType:e})=>t.createElement(kt,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},t.createElement(Ea,null)),Ka=({menuItems:e})=>{const{siteType:a,locale:l,ssrMenuContent:{categories:n,healthTools:o,care:s,together:r}}=i(S);return t.createElement(kt,{mediaQueryKey:"mbUp",style:{height:"100%"}},t.createElement(He,{"data-site-type":a},null==e?void 0:e.map(((e,a)=>t.createElement(Ca,{key:a,item:e,menu:"categories"===e.popupType?t.createElement(Da,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?t.createElement(Va,{locale:l,healthTools:null==o?void 0:o.items,spotlightHealthTools:null==o?void 0:o.spotlights}):"together"===e.popupType?t.createElement(za,{communities:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):"care"===e.popupType?t.createElement(Fa,{careSpecialties:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):null})))))},qa=e=>{var r,c;const{isMobile:m,locale:d,onTopBarAppears:u,languageOptions:g,sponsorComponent:h,sitewideBanner:v,sitewideBannerShown:p,className:E}=e,y=(()=>{const{t:e}=Je(),{siteType:t,locale:a,configs:{enableNavDiscover:l,enableNavHealthTools:o,enableNavCare:s,enableNavTogether:r,enableNavEcom:c,statics:m}}=i(S),d="marryBaby"===t;return n((()=>{var t;const n=[];return l&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:d?$e.getAssetPath("categories-mb.svg"):$e.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),o&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${m.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=Oe[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:d?$e.getAssetPath("healthtools-mb.svg"):$e.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),r&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:ze(m.TOGETHER_URL_FE+"/"),thumbnail:d?$e.getAssetPath("community-mb.svg"):$e.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:ze(m.HOME_PAGE_URL+"/shop"),thumbnail:$e.getAssetPath("nav-icons/shop.svg"),popupType:null}),s&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:ze(m.HOME_PAGE_URL+"/care"),thumbnail:$e.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===a?null:"care"}),n}),[a,s,r,c])})();(()=>{const{isFirstLogin:e,userState:t}=i(S),{userInfo:a}=t;l((()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})}),[])})();const b=p&&!!v,f=!!h,C=!!(null===(c=null===(r=null==h?void 0:h.props)||void 0===r?void 0:r.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:k,defaultHeaderHeight:w,headerHeight:P,headerBottom:N}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:i,isMobile:r})=>{const c=o(null),[m,d]=a(0),[u,g]=a(64),h=s(ct((()=>{var e,t,a,l;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=n+200&&(d(n),g((null===(l=c.current)||void 0===l?void 0:l.getBoundingClientRect().bottom)||m))}),200),[]);l((()=>(window.addEventListener("resize",h,{passive:!0}),window.addEventListener("scroll",h,{passive:!0}),h(),()=>{window.removeEventListener("resize",h),window.removeEventListener("scroll",h)})),[]),l((()=>{h()}),[r,i,t,e,c.current]);const v=n((()=>{let a=r?64:69;return i&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,i,e,t]);return{defaultHeaderHeight:v,headerHeight:m||v,headerBottom:u,headerRef:c}})({isShowingSiteWideBanner:b,isSponsored:f,hasSponsoredBanners:C,isMobile:m});return t.createElement(xe,{id:"navigation-v2",style:{"--default-header-height":w+"px","--header-height":`calc(${P}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":N+"px"},className:E},t.createElement("section",{ref:k},t.createElement(Ga,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:t.createElement(ft,{languageOptions:g,locale:d})})))},Qa=e=>{const a=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return t.createElement(Be,Object.assign({},a),t.createElement(qa,Object.assign({},a)))},Ya=t=>e(void 0,void 0,void 0,(function*(){var e,a,l,n,o,i,s,r,c,m,d,u,g,h,v,p,E,y,b,f,C;const k={},w="vi-VN_MB"===t;try{const P="tl-PH"===t?"lang=fil":"";try{const[d,u,g,h]=yield Promise.all([fetch(ze(`${Ge(t)}/wp-json/api/categories${P?"?"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/spotlights?per_page=10&order_by=start_date${P?"&"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/${w?"health-tools":"healthtools"}${P?"?"+P:""}`)).then((e=>e.json())),fetch(ze(`${Ge(t)}/wp-json/api/${w?"health-tools":"healthtools"}/favorites${P?"?"+P:""}`)).then((e=>e.json()))]);k.categories={items:(null===(a=null===(e=null==d?void 0:d.data)||void 0===e?void 0:e.map)||void 0===a?void 0:a.call(e,Jt))||[],spotlights:(null===(i=null===(o=null===(n=null===(l=null==u?void 0:u.data)||void 0===l?void 0:l.articles)||void 0===n?void 0:n.map)||void 0===o?void 0:o.call(n,la))||void 0===i?void 0:i.filter(na))||[]},k.healthTools={items:(null===(r=null===(s=null==g?void 0:g.data)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,Xt))||[],spotlights:(null===(m=null===(c=null==h?void 0:h.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Xt))||[]}}catch(e){}if(w||Fe.includes(t))try{const[e,a]=yield Promise.all([fetch(ze(`${We()}/api/v1/community?website_url=https://${Ie[t]}`)).then((e=>e.json())),fetch(ze(`${We()}/api/v1/options?website_url=https://${Ie[t]}&meta_key=popular_post`)).then((e=>e.json()))]);k.together={items:(null===(g=null===(u=null===(d=null==e?void 0:e.data)||void 0===d?void 0:d.communities)||void 0===u?void 0:u.map)||void 0===g?void 0:g.call(u,Qe))||[],spotlights:(null===(p=null===(v=null===(h=null==a?void 0:a.data)||void 0===h?void 0:h.posts)||void 0===v?void 0:v.map)||void 0===p?void 0:p.call(v,Ye))||[]}}catch(e){}if(De.includes(t))try{const[e,a]=yield Promise.all([fetch(ze(Ke()+`/api/specialties?_ishome=1&site=${Ie[t]}`)).then((e=>e.json())),fetch(ze(Ke()+`/api/search/?site=${Ie[t]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);k.care={items:(null===(b=null===(y=null===(E=null==e?void 0:e._data)||void 0===E?void 0:E.specialties)||void 0===y?void 0:y.map)||void 0===b?void 0:b.call(y,ea))||[],spotlights:(null===(C=null===(f=null==a?void 0:a._data.searches)||void 0===f?void 0:f.map)||void 0===C?void 0:C.call(f,ta))||[]}}catch(e){}}catch(e){console.error(e)}return k})),Za=t=>e(void 0,void 0,void 0,(function*(){return(yield r("nav-menu-content",(()=>Ya(t||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}}));export{pt as A,ft as L,Qa as N,ia as P,oa as U,Za as a,St as b,Zt as c,sa as d,ra as e,Ya as g,yt as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as r,B as e,a as t,b as a,L as n,O as o}from"./Onboarding-4e9e8aae.js";var s=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return e},get BabyGrowthChartDuration(){return t},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o}});export{s as i};
|