@hhgtech/hhg-components 1.27.138 → 1.27.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/index.d.ts +1 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-43810ed1.js → core-585fb782.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.js +1 -1
- package/build/esm/components/atoms/index.d.ts +1 -0
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-cfcd9e41.js → core-5e75215b.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-68a1b7cb.js → getDynamicHealthTool-0fbe75dd.js} +1 -1
- package/build/esm/{getSocialList-54911c92.js → getSocialList-0a07b3d2.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-035716c5.js +1 -0
- package/build/esm/{index-46bdf4b1.js → index-2133dab2.js} +1 -1
- package/build/esm/{index-05a57506.js → index-43e652af.js} +1 -1
- package/build/esm/{index-6a881b9c.js → index-4788a4bc.js} +1 -1
- package/build/esm/{index-98b7569a.js → index-6310c7d0.js} +1 -1
- package/build/esm/index-69b7895d.js +1 -0
- package/build/esm/{index-edb505bc.js → index-6c7f81b7.js} +1 -1
- package/build/esm/{index-51312b4c.js → index-74b9c1ed.js} +1 -1
- package/build/esm/{index-bb885fa5.js → index-7572fe67.js} +90 -90
- package/build/esm/index-89d22baf.js +1 -0
- package/build/esm/{index-c4e16d96.js → index-9ecfed20.js} +1 -1
- package/build/esm/{index-7bd89789.js → index-a06f8a4d.js} +1 -1
- package/build/esm/{index-78966332.js → index-aad1d932.js} +1 -1
- package/build/esm/{index-439809b3.js → index-acdd8b0d.js} +3 -3
- package/build/esm/{index-86886dc2.js → index-bf58941c.js} +1 -1
- package/build/esm/{index-3eace8f6.js → index-c2773e4c.js} +1 -1
- package/build/esm/index-cadeabd1.js +3685 -0
- package/build/esm/{index-b8863a50.js → index-cde97e48.js} +1 -1
- package/build/esm/{index-72ad7657.js → index-f387314d.js} +1 -1
- package/build/esm/{index-d65dc290.js → index-fcd1c301.js} +1 -1
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-3601eb94.js → index.styled-46a58278.js} +1 -1
- package/build/esm/{index.styled-f02384f2.js → index.styled-c7ca700c.js} +1 -1
- package/build/esm/{index.styles-0ea53e9d.js → index.styles-61718981.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +1 -1
- package/build/esm/{routing-3bd232e3.js → routing-6181e9ef.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-3b16db97.js → types-34734a72.js} +1 -1
- package/build/esm/{types-2ed74091.js → types-b185b831.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-d760f588.js → useCategory-93212f15.js} +1 -1
- package/build/esm/useHealthToolCache-d899a544.js +1 -0
- package/build/esm/useRafState-a4f229a9.js +1 -0
- package/build/esm/{useTranslations-99be5a5c.js → useTranslations-23471fdf.js} +1 -1
- package/build/esm/{utils-eb8cf667.js → utils-5d35b7a7.js} +2 -2
- package/build/esm/{utils-a3ded355.js → utils-7da4c359.js} +1 -1
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-cd0b22a3.js → getDynamicHealthTool-2c0dfa04.js} +1 -1
- package/build/{getSocialList-e4985913.js → getSocialList-90319f78.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-e9153944.js → index-07abacd7.js} +112 -112
- package/build/{index-20adf6da.js → index-2713568d.js} +1 -1
- package/build/{index-561a5808.js → index-2751b6e4.js} +1 -1
- package/build/{index-5a6f3d09.js → index-27b07054.js} +3 -3
- package/build/{index-1e3bf063.js → index-2ce4d9e9.js} +1 -1
- package/build/{index-f08caf77.js → index-42b2693a.js} +1 -1
- package/build/{index-cc314eb9.js → index-4801f84a.js} +1 -1
- package/build/{index-0862763f.js → index-4dbaa8c5.js} +1 -1
- package/build/index-59ad8105.js +1 -0
- package/build/{index-045f3f68.js → index-711e914b.js} +1 -1
- package/build/{index-dc128df9.js → index-8248f220.js} +159 -159
- package/build/{index-16715eca.js → index-8f191ab5.js} +1 -1
- package/build/{index-ae31a292.js → index-99623f6f.js} +1 -1
- package/build/{index-177ab3d7.js → index-9b4cc2fb.js} +1 -1
- package/build/{index-9f2704db.js → index-9da1f149.js} +1 -1
- package/build/{index-cdfbac05.js → index-bf6f367a.js} +1 -1
- package/build/{index-087e4174.js → index-bfeb60f1.js} +1 -1
- package/build/{index-fc55fa41.js → index-cab5cfe0.js} +1 -1
- package/build/{index-9f8605e9.js → index-ea8ddfbf.js} +1 -1
- package/build/index-f698f600.js +1 -0
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-8224e691.js → index.styled-49d158ca.js} +1 -1
- package/build/{index.styled-689c2ea5.js → index.styled-b3d1d720.js} +1 -1
- package/build/{index.styles-2ce4d146.js → index.styles-21556288.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/onboardingV2.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-5fe4d854.js → routing-cd0df195.js} +1 -1
- package/build/together.js +1 -1
- package/build/{types-dd1d5b6e.js → types-2f93120e.js} +1 -1
- package/build/{types-56b1f41c.js → types-cadcd04c.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-8982cef0.js → useCategory-0c45d710.js} +1 -1
- package/build/{useHealthToolCache-2ade3b4c.js → useHealthToolCache-72f33762.js} +1 -1
- package/build/{useRafState-bb6cb1c9.js → useRafState-1fc4f91f.js} +1 -1
- package/build/{useTranslations-f77e85df.js → useTranslations-189b037d.js} +1 -1
- package/build/{utils-b00d912b.js → utils-81b51543.js} +1 -1
- package/build/{utils-f7edc674.js → utils-9f867b8a.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/constants-82a8368d.js +0 -1
- package/build/esm/constants-0c201ad3.js +0 -1
- package/build/esm/index-264db621.js +0 -3685
- package/build/esm/index-5659c986.js +0 -1
- package/build/esm/index-9016366a.js +0 -1
- package/build/esm/index-c3020155.js +0 -1
- package/build/esm/useHealthToolCache-0f6d13b1.js +0 -1
- package/build/esm/useRafState-d9a1a6c5.js +0 -1
- package/build/index-3786b0e8.js +0 -1
- package/build/index-d622ad76.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-6ffd2544.js → BMI_BOYS.percentile.monthly-3bb4c420.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-70c87059.js → BMI_BOYS.percentile.weekly-eb17f8e7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0c465dc7.js → BMI_BOYS.percentile.yearly-144ecf07.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-8d2c8293.js → BMI_BOYS.zscore.monthly-1209762e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-c7364700.js → BMI_BOYS.zscore.weekly-e13b1bf2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-a2fb771c.js → BMI_BOYS.zscore.yearly-64c1e7cb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-c7597fca.js → BMI_GIRLS.percentile.monthly-965453a8.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-8738def3.js → BMI_GIRLS.percentile.weekly-170a0053.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-27cbb068.js → BMI_GIRLS.percentile.yearly-98f70ec1.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-3baf0177.js → BMI_GIRLS.zscore.monthly-8fa56630.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-03391965.js → BMI_GIRLS.zscore.weekly-7a30b716.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-906a54a1.js → BMI_GIRLS.zscore.yearly-88b552ba.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7b54ef86.js → HEAD CIRCUM_BOYS.percentile.monthly-b27ac71c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-d219f71d.js → HEAD CIRCUM_BOYS.percentile.weekly-8d023a2e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-8f351716.js → HEAD CIRCUM_BOYS.percentile.yearly-a00edde1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-c2a0bba2.js → HEAD CIRCUM_BOYS.zscore.monthly-ea93ab91.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-66a8ba16.js → HEAD CIRCUM_BOYS.zscore.weekly-23f9bcec.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-22e1180d.js → HEAD CIRCUM_BOYS.zscore.yearly-b1ae5320.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-02b860e7.js → HEAD CIRCUM_GIRLS.percentile.monthly-04c57ca8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-63cc9e1c.js → HEAD CIRCUM_GIRLS.percentile.weekly-0e0e7893.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-3aa21f74.js → HEAD CIRCUM_GIRLS.percentile.yearly-8fb8514a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-84688adc.js → HEAD CIRCUM_GIRLS.zscore.monthly-8dac4640.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-a7544e97.js → HEAD CIRCUM_GIRLS.zscore.weekly-ca9e90c1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-e87e30a4.js → HEAD CIRCUM_GIRLS.zscore.yearly-e74092fe.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-164543ae.js → HEIGHT_BOYS.percentile.monthly-77697f79.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-8a861b81.js → HEIGHT_BOYS.percentile.weekly-0751b30c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-d474f96f.js → HEIGHT_BOYS.percentile.yearly-75384fd6.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-4a1fc7c7.js → HEIGHT_BOYS.zscore.monthly-436641d9.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-ef442019.js → HEIGHT_BOYS.zscore.weekly-796a0327.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-1bd479b4.js → HEIGHT_BOYS.zscore.yearly-4b933167.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-92d87c54.js → HEIGHT_GIRLS.percentile.monthly-b22fb992.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-55aa1411.js → HEIGHT_GIRLS.percentile.weekly-93f45ce9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-c0f3306b.js → HEIGHT_GIRLS.percentile.yearly-4621af9b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-da85a886.js → HEIGHT_GIRLS.zscore.monthly-931478bc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-874d7cac.js → HEIGHT_GIRLS.zscore.weekly-aa541434.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-fd2f9db2.js → HEIGHT_GIRLS.zscore.yearly-c34c8437.js} +0 -0
- /package/build/{Onboarding-00fa58c1.js → Onboarding-943a6e80.js} +0 -0
- /package/build/{Visible-ca2704ac.js → Visible-11bffe6f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-a7425242.js → WEIGHT_BOYS.percentile.monthly-5e274672.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-e4a4b6cd.js → WEIGHT_BOYS.percentile.weekly-1b7a5ee7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-bba412bb.js → WEIGHT_BOYS.percentile.yearly-cf9db0c7.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-294fe20e.js → WEIGHT_BOYS.zscore.monthly-7c8ca597.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-9272e260.js → WEIGHT_BOYS.zscore.weekly-efe25bee.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-03477452.js → WEIGHT_BOYS.zscore.yearly-47b2dd28.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-fc56d9bb.js → WEIGHT_GIRLS.percentile.monthly-f527434c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-bbb373bc.js → WEIGHT_GIRLS.percentile.weekly-d6b67bc9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-3567f620.js → WEIGHT_GIRLS.percentile.yearly-3cfa8f99.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-50fcbcf4.js → WEIGHT_GIRLS.zscore.monthly-02e54e09.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-14cfbea7.js → WEIGHT_GIRLS.zscore.weekly-995ff89e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-2864ba2d.js → WEIGHT_GIRLS.zscore.yearly-912375ce.js} +0 -0
- /package/build/{constants-a2e45e79.js → constants-15576d0b.js} +0 -0
- /package/build/{cookieHelper-63a58c51.js → cookieHelper-7b7e1759.js} +0 -0
- /package/build/{dataTransform-ca115efa.js → dataTransform-e27d3ead.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-9971d463.js → BMI_BOYS.percentile.monthly-da6b339a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-0fae922f.js → BMI_BOYS.percentile.weekly-4eeae01c.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-876213da.js → BMI_BOYS.percentile.yearly-ad463ca7.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-7e6274b4.js → BMI_BOYS.zscore.monthly-af7b4372.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-3ce105ba.js → BMI_BOYS.zscore.weekly-278a99e1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-2fe8cab1.js → BMI_BOYS.zscore.yearly-a7da45b6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-4eb45795.js → BMI_GIRLS.percentile.monthly-9808f463.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-65fa283e.js → BMI_GIRLS.percentile.weekly-60348b5d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-1805f13a.js → BMI_GIRLS.percentile.yearly-55dbe349.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-4409eacf.js → BMI_GIRLS.zscore.monthly-9270e474.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-2c9f3998.js → BMI_GIRLS.zscore.weekly-1d19593f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-4e3c034c.js → BMI_GIRLS.zscore.yearly-acc2b115.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-d4c0d137.js → HEAD CIRCUM_BOYS.percentile.monthly-6b673587.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-0f658aad.js → HEAD CIRCUM_BOYS.percentile.weekly-33dbea07.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-85f6ba48.js → HEAD CIRCUM_BOYS.percentile.yearly-13e7689f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-23dccf4b.js → HEAD CIRCUM_BOYS.zscore.monthly-acdab329.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-1b76fe61.js → HEAD CIRCUM_BOYS.zscore.weekly-885122d2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-93598621.js → HEAD CIRCUM_BOYS.zscore.yearly-5169481b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-e6bc300b.js → HEAD CIRCUM_GIRLS.percentile.monthly-62e68908.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-c0b02b91.js → HEAD CIRCUM_GIRLS.percentile.weekly-62543f2b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-8b0970d7.js → HEAD CIRCUM_GIRLS.percentile.yearly-d5562362.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3f0557c6.js → HEAD CIRCUM_GIRLS.zscore.monthly-18c717fe.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-5834dbff.js → HEAD CIRCUM_GIRLS.zscore.weekly-c5799f2e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-5c67428e.js → HEAD CIRCUM_GIRLS.zscore.yearly-6df4f28b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-e2e34c3b.js → HEIGHT_BOYS.percentile.monthly-d18e9ef6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e215a773.js → HEIGHT_BOYS.percentile.weekly-d656fdea.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-c873865e.js → HEIGHT_BOYS.percentile.yearly-59bb9cd5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-37d08bf7.js → HEIGHT_BOYS.zscore.monthly-a0ff360a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-819a1028.js → HEIGHT_BOYS.zscore.weekly-ccb3be04.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-ce8c3da7.js → HEIGHT_BOYS.zscore.yearly-bc348822.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-fddbc30f.js → HEIGHT_GIRLS.percentile.monthly-f9d3a484.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-6cfe053a.js → HEIGHT_GIRLS.percentile.weekly-e70b54f9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3d0bcdbd.js → HEIGHT_GIRLS.percentile.yearly-8fa7b95a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-3dfca1fe.js → HEIGHT_GIRLS.zscore.monthly-11c40858.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f4abe0b0.js → HEIGHT_GIRLS.zscore.weekly-e876857e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-bac242e3.js → HEIGHT_GIRLS.zscore.yearly-fb4f3658.js} +0 -0
- /package/build/esm/{Onboarding-da3daa0f.js → Onboarding-67251664.js} +0 -0
- /package/build/esm/{Visible-bf687db9.js → Visible-a02e282e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-44845bf5.js → WEIGHT_BOYS.percentile.monthly-27f6689a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-d1e8ee89.js → WEIGHT_BOYS.percentile.weekly-c0711146.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b098299c.js → WEIGHT_BOYS.percentile.yearly-394de876.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-96af21d8.js → WEIGHT_BOYS.zscore.monthly-590edce7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-3cade1be.js → WEIGHT_BOYS.zscore.weekly-48047c24.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-4094a42c.js → WEIGHT_BOYS.zscore.yearly-7d517902.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-bfe4eec2.js → WEIGHT_GIRLS.percentile.monthly-e7077286.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-690f1e56.js → WEIGHT_GIRLS.percentile.weekly-215fde2e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-623d873e.js → WEIGHT_GIRLS.percentile.yearly-99d5c123.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-bc0471d9.js → WEIGHT_GIRLS.zscore.monthly-cbacc862.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f911cc3b.js → WEIGHT_GIRLS.zscore.weekly-63c6cdee.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-40768db2.js → WEIGHT_GIRLS.zscore.yearly-73d7af2e.js} +0 -0
- /package/build/esm/{constants-0eebad32.js → constants-f4a898f4.js} +0 -0
- /package/build/esm/{cookieHelper-af6c8af0.js → cookieHelper-76cc66a6.js} +0 -0
- /package/build/esm/{dataTransform-87238d5d.js → dataTransform-55d4be56.js} +0 -0
- /package/build/esm/{index-34bca339.js → index-54f182a9.js} +0 -0
- /package/build/esm/{index-194f7d3b.js → index-8a62ad1d.js} +0 -0
- /package/build/esm/{index-54a13744.js → index-d5aeeedc.js} +0 -0
- /package/build/esm/{isProduction-0f5c8d87.js → isProduction-bf0d9031.js} +0 -0
- /package/build/esm/{localizeNumberFormat-70fb8f31.js → localizeNumberFormat-22f4a7a2.js} +0 -0
- /package/build/esm/{normalizeLink-68845a77.js → normalizeLink-2df56f4c.js} +0 -0
- /package/build/esm/{number-ab13a833.js → number-36c021d7.js} +0 -0
- /package/build/esm/{paths-19cb073f.js → paths-54b63ac6.js} +0 -0
- /package/build/esm/{screenSizeContext-96ebb9c7.js → screenSizeContext-772f4947.js} +0 -0
- /package/build/esm/{theme-419acfb4.js → theme-99fe7428.js} +0 -0
- /package/build/esm/{translationsContext-22825578.js → translationsContext-f3b81c7a.js} +0 -0
- /package/build/esm/{tslib.es6-8357f6ae.js → tslib.es6-dcd5d7f3.js} +0 -0
- /package/build/esm/{types-d8331269.js → types-03dc42c3.js} +0 -0
- /package/build/esm/{useIsInit-f47f06fb.js → useIsInit-ab138ad4.js} +0 -0
- /package/build/esm/{useOutsideClick-0537c973.js → useOutsideClick-f9246884.js} +0 -0
- /package/build/esm/{useScrollbarSize-0c036f46.js → useScrollbarSize-b565bbd2.js} +0 -0
- /package/build/{index-eb9d56a8.js → index-1086976e.js} +0 -0
- /package/build/{index-a6b4b593.js → index-b8498c92.js} +0 -0
- /package/build/{index-554779a2.js → index-e6f6c132.js} +0 -0
- /package/build/{isProduction-6f66181f.js → isProduction-8527f398.js} +0 -0
- /package/build/{localizeNumberFormat-1a0e1f8d.js → localizeNumberFormat-d3262638.js} +0 -0
- /package/build/{normalizeLink-7b35dc37.js → normalizeLink-3f237981.js} +0 -0
- /package/build/{number-3ef66c84.js → number-5eb36dff.js} +0 -0
- /package/build/{paths-901050cf.js → paths-258f7f69.js} +0 -0
- /package/build/{screenSizeContext-f3a26c7b.js → screenSizeContext-d0020a2f.js} +0 -0
- /package/build/{theme-a54183c5.js → theme-b85e7292.js} +0 -0
- /package/build/{translationsContext-37c32c70.js → translationsContext-18622a7c.js} +0 -0
- /package/build/{tslib.es6-5f3bd14c.js → tslib.es6-9b337244.js} +0 -0
- /package/build/{types-be27ebfc.js → types-b69a8acc.js} +0 -0
- /package/build/{useIsInit-bfe0f430.js → useIsInit-f704bf21.js} +0 -0
- /package/build/{useOutsideClick-fa0fafda.js → useOutsideClick-7c84e863.js} +0 -0
- /package/build/{useScrollbarSize-6285bd77.js → useScrollbarSize-a45e070c.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,_ as t}from"./tslib.es6-
|
|
1
|
+
import{a as e,_ as t}from"./tslib.es6-dcd5d7f3.js";import a,{useState as o,useEffect as i,useMemo as n,useRef as l,memo as r,useContext as s,useCallback as d}from"react";import{g as c}from"./core-5e75215b.js";import{I as m,F as p,B as g,a as h}from"./index-9ecfed20.js";import u from"styled-components";import{T as v,U as y}from"./index-6310c7d0.js";import{CommonGAssets as b}from"./gAssets.js";import{d as f,C as x,b as w,T as E,E as C,L as k,S as $,U as P}from"./index-2133dab2.js";import{n as N,a as B}from"./normalizeLink-2df56f4c.js";import{g as _,a as M,b as A,c as T,d as L}from"./routing-6181e9ef.js";import{P as H,U as S,a as U,b as z}from"./index-a06f8a4d.js";import{L as D}from"./index-f387314d.js";import{u as j,b as R}from"./useTranslations-23471fdf.js";import O from"lodash/throttle";import{j as I,M as F}from"./screenSizeContext-772f4947.js";import{L as V}from"./Onboarding-67251664.js";import{t as G}from"./theme-99fe7428.js";import{K as W,y as Y,L as Z,P as q,H as K}from"./index.styles-61718981.js";import{g as Q}from"./cookieHelper-76cc66a6.js";import{Portal as J}from"@mantine/core";import{B as X}from"./index-c2773e4c.js";import"./index-bf58941c.js";import"./utils-5d35b7a7.js";import"@mantine/dates";import ee from"dayjs";import"./isProduction-bf0d9031.js";import"@mantine/hooks";import"./index.styled-c7ca700c.js";import"./index-8a62ad1d.js";import te from"lodash/debounce";import"./useCategory-93212f15.js";import{L as ae}from"./constants-f4a898f4.js";import oe from"string-format";import{I as ie}from"./index-89d22baf.js";import{u as ne}from"./useIsInit-ab138ad4.js";import le from"dayjs/plugin/relativeTime";import{C as re}from"./index-d5aeeedc.js";const se={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},de=({type:e="square",size:t,avatarImg:n,avatarUrl:l,firstLetter:r,backgroundColor:s,onClick:d,style:c,className:p,width:g,height:h,alt:u})=>{const v=t?se[t]:void 0,[y,b]=o(!1);i((()=>{if(l){const e=document.createElement("img");e.setAttribute("src",l),e.addEventListener("error",(()=>{b(!0)}))}}),[l,b]);const f=(!l&&!n||y)&&r;return a.createElement(W,{style:Object.assign(Object.assign({},c),{"--size":v?v+"px":void 0,"--width-prop":g?g+"px":void 0,"--height-prop":h?h+"px":void 0,"--background-color":s}),"data-has-max":!(!g||!h),"data-avatar-type":e,onClick:d,className:p,avatarUrl:l,"data-custom-size":!!t},n,l&&!y&&a.createElement(m,{src:l,alt:u||"avatar"}),f&&r)},ce=["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"],me=(e="")=>ce.some((t=>new URL(e).origin.endsWith(t))),pe=u.a`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
position: relative;
|
|
4
4
|
flex-direction: row;
|
|
@@ -17,12 +17,12 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
17
17
|
text-decoration: none;
|
|
18
18
|
|
|
19
19
|
cursor: pointer;
|
|
20
|
-
`,
|
|
20
|
+
`,ge=u.div`
|
|
21
21
|
position: relative;
|
|
22
22
|
display: inline-block;
|
|
23
|
-
`,
|
|
23
|
+
`,he=u.div`
|
|
24
24
|
position: relative;
|
|
25
|
-
`,
|
|
25
|
+
`,ue=u.div`
|
|
26
26
|
position: absolute;
|
|
27
27
|
z-index: 21;
|
|
28
28
|
top: 100%;
|
|
@@ -50,7 +50,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
50
50
|
filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
53
|
+
`,ve=u.div`
|
|
54
54
|
display: flex;
|
|
55
55
|
height: 40px;
|
|
56
56
|
align-items: center;
|
|
@@ -67,7 +67,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
67
67
|
&[data-selected='false'] {
|
|
68
68
|
background-color: ${e=>e.theme.colors.gray100};
|
|
69
69
|
}
|
|
70
|
-
`,
|
|
70
|
+
`,ye=u.div`
|
|
71
71
|
position: fixed;
|
|
72
72
|
z-index: 20;
|
|
73
73
|
top: 0;
|
|
@@ -75,9 +75,9 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
75
75
|
width: 100%;
|
|
76
76
|
height: 100%;
|
|
77
77
|
cursor: default;
|
|
78
|
-
`,
|
|
78
|
+
`,be=({options:e,label:t,labelRenderer:i,selected:n,onChange:l,showSelected:r=!0,style:s={},showIndicator:d=!0})=>{const[c,m]=o(!1);return a.createElement(a.Fragment,null,a.createElement(ge,null,a.createElement(he,{onClick:()=>m((e=>!e))},t||(null==i?void 0:i(c))||null,a.createElement(ue,{"data-is-open":c,style:s,"data-show-indicator":d},e.map(((e,t)=>a.createElement(ve,{key:t,"data-selected":r&&n===e.value,onClick:t=>{n!==e.value&&(l(e.value),m((e=>!e))),t.stopPropagation()}},a.createElement(v,{size:"p3"},e.label),r&&n===e.value&&a.createElement("img",{src:b.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),c&&a.createElement(ye,{onClick:()=>m(!1)}))},fe=({languageOptions:e,locale:t})=>{var o,i;const n=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?a.createElement(be,{options:e,selected:n.value,label:a.createElement(xe,{locale:t,label:n.label||(null===(i=null===(o=t.split("-"))||void 0===o?void 0:o[0])||void 0===i?void 0:i.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},xe=({locale:e,label:t,href:o})=>{var i,n,l;return a.createElement(pe,{href:o},a.createElement(p,{country:null===(n=null===(i=null==e?void 0:e.split("-"))||void 0===i?void 0:i[1])||void 0===n?void 0:n.toUpperCase(),width:16,height:16,rounded:!0,language:null===(l=null==e?void 0:e.split("-"))||void 0===l?void 0:l[0]}),a.createElement("span",null,t))},we=u.div`
|
|
79
79
|
${e=>`\n ${0!==e.lowerBound?`@media (max-width: ${e.lowerBound-1}px) { display: none; }`:""}\n ${0!==e.upperBound?`@media (min-width: ${e.upperBound}px) { display: none; }`:""}\n `}
|
|
80
|
-
`,
|
|
80
|
+
`,Ee=({forceDisplay:e,mediaQueryKey:t,children:o,className:i,style:l})=>{const[r,s]=n((()=>I(t)),[t]);return a.createElement(we,{lowerBound:e?0:r,upperBound:e?0:s,className:i,style:l},o)},Ce=e=>{const{allowBgScroll:t}=e||{},a=l();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())}}},ke="hhgcomp-navprofilebutton-popup",$e=Y(u.div`
|
|
81
81
|
position: absolute;
|
|
82
82
|
right: 0;
|
|
83
83
|
background-color: ${e=>e.theme.colors.white};
|
|
@@ -208,7 +208,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
208
208
|
border-radius: 50%;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
`,ke),Pe="hhgcomp-navprofilebutton-popupwrapper";Y(u.div`
|
|
212
212
|
position: fixed;
|
|
213
213
|
z-index: 150;
|
|
214
214
|
top: var(--header-bottom, 69px);
|
|
@@ -238,7 +238,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
238
238
|
&[data-open='false'] {
|
|
239
239
|
display: none;
|
|
240
240
|
}
|
|
241
|
-
`,
|
|
241
|
+
`,Pe);const Ne=u.div`
|
|
242
242
|
width: 40px;
|
|
243
243
|
height: 40px;
|
|
244
244
|
cursor: pointer;
|
|
@@ -263,7 +263,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
263
263
|
font-size: 20px;
|
|
264
264
|
font-weight: bold;
|
|
265
265
|
}
|
|
266
|
-
`,
|
|
266
|
+
`,Be=u.a`
|
|
267
267
|
display: inline-flex;
|
|
268
268
|
position: relative;
|
|
269
269
|
width: 40px;
|
|
@@ -285,7 +285,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
285
285
|
.user-avatar {
|
|
286
286
|
display: none;
|
|
287
287
|
}
|
|
288
|
-
.${
|
|
288
|
+
.${ke} {
|
|
289
289
|
z-index: 200;
|
|
290
290
|
top: 120%;
|
|
291
291
|
opacity: 1;
|
|
@@ -297,11 +297,11 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
.${
|
|
300
|
+
.${Pe} {
|
|
301
301
|
display: initial;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
`,
|
|
304
|
+
`,_e=u.a`
|
|
305
305
|
display: inline-flex;
|
|
306
306
|
.login-btn[data-color='tertiary'][data-size='md'] {
|
|
307
307
|
padding-left: 12px;
|
|
@@ -318,7 +318,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
318
318
|
display: block;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
`,Ae=({type:e="lead",closeIcon:t,isOpen:o=!0,onClose:i,children:n,enableAnimation:l=!0,targetAvatar:r,id:s,className:d})=>a.createElement(Pe,{"data-open":o,"data-type":e,"data-animation":l,"data-target":r,id:s,className:d},a.createElement("div",{className:"popup-content"},!!t&&a.createElement("div",{className:"close-button",onClick:i},t),n)),Te={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};var Le="uJQBNNg",He="TfG3dM5",Se="aMtjFNf",Ue="cSz2RR-",ze="GyFm00F";function De({userInfo:e,onClickMyProfileButton:t,themeName:o="helloSites"}){const{t:i}=j(),l=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 a.createElement("div",{className:Le,onClick:()=>{t&&t()}},a.createElement(ce,{className:He,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:l,backgroundColor:"marryBaby"===o?G.mbColors.pink:G.colors.secondaryBase}),a.createElement("div",{className:Se},a.createElement("div",{className:Ue},(null==e?void 0:e.name)||(null==e?void 0:e.username)),a.createElement("div",{className:ze,style:{"--bg-hellosites":`url(${b.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${b.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},i("userProfile.nav.header.viewProfile"))))}var je="fVk18fq",Re="v8TCvUb",Oe="mx7T4V3";const Ie={myHealth:G.mbColors.toneYellow,myCommunity:G.mbColors.toneBlue,mySaved:G.mbColors.toneGreen},Fe={helloSites:{myBooking:()=>b.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>b.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>b.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>b.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>b.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>b.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>b.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>b.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>b.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},Ve=({type:e,themeName:t,className:o,onClick:i=(()=>{})})=>{const{t:l}=j(),r=n((()=>{var a,o;return(null===(o=null===(a=Fe[t])||void 0===a?void 0:a[e])||void 0===o?void 0:o.call(a))||""}),[e,t]),s=n((()=>"marryBaby"!==t?"transparent":Ie[e]),[e,t]);return a.createElement("div",{onClick:function(){i(e)},className:`${je} ${o}`},a.createElement("div",{className:Oe,style:{backgroundColor:s,backgroundImage:`url("${r}")`}}),a.createElement("h3",{className:Re},l(`userProfile.nav.card.${e}`)))};var Ge="gn6HmGG",We="FCx8FEM",Ye="zMiRxaE",Ze="lZ2Z9MQ",qe="rwm-agG",Ke="qMOscoq";const Qe=({themeName:e,locale:t,onClickItem:i})=>{const[l,r]=o(""),s=n((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:b.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:b.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:b.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:b.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function d(e){e.subMenu?r((t=>t?"":e.key)):i&&i(e)}return a.createElement("div",{className:Ge},s.map((e=>a.createElement(Je,{key:e.key,item:e,openKey:l,onClickItem:d,locale:t}))))},Je=({item:e,openKey:t,onClickItem:o,locale:i})=>{var n;const{t:l}=j();return(null===(n=e.disableLocale)||void 0===n?void 0:n.includes(i))?null:a.createElement("div",{className:`${We} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},a.createElement("div",{className:Ye,onClick:()=>o(e)},e.icon&&a.createElement("div",{className:Ze,style:{backgroundImage:`url("${e.icon}")`}}),l(e.key),e.subMenu&&a.createElement("div",{className:qe,style:{"--after-bg":`url(${b.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&a.createElement("div",{className:Ke},e.subMenu.map((e=>a.createElement(Je,{key:e.key,item:e,openKey:t,onClickItem:o,locale:i})))))};var Xe="-AZt1au",et="IvSIfCI",tt="eahCJov",at="XIyViFs",ot="_4y-O0w3",it="kO8iNgD",nt="a1d4E10",lt="Tdguxxf",rt="-mOxsaU",st="yPeDBNZ";const dt={helloSites:{member:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},ct=({themeName:e,rank:t="member",numberOfPosts:o=0})=>{const{t:i}=j(),l=n((()=>{var a,o;return(null===(o=null===(a=dt[e])||void 0===a?void 0:a[t])||void 0===o?void 0:o.call(a))||""}),[t,e]);return a.createElement("div",{className:ot,"data-user-rank":t},a.createElement("div",{className:it},a.createElement("div",{className:nt},a.createElement("div",{className:lt,style:{backgroundImage:`url("${l}")`}}),a.createElement("h3",{className:rt},i(`userProfile.userRank.${t}`)),o>0&&a.createElement("p",{className:st},o," ",i("userProfile.nav.header.count.posts")))))},mt="profile/posts?website_url={websiteUrl}",pt=99,gt=300,ht=400,ut=210,vt=e=>{var t,a,o,i;return e?{termId:e.term_id||null,sponsor:e.sponsor?(i=e.sponsor,i?{title:i.title,logo:i.logo,link:i.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=>vt(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?(o=e.reviewed_by,{postTitle:o.post_title,permalink:o.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}:{}},yt=e=>{var t,a;if(!e)return{};const o=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),i=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),n=e.link?e.link.startsWith("http")||o?e.link:i?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:n,subtitle:e.subtitle,title:e.title}},bt=e=>{var t,a,o,i,n;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(o=e.object_id)||void 0===o?void 0:o.name)||"",name:(null===(i=e.object_id)||void 0===i?void 0:i.name)||"",slug:(null===(n=e.object_id)||void 0===n?void 0:n.slug)||""}:{}},ft=e=>{var t,a,o,i;return e&&(null==e?void 0:e.object_id)?{id:e.id,name:(null===(t=e.object_id)||void 0===t?void 0:t.name)||"",logo:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.logo)||"",description:(null===(o=e.object_id)||void 0===o?void 0:o.description)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},xt=({type:e,specialtySlug:t,locale:a})=>{var o,i;return`${null===(o=oe[a])||void 0===o?void 0:o.ALL}/${(null===(i=oe[a])||void 0===i?void 0:i[e])||"doctor"}/${null!=t?t:""}`},wt=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}:{},Et=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},Ct=({SSO_URL:e,UP_BASEPATH:t="user",themeName:l="helloSites",cardUrls:r=Te,enableCare:s,enableTogether:d,enableEcom:c,enableMySaved:m,userInfo:p,togetherApiDomain:g,userPostsNumber:h,onClickNavigationCard:u,onClickMyProfileButton:v,onClickMenuItem:y,onClickLogout:x,isUserProfileNavigatorMenuHidden:w=!1,isMyHealthEnabled:E=!1,locale:C})=>{const{t:k}=j(),[$,P]=o(h||0),_="marryBaby"===l;i((()=>{if(p&&void 0===h){const e=J("hhg_user_token");e&&fetch(N(((e,t,a,o)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+ie(mt,Object.assign(Object.assign({},o),{websiteUrl:t?"https://marrybaby.vn":`https://${f[e]}`})))(C,_,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,o;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&P((null===(o=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===o?void 0:o.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[C,null!==p,h,g,_]);const M=n((()=>{let e;return e=_?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?d:"myHealth"===e?E:"eCom"===e?c:"mySaved"!==e||m))}),[_,E]),A=n((()=>"marryBaby"===l?null:a.createElement(ee,{color:"tertiary",icon:a.createElement("img",{src:b.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:x,className:at},k("userProfile.nav.menu.logout"))),[l]),T=a=>{a.startsWith("http")||a.startsWith("/")?window.location.href=B(a):e&&(window.location.href=B(`${e}${t}/${a}`))},L=e=>{const t=r[e];u?u(t):T(t)};return p?a.createElement("div",{className:Xe,"data-theme":l},a.createElement(De,{userInfo:p,themeName:l,onClickMyProfileButton:()=>{v?v():T("profile")}}),a.createElement(ct,{themeName:l,rank:"member",numberOfPosts:$}),a.createElement("div",{className:et},M.map((e=>a.createElement(Ve,{className:tt,key:e,themeName:l,type:e,onClick:L})))),!w&&a.createElement(a.Fragment,null,a.createElement(Qe,{themeName:l,locale:C,onClickItem:e=>{"logout"===e.link&&x?x():e.link&&!e.subMenu&&(y?y(e.link):T(e.link))}}),A)):null},kt=({SSO_URL:e,UP_BASEPATH:t,isOpen:o,targetAvatar:i,userInfo:n,enableCare:l,enableTogether:r,enableEcom:s,enableMySaved:d,closePopup:c,siteType:m="helloSites",dispatchLogout:p,userProfileRouterPush:g,isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:u=!1,togetherApiDomain:v,locale:y})=>{const b=a=>{a.startsWith("http")?window.location.href=B(a):a.startsWith("/")?window.location.href=B(`${Q}${a}`):g?g(`/${a}`):window.location.href=B(`${e}${t}/${a}`)},f=e=>{b(e),c()};return a.createElement(Ae,{isOpen:o,type:"profile",enableAnimation:!0,targetAvatar:i,onClose:c},a.createElement(Ct,{SSO_URL:e,UP_BASEPATH:t,themeName:m,userInfo:n,enableCare:l,enableTogether:r,enableEcom:s,enableMySaved:d,onClickLogout:()=>{p&&(p(),c())},onClickMenuItem:f,onClickNavigationCard:f,onClickMyProfileButton:()=>{b("profile"),c()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:u,togetherApiDomain:v,locale:y}))},$t=u.div`
|
|
321
|
+
`,Me=({type:e="lead",closeIcon:t,isOpen:o=!0,onClose:i,children:n,enableAnimation:l=!0,targetAvatar:r,id:s,className:d})=>a.createElement($e,{"data-open":o,"data-type":e,"data-animation":l,"data-target":r,id:s,className:d},a.createElement("div",{className:"popup-content"},!!t&&a.createElement("div",{className:"close-button",onClick:i},t),n)),Ae={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};var Te="uJQBNNg",Le="TfG3dM5",He="aMtjFNf",Se="cSz2RR-",Ue="GyFm00F";function ze({userInfo:e,onClickMyProfileButton:t,themeName:o="helloSites"}){const{t:i}=j(),l=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 a.createElement("div",{className:Te,onClick:()=>{t&&t()}},a.createElement(de,{className:Le,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:l,backgroundColor:"marryBaby"===o?G.mbColors.pink:G.colors.secondaryBase}),a.createElement("div",{className:He},a.createElement("div",{className:Se},(null==e?void 0:e.name)||(null==e?void 0:e.username)),a.createElement("div",{className:Ue,style:{"--bg-hellosites":`url(${b.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${b.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},i("userProfile.nav.header.viewProfile"))))}var De="fVk18fq",je="v8TCvUb",Re="mx7T4V3";const Oe={myHealth:G.mbColors.toneYellow,myCommunity:G.mbColors.toneBlue,mySaved:G.mbColors.toneGreen},Ie={helloSites:{myBooking:()=>b.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>b.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>b.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>b.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>b.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>b.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>b.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>b.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>b.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},Fe=({type:e,themeName:t,className:o,onClick:i=(()=>{})})=>{const{t:l}=j(),r=n((()=>{var a,o;return(null===(o=null===(a=Ie[t])||void 0===a?void 0:a[e])||void 0===o?void 0:o.call(a))||""}),[e,t]),s=n((()=>"marryBaby"!==t?"transparent":Oe[e]),[e,t]);return a.createElement("div",{onClick:function(){i(e)},className:`${De} ${o}`},a.createElement("div",{className:Re,style:{backgroundColor:s,backgroundImage:`url("${r}")`}}),a.createElement("h3",{className:je},l(`userProfile.nav.card.${e}`)))};var Ve="gn6HmGG",Ge="FCx8FEM",We="zMiRxaE",Ye="lZ2Z9MQ",Ze="rwm-agG",qe="qMOscoq";const Ke=({themeName:e,locale:t,onClickItem:i})=>{const[l,r]=o(""),s=n((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:b.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:b.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:b.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:b.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function d(e){e.subMenu?r((t=>t?"":e.key)):i&&i(e)}return a.createElement("div",{className:Ve},s.map((e=>a.createElement(Qe,{key:e.key,item:e,openKey:l,onClickItem:d,locale:t}))))},Qe=({item:e,openKey:t,onClickItem:o,locale:i})=>{var n;const{t:l}=j();return(null===(n=e.disableLocale)||void 0===n?void 0:n.includes(i))?null:a.createElement("div",{className:`${Ge} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},a.createElement("div",{className:We,onClick:()=>o(e)},e.icon&&a.createElement("div",{className:Ye,style:{backgroundImage:`url("${e.icon}")`}}),l(e.key),e.subMenu&&a.createElement("div",{className:Ze,style:{"--after-bg":`url(${b.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&a.createElement("div",{className:qe},e.subMenu.map((e=>a.createElement(Qe,{key:e.key,item:e,openKey:t,onClickItem:o,locale:i})))))};var Je="-AZt1au",Xe="IvSIfCI",et="eahCJov",tt="XIyViFs",at="_4y-O0w3",ot="kO8iNgD",it="a1d4E10",nt="Tdguxxf",lt="-mOxsaU",rt="yPeDBNZ";const st={helloSites:{member:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>b.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>b.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},dt=({themeName:e,rank:t="member",numberOfPosts:o=0})=>{const{t:i}=j(),l=n((()=>{var a,o;return(null===(o=null===(a=st[e])||void 0===a?void 0:a[t])||void 0===o?void 0:o.call(a))||""}),[t,e]);return a.createElement("div",{className:at,"data-user-rank":t},a.createElement("div",{className:ot},a.createElement("div",{className:it},a.createElement("div",{className:nt,style:{backgroundImage:`url("${l}")`}}),a.createElement("h3",{className:lt},i(`userProfile.userRank.${t}`)),o>0&&a.createElement("p",{className:rt},o," ",i("userProfile.nav.header.count.posts")))))},ct="profile/posts?website_url={websiteUrl}",mt=99,pt=300,gt=400,ht=210,ut=e=>{var t,a,o,i;return e?{termId:e.term_id||null,sponsor:e.sponsor?(i=e.sponsor,i?{title:i.title,logo:i.logo,link:i.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=>ut(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?(o=e.reviewed_by,{postTitle:o.post_title,permalink:o.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}:{}},vt=e=>{var t,a;if(!e)return{};const o=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),i=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),n=e.link?e.link.startsWith("http")||o?e.link:i?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:n,subtitle:e.subtitle,title:e.title}},yt=e=>{var t,a,o,i,n;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(o=e.object_id)||void 0===o?void 0:o.name)||"",name:(null===(i=e.object_id)||void 0===i?void 0:i.name)||"",slug:(null===(n=e.object_id)||void 0===n?void 0:n.slug)||""}:{}},bt=e=>{var t,a,o,i;return e&&(null==e?void 0:e.object_id)?{id:e.id,name:(null===(t=e.object_id)||void 0===t?void 0:t.name)||"",logo:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.logo)||"",description:(null===(o=e.object_id)||void 0===o?void 0:o.description)||"",slug:(null===(i=e.object_id)||void 0===i?void 0:i.slug)||""}:{}},ft=({type:e,specialtySlug:t,locale:a})=>{var o,i;return`${null===(o=ae[a])||void 0===o?void 0:o.ALL}/${(null===(i=ae[a])||void 0===i?void 0:i[e])||"doctor"}/${null!=t?t:""}`},xt=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}:{},wt=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},Et=({SSO_URL:e,UP_BASEPATH:t="user",themeName:l="helloSites",cardUrls:r=Ae,enableCare:s,enableTogether:d,enableEcom:c,enableMySaved:m,userInfo:p,togetherApiDomain:g,userPostsNumber:h,onClickNavigationCard:u,onClickMyProfileButton:v,onClickMenuItem:y,onClickLogout:x,isUserProfileNavigatorMenuHidden:w=!1,isMyHealthEnabled:E=!1,locale:C})=>{const{t:k}=j(),[$,P]=o(h||0),_="marryBaby"===l;i((()=>{if(p&&void 0===h){const e=Q("hhg_user_token");e&&fetch(N(((e,t,a,o)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+oe(ct,Object.assign(Object.assign({},o),{websiteUrl:t?"https://marrybaby.vn":`https://${f[e]}`})))(C,_,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,o;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&P((null===(o=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===o?void 0:o.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[C,null!==p,h,g,_]);const M=n((()=>{let e;return e=_?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?d:"myHealth"===e?E:"eCom"===e?c:"mySaved"!==e||m))}),[_,E]),A=n((()=>"marryBaby"===l?null:a.createElement(X,{color:"tertiary",icon:a.createElement("img",{src:b.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:x,className:tt},k("userProfile.nav.menu.logout"))),[l]),T=a=>{a.startsWith("http")||a.startsWith("/")?window.location.href=B(a):e&&(window.location.href=B(`${e}${t}/${a}`))},L=e=>{const t=r[e];u?u(t):T(t)};return p?a.createElement("div",{className:Je,"data-theme":l},a.createElement(ze,{userInfo:p,themeName:l,onClickMyProfileButton:()=>{v?v():T("profile")}}),a.createElement(dt,{themeName:l,rank:"member",numberOfPosts:$}),a.createElement("div",{className:Xe},M.map((e=>a.createElement(Fe,{className:et,key:e,themeName:l,type:e,onClick:L})))),!w&&a.createElement(a.Fragment,null,a.createElement(Ke,{themeName:l,locale:C,onClickItem:e=>{"logout"===e.link&&x?x():e.link&&!e.subMenu&&(y?y(e.link):T(e.link))}}),A)):null},Ct=({SSO_URL:e,UP_BASEPATH:t,isOpen:o,targetAvatar:i,userInfo:n,enableCare:l,enableTogether:r,enableEcom:s,enableMySaved:d,closePopup:c,siteType:m="helloSites",dispatchLogout:p,userProfileRouterPush:g,isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:u=!1,togetherApiDomain:v,locale:y})=>{const b=a=>{a.startsWith("http")?window.location.href=B(a):a.startsWith("/")?window.location.href=B(`${window.location.origin}${a}`):g?g(`/${a}`):window.location.href=B(`${e}${t}/${a}`)},f=e=>{b(e),c()};return a.createElement(Me,{isOpen:o,type:"profile",enableAnimation:!0,targetAvatar:i,onClose:c},a.createElement(Et,{SSO_URL:e,UP_BASEPATH:t,themeName:m,userInfo:n,enableCare:l,enableTogether:r,enableEcom:s,enableMySaved:d,onClickLogout:()=>{p&&(p(),c())},onClickMenuItem:f,onClickNavigationCard:f,onClickMyProfileButton:()=>{b("profile"),c()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:u,togetherApiDomain:v,locale:y}))},kt=u.div`
|
|
322
322
|
background-color: white;
|
|
323
323
|
text-align: center;
|
|
324
324
|
.cancle-img {
|
|
@@ -365,7 +365,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
365
365
|
line-height: 24px;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
`,$t=u.div`
|
|
369
369
|
display: flex;
|
|
370
370
|
|
|
371
371
|
${F.mbDown} {
|
|
@@ -382,7 +382,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
${e=>"marryBaby"===e.siteType?"\n .cancel-button {\n background-color: #E55C8A;\n }\n .cancel-button:hover {\n background-color: #E55C8A !important;\n }\n .logout-button {\n border-color: #E55C8A;\n color: #E55C8A;\n }\n ":""}
|
|
385
|
-
`,
|
|
385
|
+
`,Pt=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:o,siteType:n="helloSites"})=>{const{t:l}=j();return i((()=>{document.body.classList.toggle("noscroll",e)}),[e]),a.createElement(J,null,a.createElement(H,{type:"confirm",isOpen:e,closeIcon:a.createElement("img",{src:b.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},a.createElement(kt,null,"helloSites"===n&&a.createElement("img",{src:b.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),a.createElement("h2",null,l("helloSites"===n?"logout.popup.ask1":"logout.popup.ask.mb")),a.createElement("p",null,l("logout.popup.ask2")),a.createElement($t,{siteType:n},a.createElement(X,{className:"logout-button",color:"tertiary",size:"lg",onClick:o},l("logout.popup.button.logout")),a.createElement(X,{className:"cancel-button",color:"primary",size:"lg",onClick:t},l("logout.popup.button.cancel"))))))},Nt=({userInfo:t,siteType:n,onLoginClick:l,SSO_URL:r,currentUrl:s,isMinifyLogin:d,enableCare:c,enableTogether:m,enableEcom:p,isUserProfileNavigatorMenuHidden:u,UP_BASEPATH:f,isMyHealthEnabled:x,togetherApiDomain:w,onLogout:E,style:C,userProfileRouterPush:k,isLoading:$,locale:P,enableMySaved:B})=>{const{t:_}=j(),[M,A]=o(!1),T=(null==t?void 0:t.name)||(null==t?void 0:t.username),[L,H]=o(!1);i((()=>{H(!0)}),[]);const{containerRef:S,onContainerFocus:U,onContainerBlur:z,onButtonMouseDown:D,onClose:R}=Ce();return $?a.createElement(g,{size:"sm",color:"transparent",loading:$}):(null==t?void 0:t.id)?a.createElement(a.Fragment,null,a.createElement(Be,{ref:S,style:C,tabIndex:0,onBlur:z,onFocus:U},a.createElement("div",{onMouseDown:D},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),a.createElement(h,{size:40,className:"user-avatar",src:null==t?void 0:t.avatar,color:"marryBaby"===n?G.mbColors.pink:G.colors.secondaryBase,placeholderText:T&&T.length?T[0].toUpperCase():"A"})),a.createElement(Ct,{UP_BASEPATH:f,SSO_URL:r,dispatchLogout:()=>{R(),A(!0)},isOpen:!1,isMyHealthEnabled:x,enableCare:c,enableTogether:m,enableEcom:p,enableMySaved:B,closePopup:R,userInfo:t,siteType:n,isUserProfileNavigatorMenuHidden:u,togetherApiDomain:w,userProfileRouterPush:k,locale:P})),a.createElement(Pt,{openLogoutPopup:M,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),A(!1)},siteType:n,onLogoutHandler:()=>e(void 0,void 0,void 0,(function*(){A(!1),document.body.classList.toggle("noscroll",!1),yield E()}))})):a.createElement(_e,{style:Object.assign({textDecoration:"none"},C),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:L?void 0:N(`${r}?returnUrl=${s}`),"data-site-type":n},d?a.createElement(Ne,{onClick:l},a.createElement("img",{src:b.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):a.createElement(a.Fragment,null,"helloSites"===n&&(P===V.Indonesia||P===V.PhilippinesTagalog||P===V.PhilippinesEnglish?a.createElement("img",{className:"mobile-only",src:b.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:l}):a.createElement(g,{className:"mobile-only",size:"sm",onClick:l,leftIcon:a.createElement(y,{useCurrentColor:!0,isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"}},_("navigation.loginJoin"))),"marryBaby"===n&&a.createElement("div",{className:"mobile-only",onClick:l,style:{paddingLeft:16}},a.createElement(v,{size:"p3",color:G.mbColors.pink},_("navigation.loginJoin"))),a.createElement(g,{className:"login-btn",size:"md",onClick:l,leftIcon:a.createElement(y,{useCurrentColor:!0,isSolid:!0,size:22})},_("navigation.loginJoin"))))};var Bt="spdlGfq",_t="vgS16jX";const Mt=({onCareHeaderClick:e,currentUrl:t,careUrlFe:o,btnName:i})=>e?a.createElement(X,{className:Bt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},i):a.createElement("a",{href:o,className:`${_t} care-button no-replace-click`},a.createElement(X,{className:Bt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},i));var At="y5VJdvw",Tt="oVhOSCy",Lt="pX8OXTM";const Ht=a.createContext({}),St=e=>{var{children:o}=e,l=t(e,["children"]);const[r,s]=a.useState((()=>l.currentUrl||`https://${"marryBaby"===l.siteType?Z[l.locale||"en-PH"]:f[l.locale||"en-PH"]}${"together"===l.projectType?"/community":"ecom"===l.projectType?"/ecom":"care"===l.projectType?"/care":""}/`));i((()=>{const e=()=>{s(window.location.href)};return window.addEventListener("popstate",e),e(),()=>{window.removeEventListener("popstate",e)}}),[]);const d=(({locale:e,projectType:t,isMobile:a,siteType:o,enableBookingBtn:i})=>n((()=>{const n=!(!a&&"profile"===t),l="discover"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===o,r="marryBaby"!==o&&"marryBaby"!==t&&x.includes(e),s=i&&"marryBaby"!==t&&"discover"===t&&"marryBaby"!==o&&w.includes(e),d="marryBaby"===t||E.includes(e),c="marryBaby"!==o&&C.includes(e),m="marryBaby"!==o&&C.includes(e);let p=_(e,"marryBaby"===o);"undefined"!=typeof window&&(p.includes("//id.")&&(p=p.replace("id.","")),p.includes("//staging-id.")&&(p=p.replace("staging-id.","discover.")));return{enableProfileNavigatorMenu:n,enableSearchBar:l,enableNavCare:r,enableNavCareBooking:s,enableNavTogether:d,enableNavEcom:c,enableProfileEcom:m,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:{HOME_PAGE_URL:p,CARE_URL_FE:`${p}/care`,TOGETHER_URL_FE:`${p}/community`,SSO_URL:M(e,"marryBaby"===o),TOGETHER_API:A(),DISCOVER_API:T(e)}}}),[e,t,a]))({locale:l.locale,projectType:l.projectType,isMobile:l.isMobile,siteType:l.siteType,enableBookingBtn:l.enableBookingBtn});return a.createElement(Ht.Provider,{value:Object.assign(Object.assign({},l),{configs:Object.assign(Object.assign({},d),l.configs),currentUrl:l.currentUrl||r})},o)};function Ut({className:e}){return a.createElement("div",null,a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function zt({siteType:e,type:t,enableSearch:o,className:i}){return"helloSites"===e?a.createElement("div",null,a.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:o?b.getAssetPath("hamburgerMenuNewWithSearch.svg"):b.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:i,loading:"lazy"})):a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i},a.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 Dt=u.div`
|
|
386
386
|
position: fixed;
|
|
387
387
|
z-index: 201;
|
|
388
388
|
top: calc(100% + 1px); // border 1px
|
|
@@ -456,7 +456,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
456
456
|
margin-right: 8px;
|
|
457
457
|
}
|
|
458
458
|
`,u.div`
|
|
459
|
-
z-index: ${
|
|
459
|
+
z-index: ${ht};
|
|
460
460
|
align-items: center;
|
|
461
461
|
|
|
462
462
|
border: 1px solid ${e=>e.theme.colors.neutral50};
|
|
@@ -646,7 +646,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
646
646
|
|
|
647
647
|
background-color: ${e=>e.theme.mbColors.pink};
|
|
648
648
|
border-radius: 2px;
|
|
649
|
-
`;const
|
|
649
|
+
`;const jt=u.div`
|
|
650
650
|
padding: 16px;
|
|
651
651
|
padding-bottom: 12px;
|
|
652
652
|
.fake-search-input {
|
|
@@ -664,7 +664,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
664
664
|
border: none;
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
|
-
`,
|
|
667
|
+
`,Rt=u.div`
|
|
668
668
|
display: block;
|
|
669
669
|
overflow-y: auto;
|
|
670
670
|
flex: 1;
|
|
@@ -673,7 +673,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
673
673
|
width: 0;
|
|
674
674
|
display: none;
|
|
675
675
|
}
|
|
676
|
-
`,
|
|
676
|
+
`,Ot=r((()=>a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9683 19.7465 14.8938 19.0204 16.4118 17.8061L20.3169 21.7112C20.702 22.0963 21.3262 22.0963 21.7112 21.7112C22.0963 21.3262 22.0963 20.702 21.7112 20.3169L17.8061 16.4118C19.0204 14.8938 19.7465 12.9683 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#8C8C8C"})))),It=()=>{const{locale:e,configs:{statics:t},siteType:o}=s(Ht),i=R(),{t:n}=j();return a.createElement(q,{className:"fake-search-input",name:"search-input-menu-service"+i,size:"md",placeholder:"marryBaby"===o?n("navigation.search.input.placeholder"):n("home.search",{site:k[e||"en-PH"]?k[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:a.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},a.createElement(Ot,null))})},Ft=u.div`
|
|
677
677
|
padding-right: 1rem;
|
|
678
678
|
margin-top: 10px;
|
|
679
679
|
background: #ffffff;
|
|
@@ -681,7 +681,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
681
681
|
${F.mbUp} {
|
|
682
682
|
border-right: 1px solid #e4e8ec;
|
|
683
683
|
}
|
|
684
|
-
`,
|
|
684
|
+
`,Vt=u.a`
|
|
685
685
|
padding: 10px 0;
|
|
686
686
|
position: relative;
|
|
687
687
|
|
|
@@ -729,19 +729,19 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
`,
|
|
732
|
+
`,Gt=u.div`
|
|
733
733
|
margin: 15px 0;
|
|
734
734
|
${F.mbDown} {
|
|
735
735
|
display: none;
|
|
736
736
|
}
|
|
737
|
-
`,
|
|
737
|
+
`,Wt=u.div`
|
|
738
738
|
display: flex;
|
|
739
739
|
position: absolute;
|
|
740
740
|
right: 0;
|
|
741
741
|
${F.mbUp} {
|
|
742
742
|
display: none;
|
|
743
743
|
}
|
|
744
|
-
`,
|
|
744
|
+
`,Yt=u.div`
|
|
745
745
|
display: flex;
|
|
746
746
|
align-items: center;
|
|
747
747
|
color: ${e=>e.theme.colors.primaryBase};
|
|
@@ -756,11 +756,11 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
756
756
|
&[data-theme='marryBaby'] {
|
|
757
757
|
color: ${e=>e.theme.mbColors.pink};
|
|
758
758
|
}
|
|
759
|
-
`,
|
|
759
|
+
`,Zt=u.div`
|
|
760
760
|
display: flex;
|
|
761
761
|
align-items: center;
|
|
762
762
|
margin-left: 10px;
|
|
763
|
-
`,
|
|
763
|
+
`,qt=u.a`
|
|
764
764
|
border: 1px solid ${e=>e.theme.colors.primaryBase};
|
|
765
765
|
&[data-theme='marryBaby'] {
|
|
766
766
|
border: 1px solid ${e=>e.theme.mbColors.pink};
|
|
@@ -779,7 +779,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
779
779
|
${F.mbDown} {
|
|
780
780
|
display: none;
|
|
781
781
|
}
|
|
782
|
-
`;var
|
|
782
|
+
`;var Kt="wnUb-dV",Qt="cjbOxWe",Jt="gB4rp89";const Xt=({item:e,menu:t})=>{const{containerRef:o,onContainerFocus:i,onContainerBlur:n,onButtonMouseDown:l,onClose:r}=Ce({allowBgScroll:!0}),s=ne();return!e.popupType&&e.link?a.createElement(ea,{isNew:e.isNew},a.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${s?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:Qt},"care"===e.id&&a.createElement("div",{className:Jt},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.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))):a.createElement(ea,{isNew:e.isNew},a.createElement("div",{ref:o,className:`hhgcomp-navigation-itemnav-headeritem ${s?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:n,onFocus:i,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:l,className:Qt},"care"===e.id&&a.createElement("a",{className:Jt,href:N(e.link+"/")},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.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&&a.createElement("div",{className:Kt},a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),a.isValidElement(t)?a.cloneElement(t,{onClose:r}):null))},ea=({isNew:e,children:t})=>{const{t:o}=j();return e?a.createElement(ie,{color:"green",label:o("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):a.createElement(a.Fragment,null,t)},ta=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:o,onClosePopup:i,menuItems:n,headingTitle:l})=>{const{siteType:r}=s(Ht);return a.createElement(Ft,null,a.createElement(Gt,null,a.createElement(K,{tag:"marryBaby"===r?"h5":"h6",as:"p",fontWeight:"semibold"},l)),null==n?void 0:n.slice(0,6).map(((e,t)=>{const n=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${o}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return a.createElement(Vt,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":n,"data-is-heading-category":!1,href:n},!me(n)&&{target:"_blank"},{"data-theme":r,key:t,onClick:i}),a.createElement("div",{className:"icon"},a.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),a.createElement(ea,{isNew:e.isNew},a.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),a.createElement(Wt,null,a.createElement("img",{src:b.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),t&&a.createElement(qt,{"data-theme":r,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},a.createElement(Yt,{onClick:i,"data-theme":r,"data-is-heading-category":!1},t,a.createElement(Zt,null,a.createElement("img",{className:"svg",src:"marryBaby"===r?b.getAssetPath("chevronRightPink.svg"):b.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))};u.div`
|
|
783
783
|
& > a:not(:last-child) > div {
|
|
784
784
|
border-bottom: 1px solid
|
|
785
785
|
${e=>e.theme.colors.neutral100};
|
|
@@ -792,7 +792,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
792
792
|
&[data-is-displayed='false'] {
|
|
793
793
|
display: none;
|
|
794
794
|
}
|
|
795
|
-
`;const
|
|
795
|
+
`;const aa=u.div`
|
|
796
796
|
display: grid;
|
|
797
797
|
|
|
798
798
|
grid-template-columns: repeat(3, 1fr);
|
|
@@ -801,7 +801,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
801
801
|
${F.tdDown} {
|
|
802
802
|
grid-template-columns: repeat(1, 1fr);
|
|
803
803
|
}
|
|
804
|
-
`,
|
|
804
|
+
`,oa=u.div`
|
|
805
805
|
height: 152px; // 120 + 16 * 2
|
|
806
806
|
position: absolute;
|
|
807
807
|
top: 0;
|
|
@@ -832,12 +832,12 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
832
832
|
${F.mbDown} {
|
|
833
833
|
width: 80px;
|
|
834
834
|
}
|
|
835
|
-
`,
|
|
835
|
+
`,ia=u.div`
|
|
836
836
|
background-color: #ffffff;
|
|
837
837
|
border-radius: 4px;
|
|
838
838
|
width: 100%;
|
|
839
839
|
height: 100%;
|
|
840
|
-
`,
|
|
840
|
+
`,na=u.div`
|
|
841
841
|
display: flex;
|
|
842
842
|
margin-top: 1rem;
|
|
843
843
|
align-items: center;
|
|
@@ -848,7 +848,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
848
848
|
${F.tdDown} {
|
|
849
849
|
display: none;
|
|
850
850
|
}
|
|
851
|
-
`,
|
|
851
|
+
`,la=u.p`
|
|
852
852
|
font-size: 16px;
|
|
853
853
|
font-weight: 600;
|
|
854
854
|
line-height: 1.6;
|
|
@@ -856,7 +856,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
856
856
|
${F.tdDown} {
|
|
857
857
|
padding: 0;
|
|
858
858
|
}
|
|
859
|
-
`,
|
|
859
|
+
`,ra=u.p`
|
|
860
860
|
font-size: 14px;
|
|
861
861
|
line-height: 1.6;
|
|
862
862
|
font-weight: 400;
|
|
@@ -872,7 +872,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
872
872
|
height: unset;
|
|
873
873
|
padding: 0;
|
|
874
874
|
}
|
|
875
|
-
`,
|
|
875
|
+
`,sa="hhgcomp-navigation-menucareitem-contentwrapper",da=Y(u.div`
|
|
876
876
|
display: flex;
|
|
877
877
|
flex-direction: column;
|
|
878
878
|
gap: 8px;
|
|
@@ -881,7 +881,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
881
881
|
${F.tdDown} {
|
|
882
882
|
gap: 4px;
|
|
883
883
|
}
|
|
884
|
-
`,
|
|
884
|
+
`,sa),ca=u.a`
|
|
885
885
|
text-decoration: none;
|
|
886
886
|
border-radius: 4px;
|
|
887
887
|
background: ${G.colors.white};
|
|
@@ -914,7 +914,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
914
914
|
max-height: 110px;
|
|
915
915
|
display: flex;
|
|
916
916
|
flex-direction: row-reverse;
|
|
917
|
-
> .${
|
|
917
|
+
> .${sa} {
|
|
918
918
|
flex: 1;
|
|
919
919
|
}
|
|
920
920
|
img {
|
|
@@ -943,7 +943,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
943
943
|
position: absolute;
|
|
944
944
|
display: inline-block;
|
|
945
945
|
}
|
|
946
|
-
`,
|
|
946
|
+
`,ma=({item:e,index:t=0})=>{var o;const{t:i}=j(),{locale:n,configs:{statics:l}}=s(Ht);if(!e)return null;const r=`${l.CARE_URL_FE}/${null===(o=ae[n])||void 0===o?void 0:o.HOSPITAL}/${e.slug}-${e.id}`;return a.createElement(ca,{key:e.id,href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":r},a.createElement("img",{src:b.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),a.createElement(oa,null,a.createElement(ia,null,a.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),a.createElement(da,null,a.createElement(la,null,e.name),a.createElement(ra,null,e.description),a.createElement(na,null,i("home.seeMore"),a.createElement("img",{src:b.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},pa=u.div`
|
|
947
947
|
padding: 16px;
|
|
948
948
|
border-radius: 8px;
|
|
949
949
|
position: relative;
|
|
@@ -975,26 +975,26 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
975
975
|
grid-gap: 10px;
|
|
976
976
|
grid-template-columns: 1fr 3fr;
|
|
977
977
|
}
|
|
978
|
-
`,
|
|
978
|
+
`,ga=u.div`
|
|
979
979
|
font-weight: 400;
|
|
980
980
|
font-size: 14px;
|
|
981
981
|
line-height: 24px;
|
|
982
982
|
color: ${e=>e.theme.colors.gray600};
|
|
983
983
|
margin-bottom: 15px;
|
|
984
|
-
`,
|
|
984
|
+
`,ha=u.div`
|
|
985
985
|
font-weight: 600;
|
|
986
986
|
font-size: 16px;
|
|
987
987
|
line-height: 26px;
|
|
988
988
|
color: #000000;
|
|
989
989
|
margin-bottom: 4px;
|
|
990
|
-
`,
|
|
990
|
+
`,ua=u.div`
|
|
991
991
|
background: #fff;
|
|
992
992
|
padding: 5px;
|
|
993
993
|
display: flex;
|
|
994
994
|
align-items: center;
|
|
995
995
|
justify-content: center;
|
|
996
996
|
border-radius: 50px;
|
|
997
|
-
`,
|
|
997
|
+
`,va=u.div`
|
|
998
998
|
display: flex;
|
|
999
999
|
justify-content: center;
|
|
1000
1000
|
align-items: center;
|
|
@@ -1003,7 +1003,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1003
1003
|
justify-content: end;
|
|
1004
1004
|
min-height: 100px;
|
|
1005
1005
|
}
|
|
1006
|
-
`,
|
|
1006
|
+
`,ya=({title:e,link:t,description:o,cta:i,icon:n})=>{const{siteType:l}=s(Ht);return a.createElement(pa,{"data-theme":l},a.createElement(va,null,a.createElement("img",{src:"marryBaby"===l?b.getAssetPath("navMBSpotlightBgNoData.svg"):b.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(ua,null,n&&a.createElement("img",{src:n,width:64,height:64,loading:"lazy"}))),a.createElement("div",null,e&&a.createElement(ha,null,e),o&&a.createElement(ga,null,o),i&&a.createElement("div",null,a.createElement("a",{href:t},a.createElement(X,{theme:l,className:"survey-contact-submit",size:"md"},i)))))},ba=u.div`
|
|
1007
1007
|
margin-top: 10px;
|
|
1008
1008
|
background: #ffffff;
|
|
1009
1009
|
padding: 5px 15px;
|
|
@@ -1019,10 +1019,10 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1019
1019
|
content: '';
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
`,
|
|
1022
|
+
`,fa=u.div`
|
|
1023
1023
|
margin: 15px 0;
|
|
1024
1024
|
display: flex;
|
|
1025
|
-
`,
|
|
1025
|
+
`,xa=u.a`
|
|
1026
1026
|
padding-left: 10px;
|
|
1027
1027
|
display: flex;
|
|
1028
1028
|
align-items: center;
|
|
@@ -1039,7 +1039,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1039
1039
|
${F.mbDown} {
|
|
1040
1040
|
margin-left: auto;
|
|
1041
1041
|
}
|
|
1042
|
-
`,
|
|
1042
|
+
`,wa=({title:e,viewMore:t,children:o,link:i,dataEventAction:n=""})=>{const{siteType:l}=s(Ht);return a.createElement(ba,null,a.createElement(fa,null,a.createElement(K,{tag:"marryBaby"===l?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&a.createElement(xa,{"data-event-category":"Hamburger Navigation","data-event-action":n,"data-event-label":i,href:i,"data-theme":l},t,a.createElement("img",{src:"marryBaby"===l?b.getAssetPath("chevronRightPink.svg"):b.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),o)},Ea=({spotlights:e=[],hrefViewMore:t})=>{const{t:o}=j(),{siteType:i}=s(Ht);return a.createElement(wa,{title:o("home.navigator.menu.spotlightHospitals")},0!==e.length?a.createElement(a.Fragment,null,a.createElement(aa,null,null==e?void 0:e.slice(0,3).map(((e,t)=>a.createElement(ma,{key:t,index:t,item:e})))),a.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},a.createElement("a",{href:t},a.createElement(X,{theme:i,className:"survey-contact-submit",size:"md"},o("home.navigator.menu.care.homeButton"))))):a.createElement(ya,{title:o("home.navigator.menu.care.noDatas.title"),description:o("home.navigator.menu.care.noDatas.description"),link:t,cta:o("home.navigator.menu.care.homeButton"),icon:b.getAssetPath("community.svg")}))};u.div`
|
|
1043
1043
|
&[data-category-list-type='sub'] {
|
|
1044
1044
|
padding-bottom: 72px;
|
|
1045
1045
|
}
|
|
@@ -1052,7 +1052,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1052
1052
|
width: 100%;
|
|
1053
1053
|
margin-bottom: 8px;
|
|
1054
1054
|
}
|
|
1055
|
-
`;const
|
|
1055
|
+
`;const Ca=u.div`
|
|
1056
1056
|
display: grid;
|
|
1057
1057
|
|
|
1058
1058
|
grid-template-columns: repeat(4, 1fr);
|
|
@@ -1061,7 +1061,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1061
1061
|
gap: 12px;
|
|
1062
1062
|
grid-template-columns: 1fr;
|
|
1063
1063
|
}
|
|
1064
|
-
|
|
1064
|
+
`,ka=u.a`
|
|
1065
1065
|
width: 100%;
|
|
1066
1066
|
display: flex;
|
|
1067
1067
|
align-items: center;
|
|
@@ -1069,7 +1069,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1069
1069
|
* {
|
|
1070
1070
|
pointer-events: none;
|
|
1071
1071
|
}
|
|
1072
|
-
|
|
1072
|
+
`,$a=u.div`
|
|
1073
1073
|
border-radius: 5px;
|
|
1074
1074
|
display: block;
|
|
1075
1075
|
overflow: hidden;
|
|
@@ -1090,7 +1090,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1090
1090
|
width: 72px;
|
|
1091
1091
|
padding-top: 100px;
|
|
1092
1092
|
}
|
|
1093
|
-
`,
|
|
1093
|
+
`,Pa=u.p`
|
|
1094
1094
|
font-size: 16px;
|
|
1095
1095
|
font-weight: 400;
|
|
1096
1096
|
padding: 4px 15px;
|
|
@@ -1100,7 +1100,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1100
1100
|
${F.tdUp} {
|
|
1101
1101
|
display: none;
|
|
1102
1102
|
}
|
|
1103
|
-
`,
|
|
1103
|
+
`,Na=({item:e,index:t=0})=>e?a.createElement(ka,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},a.createElement($a,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),a.createElement(Pa,null,e.title)):null,Ba=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:o}=j(),{configs:{statics:i}}=s(Ht);return a.createElement(wa,{title:o("home.navigator.menu.spotlights"),viewMore:o("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?a.createElement(Ca,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(Na,{key:t,index:t,item:{id:e.id,link:i.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):a.createElement(ya,{title:o("home.navigator.menu.category.noDatas.title"),description:o("home.navigator.menu.category.noDatas.description"),link:t,cta:o("home.navigator.menu.category.noDatas.cta"),icon:b.getAssetPath("Spotlight.svg")}))};u.div`
|
|
1104
1104
|
& > :not(:last-child) {
|
|
1105
1105
|
border-bottom: 1px solid
|
|
1106
1106
|
${e=>e.theme.colors.neutral100};
|
|
@@ -1123,7 +1123,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1123
1123
|
width: 100%;
|
|
1124
1124
|
margin-bottom: 8px;
|
|
1125
1125
|
}
|
|
1126
|
-
`;const
|
|
1126
|
+
`;const _a=u.div`
|
|
1127
1127
|
display: grid;
|
|
1128
1128
|
grid-template-columns: repeat(2, 1fr);
|
|
1129
1129
|
grid-gap: 48px;
|
|
@@ -1134,15 +1134,15 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1134
1134
|
${F.mbDown} {
|
|
1135
1135
|
grid-gap: 24px;
|
|
1136
1136
|
}
|
|
1137
|
-
`,
|
|
1137
|
+
`,Ma=u.div`
|
|
1138
1138
|
padding: 5px;
|
|
1139
1139
|
flex: 1;
|
|
1140
|
-
`,
|
|
1140
|
+
`,Aa=u.img`
|
|
1141
1141
|
width: 88px;
|
|
1142
1142
|
height: 88px;
|
|
1143
1143
|
border-radius: 4px;
|
|
1144
1144
|
object-fit: cover;
|
|
1145
|
-
`,
|
|
1145
|
+
`,Ta=u.div`
|
|
1146
1146
|
font-size: 12px;
|
|
1147
1147
|
font-weight: 600;
|
|
1148
1148
|
color: ${e=>e.theme.colors.gray800};
|
|
@@ -1151,7 +1151,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1151
1151
|
font-weight: 400;
|
|
1152
1152
|
letter-spacing: -0.2px;
|
|
1153
1153
|
}
|
|
1154
|
-
`,
|
|
1154
|
+
`,La=u.div`
|
|
1155
1155
|
text-decoration: none;
|
|
1156
1156
|
font-size: 12px;
|
|
1157
1157
|
font-weight: 400;
|
|
@@ -1160,15 +1160,15 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1160
1160
|
font-weight: 400;
|
|
1161
1161
|
letter-spacing: -0.2px;
|
|
1162
1162
|
}
|
|
1163
|
-
`,
|
|
1163
|
+
`,Ha=u.div`
|
|
1164
1164
|
font-size: 12px;
|
|
1165
1165
|
font-weight: 400;
|
|
1166
1166
|
color: ${e=>e.theme.colors.gray600};
|
|
1167
|
-
`,
|
|
1167
|
+
`,Sa=u.div`
|
|
1168
1168
|
font-size: 12px;
|
|
1169
1169
|
font-weight: 400;
|
|
1170
1170
|
color: ${e=>e.theme.colors.gray600};
|
|
1171
|
-
`,
|
|
1171
|
+
`,Ua=u.a`
|
|
1172
1172
|
display: flex;
|
|
1173
1173
|
gap: 10px;
|
|
1174
1174
|
text-decoration: none;
|
|
@@ -1201,12 +1201,12 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
`,
|
|
1204
|
+
`,za=u.div`
|
|
1205
1205
|
display: flex;
|
|
1206
1206
|
gap: 10px;
|
|
1207
1207
|
vertical-align: middle;
|
|
1208
1208
|
align-items: center;
|
|
1209
|
-
`,
|
|
1209
|
+
`,Da=u.div`
|
|
1210
1210
|
margin-top: 8px;
|
|
1211
1211
|
font-size: 16px;
|
|
1212
1212
|
font-weight: 600;
|
|
@@ -1218,20 +1218,20 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1218
1218
|
line-height: 24px;
|
|
1219
1219
|
letter-spacing: -0.2px;
|
|
1220
1220
|
}
|
|
1221
|
-
`,
|
|
1221
|
+
`,ja=u.div`
|
|
1222
1222
|
display: flex;
|
|
1223
1223
|
flex-wrap: wrap;
|
|
1224
1224
|
align-items: center;
|
|
1225
1225
|
column-gap: 5px;
|
|
1226
|
-
`,
|
|
1226
|
+
`,Ra=u.div`
|
|
1227
1227
|
display: flex;
|
|
1228
1228
|
gap: 4px;
|
|
1229
1229
|
flex-direction: column;
|
|
1230
|
-
`;
|
|
1230
|
+
`;ee.extend(le);const Oa=({post:e,index:t=0})=>{var o,i,n,l,r,d,c;const{siteType:m,configs:{statics:p}}=s(Ht);if(!e)return null;const g=[p.TOGETHER_URL_FE,null===(o=e.community)||void 0===o?void 0:o.slug].join("/"),h=[g,e.slug].join("/"),u=e.createdAt,v=u?isNaN(new Date(u).getTime())?null:new Date(u):null,y=v?ee(v).toNow(!0):u;return a.createElement(Ua,{href:h,"data-event-category":"Hamburger Navigation","data-event-action":`Together Click ${t+1}`,"data-event-label":h},a.createElement(Ma,null,a.createElement(za,null,a.createElement(S,{avatar:null===(i=e.author)||void 0===i?void 0:i.avatar,username:(null===(n=e.author)||void 0===n?void 0:n.name)||(null===(l=e.author)||void 0===l?void 0:l.username)}),a.createElement(Ra,null,a.createElement(Ta,{"data-theme":m},null===(r=e.author)||void 0===r?void 0:r.name),a.createElement(ja,null,a.createElement(La,{"data-event-category":"Hamburger Navigation","data-event-action":`Topic Click ${t+1}`,"data-event-label":g,onClick:e=>{e.preventDefault(),location.href=g},"data-theme":m},null===(d=e.community)||void 0===d?void 0:d.name),a.createElement(Sa,null,"•"),a.createElement(Ha,{"data-theme":m},y)))),a.createElement(Da,null,e.title)),!!(null===(c=e.photos)||void 0===c?void 0:c.length)&&a.createElement(Aa,{loading:"lazy",src:e.photos[0]}))},Ia=({spotlights:e=[]})=>{const{configs:{statics:t}}=s(Ht),{t:o}=j();return a.createElement(wa,{title:o("home.navigator.menu.trendingPosts"),viewMore:o("home.navigator.menu.trendingPosts.seeMore"),link:B(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?a.createElement(_a,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(Oa,{index:t,post:e,key:e.id})))):a.createElement(ya,{title:o("home.navigator.menu.together.noPosts.title"),description:o("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:o("home.navigator.menu.together.noPosts.cta"),icon:b.getAssetPath("community.svg")}))};u.div`
|
|
1231
1231
|
&[data-is-display='false'] {
|
|
1232
1232
|
display: none;
|
|
1233
1233
|
}
|
|
1234
|
-
`;const
|
|
1234
|
+
`;const Fa=u.div`
|
|
1235
1235
|
display: grid;
|
|
1236
1236
|
|
|
1237
1237
|
grid-template-columns: repeat(3, 1fr);
|
|
@@ -1240,7 +1240,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1240
1240
|
grid-template-columns: 1fr;
|
|
1241
1241
|
gap: 12px;
|
|
1242
1242
|
}
|
|
1243
|
-
`,
|
|
1243
|
+
`,Va=u.a`
|
|
1244
1244
|
text-decoration: none;
|
|
1245
1245
|
border-radius: 4px;
|
|
1246
1246
|
background: ${e=>e.theme.colors.primary50};
|
|
@@ -1271,7 +1271,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1271
1271
|
display: flex;
|
|
1272
1272
|
align-items: center;
|
|
1273
1273
|
}
|
|
1274
|
-
`,
|
|
1274
|
+
`,Ga=u.div`
|
|
1275
1275
|
width: 64px;
|
|
1276
1276
|
height: 64px;
|
|
1277
1277
|
background: white;
|
|
@@ -1294,19 +1294,19 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1294
1294
|
top: unset;
|
|
1295
1295
|
right: unset;
|
|
1296
1296
|
}
|
|
1297
|
-
`,
|
|
1297
|
+
`,Wa=u.div`
|
|
1298
1298
|
display: flex;
|
|
1299
1299
|
align-items: center;
|
|
1300
1300
|
color: ${e=>e.theme.colors.primaryBase};
|
|
1301
1301
|
font-weight: 400;
|
|
1302
1302
|
font-size: 14px;
|
|
1303
1303
|
text-decoration: none;
|
|
1304
|
-
`,
|
|
1304
|
+
`,Ya=u.p`
|
|
1305
1305
|
font-size: 16px;
|
|
1306
1306
|
font-weight: 600;
|
|
1307
1307
|
line-height: 1.4;
|
|
1308
1308
|
color: ${e=>e.theme.colors.gray800};
|
|
1309
|
-
`,
|
|
1309
|
+
`,Za=u.p`
|
|
1310
1310
|
font-size: 14px;
|
|
1311
1311
|
line-height: 1.4;
|
|
1312
1312
|
font-weight: 400;
|
|
@@ -1321,7 +1321,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1321
1321
|
${F.tdDown} {
|
|
1322
1322
|
display: none;
|
|
1323
1323
|
}
|
|
1324
|
-
`,
|
|
1324
|
+
`,qa=u.div`
|
|
1325
1325
|
display: flex;
|
|
1326
1326
|
flex-direction: column;
|
|
1327
1327
|
flex: 1;
|
|
@@ -1333,7 +1333,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1333
1333
|
gap: 4px;
|
|
1334
1334
|
flex: 1;
|
|
1335
1335
|
}
|
|
1336
|
-
`,
|
|
1336
|
+
`,Ka=({item:e,index:t=0})=>{const{t:o}=j(),{configs:{statics:i}}=s(Ht);if(!e)return null;const n=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0;return a.createElement(Va,{href:n,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":n},a.createElement("img",{src:b.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(qa,null,a.createElement(Ya,null,e.title),a.createElement(Za,null,e.subtitle),a.createElement(Wa,null,o("home.seeMore"),a.createElement("img",{src:b.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),a.createElement(Ga,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Qa=u.a`
|
|
1337
1337
|
text-decoration: none;
|
|
1338
1338
|
border-radius: 12px;
|
|
1339
1339
|
|
|
@@ -1413,7 +1413,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1413
1413
|
display: none;
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
|
-
`,
|
|
1416
|
+
`,Ja=u.div`
|
|
1417
1417
|
width: 48px;
|
|
1418
1418
|
height: 48px;
|
|
1419
1419
|
background: white;
|
|
@@ -1441,7 +1441,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1441
1441
|
left: 32px;
|
|
1442
1442
|
top: 28px;
|
|
1443
1443
|
}
|
|
1444
|
-
`,
|
|
1444
|
+
`,Xa=u.div`
|
|
1445
1445
|
display: flex;
|
|
1446
1446
|
align-items: center;
|
|
1447
1447
|
background: white;
|
|
@@ -1465,13 +1465,13 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1465
1465
|
color: ${e=>e.theme.mbColors.pink};
|
|
1466
1466
|
padding-left: 16px;
|
|
1467
1467
|
}
|
|
1468
|
-
`,
|
|
1468
|
+
`,eo=u.p`
|
|
1469
1469
|
font-weight: 600;
|
|
1470
1470
|
font-size: 14px;
|
|
1471
1471
|
line-height: 24px;
|
|
1472
1472
|
letter-spacing: -0.2px;
|
|
1473
1473
|
color: ${e=>e.theme.colors.gray800};
|
|
1474
|
-
`,
|
|
1474
|
+
`,to=u.p`
|
|
1475
1475
|
font-weight: 400;
|
|
1476
1476
|
font-size: 12px;
|
|
1477
1477
|
line-height: 18px;
|
|
@@ -1487,7 +1487,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1487
1487
|
${F.tdDown} {
|
|
1488
1488
|
display: none;
|
|
1489
1489
|
}
|
|
1490
|
-
`,
|
|
1490
|
+
`,ao=u.div`
|
|
1491
1491
|
display: flex;
|
|
1492
1492
|
flex: 1;
|
|
1493
1493
|
z-index: 1;
|
|
@@ -1503,7 +1503,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1503
1503
|
justify-content: flex-start;
|
|
1504
1504
|
gap: 4px;
|
|
1505
1505
|
}
|
|
1506
|
-
`,
|
|
1506
|
+
`,oo=u.div`
|
|
1507
1507
|
display: flex;
|
|
1508
1508
|
flex-direction: column;
|
|
1509
1509
|
flex: 1;
|
|
@@ -1516,7 +1516,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1516
1516
|
flex: 1;
|
|
1517
1517
|
padding-left: 16px;
|
|
1518
1518
|
}
|
|
1519
|
-
`,
|
|
1519
|
+
`,io=u.div`
|
|
1520
1520
|
display: flex;
|
|
1521
1521
|
flex-direction: row;
|
|
1522
1522
|
flex: 1;
|
|
@@ -1531,7 +1531,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1531
1531
|
justify-content: flex-start;
|
|
1532
1532
|
align-items: flex-start;
|
|
1533
1533
|
}
|
|
1534
|
-
`,
|
|
1534
|
+
`,no=({item:e,index:t=0,color:o})=>{const{t:i}=j(),{configs:{statics:n}}=s(Ht);if(!e)return null;const l=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0,r=()=>a.createElement(Ja,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),d=()=>a.createElement(io,null,a.createElement(oo,null,a.createElement(eo,null,e.title),a.createElement(to,null,e.subtitle)),a.createElement(Xa,null,a.createElement("div",{className:"mobile-only"},i("home.seeMore")),a.createElement("img",{src:b.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return a.createElement(Qa,{href:l,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":l,"data-color":o},a.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.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"})),a.createElement("img",{src:b.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),a.createElement(ao,null,a.createElement("div",{className:"mobile-only"},r()),a.createElement("div",{className:"desktop-only"},d())),a.createElement("div",{className:"mobile-only"},d()),a.createElement("div",{className:"desktop-only"},r()))},lo=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:o}=j(),i=["pink","orange","green"],{siteType:n}=s(Ht);return a.createElement(wa,{title:o("home.navigator.menu.spotlightTools")},0!==t.length&&a.createElement(Fa,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===n?a.createElement(no,{key:t,index:t,item:e,color:i[t]}):a.createElement(Ka,{key:t,index:t,item:e})))),0===t.length&&a.createElement(ya,{title:o("home.navigator.menu.healthTools.noDatas.title"),description:o("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:o("home.navigator.menu.healthTools.noDatas.cta"),icon:b.getAssetPath("community.svg")}))},ro=({closePopup:e,menuItems:t=[]})=>{var o,i;const{siteType:n,ssrMenuContent:{categories:l,healthTools:r,care:d,together:c},activeMenuService:m,configs:{statics:p,enableSearchBar:g},locale:h}=s(Ht),{t:u}=j();return a.createElement(Dt,{id:"categories-menu"},g?a.createElement(jt,{"data-theme":n,onClick:()=>{window.location.href=`${p.HOME_PAGE_URL}/search`}},a.createElement(It,null)):null,a.createElement(Rt,null,a.createElement(ta,{UrlFE:p.HOME_PAGE_URL,titleBtnViewMore:u("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:u("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===m&&a.createElement(Ba,{spotlightsList:(null==l?void 0:l.spotlights)||[],hrefViewMore:`${p.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}/spotlight/`}),"tools"===m&&a.createElement(lo,{spotlightHealthTools:null==r?void 0:r.spotlights,hrefViewMore:`${p.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}${(null===(o=$[h])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`}),"care"===m&&a.createElement(Ea,{spotlights:null==d?void 0:d.spotlights,hrefViewMore:`${p.CARE_URL_FE}/${null===(i=ae[h])||void 0===i?void 0:i.SPECIALTIES}`}),"together"===m&&a.createElement(Ia,{spotlights:null==c?void 0:c.spotlights})))},so=({type:e="home",menuItems:t})=>{const{siteType:o,configs:{enableSearchBar:i}}=s(Ht),{containerRef:n,onContainerFocus:l,onContainerBlur:r,onButtonMouseDown:d,onClose:c}=Ce();return a.createElement(Ee,{mediaQueryKey:"mbDown"},a.createElement("header",{className:At},a.createElement("div",{className:Tt,ref:n,role:"button",tabIndex:0,onBlur:r,onFocus:l},a.createElement("div",{className:Lt,onMouseDown:d,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},a.createElement(Ut,{className:"mobile-close-icon"}),a.createElement(zt,{siteType:o,type:e,enableSearch:i,className:"mobile-hamburger-icon"})),a.createElement(ro,{menuItems:t,closePopup:c}))))},co=u.div`
|
|
1535
1535
|
z-index: 201;
|
|
1536
1536
|
width: 100%;
|
|
1537
1537
|
align-items: center;
|
|
@@ -1584,17 +1584,17 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1584
1584
|
}
|
|
1585
1585
|
|
|
1586
1586
|
&[data-header-type='home'] {
|
|
1587
|
-
z-index: ${
|
|
1587
|
+
z-index: ${mt};
|
|
1588
1588
|
}
|
|
1589
1589
|
|
|
1590
1590
|
&[data-header-type='popup'] {
|
|
1591
1591
|
position: absolute;
|
|
1592
|
-
z-index: ${
|
|
1592
|
+
z-index: ${pt};
|
|
1593
1593
|
}
|
|
1594
1594
|
|
|
1595
1595
|
&[data-header-type='popup-sub-level'] {
|
|
1596
1596
|
position: absolute;
|
|
1597
|
-
z-index: ${
|
|
1597
|
+
z-index: ${gt};
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
1600
|
&[data-is-displayed='false'] {
|
|
@@ -1617,7 +1617,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1617
1617
|
right: 16px;
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
`,
|
|
1620
|
+
`,mo=u.div`
|
|
1621
1621
|
display: flex;
|
|
1622
1622
|
height: 100%;
|
|
1623
1623
|
align-items: center;
|
|
@@ -1644,7 +1644,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1644
1644
|
max-width: 1064px;
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
|
-
`,
|
|
1647
|
+
`,po=u.div`
|
|
1648
1648
|
display: flex;
|
|
1649
1649
|
align-items: center;
|
|
1650
1650
|
height: 100%;
|
|
@@ -1659,7 +1659,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1659
1659
|
&[data-site-type='marryBaby'] {
|
|
1660
1660
|
gap: 26px;
|
|
1661
1661
|
}
|
|
1662
|
-
`,
|
|
1662
|
+
`,go=u.div``,ho=u.div`
|
|
1663
1663
|
display: flex;
|
|
1664
1664
|
align-items: center;
|
|
1665
1665
|
height: 100%;
|
|
@@ -1692,7 +1692,7 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1692
1692
|
padding-bottom: 10px;
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
|
-
`;const
|
|
1695
|
+
`;const uo=u.div`
|
|
1696
1696
|
margin-left: 16px;
|
|
1697
1697
|
display: flex;
|
|
1698
1698
|
gap: 12px;
|
|
@@ -1706,14 +1706,14 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1706
1706
|
margin-left: 0;
|
|
1707
1707
|
gap: 10px;
|
|
1708
1708
|
}
|
|
1709
|
-
`,
|
|
1709
|
+
`,vo=u.div`
|
|
1710
1710
|
display: flex;
|
|
1711
1711
|
align-items: center;
|
|
1712
1712
|
height: 100%;
|
|
1713
1713
|
&[data-site-type='marryBaby'] {
|
|
1714
1714
|
gap: 26px;
|
|
1715
1715
|
}
|
|
1716
|
-
`;var
|
|
1716
|
+
`;var yo="q3nL5cp",bo="_2DNf80G",fo="Q-glX-n";const xo=({onClosePopup:e})=>a.createElement("div",{className:`${fo} close-btn`,onClick:e},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),wo=({onClosePopup:e,isDisplay:t,children:o,isNavMenu:i,hideCloseBtn:n})=>a.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!i},a.createElement(re,null,!n&&a.createElement("div",{className:bo},a.createElement(xo,{onClosePopup:e})),a.createElement(re,{className:yo},o))),Eo=({careSpecialties:e=[],isOpen:t,onClose:o,spotlights:i=[]})=>{var n;const{t:l}=j(),{locale:r,configs:{statics:d}}=s(Ht);return a.createElement(wo,{onClosePopup:o,isDisplay:t,isNavMenu:!0},a.createElement(ta,{headingTitle:l("home.navigator.menuItem.specialties"),hrefViewMore:`${d.CARE_URL_FE}/`,UrlFE:d.CARE_URL_FE,onClosePopup:o,titleBtnViewMore:l("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:ft({type:"DOCTOR",specialtySlug:e.slug,locale:r}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),a.createElement(Ea,{spotlights:i,hrefViewMore:`${d.CARE_URL_FE}/${null===(n=ae[r])||void 0===n?void 0:n.SPECIALTIES}/`}))},Co=({categories:e=[],spotlightsList:t=[],onClose:o,isOpen:i})=>{const{t:n}=j(),{locale:l,configs:{statics:r}}=s(Ht);return a.createElement(wo,{onClosePopup:o,isDisplay:i,isNavMenu:!0},a.createElement(ta,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:o,titleBtnViewMore:n("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:n("home.navigator.menuItem.healthCategories")}),a.createElement(Ba,{spotlightsList:t,hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/spotlight/`}))},ko=({communities:e=[],onClose:t,isOpen:o,spotlights:i=[]})=>{const{t:n}=j(),{configs:{statics:l}}=s(Ht);return a.createElement(wo,{onClosePopup:t,isDisplay:o,isNavMenu:!0},a.createElement(ta,{hrefViewMore:B(l.TOGETHER_URL_FE),UrlFE:N(l.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:n("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:n("home.navigator.menuItem.allCommunitiesheadingTitle")}),a.createElement(Ia,{spotlights:i}))},$o=({locale:e,onClose:t,isOpen:o,spotlightHealthTools:i=[],healthTools:n=[]})=>{var l;const{t:r}=j(),{configs:{statics:d}}=s(Ht),c=`${d.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(l=$[e])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`;return a.createElement(wo,{onClosePopup:t,isDisplay:o,isNavMenu:!0},a.createElement(ta,{hrefViewMore:c,UrlFE:d.HOME_PAGE_URL,onClosePopup:t,headingTitle:r("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:r("home.navigator.menuItem.allHealthTools"),menuItems:n.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${d.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),a.createElement(lo,{spotlightHealthTools:i,hrefViewMore:c}))},Po=({onTopBarAppears:e,type:t="home",languageMenu:n,menuItems:r})=>{var c;const{siteType:m,isMobile:p=!1,locale:g,sitewideBanner:h,sitewideBannerShown:u=!0,sponsorComponent:v,onBookingClick:y,currentUrl:f,onLoginClick:x,configs:{statics:w,enableNavCareBooking:E,enableSearchBar:C,enableNavCare:$,enableProfileMyHealth:_,enableProfileMySaved:M,enableNavTogether:A,enableProfileEcom:T,enableProfileNavigatorMenu:L},userState:{userInfo:H},onLogout:S,userProfileRouterPush:U,isUserLoading:z}=s(Ht),{t:R}=j(),{SSO_URL:I,HOME_PAGE_URL:F}=w,V=!!v,[G,W]=o(!1),Y=l(47),Z=l(null),q=l(!1),K="helloSites"===m?null===(c=k[g])||void 0===c?void 0:c.LOGO_TYPE:m,Q="undefined"!=typeof window,J=d(O((()=>{if("home"===t&&Q){if(!Z.current)return;const e=Z.current.getBoundingClientRect();e.top<=0&&window.scrollY>Y.current&&window.scrollY>e.height+20&&!q.current&&(q.current=!0,W(!0)),window.scrollY<Y.current&&q.current&&(q.current=!1,W(!1)),window.scrollY>=0&&(Y.current=window.scrollY)}}),200),[]);i((()=>{null==e||e(!G)}),[G]),i((()=>(window.addEventListener("scroll",J,{passive:!0}),()=>{window.removeEventListener("scroll",J)})),[]),i((()=>{p&&J()}),[p]);const X=u&&!!h;return a.createElement(co,{"data-site-type":m,"data-sponsored":V,"data-sitewide-banner-shown":X,"data-header-type":t,"data-collapsed":G,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:Z},h,a.createElement(mo,{"data-site-type":m},a.createElement(po,{"data-site-type":m},a.createElement(so,{menuItems:r,type:t}),a.createElement("a",{style:{flexShrink:0},href:F},a.createElement(go,null,a.createElement(D,{style:{display:"flex"},type:K,badge:"id-ID"===g&&a.createElement("img",{src:b.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===m?a.createElement(Bo,{menuItems:r}):C&&a.createElement(No,{siteType:m})),a.createElement(ho,{"data-site-type":m},"marryBaby"===m?C&&a.createElement(No,{siteType:m}):a.createElement(Bo,{menuItems:r}),a.createElement(uo,null,E&&a.createElement(Ee,{mediaQueryKey:"mbUp"},a.createElement(Mt,{careUrlFe:w.CARE_URL_FE,currentUrl:f,btnName:R("login.booking"),onCareHeaderClick:y})),n,a.createElement(Nt,{userInfo:H,siteType:m,onLoginClick:x||(()=>{const e=window.location.href;window.location.href=I?N(`${I}?returnUrl=${e}`):e}),SSO_URL:B(w.SSO_URL),currentUrl:f,onLogout:S,UP_BASEPATH:P,isMyHealthEnabled:_,enableCare:$,enableTogether:A,enableEcom:T,enableMySaved:M,togetherApiDomain:B(w.TOGETHER_API),isUserProfileNavigatorMenuHidden:!L,userProfileRouterPush:U,isLoading:z,locale:g})))),v?a.isValidElement(v)?a.cloneElement(v,{isCollapsed:G,locale:g,isMobile:p}):v:null)},No=({siteType:e})=>a.createElement(Ee,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},a.createElement(It,null)),Bo=({menuItems:e})=>{const{siteType:t,locale:o,ssrMenuContent:{categories:i,healthTools:n,care:l,together:r}}=s(Ht);return a.createElement(Ee,{mediaQueryKey:"mbUp",style:{height:"100%"}},a.createElement(vo,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>a.createElement(Xt,{key:t,item:e,menu:"categories"===e.popupType?a.createElement(Co,{categories:null==i?void 0:i.items,spotlightsList:null==i?void 0:i.spotlights}):"tools"===e.popupType?a.createElement($o,{locale:o,healthTools:null==n?void 0:n.items,spotlightHealthTools:null==n?void 0:n.spotlights}):"together"===e.popupType?a.createElement(ko,{communities:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):"care"===e.popupType?a.createElement(Eo,{careSpecialties:null==l?void 0:l.items,spotlights:null==l?void 0:l.spotlights}):null})))))},_o=u.div`
|
|
1717
1717
|
--header-z-index: 305;
|
|
1718
1718
|
top: 0;
|
|
1719
1719
|
z-index: var(--header-z-index);
|
|
@@ -1750,4 +1750,4 @@ import{a as e,_ as t}from"./tslib.es6-8357f6ae.js";import a,{useState as o,useEf
|
|
|
1750
1750
|
font-weight: 700;
|
|
1751
1751
|
line-height: 22px;
|
|
1752
1752
|
text-decoration: none;
|
|
1753
|
-
`;const
|
|
1753
|
+
`;const Mo=e=>{var t,r;const{isMobile:c,locale:m,onTopBarAppears:p,languageOptions:g,sponsorComponent:h,sitewideBanner:u,sitewideBannerShown:v,className:y}=e,f=(()=>{const{t:e}=j(),{siteType:t,locale:a,configs:{enableNavDiscover:o,enableNavHealthTools:i,enableNavCare:l,enableNavTogether:r,enableNavEcom:d,statics:c}}=s(Ht),m="marryBaby"===t;return n((()=>{var t;const n=[];return o&&n.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${c.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:m?b.getAssetPath("categories-mb.svg"):b.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),i&&n.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${c.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=$[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:m?b.getAssetPath("healthtools-mb.svg"):b.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),r&&n.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:N(c.TOGETHER_URL_FE+"/"),thumbnail:m?b.getAssetPath("community-mb.svg"):b.getAssetPath("nav-icons/community.svg"),popupType:"together"}),d&&n.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:N(c.HOME_PAGE_URL+"/shop"),thumbnail:b.getAssetPath("nav-icons/shop.svg"),popupType:null}),l&&n.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:N("ms-MY"===a?c.HOME_PAGE_URL+"/care/current-location/hospital/":c.HOME_PAGE_URL+"/care"),thumbnail:b.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===a||"ms-MY"===a?null:"care"}),n}),[a,l,r,d])})();(()=>{const{isFirstLogin:e,userState:t}=s(Ht),{userInfo:a}=t;i((()=>{(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 x=v&&!!u,w=!!h,E=!!(null===(r=null===(t=null==h?void 0:h.props)||void 0===t?void 0:t.sponsoredBy)||void 0===r?void 0:r.length),{headerRef:C,defaultHeaderHeight:k,headerHeight:P,headerBottom:B}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:a,isMobile:r})=>{const s=l(null),[c,m]=o(0),[p,g]=o(64),h=d(te((()=>{var e,t,a,o;const i=(null===(e=s.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=s.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=i+200&&(m(i),g((null===(o=s.current)||void 0===o?void 0:o.getBoundingClientRect().bottom)||c))}),200),[]);i((()=>(window.addEventListener("resize",h,{passive:!0}),window.addEventListener("scroll",h,{passive:!0}),h(),()=>{window.removeEventListener("resize",h),window.removeEventListener("scroll",h)})),[]),i((()=>{h()}),[r,a,t,e,s.current]);const u=n((()=>{let o=r?64:69;return a&&(o+=64),t&&(o+=40,e&&(o+=57)),o}),[r,a,e,t]);return{defaultHeaderHeight:u,headerHeight:c||u,headerBottom:p,headerRef:s}})({isShowingSiteWideBanner:x,isSponsored:w,hasSponsoredBanners:E,isMobile:c});return a.createElement(_o,{id:"navigation-v2",style:{"--default-header-height":k+"px","--header-height":`calc(${P}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":B+"px"},className:y},a.createElement("section",{ref:C},a.createElement(Po,{menuItems:f,type:"home",onTopBarAppears:p,languageMenu:a.createElement(fe,{languageOptions:g,locale:m})})))},Ao=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return a.createElement(St,Object.assign({},t),a.createElement(Mo,Object.assign({},t)))},To=t=>e(void 0,void 0,void 0,(function*(){var e,a,o,i,n,l,r,s,d,c,m,p,g,h,u,v,y,b,w,C,k,$,P;const B={},_="vi-VN_MB"===t;try{const M="tl-PH"===t?"lang=fil":"";try{const[m,p,g,h]=yield Promise.all([fetch(N(`${T(t)}/wp-json/api/categories${M?"?"+M:""}`)).then((e=>e.json())),fetch(N(`${T(t)}/wp-json/api/spotlights?per_page=10&order_by=start_date${M?"&"+M:""}`)).then((e=>e.json())),fetch(N(`${T(t)}/wp-json/api/${_?"health-tools":"healthtools"}${M?"?"+M:""}`)).then((e=>e.json())),fetch(N(`${T(t)}/wp-json/api/${_?"health-tools":"healthtools"}/favorites${M?"?"+M:""}`)).then((e=>e.json()))]);B.categories={items:(null===(a=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.map)||void 0===a?void 0:a.call(e,ut))||[],spotlights:(null===(l=null===(n=null===(i=null===(o=null==p?void 0:p.data)||void 0===o?void 0:o.articles)||void 0===i?void 0:i.map)||void 0===n?void 0:n.call(i,xt))||void 0===l?void 0:l.filter(wt))||[]},B.healthTools={items:(null===(s=null===(r=null==g?void 0:g.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,vt))||[],spotlights:(null===(c=null===(d=null==h?void 0:h.data)||void 0===d?void 0:d.map)||void 0===c?void 0:c.call(d,vt))||[]}}catch(e){}if(_||E.includes(t))try{const[e,a]=yield Promise.all([fetch(N(`${A()}/api/v1/community?website_url=https://${f[t]}`)).then((e=>e.json())),fetch(N(`${A()}/api/v1/options?website_url=https://${f[t]}&meta_key=popular_post`)).then((e=>e.json()))]);B.together={items:(null===(g=null===(p=null===(m=null==e?void 0:e.data)||void 0===m?void 0:m.communities)||void 0===p?void 0:p.map)||void 0===g?void 0:g.call(p,U))||[],spotlights:(null===(v=null===(u=null===(h=null==a?void 0:a.data)||void 0===h?void 0:h.posts)||void 0===u?void 0:u.map)||void 0===v?void 0:v.call(u,z))||[]}}catch(e){}if(x.includes(t))try{const[e,a]=yield Promise.all([fetch(N(L()+`/api/options/setting_menu?site=${f[t]}&type=0`)).then((e=>e.json())),fetch(N(L()+`/api/options/setting_menu?site=${f[t]}&type=1`)).then((e=>e.json()))]);B.care={items:(null===(C=null===(w=null===(b=null===(y=null==e?void 0:e._data)||void 0===y?void 0:y.setting_menu)||void 0===b?void 0:b.menu_specialty)||void 0===w?void 0:w.map)||void 0===C?void 0:C.call(w,yt))||[],spotlights:(null===(P=null===($=null===(k=null==a?void 0:a._data.setting_menu)||void 0===k?void 0:k.menu_hospital)||void 0===$?void 0:$.map)||void 0===P?void 0:P.call($,bt))||[]}}catch(e){}}catch(e){console.error(e)}return B})),Lo=t=>e(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>To(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{de as A,fe as L,Ao as N,Ct as P,Et as U,Lo as a,ze as b,dt as c,Pt as d,Nt as e,To as g,me as i};
|