@hhgtech/hhg-components 1.26.90 → 1.26.92
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/onboardingV2/index.styled.d.ts +1 -1
- package/build/components/onboardingV2/modal.d.ts +1 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-56177a37.js → core-1d0e7cad.js} +1 -1
- package/build/{dataTransform-20d13a31.js → dataTransform-b5d490bf.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-5245f89b.js → core-287da2a0.js} +1 -1
- package/build/esm/{dataTransform-014038c4.js → dataTransform-f0fde252.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-eebca968.js → fixedBottomAdBlock-3ad92340.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-69157262.js → getDynamicHealthTool-73aa2b8f.js} +1 -1
- package/build/esm/{getSocialList-9e35b635.js → getSocialList-0dd8c584.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-26017c50.js → index-0886ed47.js} +1 -1
- package/build/esm/{index-14230615.js → index-09cc17f8.js} +1 -1
- package/build/esm/{index-8d3ada80.js → index-0b8fad30.js} +1 -1
- package/build/esm/{index-9e64a6f8.js → index-158ea754.js} +1 -1
- package/build/esm/{index-85f2ae35.js → index-296ba428.js} +1 -1
- package/build/esm/index-3248a5b9.js +1 -0
- package/build/esm/{index-19093397.js → index-41906bb1.js} +1 -1
- package/build/esm/index-4f76310d.js +1 -0
- package/build/esm/index-5ec00f2e.js +1 -0
- package/build/esm/{index-ed1dc2d6.js → index-6008056a.js} +1 -1
- package/build/esm/{index-665a63ac.js → index-7cec9b65.js} +1 -1
- package/build/esm/{index-6c6ec853.js → index-7e976767.js} +1 -1
- package/build/esm/{index-1343c6b0.js → index-9c419037.js} +1 -1
- package/build/esm/{index-fe3a8fc8.js → index-b157ad5a.js} +1 -1
- package/build/esm/{index-1c18def6.js → index-b8c39234.js} +1 -1
- package/build/esm/{index-3d55daa2.js → index-bba06c8b.js} +1 -1
- package/build/esm/{index-0500bc5c.js → index-bc21cc71.js} +1 -1
- package/build/esm/{index-548724df.js → index-c9e116e1.js} +1 -1
- package/build/esm/{index-b47f0b10.js → index-ccb64e84.js} +1 -1
- package/build/esm/{index-ca8eefc7.js → index-df682eed.js} +1 -1
- package/build/esm/{index-ca689deb.js → index-e4cbc2e9.js} +1 -1
- package/build/esm/{index-a5b0a327.js → index-e8d560f6.js} +1 -1
- package/build/esm/{index-923db96c.js → index-fd5345c2.js} +2 -2
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-f5a58ce8.js → index.styled-3f746abb.js} +5 -5
- package/build/esm/{index.styled-4e767659.js → index.styled-4316ce6f.js} +1 -1
- package/build/esm/{index.styled-b5fb1062.js → index.styled-6b7daa08.js} +4 -4
- package/build/esm/{index.styled-e00de7cb.js → index.styled-b294239a.js} +1 -1
- package/build/esm/{index.styles-3c556ffd.js → index.styles-cb810a2f.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +27 -19
- package/build/esm/pwg.js +1 -1
- package/build/esm/{routing-742d99f7.js → routing-e7ce81d5.js} +1 -1
- package/build/esm/{screenSizeContext-288635f9.js → screenSizeContext-cff744e8.js} +4 -4
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-24025af6.js → translationsProvider-45aa995c.js} +1 -1
- package/build/esm/{types-3db1e4e5.js → types-1518ff92.js} +1 -1
- package/build/esm/{types-7219f564.js → types-928f12b1.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-4a16d19b.js +1 -0
- package/build/esm/{useRafState-ddc900ac.js → useRafState-9abb35c6.js} +1 -1
- package/build/esm/{useTranslations-40cc3846.js → useTranslations-05f41e0c.js} +1 -1
- package/build/esm/{utils-fb19fa65.js → utils-3a81bfc5.js} +1 -1
- package/build/esm/vaccination.js +1 -1
- package/build/{fixedBottomAdBlock-83e3a96e.js → fixedBottomAdBlock-fa13a738.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-9b7cb861.js → getDynamicHealthTool-9a6bdec0.js} +1 -1
- package/build/{getSocialList-a8689182.js → getSocialList-a1b2e4af.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-157167e9.js → index-025c6bd0.js} +1 -1
- package/build/{index-cf54404d.js → index-0a2e957e.js} +1 -1
- package/build/index-1140a3a2.js +1 -0
- package/build/{index-0e4ad6d2.js → index-1a3ffd8d.js} +1 -1
- package/build/{index-32240853.js → index-29511c3b.js} +1 -1
- package/build/{index-83b4c8c1.js → index-31103d73.js} +1 -1
- package/build/{index-becbd7ba.js → index-520167ed.js} +1 -1
- package/build/{index-66771b80.js → index-594e2692.js} +1 -1
- package/build/{index-6e477c9d.js → index-6aa7aca3.js} +1 -1
- package/build/index-6e2bc191.js +1 -0
- package/build/{index-7a76b248.js → index-815a7671.js} +1 -1
- package/build/{index-47998785.js → index-8211d245.js} +1 -1
- package/build/{index-beec9f93.js → index-83ed600e.js} +1 -1
- package/build/{index-dd0aa2ff.js → index-87efebf1.js} +1 -1
- package/build/{index-229e056a.js → index-9ba7538a.js} +1 -1
- package/build/{index-bddd9ad1.js → index-a0fee40b.js} +1 -1
- package/build/{index-8c617ea9.js → index-afefb050.js} +1 -1
- package/build/{index-2dda81e1.js → index-b5a5c1f5.js} +1 -1
- package/build/index-c0b7acad.js +1 -0
- package/build/{index-3c46e042.js → index-ca958b5e.js} +1 -1
- package/build/{index-35940707.js → index-e20aa731.js} +1 -1
- package/build/{index-c761acff.js → index-e2cd2c2a.js} +1 -1
- package/build/{index-d2e56ea7.js → index-f56ef100.js} +1 -1
- package/build/index.js +1 -1
- package/build/index.styled-1ca8b6fd.js +50 -0
- package/build/{index.styled-364b5b1a.js → index.styled-1ce44150.js} +1 -1
- package/build/{index.styled-69390558.js → index.styled-894970db.js} +1 -1
- package/build/{index.styled-079b344f.js → index.styled-9805117c.js} +3 -3
- package/build/{index.styles-32212155.js → index.styles-414a6ca0.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +18 -10
- package/build/pwg.js +1 -1
- package/build/{routing-f40c053d.js → routing-5735000a.js} +1 -1
- package/build/{screenSizeContext-a1a51474.js → screenSizeContext-a53f71a9.js} +1 -1
- package/build/together.js +1 -1
- package/build/{translationsProvider-32d63de4.js → translationsProvider-04162688.js} +1 -1
- package/build/{types-29606f8d.js → types-29ddfb13.js} +1 -1
- package/build/{types-b5e046af.js → types-f2d6c7ee.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-3bad7390.js +1 -0
- package/build/{useRafState-f2040d59.js → useRafState-39fb176c.js} +1 -1
- package/build/{useTranslations-f592ea85.js → useTranslations-d06d985e.js} +1 -1
- package/build/{utils-63061c46.js → utils-f89d23c5.js} +3 -3
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/esm/index-7b5a360a.js +0 -1
- package/build/esm/index-b09e878b.js +0 -1
- package/build/esm/index-df0d1345.js +0 -1
- package/build/esm/useHealthToolCache-e31ebc15.js +0 -1
- package/build/index-25cac3a2.js +0 -1
- package/build/index-b93ce7a9.js +0 -1
- package/build/index-f41753d1.js +0 -1
- package/build/index.styled-5e518e4e.js +0 -50
- package/build/useHealthToolCache-65aa56f7.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-731fcd48.js → BMI_BOYS.percentile.monthly-c2b012e0.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-08e0db38.js → BMI_BOYS.percentile.weekly-827bdc7e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-9c050a58.js → BMI_BOYS.percentile.yearly-b6d3b887.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-adfe0c84.js → BMI_BOYS.zscore.monthly-0a9e8cfb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-f6b9a9ba.js → BMI_BOYS.zscore.weekly-40bc7f69.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-1135d39d.js → BMI_BOYS.zscore.yearly-0ffb8a37.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-a4d09bd1.js → BMI_GIRLS.percentile.monthly-bbb727a1.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-cddbe7ce.js → BMI_GIRLS.percentile.weekly-d5364d69.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-ded0443f.js → BMI_GIRLS.percentile.yearly-50979945.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-063a317d.js → BMI_GIRLS.zscore.monthly-b5722bfa.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-cb540fde.js → BMI_GIRLS.zscore.weekly-77bb4af3.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-01ea900b.js → BMI_GIRLS.zscore.yearly-86821724.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-381033f8.js → HEAD CIRCUM_BOYS.percentile.monthly-9c03e0e2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-3ce757b8.js → HEAD CIRCUM_BOYS.percentile.weekly-03b234a6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-830aa7c1.js → HEAD CIRCUM_BOYS.percentile.yearly-9265d8a0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-081b1fa8.js → HEAD CIRCUM_BOYS.zscore.monthly-416c62e3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c0956253.js → HEAD CIRCUM_BOYS.zscore.weekly-ba47a314.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8b22d2ab.js → HEAD CIRCUM_BOYS.zscore.yearly-9c2b7700.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-81d81c75.js → HEAD CIRCUM_GIRLS.percentile.monthly-fa1cea09.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-f812a923.js → HEAD CIRCUM_GIRLS.percentile.weekly-45a08738.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-5bbc1330.js → HEAD CIRCUM_GIRLS.percentile.yearly-58f2e036.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-6d56be49.js → HEAD CIRCUM_GIRLS.zscore.monthly-75c2a08e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-a1f73325.js → HEAD CIRCUM_GIRLS.zscore.weekly-d7d1bc58.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-95bef485.js → HEAD CIRCUM_GIRLS.zscore.yearly-0f12a70d.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-fd72818a.js → HEIGHT_BOYS.percentile.monthly-7139b708.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-d3a563d3.js → HEIGHT_BOYS.percentile.weekly-9b4cd03e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-b2edb8ec.js → HEIGHT_BOYS.percentile.yearly-bf3dfe9c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-127e1477.js → HEIGHT_BOYS.zscore.monthly-a93bff48.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-1336caa1.js → HEIGHT_BOYS.zscore.weekly-2d199a01.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-62902fa9.js → HEIGHT_BOYS.zscore.yearly-2c791a5a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-673f3b4a.js → HEIGHT_GIRLS.percentile.monthly-68e4f626.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-8722c2e0.js → HEIGHT_GIRLS.percentile.weekly-b24d8949.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-b9bedd45.js → HEIGHT_GIRLS.percentile.yearly-ec50e4d9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-402d837a.js → HEIGHT_GIRLS.zscore.monthly-93837ca3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-8502d25a.js → HEIGHT_GIRLS.zscore.weekly-0fb407c9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-0ad8acf6.js → HEIGHT_GIRLS.zscore.yearly-1ac1fda3.js} +0 -0
- /package/build/{Onboarding-7cc9dbb5.js → Onboarding-f62b7c2d.js} +0 -0
- /package/build/{Visible-e8309f4b.js → Visible-c4221a9f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-1555b3f0.js → WEIGHT_BOYS.percentile.monthly-fe0ddadf.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-a4eabe24.js → WEIGHT_BOYS.percentile.weekly-d292299d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-1684e7f8.js → WEIGHT_BOYS.percentile.yearly-6a951f22.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-358a8d91.js → WEIGHT_BOYS.zscore.monthly-0d46770d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-0d2b4a79.js → WEIGHT_BOYS.zscore.weekly-869eee54.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-00cdb9d6.js → WEIGHT_BOYS.zscore.yearly-13d5ab6c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-34e196a3.js → WEIGHT_GIRLS.percentile.monthly-a5e05e62.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-e7a58b09.js → WEIGHT_GIRLS.percentile.weekly-28348209.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-2c561eeb.js → WEIGHT_GIRLS.percentile.yearly-78225f0a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-a546e4ec.js → WEIGHT_GIRLS.zscore.monthly-aae490f4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-1bc1a430.js → WEIGHT_GIRLS.zscore.weekly-e93a15bc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-13ac4113.js → WEIGHT_GIRLS.zscore.yearly-be0a1945.js} +0 -0
- /package/build/{constants-5192062e.js → constants-d2101ca6.js} +0 -0
- /package/build/{cookieHelper-46d4b7fd.js → cookieHelper-ed296864.js} +0 -0
- /package/build/{dataTransform-a16d72cd.js → dataTransform-460d9b5f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-2025d4f9.js → BMI_BOYS.percentile.monthly-ffd74a8f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-9539103d.js → BMI_BOYS.percentile.weekly-dd70ef2d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-ea1aab75.js → BMI_BOYS.percentile.yearly-ab89a1a9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-83b89d45.js → BMI_BOYS.zscore.monthly-6388dc1c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-391302c2.js → BMI_BOYS.zscore.weekly-47e313fb.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-40ce61f7.js → BMI_BOYS.zscore.yearly-5697eb76.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-fea93567.js → BMI_GIRLS.percentile.monthly-cb6e9626.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-f7c2cc3f.js → BMI_GIRLS.percentile.weekly-7918dfa6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-f54da003.js → BMI_GIRLS.percentile.yearly-144afa6d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-e711b761.js → BMI_GIRLS.zscore.monthly-58b8a971.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-19ba4ebf.js → BMI_GIRLS.zscore.weekly-38b62c2d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-a168bc3b.js → BMI_GIRLS.zscore.yearly-f65d8fed.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f7d71784.js → HEAD CIRCUM_BOYS.percentile.monthly-f32d5d16.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-6cc4b9c6.js → HEAD CIRCUM_BOYS.percentile.weekly-d1188826.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-56413a94.js → HEAD CIRCUM_BOYS.percentile.yearly-ccdc4a76.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-e0bcfabe.js → HEAD CIRCUM_BOYS.zscore.monthly-1657e218.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-55bb8b2e.js → HEAD CIRCUM_BOYS.zscore.weekly-4942aadd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-323cb42e.js → HEAD CIRCUM_BOYS.zscore.yearly-ba667c8e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-eba62ae1.js → HEAD CIRCUM_GIRLS.percentile.monthly-3ed303cb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e20b5321.js → HEAD CIRCUM_GIRLS.percentile.weekly-f0a66a29.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e31e6e90.js → HEAD CIRCUM_GIRLS.percentile.yearly-7bac9ff7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3d01adca.js → HEAD CIRCUM_GIRLS.zscore.monthly-ff2686a4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-c315f494.js → HEAD CIRCUM_GIRLS.zscore.weekly-b71f44c3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b5c629a5.js → HEAD CIRCUM_GIRLS.zscore.yearly-688f9fdc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-a9141804.js → HEIGHT_BOYS.percentile.monthly-93a79a0f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-200da98a.js → HEIGHT_BOYS.percentile.weekly-85152374.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-97fc21f2.js → HEIGHT_BOYS.percentile.yearly-33141bc3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-8b17f94b.js → HEIGHT_BOYS.zscore.monthly-63578604.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e1938c9c.js → HEIGHT_BOYS.zscore.weekly-8f3f896e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-00152906.js → HEIGHT_BOYS.zscore.yearly-841c3739.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-45c087ce.js → HEIGHT_GIRLS.percentile.monthly-21a5f0d1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-717d9d66.js → HEIGHT_GIRLS.percentile.weekly-f32ca6f2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-a9fc5a75.js → HEIGHT_GIRLS.percentile.yearly-af3a6524.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c8d6b6ef.js → HEIGHT_GIRLS.zscore.monthly-976cca3e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0c93aef9.js → HEIGHT_GIRLS.zscore.weekly-fcb194c1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-afc53fe8.js → HEIGHT_GIRLS.zscore.yearly-cece9234.js} +0 -0
- /package/build/esm/{Onboarding-9b176c5f.js → Onboarding-c617fc08.js} +0 -0
- /package/build/esm/{Visible-f692bdc8.js → Visible-e32ee8e6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-674b22ba.js → WEIGHT_BOYS.percentile.monthly-bc7de941.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-81e7c152.js → WEIGHT_BOYS.percentile.weekly-de17504d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-afcff3a1.js → WEIGHT_BOYS.percentile.yearly-d3fccf74.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-81581bf9.js → WEIGHT_BOYS.zscore.monthly-4e18016d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-e860cf53.js → WEIGHT_BOYS.zscore.weekly-92b0c3ac.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-fd79a3c4.js → WEIGHT_BOYS.zscore.yearly-f609f6fc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-ce3a68cd.js → WEIGHT_GIRLS.percentile.monthly-9feb144d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3c2c6c4a.js → WEIGHT_GIRLS.percentile.weekly-36bbaab5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-2e6a0e2c.js → WEIGHT_GIRLS.percentile.yearly-383d5b99.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-2a0e9c24.js → WEIGHT_GIRLS.zscore.monthly-0ae887da.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-2fcd4a6b.js → WEIGHT_GIRLS.zscore.weekly-6661cab4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-7f88daec.js → WEIGHT_GIRLS.zscore.yearly-e299fe45.js} +0 -0
- /package/build/esm/{constants-b0edeabf.js → constants-35d65b60.js} +0 -0
- /package/build/esm/{cookieHelper-0d65cf95.js → cookieHelper-2cbe1035.js} +0 -0
- /package/build/esm/{dataTransform-837c683c.js → dataTransform-715b5a49.js} +0 -0
- /package/build/esm/{index-d0d2f9af.js → index-66c80184.js} +0 -0
- /package/build/esm/{index-705a0fc9.js → index-e3ab2d22.js} +0 -0
- /package/build/esm/{isProduction-981ce990.js → isProduction-4fef7321.js} +0 -0
- /package/build/esm/{localizeNumberFormat-22c4adb7.js → localizeNumberFormat-2f15f5fa.js} +0 -0
- /package/build/esm/{normalizeLink-b32a4a47.js → normalizeLink-90f745f4.js} +0 -0
- /package/build/esm/{theme-a84fe578.js → theme-ece63f2d.js} +0 -0
- /package/build/esm/{translationsContext-1b5066cc.js → translationsContext-4f212429.js} +0 -0
- /package/build/esm/{tslib.es6-259c22bf.js → tslib.es6-e2d31641.js} +0 -0
- /package/build/esm/{types-06f20eb3.js → types-17a30b9c.js} +0 -0
- /package/build/esm/{useIsInit-6a304384.js → useIsInit-f9f57b53.js} +0 -0
- /package/build/esm/{useOutsideClick-741d3d3a.js → useOutsideClick-1f41394c.js} +0 -0
- /package/build/esm/{useScrollbarSize-665168b0.js → useScrollbarSize-1f12cc48.js} +0 -0
- /package/build/esm/{useUniqueId-9349db16.js → useUniqueId-3b1e07f5.js} +0 -0
- /package/build/esm/{utils-d8727c6c.js → utils-cbf1b9ef.js} +0 -0
- /package/build/{index-6fc6851b.js → index-af4b7ca1.js} +0 -0
- /package/build/{index-29d82b95.js → index-f63ba927.js} +0 -0
- /package/build/{isProduction-7307c9cc.js → isProduction-1526e3b1.js} +0 -0
- /package/build/{localizeNumberFormat-8ee0d823.js → localizeNumberFormat-79849871.js} +0 -0
- /package/build/{normalizeLink-1a82cbd4.js → normalizeLink-dc97338e.js} +0 -0
- /package/build/{theme-eb7b9fa4.js → theme-7081ff14.js} +0 -0
- /package/build/{translationsContext-ea6b6655.js → translationsContext-da11c607.js} +0 -0
- /package/build/{tslib.es6-040827d9.js → tslib.es6-88b4acd5.js} +0 -0
- /package/build/{types-ff06eadc.js → types-dce388cc.js} +0 -0
- /package/build/{useIsInit-94d3a500.js → useIsInit-0fa13615.js} +0 -0
- /package/build/{useOutsideClick-8e86494c.js → useOutsideClick-790ffb19.js} +0 -0
- /package/build/{useScrollbarSize-6c327e37.js → useScrollbarSize-dcb62883.js} +0 -0
- /package/build/{useUniqueId-5312c7e5.js → useUniqueId-e3d40f2d.js} +0 -0
- /package/build/{utils-dd14790b.js → utils-75f3db22.js} +0 -0
package/build/esm/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{B as t}from"./index-1c18def6.js";import{C as a}from"./index-fe3a8fc8.js";import{T as l}from"./index-b09e878b.js";import n from"dayjs";import{d as o}from"./index-1343c6b0.js";import{t as r}from"./theme-a84fe578.js";import{u as i}from"./useTranslations-40cc3846.js";import{L as c}from"./index-665a63ac.js";import{M as s}from"./index-b47f0b10.js";import"./tslib.es6-259c22bf.js";import"./utils-d8727c6c.js";import"styled-components";import"./gAssets.js";import"./isProduction-981ce990.js";import"./Onboarding-9b176c5f.js";import"date-fns/locale";import"./translationsContext-1b5066cc.js";import"string-format";import"./index.styled-4e767659.js";var m="Lj0qoTD",d="OO-qFWT";const v=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:d,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),u=({className:c,type:s="main",footerInfo:d,isMobile:u,locale:g})=>{var E,y,p,b,N,f,h,k,F,$,z,j,C,T,x,M,L,w,A,_,H,S,B,I,G,D,q,O;const{t:J}=i(),K=null==d?void 0:d.menu,P=(null===(y=null===(E=null==d?void 0:d.general)||void 0===E?void 0:E.verified)||void 0===y?void 0:y.filter(Boolean))||[];return e.createElement("footer",{className:`${m} ${c||""}`,style:"mini"===s?{backgroundColor:r.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":s},"main"===s?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(p=null==d?void 0:d.general)||void 0===p?void 0:p.logo,alt:"Logo","data-is-sehat":"id-ID"===g})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(b=null==d?void 0:d.general)||void 0===b?void 0:b.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(N=null==d?void 0:d.social)||void 0===N?void 0:N.title),e.createElement("div",{className:"icons"},null===(h=null===(f=null==d?void 0:d.social)||void 0===f?void 0:f.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[g]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===($=K[1])||void 0===$?void 0:$.menu_title),null===(j=null===(z=K[1])||void 0===z?void 0:z.items)||void 0===j?void 0:j.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[g]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${o[g]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(C=K[2])||void 0===C?void 0:C.menu_title),null===(x=null===(T=K[2])||void 0===T?void 0:T.items)||void 0===x?void 0:x.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(M=null==d?void 0:d.branch)||void 0===M?void 0:M.title),e.createElement("div",{className:"flags"},null===(w=null===(L=null==d?void 0:d.branch)||void 0===L?void 0:L.branch)||void 0===w?void 0:w.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(v,{url:t.flag,isMobile:u,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},P.length?P.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(l,{size:"xs",type:"regular",className:"copyright-content"},null===(A=null==d?void 0:d.general)||void 0===A?void 0:A.copyright.replace(/{currentYear}/gi,n().get("year").toString()))),"vi-VN"===g&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==d?void 0:d.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(_=null==d?void 0:d.menu[1])||void 0===_?void 0:_.menu_title),null===(S=null===(H=null==d?void 0:d.menu[1])||void 0===H?void 0:H.items)||void 0===S?void 0:S.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${o[g]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[g]}${t.url}`},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${o[g]}${t.url}`,size:"sm",type:"regular",style:{color:r.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==d?void 0:d.menu[2])||void 0===B?void 0:B.menu_title),null===(G=null===(I=null==d?void 0:d.menu[2])||void 0===I?void 0:I.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(l,{size:"sm",type:"regular",style:{color:r.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==s&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(D=null==d?void 0:d.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(O=null===(q=null==d?void 0:d.social)||void 0===q?void 0:q.socials)||void 0===O?void 0:O.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var g="B6-KmWK",E="GS-7mbG",y="qc5bEb3",p="CQGVeuT",b="_6JMoel-",N="_8eUT8Jr",f="cjDwoLi";const h=({logoType:t="marryBaby",footerMenu:l,background:o})=>{var i;if(!l)return null;const{general:m,menu:d,socials:v}=l;return e.createElement("footer",{className:g,style:{backgroundColor:o||"none"}},e.createElement("div",{className:f},e.createElement(a,null,e.createElement("div",{className:E},null==d?void 0:d.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:y,key:`mbf${l}`},e.createElement(s,{className:"title",type:"subtitle-1",color:r.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:p,key:`mbitem${l}`},e.createElement(s,{type:"bodytext-2",color:r.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:b},e.createElement(c,{className:"logo",type:t}),e.createElement("div",{className:"content"},e.createElement(s,{type:"bodytext-2",color:r.mbColors.gray},null==m?void 0:m.content)),e.createElement("div",{className:"social-link"},null==v?void 0:v.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{loading:"lazy",src:t,alt:a}))))))),e.createElement("div",{className:N},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(s,{type:"bodytext-3",color:r.colors.white},null==m?void 0:m.copyright.replace(/{currentYear}/gi,n().get("year").toString())),e.createElement("div",{className:"verify"},null===(i=null==m?void 0:m.verified)||void 0===i?void 0:i.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a})))))))))},k=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:r})=>"helloSites"===o?e.createElement(u,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(h,{footerMenu:n,background:r});export{k as Footer};
|
|
1
|
+
import e from"react";import{B as t}from"./index-b8c39234.js";import{C as a}from"./index-b157ad5a.js";import{T as l}from"./index-5ec00f2e.js";import n from"dayjs";import{d as o}from"./index-9c419037.js";import{t as r}from"./theme-ece63f2d.js";import{u as i}from"./useTranslations-05f41e0c.js";import{L as c}from"./index-7cec9b65.js";import{M as s}from"./index-ccb64e84.js";import"./tslib.es6-e2d31641.js";import"./utils-cbf1b9ef.js";import"styled-components";import"./gAssets.js";import"./isProduction-4fef7321.js";import"./Onboarding-c617fc08.js";import"date-fns/locale";import"./translationsContext-4f212429.js";import"string-format";import"./index.styled-4316ce6f.js";var m="Lj0qoTD",d="OO-qFWT";const v=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:d,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),u=({className:c,type:s="main",footerInfo:d,isMobile:u,locale:g})=>{var E,y,p,b,f,N,h,k,F,$,z,j,C,T,x,M,L,w,A,_,H,S,B,I,G,D,q,O;const{t:J}=i(),K=null==d?void 0:d.menu,P=(null===(y=null===(E=null==d?void 0:d.general)||void 0===E?void 0:E.verified)||void 0===y?void 0:y.filter(Boolean))||[];return e.createElement("footer",{className:`${m} ${c||""}`,style:"mini"===s?{backgroundColor:r.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":s},"main"===s?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(p=null==d?void 0:d.general)||void 0===p?void 0:p.logo,alt:"Logo","data-is-sehat":"id-ID"===g})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(b=null==d?void 0:d.general)||void 0===b?void 0:b.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(f=null==d?void 0:d.social)||void 0===f?void 0:f.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==d?void 0:d.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[g]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===($=K[1])||void 0===$?void 0:$.menu_title),null===(j=null===(z=K[1])||void 0===z?void 0:z.items)||void 0===j?void 0:j.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[g]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${o[g]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(C=K[2])||void 0===C?void 0:C.menu_title),null===(x=null===(T=K[2])||void 0===T?void 0:T.items)||void 0===x?void 0:x.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(M=null==d?void 0:d.branch)||void 0===M?void 0:M.title),e.createElement("div",{className:"flags"},null===(w=null===(L=null==d?void 0:d.branch)||void 0===L?void 0:L.branch)||void 0===w?void 0:w.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(v,{url:t.flag,isMobile:u,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},P.length?P.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(l,{size:"xs",type:"regular",className:"copyright-content"},null===(A=null==d?void 0:d.general)||void 0===A?void 0:A.copyright.replace(/{currentYear}/gi,n().get("year").toString()))),"vi-VN"===g&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==d?void 0:d.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(_=null==d?void 0:d.menu[1])||void 0===_?void 0:_.menu_title),null===(S=null===(H=null==d?void 0:d.menu[1])||void 0===H?void 0:H.items)||void 0===S?void 0:S.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${o[g]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${o[g]}${t.url}`},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${o[g]}${t.url}`,size:"sm",type:"regular",style:{color:r.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==d?void 0:d.menu[2])||void 0===B?void 0:B.menu_title),null===(G=null===(I=null==d?void 0:d.menu[2])||void 0===I?void 0:I.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(l,{size:"sm",type:"regular",style:{color:r.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==s&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(D=null==d?void 0:d.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(O=null===(q=null==d?void 0:d.social)||void 0===q?void 0:q.socials)||void 0===O?void 0:O.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var g="B6-KmWK",E="GS-7mbG",y="qc5bEb3",p="CQGVeuT",b="_6JMoel-",f="_8eUT8Jr",N="cjDwoLi";const h=({logoType:t="marryBaby",footerMenu:l,background:o})=>{var i;if(!l)return null;const{general:m,menu:d,socials:v}=l;return e.createElement("footer",{className:g,style:{backgroundColor:o||"none"}},e.createElement("div",{className:N},e.createElement(a,null,e.createElement("div",{className:E},null==d?void 0:d.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:y,key:`mbf${l}`},e.createElement(s,{className:"title",type:"subtitle-1",color:r.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:p,key:`mbitem${l}`},e.createElement(s,{type:"bodytext-2",color:r.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:b},e.createElement(c,{className:"logo",type:t}),e.createElement("div",{className:"content"},e.createElement(s,{type:"bodytext-2",color:r.mbColors.gray},null==m?void 0:m.content)),e.createElement("div",{className:"social-link"},null==v?void 0:v.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{loading:"lazy",src:t,alt:a}))))))),e.createElement("div",{className:f},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(s,{type:"bodytext-3",color:r.colors.white},null==m?void 0:m.copyright.replace(/{currentYear}/gi,n().get("year").toString())),e.createElement("div",{className:"verify"},null===(i=null==m?void 0:m.verified)||void 0===i?void 0:i.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a})))))))))},k=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:r})=>"helloSites"===o?e.createElement(u,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(h,{footerMenu:n,background:r});export{k as Footer};
|
package/build/esm/gAssets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s}from"./index-
|
|
1
|
+
import{d as s}from"./index-9c419037.js";import{i as e}from"./isProduction-4fef7321.js";import"date-fns/locale";import"./Onboarding-c617fc08.js";const t="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,t,o)=>{const i="https://hhg-common."+[t||this.getBaseDomain(),o||this.subPath,s].join("/");return e||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:e}=window.location,o=e.split("."),i=s[Object.keys(s).find((t=>e.includes(s[t])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return e=s,!isNaN(parseFloat(e))&&isFinite(e);var e}))||!i?t:i}return t}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-e2d31641.js";import{g as i}from"./core-287da2a0.js";import{n as o}from"./normalizeLink-90f745f4.js";import{c as l}from"./routing-e7ce81d5.js";const e=(t,i)=>{var o,l;if(!t)return{};const e="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(o=t.link)||void 0===o?void 0:o.startsWith("http"))?t.link:`${e}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${e}/`,"/")),subtitle:t.subtitle,title:t.title}},n=i=>t(void 0,void 0,void 0,(function*(){var t,n;try{let r;r="undefined"!=typeof window?window.fetch:yield require("node-fetch");const s="tl-PH"===i?"lang=fil":"";let a=[];try{const d=yield r(o(`${l(i)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(n=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>e(t,i))))||[]}catch(t){}return a}catch(t){console.error(t)}})),r=o=>t(void 0,void 0,void 0,(function*(){return(yield i("all-health-tools",(()=>n(o||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{r as a,e as f,n as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{L as t}from"./Onboarding-9b176c5f.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
|
|
1
|
+
import e from"react";import{L as t}from"./Onboarding-c617fc08.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
|
package/build/esm/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{u as useTranslations}from"./useTranslations-
|
|
1
|
+
export{u as useTranslations}from"./useTranslations-05f41e0c.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-1f12cc48.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-9abb35c6.js";export{u as useHealthToolsCache}from"./useHealthToolCache-4a16d19b.js";export{u as useIsInit}from"./useIsInit-f9f57b53.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-1f41394c.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-3b1e07f5.js";import"react";import"./translationsContext-4f212429.js";import"string-format";import"lodash/debounce";import"./tslib.es6-e2d31641.js";import"./cookieHelper-2cbe1035.js";import"./getDynamicHealthTool-73aa2b8f.js";import"./core-287da2a0.js";import"./isProduction-4fef7321.js";import"./normalizeLink-90f745f4.js";import"./routing-e7ce81d5.js";import"./index-9c419037.js";import"date-fns/locale";import"./Onboarding-c617fc08.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-
|
|
1
|
+
export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-45aa995c.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-4f212429.js";import"react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as r,B as t,a as e,b as a,L as n,O as o}from"./Onboarding-
|
|
1
|
+
import{G as r,B as t,a as e,b as a,L as n,O as o}from"./Onboarding-c617fc08.js";var s=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return e},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o}});export{s as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-259c22bf.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as o,useContext as r,useCallback as s}from"react";import{g as c}from"./core-5245f89b.js";import{CommonGAssets as m}from"./gAssets.js";import{a as d}from"./useUniqueId-9349db16.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 b,l as L,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 S,z as O,A as U,B as j,C as Z,E as $,F as V,I,J as F,K as D,L as z,M as G,O as W,P as q,Q as K,R as Y,V as Q,W as J,X,Y as ee,Z as te,_ as le,$ as ae,a0 as ne,a1 as ie,a2 as oe,a3 as re,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 be,ai as Le,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-e00de7cb.js";import{T as Be}from"./index-b09e878b.js";import{d as Te,L as _e,S as Re,U as Se,T as Oe,C as Ue}from"./index-1343c6b0.js";import{n as je,a as Ze}from"./normalizeLink-b32a4a47.js";import{c as $e,b as Ve,d as Ie}from"./routing-742d99f7.js";import{P as Fe,b as De,c as ze}from"./dataTransform-014038c4.js";import{L as Ge}from"./index-665a63ac.js";import{u as We}from"./useTranslations-40cc3846.js";import qe from"lodash/throttle";import{g as Ke}from"./utils-d8727c6c.js";import{y as Ye,P as Qe,H as Je}from"./index.styles-3c556ffd.js";import{B as Xe}from"./index-1c18def6.js";import{t as et}from"./theme-a84fe578.js";import{g as tt}from"./cookieHelper-0d65cf95.js";import{Portal as lt}from"@mantine/core";import"./index-ca8eefc7.js";import{C as at}from"./index-fe3a8fc8.js";import"./index.styled-4e767659.js";import"./index-705a0fc9.js";import{L as nt}from"./constants-b0edeabf.js";import it from"string-format";import"@mantine/dates";import"./Onboarding-9b176c5f.js";import"./index-0500bc5c.js";import{I as ot}from"./index-df0d1345.js";import"./index-85f2ae35.js";import"@mantine/hooks";import"dayjs";import"./screenSizeContext-288635f9.js";import"styled-components";import"./isProduction-981ce990.js";import rt from"lodash/debounce";import{u as st}from"./useIsInit-6a304384.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:o,firstLetter:r,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(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{v(!0)}))}}),[o,v]);const E=(!o&&!i||p)&&r;return l.createElement(Ye,{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:o,"data-custom-size":!!t},i,o&&!p&&l.createElement("img",{src:o}),E&&r)},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"})),bt=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"}))),Lt=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:o})=>{let r,s;switch(t){case"en":r=l.createElement(gt,null),s=l.createElement(ut,null);break;case"vi":r=l.createElement(At,null),s=l.createElement(xt,null);break;case"id":r=l.createElement(ft,{isTesting:o}),s=l.createElement(Et,{isTesting:o});break;case"th":r=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"km":r=l.createElement(ht,null),s=l.createElement(dt,null);break;case"ms":r=l.createElement(wt,null),s=l.createElement(yt,null);break;case"my":r=l.createElement(Lt,null),s=l.createElement(bt,null);break;case"tl":r=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"hi":r=l.createElement(vt,null),s=l.createElement(pt,null);break;case"zh":r=l.createElement(Pt,null),s=l.createElement(Mt,null)}if(!r&&!s)switch(e){case"VN":r=l.createElement(At,null),s=l.createElement(xt,null);break;case"ID":r=l.createElement(ft,{isTesting:o}),s=l.createElement(Et,{isTesting:o});break;case"TH":r=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"KH":r=l.createElement(ht,null),s=l.createElement(dt,null);break;case"MY":r=l.createElement(wt,null),s=l.createElement(yt,null);break;case"MM":r=l.createElement(Lt,null),s=l.createElement(bt,null);break;case"PH":r=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"IN":r=l.createElement(vt,null),s=l.createElement(pt,null);break;case"TW":r=l.createElement(Pt,null),s=l.createElement(Mt,null)}return l.createElement("div",{className:Bt,style:{"--width":i||20,"--height":n||20}},a?s:r)},_t=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],Rt=(e="")=>_t.some((t=>new URL(e).origin.endsWith(t))),St=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:r=!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":r&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),E((e=>!e))),t.stopPropagation()}},l.createElement(Be,{size:"p3"},e.label),r&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))))))),d&&l.createElement(v,{onClick:()=>E(!1)}))},Ot=({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(St,{options:e,selected:i.value,label:l.createElement(Ut,{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},Ut=({locale:e,label:t,href:a})=>{var n,i,o;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===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),l.createElement("span",null,t))},jt=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:o})=>{const[r,s]=i((()=>Ke(t)),[t]);return l.createElement(f,{lowerBound:e?0:r,upperBound:e?0:s,className:n,style:o},a)},Zt=e=>{const{allowBgScroll:t}=e||{},l=o();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())}}},$t=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:o=!0,targetAvatar:r,id:s,className:c})=>l.createElement(y,{"data-open":a,"data-type":e,"data-animation":o,"data-target":r,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),Vt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var It="uJQBNNg",Ft="TfG3dM5",Dt="aMtjFNf",zt="cSz2RR-",Gt="GyFm00F";function Wt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=We(),o=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:It,onClick:()=>{t&&t()}},l.createElement(mt,{className:Ft,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:o,backgroundColor:"marryBaby"===a?et.mbColors.pink:et.colors.secondaryBase}),l.createElement("div",{className:Dt},l.createElement("div",{className:zt},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:Gt,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 qt="gn6HmGG",Kt="FCx8FEM",Yt="zMiRxaE",Qt="lZ2Z9MQ",Jt="rwm-agG",Xt="qMOscoq";const el=({themeName:e,locale:t,onClickItem:n})=>{const[o,r]=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:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:m.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?r((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:qt},s.map((e=>l.createElement(tl,{key:e.key,item:e,openKey:o,onClickItem:c,locale:t}))))},tl=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:o}=We();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${Kt} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:Yt,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:Qt,style:{backgroundImage:`url("${e.icon}")`}}),o(e.key),e.subMenu&&l.createElement("div",{className:Jt,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:Xt},e.subMenu.map((e=>l.createElement(tl,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var ll="-AZt1au",al="IvSIfCI",nl="eahCJov",il="XIyViFs",ol="_4y-O0w3",rl="kO8iNgD",sl="a1d4E10",cl="Tdguxxf",ml="-mOxsaU",dl="yPeDBNZ";const hl={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")}},ul=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=We(),o=i((()=>{var l,a;return(null===(a=null===(l=hl[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:ol,"data-user-rank":t},l.createElement("div",{className:rl},l.createElement("div",{className:sl},l.createElement("div",{className:cl,style:{backgroundImage:`url("${o}")`}}),l.createElement("h3",{className:ml},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:dl},a," ",n("userProfile.nav.header.count.posts")))))},gl=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=>gl(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,customizedUrl:e.customized_url||null}:{}},pl=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}},vl=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},El=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},fl=({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:""}`},yl=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}:{},wl=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},bl=({SSO_URL:e,UP_BASEPATH:t="user",themeName:o="helloSites",cardUrls:r=Vt,enableCare:s,enableTogether:c,enableEcom:d,enableMySaved:h,userInfo:u,togetherApiDomain:g,userPostsNumber:p,onClickNavigationCard:v,onClickMyProfileButton:E,onClickMenuItem:f,onClickLogout:y,isUserProfileNavigatorMenuHidden:L=!1,isMyHealthEnabled:C=!1,locale:k})=>{const{t:M}=We(),[P,N]=a(p||0),H="marryBaby"===o;n((()=>{if(u&&void 0===p){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]}`})))(k,H,g)),{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)&&N((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)))}}),[k,null!==u,p,g,H]);const x=i((()=>{let e;return e=H?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?C:"eCom"===e?d:"mySaved"!==e||h))}),[H,C]),A=i((()=>"marryBaby"===o?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:y,className:il},M("userProfile.nav.menu.logout"))),[o]),B=l=>{window.location.href=je(`${e}${t}/${l}`)},T=e=>{const t=r[e];v?v(t):B(t)};return u?l.createElement("div",{className:ll,"data-theme":o},l.createElement(Wt,{userInfo:u,themeName:o,onClickMyProfileButton:()=>{E?E():B("profile")}}),l.createElement(ul,{themeName:o,rank:"member",numberOfPosts:P}),l.createElement("div",{className:al},x.map((e=>l.createElement(b,{className:nl,key:e,themeName:o,type:e,onClick:T})))),!L&&l.createElement(l.Fragment,null,l.createElement(el,{themeName:o,locale:k,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(f?f(e.link):B(e.link))}}),A)):null},Ll=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,closePopup:m,siteType:d="helloSites",dispatchLogout:h,userProfileRouterPush:u,isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p=!1,togetherApiDomain:v,locale:E})=>{const f=l=>{u?u(`/${l}`):e&&(window.location.href=je(`${e}${t}/${l}`))},y=e=>{f(e),m()};return l.createElement($t,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},l.createElement(bl,{SSO_URL:e,UP_BASEPATH:t,themeName:d,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,onClickLogout:()=>{h&&(h(),m())},onClickMenuItem:y,onClickNavigationCard:y,onClickMyProfileButton:()=>{f("profile"),m()},isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p,togetherApiDomain:v,locale:E}))},Cl=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:o}=We();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(lt,null,l.createElement(Fe,{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(L,null,"helloSites"===i&&l.createElement("img",{src:m.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),l.createElement("h2",null,o("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,o("logout.popup.ask2")),l.createElement(C,{siteType:i},l.createElement(Xe,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},o("logout.popup.button.logout")),l.createElement(Xe,{className:"cancel-button",color:"primary",size:"lg",onClick:t},o("logout.popup.button.cancel"))))))},kl=({userInfo:e,siteType:i,onLoginClick:o,SSO_URL:r,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:b,locale:L,enableMySaved:C})=>{const{t:N}=We(),[H,x]=a(!1),A=(null==e?void 0:e.name)||(null==e?void 0:e.username),[B,T]=a(!1);n((()=>{T(!0)}),[]);const{containerRef:_,onContainerFocus:R,onContainerBlur:S,onButtonMouseDown:O,onClose:U}=Zt();return b?l.createElement(Xe,{size:"sm",color:"transparent",isLoading:!0}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(k,{ref:_,style:y,tabIndex:0,onBlur:S,onFocus:R},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:A&&A.length?A[0].toUpperCase():"A",backgroundColor:"marryBaby"===i?et.mbColors.pink:et.colors.secondaryBase})),l.createElement(Ll,{UP_BASEPATH:p,SSO_URL:r,dispatchLogout:()=>{U(),x(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,enableMySaved:C,closePopup:U,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:L})),l.createElement(Cl,{openLogoutPopup:H,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),x(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){x(!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:B?void 0:je(`${r}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(P,{onClick:o},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:o}),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:o,style:{paddingLeft:16}},l.createElement(Be,{size:"p3",color:et.mbColors.pink},N("navigation.loginJoin"))),l.createElement(Xe,{className:"login-btn",size:"md",color:"tertiary",onClick:o,icon:l.createElement("img",{src:m.getAssetPath("login.svg"),width:18,height:18}),theme:i},N("navigation.loginJoin"))))};var Ml="spdlGfq",Pl="vgS16jX";const Nl=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(Xe,{className:Ml,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:`${Pl} care-button no-replace-click`},l.createElement(Xe,{className:Ml,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var Hl="y5VJdvw",xl="oVhOSCy",Al="pX8OXTM";function Bl({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 Tl({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 _l=()=>{const{locale:e,configs:{statics:t},siteType:a}=r(N),{t:n}=We();return l.createElement(Qe,{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))})};var Rl="wnUb-dV",Sl="cjbOxWe";const Ol=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:r}=Zt({allowBgScroll:!0}),s=st();return!e.popupType&&e.link?l.createElement(Ul,{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:Sl},e.name))):l.createElement(Ul,{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:o,className:Sl},e.name,e.popupType&&l.createElement("div",{className:Rl},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:r}):null))},Ul=({isNew:e,children:t})=>{const{t:a}=We();return e?l.createElement(ot,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):l.createElement(l.Fragment,null,t)},jl=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:o})=>{const{siteType:s}=r(N);return l.createElement(x,null,l.createElement(A,null,l.createElement(Je,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},o)),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(B,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,href:i},!Rt(i)&&{target:"_blank"},{"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(Ul,{isNew:e.isNew},l.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),l.createElement(T,null,l.createElement("img",{src:m.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),t&&l.createElement(_,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},l.createElement(R,{onClick:n,"data-theme":s,"data-is-heading-category":!1},t,l.createElement(S,null,l.createElement("img",{className:"svg",src:"marryBaby"===s?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},Zl=({item:e,index:t=0})=>{var a;const{t:n}=We(),{locale:i,configs:{statics:o}}=r(N);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(a=nt[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return l.createElement(O,{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(U,null,l.createElement(j,null,l.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),l.createElement(Z,null,l.createElement($,null,e.name),l.createElement(V,null,e.description),l.createElement(I,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},$l=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:o}=r(N);return l.createElement(F,{"data-theme":o},l.createElement(D,null,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("navMBSpotlightBgNoData.svg"):m.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(z,null,i&&l.createElement("img",{src:i,width:64,height:64}))),l.createElement("div",null,e&&l.createElement(G,null,e),a&&l.createElement(W,null,a),n&&l.createElement("div",null,l.createElement("a",{href:t},l.createElement(Xe,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},Vl=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(N);return l.createElement(q,null,l.createElement(K,null,l.createElement(Je,{tag:"marryBaby"===o?"h5":"h6",as:"h2",fontWeight:"semibold"},e),t&&l.createElement(Y,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),a)},Il=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=We();return l.createElement(Vl,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?l.createElement(Q,null,null==e?void 0:e.slice(0,3).map(((e,t)=>l.createElement(Zl,{key:t,index:t,item:e})))):l.createElement($l,{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")}))},Fl=({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,Dl=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=We(),{configs:{statics:n}}=r(N);return l.createElement(Vl,{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(Fl,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement($l,{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")}))},zl=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(N),{t:a}=We();return l.createElement(Vl,{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($l,{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")}))},Gl=({item:e,index:t=0})=>{const{t:a}=We(),{configs:{statics:n}}=r(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(oe,null,e.title),l.createElement(re,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"})))},Wl=({item:e,index:t=0,color:a})=>{const{t:n}=We(),{configs:{statics:i}}=r(N);if(!e)return null;const o=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:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"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()))},ql=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=We(),n=["pink","orange","green"],{siteType:i}=r(N);return l.createElement(Vl,{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(Wl,{key:t,index:t,item:e,color:n[t]}):l.createElement(Gl,{key:t,index:t,item:e})))),0===t.length&&l.createElement($l,{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")}))},Kl=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=r(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(_l,null)):null,l.createElement(be,null,l.createElement(jl,{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(Dl,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(ql,{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(Il,{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(zl,{spotlights:null==m?void 0:m.spotlights})))},Yl=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=r(N),{containerRef:i,onContainerFocus:o,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Zt();return l.createElement(jt,{mediaQueryKey:"mbDown"},l.createElement("header",{className:Hl},l.createElement("div",{className:xl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:o},l.createElement("div",{className:Al,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(Bl,{className:"mobile-close-icon"}),l.createElement(Tl,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(Kl,{menuItems:t,closePopup:m}))))};var Ql="q3nL5cp",Jl="_2DNf80G",Xl="Q-glX-n";const ea=({onClosePopup:e})=>l.createElement("div",{className:`${Xl} 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"}))),ta=({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:Jl},l.createElement(ea,{onClosePopup:e})),l.createElement(at,{className:Ql},a))),la=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:o}=We(),{locale:s,configs:{statics:c}}=r(N),m=`${c.CARE_URL_FE}/${null===(i=nt[s])||void 0===i?void 0:i.SPECIALTIES}`;return l.createElement(ta,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(jl,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:m,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:fl({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement(Il,{spotlights:n,hrefViewMore:m}))},aa=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=We(),{locale:o,configs:{statics:s}}=r(N);return l.createElement(ta,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(jl,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/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.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),l.createElement(Dl,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},na=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=We(),{configs:{statics:o}}=r(N);return l.createElement(ta,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(jl,{hrefViewMore:Ze(o.TOGETHER_URL_FE),UrlFE:je(o.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(zl,{spotlights:n}))},ia=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=We(),{configs:{statics:c}}=r(N),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=Re[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return l.createElement(ta,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(jl,{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(ql,{spotlightHealthTools:n,hrefViewMore:m}))},oa=({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:b,enableNavCareBooking:L,enableSearchBar:C,enableNavCare:k,enableProfileMyHealth:M,enableProfileMySaved:P,enableNavTogether:H,enableProfileEcom:x,enableProfileNavigatorMenu:A},userState:{userInfo:B},onLogout:T,userProfileRouterPush:_,isUserLoading:R}=r(N),{t:S}=We(),{SSO_URL:O,HOME_PAGE_URL:U}=b,j=!!E,[Z,$]=a(!1),V=o(47),I=o(null),F=o(!1),D="helloSites"===h?null===(d=_e[g])||void 0===d?void 0:d.LOGO_TYPE:h,z="undefined"!=typeof window,G=s(qe((()=>{if("home"===t&&z){if(!I.current)return;const e=I.current.getBoundingClientRect();e.top<=0&&window.scrollY>V.current&&window.scrollY>e.height+20&&!F.current&&(F.current=!0,$(!0)),window.scrollY<V.current&&F.current&&(F.current=!1,$(!1)),window.scrollY>=0&&(V.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!Z)}),[Z]),n((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),n((()=>{u&&G()}),[u]);const W=v&&!!p;return l.createElement(Le,{"data-site-type":h,"data-sponsored":j,"data-sitewide-banner-shown":W,"data-header-type":t,"data-collapsed":Z,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:I},p,l.createElement(Ce,{"data-site-type":h},l.createElement(ke,{"data-site-type":h},l.createElement(Yl,{menuItems:c,type:t}),l.createElement("a",{href:U},l.createElement(Me,null,l.createElement(Ge,{style:{display:"flex"},type:D,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(sa,{menuItems:c}):C&&l.createElement(ra,{siteType:h})),l.createElement(Pe,{"data-site-type":h},"marryBaby"===h?C&&l.createElement(ra,{siteType:h}):l.createElement(sa,{menuItems:c}),l.createElement(Ne,null,L&&l.createElement(jt,{mediaQueryKey:"mbUp"},l.createElement(Nl,{careUrlFe:b.CARE_URL_FE,currentUrl:y,btnName:S("login.booking"),onCareHeaderClick:f})),i,l.createElement(kl,{userInfo:B,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=O?je(`${O}?returnUrl=${e}`):e}),SSO_URL:Ze(b.SSO_URL),currentUrl:y,onLogout:T,UP_BASEPATH:Se,isMyHealthEnabled:M,enableCare:k,enableTogether:H,enableEcom:x,enableMySaved:P,togetherApiDomain:Ze(b.TOGETHER_API),isUserProfileNavigatorMenuHidden:!A,userProfileRouterPush:_,isLoading:R,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:Z,locale:g,isMobile:u}):E:null)},ra=({siteType:e})=>l.createElement(jt,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(_l,null)),sa=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(N);return l.createElement(jt,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(He,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Ol,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(aa,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(ia,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(na,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(la,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},ca=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:{enableNavDiscover:a,enableNavHealthTools:n,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:d}}=r(N),h="marryBaby"===t;return i((()=>{var t;const i=[];return a&&i.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:h?m.getAssetPath("categories-mb.svg"):m.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),n&&i.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Re[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:h?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),o&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:je(d.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===l?null:"care"}),s&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:je(d.TOGETHER_URL_FE+"/"),thumbnail:h?m.getAssetPath("community-mb.svg"):m.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:je(d.HOME_PAGE_URL+"/shop"),thumbnail:m.getAssetPath("nav-icons/shop.svg"),popupType:null,isNew:!0}),i}),[l,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(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,b=!!p,L=!!(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:r})=>{const c=o(null),[m,d]=a(0),[h,u]=a(64),g=s(rt((()=>{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()}),[r,l,t,e,c.current]);const p=i((()=>{let a=r?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:w,isSponsored:b,hasSponsoredBanners:L,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(oa,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:l.createElement(Ot,{languageOptions:g,locale:h})})))},ma=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(ca,Object.assign({},t)))},da=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,o,r,s,c,m,d,h,u,g,p,v,E,f,y,w,b;const L={},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()))]);L.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,gl))||[],spotlights:(null===(o=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,yl))||void 0===o?void 0:o.filter(wl))||[]},L.healthTools={items:(null===(s=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,pl))||[],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,pl))||[]}}catch(e){}if(C||Oe.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()))]);L.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(Ie()+`/api/specialties?_ishome=1&site=${Te[e]}`)).then((e=>e.json())),fetch(je(Ie()+`/api/search/?site=${Te[e]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);L.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,vl))||[],spotlights:(null===(b=null===(w=null==l?void 0:l._data.searches)||void 0===w?void 0:w.map)||void 0===b?void 0:b.call(w,El))||[]}}catch(e){}}catch(e){console.error(e)}return L})),ha=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>da(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,Ot as L,ma as N,Ll as P,bl as U,ha as a,Wt as b,ul as c,Cl as d,kl as e,da as g,Rt as i};
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-e2d31641.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as o,useContext as r,useCallback as s}from"react";import{g as c}from"./core-287da2a0.js";import{CommonGAssets as m}from"./gAssets.js";import{a as d}from"./useUniqueId-3b1e07f5.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 b,l as L,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 S,z as O,A as U,B as j,C as Z,E as $,F as V,I,J as F,K as D,L as z,M as G,O as W,P as q,Q as K,R as Y,V as Q,W as J,X,Y as ee,Z as te,_ as le,$ as ae,a0 as ne,a1 as ie,a2 as oe,a3 as re,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 be,ai as Le,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-b294239a.js";import{T as Be}from"./index-5ec00f2e.js";import{d as Te,L as _e,S as Re,U as Se,T as Oe,C as Ue}from"./index-9c419037.js";import{n as je,a as Ze}from"./normalizeLink-90f745f4.js";import{c as $e,b as Ve,d as Ie}from"./routing-e7ce81d5.js";import{P as Fe,b as De,c as ze}from"./dataTransform-f0fde252.js";import{L as Ge}from"./index-7cec9b65.js";import{u as We}from"./useTranslations-05f41e0c.js";import qe from"lodash/throttle";import{g as Ke}from"./utils-cbf1b9ef.js";import{y as Ye,P as Qe,H as Je}from"./index.styles-cb810a2f.js";import{B as Xe}from"./index-b8c39234.js";import{t as et}from"./theme-ece63f2d.js";import{g as tt}from"./cookieHelper-2cbe1035.js";import{Portal as lt}from"@mantine/core";import"./index-df682eed.js";import{C as at}from"./index-b157ad5a.js";import"./index.styled-4316ce6f.js";import"./index-e3ab2d22.js";import{L as nt}from"./constants-35d65b60.js";import it from"string-format";import"@mantine/dates";import"./Onboarding-c617fc08.js";import"./index-bc21cc71.js";import{I as ot}from"./index-4f76310d.js";import"./index-296ba428.js";import"@mantine/hooks";import"dayjs";import"./screenSizeContext-cff744e8.js";import"styled-components";import"./isProduction-4fef7321.js";import rt from"lodash/debounce";import{u as st}from"./useIsInit-f9f57b53.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:o,firstLetter:r,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(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{v(!0)}))}}),[o,v]);const E=(!o&&!i||p)&&r;return l.createElement(Ye,{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:o,"data-custom-size":!!t},i,o&&!p&&l.createElement("img",{src:o}),E&&r)},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"})),bt=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"}))),Lt=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:o})=>{let r,s;switch(t){case"en":r=l.createElement(gt,null),s=l.createElement(ut,null);break;case"vi":r=l.createElement(At,null),s=l.createElement(xt,null);break;case"id":r=l.createElement(ft,{isTesting:o}),s=l.createElement(Et,{isTesting:o});break;case"th":r=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"km":r=l.createElement(ht,null),s=l.createElement(dt,null);break;case"ms":r=l.createElement(wt,null),s=l.createElement(yt,null);break;case"my":r=l.createElement(Lt,null),s=l.createElement(bt,null);break;case"tl":r=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"hi":r=l.createElement(vt,null),s=l.createElement(pt,null);break;case"zh":r=l.createElement(Pt,null),s=l.createElement(Mt,null)}if(!r&&!s)switch(e){case"VN":r=l.createElement(At,null),s=l.createElement(xt,null);break;case"ID":r=l.createElement(ft,{isTesting:o}),s=l.createElement(Et,{isTesting:o});break;case"TH":r=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"KH":r=l.createElement(ht,null),s=l.createElement(dt,null);break;case"MY":r=l.createElement(wt,null),s=l.createElement(yt,null);break;case"MM":r=l.createElement(Lt,null),s=l.createElement(bt,null);break;case"PH":r=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"IN":r=l.createElement(vt,null),s=l.createElement(pt,null);break;case"TW":r=l.createElement(Pt,null),s=l.createElement(Mt,null)}return l.createElement("div",{className:Bt,style:{"--width":i||20,"--height":n||20}},a?s:r)},_t=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],Rt=(e="")=>_t.some((t=>new URL(e).origin.endsWith(t))),St=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:r=!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":r&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),E((e=>!e))),t.stopPropagation()}},l.createElement(Be,{size:"p3"},e.label),r&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))))))),d&&l.createElement(v,{onClick:()=>E(!1)}))},Ot=({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(St,{options:e,selected:i.value,label:l.createElement(Ut,{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},Ut=({locale:e,label:t,href:a})=>{var n,i,o;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===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),l.createElement("span",null,t))},jt=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:o})=>{const[r,s]=i((()=>Ke(t)),[t]);return l.createElement(f,{lowerBound:e?0:r,upperBound:e?0:s,className:n,style:o},a)},Zt=e=>{const{allowBgScroll:t}=e||{},l=o();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())}}},$t=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:o=!0,targetAvatar:r,id:s,className:c})=>l.createElement(y,{"data-open":a,"data-type":e,"data-animation":o,"data-target":r,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),Vt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var It="uJQBNNg",Ft="TfG3dM5",Dt="aMtjFNf",zt="cSz2RR-",Gt="GyFm00F";function Wt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=We(),o=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:It,onClick:()=>{t&&t()}},l.createElement(mt,{className:Ft,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:o,backgroundColor:"marryBaby"===a?et.mbColors.pink:et.colors.secondaryBase}),l.createElement("div",{className:Dt},l.createElement("div",{className:zt},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:Gt,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 qt="gn6HmGG",Kt="FCx8FEM",Yt="zMiRxaE",Qt="lZ2Z9MQ",Jt="rwm-agG",Xt="qMOscoq";const el=({themeName:e,locale:t,onClickItem:n})=>{const[o,r]=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:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:m.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?r((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:qt},s.map((e=>l.createElement(tl,{key:e.key,item:e,openKey:o,onClickItem:c,locale:t}))))},tl=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:o}=We();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${Kt} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:Yt,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:Qt,style:{backgroundImage:`url("${e.icon}")`}}),o(e.key),e.subMenu&&l.createElement("div",{className:Jt,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:Xt},e.subMenu.map((e=>l.createElement(tl,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var ll="-AZt1au",al="IvSIfCI",nl="eahCJov",il="XIyViFs",ol="_4y-O0w3",rl="kO8iNgD",sl="a1d4E10",cl="Tdguxxf",ml="-mOxsaU",dl="yPeDBNZ";const hl={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")}},ul=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=We(),o=i((()=>{var l,a;return(null===(a=null===(l=hl[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:ol,"data-user-rank":t},l.createElement("div",{className:rl},l.createElement("div",{className:sl},l.createElement("div",{className:cl,style:{backgroundImage:`url("${o}")`}}),l.createElement("h3",{className:ml},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:dl},a," ",n("userProfile.nav.header.count.posts")))))},gl=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=>gl(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,customizedUrl:e.customized_url||null}:{}},pl=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}},vl=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},El=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},fl=({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:""}`},yl=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}:{},wl=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},bl=({SSO_URL:e,UP_BASEPATH:t="user",themeName:o="helloSites",cardUrls:r=Vt,enableCare:s,enableTogether:c,enableEcom:d,enableMySaved:h,userInfo:u,togetherApiDomain:g,userPostsNumber:p,onClickNavigationCard:v,onClickMyProfileButton:E,onClickMenuItem:f,onClickLogout:y,isUserProfileNavigatorMenuHidden:L=!1,isMyHealthEnabled:C=!1,locale:k})=>{const{t:M}=We(),[P,N]=a(p||0),H="marryBaby"===o;n((()=>{if(u&&void 0===p){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]}`})))(k,H,g)),{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)&&N((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)))}}),[k,null!==u,p,g,H]);const x=i((()=>{let e;return e=H?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?C:"eCom"===e?d:"mySaved"!==e||h))}),[H,C]),A=i((()=>"marryBaby"===o?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:y,className:il},M("userProfile.nav.menu.logout"))),[o]),B=l=>{window.location.href=je(`${e}${t}/${l}`)},T=e=>{const t=r[e];v?v(t):B(t)};return u?l.createElement("div",{className:ll,"data-theme":o},l.createElement(Wt,{userInfo:u,themeName:o,onClickMyProfileButton:()=>{E?E():B("profile")}}),l.createElement(ul,{themeName:o,rank:"member",numberOfPosts:P}),l.createElement("div",{className:al},x.map((e=>l.createElement(b,{className:nl,key:e,themeName:o,type:e,onClick:T})))),!L&&l.createElement(l.Fragment,null,l.createElement(el,{themeName:o,locale:k,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(f?f(e.link):B(e.link))}}),A)):null},Ll=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,closePopup:m,siteType:d="helloSites",dispatchLogout:h,userProfileRouterPush:u,isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p=!1,togetherApiDomain:v,locale:E})=>{const f=l=>{u?u(`/${l}`):e&&(window.location.href=je(`${e}${t}/${l}`))},y=e=>{f(e),m()};return l.createElement($t,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},l.createElement(bl,{SSO_URL:e,UP_BASEPATH:t,themeName:d,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,onClickLogout:()=>{h&&(h(),m())},onClickMenuItem:y,onClickNavigationCard:y,onClickMyProfileButton:()=>{f("profile"),m()},isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p,togetherApiDomain:v,locale:E}))},Cl=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:o}=We();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(lt,null,l.createElement(Fe,{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(L,null,"helloSites"===i&&l.createElement("img",{src:m.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),l.createElement("h2",null,o("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,o("logout.popup.ask2")),l.createElement(C,{siteType:i},l.createElement(Xe,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},o("logout.popup.button.logout")),l.createElement(Xe,{className:"cancel-button",color:"primary",size:"lg",onClick:t},o("logout.popup.button.cancel"))))))},kl=({userInfo:e,siteType:i,onLoginClick:o,SSO_URL:r,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:b,locale:L,enableMySaved:C})=>{const{t:N}=We(),[H,x]=a(!1),A=(null==e?void 0:e.name)||(null==e?void 0:e.username),[B,T]=a(!1);n((()=>{T(!0)}),[]);const{containerRef:_,onContainerFocus:R,onContainerBlur:S,onButtonMouseDown:O,onClose:U}=Zt();return b?l.createElement(Xe,{size:"sm",color:"transparent",isLoading:!0}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(k,{ref:_,style:y,tabIndex:0,onBlur:S,onFocus:R},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:A&&A.length?A[0].toUpperCase():"A",backgroundColor:"marryBaby"===i?et.mbColors.pink:et.colors.secondaryBase})),l.createElement(Ll,{UP_BASEPATH:p,SSO_URL:r,dispatchLogout:()=>{U(),x(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,enableMySaved:C,closePopup:U,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:L})),l.createElement(Cl,{openLogoutPopup:H,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),x(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){x(!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:B?void 0:je(`${r}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(P,{onClick:o},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:o}),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:o,style:{paddingLeft:16}},l.createElement(Be,{size:"p3",color:et.mbColors.pink},N("navigation.loginJoin"))),l.createElement(Xe,{className:"login-btn",size:"md",color:"tertiary",onClick:o,icon:l.createElement("img",{src:m.getAssetPath("login.svg"),width:18,height:18}),theme:i},N("navigation.loginJoin"))))};var Ml="spdlGfq",Pl="vgS16jX";const Nl=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(Xe,{className:Ml,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:`${Pl} care-button no-replace-click`},l.createElement(Xe,{className:Ml,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var Hl="y5VJdvw",xl="oVhOSCy",Al="pX8OXTM";function Bl({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 Tl({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 _l=()=>{const{locale:e,configs:{statics:t},siteType:a}=r(N),{t:n}=We();return l.createElement(Qe,{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))})};var Rl="wnUb-dV",Sl="cjbOxWe";const Ol=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:r}=Zt({allowBgScroll:!0}),s=st();return!e.popupType&&e.link?l.createElement(Ul,{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:Sl},e.name))):l.createElement(Ul,{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:o,className:Sl},e.name,e.popupType&&l.createElement("div",{className:Rl},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:r}):null))},Ul=({isNew:e,children:t})=>{const{t:a}=We();return e?l.createElement(ot,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):l.createElement(l.Fragment,null,t)},jl=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:o})=>{const{siteType:s}=r(N);return l.createElement(x,null,l.createElement(A,null,l.createElement(Je,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},o)),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(B,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,href:i},!Rt(i)&&{target:"_blank"},{"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(Ul,{isNew:e.isNew},l.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),l.createElement(T,null,l.createElement("img",{src:m.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),t&&l.createElement(_,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},l.createElement(R,{onClick:n,"data-theme":s,"data-is-heading-category":!1},t,l.createElement(S,null,l.createElement("img",{className:"svg",src:"marryBaby"===s?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},Zl=({item:e,index:t=0})=>{var a;const{t:n}=We(),{locale:i,configs:{statics:o}}=r(N);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(a=nt[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return l.createElement(O,{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(U,null,l.createElement(j,null,l.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),l.createElement(Z,null,l.createElement($,null,e.name),l.createElement(V,null,e.description),l.createElement(I,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},$l=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:o}=r(N);return l.createElement(F,{"data-theme":o},l.createElement(D,null,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("navMBSpotlightBgNoData.svg"):m.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(z,null,i&&l.createElement("img",{src:i,width:64,height:64}))),l.createElement("div",null,e&&l.createElement(G,null,e),a&&l.createElement(W,null,a),n&&l.createElement("div",null,l.createElement("a",{href:t},l.createElement(Xe,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},Vl=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(N);return l.createElement(q,null,l.createElement(K,null,l.createElement(Je,{tag:"marryBaby"===o?"h5":"h6",as:"h2",fontWeight:"semibold"},e),t&&l.createElement(Y,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),a)},Il=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=We();return l.createElement(Vl,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?l.createElement(Q,null,null==e?void 0:e.slice(0,3).map(((e,t)=>l.createElement(Zl,{key:t,index:t,item:e})))):l.createElement($l,{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")}))},Fl=({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,Dl=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=We(),{configs:{statics:n}}=r(N);return l.createElement(Vl,{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(Fl,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement($l,{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")}))},zl=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(N),{t:a}=We();return l.createElement(Vl,{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($l,{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")}))},Gl=({item:e,index:t=0})=>{const{t:a}=We(),{configs:{statics:n}}=r(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(oe,null,e.title),l.createElement(re,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"})))},Wl=({item:e,index:t=0,color:a})=>{const{t:n}=We(),{configs:{statics:i}}=r(N);if(!e)return null;const o=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:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"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()))},ql=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=We(),n=["pink","orange","green"],{siteType:i}=r(N);return l.createElement(Vl,{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(Wl,{key:t,index:t,item:e,color:n[t]}):l.createElement(Gl,{key:t,index:t,item:e})))),0===t.length&&l.createElement($l,{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")}))},Kl=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=r(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(_l,null)):null,l.createElement(be,null,l.createElement(jl,{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(Dl,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(ql,{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(Il,{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(zl,{spotlights:null==m?void 0:m.spotlights})))},Yl=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=r(N),{containerRef:i,onContainerFocus:o,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Zt();return l.createElement(jt,{mediaQueryKey:"mbDown"},l.createElement("header",{className:Hl},l.createElement("div",{className:xl,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:o},l.createElement("div",{className:Al,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(Bl,{className:"mobile-close-icon"}),l.createElement(Tl,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(Kl,{menuItems:t,closePopup:m}))))};var Ql="q3nL5cp",Jl="_2DNf80G",Xl="Q-glX-n";const ea=({onClosePopup:e})=>l.createElement("div",{className:`${Xl} 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"}))),ta=({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:Jl},l.createElement(ea,{onClosePopup:e})),l.createElement(at,{className:Ql},a))),la=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:o}=We(),{locale:s,configs:{statics:c}}=r(N),m=`${c.CARE_URL_FE}/${null===(i=nt[s])||void 0===i?void 0:i.SPECIALTIES}`;return l.createElement(ta,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(jl,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:m,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:fl({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement(Il,{spotlights:n,hrefViewMore:m}))},aa=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=We(),{locale:o,configs:{statics:s}}=r(N);return l.createElement(ta,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(jl,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/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.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),l.createElement(Dl,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},na=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=We(),{configs:{statics:o}}=r(N);return l.createElement(ta,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(jl,{hrefViewMore:Ze(o.TOGETHER_URL_FE),UrlFE:je(o.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(zl,{spotlights:n}))},ia=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=We(),{configs:{statics:c}}=r(N),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=Re[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return l.createElement(ta,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(jl,{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(ql,{spotlightHealthTools:n,hrefViewMore:m}))},oa=({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:b,enableNavCareBooking:L,enableSearchBar:C,enableNavCare:k,enableProfileMyHealth:M,enableProfileMySaved:P,enableNavTogether:H,enableProfileEcom:x,enableProfileNavigatorMenu:A},userState:{userInfo:B},onLogout:T,userProfileRouterPush:_,isUserLoading:R}=r(N),{t:S}=We(),{SSO_URL:O,HOME_PAGE_URL:U}=b,j=!!E,[Z,$]=a(!1),V=o(47),I=o(null),F=o(!1),D="helloSites"===h?null===(d=_e[g])||void 0===d?void 0:d.LOGO_TYPE:h,z="undefined"!=typeof window,G=s(qe((()=>{if("home"===t&&z){if(!I.current)return;const e=I.current.getBoundingClientRect();e.top<=0&&window.scrollY>V.current&&window.scrollY>e.height+20&&!F.current&&(F.current=!0,$(!0)),window.scrollY<V.current&&F.current&&(F.current=!1,$(!1)),window.scrollY>=0&&(V.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!Z)}),[Z]),n((()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)})),[]),n((()=>{u&&G()}),[u]);const W=v&&!!p;return l.createElement(Le,{"data-site-type":h,"data-sponsored":j,"data-sitewide-banner-shown":W,"data-header-type":t,"data-collapsed":Z,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:I},p,l.createElement(Ce,{"data-site-type":h},l.createElement(ke,{"data-site-type":h},l.createElement(Yl,{menuItems:c,type:t}),l.createElement("a",{href:U},l.createElement(Me,null,l.createElement(Ge,{style:{display:"flex"},type:D,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(sa,{menuItems:c}):C&&l.createElement(ra,{siteType:h})),l.createElement(Pe,{"data-site-type":h},"marryBaby"===h?C&&l.createElement(ra,{siteType:h}):l.createElement(sa,{menuItems:c}),l.createElement(Ne,null,L&&l.createElement(jt,{mediaQueryKey:"mbUp"},l.createElement(Nl,{careUrlFe:b.CARE_URL_FE,currentUrl:y,btnName:S("login.booking"),onCareHeaderClick:f})),i,l.createElement(kl,{userInfo:B,siteType:h,onLoginClick:w||(()=>{const e=window.location.href;window.location.href=O?je(`${O}?returnUrl=${e}`):e}),SSO_URL:Ze(b.SSO_URL),currentUrl:y,onLogout:T,UP_BASEPATH:Se,isMyHealthEnabled:M,enableCare:k,enableTogether:H,enableEcom:x,enableMySaved:P,togetherApiDomain:Ze(b.TOGETHER_API),isUserProfileNavigatorMenuHidden:!A,userProfileRouterPush:_,isLoading:R,locale:g})))),E?l.isValidElement(E)?l.cloneElement(E,{isCollapsed:Z,locale:g,isMobile:u}):E:null)},ra=({siteType:e})=>l.createElement(jt,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(_l,null)),sa=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(N);return l.createElement(jt,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(He,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Ol,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(aa,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(ia,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(na,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(la,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},ca=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:{enableNavDiscover:a,enableNavHealthTools:n,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:d}}=r(N),h="marryBaby"===t;return i((()=>{var t;const i=[];return a&&i.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:h?m.getAssetPath("categories-mb.svg"):m.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),n&&i.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Re[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:h?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),o&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:je(d.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===l?null:"care"}),s&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:je(d.TOGETHER_URL_FE+"/"),thumbnail:h?m.getAssetPath("community-mb.svg"):m.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:je(d.HOME_PAGE_URL+"/shop"),thumbnail:m.getAssetPath("nav-icons/shop.svg"),popupType:null,isNew:!0}),i}),[l,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(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,b=!!p,L=!!(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:r})=>{const c=o(null),[m,d]=a(0),[h,u]=a(64),g=s(rt((()=>{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()}),[r,l,t,e,c.current]);const p=i((()=>{let a=r?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:w,isSponsored:b,hasSponsoredBanners:L,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(oa,{menuItems:y,type:"home",onTopBarAppears:u,languageMenu:l.createElement(Ot,{languageOptions:g,locale:h})})))},ma=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(ca,Object.assign({},t)))},da=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,o,r,s,c,m,d,h,u,g,p,v,E,f,y,w,b;const L={},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()))]);L.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,gl))||[],spotlights:(null===(o=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,yl))||void 0===o?void 0:o.filter(wl))||[]},L.healthTools={items:(null===(s=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,pl))||[],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,pl))||[]}}catch(e){}if(C||Oe.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()))]);L.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(Ie()+`/api/specialties?_ishome=1&site=${Te[e]}`)).then((e=>e.json())),fetch(je(Ie()+`/api/search/?site=${Te[e]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);L.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,vl))||[],spotlights:(null===(b=null===(w=null==l?void 0:l._data.searches)||void 0===w?void 0:w.map)||void 0===b?void 0:b.call(w,El))||[]}}catch(e){}}catch(e){console.error(e)}return L})),ha=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>da(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,Ot as L,ma as N,Ll as P,bl as U,ha as a,Wt as b,ul as c,Cl as d,kl as e,da as g,Rt as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-e2d31641.js";import t,{useState as o,useEffect as n}from"react";import{useDebouncedValue as s}from"@mantine/hooks";import{B as a}from"./index-b8c39234.js";import{D as r,S as i,j as l}from"./index-bc21cc71.js";const m=m=>{var{color:c,withControl:h,onChange:d,value:g,min:w,max:p,isStatic:u,containerClassName:k,containerStyle:v}=m,x=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[C,b]=o(g||w||0),[E]=s(C,r);return n((()=>{null==d||d(E)}),[E]),n((()=>{b(g)}),[g]),t.createElement(i,{className:k,style:v},h&&t.createElement(a,{type:"button",size:"sm",color:"ghost",onClick:()=>{b((e=>w&&e===w?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:C,onChange:u?()=>null:b,min:w,max:p},x,{className:"hhg-mantine-slider "+(x.className||"")})),h&&t.createElement(a,{type:"button",size:"sm",color:"ghost",onClick:()=>{b((e=>p&&e===p?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};
|