@hhgtech/hhg-components 1.26.49 → 1.26.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.d.ts +4 -3
- package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.styles.d.ts +18 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-aa82f22d.js → core-639acb65.js} +1 -1
- package/build/{dataTransform-06354173.js → dataTransform-bcd7b51e.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +6 -6
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-595bcf4d.js → core-37eed604.js} +1 -1
- package/build/esm/{dataTransform-5520acf8.js → dataTransform-114351ad.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-19bb3b0c.js +1 -0
- package/build/esm/{getSocialList-0f6a34bf.js → getSocialList-6a9124ec.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-ad37be83.js → index-0581c67c.js} +1 -1
- package/build/esm/{index-b028cab1.js → index-0cb6efec.js} +1 -1
- package/build/esm/{index-84e845ba.js → index-0e167804.js} +1 -1
- package/build/esm/{index-3f32e6a9.js → index-338f999a.js} +1 -1
- package/build/esm/{index-56fb75ed.js → index-3993c544.js} +1 -1
- package/build/esm/{index-8d0df027.js → index-43549156.js} +1 -1
- package/build/esm/{index-70cad85a.js → index-497d9f5a.js} +1 -1
- package/build/esm/{index-6ac394f1.js → index-4a5eb894.js} +6 -6
- package/build/esm/{index-bbbe5f88.js → index-50159ee2.js} +1 -1
- package/build/esm/{index-3a5d3e59.js → index-5bcf5e56.js} +1 -1
- package/build/esm/{index-a4327cda.js → index-5bf7c8d6.js} +1 -1
- package/build/esm/{index-60f52533.js → index-60a5e34c.js} +1 -1
- package/build/esm/{index-087931a6.js → index-69322083.js} +1 -1
- package/build/esm/{index-51a5bf48.js → index-6c51b86e.js} +1 -1
- package/build/esm/{index-78a98966.js → index-734ad044.js} +1 -1
- package/build/esm/{index-eb832162.js → index-742af5be.js} +1 -1
- package/build/esm/{index-11fc1ac3.js → index-7710d84f.js} +1 -1
- package/build/esm/index-a160ab0b.js +1 -0
- package/build/esm/{index-4a3d29c4.js → index-a36782dc.js} +1 -1
- package/build/esm/{index-eff0df8e.js → index-bae69d05.js} +1 -1
- package/build/esm/index-ca6954c7.js +1 -0
- package/build/esm/{index-df31d73e.js → index-e984c03d.js} +1 -1
- package/build/esm/{index-f4fe0723.js → index-eaeee238.js} +1 -1
- package/build/esm/index-f2186389.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-9e7169a2.js → index.styled-35fdc194.js} +1 -1
- package/build/esm/{index.styled-c0b31749.js → index.styled-95eee9a9.js} +1 -1
- package/build/esm/{index.styled-0bdc8420.js → index.styled-9ff0f19e.js} +1 -1
- package/build/esm/{index.styled-020376b0.js → index.styled-a5d24bea.js} +70 -262
- package/build/esm/{index.styled-07f440a9.js → index.styled-be2417db.js} +6 -6
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/pwg.js +3 -3
- package/build/esm/{routing-efea57a9.js → routing-a0880ec6.js} +1 -1
- package/build/esm/{screenSizeContext-f1bba2ea.js → screenSizeContext-248097b4.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/translationsContext-b1fb6a48.js +1 -0
- package/build/esm/translationsProvider-54458fd4.js +1 -0
- package/build/esm/{types-433f4233.js → types-66276eb8.js} +1 -1
- package/build/esm/{types-08abc357.js → types-c3f9a409.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-89a1b727.js +1 -0
- package/build/esm/{useRafState-7bb5b9b8.js → useRafState-4effa195.js} +1 -1
- package/build/esm/{useTranslations-fe338e8b.js → useTranslations-d99f7623.js} +1 -1
- package/build/esm/{utils-9d710f80.js → utils-e23a643c.js} +6 -6
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-daed781d.js +1 -0
- package/build/{getSocialList-caf338ee.js → getSocialList-e5f2406d.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index-0792fe96.js +1 -0
- package/build/{index-65facaac.js → index-1268596e.js} +1 -1
- package/build/{index-f0a6616e.js → index-2eddc671.js} +1 -1
- package/build/index-34430621.js +1 -0
- package/build/{index-65ff5470.js → index-3e288b7d.js} +1 -1
- package/build/{index-c5790b56.js → index-43258d8d.js} +1 -1
- package/build/{index-c3859500.js → index-47d82489.js} +1 -1
- package/build/{index-fec8a813.js → index-4e0cba15.js} +1 -1
- package/build/index-57e9398a.js +1 -0
- package/build/{index-c7df10ab.js → index-627cbabe.js} +1 -1
- package/build/{index-84947b2b.js → index-9520d5f6.js} +1 -1
- package/build/{index-b4268fc4.js → index-9658cb4a.js} +1 -1
- package/build/{index-eadd8dfa.js → index-a984fee3.js} +1 -1
- package/build/{index-996b5b43.js → index-aa0877a1.js} +1 -1
- package/build/{index-363f09b6.js → index-b44e09c4.js} +1 -1
- package/build/index-d1026893.js +1 -0
- package/build/{index-43ca1f65.js → index-d36b33ef.js} +1 -1
- package/build/{index-02e3350a.js → index-d785d4b2.js} +1 -1
- package/build/{index-163b0077.js → index-e3be6f56.js} +1 -1
- package/build/index-e7ed722b.js +1 -0
- package/build/{index-d1e00cfe.js → index-ea92f8e2.js} +1 -1
- package/build/index-ed522578.js +1 -0
- package/build/{index-105a1dd4.js → index-f1cd46a6.js} +1 -1
- package/build/{index-ecfbed49.js → index-f4a8f3aa.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-16a4af07.js → index.styled-4710e6dd.js} +88 -280
- package/build/{index.styled-775b9225.js → index.styled-6d035211.js} +1 -1
- package/build/{index.styled-da4ea854.js → index.styled-7011d1d5.js} +1 -1
- package/build/{index.styled-018962a7.js → index.styled-b917b606.js} +1 -1
- package/build/{index.styled-4b8eb8ec.js → index.styled-d141fba1.js} +6 -6
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-70beeefa.js → routing-31fdfdb5.js} +1 -1
- package/build/{screenSizeContext-0386fe5e.js → screenSizeContext-48a32d9b.js} +1 -1
- package/build/together/interfaces/types.d.ts +1 -16
- package/build/together.js +1 -1
- package/build/translationsContext-cb6bc534.js +1 -0
- package/build/translationsProvider-3937fa16.js +1 -0
- package/build/{types-f04f6563.js → types-1d461105.js} +1 -1
- package/build/{types-705aa774.js → types-f0542fad.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useHealthToolCache-e9a44fbe.js → useHealthToolCache-be231bcb.js} +1 -1
- package/build/{useRafState-a7e3cbd9.js → useRafState-e9451f40.js} +1 -1
- package/build/useTranslations-713d8728.js +1 -0
- package/build/{utils-c0399b37.js → utils-36db5bc4.js} +12 -12
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.styled.d.ts +0 -21
- package/build/esm/getDynamicHealthTool-09c2746a.js +0 -1
- package/build/esm/index-8c53a16d.js +0 -1
- package/build/esm/index-bf136cf1.js +0 -1
- package/build/esm/index-db4b92fd.js +0 -1
- package/build/esm/translationsContext-48956132.js +0 -1
- package/build/esm/translationsProvider-a6064c47.js +0 -1
- package/build/esm/useHealthToolCache-1e83a5b3.js +0 -1
- package/build/getDynamicHealthTool-78ee57ed.js +0 -1
- package/build/index-14d668c2.js +0 -1
- package/build/index-14d70cd4.js +0 -1
- package/build/index-47b971f8.js +0 -1
- package/build/index-5695c49a.js +0 -1
- package/build/index-ab8f4178.js +0 -1
- package/build/index-cc470edb.js +0 -1
- package/build/translationsContext-bada923b.js +0 -1
- package/build/translationsProvider-711da90d.js +0 -1
- package/build/useTranslations-73da8632.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-399b84aa.js → BMI_BOYS.percentile.monthly-90476519.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-0bc71239.js → BMI_BOYS.percentile.weekly-84d2a69f.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-2b6435e8.js → BMI_BOYS.percentile.yearly-f499edae.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-27abfab4.js → BMI_BOYS.zscore.monthly-1e1a5a36.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-cc315f38.js → BMI_BOYS.zscore.weekly-be7b5b39.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-36625a61.js → BMI_BOYS.zscore.yearly-5bcb0d42.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-a525c975.js → BMI_GIRLS.percentile.monthly-37f3c8fb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-36d9e1e3.js → BMI_GIRLS.percentile.weekly-ac522be8.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-47b00e72.js → BMI_GIRLS.percentile.yearly-2871a818.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-320be8f8.js → BMI_GIRLS.zscore.monthly-0f93fb57.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-7ad1ac27.js → BMI_GIRLS.zscore.weekly-f472646e.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-71b3fad8.js → BMI_GIRLS.zscore.yearly-2d9b9e48.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-817c03cf.js → HEAD CIRCUM_BOYS.percentile.monthly-2cb69a53.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9f1bf51a.js → HEAD CIRCUM_BOYS.percentile.weekly-f1b79546.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7a7de917.js → HEAD CIRCUM_BOYS.percentile.yearly-25e6ee49.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-d6652da5.js → HEAD CIRCUM_BOYS.zscore.monthly-11c0a991.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9dcbbad9.js → HEAD CIRCUM_BOYS.zscore.weekly-4be9a4e6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c5d0ac4a.js → HEAD CIRCUM_BOYS.zscore.yearly-e4765d60.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f8433f69.js → HEAD CIRCUM_GIRLS.percentile.monthly-21ff8d08.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-04cdb059.js → HEAD CIRCUM_GIRLS.percentile.weekly-8f7a651a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-8a79db16.js → HEAD CIRCUM_GIRLS.percentile.yearly-1531e31d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-e02a6424.js → HEAD CIRCUM_GIRLS.zscore.monthly-52adb59a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-5140e9ad.js → HEAD CIRCUM_GIRLS.zscore.weekly-c095ed16.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3f17cc41.js → HEAD CIRCUM_GIRLS.zscore.yearly-f694a9d4.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-2b0f7293.js → HEIGHT_BOYS.percentile.monthly-b2a8053c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-ad38ca2c.js → HEIGHT_BOYS.percentile.weekly-d2b00ebf.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-d5e6b161.js → HEIGHT_BOYS.percentile.yearly-95031d44.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-96f0088f.js → HEIGHT_BOYS.zscore.monthly-9afa4f84.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-86c792d9.js → HEIGHT_BOYS.zscore.weekly-bee463f5.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-2c4fd117.js → HEIGHT_BOYS.zscore.yearly-89eb12f3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-59114e29.js → HEIGHT_GIRLS.percentile.monthly-250615d5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d38e6ddf.js → HEIGHT_GIRLS.percentile.weekly-84c9fd50.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-d21097fb.js → HEIGHT_GIRLS.percentile.yearly-780d120b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-e9331c0c.js → HEIGHT_GIRLS.zscore.monthly-586920c1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-205ff621.js → HEIGHT_GIRLS.zscore.weekly-518e97dc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-cf977c62.js → HEIGHT_GIRLS.zscore.yearly-f31c5298.js} +0 -0
- /package/build/{Onboarding-8e02d06e.js → Onboarding-44bbfe67.js} +0 -0
- /package/build/{Visible-ea0b522e.js → Visible-4bdf574d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-986c6322.js → WEIGHT_BOYS.percentile.monthly-5c051e09.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-73344572.js → WEIGHT_BOYS.percentile.weekly-ac194001.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-f2ec98a4.js → WEIGHT_BOYS.percentile.yearly-f970a018.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-ee3122fb.js → WEIGHT_BOYS.zscore.monthly-141dc0b8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-baecd8e1.js → WEIGHT_BOYS.zscore.weekly-3f833e14.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-1c5d4c1c.js → WEIGHT_BOYS.zscore.yearly-fc56a3a2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-317da827.js → WEIGHT_GIRLS.percentile.monthly-7b9b7b4f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-bcaac227.js → WEIGHT_GIRLS.percentile.weekly-f56d91c0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-614b81e0.js → WEIGHT_GIRLS.percentile.yearly-b7d26c0f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-f19518a6.js → WEIGHT_GIRLS.zscore.monthly-6d64ba8b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-259fc8d8.js → WEIGHT_GIRLS.zscore.weekly-345dfc1f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-f9c34291.js → WEIGHT_GIRLS.zscore.yearly-1672bf13.js} +0 -0
- /package/build/{constants-72963891.js → constants-0b0032f7.js} +0 -0
- /package/build/{cookieHelper-b6f86e18.js → cookieHelper-f4347739.js} +0 -0
- /package/build/{dataTransform-e524c84e.js → dataTransform-e418c837.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-1218b597.js → BMI_BOYS.percentile.monthly-a2f561f0.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-9969f52a.js → BMI_BOYS.percentile.weekly-bae55283.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-cd198a98.js → BMI_BOYS.percentile.yearly-e9ad63ca.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-e950035d.js → BMI_BOYS.zscore.monthly-1e45023c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-2e10635d.js → BMI_BOYS.zscore.weekly-879b39ee.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-3c098831.js → BMI_BOYS.zscore.yearly-3d61be02.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-ed129929.js → BMI_GIRLS.percentile.monthly-59253227.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-0ae6c821.js → BMI_GIRLS.percentile.weekly-d2d48c8e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-d4eef43c.js → BMI_GIRLS.percentile.yearly-cf9e18e3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-479dbdeb.js → BMI_GIRLS.zscore.monthly-c1e2d506.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-fe9363b7.js → BMI_GIRLS.zscore.weekly-64f0306a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-2d4291da.js → BMI_GIRLS.zscore.yearly-90e3a5ef.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-ad3d6e35.js → HEAD CIRCUM_BOYS.percentile.monthly-582b32f2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-5f860a4f.js → HEAD CIRCUM_BOYS.percentile.weekly-a5efa12d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-eafc7da1.js → HEAD CIRCUM_BOYS.percentile.yearly-70193e49.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-352ea622.js → HEAD CIRCUM_BOYS.zscore.monthly-46b49bca.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-938ad251.js → HEAD CIRCUM_BOYS.zscore.weekly-9014b13c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-0505adee.js → HEAD CIRCUM_BOYS.zscore.yearly-461d0347.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0bf8d35c.js → HEAD CIRCUM_GIRLS.percentile.monthly-720c30a7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-dae596dd.js → HEAD CIRCUM_GIRLS.percentile.weekly-ca6b2839.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-7e7362c4.js → HEAD CIRCUM_GIRLS.percentile.yearly-10503e08.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8acc1b56.js → HEAD CIRCUM_GIRLS.zscore.monthly-b08f8810.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-056f464e.js → HEAD CIRCUM_GIRLS.zscore.weekly-07d91079.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-64979eee.js → HEAD CIRCUM_GIRLS.zscore.yearly-de8dd841.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b0c3897b.js → HEIGHT_BOYS.percentile.monthly-bf4f01a7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5ebfd032.js → HEIGHT_BOYS.percentile.weekly-24c0a692.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6e8b7750.js → HEIGHT_BOYS.percentile.yearly-20760875.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-79e5dde8.js → HEIGHT_BOYS.zscore.monthly-6a042fd4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-207390b1.js → HEIGHT_BOYS.zscore.weekly-7ad04531.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-365ef81a.js → HEIGHT_BOYS.zscore.yearly-48c72e08.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-403c4062.js → HEIGHT_GIRLS.percentile.monthly-89d38e35.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-aff3790b.js → HEIGHT_GIRLS.percentile.weekly-301951e9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-55be0409.js → HEIGHT_GIRLS.percentile.yearly-28f90eb8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-117cb1ba.js → HEIGHT_GIRLS.zscore.monthly-9686dc1d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-c9c51e03.js → HEIGHT_GIRLS.zscore.weekly-ebf1872f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-46c69cf4.js → HEIGHT_GIRLS.zscore.yearly-dad31e9b.js} +0 -0
- /package/build/esm/{Onboarding-833526af.js → Onboarding-d02d2429.js} +0 -0
- /package/build/esm/{Visible-b06745ae.js → Visible-5f1d3327.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-5c4074c7.js → WEIGHT_BOYS.percentile.monthly-bd03e489.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-72797f2c.js → WEIGHT_BOYS.percentile.weekly-592b4a69.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-0a35757a.js → WEIGHT_BOYS.percentile.yearly-23f6457f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-6106b734.js → WEIGHT_BOYS.zscore.monthly-cdc2138a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-4afd785f.js → WEIGHT_BOYS.zscore.weekly-7a7e8ed4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-0911b027.js → WEIGHT_BOYS.zscore.yearly-359423e9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-00a0649d.js → WEIGHT_GIRLS.percentile.monthly-2e75a94a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-a63326ba.js → WEIGHT_GIRLS.percentile.weekly-bcc01e92.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-082cffc9.js → WEIGHT_GIRLS.percentile.yearly-218b0448.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-a8587e61.js → WEIGHT_GIRLS.zscore.monthly-8e26697d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-20c79a62.js → WEIGHT_GIRLS.zscore.weekly-5b59d6f0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9dc88b96.js → WEIGHT_GIRLS.zscore.yearly-d7d614fe.js} +0 -0
- /package/build/esm/{constants-e27161a6.js → constants-948a102d.js} +0 -0
- /package/build/esm/{cookieHelper-cd788e51.js → cookieHelper-71348695.js} +0 -0
- /package/build/esm/{dataTransform-a14bc8d4.js → dataTransform-7bceb1b0.js} +0 -0
- /package/build/esm/{index-6c2d080e.js → index-db98c14a.js} +0 -0
- /package/build/esm/{index-c5e49781.js → index-e6cd37f8.js} +0 -0
- /package/build/esm/{isProduction-35c0745f.js → isProduction-41487741.js} +0 -0
- /package/build/esm/{localizeNumberFormat-5c5e9ac0.js → localizeNumberFormat-d471f84c.js} +0 -0
- /package/build/esm/{normalizeLink-2067cfb2.js → normalizeLink-8f8f4ff0.js} +0 -0
- /package/build/esm/{theme-987dd626.js → theme-ce8a5c83.js} +0 -0
- /package/build/esm/{tslib.es6-08a12abc.js → tslib.es6-b37ca7fe.js} +0 -0
- /package/build/esm/{types-7053f9a2.js → types-bc4f911a.js} +0 -0
- /package/build/esm/{useIsInit-c0f1178b.js → useIsInit-972370c0.js} +0 -0
- /package/build/esm/{useOutsideClick-9c888831.js → useOutsideClick-36db9dce.js} +0 -0
- /package/build/esm/{useScrollbarSize-2a82c0f3.js → useScrollbarSize-8a9479d8.js} +0 -0
- /package/build/esm/{useUniqueId-645c64f5.js → useUniqueId-11e7ee77.js} +0 -0
- /package/build/esm/{utils-8b3122df.js → utils-935956f0.js} +0 -0
- /package/build/{index-e3047a5b.js → index-78719dbe.js} +0 -0
- /package/build/{index-26c45de4.js → index-9eb3ec25.js} +0 -0
- /package/build/{isProduction-2ecb111d.js → isProduction-6d3b3e6c.js} +0 -0
- /package/build/{localizeNumberFormat-47d55269.js → localizeNumberFormat-3fb3a577.js} +0 -0
- /package/build/{normalizeLink-147f7926.js → normalizeLink-f8e875e6.js} +0 -0
- /package/build/{theme-41ffdcdb.js → theme-a791cb11.js} +0 -0
- /package/build/{tslib.es6-cb700ea9.js → tslib.es6-d820cdad.js} +0 -0
- /package/build/{types-4c1ef97e.js → types-c9342ed0.js} +0 -0
- /package/build/{useIsInit-d9d74800.js → useIsInit-c5a1a540.js} +0 -0
- /package/build/{useOutsideClick-5c42761f.js → useOutsideClick-5b54b98c.js} +0 -0
- /package/build/{useScrollbarSize-7af7a32d.js → useScrollbarSize-8f5a38d4.js} +0 -0
- /package/build/{useUniqueId-a63b0de5.js → useUniqueId-9ce251f4.js} +0 -0
- /package/build/{utils-b4ee662d.js → utils-9147e638.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-08a12abc.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as r,useContext as o,useCallback as s}from"react";import{g as c}from"./core-595bcf4d.js";import{CommonGAssets as m}from"./gAssets.js";import{a as d}from"./useUniqueId-645c64f5.js";import{S as h,d as u,e as g,f as p,g as v,h as E,i as f,j as y,k as w,N as L,l as b,m as C,n as k,o as M,p as P,q as N,r as H,s as x,t as A,u as B,v as T,w as _,x as R,y as O,z as S,A as U,B as j,C as Z,E as $,F as V,I as F,J as I,K as D,L as z,M as G,O as W,P as q,Q as K,R as Q,V as Y,W as J,X,Y as ee,Z as te,_ as le,$ as ae,a0 as ne,a1 as ie,a2 as re,a3 as oe,a4 as se,a5 as ce,a6 as me,a7 as de,a8 as he,a9 as ue,aa as ge,ab as pe,ac as ve,ad as Ee,ae as fe,af as ye,ag as we,ah as Le,ai as be,aj as Ce,ak as ke,al as Me,am as Pe,an as Ne,ao as He,ap as xe,aq as Ae}from"./index.styled-c0b31749.js";import{T as Be}from"./index-11fc1ac3.js";import{d as Te,L as _e,S as Re,U as Oe,T as Se,C as Ue}from"./index-087931a6.js";import{n as je,a as Ze}from"./normalizeLink-2067cfb2.js";import{c as $e,b as Ve,d as Fe}from"./routing-efea57a9.js";import{P as Ie,b as De,c as ze}from"./dataTransform-5520acf8.js";import{L as Ge}from"./index-ad37be83.js";import{u as We}from"./useTranslations-fe338e8b.js";import qe from"lodash/throttle";import{g as Ke}from"./utils-8b3122df.js";import{y as Qe,P as Ye,H as Je}from"./index.styled-9e7169a2.js";import{B as Xe}from"./index-f4fe0723.js";import{t as et}from"./theme-987dd626.js";import{g as tt}from"./cookieHelper-cd788e51.js";import{Portal as lt}from"@mantine/core";import"./index-84e845ba.js";import{C as at}from"./index-b028cab1.js";import"./index.styled-0bdc8420.js";import"./index-c5e49781.js";import"@mantine/dates";import"./Onboarding-833526af.js";import"./index-4a3d29c4.js";import"dayjs";import"./screenSizeContext-f1bba2ea.js";import"styled-components";import"./isProduction-35c0745f.js";import"./index-a4327cda.js";import"@mantine/hooks";import{L as nt}from"./constants-e27161a6.js";import it from"string-format";import{I as rt}from"./index-db4b92fd.js";import ot from"lodash/debounce";import{u as st}from"./useIsInit-c0f1178b.js";const ct={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},mt=({type:e="square",size:t,avatarImg:i,avatarUrl:r,firstLetter:o,backgroundColor:s,onClick:c,style:m,className:d,width:h,height:u})=>{const g=t?ct[t]:void 0,[p,v]=a(!1);n((()=>{if(r){const e=document.createElement("img");e.setAttribute("src",r),e.addEventListener("error",(()=>{v(!0)}))}}),[r,v]);const E=(!r&&!i||p)&&o;return l.createElement(Qe,{style:Object.assign(Object.assign({},m),{"--size":g?g+"px":void 0,"--width-prop":h?h+"px":void 0,"--height-prop":u?u+"px":void 0,"--background-color":s}),"data-has-max":!(!h||!u),"data-avatar-type":e,onClick:c,className:d,avatarUrl:r,"data-custom-size":!!t},i,r&&!p&&l.createElement("img",{src:r}),E&&o)},dt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),ht=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaSquare.png")},e)),ut=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),l.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),l.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),l.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),l.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),l.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),l.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),l.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),l.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),l.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),l.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),l.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),l.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),l.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),l.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),l.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),l.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),l.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),l.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),l.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),l.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),l.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),l.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"}))),gt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},l.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),l.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),l.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),l.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),l.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),l.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),l.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),l.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),l.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),l.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"}))),pt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),vt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaSquare.png")},e)),Et=t=>{var a=e(t,[]);const n=d();return l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("g",{mask:`url(#${n})`},l.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),l.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},ft=t=>{var a=e(t,[]);const n=d();return l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("g",{clipPath:`url(#${n})`},l.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),l.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),l.createElement("defs",null,l.createElement("clipPath",{id:n},l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},yt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),l.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"}))),wt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),l.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),l.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"})),Lt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),l.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),l.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"}))),bt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),l.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),l.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"})),Ct=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),kt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineSquare.png")},e)),Mt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),l.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),l.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})))),Pt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),l.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})),Nt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),l.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"}))),Ht=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),l.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"})),xt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),l.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"}))),At=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("clipPath",null,l.createElement("rect",{width:"24",height:"16",fill:"white"})),l.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),l.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})));var Bt="pfaLGRK";const Tt=({country:e,language:t,rounded:a,height:n,width:i,isTesting:r})=>{let o,s;switch(t){case"en":o=l.createElement(gt,null),s=l.createElement(ut,null);break;case"vi":o=l.createElement(At,null),s=l.createElement(xt,null);break;case"id":o=l.createElement(ft,{isTesting:r}),s=l.createElement(Et,{isTesting:r});break;case"th":o=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"km":o=l.createElement(ht,null),s=l.createElement(dt,null);break;case"ms":o=l.createElement(wt,null),s=l.createElement(yt,null);break;case"my":o=l.createElement(bt,null),s=l.createElement(Lt,null);break;case"tl":o=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"hi":o=l.createElement(vt,null),s=l.createElement(pt,null);break;case"zh":o=l.createElement(Pt,null),s=l.createElement(Mt,null)}if(!o&&!s)switch(e){case"VN":o=l.createElement(At,null),s=l.createElement(xt,null);break;case"ID":o=l.createElement(ft,{isTesting:r}),s=l.createElement(Et,{isTesting:r});break;case"TH":o=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"KH":o=l.createElement(ht,null),s=l.createElement(dt,null);break;case"MY":o=l.createElement(wt,null),s=l.createElement(yt,null);break;case"MM":o=l.createElement(bt,null),s=l.createElement(Lt,null);break;case"PH":o=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"IN":o=l.createElement(vt,null),s=l.createElement(pt,null);break;case"TW":o=l.createElement(Pt,null),s=l.createElement(Mt,null)}return l.createElement("div",{className:Bt,style:{"--width":i||20,"--height":n||20}},a?s:o)},_t=({options:e,label:t,labelRenderer:n,selected:i,onChange:r,showSelected:o=!0,style:s={},showIndicator:c=!0})=>{const[d,E]=a(!1);return l.createElement(l.Fragment,null,l.createElement(h,null,l.createElement(u,{onClick:()=>E((e=>!e))},t||(null==n?void 0:n(d))||null,l.createElement(g,{"data-is-open":d,style:s,"data-show-indicator":c},e.map(((e,t)=>l.createElement(p,{key:t,"data-selected":o&&i===e.value,onClick:t=>{i!==e.value&&(r(e.value),E((e=>!e))),t.stopPropagation()}},l.createElement(Be,{size:"p3"},e.label),o&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))))))),d&&l.createElement(v,{onClick:()=>E(!1)}))},Rt=({languageOptions:e,locale:t})=>{var a,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?l.createElement(_t,{options:e,selected:i.value,label:l.createElement(Ot,{locale:t,label:i.label||(null===(n=null===(a=t.split("-"))||void 0===a?void 0:a[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Ot=({locale:e,label:t,href:a})=>{var n,i,r;return l.createElement(E,{href:a},l.createElement(Tt,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(r=null==e?void 0:e.split("-"))||void 0===r?void 0:r[0]}),l.createElement("span",null,t))},St=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:r})=>{const[o,s]=i((()=>Ke(t)),[t]);return l.createElement(f,{lowerBound:e?0:o,upperBound:e?0:s,className:n,style:r},a)},Ut=e=>{const{allowBgScroll:t}=e||{},l=r();return{containerRef:l,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur())}}},jt=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:r=!0,targetAvatar:o,id:s,className:c})=>l.createElement(y,{"data-open":a,"data-type":e,"data-animation":r,"data-target":o,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),Zt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var $t="uJQBNNg",Vt="TfG3dM5",Ft="aMtjFNf",It="cSz2RR-",Dt="GyFm00F";function zt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=We(),r=i((()=>{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 l.createElement("div",{className:$t,onClick:()=>{t&&t()}},l.createElement(mt,{className:Vt,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:r,backgroundColor:"marryBaby"===a?et.mbColors.pink:et.colors.secondaryBase}),l.createElement("div",{className:Ft},l.createElement("div",{className:It},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:Dt,style:{"--bg-hellosites":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${m.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},n("userProfile.nav.header.viewProfile"))))}var Gt="gn6HmGG",Wt="FCx8FEM",qt="zMiRxaE",Kt="lZ2Z9MQ",Qt="rwm-agG",Yt="qMOscoq";const Jt=({themeName:e,locale:t,onClickItem:n})=>{const[r,o]=a(""),s=i((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:m.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:m.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:m.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:m.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?o((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:Gt},s.map((e=>l.createElement(Xt,{key:e.key,item:e,openKey:r,onClickItem:c,locale:t}))))},Xt=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:r}=We();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${Wt} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:qt,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:Kt,style:{backgroundImage:`url("${e.icon}")`}}),r(e.key),e.subMenu&&l.createElement("div",{className:Qt,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:Yt},e.subMenu.map((e=>l.createElement(Xt,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var el="-AZt1au",tl="IvSIfCI",ll="eahCJov",al="XIyViFs",nl="_4y-O0w3",il="kO8iNgD",rl="a1d4E10",ol="Tdguxxf",sl="-mOxsaU",cl="yPeDBNZ";const ml={helloSites:{member:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},dl=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=We(),r=i((()=>{var l,a;return(null===(a=null===(l=ml[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:nl,"data-user-rank":t},l.createElement("div",{className:il},l.createElement("div",{className:rl},l.createElement("div",{className:ol,style:{backgroundImage:`url("${r}")`}}),l.createElement("h3",{className:sl},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:cl},a," ",n("userProfile.nav.header.count.posts")))))},hl=e=>{var t,l,a,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>hl(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===(l=e.cat_parent)||void 0===l?void 0:l.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null}:{}},ul=e=>{var t,l;if(!e)return{};const a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(l=e.link)||void 0===l?void 0:l.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||a?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},gl=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},pl=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},vl=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=nt[l])||void 0===a?void 0:a.ALL}/${(null===(n=nt[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},El=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}:{},fl=e=>{const t=new Date;if(null==e?void 0:e.startDate){const l=new Date(e.startDate);if(t.getTime()<l.getTime())return!1}if(null==e?void 0:e.endDate){const l=new Date(e.endDate);if(t.getTime()>l.getTime())return!1}return!0},yl=({SSO_URL:e,UP_BASEPATH:t="user",themeName:r="helloSites",cardUrls:o=Zt,enableCare:s,enableTogether:c,enableEcom:d,userInfo:h,togetherApiDomain:u,userPostsNumber:g,onClickNavigationCard:p,onClickMyProfileButton:v,onClickMenuItem:E,onClickLogout:f,isUserProfileNavigatorMenuHidden:y=!1,isMyHealthEnabled:b=!1,locale:C})=>{const{t:k}=We(),[M,P]=a(g||0),N="marryBaby"===r;n((()=>{if(h&&void 0===g){const e=tt("hhg_user_token");e&&fetch(je(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+it(w.GET_USER_POSTS,Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${Te[e]}`})))(C,N,u)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,l,a;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&P((null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[C,null!==h,g,u,N]);const H=i((()=>{let e;return e=N?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?b:"eCom"!==e||d))}),[N,b]),x=i((()=>"marryBaby"===r?null:l.createElement(Xe,{color:"tertiary",icon:l.createElement("img",{src:m.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:f,className:al},k("userProfile.nav.menu.logout"))),[r]),A=l=>{window.location.href=je(`${e}${t}/${l}`)},B=e=>{const t=o[e];p?p(t):A(t)};return h?l.createElement("div",{className:el,"data-theme":r},l.createElement(zt,{userInfo:h,themeName:r,onClickMyProfileButton:()=>{v?v():A("profile")}}),l.createElement(dl,{themeName:r,rank:"member",numberOfPosts:M}),l.createElement("div",{className:tl},H.map((e=>l.createElement(L,{className:ll,key:e,themeName:r,type:e,onClick:B})))),!y&&l.createElement(l.Fragment,null,l.createElement(Jt,{themeName:r,locale:C,onClickItem:e=>{"logout"===e.link&&f?f():e.link&&!e.subMenu&&(E?E(e.link):A(e.link))}}),x)):null},wl=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:r,enableTogether:o,enableEcom:s,closePopup:c,siteType:m="helloSites",dispatchLogout:d,userProfileRouterPush:h,isUserProfileNavigatorMenuHidden:u,isMyHealthEnabled:g=!1,togetherApiDomain:p,locale:v})=>{const E=l=>{h?h(`/${l}`):e&&(window.location.href=je(`${e}${t}/${l}`))},f=e=>{E(e),c()};return l.createElement(jt,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:c},l.createElement(yl,{SSO_URL:e,UP_BASEPATH:t,themeName:m,userInfo:i,enableCare:r,enableTogether:o,enableEcom:s,onClickLogout:()=>{d&&(d(),c())},onClickMenuItem:f,onClickNavigationCard:f,onClickMyProfileButton:()=>{E("profile"),c()},isUserProfileNavigatorMenuHidden:u,isMyHealthEnabled:g,togetherApiDomain:p,locale:v}))},Ll=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:r}=We();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(lt,null,l.createElement(Ie,{type:"confirm",isOpen:e,closeIcon:l.createElement("img",{src:m.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:t},l.createElement(b,null,"helloSites"===i&&l.createElement("img",{src:m.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),l.createElement("h2",null,r("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,r("logout.popup.ask2")),l.createElement(C,{siteType:i},l.createElement(Xe,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},r("logout.popup.button.logout")),l.createElement(Xe,{className:"cancel-button",color:"primary",size:"lg",onClick:t},r("logout.popup.button.cancel"))))))},bl=({userInfo:e,siteType:i,onLoginClick:r,SSO_URL:o,currentUrl:s,isMinifyLogin:c,enableCare:d,enableTogether:h,enableEcom:u,isUserProfileNavigatorMenuHidden:g,UP_BASEPATH:p,isMyHealthEnabled:v,togetherApiDomain:E,onLogout:f,style:y,userProfileRouterPush:w,isLoading:L,locale:b})=>{const{t:C}=We(),[N,H]=a(!1),x=(null==e?void 0:e.name)||(null==e?void 0:e.username),[A,B]=a(!1);n((()=>{B(!0)}),[]);const{containerRef:T,onContainerFocus:_,onContainerBlur:R,onButtonMouseDown:O,onClose:S}=Ut();return L?l.createElement(Xe,{size:"sm",color:"transparent",isLoading:!0}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(k,{ref:T,style:y,tabIndex:0,onBlur:R,onFocus:_},l.createElement("div",{onMouseDown:O},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),l.createElement(mt,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==e?void 0:e.avatar,firstLetter:x&&x.length?x[0].toUpperCase():"A",backgroundColor:"marryBaby"===i?et.mbColors.pink:et.colors.secondaryBase})),l.createElement(wl,{UP_BASEPATH:p,SSO_URL:o,dispatchLogout:()=>{S(),H(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,closePopup:S,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:b})),l.createElement(Ll,{openLogoutPopup:N,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),H(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){H(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):l.createElement(M,{style:Object.assign({textDecoration:"none"},y),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:A?void 0:je(`${o}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(P,{onClick:r},l.createElement("img",{src:m.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):l.createElement(l.Fragment,null,"helloSites"===i&&l.createElement("img",{className:"mobile-only",src:m.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:r}),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:r,style:{paddingLeft:16}},l.createElement(Be,{size:"p3",color:et.mbColors.pink},C("navigation.loginJoin"))),l.createElement(Xe,{className:"login-btn",size:"md",color:"tertiary",onClick:r,icon:l.createElement("img",{src:m.getAssetPath("login.svg"),width:18,height:18}),theme:i},C("navigation.loginJoin"))))};var Cl="wnUb-dV",kl="cjbOxWe";const Ml=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:r,onClose:o}=Ut({allowBgScroll:!0}),s=st();return!e.popupType&&e.link?l.createElement(Pl,{isNew:e.isNew},l.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:kl},e.name))):l.createElement(Pl,{isNew:e.isNew},l.createElement("div",{ref:a,className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:r,className:kl},e.name,e.popupType&&l.createElement("div",{className:Cl},l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),l.isValidElement(t)?l.cloneElement(t,{onClose:o}):null))},Pl=({isNew:e,children:t})=>{const{t:a}=We();return e?l.createElement(rt,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):l.createElement(l.Fragment,null,t)},Nl=()=>{const{locale:e,configs:{statics:t},siteType:a}=o(N),{t:n}=We();return l.createElement(Ye,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===a?n("navigation.search.input.placeholder"):n("home.search",{site:_e[e||"en-PH"]?_e[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:l.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},l.createElement(H,null))})},Hl=({item:e,index:t=0})=>{var a;const{t:n}=We(),{locale:i,configs:{statics:r}}=o(N);if(!e)return null;const s=`${r.CARE_URL_FE}/${null===(a=nt[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return l.createElement(x,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},l.createElement("img",{src:m.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),l.createElement(A,null,l.createElement(B,null,l.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),l.createElement(T,null,l.createElement(_,null,e.name),l.createElement(R,null,e.description),l.createElement(O,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},xl=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:r}=o(N);return l.createElement(S,{"data-theme":r},l.createElement(U,null,l.createElement("img",{src:"marryBaby"===r?m.getAssetPath("navMBSpotlightBgNoData.svg"):m.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(j,null,i&&l.createElement("img",{src:i,width:64,height:64}))),l.createElement("div",null,e&&l.createElement(Z,null,e),a&&l.createElement($,null,a),n&&l.createElement("div",null,l.createElement("a",{href:t},l.createElement(Xe,{theme:r,className:"survey-contact-submit",size:"md"},n)))))},Al=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:r}=o(N);return l.createElement(V,null,l.createElement(F,null,l.createElement(Je,{tag:"marryBaby"===r?"h5":"h6",as:"h2",fontWeight:"semibold"},e),t&&l.createElement(I,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":r},t,l.createElement("img",{src:"marryBaby"===r?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),a)},Bl=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=We();return l.createElement(Al,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?l.createElement(D,null,null==e?void 0:e.slice(0,3).map(((e,t)=>l.createElement(Hl,{key:t,index:t,item:e})))):l.createElement(xl,{title:a("home.navigator.menu.care.noDatas.title"),description:a("home.navigator.menu.care.noDatas.description"),link:t,cta:a("home.navigator.menu.care.noDatas.cta"),icon:m.getAssetPath("community.svg")}))};var Tl="q3nL5cp",_l="_2DNf80G",Rl="Q-glX-n";const Ol=({onClosePopup:e})=>l.createElement("div",{className:`${Rl} close-btn`,onClick:e},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),Sl=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:n,hideCloseBtn:i})=>l.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},l.createElement(at,null,!i&&l.createElement("div",{className:_l},l.createElement(Ol,{onClosePopup:e})),l.createElement(at,{className:Tl},a))),Ul=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:r})=>{const{siteType:s}=o(N);return l.createElement(z,null,l.createElement(G,null,l.createElement(Je,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},r)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${a}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return l.createElement(W,{className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,href:i,"data-theme":s,key:t,onClick:n},l.createElement("div",{className:"icon"},l.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),l.createElement(Pl,{isNew:e.isNew},l.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),l.createElement(q,null,l.createElement("img",{src:m.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),t&&l.createElement(K,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},l.createElement(Q,{onClick:n,"data-theme":s,"data-is-heading-category":!1},t,l.createElement(Y,null,l.createElement("img",{className:"svg",src:"marryBaby"===s?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},jl=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:r}=We(),{locale:s,configs:{statics:c}}=o(N),m=`${c.CARE_URL_FE}/${null===(i=nt[s])||void 0===i?void 0:i.SPECIALTIES}`;return l.createElement(Sl,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(Ul,{headingTitle:r("home.navigator.menuItem.specialties"),hrefViewMore:m,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:r("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:vl({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement(Bl,{spotlights:n,hrefViewMore:m}))},Zl=({item:e,index:t=0})=>e?l.createElement(J,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},l.createElement(X,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),l.createElement(ee,null,e.title)):null,$l=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=We(),{configs:{statics:n}}=o(N);return l.createElement(Al,{title:a("home.navigator.menu.spotlights"),viewMore:a("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?l.createElement(te,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(Zl,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement(xl,{title:a("home.navigator.menu.category.noDatas.title"),description:a("home.navigator.menu.category.noDatas.description"),link:t,cta:a("home.navigator.menu.category.noDatas.cta"),icon:m.getAssetPath("Spotlight.svg")}))},Vl=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=We(),{locale:r,configs:{statics:s}}=o(N);return l.createElement(Sl,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(Ul,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:a,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),l.createElement($l,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/spotlight/`}))},Fl=({spotlights:e=[]})=>{const{configs:{statics:t}}=o(N),{t:a}=We();return l.createElement(Al,{title:a("home.navigator.menu.trendingPosts"),viewMore:a("home.navigator.menu.trendingPosts.seeMore"),link:Ze(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?l.createElement(le,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(ae,{index:t,post:e,key:e.id})))):l.createElement(xl,{title:a("home.navigator.menu.together.noPosts.title"),description:a("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:a("home.navigator.menu.together.noPosts.cta"),icon:m.getAssetPath("community.svg")}))},Il=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=We(),{configs:{statics:r}}=o(N);return l.createElement(Sl,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Ul,{hrefViewMore:Ze(r.TOGETHER_URL_FE),UrlFE:je(r.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),l.createElement(Fl,{spotlights:n}))},Dl=({item:e,index:t=0})=>{const{t:a}=We(),{configs:{statics:n}}=o(N);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return l.createElement(ne,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},l.createElement("img",{src:m.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(ie,null,l.createElement(re,null,e.title),l.createElement(oe,null,e.subtitle),l.createElement(se,null,a("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),l.createElement(ce,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},zl=({item:e,index:t=0,color:a})=>{const{t:n}=We(),{configs:{statics:i}}=o(N);if(!e)return null;const r=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>l.createElement(he,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>l.createElement(ue,null,l.createElement(ge,null,l.createElement(pe,null,e.title),l.createElement(ve,null,e.subtitle)),l.createElement(Ee,null,l.createElement("div",{className:"mobile-only"},n("home.seeMore")),l.createElement("img",{src:m.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})));return l.createElement(me,{href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":r,"data-color":a},l.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.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"})),l.createElement("img",{src:m.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),l.createElement(de,null,l.createElement("div",{className:"mobile-only"},s()),l.createElement("div",{className:"desktop-only"},c())),l.createElement("div",{className:"mobile-only"},c()),l.createElement("div",{className:"desktop-only"},s()))},Gl=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=We(),n=["pink","orange","green"],{siteType:i}=o(N);return l.createElement(Al,{title:a("home.navigator.menu.spotlightTools")},0!==t.length&&l.createElement(fe,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?l.createElement(zl,{key:t,index:t,item:e,color:n[t]}):l.createElement(Dl,{key:t,index:t,item:e})))),0===t.length&&l.createElement(xl,{title:a("home.navigator.menu.healthTools.noDatas.title"),description:a("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:a("home.navigator.menu.healthTools.noDatas.cta"),icon:m.getAssetPath("community.svg")}))},Wl=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var r;const{t:s}=We(),{configs:{statics:c}}=o(N),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(r=Re[e])||void 0===r?void 0:r.HEALTH_TOOLS)||""}`;return l.createElement(Sl,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Ul,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),l.createElement(Gl,{spotlightHealthTools:n,hrefViewMore:m}))};var ql="spdlGfq",Kl="vgS16jX";const Ql=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(Xe,{className:ql,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):l.createElement("a",{href:a,className:`${Kl} care-button no-replace-click`},l.createElement(Xe,{className:ql,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var Yl="y5VJdvw",Jl="oVhOSCy",Xl="pX8OXTM";function ea({className:e}){return l.createElement("div",null,l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function ta({siteType:e,type:t,enableSearch:a,className:n}){return"helloSites"===e?l.createElement("div",null,l.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?m.getAssetPath("hamburgerMenuNewWithSearch.svg"):m.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:n})):l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},l.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 la=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:r,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=o(N),{t:p}=We();return l.createElement(ye,{id:"categories-menu"},u?l.createElement(we,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},l.createElement(Nl,null)):null,l.createElement(Le,null,l.createElement(Ul,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===d&&l.createElement($l,{spotlightsList:(null==r?void 0:r.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(Gl,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}${(null===(a=Re[g])||void 0===a?void 0:a.HEALTH_TOOLS)||""}`}),"care"===d&&l.createElement(Bl,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=nt[g])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&l.createElement(Fl,{spotlights:null==m?void 0:m.spotlights})))},aa=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=o(N),{containerRef:i,onContainerFocus:r,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Ut();return l.createElement(St,{mediaQueryKey:"mbDown"},l.createElement("header",{className:Yl},l.createElement("div",{className:Jl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:r},l.createElement("div",{className:Xl,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(ea,{className:"mobile-close-icon"}),l.createElement(ta,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(la,{menuItems:t,closePopup:m}))))},na=({onTopBarAppears:e,type:t="home",languageMenu:i,menuItems:c})=>{var d;const{siteType:h,isMobile:u=!1,locale:g,sitewideBanner:p,sitewideBannerShown:v=!0,sponsorComponent:E,onBookingClick:f,currentUrl:y,onLoginClick:w,configs:{statics:L,enableNavCareBooking:b,enableSearchBar:C,enableNavCare:k,enableProfileMyHealth:M,enableNavTogether:P,enableProfileEcom:H,enableProfileNavigatorMenu:x},userState:{userInfo:A},onLogout:B,userProfileRouterPush:T,isUserLoading:_}=o(N),{t:R}=We(),{SSO_URL:O,HOME_PAGE_URL:S}=L,U=!!E,[j,Z]=a(!1),$=r(47),V=r(null),F=r(!1),I="helloSites"===h?null===(d=_e[g])||void 0===d?void 0:d.LOGO_TYPE:h,D="undefined"!=typeof window,z=s(qe((()=>{if("home"===t&&D){if(!V.current)return;const e=V.current.getBoundingClientRect();e.top<=0&&window.scrollY>$.current&&window.scrollY>e.height+20&&!F.current&&(F.current=!0,Z(!0)),window.scrollY<$.current&&F.current&&(F.current=!1,Z(!1)),window.scrollY>=0&&($.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!j)}),[j]),n((()=>(window.addEventListener("scroll",z,{passive:!0}),()=>{window.removeEventListener("scroll",z)})),[]),n((()=>{u&&z()}),[u]);const G=v&&!!p;return l.createElement(be,{"data-site-type":h,"data-sponsored":U,"data-sitewide-banner-shown":G,"data-header-type":t,"data-collapsed":j,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:V},p,l.createElement(Ce,{"data-site-type":h},l.createElement(ke,{"data-site-type":h},l.createElement(aa,{menuItems:c,type:t}),l.createElement("a",{href:S},l.createElement(Me,null,l.createElement(Ge,{style:{display:"flex"},type:I,badge:"id-ID"===g&&l.createElement("img",{src:m.getAssetPath("sehat-badge.png"),width:"56",height:"23"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===h?l.createElement(ra,{menuItems:c}):C&&l.createElement(ia,{siteType:h})),l.createElement(Pe,{"data-site-type":h},"marryBaby"===h?C&&l.createElement(ia,{siteType:h}):l.createElement(ra,{menuItems:c}),l.createElement(Ne,null,b&&l.createElement(St,{mediaQueryKey:"mbUp"},l.createElement(Ql,{careUrlFe:L.CARE_URL_FE,currentUrl:y,btnName:R("login.booking"),onCareHeaderClick:f})),i,l.createElement(bl,{userInfo:A,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=O?je(`${O}?returnUrl=${e}`):e}),SSO_URL:Ze(L.SSO_URL),currentUrl:y,onLogout:B,UP_BASEPATH:Oe,isMyHealthEnabled:M,enableCare:k,enableTogether:P,enableEcom:H,togetherApiDomain:Ze(L.TOGETHER_API),isUserProfileNavigatorMenuHidden:!x,userProfileRouterPush:T,isLoading:_,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:j,locale:g,isMobile:u}):E:null)},ia=({siteType:e})=>l.createElement(St,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(Nl,null)),ra=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:r,together:s}}=o(N);return l.createElement(St,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(He,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Ml,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(Vl,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(Wl,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(Il,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(jl,{careSpecialties:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):null})))))},oa=e=>{var t,c;const{isMobile:d,locale:h,onTopBarAppears:u,languageOptions:g,sponsorComponent:p,sitewideBanner:v,sitewideBannerShown:E,className:f}=e,y=(()=>{const{t:e}=We(),{siteType:t,locale:l,configs:{enableNavCare:a,enableNavTogether:n,enableNavEcom:r,statics:s}}=o(N),c="marryBaby"===t;return i((()=>{var t;const i=[{name:e("home.navigator.menuItem.discover"),id:"categories",link:`${s.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:c?m.getAssetPath("categories-mb.svg"):m.getAssetPath("nav-icons/discover.svg"),popupType:"categories"},{name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${s.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Re[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:c?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}];return a&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:je(s.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===l?null:"care"}),n&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:je(s.TOGETHER_URL_FE+"/"),thumbnail:c?m.getAssetPath("community-mb.svg"):m.getAssetPath("nav-icons/community.svg"),popupType:"together"}),r&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:je(s.HOME_PAGE_URL+"/shop"),thumbnail:m.getAssetPath("nav-icons/shop.svg"),popupType:null,isNew:!0}),i}),[l,a,n,r])})();(()=>{const{isFirstLogin:e,userState:t}=o(N),{userInfo:l}=t;n((()=>{(null==l?void 0:l.id)&&(e?(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})})}),[])})();const w=E&&!!v,L=!!p,b=!!(null===(c=null===(t=null==p?void 0:p.props)||void 0===t?void 0:t.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:C,defaultHeaderHeight:k,headerHeight:M,headerBottom:P}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:l,isMobile:o})=>{const c=r(null),[m,d]=a(0),[h,u]=a(64),g=s(ot((()=>{var e,t,l,a;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(l=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===l?void 0:l.clientHeight)||0;window.scrollY<=n+200&&(d(n),u((null===(a=c.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||m))}),200),[]);n((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),n((()=>{g()}),[o,l,t,e,c.current]);const p=i((()=>{let a=o?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[o,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:w,isSponsored:L,hasSponsoredBanners:b,isMobile:d});return l.createElement(Ae,{id:"navigation-v2",style:{"--default-header-height":k+"px","--header-height":`calc(${M}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":P+"px"},className:f},l.createElement("section",{ref:C},l.createElement(na,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:l.createElement(Rt,{languageOptions:g,locale:h})})))},sa=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return l.createElement(xe,Object.assign({},t),l.createElement(oa,Object.assign({},t)))},ca=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,r,o,s,c,m,d,h,u,g,p,v,E,f,y,w,L;const b={},C="vi-VN_MB"===e;try{const k="tl-PH"===e?"lang=fil":"";try{const[d,h,u,g]=yield Promise.all([fetch(je(`${$e(e)}/wp-json/api/categories${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${k?"&"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}/favorites${k?"?"+k:""}`)).then((e=>e.json()))]);b.categories={items:(null===(l=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,hl))||[],spotlights:(null===(r=null===(i=null===(n=null===(a=null==h?void 0:h.data)||void 0===a?void 0:a.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,El))||void 0===r?void 0:r.filter(fl))||[]},b.healthTools={items:(null===(s=null===(o=null==u?void 0:u.data)||void 0===o?void 0:o.map)||void 0===s?void 0:s.call(o,ul))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,ul))||[]}}catch(e){}if(C||Se.includes(e))try{const[t,l]=yield Promise.all([fetch(je(`${Ve()}/api/v1/community?website_url=https://${Te[e]}`)).then((e=>e.json())),fetch(je(`${Ve()}/api/v1/options?website_url=https://${Te[e]}&meta_key=popular_post`)).then((e=>e.json()))]);b.together={items:(null===(u=null===(h=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===h?void 0:h.map)||void 0===u?void 0:u.call(h,De))||[],spotlights:(null===(v=null===(p=null===(g=null==l?void 0:l.data)||void 0===g?void 0:g.posts)||void 0===p?void 0:p.map)||void 0===v?void 0:v.call(p,ze))||[]}}catch(e){}if(Ue.includes(e))try{const[t,l]=yield Promise.all([fetch(je(Fe()+`/api/specialties?_ishome=1&site=${Te[e]}`)).then((e=>e.json())),fetch(je(Fe()+`/api/search/?site=${Te[e]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);b.care={items:(null===(y=null===(f=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.specialties)||void 0===f?void 0:f.map)||void 0===y?void 0:y.call(f,gl))||[],spotlights:(null===(L=null===(w=null==l?void 0:l._data.searches)||void 0===w?void 0:w.map)||void 0===L?void 0:L.call(w,pl))||[]}}catch(e){}}catch(e){console.error(e)}return b})),ma=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>ca(e||"en-PH")),(e=>{var t,l;return!!(null===(l=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===l?void 0:l.length)})))||{}}));export{mt as A,Tt as F,Rt as L,sa as N,wl as P,yl as U,ma as a,zt as b,dl as c,Ll as d,bl as e,ca as g};
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-b37ca7fe.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as r,useContext as o,useCallback as s}from"react";import{g as c}from"./core-37eed604.js";import{CommonGAssets as m}from"./gAssets.js";import{a as d}from"./useUniqueId-11e7ee77.js";import{S as h,d as u,e as g,f as p,g as v,h as E,i as f,j as y,k as w,N as L,l as b,m as C,n as k,o as M,p as P,q as N,r as H,s as x,t as A,u as B,v as T,w as _,x as R,y as O,z as S,A as U,B as j,C as Z,E as $,F as V,I as F,J as I,K as D,L as z,M as G,O as W,P as q,Q as K,R as Q,V as Y,W as J,X,Y as ee,Z as te,_ as le,$ as ae,a0 as ne,a1 as ie,a2 as re,a3 as oe,a4 as se,a5 as ce,a6 as me,a7 as de,a8 as he,a9 as ue,aa as ge,ab as pe,ac as ve,ad as Ee,ae as fe,af as ye,ag as we,ah as Le,ai as be,aj as Ce,ak as ke,al as Me,am as Pe,an as Ne,ao as He,ap as xe,aq as Ae}from"./index.styled-95eee9a9.js";import{T as Be}from"./index-7710d84f.js";import{d as Te,L as _e,S as Re,U as Oe,T as Se,C as Ue}from"./index-69322083.js";import{n as je,a as Ze}from"./normalizeLink-8f8f4ff0.js";import{c as $e,b as Ve,d as Fe}from"./routing-a0880ec6.js";import{P as Ie,b as De,c as ze}from"./dataTransform-114351ad.js";import{L as Ge}from"./index-0581c67c.js";import{u as We}from"./useTranslations-d99f7623.js";import qe from"lodash/throttle";import{g as Ke}from"./utils-935956f0.js";import{y as Qe,P as Ye,H as Je}from"./index.styled-35fdc194.js";import{B as Xe}from"./index-eaeee238.js";import{t as et}from"./theme-ce8a5c83.js";import{g as tt}from"./cookieHelper-71348695.js";import{Portal as lt}from"@mantine/core";import"./index-0e167804.js";import{C as at}from"./index-0cb6efec.js";import"./index.styled-9ff0f19e.js";import"./index-e6cd37f8.js";import"@mantine/dates";import"./Onboarding-d02d2429.js";import"./index-a36782dc.js";import"dayjs";import"./screenSizeContext-248097b4.js";import"styled-components";import"./isProduction-41487741.js";import"./index-5bf7c8d6.js";import"@mantine/hooks";import{L as nt}from"./constants-948a102d.js";import it from"string-format";import{I as rt}from"./index-f2186389.js";import ot from"lodash/debounce";import{u as st}from"./useIsInit-972370c0.js";const ct={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},mt=({type:e="square",size:t,avatarImg:i,avatarUrl:r,firstLetter:o,backgroundColor:s,onClick:c,style:m,className:d,width:h,height:u})=>{const g=t?ct[t]:void 0,[p,v]=a(!1);n((()=>{if(r){const e=document.createElement("img");e.setAttribute("src",r),e.addEventListener("error",(()=>{v(!0)}))}}),[r,v]);const E=(!r&&!i||p)&&o;return l.createElement(Qe,{style:Object.assign(Object.assign({},m),{"--size":g?g+"px":void 0,"--width-prop":h?h+"px":void 0,"--height-prop":u?u+"px":void 0,"--background-color":s}),"data-has-max":!(!h||!u),"data-avatar-type":e,onClick:c,className:d,avatarUrl:r,"data-custom-size":!!t},i,r&&!p&&l.createElement("img",{src:r}),E&&o)},dt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),ht=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/cambodiaSquare.png")},e)),ut=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),l.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),l.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),l.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),l.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),l.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),l.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),l.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),l.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),l.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),l.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),l.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),l.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),l.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),l.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),l.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),l.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),l.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),l.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),l.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),l.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),l.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),l.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"}))),gt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},l.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),l.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),l.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),l.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),l.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),l.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),l.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),l.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),l.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),l.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"}))),pt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),vt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/indiaSquare.png")},e)),Et=t=>{var a=e(t,[]);const n=d();return l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("g",{mask:`url(#${n})`},l.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),l.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},ft=t=>{var a=e(t,[]);const n=d();return l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("g",{clipPath:`url(#${n})`},l.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),l.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),l.createElement("defs",null,l.createElement("clipPath",{id:n},l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},yt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),l.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"}))),wt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),l.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),l.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"})),Lt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),l.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),l.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"}))),bt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),l.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),l.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"})),Ct=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),kt=e=>l.createElement("img",Object.assign({src:m.getAssetPath("flags/philippineSquare.png")},e)),Mt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),l.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),l.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})))),Pt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),l.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})),Nt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),l.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"}))),Ht=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),l.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"})),xt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),l.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"}))),At=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("clipPath",null,l.createElement("rect",{width:"24",height:"16",fill:"white"})),l.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),l.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})));var Bt="pfaLGRK";const Tt=({country:e,language:t,rounded:a,height:n,width:i,isTesting:r})=>{let o,s;switch(t){case"en":o=l.createElement(gt,null),s=l.createElement(ut,null);break;case"vi":o=l.createElement(At,null),s=l.createElement(xt,null);break;case"id":o=l.createElement(ft,{isTesting:r}),s=l.createElement(Et,{isTesting:r});break;case"th":o=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"km":o=l.createElement(ht,null),s=l.createElement(dt,null);break;case"ms":o=l.createElement(wt,null),s=l.createElement(yt,null);break;case"my":o=l.createElement(bt,null),s=l.createElement(Lt,null);break;case"tl":o=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"hi":o=l.createElement(vt,null),s=l.createElement(pt,null);break;case"zh":o=l.createElement(Pt,null),s=l.createElement(Mt,null)}if(!o&&!s)switch(e){case"VN":o=l.createElement(At,null),s=l.createElement(xt,null);break;case"ID":o=l.createElement(ft,{isTesting:r}),s=l.createElement(Et,{isTesting:r});break;case"TH":o=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"KH":o=l.createElement(ht,null),s=l.createElement(dt,null);break;case"MY":o=l.createElement(wt,null),s=l.createElement(yt,null);break;case"MM":o=l.createElement(bt,null),s=l.createElement(Lt,null);break;case"PH":o=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"IN":o=l.createElement(vt,null),s=l.createElement(pt,null);break;case"TW":o=l.createElement(Pt,null),s=l.createElement(Mt,null)}return l.createElement("div",{className:Bt,style:{"--width":i||20,"--height":n||20}},a?s:o)},_t=({options:e,label:t,labelRenderer:n,selected:i,onChange:r,showSelected:o=!0,style:s={},showIndicator:c=!0})=>{const[d,E]=a(!1);return l.createElement(l.Fragment,null,l.createElement(h,null,l.createElement(u,{onClick:()=>E((e=>!e))},t||(null==n?void 0:n(d))||null,l.createElement(g,{"data-is-open":d,style:s,"data-show-indicator":c},e.map(((e,t)=>l.createElement(p,{key:t,"data-selected":o&&i===e.value,onClick:t=>{i!==e.value&&(r(e.value),E((e=>!e))),t.stopPropagation()}},l.createElement(Be,{size:"p3"},e.label),o&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))))))),d&&l.createElement(v,{onClick:()=>E(!1)}))},Rt=({languageOptions:e,locale:t})=>{var a,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?l.createElement(_t,{options:e,selected:i.value,label:l.createElement(Ot,{locale:t,label:i.label||(null===(n=null===(a=t.split("-"))||void 0===a?void 0:a[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Ot=({locale:e,label:t,href:a})=>{var n,i,r;return l.createElement(E,{href:a},l.createElement(Tt,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(r=null==e?void 0:e.split("-"))||void 0===r?void 0:r[0]}),l.createElement("span",null,t))},St=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:r})=>{const[o,s]=i((()=>Ke(t)),[t]);return l.createElement(f,{lowerBound:e?0:o,upperBound:e?0:s,className:n,style:r},a)},Ut=e=>{const{allowBgScroll:t}=e||{},l=r();return{containerRef:l,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur())}}},jt=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:r=!0,targetAvatar:o,id:s,className:c})=>l.createElement(y,{"data-open":a,"data-type":e,"data-animation":r,"data-target":o,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),Zt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var $t="uJQBNNg",Vt="TfG3dM5",Ft="aMtjFNf",It="cSz2RR-",Dt="GyFm00F";function zt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=We(),r=i((()=>{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 l.createElement("div",{className:$t,onClick:()=>{t&&t()}},l.createElement(mt,{className:Vt,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:r,backgroundColor:"marryBaby"===a?et.mbColors.pink:et.colors.secondaryBase}),l.createElement("div",{className:Ft},l.createElement("div",{className:It},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:Dt,style:{"--bg-hellosites":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${m.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},n("userProfile.nav.header.viewProfile"))))}var Gt="gn6HmGG",Wt="FCx8FEM",qt="zMiRxaE",Kt="lZ2Z9MQ",Qt="rwm-agG",Yt="qMOscoq";const Jt=({themeName:e,locale:t,onClickItem:n})=>{const[r,o]=a(""),s=i((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:m.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:m.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:m.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:m.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?o((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:Gt},s.map((e=>l.createElement(Xt,{key:e.key,item:e,openKey:r,onClickItem:c,locale:t}))))},Xt=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:r}=We();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${Wt} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:qt,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:Kt,style:{backgroundImage:`url("${e.icon}")`}}),r(e.key),e.subMenu&&l.createElement("div",{className:Qt,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:Yt},e.subMenu.map((e=>l.createElement(Xt,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var el="-AZt1au",tl="IvSIfCI",ll="eahCJov",al="XIyViFs",nl="_4y-O0w3",il="kO8iNgD",rl="a1d4E10",ol="Tdguxxf",sl="-mOxsaU",cl="yPeDBNZ";const ml={helloSites:{member:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},dl=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=We(),r=i((()=>{var l,a;return(null===(a=null===(l=ml[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:nl,"data-user-rank":t},l.createElement("div",{className:il},l.createElement("div",{className:rl},l.createElement("div",{className:ol,style:{backgroundImage:`url("${r}")`}}),l.createElement("h3",{className:sl},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:cl},a," ",n("userProfile.nav.header.count.posts")))))},hl=e=>{var t,l,a,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>hl(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===(l=e.cat_parent)||void 0===l?void 0:l.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null}:{}},ul=e=>{var t,l;if(!e)return{};const a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(l=e.link)||void 0===l?void 0:l.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||a?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},gl=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},pl=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},vl=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=nt[l])||void 0===a?void 0:a.ALL}/${(null===(n=nt[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},El=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}:{},fl=e=>{const t=new Date;if(null==e?void 0:e.startDate){const l=new Date(e.startDate);if(t.getTime()<l.getTime())return!1}if(null==e?void 0:e.endDate){const l=new Date(e.endDate);if(t.getTime()>l.getTime())return!1}return!0},yl=({SSO_URL:e,UP_BASEPATH:t="user",themeName:r="helloSites",cardUrls:o=Zt,enableCare:s,enableTogether:c,enableEcom:d,userInfo:h,togetherApiDomain:u,userPostsNumber:g,onClickNavigationCard:p,onClickMyProfileButton:v,onClickMenuItem:E,onClickLogout:f,isUserProfileNavigatorMenuHidden:y=!1,isMyHealthEnabled:b=!1,locale:C})=>{const{t:k}=We(),[M,P]=a(g||0),N="marryBaby"===r;n((()=>{if(h&&void 0===g){const e=tt("hhg_user_token");e&&fetch(je(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+it(w.GET_USER_POSTS,Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${Te[e]}`})))(C,N,u)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,l,a;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&P((null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[C,null!==h,g,u,N]);const H=i((()=>{let e;return e=N?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?b:"eCom"!==e||d))}),[N,b]),x=i((()=>"marryBaby"===r?null:l.createElement(Xe,{color:"tertiary",icon:l.createElement("img",{src:m.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:f,className:al},k("userProfile.nav.menu.logout"))),[r]),A=l=>{window.location.href=je(`${e}${t}/${l}`)},B=e=>{const t=o[e];p?p(t):A(t)};return h?l.createElement("div",{className:el,"data-theme":r},l.createElement(zt,{userInfo:h,themeName:r,onClickMyProfileButton:()=>{v?v():A("profile")}}),l.createElement(dl,{themeName:r,rank:"member",numberOfPosts:M}),l.createElement("div",{className:tl},H.map((e=>l.createElement(L,{className:ll,key:e,themeName:r,type:e,onClick:B})))),!y&&l.createElement(l.Fragment,null,l.createElement(Jt,{themeName:r,locale:C,onClickItem:e=>{"logout"===e.link&&f?f():e.link&&!e.subMenu&&(E?E(e.link):A(e.link))}}),x)):null},wl=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:r,enableTogether:o,enableEcom:s,closePopup:c,siteType:m="helloSites",dispatchLogout:d,userProfileRouterPush:h,isUserProfileNavigatorMenuHidden:u,isMyHealthEnabled:g=!1,togetherApiDomain:p,locale:v})=>{const E=l=>{h?h(`/${l}`):e&&(window.location.href=je(`${e}${t}/${l}`))},f=e=>{E(e),c()};return l.createElement(jt,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:c},l.createElement(yl,{SSO_URL:e,UP_BASEPATH:t,themeName:m,userInfo:i,enableCare:r,enableTogether:o,enableEcom:s,onClickLogout:()=>{d&&(d(),c())},onClickMenuItem:f,onClickNavigationCard:f,onClickMyProfileButton:()=>{E("profile"),c()},isUserProfileNavigatorMenuHidden:u,isMyHealthEnabled:g,togetherApiDomain:p,locale:v}))},Ll=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:r}=We();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(lt,null,l.createElement(Ie,{type:"confirm",isOpen:e,closeIcon:l.createElement("img",{src:m.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:t},l.createElement(b,null,"helloSites"===i&&l.createElement("img",{src:m.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),l.createElement("h2",null,r("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,r("logout.popup.ask2")),l.createElement(C,{siteType:i},l.createElement(Xe,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},r("logout.popup.button.logout")),l.createElement(Xe,{className:"cancel-button",color:"primary",size:"lg",onClick:t},r("logout.popup.button.cancel"))))))},bl=({userInfo:e,siteType:i,onLoginClick:r,SSO_URL:o,currentUrl:s,isMinifyLogin:c,enableCare:d,enableTogether:h,enableEcom:u,isUserProfileNavigatorMenuHidden:g,UP_BASEPATH:p,isMyHealthEnabled:v,togetherApiDomain:E,onLogout:f,style:y,userProfileRouterPush:w,isLoading:L,locale:b})=>{const{t:C}=We(),[N,H]=a(!1),x=(null==e?void 0:e.name)||(null==e?void 0:e.username),[A,B]=a(!1);n((()=>{B(!0)}),[]);const{containerRef:T,onContainerFocus:_,onContainerBlur:R,onButtonMouseDown:O,onClose:S}=Ut();return L?l.createElement(Xe,{size:"sm",color:"transparent",isLoading:!0}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(k,{ref:T,style:y,tabIndex:0,onBlur:R,onFocus:_},l.createElement("div",{onMouseDown:O},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),l.createElement(mt,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==e?void 0:e.avatar,firstLetter:x&&x.length?x[0].toUpperCase():"A",backgroundColor:"marryBaby"===i?et.mbColors.pink:et.colors.secondaryBase})),l.createElement(wl,{UP_BASEPATH:p,SSO_URL:o,dispatchLogout:()=>{S(),H(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,closePopup:S,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:b})),l.createElement(Ll,{openLogoutPopup:N,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),H(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){H(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):l.createElement(M,{style:Object.assign({textDecoration:"none"},y),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:A?void 0:je(`${o}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(P,{onClick:r},l.createElement("img",{src:m.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):l.createElement(l.Fragment,null,"helloSites"===i&&l.createElement("img",{className:"mobile-only",src:m.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:r}),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:r,style:{paddingLeft:16}},l.createElement(Be,{size:"p3",color:et.mbColors.pink},C("navigation.loginJoin"))),l.createElement(Xe,{className:"login-btn",size:"md",color:"tertiary",onClick:r,icon:l.createElement("img",{src:m.getAssetPath("login.svg"),width:18,height:18}),theme:i},C("navigation.loginJoin"))))};var Cl="wnUb-dV",kl="cjbOxWe";const Ml=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:r,onClose:o}=Ut({allowBgScroll:!0}),s=st();return!e.popupType&&e.link?l.createElement(Pl,{isNew:e.isNew},l.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:kl},e.name))):l.createElement(Pl,{isNew:e.isNew},l.createElement("div",{ref:a,className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:r,className:kl},e.name,e.popupType&&l.createElement("div",{className:Cl},l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),l.isValidElement(t)?l.cloneElement(t,{onClose:o}):null))},Pl=({isNew:e,children:t})=>{const{t:a}=We();return e?l.createElement(rt,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):l.createElement(l.Fragment,null,t)},Nl=()=>{const{locale:e,configs:{statics:t},siteType:a}=o(N),{t:n}=We();return l.createElement(Ye,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===a?n("navigation.search.input.placeholder"):n("home.search",{site:_e[e||"en-PH"]?_e[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:l.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},l.createElement(H,null))})},Hl=({item:e,index:t=0})=>{var a;const{t:n}=We(),{locale:i,configs:{statics:r}}=o(N);if(!e)return null;const s=`${r.CARE_URL_FE}/${null===(a=nt[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return l.createElement(x,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},l.createElement("img",{src:m.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),l.createElement(A,null,l.createElement(B,null,l.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),l.createElement(T,null,l.createElement(_,null,e.name),l.createElement(R,null,e.description),l.createElement(O,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},xl=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:r}=o(N);return l.createElement(S,{"data-theme":r},l.createElement(U,null,l.createElement("img",{src:"marryBaby"===r?m.getAssetPath("navMBSpotlightBgNoData.svg"):m.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(j,null,i&&l.createElement("img",{src:i,width:64,height:64}))),l.createElement("div",null,e&&l.createElement(Z,null,e),a&&l.createElement($,null,a),n&&l.createElement("div",null,l.createElement("a",{href:t},l.createElement(Xe,{theme:r,className:"survey-contact-submit",size:"md"},n)))))},Al=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:r}=o(N);return l.createElement(V,null,l.createElement(F,null,l.createElement(Je,{tag:"marryBaby"===r?"h5":"h6",as:"h2",fontWeight:"semibold"},e),t&&l.createElement(I,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":r},t,l.createElement("img",{src:"marryBaby"===r?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),a)},Bl=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=We();return l.createElement(Al,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?l.createElement(D,null,null==e?void 0:e.slice(0,3).map(((e,t)=>l.createElement(Hl,{key:t,index:t,item:e})))):l.createElement(xl,{title:a("home.navigator.menu.care.noDatas.title"),description:a("home.navigator.menu.care.noDatas.description"),link:t,cta:a("home.navigator.menu.care.noDatas.cta"),icon:m.getAssetPath("community.svg")}))};var Tl="q3nL5cp",_l="_2DNf80G",Rl="Q-glX-n";const Ol=({onClosePopup:e})=>l.createElement("div",{className:`${Rl} close-btn`,onClick:e},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),Sl=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:n,hideCloseBtn:i})=>l.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},l.createElement(at,null,!i&&l.createElement("div",{className:_l},l.createElement(Ol,{onClosePopup:e})),l.createElement(at,{className:Tl},a))),Ul=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:r})=>{const{siteType:s}=o(N);return l.createElement(z,null,l.createElement(G,null,l.createElement(Je,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},r)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${a}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return l.createElement(W,{className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,href:i,"data-theme":s,key:t,onClick:n},l.createElement("div",{className:"icon"},l.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),l.createElement(Pl,{isNew:e.isNew},l.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),l.createElement(q,null,l.createElement("img",{src:m.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),t&&l.createElement(K,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},l.createElement(Q,{onClick:n,"data-theme":s,"data-is-heading-category":!1},t,l.createElement(Y,null,l.createElement("img",{className:"svg",src:"marryBaby"===s?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},jl=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:r}=We(),{locale:s,configs:{statics:c}}=o(N),m=`${c.CARE_URL_FE}/${null===(i=nt[s])||void 0===i?void 0:i.SPECIALTIES}`;return l.createElement(Sl,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(Ul,{headingTitle:r("home.navigator.menuItem.specialties"),hrefViewMore:m,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:r("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:vl({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement(Bl,{spotlights:n,hrefViewMore:m}))},Zl=({item:e,index:t=0})=>e?l.createElement(J,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},l.createElement(X,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),l.createElement(ee,null,e.title)):null,$l=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=We(),{configs:{statics:n}}=o(N);return l.createElement(Al,{title:a("home.navigator.menu.spotlights"),viewMore:a("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?l.createElement(te,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(Zl,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement(xl,{title:a("home.navigator.menu.category.noDatas.title"),description:a("home.navigator.menu.category.noDatas.description"),link:t,cta:a("home.navigator.menu.category.noDatas.cta"),icon:m.getAssetPath("Spotlight.svg")}))},Vl=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=We(),{locale:r,configs:{statics:s}}=o(N);return l.createElement(Sl,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(Ul,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:a,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),l.createElement($l,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/spotlight/`}))},Fl=({spotlights:e=[]})=>{const{configs:{statics:t}}=o(N),{t:a}=We();return l.createElement(Al,{title:a("home.navigator.menu.trendingPosts"),viewMore:a("home.navigator.menu.trendingPosts.seeMore"),link:Ze(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?l.createElement(le,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(ae,{index:t,post:e,key:e.id})))):l.createElement(xl,{title:a("home.navigator.menu.together.noPosts.title"),description:a("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:a("home.navigator.menu.together.noPosts.cta"),icon:m.getAssetPath("community.svg")}))},Il=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=We(),{configs:{statics:r}}=o(N);return l.createElement(Sl,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Ul,{hrefViewMore:Ze(r.TOGETHER_URL_FE),UrlFE:je(r.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),l.createElement(Fl,{spotlights:n}))},Dl=({item:e,index:t=0})=>{const{t:a}=We(),{configs:{statics:n}}=o(N);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return l.createElement(ne,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},l.createElement("img",{src:m.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(ie,null,l.createElement(re,null,e.title),l.createElement(oe,null,e.subtitle),l.createElement(se,null,a("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),l.createElement(ce,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},zl=({item:e,index:t=0,color:a})=>{const{t:n}=We(),{configs:{statics:i}}=o(N);if(!e)return null;const r=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>l.createElement(he,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>l.createElement(ue,null,l.createElement(ge,null,l.createElement(pe,null,e.title),l.createElement(ve,null,e.subtitle)),l.createElement(Ee,null,l.createElement("div",{className:"mobile-only"},n("home.seeMore")),l.createElement("img",{src:m.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})));return l.createElement(me,{href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":r,"data-color":a},l.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.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"})),l.createElement("img",{src:m.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),l.createElement(de,null,l.createElement("div",{className:"mobile-only"},s()),l.createElement("div",{className:"desktop-only"},c())),l.createElement("div",{className:"mobile-only"},c()),l.createElement("div",{className:"desktop-only"},s()))},Gl=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=We(),n=["pink","orange","green"],{siteType:i}=o(N);return l.createElement(Al,{title:a("home.navigator.menu.spotlightTools")},0!==t.length&&l.createElement(fe,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?l.createElement(zl,{key:t,index:t,item:e,color:n[t]}):l.createElement(Dl,{key:t,index:t,item:e})))),0===t.length&&l.createElement(xl,{title:a("home.navigator.menu.healthTools.noDatas.title"),description:a("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:a("home.navigator.menu.healthTools.noDatas.cta"),icon:m.getAssetPath("community.svg")}))},Wl=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var r;const{t:s}=We(),{configs:{statics:c}}=o(N),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(r=Re[e])||void 0===r?void 0:r.HEALTH_TOOLS)||""}`;return l.createElement(Sl,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Ul,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),l.createElement(Gl,{spotlightHealthTools:n,hrefViewMore:m}))};var ql="spdlGfq",Kl="vgS16jX";const Ql=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(Xe,{className:ql,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):l.createElement("a",{href:a,className:`${Kl} care-button no-replace-click`},l.createElement(Xe,{className:ql,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var Yl="y5VJdvw",Jl="oVhOSCy",Xl="pX8OXTM";function ea({className:e}){return l.createElement("div",null,l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function ta({siteType:e,type:t,enableSearch:a,className:n}){return"helloSites"===e?l.createElement("div",null,l.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?m.getAssetPath("hamburgerMenuNewWithSearch.svg"):m.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:n})):l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},l.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 la=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:r,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=o(N),{t:p}=We();return l.createElement(ye,{id:"categories-menu"},u?l.createElement(we,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},l.createElement(Nl,null)):null,l.createElement(Le,null,l.createElement(Ul,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===d&&l.createElement($l,{spotlightsList:(null==r?void 0:r.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(Gl,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}${(null===(a=Re[g])||void 0===a?void 0:a.HEALTH_TOOLS)||""}`}),"care"===d&&l.createElement(Bl,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=nt[g])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&l.createElement(Fl,{spotlights:null==m?void 0:m.spotlights})))},aa=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=o(N),{containerRef:i,onContainerFocus:r,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Ut();return l.createElement(St,{mediaQueryKey:"mbDown"},l.createElement("header",{className:Yl},l.createElement("div",{className:Jl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:r},l.createElement("div",{className:Xl,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(ea,{className:"mobile-close-icon"}),l.createElement(ta,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(la,{menuItems:t,closePopup:m}))))},na=({onTopBarAppears:e,type:t="home",languageMenu:i,menuItems:c})=>{var d;const{siteType:h,isMobile:u=!1,locale:g,sitewideBanner:p,sitewideBannerShown:v=!0,sponsorComponent:E,onBookingClick:f,currentUrl:y,onLoginClick:w,configs:{statics:L,enableNavCareBooking:b,enableSearchBar:C,enableNavCare:k,enableProfileMyHealth:M,enableNavTogether:P,enableProfileEcom:H,enableProfileNavigatorMenu:x},userState:{userInfo:A},onLogout:B,userProfileRouterPush:T,isUserLoading:_}=o(N),{t:R}=We(),{SSO_URL:O,HOME_PAGE_URL:S}=L,U=!!E,[j,Z]=a(!1),$=r(47),V=r(null),F=r(!1),I="helloSites"===h?null===(d=_e[g])||void 0===d?void 0:d.LOGO_TYPE:h,D="undefined"!=typeof window,z=s(qe((()=>{if("home"===t&&D){if(!V.current)return;const e=V.current.getBoundingClientRect();e.top<=0&&window.scrollY>$.current&&window.scrollY>e.height+20&&!F.current&&(F.current=!0,Z(!0)),window.scrollY<$.current&&F.current&&(F.current=!1,Z(!1)),window.scrollY>=0&&($.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!j)}),[j]),n((()=>(window.addEventListener("scroll",z,{passive:!0}),()=>{window.removeEventListener("scroll",z)})),[]),n((()=>{u&&z()}),[u]);const G=v&&!!p;return l.createElement(be,{"data-site-type":h,"data-sponsored":U,"data-sitewide-banner-shown":G,"data-header-type":t,"data-collapsed":j,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:V},p,l.createElement(Ce,{"data-site-type":h},l.createElement(ke,{"data-site-type":h},l.createElement(aa,{menuItems:c,type:t}),l.createElement("a",{href:S},l.createElement(Me,null,l.createElement(Ge,{style:{display:"flex"},type:I,badge:"id-ID"===g&&l.createElement("img",{src:m.getAssetPath("sehat-badge.png"),width:"56",height:"23"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===h?l.createElement(ra,{menuItems:c}):C&&l.createElement(ia,{siteType:h})),l.createElement(Pe,{"data-site-type":h},"marryBaby"===h?C&&l.createElement(ia,{siteType:h}):l.createElement(ra,{menuItems:c}),l.createElement(Ne,null,b&&l.createElement(St,{mediaQueryKey:"mbUp"},l.createElement(Ql,{careUrlFe:L.CARE_URL_FE,currentUrl:y,btnName:R("login.booking"),onCareHeaderClick:f})),i,l.createElement(bl,{userInfo:A,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=O?je(`${O}?returnUrl=${e}`):e}),SSO_URL:Ze(L.SSO_URL),currentUrl:y,onLogout:B,UP_BASEPATH:Oe,isMyHealthEnabled:M,enableCare:k,enableTogether:P,enableEcom:H,togetherApiDomain:Ze(L.TOGETHER_API),isUserProfileNavigatorMenuHidden:!x,userProfileRouterPush:T,isLoading:_,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:j,locale:g,isMobile:u}):E:null)},ia=({siteType:e})=>l.createElement(St,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(Nl,null)),ra=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:r,together:s}}=o(N);return l.createElement(St,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(He,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Ml,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(Vl,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(Wl,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(Il,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(jl,{careSpecialties:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):null})))))},oa=e=>{var t,c;const{isMobile:d,locale:h,onTopBarAppears:u,languageOptions:g,sponsorComponent:p,sitewideBanner:v,sitewideBannerShown:E,className:f}=e,y=(()=>{const{t:e}=We(),{siteType:t,locale:l,configs:{enableNavCare:a,enableNavTogether:n,enableNavEcom:r,statics:s}}=o(N),c="marryBaby"===t;return i((()=>{var t;const i=[{name:e("home.navigator.menuItem.discover"),id:"categories",link:`${s.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:c?m.getAssetPath("categories-mb.svg"):m.getAssetPath("nav-icons/discover.svg"),popupType:"categories"},{name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${s.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Re[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:c?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}];return a&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:je(s.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===l?null:"care"}),n&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:je(s.TOGETHER_URL_FE+"/"),thumbnail:c?m.getAssetPath("community-mb.svg"):m.getAssetPath("nav-icons/community.svg"),popupType:"together"}),r&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:je(s.HOME_PAGE_URL+"/shop"),thumbnail:m.getAssetPath("nav-icons/shop.svg"),popupType:null,isNew:!0}),i}),[l,a,n,r])})();(()=>{const{isFirstLogin:e,userState:t}=o(N),{userInfo:l}=t;n((()=>{(null==l?void 0:l.id)&&(e?(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})})}),[])})();const w=E&&!!v,L=!!p,b=!!(null===(c=null===(t=null==p?void 0:p.props)||void 0===t?void 0:t.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:C,defaultHeaderHeight:k,headerHeight:M,headerBottom:P}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:l,isMobile:o})=>{const c=r(null),[m,d]=a(0),[h,u]=a(64),g=s(ot((()=>{var e,t,l,a;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(l=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===l?void 0:l.clientHeight)||0;window.scrollY<=n+200&&(d(n),u((null===(a=c.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||m))}),200),[]);n((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),n((()=>{g()}),[o,l,t,e,c.current]);const p=i((()=>{let a=o?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[o,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:w,isSponsored:L,hasSponsoredBanners:b,isMobile:d});return l.createElement(Ae,{id:"navigation-v2",style:{"--default-header-height":k+"px","--header-height":`calc(${M}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":P+"px"},className:f},l.createElement("section",{ref:C},l.createElement(na,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:l.createElement(Rt,{languageOptions:g,locale:h})})))},sa=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return l.createElement(xe,Object.assign({},t),l.createElement(oa,Object.assign({},t)))},ca=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,r,o,s,c,m,d,h,u,g,p,v,E,f,y,w,L;const b={},C="vi-VN_MB"===e;try{const k="tl-PH"===e?"lang=fil":"";try{const[d,h,u,g]=yield Promise.all([fetch(je(`${$e(e)}/wp-json/api/categories${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${k?"&"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}${k?"?"+k:""}`)).then((e=>e.json())),fetch(je(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}/favorites${k?"?"+k:""}`)).then((e=>e.json()))]);b.categories={items:(null===(l=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,hl))||[],spotlights:(null===(r=null===(i=null===(n=null===(a=null==h?void 0:h.data)||void 0===a?void 0:a.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,El))||void 0===r?void 0:r.filter(fl))||[]},b.healthTools={items:(null===(s=null===(o=null==u?void 0:u.data)||void 0===o?void 0:o.map)||void 0===s?void 0:s.call(o,ul))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,ul))||[]}}catch(e){}if(C||Se.includes(e))try{const[t,l]=yield Promise.all([fetch(je(`${Ve()}/api/v1/community?website_url=https://${Te[e]}`)).then((e=>e.json())),fetch(je(`${Ve()}/api/v1/options?website_url=https://${Te[e]}&meta_key=popular_post`)).then((e=>e.json()))]);b.together={items:(null===(u=null===(h=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===h?void 0:h.map)||void 0===u?void 0:u.call(h,De))||[],spotlights:(null===(v=null===(p=null===(g=null==l?void 0:l.data)||void 0===g?void 0:g.posts)||void 0===p?void 0:p.map)||void 0===v?void 0:v.call(p,ze))||[]}}catch(e){}if(Ue.includes(e))try{const[t,l]=yield Promise.all([fetch(je(Fe()+`/api/specialties?_ishome=1&site=${Te[e]}`)).then((e=>e.json())),fetch(je(Fe()+`/api/search/?site=${Te[e]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);b.care={items:(null===(y=null===(f=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.specialties)||void 0===f?void 0:f.map)||void 0===y?void 0:y.call(f,gl))||[],spotlights:(null===(L=null===(w=null==l?void 0:l._data.searches)||void 0===w?void 0:w.map)||void 0===L?void 0:L.call(w,pl))||[]}}catch(e){}}catch(e){console.error(e)}return b})),ma=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>ca(e||"en-PH")),(e=>{var t,l;return!!(null===(l=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===l?void 0:l.length)})))||{}}));export{mt as A,Tt as F,Rt as L,sa as N,wl as P,yl as U,ma as a,zt as b,dl as c,Ll as d,bl as e,ca as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as t,useEffect as a,useRef as r}from"react";import{z as s,A as n}from"./index.styled-
|
|
1
|
+
import e,{useState as t,useEffect as a,useRef as r}from"react";import{z as s,A as n}from"./index.styled-35fdc194.js";import{_ as o}from"./tslib.es6-b37ca7fe.js";import{u as i}from"./useTranslations-d99f7623.js";import{useMantineTheme as l}from"@mantine/core";import"./gAssets.js";import"@mantine/dates";import"./index-69322083.js";import"./Onboarding-d02d2429.js";import{f as c}from"./index-a36782dc.js";import{B as d}from"./index-338f999a.js";import"dayjs";import"./screenSizeContext-248097b4.js";import"styled-components";import"./theme-ce8a5c83.js";import"./utils-935956f0.js";import"./isProduction-41487741.js";import"./translationsContext-b1fb6a48.js";import"string-format";import"./index-5bf7c8d6.js";import"@mantine/hooks";import{b0 as m}from"./index.styled-a5d24bea.js";const p=({type:t="solid",className:a,style:r})=>e.createElement(s,{style:r,className:a,"data-diver-type":t,dividerType:t}),v={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},u=t=>{var{siteType:a,role:r,title:s,styles:l,className:c}=t,d=o(t,["siteType","role","title","styles","className"]);const{t:m}=i(),p=r?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(r):"",{classes:u,cx:y}=n(void 0,{name:"AuthorBadge",styles:l});return p&&v[p]?e.createElement("div",Object.assign({className:y(u.root,c),"data-label-type":p,"data-is-marrybaby":"marryBaby"===a},d),s||m(v[p])):null};var y="Dudns9-";const b=({value:r,choices:s,onChange:n})=>{const[o,i]=t(r);return a((()=>{i(r)}),[r]),e.createElement("div",{className:y},s.map(((t,a)=>e.createElement(d,{dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel,size:"sm",variant:t.value===o?"primary":"tertiary",key:a,onClick:()=>{i(t.value),null==n||n(t.value)}},t.label||""))))},E=t=>{var{fallbackSrc:s}=t,n=o(t,["fallbackSrc"]);const{other:i}=l(),c=r(null),d=s||i.defaultImage,m=n.src||d||"",p=r(!1);a((()=>{m!==d&&c.current&&(c.current.src=m)}),[]),a((()=>{p.current=!1}),[m]);return e.createElement("img",Object.assign({ref:c},n,{src:m,onError:e=>{var t;p.current||(e.currentTarget.src=d||"",p.current=!0),null===(t=n.onError)||void 0===t||t.call(n,e)}}))},f=({style:r,initialTab:s,tabContent:n,onChange:o,className:i,dataEventCategory:l,dataEventAction:d,dataEventLabel:p,id:v,styles:u})=>{const{classes:y,cx:b,theme:E}=m(void 0,{name:"Tabs",styles:u}),[f,g]=t(s||0);return a((()=>{g(s)}),[s]),e.createElement("ul",{style:r,className:b(y.root,i),role:"tablist",id:v},n.map(((t,a)=>e.createElement("li",{className:`${y.item} ${f===a?"active":""}`,"aria-selected":f===a,role:"tab",onClick:()=>{g(a),o&&o(a)},onKeyDown:e=>{"Enter"===e.key&&(g(a),o&&o(a))},key:a,"data-event-category":t.dataEventCategory||l,"data-event-action":t.dataEventAction||d,"data-event-label":t.dataEventLabel||p,tabIndex:0,"data-testid":t.dataTestid},e.createElement("div",{className:y.itemInner},t.icon&&e.createElement("div",{className:y.icon},t.icon),e.createElement(c,{className:y.label,size:t.textSize||"sm",weight:t.textType||"bold",color:f===a?E.fn.primaryColor():t.textColor||E.colors.gray[4],dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name))))))};export{u as A,b as B,p as D,E as I,f as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-b37ca7fe.js";import l,{createContext as n,useContext as r,useRef as i,useState as t,useEffect as o}from"react";import{Carousel as s}from"@mantine/carousel";import{createStyles as d}from"@mantine/core";import{useViewportSize as c,useResizeObserver as a}from"@mantine/hooks";const u=s.Slide,v=n({}),m=(e,l)=>e>=l?e-l:e,h=n=>{var{children:r,blurFromCenter:u,blurFromIndex:h,blurLength:p=3,maxBlurOpacity:S=.5,onSlideChange:g,selectSlideWhenClick:f}=n,y=e(n,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);const{width:b}=c(),[C]=a(),k=i(null),[x,O]=t(0),I=()=>{var e,l,n,r,i;const t=(null===(e=null==k?void 0:k.current)||void 0===e?void 0:e.slideNodes())||[];if((null===(l=null==k?void 0:k.current)||void 0===l?void 0:l.slideNodes().length)<=(null===(n=null==k?void 0:k.current)||void 0===n?void 0:n.slidesInView().length))return t.map((e=>{e.classList.remove("center-slide"),e.style.opacity="1"})),!1;const o=null===(r=null==k?void 0:k.current)||void 0===r?void 0:r.selectedScrollSnap();O(o);const s=t.length,d=(null===(i=null==k?void 0:k.current)||void 0===i?void 0:i.slidesInView()).length,c=Math.floor(d/2),a=u?h+p-1:c,v=o+a,g=v===s?0:v>s?v-s:v,f=o-a,y=f<0?s+f:f>0?o-a:0,b=[...new Set(Array(2*a+1).fill("").map(((e,l)=>m(y+l,s))))];t.map(((e,l)=>{if(l===o?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==b.indexOf(l)){const i=S/p;for(let t=0;t<p;t++){if(l===m(y+t,s)||l===(r=s,(n=g-t)<0?r+n:n)){e.style.opacity=String((t+1)*i);break}e.style.opacity="1"}}else e.style.opacity="0";var n,r}))},j={getEmblaApi:e=>{k.current=e},onSlideChange:e=>{I(),null==g||g(e)}};o((()=>{(null==k?void 0:k.current)&&I()}),[b]);const w=d((()=>{var e,l;return{control:Object.assign({},(null===(e=null==k?void 0:k.current)||void 0===e?void 0:e.slideNodes().length)<=(null===(l=null==k?void 0:k.current)||void 0===l?void 0:l.slidesInView().length)&&{display:"none"})}})),{classes:E}=w();return l.createElement(v.Provider,{value:{slider:null==k?void 0:k.current,centerSlide:x,selectSlideWhenClick:f}},l.createElement(s,Object.assign({classNames:{control:E.control},ref:C,slideSize:"auto",containScroll:"trimSnaps"},j,y,{loop:!0}),"function"==typeof r?r(x):r))};h.Slide=n=>{var{children:s,onClick:d,innerSlideProps:c}=n,a=e(n,["children","onClick","innerSlideProps"]);const{slider:m,selectSlideWhenClick:h}=r(v),p=i(),S=i(""),[g,f]=t(0);o((()=>{S.current=String(Math.round(1e4*Math.random()))}),[]),o((()=>{const e=(null==m?void 0:m.slideNodes())||[];f(e.findIndex((e=>e.dataset.key===S.current)))}),[m]);const y={ref:p,"data-key":S.current,"data-index":g};return l.createElement(u,Object.assign({},y,a),l.createElement("div",Object.assign({style:{height:"100%"},onClick:()=>{h&&(null==m||m.scrollTo(g)),null==d||d(g)}},c),s))};export{h as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-b37ca7fe.js";import t from"react";import{Autocomplete as r,Image as s,Select as o}from"@mantine/core";import{CommonGAssets as n}from"./gAssets.js";const a=a=>{var{keepSearch:c=!1}=a,i=e(a,["keepSearch"]);return c?t.createElement(r,Object.assign({rightSection:t.createElement(s,{src:n.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},i)):t.createElement(o,Object.assign({rightSection:t.createElement(s,{src:n.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},i))};export{a as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as o}from"./Onboarding-833526af.js";import{i as e}from"./isProduction-35c0745f.js";const l={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},i={HELLO_HEALTH_GROUP:{lng:o.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:o.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:o.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:o.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:o.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:o.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:o.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:o.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:o.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:o.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:o.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:o.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}},n="userGeoLocationCoordinates",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},t={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},s={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},E="user",c=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],I=["vi-VN"],h=["vi-VN","id-ID","en-PH","tl-PH"],T=["vi-VN","id-ID"],O={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var r;!function(o){o.bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id"}(r||(r={}));const p={[o.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[o.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[o.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[o.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},_="hhg_user_token";var m=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:n,domainLocales:a,LOCALE_SPECS:t,STATIC_PAGES:s,UP_BASEPATH:E,TOGETHER_LOCALES:c,ECOM_LOCALES:I,CARE_LOCALES:h,CARE_BOOKING_LOCALES:T,FAVICONS:O,get QUERY_HEALTH_TOOL(){return r},ISO_FORMAT:p,BEARER_TOKEN_COOKIE:_,siteHost:l,siteOptions:i,isProduction:e});export{_ as B,h as C,I as E,O as F,p as I,t as L,r as Q,s as S,c as T,E as U,T as a,n as b,l as c,a as d,m as i,i as s};
|
|
1
|
+
import{L as o}from"./Onboarding-d02d2429.js";import{i as e}from"./isProduction-41487741.js";const l={HELLO_HEALTH_GROUP:"hellohealthgroup.com",HELLO_DOCTOR:"hellodoctor.com.ph",HELLO_DOCTOR_FIL:"hellodoctor.com.ph/fil",HELLO_KRUPET:"hellokrupet.com",HELLO_SWASTHYA:"helloswasthya.com",HELLO_SEHAT:"hellosehat.com",HELLO_SAYARWON:"hellosayarwon.com",HELLO_DOKTOR:"hellodoktor.com",HELLO_KHUNMOR:"hellokhunmor.com",HELLO_YISHI:"helloyishi.com.tw",HELLO_BACSI:"hellobacsi.com",MARRY_BABY:"www.marrybaby.vn"},i={HELLO_HEALTH_GROUP:{lng:o.PhilippinesEnglish,ns:"translation",name:"Hello Health Group",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:10},HELLO_DOCTOR:{lng:o.PhilippinesEnglish,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"en",phoneCountry:"PH",siteId:5},HELLO_DOCTOR_FIL:{lng:o.PhilippinesTagalog,ns:"translation",name:"Hello Doctor",theme:"hellosite",dayjs:"tl-ph",phoneCountry:"PH",siteId:5},HELLO_KRUPET:{lng:o.Cambodia,ns:"translation",name:"Hello Krupet",theme:"hellosite",dayjs:"km",phoneCountry:"KH",siteId:4},HELLO_SWASTHYA:{lng:o.India,ns:"translation",name:"Hello Swasthya",theme:"hellosite",dayjs:"hi",phoneCountry:"IN",siteId:9},HELLO_SEHAT:{lng:o.Indonesia,ns:"translation",name:"Hello Sehat",theme:"hellosite",dayjs:"id",phoneCountry:"ID",siteId:2},HELLO_SAYARWON:{lng:o.Myanmar,ns:"translation",name:"Hello Sayarwon",theme:"hellosite",dayjs:"my",phoneCountry:"MM",siteId:7},HELLO_DOKTOR:{lng:o.Malaysia,ns:"translation",name:"Hello Doktor",theme:"hellosite",dayjs:"ms-my",phoneCountry:"MY",siteId:3},HELLO_KHUNMOR:{lng:o.Thailand,ns:"translation",name:"Hello Khunmor",theme:"hellosite",dayjs:"th",phoneCountry:"TH",siteId:6},HELLO_YISHI:{lng:o.Taiwan,ns:"translation",name:"Hello Yishi",theme:"hellosite",dayjs:"zh-tw",phoneCountry:"TW",siteId:8},HELLO_BACSI:{lng:o.Vietnam,ns:"translation",name:"Hello Bacsi",theme:"hellosite",dayjs:"vi",phoneCountry:"VN",siteId:1},MARRY_BABY:{lng:o.Vietnam,ns:"marrybaby",name:"Marry Baby",theme:"marrybaby",dayjs:"vi",phoneCountry:"VN",siteId:11}},n="userGeoLocationCoordinates",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},t={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},s={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},E="user",c=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],I=["vi-VN"],h=["vi-VN","id-ID","en-PH","tl-PH"],T=["vi-VN","id-ID"],O={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};var r;!function(o){o.bmi="mi",o.gender="gndr",o.age="ge",o.slug="slug",o.resultId="resultId",o.bmr="mr",o.height="gt",o.weight="wght",o.source="surc",o.type="tp",o.startDate="sd",o.additional="tnl",o.week="wk",o.twins="twn",o.weightBefore="wb",o.yourself="yrslf",o.intensity="sy",o.rate="rt",o.method="mthd",o.day="dy",o.pwg="pwg",o.cycle="le",o.period="prd",o.access_token="tkn",o.name="nm",o.id="id"}(r||(r={}));const p={[o.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[o.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[o.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[o.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[o.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[o.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},_="hhg_user_token";var m=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:n,domainLocales:a,LOCALE_SPECS:t,STATIC_PAGES:s,UP_BASEPATH:E,TOGETHER_LOCALES:c,ECOM_LOCALES:I,CARE_LOCALES:h,CARE_BOOKING_LOCALES:T,FAVICONS:O,get QUERY_HEALTH_TOOL(){return r},ISO_FORMAT:p,BEARER_TOKEN_COOKIE:_,siteHost:l,siteOptions:i,isProduction:e});export{_ as B,h as C,I as E,O as F,p as I,t as L,r as Q,s as S,c as T,E as U,T as a,n as b,l as c,a as d,m as i,i as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-b37ca7fe.js";import t from"react";import{S as s,a}from"./index.styled-9ff0f19e.js";const r=a=>{var{type:r,color:l,style:o}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},l&&{"--text-color":l}),o)},c))},l=s=>{var{type:r,color:l,style:o}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({"data-type":r,style:Object.assign(Object.assign({},o),l&&{"--text-color":l})},c))};export{l as M,r as a};
|