@hhgtech/hhg-components 1.28.21 → 1.28.23
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/ChevronDown-2d5d0e3b.js +1 -0
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/navigationV2/components/atoms/HamburgerIcon.d.ts +1 -3
- package/build/components/navigationV2/components/molecules/Categories/index.d.ts +3 -1
- package/build/components/navigationV2/components/molecules/menuEcomList/Item/index.d.ts +8 -0
- package/build/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts +1 -0
- package/build/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts +8 -0
- package/build/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +2 -0
- package/build/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +1 -3
- package/build/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -3
- package/build/components/navigationV2/index.d.ts +5 -0
- package/build/components/organisms/index.d.ts +1 -1
- package/build/components/organisms/navigationProfileButton/index.d.ts +2 -11
- package/build/components/organisms/navigationProfileButton/index.styled.d.ts +1 -1
- package/build/components/organisms/navigationProfileButton/profilePopup.d.ts +3 -15
- package/build/components/organisms/profileNavigation/icons/booking.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/community.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/dot.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/eShop.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/help.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/logOut.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/myHealth.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/save.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/settings.d.ts +2 -0
- package/build/components/organisms/profileNavigation/icons/user.d.ts +2 -0
- package/build/components/organisms/profileNavigation/index.d.ts +36 -0
- package/build/components/organisms/profileNavigation/index.styled.d.ts +9 -0
- package/build/components/organisms/profileNavigation/rank.d.ts +7 -0
- package/build/components/organisms/profileNavigation/userInfo.d.ts +6 -0
- package/build/components.js +1 -1
- package/build/{constants-cae8dcfd.js → constants-8bcbbfa4.js} +1 -1
- package/build/{constants-0d879f21.js → constants-f4c0aa09.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-42d5ed63.js → core-e13a9991.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/ChevronDown-85611002.js +1 -0
- 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/navigationV2/components/atoms/HamburgerIcon.d.ts +1 -3
- package/build/esm/components/navigationV2/components/molecules/Categories/index.d.ts +3 -1
- package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuEcomList/Item/index.styled.d.ts +1 -0
- package/build/esm/components/navigationV2/components/molecules/menuEcomList/ecomSpotlights.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +2 -0
- package/build/esm/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +1 -3
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -3
- package/build/esm/components/navigationV2/index.d.ts +5 -0
- package/build/esm/components/organisms/index.d.ts +1 -1
- package/build/esm/components/organisms/navigationProfileButton/index.d.ts +2 -11
- package/build/esm/components/organisms/navigationProfileButton/index.styled.d.ts +1 -1
- package/build/esm/components/organisms/navigationProfileButton/profilePopup.d.ts +3 -15
- package/build/esm/components/organisms/profileNavigation/icons/booking.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/community.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/dot.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/eShop.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/help.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/logOut.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/myHealth.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/save.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/settings.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/icons/user.d.ts +2 -0
- package/build/esm/components/organisms/profileNavigation/index.d.ts +36 -0
- package/build/esm/components/organisms/profileNavigation/index.styled.d.ts +9 -0
- package/build/esm/components/organisms/profileNavigation/rank.d.ts +7 -0
- package/build/esm/components/organisms/profileNavigation/userInfo.d.ts +6 -0
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-5e4b6aaa.js → constants-0187e9c1.js} +1 -1
- package/build/esm/{constants-b5814512.js → constants-c312beee.js} +2 -2
- package/build/esm/constants.js +1 -1
- package/build/esm/core-2f7d6a78.js +1 -0
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-9c7dc42f.js +1 -0
- package/build/esm/{getSocialList-593d72cf.js → getSocialList-757a53c6.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +1 -1
- package/build/esm/i18n-values/hi-IN.js +1 -1
- package/build/esm/i18n-values/id-ID.js +1 -1
- package/build/esm/i18n-values/km-KH.js +1 -1
- package/build/esm/i18n-values/ms-MY.js +1 -1
- package/build/esm/i18n-values/my-MM.js +1 -1
- package/build/esm/i18n-values/th-TH.js +1 -1
- package/build/esm/i18n-values/tl-PH.js +1 -1
- package/build/esm/i18n-values/vi-VN.js +1 -1
- package/build/esm/i18n-values/vi-VN_MB.js +1 -1
- package/build/esm/i18n-values/zh-TW.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-3fd6d11d.js → index-034573a6.js} +1 -1
- package/build/esm/index-15c600d6.js +3533 -0
- package/build/esm/{index-27f79b14.js → index-29bf362b.js} +1 -1
- package/build/esm/{index-727605cf.js → index-324430b9.js} +1 -1
- package/build/esm/{index-9bb14d7f.js → index-3bc70679.js} +1 -1
- package/build/esm/{index-603aec16.js → index-425a92c5.js} +1 -1
- package/build/esm/{index-bf7e8cb2.js → index-5a1f52da.js} +1 -1
- package/build/esm/{index-e5dce728.js → index-645ef204.js} +6 -6
- package/build/esm/{index-f2bbc22b.js → index-6a2a12a1.js} +1 -1
- package/build/esm/{index-bfcf3fb0.js → index-77ec342a.js} +1 -1
- package/build/esm/{index-fb027c2b.js → index-7fbbc93e.js} +1 -1
- package/build/esm/index-84edbddf.js +1755 -0
- package/build/esm/{index-0bc7892c.js → index-8b57ae3b.js} +1 -1
- package/build/esm/{index-9cdff468.js → index-9a575100.js} +2 -2
- package/build/esm/{index-620551b5.js → index-b902806c.js} +1 -1
- package/build/esm/{index-f0b1e2fe.js → index-b9920630.js} +1 -1
- package/build/esm/index-db3811a7.js +1 -0
- package/build/esm/{index-43c43315.js → index-e12c492a.js} +1 -1
- package/build/esm/index-fe3254e0.js +1 -0
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-02ca5623.js → index.styled-6f781392.js} +1 -1
- package/build/esm/{index.styled-39bbc781.js → index.styled-7aa83a38.js} +1 -1
- package/build/esm/{index.styles-8e66aa69.js → index.styles-1512f2b5.js} +2 -2
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +1 -1
- package/build/esm/{routing-cf2d5f19.js → routing-6b724e34.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-a4c1b4b0.js → types-2cf3ca1c.js} +1 -1
- package/build/esm/types-c4319967.js +788 -0
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-e1c4dd95.js → useCategory-efa124e8.js} +1 -1
- package/build/esm/useHealthToolCache-de46a889.js +1 -0
- package/build/esm/useRafState-2a610da2.js +1 -0
- package/build/esm/{useTranslations-0f3e8009.js → useTranslations-dd0a13ad.js} +1 -1
- package/build/esm/{utils-5f9f0861.js → utils-8ef9fdb1.js} +1 -1
- package/build/esm/{utils-c9e60f19.js → utils-c9b03900.js} +1 -1
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-8b81f63c.js +1 -0
- package/build/{getSocialList-ada93645.js → getSocialList-e857f598.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +1 -1
- package/build/i18n-values/hi-IN.js +1 -1
- package/build/i18n-values/id-ID.js +1 -1
- package/build/i18n-values/km-KH.js +1 -1
- package/build/i18n-values/ms-MY.js +1 -1
- package/build/i18n-values/my-MM.js +1 -1
- package/build/i18n-values/th-TH.js +1 -1
- package/build/i18n-values/tl-PH.js +1 -1
- package/build/i18n-values/vi-VN.js +1 -1
- package/build/i18n-values/vi-VN_MB.js +1 -1
- package/build/i18n-values/zh-TW.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/index-02d5c385.js +1 -0
- package/build/{index-75705406.js → index-2867dcac.js} +1 -1
- package/build/{index-b6de35aa.js → index-2d3213a5.js} +1 -1
- package/build/{index-cef0a00f.js → index-2e9c0de0.js} +1 -1
- package/build/{index-853b0b56.js → index-31783012.js} +1 -1
- package/build/{index-4a6fc7db.js → index-433f3c65.js} +1 -1
- package/build/{index-c29cd0ee.js → index-4647ac38.js} +1 -1
- package/build/{index-106a0aa4.js → index-472cd02e.js} +1 -1
- package/build/{index-22536346.js → index-49ca569a.js} +1 -1
- package/build/index-4e95c4ce.js +1 -0
- package/build/{index-1df24374.js → index-5d2cb060.js} +1 -1
- package/build/{index-71c2b110.js → index-63670e0c.js} +1 -1
- package/build/index-66def10e.js +1755 -0
- package/build/index-78b4c580.js +3533 -0
- package/build/{index-1fbc51d0.js → index-80ed081f.js} +1 -1
- package/build/{index-29d8f3e7.js → index-87067120.js} +1 -1
- package/build/index-a0d69a3e.js +1 -0
- package/build/{index-9e94fdd7.js → index-da51ce3f.js} +1 -1
- package/build/{index-8844b145.js → index-ff10154c.js} +1 -1
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-0e38b245.js → index.styled-8b68590e.js} +1 -1
- package/build/{index.styled-24033e81.js → index.styled-f58521f6.js} +1 -1
- package/build/{index.styles-ad7903c3.js → index.styles-2679f17e.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +2 -2
- package/build/{routing-ec743546.js → routing-d4f8bab4.js} +1 -1
- package/build/together.js +1 -1
- package/build/{types-04be3103.js → types-79e9ebf6.js} +1 -1
- package/build/{types-6f7fce81.js → types-f02ad287.js} +68 -68
- package/build/types.js +1 -1
- package/build/{useCategory-5cbd3135.js → useCategory-de21ce75.js} +1 -1
- package/build/useHealthToolCache-1ec3b85b.js +1 -0
- package/build/{useRafState-68615887.js → useRafState-de88a13b.js} +1 -1
- package/build/{useTranslations-fe507352.js → useTranslations-9940a064.js} +1 -1
- package/build/utils-754d3326.js +1 -0
- package/build/{utils-381adc93.js → utils-7d5baedb.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/components/organisms/navigationProfileButton/popupWrapper.d.ts +0 -14
- package/build/esm/components/organisms/navigationProfileButton/popupWrapper.d.ts +0 -14
- package/build/esm/core-311d7242.js +0 -1
- package/build/esm/getDynamicHealthTool-6bf2e69d.js +0 -1
- package/build/esm/index-43ced8c4.js +0 -1
- package/build/esm/index-4bee5ccb.js +0 -1
- package/build/esm/index-8014dff1.js +0 -3533
- package/build/esm/index-ca4fdb46.js +0 -1753
- package/build/esm/types-c18963c9.js +0 -788
- package/build/esm/useHealthToolCache-4f4bec7e.js +0 -1
- package/build/esm/useRafState-d6f71b45.js +0 -1
- package/build/getDynamicHealthTool-114ddb03.js +0 -1
- package/build/index-38dce2a8.js +0 -3533
- package/build/index-562ffe13.js +0 -1
- package/build/index-6c94c4af.js +0 -1
- package/build/index-b1f953f6.js +0 -1
- package/build/index-eb28658b.js +0 -1753
- package/build/useHealthToolCache-ad666c43.js +0 -1
- package/build/utils-76a160ce.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-943242cd.js → BMI_BOYS.percentile.monthly-a3fbcc30.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-348ba55a.js → BMI_BOYS.percentile.weekly-00a054a1.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-aaa04db9.js → BMI_BOYS.percentile.yearly-8bc1b868.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-f6d07e3b.js → BMI_BOYS.zscore.monthly-ccb51787.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-303d8a0e.js → BMI_BOYS.zscore.weekly-79db5fd6.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-024c0240.js → BMI_BOYS.zscore.yearly-3df0688a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-9e09fab0.js → BMI_GIRLS.percentile.monthly-99222d30.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-4423fb86.js → BMI_GIRLS.percentile.weekly-ed7e3ccc.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-d473af49.js → BMI_GIRLS.percentile.yearly-f1054cd5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-32c50ad7.js → BMI_GIRLS.zscore.monthly-3968e189.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-cd164e3d.js → BMI_GIRLS.zscore.weekly-b61f50fa.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-45434eb3.js → BMI_GIRLS.zscore.yearly-9616687d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-276b36ea.js → HEAD CIRCUM_BOYS.percentile.monthly-1427d1b8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9e1a3595.js → HEAD CIRCUM_BOYS.percentile.weekly-02cedcc7.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2d20cea8.js → HEAD CIRCUM_BOYS.percentile.yearly-decf814c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-33424f91.js → HEAD CIRCUM_BOYS.zscore.monthly-76c954a8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-37907536.js → HEAD CIRCUM_BOYS.zscore.weekly-2b3850fa.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-85993e9b.js → HEAD CIRCUM_BOYS.zscore.yearly-f2cc2c6f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d1927886.js → HEAD CIRCUM_GIRLS.percentile.monthly-92f3aa2d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-ee99ab29.js → HEAD CIRCUM_GIRLS.percentile.weekly-c65d2a6c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4a765f28.js → HEAD CIRCUM_GIRLS.percentile.yearly-6fa678da.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-3b459cae.js → HEAD CIRCUM_GIRLS.zscore.monthly-07b25781.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e6a11767.js → HEAD CIRCUM_GIRLS.zscore.weekly-9b73aff8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-01897cb8.js → HEAD CIRCUM_GIRLS.zscore.yearly-693f90cd.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-d30bfe74.js → HEIGHT_BOYS.percentile.monthly-d2d7898b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-036c0cc0.js → HEIGHT_BOYS.percentile.weekly-4f6f9210.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-033a22e5.js → HEIGHT_BOYS.percentile.yearly-e2ef743a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-8f647f0d.js → HEIGHT_BOYS.zscore.monthly-49f9202e.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-29ffb508.js → HEIGHT_BOYS.zscore.weekly-aef7df8c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-d9229c2b.js → HEIGHT_BOYS.zscore.yearly-87581894.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-788585cb.js → HEIGHT_GIRLS.percentile.monthly-826096f2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-e7e66eea.js → HEIGHT_GIRLS.percentile.weekly-3cf78569.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-dc20673b.js → HEIGHT_GIRLS.percentile.yearly-8364b303.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-e5830d69.js → HEIGHT_GIRLS.zscore.monthly-fec2ed12.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-ee4eb471.js → HEIGHT_GIRLS.zscore.weekly-39df1c0b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-2fea76f2.js → HEIGHT_GIRLS.zscore.yearly-491bd234.js} +0 -0
- /package/build/{Onboarding-30aed79e.js → Onboarding-321532f3.js} +0 -0
- /package/build/{Visible-d5b3e721.js → Visible-7ee562f5.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-3b373855.js → WEIGHT_BOYS.percentile.monthly-dcc2c0f1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-40d48d19.js → WEIGHT_BOYS.percentile.weekly-9ef5093e.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-a8ed04d7.js → WEIGHT_BOYS.percentile.yearly-a6d79d20.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-bb4515c9.js → WEIGHT_BOYS.zscore.monthly-b9332d62.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-e246bbb1.js → WEIGHT_BOYS.zscore.weekly-bbb7ef64.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-f8a1009f.js → WEIGHT_BOYS.zscore.yearly-38c85120.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-2a4758e2.js → WEIGHT_GIRLS.percentile.monthly-2e0d42c4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-945cecc0.js → WEIGHT_GIRLS.percentile.weekly-37c0163c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-f388f6eb.js → WEIGHT_GIRLS.percentile.yearly-48641f99.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-29e23b56.js → WEIGHT_GIRLS.zscore.monthly-f9900eb2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-27bfa598.js → WEIGHT_GIRLS.zscore.weekly-2818a7cd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-ec81d01f.js → WEIGHT_GIRLS.zscore.yearly-8854987c.js} +0 -0
- /package/build/{cookieHelper-c4eae752.js → cookieHelper-5a5ad9d8.js} +0 -0
- /package/build/{dataTransform-7a7971d2.js → dataTransform-d947b2cd.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-6359f2aa.js → BMI_BOYS.percentile.monthly-42a71347.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-fe261546.js → BMI_BOYS.percentile.weekly-c438d483.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-dfb86f24.js → BMI_BOYS.percentile.yearly-a38980fd.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-32b6f269.js → BMI_BOYS.zscore.monthly-57b12fbe.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-01f330ec.js → BMI_BOYS.zscore.weekly-2dc304ae.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-e5014506.js → BMI_BOYS.zscore.yearly-7e1a3797.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-fa928a13.js → BMI_GIRLS.percentile.monthly-88e2f842.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-ec63366d.js → BMI_GIRLS.percentile.weekly-28db3d3a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-6f7249a8.js → BMI_GIRLS.percentile.yearly-3f111c39.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-84f48d9d.js → BMI_GIRLS.zscore.monthly-42aa08a0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-d2aa40f9.js → BMI_GIRLS.zscore.weekly-730cc3fb.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-f7c405d2.js → BMI_GIRLS.zscore.yearly-974e68b4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-9a7d38e3.js → HEAD CIRCUM_BOYS.percentile.monthly-6735bf8c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-5f8c3bc2.js → HEAD CIRCUM_BOYS.percentile.weekly-218a2a8a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-05cfb1a7.js → HEAD CIRCUM_BOYS.percentile.yearly-7c569f10.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-e0d54f1f.js → HEAD CIRCUM_BOYS.zscore.monthly-c530f82d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-37e62f29.js → HEAD CIRCUM_BOYS.zscore.weekly-2de64796.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-71b64cf9.js → HEAD CIRCUM_BOYS.zscore.yearly-d9646af3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-e6419ec4.js → HEAD CIRCUM_GIRLS.percentile.monthly-33a7b03d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-50ff3bb2.js → HEAD CIRCUM_GIRLS.percentile.weekly-e159c306.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-58407ac8.js → HEAD CIRCUM_GIRLS.percentile.yearly-f5b9f524.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-0a3d0392.js → HEAD CIRCUM_GIRLS.zscore.monthly-0bb12d79.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-7704d6f6.js → HEAD CIRCUM_GIRLS.zscore.weekly-f006ab5c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-20d7b666.js → HEAD CIRCUM_GIRLS.zscore.yearly-7284414f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-2265f5e0.js → HEIGHT_BOYS.percentile.monthly-fbd195d8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1d6f2675.js → HEIGHT_BOYS.percentile.weekly-f430a5c1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-a16c60e0.js → HEIGHT_BOYS.percentile.yearly-2d2865f4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-74f11cf7.js → HEIGHT_BOYS.zscore.monthly-9c09fe6a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-4e9ad921.js → HEIGHT_BOYS.zscore.weekly-ce50be77.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3c84be19.js → HEIGHT_BOYS.zscore.yearly-a864af3a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-d69c1bc0.js → HEIGHT_GIRLS.percentile.monthly-ac862726.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c98c3719.js → HEIGHT_GIRLS.percentile.weekly-b3b073a0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-7d1c2f8f.js → HEIGHT_GIRLS.percentile.yearly-32f6f664.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-458a3838.js → HEIGHT_GIRLS.zscore.monthly-9521e3b0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-ee69fddb.js → HEIGHT_GIRLS.zscore.weekly-ab5238fc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-4ed7d8c4.js → HEIGHT_GIRLS.zscore.yearly-a705e916.js} +0 -0
- /package/build/esm/{Onboarding-128f7694.js → Onboarding-776a51ed.js} +0 -0
- /package/build/esm/{Visible-0aff5e0b.js → Visible-0463b9e6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c975b56a.js → WEIGHT_BOYS.percentile.monthly-c9ff5588.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-fa671296.js → WEIGHT_BOYS.percentile.weekly-989fafb4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-94ee1ffc.js → WEIGHT_BOYS.percentile.yearly-164f75e1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-980ad564.js → WEIGHT_BOYS.zscore.monthly-b270ca2c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-cfd0319e.js → WEIGHT_BOYS.zscore.weekly-f7e70c1f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-93242e4e.js → WEIGHT_BOYS.zscore.yearly-32dda9e5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-3701392d.js → WEIGHT_GIRLS.percentile.monthly-718a8734.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f94367f1.js → WEIGHT_GIRLS.percentile.weekly-402cdbff.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-21712a28.js → WEIGHT_GIRLS.percentile.yearly-942157cf.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-68b0d421.js → WEIGHT_GIRLS.zscore.monthly-08c0f7e5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-53eb8866.js → WEIGHT_GIRLS.zscore.weekly-80a0dee3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-ba9c78d9.js → WEIGHT_GIRLS.zscore.yearly-7b8c6a62.js} +0 -0
- /package/build/esm/{cookieHelper-f08471b0.js → cookieHelper-df1c13f9.js} +0 -0
- /package/build/esm/{dataTransform-9a889a57.js → dataTransform-b9b83d6a.js} +0 -0
- /package/build/esm/{index-fc996fc3.js → index-08fb1171.js} +0 -0
- /package/build/esm/{index-c93685a5.js → index-2c84d24b.js} +0 -0
- /package/build/esm/{index-c4775284.js → index-65e5542a.js} +0 -0
- /package/build/esm/{isProduction-526256cd.js → isProduction-f42d4af9.js} +0 -0
- /package/build/esm/{localizeNumberFormat-40d6b54f.js → localizeNumberFormat-5d8fed7e.js} +0 -0
- /package/build/esm/{normalizeLink-630cc7e1.js → normalizeLink-83bc2fa0.js} +0 -0
- /package/build/esm/{number-2748523d.js → number-6083d486.js} +0 -0
- /package/build/esm/{paths-d658dd02.js → paths-f457e9f9.js} +0 -0
- /package/build/esm/{screenSizeContext-593881b5.js → screenSizeContext-d394cc53.js} +0 -0
- /package/build/esm/{theme-2b59bc50.js → theme-e05003ce.js} +0 -0
- /package/build/esm/{translationsContext-04bcf678.js → translationsContext-f924f41c.js} +0 -0
- /package/build/esm/{tslib.es6-541a264f.js → tslib.es6-d0d7aa00.js} +0 -0
- /package/build/esm/{types-fe0f7019.js → types-69c2911d.js} +0 -0
- /package/build/esm/{useIsInit-6bede063.js → useIsInit-af8a02c8.js} +0 -0
- /package/build/esm/{useOutsideClick-359aeef3.js → useOutsideClick-631f70f3.js} +0 -0
- /package/build/esm/{useScrollbarSize-957c3c67.js → useScrollbarSize-934266e1.js} +0 -0
- /package/build/{index-867763ec.js → index-5eb6c97e.js} +0 -0
- /package/build/{index-11d9951e.js → index-960cb1db.js} +0 -0
- /package/build/{index-89f9554a.js → index-d2a44d40.js} +0 -0
- /package/build/{isProduction-201ff7b0.js → isProduction-48b088ec.js} +0 -0
- /package/build/{localizeNumberFormat-2080e041.js → localizeNumberFormat-232b7837.js} +0 -0
- /package/build/{normalizeLink-3765f193.js → normalizeLink-a0154e50.js} +0 -0
- /package/build/{number-1de035c4.js → number-98c7d75a.js} +0 -0
- /package/build/{paths-855ff49e.js → paths-c1a7d034.js} +0 -0
- /package/build/{screenSizeContext-c2712d14.js → screenSizeContext-a1a2dd8f.js} +0 -0
- /package/build/{theme-8c73ee47.js → theme-bcfc4bf1.js} +0 -0
- /package/build/{translationsContext-1b861397.js → translationsContext-198efa0b.js} +0 -0
- /package/build/{tslib.es6-97edf1e8.js → tslib.es6-42b6a4e4.js} +0 -0
- /package/build/{types-7692b1e6.js → types-bb264b4a.js} +0 -0
- /package/build/{useIsInit-e2e74e93.js → useIsInit-9ccd66c4.js} +0 -0
- /package/build/{useOutsideClick-5f6e71c0.js → useOutsideClick-b300ce50.js} +0 -0
- /package/build/{useScrollbarSize-4221e3e3.js → useScrollbarSize-523cb659.js} +0 -0
package/build/index-eb28658b.js
DELETED
|
@@ -1,1753 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-97edf1e8.js"),t=require("react"),a=require("./core-42d5ed63.js"),i=require("./index-22536346.js"),l=require("styled-components"),o=require("./index-106a0aa4.js"),n=require("./gAssets.js"),r=require("./index-1fbc51d0.js"),s=require("./normalizeLink-3765f193.js"),d=require("./routing-ec743546.js"),u=require("./index-c29cd0ee.js"),m=require("./index-71c2b110.js"),c=require("./useTranslations-fe507352.js"),p=require("lodash/throttle"),g=require("@mantine/core");require("@mantine/dates");var h=require("./Onboarding-30aed79e.js"),f=require("dayjs"),v=require("./screenSizeContext-c2712d14.js"),y=require("./theme-8c73ee47.js");require("./isProduction-201ff7b0.js"),require("./translationsContext-1b861397.js");var x=require("string-format");require("@mantine/hooks");var b=require("./constants-0d879f21.js"),E=require("./index.styles-ad7903c3.js"),C=require("./cookieHelper-c4eae752.js"),w=require("./index-cef0a00f.js"),k=require("./constants-cae8dcfd.js");require("./utils-381adc93.js"),require("./index.styled-24033e81.js"),require("./index-867763ec.js");var $=require("lodash/debounce");require("./useCategory-5cbd3135.js");var A=require("./index-6c94c4af.js"),M=require("./useIsInit-e2e74e93.js"),P=require("dayjs/plugin/relativeTime"),N=require("./index-89f9554a.js");function L(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=L(t),S=L(l),B=L(p),T=L(f),z=L(x),D=L($),H=L(P);const U={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},j=({type:e="square",size:a,avatarImg:l,avatarUrl:o,firstLetter:n,backgroundColor:r,onClick:s,style:d,className:u,width:m,height:c,alt:p})=>{const g=a?U[a]:void 0,[h,f]=t.useState(!1);t.useEffect((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{f(!0)}))}}),[o,f]);const v=(!o&&!l||h)&&n;return _.default.createElement(E.StyledAvatar,{style:Object.assign(Object.assign({},d),{"--size":g?g+"px":void 0,"--width-prop":m?m+"px":void 0,"--height-prop":c?c+"px":void 0,"--background-color":r}),"data-has-max":!(!m||!c),"data-avatar-type":e,onClick:s,className:u,avatarUrl:o,"data-custom-size":!!a},l,o&&!h&&_.default.createElement(i.ImageWrap,{src:o,alt:p||"avatar"}),v&&n)},O=["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"],R=(e="")=>O.some((t=>new URL(e).origin.endsWith(t))),G=S.default.a`
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
position: relative;
|
|
4
|
-
flex-direction: row;
|
|
5
|
-
align-items: center;
|
|
6
|
-
padding: 7px 11px;
|
|
7
|
-
gap: 2px;
|
|
8
|
-
|
|
9
|
-
background: ${e=>e.theme.colors.white};
|
|
10
|
-
border: 1px solid ${e=>e.theme.colors.neutral100};
|
|
11
|
-
border-radius: 20px;
|
|
12
|
-
|
|
13
|
-
color: ${e=>e.theme.colors.gray600};
|
|
14
|
-
font-weight: 600;
|
|
15
|
-
font-size: 12px;
|
|
16
|
-
line-height: 18px;
|
|
17
|
-
text-decoration: none;
|
|
18
|
-
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
`,I=S.default.div`
|
|
21
|
-
position: relative;
|
|
22
|
-
display: inline-block;
|
|
23
|
-
`,Q=S.default.div`
|
|
24
|
-
position: relative;
|
|
25
|
-
`,F=S.default.div`
|
|
26
|
-
position: absolute;
|
|
27
|
-
z-index: 21;
|
|
28
|
-
top: 100%;
|
|
29
|
-
right: 0;
|
|
30
|
-
width: 327px;
|
|
31
|
-
padding: 8px;
|
|
32
|
-
background: white;
|
|
33
|
-
border-radius: 4px;
|
|
34
|
-
filter: drop-shadow(0px 8px 40px rgba(0, 0, 0, 0.1));
|
|
35
|
-
|
|
36
|
-
&[data-is-open='false'] {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
&[data-show-indicator='true'] {
|
|
40
|
-
&:before {
|
|
41
|
-
position: absolute;
|
|
42
|
-
right: 11px;
|
|
43
|
-
bottom: 100%;
|
|
44
|
-
width: 0;
|
|
45
|
-
height: 0;
|
|
46
|
-
border: 0.5rem solid transparent;
|
|
47
|
-
border-top: none;
|
|
48
|
-
border-bottom-color: #fff;
|
|
49
|
-
content: '';
|
|
50
|
-
filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1));
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
`,V=S.default.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
height: 40px;
|
|
56
|
-
align-items: center;
|
|
57
|
-
justify-content: space-between;
|
|
58
|
-
|
|
59
|
-
padding: 0 16px;
|
|
60
|
-
border-radius: ${e=>e.theme.borderRadius};
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
|
|
63
|
-
.check-icon {
|
|
64
|
-
width: 16px;
|
|
65
|
-
height: 16px;
|
|
66
|
-
}
|
|
67
|
-
&[data-selected='false'] {
|
|
68
|
-
background-color: ${e=>e.theme.colors.gray100};
|
|
69
|
-
}
|
|
70
|
-
`,q=S.default.div`
|
|
71
|
-
position: fixed;
|
|
72
|
-
z-index: 20;
|
|
73
|
-
top: 0;
|
|
74
|
-
left: 0;
|
|
75
|
-
width: 100%;
|
|
76
|
-
height: 100%;
|
|
77
|
-
cursor: default;
|
|
78
|
-
`,W=({options:e,label:a,labelRenderer:i,selected:l,onChange:r,showSelected:s=!0,style:d={},showIndicator:u=!0})=>{const[m,c]=t.useState(!1);return _.default.createElement(_.default.Fragment,null,_.default.createElement(I,null,_.default.createElement(Q,{onClick:()=>c((e=>!e))},a||(null==i?void 0:i(m))||null,_.default.createElement(F,{"data-is-open":m,style:d,"data-show-indicator":u},e.map(((e,t)=>_.default.createElement(V,{key:t,"data-selected":s&&l===e.value,onClick:t=>{l!==e.value&&(r(e.value),c((e=>!e))),t.stopPropagation()}},_.default.createElement(o.Text,{size:"p3"},e.label),s&&l===e.value&&_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),m&&_.default.createElement(q,{onClick:()=>c(!1)}))},Z=({languageOptions:e,locale:t})=>{var a,i;const l=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?_.default.createElement(W,{options:e,selected:l.value,label:_.default.createElement(Y,{locale:t,label:l.label||(null===(i=null===(a=t.split("-"))||void 0===a?void 0:a[0])||void 0===i?void 0:i.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Y=({locale:e,label:t,href:a})=>{var l,o,n;return _.default.createElement(G,{href:a},_.default.createElement(i.Flag,{country:null===(o=null===(l=null==e?void 0:e.split("-"))||void 0===l?void 0:l[1])||void 0===o?void 0:o.toUpperCase(),width:16,height:16,rounded:!0,language:null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[0]}),_.default.createElement("span",null,t))},K=({path:e,locale:t})=>{var a;return`/shop/${null===(a=b.LOCALISED_SLUGS[t||"vi-VN"])||void 0===a?void 0:a[e]}/`};var J=g.createStyles((()=>({root:{textDecoration:"none"},indicatorRoot:{marginRight:g.rem(10)},iconText:{color:"#fff"}})));const X=t=>{var{count:a,styles:i,className:l,classNames:n,locale:r}=t,s=e.__rest(t,["count","styles","className","classNames","locale"]);const{classes:d,cx:u}=J(void 0,{name:"CartBadge",styles:i,classNames:n});return void 0!==a?_.default.createElement(g.Box,Object.assign({component:"a",href:K({path:"CART",locale:r}),className:u(d.root,l)},s),_.default.createElement(g.Indicator,{classNames:{root:d.indicatorRoot},withBorder:!0,color:"red",size:20,disabled:0===a,label:_.default.createElement(o.Text,{className:d.iconText,size:"s5"},a>99?"99+":a)},_.default.createElement(o.Icon.Cart,{size:24}))):null},ee=S.default.div`
|
|
79
|
-
${e=>`\n ${0!==e.lowerBound?`@media (max-width: ${e.lowerBound-1}px) { display: none; }`:""}\n ${0!==e.upperBound?`@media (min-width: ${e.upperBound}px) { display: none; }`:""}\n `}
|
|
80
|
-
`,te=({forceDisplay:e,mediaQueryKey:a,children:i,className:l,style:o})=>{const[n,r]=t.useMemo((()=>v.getBoundariesFromMediaQueryKey(a)),[a]);return _.default.createElement(ee,{lowerBound:e?0:n,upperBound:e?0:r,className:l,style:o},i)},ae=e=>{const{allowBgScroll:a}=e||{},i=t.useRef();return{containerRef:i,onContainerFocus:()=>{a||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{a||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{i.current&&(document.activeElement===i.current||i.current.contains(document.activeElement))&&(i.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{i.current&&(document.activeElement===i.current||i.current.contains(document.activeElement))&&(i.current.blur(),document.activeElement.blur())}}},ie=S.default.div`
|
|
81
|
-
position: absolute;
|
|
82
|
-
right: 0;
|
|
83
|
-
background-color: ${e=>e.theme.colors.white};
|
|
84
|
-
|
|
85
|
-
&[data-animation='true'] {
|
|
86
|
-
transition: all 0.5s ease-in-out;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&[data-open='true'] {
|
|
90
|
-
z-index: 200;
|
|
91
|
-
top: 120%;
|
|
92
|
-
opacity: 1;
|
|
93
|
-
visibility: visible;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&[data-open='false'] {
|
|
97
|
-
display: none;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&[data-type='lead'] {
|
|
101
|
-
width: 332px;
|
|
102
|
-
height: 460px;
|
|
103
|
-
|
|
104
|
-
div {
|
|
105
|
-
top: -15px;
|
|
106
|
-
right: -15px;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&[data-type='welcome'] {
|
|
111
|
-
position: fixed;
|
|
112
|
-
${v.MediaQueries.mbDown} {
|
|
113
|
-
width: 100%;
|
|
114
|
-
height: 424px;
|
|
115
|
-
bottom: 0;
|
|
116
|
-
top: unset;
|
|
117
|
-
}
|
|
118
|
-
${v.MediaQueries.mbUp} {
|
|
119
|
-
top: 50%;
|
|
120
|
-
left: 50%;
|
|
121
|
-
transform: translate(-50%, -50%);
|
|
122
|
-
width: 100%;
|
|
123
|
-
min-height: 445px;
|
|
124
|
-
max-width: 407px;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&[data-type='due-date'] {
|
|
129
|
-
position: fixed;
|
|
130
|
-
${v.MediaQueries.mbDown} {
|
|
131
|
-
width: 100%;
|
|
132
|
-
height: 100%;
|
|
133
|
-
overflow-y: scroll;
|
|
134
|
-
bottom: 0;
|
|
135
|
-
top: unset;
|
|
136
|
-
}
|
|
137
|
-
${v.MediaQueries.mbUp} {
|
|
138
|
-
top: 50%;
|
|
139
|
-
left: 50%;
|
|
140
|
-
transform: translate(-50%, -50%);
|
|
141
|
-
width: 100vw;
|
|
142
|
-
height: 55vw;
|
|
143
|
-
max-height: 598px;
|
|
144
|
-
max-width: 1080px;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.popup-content {
|
|
149
|
-
z-index: 111;
|
|
150
|
-
height: 100%;
|
|
151
|
-
${v.MediaQueries.mbDown} {
|
|
152
|
-
max-height: calc(100vh - var(--header-bottom, 64px));
|
|
153
|
-
}
|
|
154
|
-
overflow: auto;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&[data-type='form'] {
|
|
158
|
-
width: 496px;
|
|
159
|
-
height: 548px;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&[data-type='confirm'] {
|
|
163
|
-
width: 380px;
|
|
164
|
-
height: 252px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&[data-type='profile'] {
|
|
168
|
-
/* min-height: 415px; */
|
|
169
|
-
${v.MediaQueries.mbUp} {
|
|
170
|
-
border-radius: ${e=>e.theme.borderRadius};
|
|
171
|
-
box-shadow: 0px 4px 8px
|
|
172
|
-
${e=>e.theme.colors.gray200};
|
|
173
|
-
&:before {
|
|
174
|
-
position: absolute;
|
|
175
|
-
right: 11px;
|
|
176
|
-
bottom: 100%;
|
|
177
|
-
width: 0;
|
|
178
|
-
height: 0;
|
|
179
|
-
border: 0.5rem solid transparent;
|
|
180
|
-
border-top: none;
|
|
181
|
-
border-bottom-color: #fff;
|
|
182
|
-
content: '';
|
|
183
|
-
filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1));
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
${v.MediaQueries.mbDown} {
|
|
187
|
-
position: fixed;
|
|
188
|
-
left: 0;
|
|
189
|
-
width: 100%;
|
|
190
|
-
border-top: 1px solid ${y.theme.colors.neutral100};
|
|
191
|
-
}
|
|
192
|
-
${v.MediaQueries.mbUp} {
|
|
193
|
-
width: 368px;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.close-button {
|
|
198
|
-
position: absolute;
|
|
199
|
-
top: 0;
|
|
200
|
-
right: 0;
|
|
201
|
-
width: 32px;
|
|
202
|
-
height: 32px;
|
|
203
|
-
cursor: pointer;
|
|
204
|
-
|
|
205
|
-
img {
|
|
206
|
-
width: 100%;
|
|
207
|
-
height: 100%;
|
|
208
|
-
border-radius: 50%;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
`,le="hhgcomp-navprofilebutton-popup",oe=E.getDefaultClassWrapper(ie,le),ne=S.default.div`
|
|
212
|
-
position: fixed;
|
|
213
|
-
z-index: 150;
|
|
214
|
-
top: var(--header-bottom, 56px);
|
|
215
|
-
left: 0;
|
|
216
|
-
width: 100%;
|
|
217
|
-
height: 100%;
|
|
218
|
-
align-items: center;
|
|
219
|
-
|
|
220
|
-
${v.MediaQueries.mbUp} {
|
|
221
|
-
background-color: transparent;
|
|
222
|
-
&[data-type='welcome'] {
|
|
223
|
-
background: rgba(38, 38, 38, 0.3);
|
|
224
|
-
}
|
|
225
|
-
&[data-type='due-date'] {
|
|
226
|
-
background: rgba(38, 38, 38, 0.3);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
${v.MediaQueries.mbDown} {
|
|
231
|
-
background: rgba(38, 38, 38, 0.3);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
&[data-type='welcome'] {
|
|
235
|
-
top: 0;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
&[data-open='false'] {
|
|
239
|
-
display: none;
|
|
240
|
-
}
|
|
241
|
-
`,re="hhgcomp-navprofilebutton-popupwrapper";E.getDefaultClassWrapper(ne,re);const se=S.default.div`
|
|
242
|
-
width: 40px;
|
|
243
|
-
height: 40px;
|
|
244
|
-
cursor: pointer;
|
|
245
|
-
|
|
246
|
-
img {
|
|
247
|
-
border-radius: 50%;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.avatar {
|
|
251
|
-
width: 40px;
|
|
252
|
-
height: 40px;
|
|
253
|
-
object-fit: cover;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.avatar-default {
|
|
257
|
-
display: flex;
|
|
258
|
-
align-items: center;
|
|
259
|
-
justify-content: center;
|
|
260
|
-
background-color: ${e=>e.theme.colors.secondaryBase};
|
|
261
|
-
border-radius: 50%;
|
|
262
|
-
color: white;
|
|
263
|
-
font-size: 20px;
|
|
264
|
-
font-weight: bold;
|
|
265
|
-
}
|
|
266
|
-
`,de=S.default.a`
|
|
267
|
-
display: inline-flex;
|
|
268
|
-
position: relative;
|
|
269
|
-
width: 40px;
|
|
270
|
-
height: 40px;
|
|
271
|
-
display: flex;
|
|
272
|
-
align-items: center;
|
|
273
|
-
justify-content: center;
|
|
274
|
-
text-decoration: none;
|
|
275
|
-
flex-shrink: 0;
|
|
276
|
-
cursor: pointer;
|
|
277
|
-
|
|
278
|
-
.user-close-icon {
|
|
279
|
-
display: none;
|
|
280
|
-
}
|
|
281
|
-
&:focus-within {
|
|
282
|
-
.user-close-icon {
|
|
283
|
-
display: block;
|
|
284
|
-
}
|
|
285
|
-
.user-avatar {
|
|
286
|
-
display: none;
|
|
287
|
-
}
|
|
288
|
-
.${le} {
|
|
289
|
-
z-index: 200;
|
|
290
|
-
top: 120%;
|
|
291
|
-
opacity: 1;
|
|
292
|
-
visibility: visible;
|
|
293
|
-
display: initial;
|
|
294
|
-
&[data-type='profile'] {
|
|
295
|
-
${v.MediaQueries.mbDown} {
|
|
296
|
-
top: 100%;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
.${re} {
|
|
301
|
-
display: initial;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
`,ue=S.default.a`
|
|
305
|
-
display: inline-flex;
|
|
306
|
-
.login-btn[data-color='tertiary'][data-size='md'] {
|
|
307
|
-
padding-left: 12px;
|
|
308
|
-
padding-right: 12px;
|
|
309
|
-
}
|
|
310
|
-
.mobile-only {
|
|
311
|
-
${v.MediaQueries.mbUp} {
|
|
312
|
-
display: none;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
.login-btn {
|
|
316
|
-
display: none;
|
|
317
|
-
${v.MediaQueries.mbUp} {
|
|
318
|
-
display: block;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
`,me=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:i,children:l,enableAnimation:o=!0,targetAvatar:n,id:r,className:s})=>_.default.createElement(oe,{"data-open":a,"data-type":e,"data-animation":o,"data-target":n,id:r,className:s},_.default.createElement("div",{className:"popup-content"},!!t&&_.default.createElement("div",{className:"close-button",onClick:i},t),l)),ce={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};var pe="uJQBNNg",ge="TfG3dM5",he="aMtjFNf",fe="cSz2RR-",ve="GyFm00F";function ye({userInfo:e,onClickMyProfileButton:a,themeName:i="helloSites"}){const{t:l}=c.useTranslations(),o=t.useMemo((()=>{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 _.default.createElement("div",{className:pe,onClick:()=>{a&&a()}},_.default.createElement(j,{className:ge,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:o,backgroundColor:"marryBaby"===i?y.theme.mbColors.pink:y.theme.colors.secondaryBase}),_.default.createElement("div",{className:he},_.default.createElement("div",{className:fe},(null==e?void 0:e.name)||(null==e?void 0:e.username)),_.default.createElement("div",{className:ve,style:{"--bg-hellosites":`url(${n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},l("userProfile.nav.header.viewProfile"))))}var xe="fVk18fq",be="v8TCvUb",Ee="mx7T4V3";const Ce={myHealth:y.theme.mbColors.toneYellow,myCommunity:y.theme.mbColors.toneBlue,mySaved:y.theme.mbColors.toneGreen},we={helloSites:{myBooking:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},ke=({type:e,themeName:a,className:i,onClick:l=(()=>{})})=>{const{t:o}=c.useTranslations(),n=t.useMemo((()=>{var t,i;return(null===(i=null===(t=we[a])||void 0===t?void 0:t[e])||void 0===i?void 0:i.call(t))||""}),[e,a]),r=t.useMemo((()=>"marryBaby"!==a?"transparent":Ce[e]),[e,a]);return _.default.createElement("div",{onClick:function(){l(e)},className:`${xe} ${i}`},_.default.createElement("div",{className:Ee,style:{backgroundColor:r,backgroundImage:`url("${n}")`}}),_.default.createElement("h3",{className:be},o(`userProfile.nav.card.${e}`)))};var $e="gn6HmGG",Ae="FCx8FEM",Me="zMiRxaE",Pe="lZ2Z9MQ",Ne="rwm-agG",Le="qMOscoq";const _e=({themeName:e,locale:a,onClickItem:i})=>{const[l,o]=t.useState(""),r=t.useMemo((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:n.CommonGAssets.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:n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function s(e){e.subMenu?o((t=>t?"":e.key)):i&&i(e)}return _.default.createElement("div",{className:$e},r.map((e=>_.default.createElement(Se,{key:e.key,item:e,openKey:l,onClickItem:s,locale:a}))))},Se=({item:e,openKey:t,onClickItem:a,locale:i})=>{var l;const{t:o}=c.useTranslations();return(null===(l=e.disableLocale)||void 0===l?void 0:l.includes(i))?null:_.default.createElement("div",{className:`${Ae} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},_.default.createElement("div",{className:Me,onClick:()=>a(e)},e.icon&&_.default.createElement("div",{className:Pe,style:{backgroundImage:`url("${e.icon}")`}}),o(e.key),e.subMenu&&_.default.createElement("div",{className:Ne,style:{"--after-bg":`url(${n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&_.default.createElement("div",{className:Le},e.subMenu.map((e=>_.default.createElement(Se,{key:e.key,item:e,openKey:t,onClickItem:a,locale:i})))))};var Be="-AZt1au",Te="IvSIfCI",ze="eahCJov",De="XIyViFs",He="_4y-O0w3",Ue="kO8iNgD",je="a1d4E10",Oe="Tdguxxf",Re="-mOxsaU",Ge="yPeDBNZ";const Ie={helloSites:{member:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>n.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Qe=({themeName:e,rank:a="member",numberOfPosts:i=0})=>{const{t:l}=c.useTranslations(),o=t.useMemo((()=>{var t,i;return(null===(i=null===(t=Ie[e])||void 0===t?void 0:t[a])||void 0===i?void 0:i.call(t))||""}),[a,e]);return _.default.createElement("div",{className:He,"data-user-rank":a},_.default.createElement("div",{className:Ue},_.default.createElement("div",{className:je},_.default.createElement("div",{className:Oe,style:{backgroundImage:`url("${o}")`}}),_.default.createElement("h3",{className:Re},l(`userProfile.userRank.${a}`)),i>0&&_.default.createElement("p",{className:Ge},i," ",l("userProfile.nav.header.count.posts")))))},Fe="profile/posts?website_url={websiteUrl}",Ve=99,qe=300,We=400,Ze=210,Ye=e=>{var t,a,i,l;return e?{termId:e.term_id||null,sponsor:e.sponsor?(l=e.sponsor,l?{title:l.title,logo:l.logo,link:l.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=>Ye(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(i=e.reviewed_by,{postTitle:i.post_title,permalink:i.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}:{}},Ke=e=>{var t,a;if(!e)return{};const i=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),l=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),o=e.link?e.link.startsWith("http")||i?e.link:l?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:o,subtitle:e.subtitle,title:e.title}},Je=e=>{var t,a,i,l,o;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(i=e.object_id)||void 0===i?void 0:i.name)||"",name:(null===(l=e.object_id)||void 0===l?void 0:l.name)||"",slug:(null===(o=e.object_id)||void 0===o?void 0:o.slug)||""}:{}},Xe=e=>{var t,a,i,l,o;return e&&(null==e?void 0:e.object_id)?{id:null===(t=e.object_id)||void 0===t?void 0:t.id,name:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",logo:(null===(i=null==e?void 0:e.object_id)||void 0===i?void 0:i.logo)||"",description:(null===(l=e.object_id)||void 0===l?void 0:l.description)||"",slug:(null===(o=e.object_id)||void 0===o?void 0:o.slug)||""}:{}},et=({type:e,specialtySlug:t,locale:a})=>{var i,l;return`${null===(i=k.LOCALIZED_SLUGS[a])||void 0===i?void 0:i.ALL}/${(null===(l=k.LOCALIZED_SLUGS[a])||void 0===l?void 0:l[e])||"doctor"}/${null!=t?t:""}`},tt=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}:{},at=e=>{const t=new Date;if(null==e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()<a.getTime())return!1}if(null==e?void 0:e.endDate){const a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0},it=({SSO_URL:e,UP_BASEPATH:a="user",themeName:i="helloSites",cardUrls:l=ce,enableCare:o,enableTogether:d,enableEcom:u,enableMySaved:m,userInfo:p,togetherApiDomain:g,userPostsNumber:h,onClickNavigationCard:f,onClickMyProfileButton:v,onClickMenuItem:y,onClickLogout:x,isUserProfileNavigatorMenuHidden:b=!1,isMyHealthEnabled:E=!1,locale:k})=>{const{t:$}=c.useTranslations(),[A,M]=t.useState(h||0),P="marryBaby"===i;t.useEffect((()=>{if(p&&void 0===h){const e=C.getCookie("hhg_user_token");e&&fetch(s.normalizeLinkSlash(((e,t,a,i)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+z.default(Fe,Object.assign(Object.assign({},i),{websiteUrl:t?"https://marrybaby.vn":`https://${r.domainLocales[e]}`})))(k,P,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,i;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&M((null===(i=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===i?void 0:i.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[k,null!==p,h,g,P]);const N=t.useMemo((()=>{let e;return e=P?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?o:"myCommunity"===e?d:"myHealth"===e?E:"eCom"===e?u:"mySaved"!==e||m))}),[P,E]),L=t.useMemo((()=>"marryBaby"===i?null:_.default.createElement(w.Button,{color:"tertiary",icon:_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:x,className:De},$("userProfile.nav.menu.logout"))),[i]),S=t=>{t.startsWith("http")||t.startsWith("/")?window.location.href=s.normalizeLink(t):e&&(window.location.href=s.normalizeLink(`${e}${a}/${t}`))},B=e=>{const t=l[e];f?f(t):S(t)};return p?_.default.createElement("div",{className:Be,"data-theme":i},_.default.createElement(ye,{userInfo:p,themeName:i,onClickMyProfileButton:()=>{v?v():S("profile")}}),_.default.createElement(Qe,{themeName:i,rank:"member",numberOfPosts:A}),_.default.createElement("div",{className:Te},N.map((e=>_.default.createElement(ke,{className:ze,key:e,themeName:i,type:e,onClick:B})))),!b&&_.default.createElement(_.default.Fragment,null,_.default.createElement(_e,{themeName:i,locale:k,onClickItem:e=>{"logout"===e.link&&x?x():e.link&&!e.subMenu&&(y?y(e.link):S(e.link))}}),L)):null},lt=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:i,userInfo:l,enableCare:o,enableTogether:n,enableEcom:r,enableMySaved:d,closePopup:u,siteType:m="helloSites",dispatchLogout:c,userProfileRouterPush:p,isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:h=!1,togetherApiDomain:f,locale:v})=>{const y=a=>{if(a.startsWith("http"))window.location.href=s.normalizeLink(a);else if(a.startsWith("/")){let e=window.location.origin;e.includes("id.")&&(e=b.DISCOVER_URL_FE),window.location.href=s.normalizeLink(`${e}${a}`)}else p?p(`/${a}`):window.location.href=s.normalizeLink(`${e}${t}/${a}`)},x=e=>{y(e),u()};return _.default.createElement(me,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:i,onClose:u},_.default.createElement(it,{SSO_URL:e,UP_BASEPATH:t,themeName:m,userInfo:l,enableCare:o,enableTogether:n,enableEcom:r,enableMySaved:d,onClickLogout:()=>{c&&(c(),u())},onClickMenuItem:x,onClickNavigationCard:x,onClickMyProfileButton:()=>{y("profile"),u()},isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:h,togetherApiDomain:f,locale:v}))},ot=S.default.div`
|
|
322
|
-
background-color: white;
|
|
323
|
-
text-align: center;
|
|
324
|
-
.cancle-img {
|
|
325
|
-
margin-top: 24px;
|
|
326
|
-
${v.MediaQueries.mbDown} {
|
|
327
|
-
width: 80px;
|
|
328
|
-
height: 80px;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
${v.MediaQueries.mbUp} {
|
|
332
|
-
width: 100px;
|
|
333
|
-
height: 100px;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
h2 {
|
|
338
|
-
margin-top: 32px;
|
|
339
|
-
color: ${e=>e.theme.colors.gray800};
|
|
340
|
-
font-style: normal;
|
|
341
|
-
font-weight: bold;
|
|
342
|
-
${v.MediaQueries.mbDown} {
|
|
343
|
-
font-size: 24px;
|
|
344
|
-
line-height: 32px;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
${v.MediaQueries.mbUp} {
|
|
348
|
-
font-size: 32px;
|
|
349
|
-
line-height: 42px;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
p {
|
|
354
|
-
margin-top: 8px;
|
|
355
|
-
color: ${e=>e.theme.colors.gray600};
|
|
356
|
-
font-style: normal;
|
|
357
|
-
font-weight: normal;
|
|
358
|
-
${v.MediaQueries.mbDown} {
|
|
359
|
-
font-size: 16px;
|
|
360
|
-
line-height: 24px;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
${v.MediaQueries.mbUp} {
|
|
364
|
-
font-size: 16px;
|
|
365
|
-
line-height: 24px;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
`,nt=S.default.div`
|
|
369
|
-
display: flex;
|
|
370
|
-
|
|
371
|
-
${v.MediaQueries.mbDown} {
|
|
372
|
-
margin-top: 24px;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
${v.MediaQueries.mbUp} {
|
|
376
|
-
margin-top: 32px;
|
|
377
|
-
}
|
|
378
|
-
justify-content: space-around;
|
|
379
|
-
button {
|
|
380
|
-
flex: 1;
|
|
381
|
-
margin: 4px;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
${e=>"marryBaby"===e.siteType?"\n .cancel-button {\n background-color: #E55C8A;\n }\n .cancel-button:hover {\n background-color: #E55C8A !important;\n }\n .logout-button {\n border-color: #E55C8A;\n color: #E55C8A;\n }\n ":""}
|
|
385
|
-
`,rt=({openLogoutPopup:e,onCloseHandler:a,onLogoutHandler:i,siteType:l="helloSites"})=>{const{t:o}=c.useTranslations();return t.useEffect((()=>{document.body.classList.toggle("noscroll",e)}),[e]),_.default.createElement(g.Portal,null,_.default.createElement(u.Popup,{type:"confirm",isOpen:e,closeIcon:_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:a},_.default.createElement(ot,null,"helloSites"===l&&_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),_.default.createElement("h2",null,o("helloSites"===l?"logout.popup.ask1":"logout.popup.ask.mb")),_.default.createElement("p",null,o("logout.popup.ask2")),_.default.createElement(nt,{siteType:l},_.default.createElement(w.Button,{className:"logout-button",color:"tertiary",size:"lg",onClick:i},o("logout.popup.button.logout")),_.default.createElement(w.Button,{className:"cancel-button",color:"primary",size:"lg",onClick:a},o("logout.popup.button.cancel"))))))},st=({userInfo:a,siteType:l,onLoginClick:r,SSO_URL:d,currentUrl:u,isMinifyLogin:m,enableCare:p,enableTogether:g,enableEcom:f,isUserProfileNavigatorMenuHidden:v,UP_BASEPATH:x,isMyHealthEnabled:b,togetherApiDomain:E,onLogout:C,style:w,userProfileRouterPush:k,isLoading:$,locale:A,enableMySaved:M})=>{const{t:P}=c.useTranslations(),[N,L]=t.useState(!1),S=(null==a?void 0:a.name)||(null==a?void 0:a.username),[B,T]=t.useState(!1);t.useEffect((()=>{T(!0)}),[]);const{containerRef:z,onContainerFocus:D,onContainerBlur:H,onButtonMouseDown:U,onClose:j}=ae();return $?_.default.createElement(i.Button,{size:"sm",color:"transparent",loading:$}):(null==a?void 0:a.id)?_.default.createElement(_.default.Fragment,null,_.default.createElement(de,{ref:z,style:w,tabIndex:0,onBlur:H,onFocus:D},_.default.createElement("div",{onMouseDown:U},_.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},_.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),_.default.createElement(i.Avatar,{size:40,className:"user-avatar",src:null==a?void 0:a.avatar,color:"marryBaby"===l?y.theme.mbColors.pink:y.theme.colors.secondaryBase,placeholderText:S&&S.length?S[0].toUpperCase():"A"})),_.default.createElement(lt,{UP_BASEPATH:x,SSO_URL:d,dispatchLogout:()=>{j(),L(!0)},isOpen:!1,isMyHealthEnabled:b,enableCare:p,enableTogether:g,enableEcom:f,enableMySaved:M,closePopup:j,userInfo:a,siteType:l,isUserProfileNavigatorMenuHidden:v,togetherApiDomain:E,userProfileRouterPush:k,locale:A})),_.default.createElement(rt,{openLogoutPopup:N,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),L(!1)},siteType:l,onLogoutHandler:()=>e.__awaiter(void 0,void 0,void 0,(function*(){L(!1),document.body.classList.toggle("noscroll",!1),yield C()}))})):_.default.createElement(ue,{style:Object.assign({textDecoration:"none"},w),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":u,href:B?void 0:s.normalizeLinkSlash(`${d}?returnUrl=${u}`),"data-site-type":l},m?_.default.createElement(se,{onClick:r},_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):_.default.createElement(_.default.Fragment,null,"helloSites"===l&&(A===h.LOCALE.Indonesia||A===h.LOCALE.PhilippinesTagalog||A===h.LOCALE.PhilippinesEnglish?_.default.createElement("img",{className:"mobile-only",src:n.CommonGAssets.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:r}):_.default.createElement(i.Button,{className:"mobile-only",size:"sm",onClick:r,leftIcon:_.default.createElement(o.User,{useCurrentColor:!0,isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"}},P("navigation.loginJoin"))),"marryBaby"===l&&_.default.createElement("div",{className:"mobile-only",onClick:r,style:{paddingLeft:16}},_.default.createElement(o.Text,{size:"p3",color:y.theme.mbColors.pink},P("navigation.loginJoin"))),_.default.createElement(i.Button,{className:"login-btn",size:"md",onClick:r,leftIcon:_.default.createElement(o.User,{useCurrentColor:!0,isSolid:!0,size:22})},P("navigation.loginJoin"))))};var dt="spdlGfq",ut="vgS16jX";const mt=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:i})=>e?_.default.createElement(w.Button,{className:dt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},i):_.default.createElement("a",{href:a,className:`${ut} care-button no-replace-click`},_.default.createElement(w.Button,{className:dt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},i));var ct="y5VJdvw",pt="oVhOSCy",gt="pX8OXTM";const ht=_.default.createContext({}),ft=a=>{var{children:i}=a,l=e.__rest(a,["children"]);const[o,n]=_.default.useState((()=>l.currentUrl||`https://${"marryBaby"===l.siteType?E.domainLocalesMarryBaby[l.locale||"en-PH"]:r.domainLocales[l.locale||"en-PH"]}${"together"===l.projectType?"/community":"ecom"===l.projectType?"/ecom":"care"===l.projectType?"/care":""}/`));t.useEffect((()=>{const e=()=>{n(window.location.href)};return window.addEventListener("popstate",e),e(),()=>{window.removeEventListener("popstate",e)}}),[]);const s=(({locale:e,projectType:a,isMobile:i,siteType:l,enableBookingBtn:o})=>t.useMemo((()=>{const t=!(!i&&"profile"===a),n="discover"===a||"marryBaby"===a||"profile"===a&&"marryBaby"===l,s="marryBaby"!==l&&"marryBaby"!==a&&r.CARE_LOCALES.includes(e),u=o&&"marryBaby"!==a&&"discover"===a&&"marryBaby"!==l&&r.CARE_BOOKING_LOCALES.includes(e),m="marryBaby"===a||r.TOGETHER_LOCALES.includes(e),c="marryBaby"!==l&&r.ECOM_LOCALES.includes(e),p="marryBaby"!==l&&r.ECOM_LOCALES.includes(e);let g=d.getCurrentBaseUrl(e,"marryBaby"===l);"undefined"!=typeof window&&(g.includes("//id.")&&(g=g.replace("id.","")),g.includes("//staging-id.")&&(g=g.replace("staging-id.","discover.")));return{enableProfileNavigatorMenu:t,enableSearchBar:n,enableNavCare:s,enableNavCareBooking:u,enableNavTogether:m,enableNavEcom:c,enableProfileEcom:p,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:{HOME_PAGE_URL:g,CARE_URL_FE:`${g}/care`,TOGETHER_URL_FE:`${g}/community`,SSO_URL:d.getCurrentSsoUrl(e,"marryBaby"===l),TOGETHER_API:d.getTogetherApiDomain(),DISCOVER_API:d.getDiscoverApiDomain(e)}}}),[e,a,i]))({locale:l.locale,projectType:l.projectType,isMobile:l.isMobile,siteType:l.siteType,enableBookingBtn:l.enableBookingBtn});return _.default.createElement(ht.Provider,{value:Object.assign(Object.assign({},l),{configs:Object.assign(Object.assign({},s),l.configs),currentUrl:l.currentUrl||o})},i)};function vt({className:e}){return _.default.createElement("div",null,_.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:e},_.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function yt({siteType:e,type:t,enableSearch:a,className:i}){return"helloSites"===e?_.default.createElement("div",null,_.default.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?n.CommonGAssets.getAssetPath("hamburgerMenuNewWithSearch.svg"):n.CommonGAssets.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:i,loading:"lazy"})):_.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:i},_.default.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 xt=S.default.div`
|
|
386
|
-
position: fixed;
|
|
387
|
-
z-index: 201;
|
|
388
|
-
top: calc(100% + 1px); // border 1px
|
|
389
|
-
width: 100%;
|
|
390
|
-
height: calc(100vh - var(--header-bottom));
|
|
391
|
-
overflow-x: hidden;
|
|
392
|
-
overflow-y: auto;
|
|
393
|
-
background: white;
|
|
394
|
-
display: flex;
|
|
395
|
-
flex-direction: column;
|
|
396
|
-
padding-bottom: 0;
|
|
397
|
-
left: 0;
|
|
398
|
-
.hhgcomp-navigation-popupwrapper-menuwrapper {
|
|
399
|
-
position: unset;
|
|
400
|
-
}
|
|
401
|
-
`;S.default.div`
|
|
402
|
-
position: fixed;
|
|
403
|
-
bottom: 0;
|
|
404
|
-
left: 0;
|
|
405
|
-
display: flex;
|
|
406
|
-
width: 100%;
|
|
407
|
-
height: 72px;
|
|
408
|
-
align-items: flex-start;
|
|
409
|
-
justify-content: center;
|
|
410
|
-
|
|
411
|
-
background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
|
|
412
|
-
|
|
413
|
-
.button-image {
|
|
414
|
-
stroke-color: blue;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
&[data-site-type='marryBaby'] {
|
|
418
|
-
padding: 0 16px;
|
|
419
|
-
.category-button {
|
|
420
|
-
width: 100%;
|
|
421
|
-
height: 48px;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
`,S.default.div`
|
|
425
|
-
display: flex;
|
|
426
|
-
|
|
427
|
-
&[data-card-array-no-margin-style='true'] {
|
|
428
|
-
margin: 8px 0;
|
|
429
|
-
|
|
430
|
-
& > div {
|
|
431
|
-
width: 0;
|
|
432
|
-
flex: 1;
|
|
433
|
-
margin: 0 -1px;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
&[data-card-array-no-margin-style='false'] {
|
|
438
|
-
margin: 8px -4px;
|
|
439
|
-
|
|
440
|
-
& > div {
|
|
441
|
-
flex: 1;
|
|
442
|
-
margin: 0 4px;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
`,S.default.div`
|
|
446
|
-
margin-top: 64px;
|
|
447
|
-
`,S.default.div`
|
|
448
|
-
padding: 24px 0;
|
|
449
|
-
`,S.default.div`
|
|
450
|
-
display: flex;
|
|
451
|
-
width: 100%;
|
|
452
|
-
align-items: center;
|
|
453
|
-
justify-content: center;
|
|
454
|
-
|
|
455
|
-
& > div:first-child {
|
|
456
|
-
margin-right: 8px;
|
|
457
|
-
}
|
|
458
|
-
`,S.default.div`
|
|
459
|
-
z-index: ${Ze};
|
|
460
|
-
align-items: center;
|
|
461
|
-
|
|
462
|
-
border: 1px solid ${e=>e.theme.colors.neutral50};
|
|
463
|
-
background-color: ${e=>e.theme.colors.white};
|
|
464
|
-
box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
|
|
465
|
-
0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
|
|
466
|
-
0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
467
|
-
`,S.default.div`
|
|
468
|
-
position: relative;
|
|
469
|
-
display: flex;
|
|
470
|
-
flex-wrap: wrap;
|
|
471
|
-
align-items: flex-start;
|
|
472
|
-
justify-content: flex-start;
|
|
473
|
-
padding: 48px 0;
|
|
474
|
-
`,S.default.div`
|
|
475
|
-
position: relative;
|
|
476
|
-
display: flex;
|
|
477
|
-
flex-wrap: wrap;
|
|
478
|
-
align-items: flex-start;
|
|
479
|
-
justify-content: flex-start;
|
|
480
|
-
&[data-disabled-divider='false'] {
|
|
481
|
-
border-right: 1px solid #e4e8ec;
|
|
482
|
-
}
|
|
483
|
-
`,S.default.div`
|
|
484
|
-
width: 20%;
|
|
485
|
-
padding-right: 16px;
|
|
486
|
-
margin-bottom: 12px;
|
|
487
|
-
|
|
488
|
-
& > a {
|
|
489
|
-
color: ${e=>e.theme.colors.gray800};
|
|
490
|
-
font-size: ${e=>e.theme.sizes.fsParagraph4};
|
|
491
|
-
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
492
|
-
line-height: 22px;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
& > a:hover {
|
|
496
|
-
color: ${e=>e.theme.colors.primaryBase};
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
.iconMenu {
|
|
500
|
-
display: flex;
|
|
501
|
-
align-items: center;
|
|
502
|
-
|
|
503
|
-
> .imageContainer {
|
|
504
|
-
display: flex;
|
|
505
|
-
width: 32px;
|
|
506
|
-
min-width: 32px;
|
|
507
|
-
align-items: center;
|
|
508
|
-
margin-right: 16px;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
`,S.default.div`
|
|
512
|
-
display: none;
|
|
513
|
-
`,S.default.div`
|
|
514
|
-
width: 33%;
|
|
515
|
-
height: 48px;
|
|
516
|
-
padding-right: 16px;
|
|
517
|
-
margin-bottom: 12px;
|
|
518
|
-
|
|
519
|
-
& > a {
|
|
520
|
-
display: flex;
|
|
521
|
-
align-items: center;
|
|
522
|
-
color: ${e=>e.theme.colors.gray800};
|
|
523
|
-
font-size: ${e=>e.theme.sizes.fsParagraph4};
|
|
524
|
-
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
525
|
-
line-height: 22px;
|
|
526
|
-
|
|
527
|
-
& > :first-child {
|
|
528
|
-
margin-right: 16px;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
& > a > p:hover {
|
|
533
|
-
color: ${e=>e.theme.colors.primaryBase};
|
|
534
|
-
}
|
|
535
|
-
`,S.default.div`
|
|
536
|
-
display: flex;
|
|
537
|
-
align-items: center;
|
|
538
|
-
|
|
539
|
-
padding-right: 16px;
|
|
540
|
-
margin-bottom: 12px;
|
|
541
|
-
color: ${e=>e.theme.colors.primaryBase};
|
|
542
|
-
font-size: ${e=>e.theme.sizes.fsParagraph4};
|
|
543
|
-
font-weight: ${e=>e.theme.sizes.fwBold};
|
|
544
|
-
line-height: 24px;
|
|
545
|
-
|
|
546
|
-
&[data-theme='marryBaby'] {
|
|
547
|
-
color: ${e=>e.theme.mbColors.pink};
|
|
548
|
-
}
|
|
549
|
-
`,S.default.div`
|
|
550
|
-
display: flex;
|
|
551
|
-
align-items: center;
|
|
552
|
-
|
|
553
|
-
margin-left: 10px;
|
|
554
|
-
`,S.default.div`
|
|
555
|
-
position: absolute;
|
|
556
|
-
top: 16px;
|
|
557
|
-
right: 0;
|
|
558
|
-
display: flex;
|
|
559
|
-
align-items: center;
|
|
560
|
-
cursor: pointer;
|
|
561
|
-
`,S.default.div`
|
|
562
|
-
display: block;
|
|
563
|
-
`,S.default.div`
|
|
564
|
-
.categories__spotlight {
|
|
565
|
-
display: grid;
|
|
566
|
-
margin: 16px;
|
|
567
|
-
margin-bottom: 32px;
|
|
568
|
-
grid-gap: 8px;
|
|
569
|
-
grid-template-columns: 1fr 1fr;
|
|
570
|
-
|
|
571
|
-
a {
|
|
572
|
-
text-decoration: none;
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.categoryCard {
|
|
577
|
-
display: flex;
|
|
578
|
-
width: 100%;
|
|
579
|
-
flex-direction: column;
|
|
580
|
-
align-items: center;
|
|
581
|
-
padding: 16px;
|
|
582
|
-
border-radius: ${e=>e.theme.borderRadius};
|
|
583
|
-
color: ${e=>e.theme.colors.primaryBase};
|
|
584
|
-
|
|
585
|
-
svg {
|
|
586
|
-
margin-bottom: 4px;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
&.active {
|
|
590
|
-
background: ${e=>e.theme.colors.primaryBase};
|
|
591
|
-
box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06),
|
|
592
|
-
0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
593
|
-
color: white;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
&:not(.active) {
|
|
597
|
-
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04),
|
|
598
|
-
0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
.amp__menu-header {
|
|
603
|
-
display: grid;
|
|
604
|
-
grid-template-columns: 1fr 1fr 1fr;
|
|
605
|
-
|
|
606
|
-
svg {
|
|
607
|
-
margin-left: 16px;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
> div {
|
|
611
|
-
align-self: center;
|
|
612
|
-
|
|
613
|
-
&:nth-child(2) {
|
|
614
|
-
justify-self: center;
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
.logo {
|
|
620
|
-
margin: 22px 0;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
.categories {
|
|
624
|
-
margin: 0 16px;
|
|
625
|
-
|
|
626
|
-
li {
|
|
627
|
-
display: block;
|
|
628
|
-
width: 100%;
|
|
629
|
-
|
|
630
|
-
+ li {
|
|
631
|
-
border-top: 1px solid
|
|
632
|
-
${e=>e.theme.colors.neutral100};
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
a {
|
|
636
|
-
display: block;
|
|
637
|
-
margin: 12px 0;
|
|
638
|
-
color: ${e=>e.theme.colors.gray800};
|
|
639
|
-
text-decoration: none;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
`,S.default.div`
|
|
644
|
-
width: 20%;
|
|
645
|
-
height: 2px;
|
|
646
|
-
|
|
647
|
-
background-color: ${e=>e.theme.mbColors.pink};
|
|
648
|
-
border-radius: 2px;
|
|
649
|
-
`;const bt=S.default.div`
|
|
650
|
-
padding: 16px;
|
|
651
|
-
padding-bottom: 12px;
|
|
652
|
-
.fake-search-input {
|
|
653
|
-
pointer-events: none;
|
|
654
|
-
input {
|
|
655
|
-
line-height: 20px;
|
|
656
|
-
padding-top: 10px;
|
|
657
|
-
padding-bottom: 10px;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
&[data-theme='marryBaby'] {
|
|
661
|
-
input {
|
|
662
|
-
background: ${e=>e.theme.mbColors.lightGray};
|
|
663
|
-
border-radius: 16px;
|
|
664
|
-
border: none;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
`,Et=S.default.div`
|
|
668
|
-
display: block;
|
|
669
|
-
overflow-y: auto;
|
|
670
|
-
flex: 1;
|
|
671
|
-
padding-bottom: 16px;
|
|
672
|
-
&::-webkit-scrollbar {
|
|
673
|
-
width: 0;
|
|
674
|
-
display: none;
|
|
675
|
-
}
|
|
676
|
-
`,Ct=t.memo((()=>_.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},_.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9683 19.7465 14.8938 19.0204 16.4118 17.8061L20.3169 21.7112C20.702 22.0963 21.3262 22.0963 21.7112 21.7112C22.0963 21.3262 22.0963 20.702 21.7112 20.3169L17.8061 16.4118C19.0204 14.8938 19.7465 12.9683 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#8C8C8C"})))),wt=()=>{const{locale:e,configs:{statics:a},siteType:i}=t.useContext(ht),l=c.useUniqueId(),{t:o}=c.useTranslations();return _.default.createElement(E.PureInput,{className:"fake-search-input",name:"search-input-menu-service"+l,size:"md",placeholder:"marryBaby"===i?o("navigation.search.input.placeholder"):o("home.search",{site:r.LOCALE_SPECS[e||"en-PH"]?r.LOCALE_SPECS[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${a.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:_.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},_.default.createElement(Ct,null))})},kt=S.default.div`
|
|
677
|
-
padding-right: 1rem;
|
|
678
|
-
margin-top: 10px;
|
|
679
|
-
background: #ffffff;
|
|
680
|
-
padding: 5px 15px;
|
|
681
|
-
${v.MediaQueries.mbUp} {
|
|
682
|
-
border-right: 1px solid #e4e8ec;
|
|
683
|
-
}
|
|
684
|
-
`,$t=S.default.a`
|
|
685
|
-
padding: 10px 0;
|
|
686
|
-
position: relative;
|
|
687
|
-
|
|
688
|
-
display: flex;
|
|
689
|
-
align-items: center;
|
|
690
|
-
text-decoration: none;
|
|
691
|
-
color: ${e=>e.theme.colors.gray800};
|
|
692
|
-
* {
|
|
693
|
-
pointer-events: none;
|
|
694
|
-
}
|
|
695
|
-
p {
|
|
696
|
-
font-size: 16px;
|
|
697
|
-
font-weight: 400;
|
|
698
|
-
padding: 0 0.4rem;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
&[data-theme='marryBaby']:hover {
|
|
702
|
-
p {
|
|
703
|
-
color: ${e=>e.theme.mbColors.pink};
|
|
704
|
-
}
|
|
705
|
-
.icon {
|
|
706
|
-
background-color: ${e=>e.theme.mbColors.lightPink};
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
&[data-theme='helloSite']:hover {
|
|
710
|
-
p {
|
|
711
|
-
color: ${e=>e.theme.colors.primaryActive};
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
a {
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
&[data-theme='marryBaby'] {
|
|
718
|
-
.icon {
|
|
719
|
-
display: flex;
|
|
720
|
-
align-items: center;
|
|
721
|
-
justify-content: center;
|
|
722
|
-
max-width: 40px;
|
|
723
|
-
width: 100%;
|
|
724
|
-
height: 40px;
|
|
725
|
-
border-radius: 50%;
|
|
726
|
-
background-color: ${e=>e.theme.mbColors.lightGray};
|
|
727
|
-
img {
|
|
728
|
-
border-radius: 50%;
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
`,At=S.default.div`
|
|
733
|
-
margin: 15px 0;
|
|
734
|
-
${v.MediaQueries.mbDown} {
|
|
735
|
-
display: none;
|
|
736
|
-
}
|
|
737
|
-
`,Mt=S.default.div`
|
|
738
|
-
display: flex;
|
|
739
|
-
position: absolute;
|
|
740
|
-
right: 0;
|
|
741
|
-
${v.MediaQueries.mbUp} {
|
|
742
|
-
display: none;
|
|
743
|
-
}
|
|
744
|
-
`,Pt=S.default.div`
|
|
745
|
-
display: flex;
|
|
746
|
-
align-items: center;
|
|
747
|
-
color: ${e=>e.theme.colors.primaryBase};
|
|
748
|
-
font-size: ${e=>e.theme.sizes.fsParagraph4};
|
|
749
|
-
font-weight: ${e=>e.theme.sizes.fwBold};
|
|
750
|
-
line-height: 24px;
|
|
751
|
-
font-size: 14px;
|
|
752
|
-
font-weight: 600;
|
|
753
|
-
&[data-event-category] * {
|
|
754
|
-
pointer-events: none;
|
|
755
|
-
}
|
|
756
|
-
&[data-theme='marryBaby'] {
|
|
757
|
-
color: ${e=>e.theme.mbColors.pink};
|
|
758
|
-
}
|
|
759
|
-
`,Nt=S.default.div`
|
|
760
|
-
display: flex;
|
|
761
|
-
align-items: center;
|
|
762
|
-
margin-left: 10px;
|
|
763
|
-
`,Lt=S.default.a`
|
|
764
|
-
border: 1px solid ${e=>e.theme.colors.primaryBase};
|
|
765
|
-
&[data-theme='marryBaby'] {
|
|
766
|
-
border: 1px solid ${e=>e.theme.mbColors.pink};
|
|
767
|
-
|
|
768
|
-
svg path {
|
|
769
|
-
stroke: ${e=>e.theme.mbColors.pink};
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
position: relative;
|
|
773
|
-
display: flex;
|
|
774
|
-
align-items: center;
|
|
775
|
-
justify-content: center;
|
|
776
|
-
padding: 6px;
|
|
777
|
-
border-radius: 5px;
|
|
778
|
-
margin-top: 20px;
|
|
779
|
-
${v.MediaQueries.mbDown} {
|
|
780
|
-
display: none;
|
|
781
|
-
}
|
|
782
|
-
`;var _t="wnUb-dV",St="cjbOxWe",Bt="gB4rp89";const Tt=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:i,onContainerBlur:l,onButtonMouseDown:o,onClose:n}=ae({allowBgScroll:!0}),r=M.useIsInit();return!e.popupType&&e.link?_.default.createElement(zt,{isNew:e.isNew},_.default.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},_.default.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:St},"care"===e.id&&_.default.createElement("div",{className:Bt},_.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},_.default.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name))):_.default.createElement(zt,{isNew:e.isNew},_.default.createElement("div",{ref:a,className:`hhgcomp-navigation-itemnav-headeritem ${r?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:l,onFocus:i,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},_.default.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:St},"care"===e.id&&_.default.createElement("a",{className:Bt,href:s.normalizeLinkSlash(e.link+"/")},_.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},_.default.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name,e.popupType&&_.default.createElement("div",{className:_t},_.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},_.default.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),_.default.isValidElement(t)?_.default.cloneElement(t,{onClose:n}):null))},zt=({isNew:e,children:t})=>{const{t:a}=c.useTranslations();return e?_.default.createElement(A.Indicator,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):_.default.createElement(_.default.Fragment,null,t)},Dt=({hrefViewMore:e,titleBtnViewMore:a,UrlFE:i,onClosePopup:l,menuItems:o,headingTitle:r})=>{const{siteType:s}=t.useContext(ht);return _.default.createElement(kt,null,_.default.createElement(At,null,_.default.createElement(E.Heading,{tag:"marryBaby"===s?"h5":"h6",as:"p",fontWeight:"semibold"},r)),null==o?void 0:o.slice(0,6).map(((e,t)=>{const a=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${i}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return _.default.createElement($t,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":a,"data-is-heading-category":!1,href:a},!R(a)&&{target:"_blank"},{"data-theme":s,key:t,onClick:l}),_.default.createElement("div",{className:"icon"},_.default.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),_.default.createElement(zt,{isNew:e.isNew},_.default.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),_.default.createElement(Mt,null,_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),a&&_.default.createElement(Lt,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},_.default.createElement(Pt,{onClick:l,"data-theme":s,"data-is-heading-category":!1},a,_.default.createElement(Nt,null,_.default.createElement("img",{className:"svg",src:"marryBaby"===s?n.CommonGAssets.getAssetPath("chevronRightPink.svg"):n.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))};S.default.div`
|
|
783
|
-
& > a:not(:last-child) > div {
|
|
784
|
-
border-bottom: 1px solid
|
|
785
|
-
${e=>e.theme.colors.neutral100};
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
&[data-category-list-type='sub'] {
|
|
789
|
-
padding-bottom: 72px;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
&[data-is-displayed='false'] {
|
|
793
|
-
display: none;
|
|
794
|
-
}
|
|
795
|
-
`;const Ht=S.default.div`
|
|
796
|
-
display: grid;
|
|
797
|
-
|
|
798
|
-
grid-template-columns: repeat(3, 1fr);
|
|
799
|
-
gap: 24px;
|
|
800
|
-
margin-bottom: 3.5rem;
|
|
801
|
-
${v.MediaQueries.tdDown} {
|
|
802
|
-
grid-template-columns: repeat(1, 1fr);
|
|
803
|
-
}
|
|
804
|
-
`,Ut=S.default.div`
|
|
805
|
-
height: 152px; // 120 + 16 * 2
|
|
806
|
-
position: absolute;
|
|
807
|
-
top: 0;
|
|
808
|
-
left: 0;
|
|
809
|
-
z-index: 3;
|
|
810
|
-
overflow: hidden;
|
|
811
|
-
border-radius: 4px;
|
|
812
|
-
padding: 16px;
|
|
813
|
-
width: 100%;
|
|
814
|
-
|
|
815
|
-
.img-container {
|
|
816
|
-
width: 100%;
|
|
817
|
-
height: 100%;
|
|
818
|
-
}
|
|
819
|
-
img {
|
|
820
|
-
width: 100%;
|
|
821
|
-
height: 100%;
|
|
822
|
-
display: block;
|
|
823
|
-
object-fit: contain;
|
|
824
|
-
}
|
|
825
|
-
${v.MediaQueries.tdDown} {
|
|
826
|
-
margin-bottom: 0;
|
|
827
|
-
padding: 0;
|
|
828
|
-
height: 100%;
|
|
829
|
-
position: unset;
|
|
830
|
-
width: 150px;
|
|
831
|
-
}
|
|
832
|
-
${v.MediaQueries.mbDown} {
|
|
833
|
-
width: 80px;
|
|
834
|
-
}
|
|
835
|
-
`,jt=S.default.div`
|
|
836
|
-
background-color: #ffffff;
|
|
837
|
-
border-radius: 4px;
|
|
838
|
-
width: 100%;
|
|
839
|
-
height: 100%;
|
|
840
|
-
`,Ot=S.default.div`
|
|
841
|
-
display: flex;
|
|
842
|
-
margin-top: 1rem;
|
|
843
|
-
align-items: center;
|
|
844
|
-
color: ${e=>e.theme.colors.primaryBase};
|
|
845
|
-
font-weight: 400;
|
|
846
|
-
font-size: 14px;
|
|
847
|
-
text-decoration: none;
|
|
848
|
-
${v.MediaQueries.tdDown} {
|
|
849
|
-
display: none;
|
|
850
|
-
}
|
|
851
|
-
`,Rt=S.default.p`
|
|
852
|
-
font-size: 16px;
|
|
853
|
-
font-weight: 600;
|
|
854
|
-
line-height: 1.6;
|
|
855
|
-
color: ${e=>e.theme.colors.gray800};
|
|
856
|
-
${v.MediaQueries.tdDown} {
|
|
857
|
-
padding: 0;
|
|
858
|
-
}
|
|
859
|
-
`,Gt=S.default.p`
|
|
860
|
-
font-size: 14px;
|
|
861
|
-
line-height: 1.6;
|
|
862
|
-
font-weight: 400;
|
|
863
|
-
color: ${e=>e.theme.colors.gray600};
|
|
864
|
-
height: 40px;
|
|
865
|
-
text-overflow: ellipsis;
|
|
866
|
-
overflow: hidden;
|
|
867
|
-
display: -webkit-box;
|
|
868
|
-
-webkit-line-clamp: 2;
|
|
869
|
-
-webkit-box-orient: vertical;
|
|
870
|
-
margin-bottom: auto;
|
|
871
|
-
${v.MediaQueries.tdDown} {
|
|
872
|
-
height: unset;
|
|
873
|
-
padding: 0;
|
|
874
|
-
}
|
|
875
|
-
`,It=S.default.div`
|
|
876
|
-
display: flex;
|
|
877
|
-
flex-direction: column;
|
|
878
|
-
gap: 8px;
|
|
879
|
-
flex: 1;
|
|
880
|
-
z-index: 1;
|
|
881
|
-
${v.MediaQueries.tdDown} {
|
|
882
|
-
gap: 4px;
|
|
883
|
-
}
|
|
884
|
-
`,Qt="hhgcomp-navigation-menucareitem-contentwrapper",Ft=E.getDefaultClassWrapper(It,Qt),Vt=S.default.a`
|
|
885
|
-
text-decoration: none;
|
|
886
|
-
border-radius: 4px;
|
|
887
|
-
background: ${y.theme.colors.white};
|
|
888
|
-
position: relative;
|
|
889
|
-
overflow: hidden;
|
|
890
|
-
padding: 16px;
|
|
891
|
-
display: flex;
|
|
892
|
-
padding-top: 166px;
|
|
893
|
-
* {
|
|
894
|
-
pointer-events: none;
|
|
895
|
-
}
|
|
896
|
-
${v.MediaQueries.tdUp} {
|
|
897
|
-
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06),
|
|
898
|
-
0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
899
|
-
gap: 30px;
|
|
900
|
-
flex-direction: column;
|
|
901
|
-
a {
|
|
902
|
-
display: flex;
|
|
903
|
-
width: 100%;
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
${v.MediaQueries.tdDown} {
|
|
907
|
-
padding-top: 16px;
|
|
908
|
-
a {
|
|
909
|
-
display: none;
|
|
910
|
-
}
|
|
911
|
-
grid-template-columns: 2fr 1fr;
|
|
912
|
-
gap: 10px;
|
|
913
|
-
display: grid;
|
|
914
|
-
max-height: 110px;
|
|
915
|
-
display: flex;
|
|
916
|
-
flex-direction: row-reverse;
|
|
917
|
-
> .${Qt} {
|
|
918
|
-
flex: 1;
|
|
919
|
-
}
|
|
920
|
-
img {
|
|
921
|
-
width: 150px;
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
${v.MediaQueries.mbDown} {
|
|
925
|
-
box-shadow: 0px 10px 16px rgba(0, 0, 0, 0.04),
|
|
926
|
-
0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
927
|
-
display: flex;
|
|
928
|
-
flex-direction: row-reverse;
|
|
929
|
-
img {
|
|
930
|
-
width: 80px;
|
|
931
|
-
height: 80px;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
${v.MediaQueries.tdOnly} {
|
|
935
|
-
border: 1px solid ${y.theme.colors.neutral100};
|
|
936
|
-
}
|
|
937
|
-
.bg-svg {
|
|
938
|
-
width: 100%;
|
|
939
|
-
max-width: 245px;
|
|
940
|
-
height: 100%;
|
|
941
|
-
top: 0;
|
|
942
|
-
right: -40px;
|
|
943
|
-
position: absolute;
|
|
944
|
-
display: inline-block;
|
|
945
|
-
}
|
|
946
|
-
`,qt=({item:e,index:a=0})=>{var i;const{t:l}=c.useTranslations(),{locale:o,configs:{statics:r}}=t.useContext(ht);if(!e)return null;const s=`${r.CARE_URL_FE}/${null===(i=k.LOCALIZED_SLUGS[o])||void 0===i?void 0:i.HOSPITAL}/${e.slug}-${e.id}`;return _.default.createElement(Vt,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${a+1}`,"data-event-label":s},_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),_.default.createElement(Ut,null,_.default.createElement(jt,null,_.default.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),_.default.createElement(Ft,null,_.default.createElement(Rt,null,e.name),_.default.createElement(Gt,null,e.description),_.default.createElement(Ot,null,l("home.seeMore"),_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},Wt=S.default.div`
|
|
947
|
-
padding: 16px;
|
|
948
|
-
border-radius: 8px;
|
|
949
|
-
position: relative;
|
|
950
|
-
z-index: 1;
|
|
951
|
-
overflow: hidden;
|
|
952
|
-
a {
|
|
953
|
-
text-decoration: none;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
.bg-svg {
|
|
957
|
-
height: 100%;
|
|
958
|
-
position: absolute;
|
|
959
|
-
top: 0;
|
|
960
|
-
left: 0;
|
|
961
|
-
z-index: -1;
|
|
962
|
-
}
|
|
963
|
-
${v.MediaQueries.mbDown} {
|
|
964
|
-
display: block;
|
|
965
|
-
.bg-svg {
|
|
966
|
-
right: -24px;
|
|
967
|
-
left: unset;
|
|
968
|
-
top: 0;
|
|
969
|
-
transform: rotateY(180deg);
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
${v.MediaQueries.mbUp} {
|
|
974
|
-
display: grid;
|
|
975
|
-
grid-gap: 10px;
|
|
976
|
-
grid-template-columns: 1fr 3fr;
|
|
977
|
-
}
|
|
978
|
-
`,Zt=S.default.div`
|
|
979
|
-
font-weight: 400;
|
|
980
|
-
font-size: 14px;
|
|
981
|
-
line-height: 24px;
|
|
982
|
-
color: ${e=>e.theme.colors.gray600};
|
|
983
|
-
margin-bottom: 15px;
|
|
984
|
-
`,Yt=S.default.div`
|
|
985
|
-
font-weight: 600;
|
|
986
|
-
font-size: 16px;
|
|
987
|
-
line-height: 26px;
|
|
988
|
-
color: #000000;
|
|
989
|
-
margin-bottom: 4px;
|
|
990
|
-
`,Kt=S.default.div`
|
|
991
|
-
background: #fff;
|
|
992
|
-
padding: 5px;
|
|
993
|
-
display: flex;
|
|
994
|
-
align-items: center;
|
|
995
|
-
justify-content: center;
|
|
996
|
-
border-radius: 50px;
|
|
997
|
-
`,Jt=S.default.div`
|
|
998
|
-
display: flex;
|
|
999
|
-
justify-content: center;
|
|
1000
|
-
align-items: center;
|
|
1001
|
-
position: relative;
|
|
1002
|
-
${v.MediaQueries.mbDown} {
|
|
1003
|
-
justify-content: end;
|
|
1004
|
-
min-height: 100px;
|
|
1005
|
-
}
|
|
1006
|
-
`,Xt=({title:e,link:a,description:i,cta:l,icon:o})=>{const{siteType:r}=t.useContext(ht);return _.default.createElement(Wt,{"data-theme":r},_.default.createElement(Jt,null,_.default.createElement("img",{src:"marryBaby"===r?n.CommonGAssets.getAssetPath("navMBSpotlightBgNoData.svg"):n.CommonGAssets.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),_.default.createElement(Kt,null,o&&_.default.createElement("img",{src:o,width:64,height:64,loading:"lazy"}))),_.default.createElement("div",null,e&&_.default.createElement(Yt,null,e),i&&_.default.createElement(Zt,null,i),l&&_.default.createElement("div",null,_.default.createElement("a",{href:a},_.default.createElement(w.Button,{theme:r,className:"survey-contact-submit",size:"md"},l)))))},ea=S.default.div`
|
|
1007
|
-
margin-top: 10px;
|
|
1008
|
-
background: #ffffff;
|
|
1009
|
-
padding: 5px 15px;
|
|
1010
|
-
position: relative;
|
|
1011
|
-
${v.MediaQueries.mbDown} {
|
|
1012
|
-
&:after {
|
|
1013
|
-
position: absolute;
|
|
1014
|
-
top: 0;
|
|
1015
|
-
left: 0;
|
|
1016
|
-
width: 100%;
|
|
1017
|
-
height: 4px;
|
|
1018
|
-
background-color: ${e=>e.theme.colors.neutral100};
|
|
1019
|
-
content: '';
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
`,ta=S.default.div`
|
|
1023
|
-
margin: 15px 0;
|
|
1024
|
-
display: flex;
|
|
1025
|
-
`,aa=S.default.a`
|
|
1026
|
-
padding-left: 10px;
|
|
1027
|
-
display: flex;
|
|
1028
|
-
align-items: center;
|
|
1029
|
-
text-decoration: none;
|
|
1030
|
-
font-weight: 400;
|
|
1031
|
-
font-size: 14px;
|
|
1032
|
-
color: ${e=>e.theme.colors.primaryBase};
|
|
1033
|
-
&[data-theme='marryBaby'] {
|
|
1034
|
-
color: ${e=>e.theme.mbColors.pink};
|
|
1035
|
-
}
|
|
1036
|
-
img {
|
|
1037
|
-
padding-left: 5px;
|
|
1038
|
-
}
|
|
1039
|
-
${v.MediaQueries.mbDown} {
|
|
1040
|
-
margin-left: auto;
|
|
1041
|
-
}
|
|
1042
|
-
`,ia=({title:e,viewMore:a,children:i,link:l,dataEventAction:o=""})=>{const{siteType:r}=t.useContext(ht);return _.default.createElement(ea,null,_.default.createElement(ta,null,_.default.createElement(E.Heading,{tag:"marryBaby"===r?"h5":"h6",as:"p",fontWeight:"semibold"},e),a&&_.default.createElement(aa,{"data-event-category":"Hamburger Navigation","data-event-action":o,"data-event-label":l,href:l,"data-theme":r},a,_.default.createElement("img",{src:"marryBaby"===r?n.CommonGAssets.getAssetPath("chevronRightPink.svg"):n.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),i)},la=({spotlights:e=[],hrefViewMore:a})=>{const{t:i}=c.useTranslations(),{siteType:l}=t.useContext(ht);return _.default.createElement(ia,{title:i("home.navigator.menu.spotlightHospitals")},0!==e.length?_.default.createElement(_.default.Fragment,null,_.default.createElement(Ht,null,null==e?void 0:e.slice(0,3).map(((e,t)=>_.default.createElement(qt,{key:t,index:t,item:e})))),_.default.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},_.default.createElement("a",{href:a},_.default.createElement(w.Button,{theme:l,className:"survey-contact-submit",size:"md"},i("home.navigator.menu.care.homeButton"))))):_.default.createElement(Xt,{title:i("home.navigator.menu.care.noDatas.title"),description:i("home.navigator.menu.care.noDatas.description"),link:a,cta:i("home.navigator.menu.care.homeButton"),icon:n.CommonGAssets.getAssetPath("community.svg")}))};S.default.div`
|
|
1043
|
-
&[data-category-list-type='sub'] {
|
|
1044
|
-
padding-bottom: 72px;
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
&[data-is-displayed='false'] {
|
|
1048
|
-
display: none;
|
|
1049
|
-
}
|
|
1050
|
-
`,S.default.div`
|
|
1051
|
-
& > div {
|
|
1052
|
-
width: 100%;
|
|
1053
|
-
margin-bottom: 8px;
|
|
1054
|
-
}
|
|
1055
|
-
`;const oa=S.default.div`
|
|
1056
|
-
display: grid;
|
|
1057
|
-
|
|
1058
|
-
grid-template-columns: repeat(4, 1fr);
|
|
1059
|
-
gap: 24px;
|
|
1060
|
-
${v.MediaQueries.tdDown} {
|
|
1061
|
-
gap: 12px;
|
|
1062
|
-
grid-template-columns: 1fr;
|
|
1063
|
-
}
|
|
1064
|
-
`,na=S.default.a`
|
|
1065
|
-
width: 100%;
|
|
1066
|
-
display: flex;
|
|
1067
|
-
align-items: center;
|
|
1068
|
-
text-decoration: none;
|
|
1069
|
-
* {
|
|
1070
|
-
pointer-events: none;
|
|
1071
|
-
}
|
|
1072
|
-
`,ra=S.default.div`
|
|
1073
|
-
border-radius: 5px;
|
|
1074
|
-
display: block;
|
|
1075
|
-
overflow: hidden;
|
|
1076
|
-
padding-top: 140%;
|
|
1077
|
-
width: 100%;
|
|
1078
|
-
position: relative;
|
|
1079
|
-
height: 0;
|
|
1080
|
-
img {
|
|
1081
|
-
position: absolute;
|
|
1082
|
-
width: 100%;
|
|
1083
|
-
height: 100%;
|
|
1084
|
-
display: block;
|
|
1085
|
-
object-fit: cover;
|
|
1086
|
-
top: 0;
|
|
1087
|
-
left: 0;
|
|
1088
|
-
}
|
|
1089
|
-
${v.MediaQueries.tdDown} {
|
|
1090
|
-
width: 72px;
|
|
1091
|
-
padding-top: 100px;
|
|
1092
|
-
}
|
|
1093
|
-
`,sa=S.default.p`
|
|
1094
|
-
font-size: 16px;
|
|
1095
|
-
font-weight: 400;
|
|
1096
|
-
padding: 4px 15px;
|
|
1097
|
-
line-height: 1.4;
|
|
1098
|
-
color: ${e=>e.theme.colors.gray800};
|
|
1099
|
-
flex: 1;
|
|
1100
|
-
${v.MediaQueries.tdUp} {
|
|
1101
|
-
display: none;
|
|
1102
|
-
}
|
|
1103
|
-
`,da=({item:e,index:t=0})=>e?_.default.createElement(na,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},_.default.createElement(ra,null,_.default.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),_.default.createElement(sa,null,e.title)):null,ua=({spotlightsList:e=[],hrefViewMore:a})=>{const{t:i}=c.useTranslations(),{configs:{statics:l}}=t.useContext(ht);return _.default.createElement(ia,{title:i("home.navigator.menu.spotlights"),viewMore:i("home.navigator.menu.spotlights.seeAll"),link:a,dataEventAction:"Spotlight See More Click"},0!==e.length?_.default.createElement(oa,null,null==e?void 0:e.slice(0,4).map(((e,t)=>_.default.createElement(da,{key:t,index:t,item:{id:e.id,link:l.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):_.default.createElement(Xt,{title:i("home.navigator.menu.category.noDatas.title"),description:i("home.navigator.menu.category.noDatas.description"),link:a,cta:i("home.navigator.menu.category.noDatas.cta"),icon:n.CommonGAssets.getAssetPath("Spotlight.svg")}))};S.default.div`
|
|
1104
|
-
& > :not(:last-child) {
|
|
1105
|
-
border-bottom: 1px solid
|
|
1106
|
-
${e=>e.theme.colors.neutral100};
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
& > div > :not(:last-child) {
|
|
1110
|
-
border-bottom: 1px solid
|
|
1111
|
-
${e=>e.theme.colors.neutral100};
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
&[data-category-list-type='sub'] {
|
|
1115
|
-
padding-bottom: 72px;
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
&[data-is-displayed='false'] {
|
|
1119
|
-
display: none;
|
|
1120
|
-
}
|
|
1121
|
-
`,S.default.div`
|
|
1122
|
-
& > div {
|
|
1123
|
-
width: 100%;
|
|
1124
|
-
margin-bottom: 8px;
|
|
1125
|
-
}
|
|
1126
|
-
`;const ma=S.default.div`
|
|
1127
|
-
display: grid;
|
|
1128
|
-
grid-template-columns: repeat(2, 1fr);
|
|
1129
|
-
grid-gap: 48px;
|
|
1130
|
-
${v.MediaQueries.tdDown} {
|
|
1131
|
-
grid-template-columns: 1fr;
|
|
1132
|
-
grid-gap: 32px;
|
|
1133
|
-
}
|
|
1134
|
-
${v.MediaQueries.mbDown} {
|
|
1135
|
-
grid-gap: 24px;
|
|
1136
|
-
}
|
|
1137
|
-
`,ca=S.default.div`
|
|
1138
|
-
padding: 5px;
|
|
1139
|
-
flex: 1;
|
|
1140
|
-
`,pa=S.default.img`
|
|
1141
|
-
width: 88px;
|
|
1142
|
-
height: 88px;
|
|
1143
|
-
border-radius: 4px;
|
|
1144
|
-
object-fit: cover;
|
|
1145
|
-
`,ga=S.default.div`
|
|
1146
|
-
font-size: 12px;
|
|
1147
|
-
font-weight: 600;
|
|
1148
|
-
color: ${e=>e.theme.colors.gray800};
|
|
1149
|
-
text-decoration: none;
|
|
1150
|
-
&[data-theme='marryBaby'] {
|
|
1151
|
-
font-weight: 400;
|
|
1152
|
-
letter-spacing: -0.2px;
|
|
1153
|
-
}
|
|
1154
|
-
`,ha=S.default.div`
|
|
1155
|
-
text-decoration: none;
|
|
1156
|
-
font-size: 12px;
|
|
1157
|
-
font-weight: 400;
|
|
1158
|
-
color: ${e=>e.theme.colors.primaryBase};
|
|
1159
|
-
&[data-theme='marryBaby'] {
|
|
1160
|
-
font-weight: 400;
|
|
1161
|
-
letter-spacing: -0.2px;
|
|
1162
|
-
}
|
|
1163
|
-
`,fa=S.default.div`
|
|
1164
|
-
font-size: 12px;
|
|
1165
|
-
font-weight: 400;
|
|
1166
|
-
color: ${e=>e.theme.colors.gray600};
|
|
1167
|
-
`,va=S.default.div`
|
|
1168
|
-
font-size: 12px;
|
|
1169
|
-
font-weight: 400;
|
|
1170
|
-
color: ${e=>e.theme.colors.gray600};
|
|
1171
|
-
`,ya=S.default.a`
|
|
1172
|
-
display: flex;
|
|
1173
|
-
gap: 10px;
|
|
1174
|
-
text-decoration: none;
|
|
1175
|
-
position: relative;
|
|
1176
|
-
&::after {
|
|
1177
|
-
content: '';
|
|
1178
|
-
display: block;
|
|
1179
|
-
width: 100%;
|
|
1180
|
-
height: 1px;
|
|
1181
|
-
border-top: 1px dashed
|
|
1182
|
-
${e=>e.theme.colors.neutral100};
|
|
1183
|
-
position: absolute;
|
|
1184
|
-
bottom: -24px;
|
|
1185
|
-
${v.MediaQueries.tdOnly} {
|
|
1186
|
-
bottom: -16px;
|
|
1187
|
-
}
|
|
1188
|
-
${v.MediaQueries.mbDown} {
|
|
1189
|
-
bottom: -12px;
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
&:last-child {
|
|
1193
|
-
&::after {
|
|
1194
|
-
display: none;
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
${v.MediaQueries.tdUp} {
|
|
1198
|
-
&:nth-last-child(2) {
|
|
1199
|
-
&::after {
|
|
1200
|
-
display: none;
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
`,xa=S.default.div`
|
|
1205
|
-
display: flex;
|
|
1206
|
-
gap: 10px;
|
|
1207
|
-
vertical-align: middle;
|
|
1208
|
-
align-items: center;
|
|
1209
|
-
`,ba=S.default.div`
|
|
1210
|
-
margin-top: 8px;
|
|
1211
|
-
font-size: 16px;
|
|
1212
|
-
font-weight: 600;
|
|
1213
|
-
color: ${e=>e.theme.colors.gray800};
|
|
1214
|
-
&[data-theme='marryBaby'] {
|
|
1215
|
-
margin-top: 12px;
|
|
1216
|
-
font-weight: 400;
|
|
1217
|
-
font-size: 14px;
|
|
1218
|
-
line-height: 24px;
|
|
1219
|
-
letter-spacing: -0.2px;
|
|
1220
|
-
}
|
|
1221
|
-
`,Ea=S.default.div`
|
|
1222
|
-
display: flex;
|
|
1223
|
-
flex-wrap: wrap;
|
|
1224
|
-
align-items: center;
|
|
1225
|
-
column-gap: 5px;
|
|
1226
|
-
`,Ca=S.default.div`
|
|
1227
|
-
display: flex;
|
|
1228
|
-
gap: 4px;
|
|
1229
|
-
flex-direction: column;
|
|
1230
|
-
`;T.default.extend(H.default);const wa=({post:e,index:a=0})=>{var i,l,o,n,r,s,d;const{siteType:m,configs:{statics:c}}=t.useContext(ht);if(!e)return null;const p=[c.TOGETHER_URL_FE,null===(i=e.community)||void 0===i?void 0:i.slug].join("/"),g=[p,e.slug].join("/"),h=e.createdAt,f=h?isNaN(new Date(h).getTime())?null:new Date(h):null,v=f?T.default(f).toNow(!0):h;return _.default.createElement(ya,{href:g,"data-event-category":"Hamburger Navigation","data-event-action":`Together Click ${a+1}`,"data-event-label":g},_.default.createElement(ca,null,_.default.createElement(xa,null,_.default.createElement(u.UserAvatar,{avatar:null===(l=e.author)||void 0===l?void 0:l.avatar,username:(null===(o=e.author)||void 0===o?void 0:o.name)||(null===(n=e.author)||void 0===n?void 0:n.username)}),_.default.createElement(Ca,null,_.default.createElement(ga,{"data-theme":m},null===(r=e.author)||void 0===r?void 0:r.name),_.default.createElement(Ea,null,_.default.createElement(ha,{"data-event-category":"Hamburger Navigation","data-event-action":`Topic Click ${a+1}`,"data-event-label":p,onClick:e=>{e.preventDefault(),location.href=p},"data-theme":m},null===(s=e.community)||void 0===s?void 0:s.name),_.default.createElement(va,null,"•"),_.default.createElement(fa,{"data-theme":m},v)))),_.default.createElement(ba,null,e.title)),!!(null===(d=e.photos)||void 0===d?void 0:d.length)&&_.default.createElement(pa,{loading:"lazy",src:e.photos[0]}))},ka=({spotlights:e=[]})=>{const{configs:{statics:a}}=t.useContext(ht),{t:i}=c.useTranslations();return _.default.createElement(ia,{title:i("home.navigator.menu.trendingPosts"),viewMore:i("home.navigator.menu.trendingPosts.seeMore"),link:s.normalizeLink(a.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?_.default.createElement(ma,null,null==e?void 0:e.slice(0,4).map(((e,t)=>_.default.createElement(wa,{index:t,post:e,key:e.id})))):_.default.createElement(Xt,{title:i("home.navigator.menu.together.noPosts.title"),description:i("home.navigator.menu.together.noPosts.description"),link:`${a.HOME_PAGE_URL}/community/`,cta:i("home.navigator.menu.together.noPosts.cta"),icon:n.CommonGAssets.getAssetPath("community.svg")}))};S.default.div`
|
|
1231
|
-
&[data-is-display='false'] {
|
|
1232
|
-
display: none;
|
|
1233
|
-
}
|
|
1234
|
-
`;const $a=S.default.div`
|
|
1235
|
-
display: grid;
|
|
1236
|
-
|
|
1237
|
-
grid-template-columns: repeat(3, 1fr);
|
|
1238
|
-
gap: 24px;
|
|
1239
|
-
${v.MediaQueries.tdDown} {
|
|
1240
|
-
grid-template-columns: 1fr;
|
|
1241
|
-
gap: 12px;
|
|
1242
|
-
}
|
|
1243
|
-
`,Aa=S.default.a`
|
|
1244
|
-
text-decoration: none;
|
|
1245
|
-
border-radius: 4px;
|
|
1246
|
-
background: ${e=>e.theme.colors.primary50};
|
|
1247
|
-
position: relative;
|
|
1248
|
-
overflow: hidden;
|
|
1249
|
-
display: flex;
|
|
1250
|
-
* {
|
|
1251
|
-
pointer-events: none;
|
|
1252
|
-
}
|
|
1253
|
-
.bg-svg {
|
|
1254
|
-
width: 245px;
|
|
1255
|
-
top: 0;
|
|
1256
|
-
right: 0;
|
|
1257
|
-
height: 100%;
|
|
1258
|
-
position: absolute;
|
|
1259
|
-
${v.MediaQueries.tdDown} {
|
|
1260
|
-
top: calc(51% - 68px);
|
|
1261
|
-
right: -8px;
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
padding: 180px 24px 16px;
|
|
1265
|
-
a {
|
|
1266
|
-
display: flex;
|
|
1267
|
-
width: 100%;
|
|
1268
|
-
}
|
|
1269
|
-
${v.MediaQueries.tdDown} {
|
|
1270
|
-
padding-top: 16px;
|
|
1271
|
-
display: flex;
|
|
1272
|
-
align-items: center;
|
|
1273
|
-
}
|
|
1274
|
-
`,Ma=S.default.div`
|
|
1275
|
-
width: 64px;
|
|
1276
|
-
height: 64px;
|
|
1277
|
-
background: white;
|
|
1278
|
-
position: absolute;
|
|
1279
|
-
right: 25px;
|
|
1280
|
-
top: 35px;
|
|
1281
|
-
z-index: 3;
|
|
1282
|
-
border-radius: 50%;
|
|
1283
|
-
img {
|
|
1284
|
-
position: absolute;
|
|
1285
|
-
width: 64px;
|
|
1286
|
-
height: 64px;
|
|
1287
|
-
top: 50%;
|
|
1288
|
-
left: 50%;
|
|
1289
|
-
display: block;
|
|
1290
|
-
transform: translate(-50%, -50%);
|
|
1291
|
-
}
|
|
1292
|
-
${v.MediaQueries.tdDown} {
|
|
1293
|
-
position: relative;
|
|
1294
|
-
top: unset;
|
|
1295
|
-
right: unset;
|
|
1296
|
-
}
|
|
1297
|
-
`,Pa=S.default.div`
|
|
1298
|
-
display: flex;
|
|
1299
|
-
align-items: center;
|
|
1300
|
-
color: ${e=>e.theme.colors.primaryBase};
|
|
1301
|
-
font-weight: 400;
|
|
1302
|
-
font-size: 14px;
|
|
1303
|
-
text-decoration: none;
|
|
1304
|
-
`,Na=S.default.p`
|
|
1305
|
-
font-size: 16px;
|
|
1306
|
-
font-weight: 600;
|
|
1307
|
-
line-height: 1.4;
|
|
1308
|
-
color: ${e=>e.theme.colors.gray800};
|
|
1309
|
-
`,La=S.default.p`
|
|
1310
|
-
font-size: 14px;
|
|
1311
|
-
line-height: 1.4;
|
|
1312
|
-
font-weight: 400;
|
|
1313
|
-
color: ${e=>e.theme.colors.gray600};
|
|
1314
|
-
height: 40px;
|
|
1315
|
-
text-overflow: ellipsis;
|
|
1316
|
-
overflow: hidden;
|
|
1317
|
-
display: -webkit-box;
|
|
1318
|
-
-webkit-line-clamp: 2;
|
|
1319
|
-
-webkit-box-orient: vertical;
|
|
1320
|
-
margin-bottom: auto;
|
|
1321
|
-
${v.MediaQueries.tdDown} {
|
|
1322
|
-
display: none;
|
|
1323
|
-
}
|
|
1324
|
-
`,_a=S.default.div`
|
|
1325
|
-
display: flex;
|
|
1326
|
-
flex-direction: column;
|
|
1327
|
-
flex: 1;
|
|
1328
|
-
z-index: 1;
|
|
1329
|
-
${v.MediaQueries.tdUp} {
|
|
1330
|
-
gap: 8px;
|
|
1331
|
-
}
|
|
1332
|
-
${v.MediaQueries.tdDown} {
|
|
1333
|
-
gap: 4px;
|
|
1334
|
-
flex: 1;
|
|
1335
|
-
}
|
|
1336
|
-
`,Sa=({item:e,index:a=0})=>{const{t:i}=c.useTranslations(),{configs:{statics:l}}=t.useContext(ht);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${l.HOME_PAGE_URL}${e.link}`:void 0;return _.default.createElement(Aa,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":o},_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),_.default.createElement(_a,null,_.default.createElement(Na,null,e.title),_.default.createElement(La,null,e.subtitle),_.default.createElement(Pa,null,i("home.seeMore"),_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),_.default.createElement(Ma,null,_.default.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Ba=S.default.a`
|
|
1337
|
-
text-decoration: none;
|
|
1338
|
-
border-radius: 12px;
|
|
1339
|
-
|
|
1340
|
-
position: relative;
|
|
1341
|
-
overflow: hidden;
|
|
1342
|
-
display: flex;
|
|
1343
|
-
* {
|
|
1344
|
-
pointer-events: none;
|
|
1345
|
-
}
|
|
1346
|
-
.bg-svg {
|
|
1347
|
-
top: 0;
|
|
1348
|
-
left: 0;
|
|
1349
|
-
position: absolute;
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
.dot-svg {
|
|
1353
|
-
width: 40px;
|
|
1354
|
-
height: 30px;
|
|
1355
|
-
top: 36px;
|
|
1356
|
-
left: 16px;
|
|
1357
|
-
position: absolute;
|
|
1358
|
-
stroke-width: 0;
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
&[data-color='pink'] {
|
|
1362
|
-
background: ${e=>e.theme.mbColors.tonePink};
|
|
1363
|
-
.bg-svg {
|
|
1364
|
-
fill: ${e=>e.theme.mbColors.peach};
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
&[data-color='orange'] {
|
|
1368
|
-
background: ${e=>e.theme.mbColors.toneYellow};
|
|
1369
|
-
.bg-svg {
|
|
1370
|
-
fill: ${e=>e.theme.mbColors.orange};
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
&[data-color='green'] {
|
|
1374
|
-
background: ${e=>e.theme.mbColors.toneGreen};
|
|
1375
|
-
.bg-svg {
|
|
1376
|
-
fill: ${e=>e.theme.mbColors.mint};
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
padding: 180px 24px 16px;
|
|
1381
|
-
a {
|
|
1382
|
-
display: flex;
|
|
1383
|
-
width: 100%;
|
|
1384
|
-
}
|
|
1385
|
-
${v.MediaQueries.tdDown} {
|
|
1386
|
-
padding-top: 16px;
|
|
1387
|
-
display: flex;
|
|
1388
|
-
align-items: flex-start;
|
|
1389
|
-
justify-content: flex-start;
|
|
1390
|
-
}
|
|
1391
|
-
${v.MediaQueries.mbDown} {
|
|
1392
|
-
padding-top: 0;
|
|
1393
|
-
padding-left: 80px;
|
|
1394
|
-
height: 96px;
|
|
1395
|
-
align-items: flex-start;
|
|
1396
|
-
justify-content: center;
|
|
1397
|
-
flex-direction: column;
|
|
1398
|
-
.dot-svg {
|
|
1399
|
-
top: 22px;
|
|
1400
|
-
left: 16px;
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
${v.MediaQueries.tdUp} {
|
|
1404
|
-
min-height: 296px;
|
|
1405
|
-
}
|
|
1406
|
-
.mobile-only {
|
|
1407
|
-
${v.MediaQueries.tdUp} {
|
|
1408
|
-
display: none;
|
|
1409
|
-
}
|
|
1410
|
-
}
|
|
1411
|
-
.desktop-only {
|
|
1412
|
-
${v.MediaQueries.tdDown} {
|
|
1413
|
-
display: none;
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
`,Ta=S.default.div`
|
|
1417
|
-
width: 48px;
|
|
1418
|
-
height: 48px;
|
|
1419
|
-
background: white;
|
|
1420
|
-
position: absolute;
|
|
1421
|
-
right: 25px;
|
|
1422
|
-
top: 35px;
|
|
1423
|
-
z-index: 3;
|
|
1424
|
-
border-radius: 50%;
|
|
1425
|
-
img {
|
|
1426
|
-
position: absolute;
|
|
1427
|
-
width: 36px;
|
|
1428
|
-
height: 36px;
|
|
1429
|
-
top: 50%;
|
|
1430
|
-
left: 50%;
|
|
1431
|
-
display: block;
|
|
1432
|
-
transform: translate(-50%, -50%);
|
|
1433
|
-
}
|
|
1434
|
-
${v.MediaQueries.tdDown} {
|
|
1435
|
-
position: relative;
|
|
1436
|
-
top: unset;
|
|
1437
|
-
right: unset;
|
|
1438
|
-
}
|
|
1439
|
-
${v.MediaQueries.mbDown} {
|
|
1440
|
-
position: absolute;
|
|
1441
|
-
left: 32px;
|
|
1442
|
-
top: 28px;
|
|
1443
|
-
}
|
|
1444
|
-
`,za=S.default.div`
|
|
1445
|
-
display: flex;
|
|
1446
|
-
align-items: center;
|
|
1447
|
-
background: white;
|
|
1448
|
-
font-weight: 400;
|
|
1449
|
-
font-size: 14px;
|
|
1450
|
-
text-decoration: none;
|
|
1451
|
-
border-radius: 50%;
|
|
1452
|
-
width: 20px;
|
|
1453
|
-
height: 20px;
|
|
1454
|
-
|
|
1455
|
-
svg path {
|
|
1456
|
-
fill: ${e=>e.theme.mbColors.gray};
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
${v.MediaQueries.tdDown} {
|
|
1460
|
-
background: none;
|
|
1461
|
-
width: 100%;
|
|
1462
|
-
font-weight: 400;
|
|
1463
|
-
font-size: 12px;
|
|
1464
|
-
line-height: 18px;
|
|
1465
|
-
color: ${e=>e.theme.mbColors.pink};
|
|
1466
|
-
padding-left: 16px;
|
|
1467
|
-
}
|
|
1468
|
-
`,Da=S.default.p`
|
|
1469
|
-
font-weight: 600;
|
|
1470
|
-
font-size: 14px;
|
|
1471
|
-
line-height: 24px;
|
|
1472
|
-
letter-spacing: -0.2px;
|
|
1473
|
-
color: ${e=>e.theme.colors.gray800};
|
|
1474
|
-
`,Ha=S.default.p`
|
|
1475
|
-
font-weight: 400;
|
|
1476
|
-
font-size: 12px;
|
|
1477
|
-
line-height: 18px;
|
|
1478
|
-
letter-spacing: -0.2px;
|
|
1479
|
-
color: ${e=>e.theme.colors.gray600};
|
|
1480
|
-
height: 54px;
|
|
1481
|
-
text-overflow: ellipsis;
|
|
1482
|
-
overflow: hidden;
|
|
1483
|
-
display: -webkit-box;
|
|
1484
|
-
-webkit-line-clamp: 3;
|
|
1485
|
-
-webkit-box-orient: vertical;
|
|
1486
|
-
margin-bottom: auto;
|
|
1487
|
-
${v.MediaQueries.tdDown} {
|
|
1488
|
-
display: none;
|
|
1489
|
-
}
|
|
1490
|
-
`,Ua=S.default.div`
|
|
1491
|
-
display: flex;
|
|
1492
|
-
flex: 1;
|
|
1493
|
-
z-index: 1;
|
|
1494
|
-
align-items: flex-end;
|
|
1495
|
-
justify-content: flex-end;
|
|
1496
|
-
${v.MediaQueries.tdUp} {
|
|
1497
|
-
gap: 8px;
|
|
1498
|
-
flex-direction: row;
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
|
-
${v.MediaQueries.tdDown} {
|
|
1502
|
-
align-items: flex-start;
|
|
1503
|
-
justify-content: flex-start;
|
|
1504
|
-
gap: 4px;
|
|
1505
|
-
}
|
|
1506
|
-
`,ja=S.default.div`
|
|
1507
|
-
display: flex;
|
|
1508
|
-
flex-direction: column;
|
|
1509
|
-
flex: 1;
|
|
1510
|
-
z-index: 1;
|
|
1511
|
-
${v.MediaQueries.tdUp} {
|
|
1512
|
-
gap: 8px;
|
|
1513
|
-
}
|
|
1514
|
-
${v.MediaQueries.tdDown} {
|
|
1515
|
-
gap: 4px;
|
|
1516
|
-
flex: 1;
|
|
1517
|
-
padding-left: 16px;
|
|
1518
|
-
}
|
|
1519
|
-
`,Oa=S.default.div`
|
|
1520
|
-
display: flex;
|
|
1521
|
-
flex-direction: row;
|
|
1522
|
-
flex: 1;
|
|
1523
|
-
z-index: 1;
|
|
1524
|
-
${v.MediaQueries.tdUp} {
|
|
1525
|
-
gap: 8px;
|
|
1526
|
-
justify-content: flex-end;
|
|
1527
|
-
align-items: flex-end;
|
|
1528
|
-
}
|
|
1529
|
-
${v.MediaQueries.tdDown} {
|
|
1530
|
-
flex-direction: column;
|
|
1531
|
-
justify-content: flex-start;
|
|
1532
|
-
align-items: flex-start;
|
|
1533
|
-
}
|
|
1534
|
-
`,Ra=({item:e,index:a=0,color:i})=>{const{t:l}=c.useTranslations(),{configs:{statics:o}}=t.useContext(ht);if(!e)return null;const r=e.link?e.link.startsWith("http")?e.link:`${o.HOME_PAGE_URL}${e.link}`:void 0,s=()=>_.default.createElement(Ta,null,_.default.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),d=()=>_.default.createElement(Oa,null,_.default.createElement(ja,null,_.default.createElement(Da,null,e.title),_.default.createElement(Ha,null,e.subtitle)),_.default.createElement(za,null,_.default.createElement("div",{className:"mobile-only"},l("home.seeMore")),_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return _.default.createElement(Ba,{href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${a+1}`,"data-event-label":r,"data-color":i},_.default.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none"},_.default.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"})),_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),_.default.createElement(Ua,null,_.default.createElement("div",{className:"mobile-only"},s()),_.default.createElement("div",{className:"desktop-only"},d())),_.default.createElement("div",{className:"mobile-only"},d()),_.default.createElement("div",{className:"desktop-only"},s()))},Ga=({hrefViewMore:e,spotlightHealthTools:a=[]})=>{const{t:i}=c.useTranslations(),l=["pink","orange","green"],{siteType:o}=t.useContext(ht);return _.default.createElement(ia,{title:i("home.navigator.menu.spotlightTools")},0!==a.length&&_.default.createElement($a,null,null==a?void 0:a.slice(0,3).map(((e,t)=>"marryBaby"===o?_.default.createElement(Ra,{key:t,index:t,item:e,color:l[t]}):_.default.createElement(Sa,{key:t,index:t,item:e})))),0===a.length&&_.default.createElement(Xt,{title:i("home.navigator.menu.healthTools.noDatas.title"),description:i("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:i("home.navigator.menu.healthTools.noDatas.cta"),icon:n.CommonGAssets.getAssetPath("community.svg")}))},Ia=({closePopup:e,menuItems:a=[]})=>{var i,l;const{siteType:o,ssrMenuContent:{categories:n,healthTools:s,care:d,together:u},activeMenuService:m,configs:{statics:p,enableSearchBar:g},locale:h}=t.useContext(ht),{t:f}=c.useTranslations();return _.default.createElement(xt,{id:"categories-menu"},g?_.default.createElement(bt,{"data-theme":o,onClick:()=>{window.location.href=`${p.HOME_PAGE_URL}/search`}},_.default.createElement(wt,null)):null,_.default.createElement(Et,null,_.default.createElement(Dt,{UrlFE:p.HOME_PAGE_URL,titleBtnViewMore:f("home.navigator.menuItem.allCategories"),menuItems:a,headingTitle:f("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===m&&_.default.createElement(ua,{spotlightsList:(null==n?void 0:n.spotlights)||[],hrefViewMore:`${p.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}/spotlight/`}),"tools"===m&&_.default.createElement(Ga,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${p.HOME_PAGE_URL}${"tl-PH"===h?"/fil":""}${(null===(i=r.STATIC_PAGES[h])||void 0===i?void 0:i.HEALTH_TOOLS)||""}`}),"care"===m&&_.default.createElement(la,{spotlights:null==d?void 0:d.spotlights,hrefViewMore:`${p.CARE_URL_FE}/${null===(l=k.LOCALIZED_SLUGS[h])||void 0===l?void 0:l.SPECIALTIES}`}),"together"===m&&_.default.createElement(ka,{spotlights:null==u?void 0:u.spotlights})))},Qa=({type:e="home",menuItems:a})=>{const{siteType:i,configs:{enableSearchBar:l}}=t.useContext(ht),{containerRef:o,onContainerFocus:n,onContainerBlur:r,onButtonMouseDown:s,onClose:d}=ae();return _.default.createElement(te,{mediaQueryKey:"mbDown"},_.default.createElement("header",{className:ct},_.default.createElement("div",{className:pt,ref:o,role:"button",tabIndex:0,onBlur:r,onFocus:n},_.default.createElement("div",{className:gt,onMouseDown:s,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},_.default.createElement(vt,{className:"mobile-close-icon"}),_.default.createElement(yt,{siteType:i,type:e,enableSearch:l,className:"mobile-hamburger-icon"})),_.default.createElement(Ia,{menuItems:a,closePopup:d}))))},Fa=S.default.div`
|
|
1535
|
-
z-index: 201;
|
|
1536
|
-
width: 100%;
|
|
1537
|
-
align-items: center;
|
|
1538
|
-
|
|
1539
|
-
background-color: ${e=>e.theme.colors.white};
|
|
1540
|
-
|
|
1541
|
-
transition: height 0.3s, transform 0.3s;
|
|
1542
|
-
|
|
1543
|
-
&[data-site-type='helloSites'] {
|
|
1544
|
-
border-bottom: 1px solid
|
|
1545
|
-
${e=>e.theme.colors.neutral100};
|
|
1546
|
-
}
|
|
1547
|
-
&[data-sponsored='true'] {
|
|
1548
|
-
border-bottom: none;
|
|
1549
|
-
}
|
|
1550
|
-
&[data-marry-baby-tone='pink'] {
|
|
1551
|
-
background-color: ${e=>e.theme.mbColors.lightPink};
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
${v.MediaQueries.mbUp} {
|
|
1555
|
-
&[data-sitewide-banner-shown='true'][data-collapsed='true'] {
|
|
1556
|
-
transform: translateY(-64px);
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
${v.MediaQueries.mbDown} {
|
|
1560
|
-
&[data-site-type='marryBaby'] {
|
|
1561
|
-
border-bottom: none;
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
&[data-fixed-bar='true'] {
|
|
1565
|
-
position: fixed;
|
|
1566
|
-
transform: translateY(0);
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
&[data-fixed-bar='false'] {
|
|
1570
|
-
position: absolute;
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
&[data-collapsed='true'] {
|
|
1574
|
-
transform: translateY(-100%);
|
|
1575
|
-
transition: transform 0.5s;
|
|
1576
|
-
}
|
|
1577
|
-
&[data-collapsed='false'] {
|
|
1578
|
-
transform: translateY(0);
|
|
1579
|
-
transition: transform 0.5s;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
.top-bar-header {
|
|
1583
|
-
line-height: normal;
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
&[data-header-type='home'] {
|
|
1587
|
-
z-index: ${Ve};
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
&[data-header-type='popup'] {
|
|
1591
|
-
position: absolute;
|
|
1592
|
-
z-index: ${qe};
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
&[data-header-type='popup-sub-level'] {
|
|
1596
|
-
position: absolute;
|
|
1597
|
-
z-index: ${We};
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
&[data-is-displayed='false'] {
|
|
1601
|
-
//display: none;
|
|
1602
|
-
visibility: hidden;
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
.marry-baby {
|
|
1607
|
-
input {
|
|
1608
|
-
background: ${e=>e.theme.mbColors.lightGray};
|
|
1609
|
-
border-radius: 16px;
|
|
1610
|
-
border: none;
|
|
1611
|
-
}
|
|
1612
|
-
max-width: 172px;
|
|
1613
|
-
}
|
|
1614
|
-
&[data-site-type='marryBaby'] {
|
|
1615
|
-
.close-btn {
|
|
1616
|
-
top: 16px;
|
|
1617
|
-
right: 16px;
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
`,Va=S.default.div`
|
|
1621
|
-
display: flex;
|
|
1622
|
-
height: 100%;
|
|
1623
|
-
align-items: center;
|
|
1624
|
-
|
|
1625
|
-
justify-content: space-between;
|
|
1626
|
-
padding: 0 2rem;
|
|
1627
|
-
height: 56px;
|
|
1628
|
-
${v.MediaQueries.pcDown} {
|
|
1629
|
-
padding: 0 1rem;
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
${v.MediaQueries.mbDown} {
|
|
1633
|
-
position: relative;
|
|
1634
|
-
height: 56px;
|
|
1635
|
-
background: white;
|
|
1636
|
-
gap: 2px;
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
&[data-site-type='marryBaby'] {
|
|
1640
|
-
width: 100%;
|
|
1641
|
-
margin: 0 auto;
|
|
1642
|
-
padding: 0 16px;
|
|
1643
|
-
${v.MediaQueries.tdUp} {
|
|
1644
|
-
max-width: 1064px;
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1647
|
-
`,qa=S.default.div`
|
|
1648
|
-
display: flex;
|
|
1649
|
-
align-items: center;
|
|
1650
|
-
height: 100%;
|
|
1651
|
-
gap: 24px;
|
|
1652
|
-
${v.MediaQueries.pcDown} {
|
|
1653
|
-
flex-shrink: 0;
|
|
1654
|
-
gap: 16px;
|
|
1655
|
-
}
|
|
1656
|
-
${v.MediaQueries.pcDown} {
|
|
1657
|
-
gap: 12px;
|
|
1658
|
-
}
|
|
1659
|
-
&[data-site-type='marryBaby'] {
|
|
1660
|
-
gap: 26px;
|
|
1661
|
-
}
|
|
1662
|
-
`,Wa=S.default.div``,Za=S.default.div`
|
|
1663
|
-
display: flex;
|
|
1664
|
-
align-items: center;
|
|
1665
|
-
height: 100%;
|
|
1666
|
-
flex-shrink: 0;
|
|
1667
|
-
/* gap: 16px; */
|
|
1668
|
-
${v.MediaQueries.tdDown} {
|
|
1669
|
-
flex-shrink: 0.6;
|
|
1670
|
-
}
|
|
1671
|
-
.hhgcomp-navigation-itemnav-headeritem {
|
|
1672
|
-
gap: 2px;
|
|
1673
|
-
${v.MediaQueries.pcUp} {
|
|
1674
|
-
padding: 0 10px;
|
|
1675
|
-
}
|
|
1676
|
-
${v.MediaQueries.pcDown} {
|
|
1677
|
-
padding: 0 6px;
|
|
1678
|
-
}
|
|
1679
|
-
${v.MediaQueries.mbDown} {
|
|
1680
|
-
display: none;
|
|
1681
|
-
}
|
|
1682
|
-
a {
|
|
1683
|
-
text-decoration: none;
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
`;S.default.div`
|
|
1687
|
-
.fake-search-input {
|
|
1688
|
-
pointer-events: none;
|
|
1689
|
-
input {
|
|
1690
|
-
line-height: 20px;
|
|
1691
|
-
padding-top: 10px;
|
|
1692
|
-
padding-bottom: 10px;
|
|
1693
|
-
}
|
|
1694
|
-
}
|
|
1695
|
-
`;const Ya=S.default.div`
|
|
1696
|
-
margin-left: 16px;
|
|
1697
|
-
display: flex;
|
|
1698
|
-
gap: 12px;
|
|
1699
|
-
align-items: center;
|
|
1700
|
-
flex-shrink: 0;
|
|
1701
|
-
${v.MediaQueries.pcDown} {
|
|
1702
|
-
margin-left: 8px;
|
|
1703
|
-
gap: 8px;
|
|
1704
|
-
}
|
|
1705
|
-
${v.MediaQueries.mbDown} {
|
|
1706
|
-
margin-left: 0;
|
|
1707
|
-
gap: 10px;
|
|
1708
|
-
}
|
|
1709
|
-
`,Ka=S.default.div`
|
|
1710
|
-
display: flex;
|
|
1711
|
-
align-items: center;
|
|
1712
|
-
height: 100%;
|
|
1713
|
-
&[data-site-type='marryBaby'] {
|
|
1714
|
-
gap: 26px;
|
|
1715
|
-
}
|
|
1716
|
-
`;var Ja="q3nL5cp",Xa="_2DNf80G",ei="Q-glX-n";const ti=({onClosePopup:e})=>_.default.createElement("div",{className:`${ei} close-btn`,onClick:e},_.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},_.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),ai=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:i,hideCloseBtn:l})=>_.default.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!i},_.default.createElement(N.Container,null,!l&&_.default.createElement("div",{className:Xa},_.default.createElement(ti,{onClosePopup:e})),_.default.createElement(N.Container,{className:Ja},a))),ii=({careSpecialties:e=[],isOpen:a,onClose:i,spotlights:l=[]})=>{var o;const{t:n}=c.useTranslations(),{locale:r,configs:{statics:s}}=t.useContext(ht);return _.default.createElement(ai,{onClosePopup:i,isDisplay:a,isNavMenu:!0},_.default.createElement(Dt,{headingTitle:n("home.navigator.menuItem.specialties"),hrefViewMore:`${s.CARE_URL_FE}/`,UrlFE:s.CARE_URL_FE,onClosePopup:i,titleBtnViewMore:n("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:et({type:"DOCTOR",specialtySlug:e.slug,locale:r}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),_.default.createElement(la,{spotlights:l,hrefViewMore:`${s.CARE_URL_FE}/${null===(o=k.LOCALIZED_SLUGS[r])||void 0===o?void 0:o.SPECIALTIES}/`}))},li=({categories:e=[],spotlightsList:a=[],onClose:i,isOpen:l})=>{const{t:o}=c.useTranslations(),{locale:n,configs:{statics:r}}=t.useContext(ht);return _.default.createElement(ai,{onClosePopup:i,isDisplay:l,isNavMenu:!0},_.default.createElement(Dt,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===n?"/fil":""}/categories/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:i,titleBtnViewMore:o("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:o("home.navigator.menuItem.healthCategories")}),_.default.createElement(ua,{spotlightsList:a,hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===n?"/fil":""}/spotlight/`}))},oi=({communities:e=[],onClose:a,isOpen:i,spotlights:l=[]})=>{const{t:o}=c.useTranslations(),{configs:{statics:n}}=t.useContext(ht);return _.default.createElement(ai,{onClosePopup:a,isDisplay:i,isNavMenu:!0},_.default.createElement(Dt,{hrefViewMore:s.normalizeLink(n.TOGETHER_URL_FE),UrlFE:s.normalizeLinkSlash(n.TOGETHER_URL_FE),onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:o("home.navigator.menuItem.allCommunitiesheadingTitle")}),_.default.createElement(ka,{spotlights:l}))},ni=({locale:e,onClose:a,isOpen:i,spotlightHealthTools:l=[],healthTools:o=[]})=>{var n;const{t:s}=c.useTranslations(),{configs:{statics:d}}=t.useContext(ht),u=`${d.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(n=r.STATIC_PAGES[e])||void 0===n?void 0:n.HEALTH_TOOLS)||""}`;return _.default.createElement(ai,{onClosePopup:a,isDisplay:i,isNavMenu:!0},_.default.createElement(Dt,{hrefViewMore:u,UrlFE:d.HOME_PAGE_URL,onClosePopup:a,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:o.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${d.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),_.default.createElement(Ga,{spotlightHealthTools:l,hrefViewMore:u}))},ri=({onTopBarAppears:e,type:a="home",languageMenu:i,menuItems:l})=>{var o;const{siteType:d,isMobile:u=!1,locale:p,sitewideBanner:g,sitewideBannerShown:h=!0,sponsorComponent:f,onBookingClick:v,currentUrl:y,onLoginClick:x,cartNumber:b,configs:{statics:E,enableNavCareBooking:C,enableSearchBar:w,enableNavCare:k,enableProfileMyHealth:$,enableProfileMySaved:A,enableNavTogether:M,enableProfileEcom:P,enableProfileNavigatorMenu:N},userState:{userInfo:L},onLogout:S,userProfileRouterPush:T,isUserLoading:z}=t.useContext(ht),{t:D}=c.useTranslations(),{SSO_URL:H,HOME_PAGE_URL:U}=E,j=!!f,[O,R]=t.useState(!1),G=t.useRef(47),I=t.useRef(null),Q=t.useRef(!1),F="helloSites"===d?null===(o=r.LOCALE_SPECS[p])||void 0===o?void 0:o.LOGO_TYPE:d,V="undefined"!=typeof window,q=t.useCallback(B.default((()=>{if("home"===a&&V){if(!I.current)return;const e=I.current.getBoundingClientRect();e.top<=0&&window.scrollY>G.current&&window.scrollY>e.height+20&&!Q.current&&(Q.current=!0,R(!0)),window.scrollY<G.current&&Q.current&&(Q.current=!1,R(!1)),window.scrollY>=0&&(G.current=window.scrollY)}}),200),[]);t.useEffect((()=>{null==e||e(!O)}),[O]),t.useEffect((()=>(window.addEventListener("scroll",q,{passive:!0}),()=>{window.removeEventListener("scroll",q)})),[]),t.useEffect((()=>{u&&q()}),[u]);const W=h&&!!g;return _.default.createElement(Fa,{"data-site-type":d,"data-sponsored":j,"data-sitewide-banner-shown":W,"data-header-type":a,"data-collapsed":O,"data-with-search-input":"popup-sub-level"!==a,"data-is-displayed":!0,id:"site-header",ref:I},g,_.default.createElement(Va,{"data-site-type":d},_.default.createElement(qa,{"data-site-type":d},_.default.createElement(Qa,{menuItems:l,type:a}),_.default.createElement("a",{style:{flexShrink:0},href:U},_.default.createElement(Wa,null,_.default.createElement(m.Logo,{style:{display:"flex"},type:F,badge:"id-ID"===p&&_.default.createElement("img",{src:n.CommonGAssets.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:p,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===d?_.default.createElement(di,{menuItems:l}):w&&_.default.createElement(si,{siteType:d})),_.default.createElement(Za,{"data-site-type":d},"marryBaby"===d?w&&_.default.createElement(si,{siteType:d}):_.default.createElement(di,{menuItems:l}),_.default.createElement(Ya,null,_.default.createElement(X,{count:b,locale:p}),C&&_.default.createElement(te,{mediaQueryKey:"mbUp"},_.default.createElement(mt,{careUrlFe:E.CARE_URL_FE,currentUrl:y,btnName:D("login.booking"),onCareHeaderClick:v})),i,_.default.createElement(st,{userInfo:L,siteType:d,onLoginClick:x||(()=>{const e=window.location.href;window.location.href=H?s.normalizeLinkSlash(`${H}?returnUrl=${e}`):e}),SSO_URL:s.normalizeLink(E.SSO_URL),currentUrl:y,onLogout:S,UP_BASEPATH:r.UP_BASEPATH,isMyHealthEnabled:$,enableCare:k,enableTogether:M,enableEcom:P,enableMySaved:A,togetherApiDomain:s.normalizeLink(E.TOGETHER_API),isUserProfileNavigatorMenuHidden:!N,userProfileRouterPush:T,isLoading:z,locale:p})))),f?_.default.isValidElement(f)?_.default.cloneElement(f,{isCollapsed:O,locale:p,isMobile:u}):f:null)},si=({siteType:e})=>_.default.createElement(te,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},_.default.createElement(wt,null)),di=({menuItems:e})=>{const{siteType:a,locale:i,ssrMenuContent:{categories:l,healthTools:o,care:n,together:r}}=t.useContext(ht);return _.default.createElement(te,{mediaQueryKey:"mbUp",style:{height:"100%"}},_.default.createElement(Ka,{"data-site-type":a},null==e?void 0:e.map(((e,t)=>_.default.createElement(Tt,{key:t,item:e,menu:"categories"===e.popupType?_.default.createElement(li,{categories:null==l?void 0:l.items,spotlightsList:null==l?void 0:l.spotlights}):"tools"===e.popupType?_.default.createElement(ni,{locale:i,healthTools:null==o?void 0:o.items,spotlightHealthTools:null==o?void 0:o.spotlights}):"together"===e.popupType?_.default.createElement(oi,{communities:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):"care"===e.popupType?_.default.createElement(ii,{careSpecialties:null==n?void 0:n.items,spotlights:null==n?void 0:n.spotlights}):null})))))},ui=S.default.div`
|
|
1717
|
-
--header-z-index: 305;
|
|
1718
|
-
top: 0;
|
|
1719
|
-
z-index: var(--header-z-index);
|
|
1720
|
-
|
|
1721
|
-
${v.MediaQueries.mbDown} {
|
|
1722
|
-
width: 100vw;
|
|
1723
|
-
max-width: 100%;
|
|
1724
|
-
}
|
|
1725
|
-
--amp-site-wide-closed: 2px;
|
|
1726
|
-
|
|
1727
|
-
-webkit-transform: translateZ(0);
|
|
1728
|
-
position: sticky;
|
|
1729
|
-
|
|
1730
|
-
&.nav-open {
|
|
1731
|
-
margin-top: 64px;
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
&:not(.nav-open) {
|
|
1735
|
-
--amp-site-wide-closed: 66px;
|
|
1736
|
-
}
|
|
1737
|
-
pointer-events: none;
|
|
1738
|
-
> section * {
|
|
1739
|
-
pointer-events: auto;
|
|
1740
|
-
}
|
|
1741
|
-
`;S.default.div`
|
|
1742
|
-
display: flex;
|
|
1743
|
-
align-items: center;
|
|
1744
|
-
gap: 8px;
|
|
1745
|
-
`,S.default.a`
|
|
1746
|
-
&[data-is-active='true'] {
|
|
1747
|
-
color: unset;
|
|
1748
|
-
}
|
|
1749
|
-
font-size: 14px;
|
|
1750
|
-
font-weight: 700;
|
|
1751
|
-
line-height: 22px;
|
|
1752
|
-
text-decoration: none;
|
|
1753
|
-
`;const mi=e=>{var a,i;const{isMobile:l,locale:o,onTopBarAppears:d,languageOptions:u,sponsorComponent:m,sitewideBanner:p,sitewideBannerShown:g,className:h}=e,f=(()=>{const{t:e}=c.useTranslations(),{siteType:a,locale:i,configs:{enableNavDiscover:l,enableNavHealthTools:o,enableNavCare:d,enableNavTogether:u,enableNavEcom:m,statics:p}}=t.useContext(ht),g="marryBaby"===a;return t.useMemo((()=>{var t;const a=[];return l&&a.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${p.HOME_PAGE_URL}${"tl-PH"===i?"/fil":""}/categories`,niceName:"",thumbnail:g?n.CommonGAssets.getAssetPath("categories-mb.svg"):n.CommonGAssets.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),o&&a.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${p.HOME_PAGE_URL}${"tl-PH"===i?"/fil":""}${(null===(t=r.STATIC_PAGES[i])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:g?n.CommonGAssets.getAssetPath("healthtools-mb.svg"):n.CommonGAssets.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),u&&a.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:s.normalizeLinkSlash(p.TOGETHER_URL_FE+"/"),thumbnail:g?n.CommonGAssets.getAssetPath("community-mb.svg"):n.CommonGAssets.getAssetPath("nav-icons/community.svg"),popupType:"together"}),m&&a.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:s.normalizeLinkSlash(p.HOME_PAGE_URL+"/shop"),thumbnail:n.CommonGAssets.getAssetPath("nav-icons/shop.svg"),popupType:null}),d&&a.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:"ms-MY"===i?s.normalizeLinkSlash(p.HOME_PAGE_URL+"/care/current-location/hospital/"):s.normalizeLinkSlash(p.HOME_PAGE_URL+"/care"),thumbnail:n.CommonGAssets.getAssetPath("nav-icons/care.svg"),popupType:"id-ID"===i?"care":null}),a}),[i,d,u,m])})();(()=>{const{isFirstLogin:e,userState:a}=t.useContext(ht),{userInfo:i}=a;t.useEffect((()=>{(null==i?void 0:i.id)&&(e?(null==i?void 0:i.email)&&""!==(null==i?void 0:i.email)?window.insider_object={user:Object.assign({uuid:null==i?void 0:i.id,email:null==i?void 0:i.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:window.insider_object={user:Object.assign({uuid:null==i?void 0:i.id,sign_up:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:(null==i?void 0:i.email)&&""!==(null==i?void 0:i.email)?window.insider_object={user:Object.assign({uuid:null==i?void 0:i.id,email:null==i?void 0:i.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:window.insider_object={user:Object.assign({uuid:null==i?void 0:i.id,log_in:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})})}),[])})();const v=g&&!!p,y=!!m,x=!!(null===(i=null===(a=null==m?void 0:m.props)||void 0===a?void 0:a.sponsoredBy)||void 0===i?void 0:i.length),{headerRef:b,defaultHeaderHeight:E,headerHeight:C,headerBottom:w}=(({hasSponsoredBanners:e,isSponsored:a,isShowingSiteWideBanner:i,isMobile:l})=>{const o=t.useRef(null),[n,r]=t.useState(0),[s,d]=t.useState(64),u=t.useCallback(D.default((()=>{var e,t,a,i;const l=(null===(e=o.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=o.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=l+200&&(r(l),d((null===(i=o.current)||void 0===i?void 0:i.getBoundingClientRect().bottom)||n))}),200),[]);t.useEffect((()=>(window.addEventListener("resize",u,{passive:!0}),window.addEventListener("scroll",u,{passive:!0}),u(),()=>{window.removeEventListener("resize",u),window.removeEventListener("scroll",u)})),[]),t.useEffect((()=>{u()}),[l,i,a,e,o.current]);const m=t.useMemo((()=>{let t=56;return i&&(t+=64),a&&(t+=40,e&&(t+=57)),t}),[l,i,e,a]);return{defaultHeaderHeight:m,headerHeight:n||m,headerBottom:s,headerRef:o}})({isShowingSiteWideBanner:v,isSponsored:y,hasSponsoredBanners:x,isMobile:l});return _.default.createElement(ui,{id:"navigation-v2",style:{"--default-header-height":E+"px","--header-height":`calc(${C}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":w+"px"},className:h},_.default.createElement("section",{ref:b},_.default.createElement(ri,{menuItems:f,type:"home",onTopBarAppears:d,languageMenu:_.default.createElement(Z,{languageOptions:u,locale:o})})))},ci=t=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,a,i,l,o,n,m,c,p,g,h,f,v,y,x,b,E,C,w,k,$,A,M;const P={},N="vi-VN_MB"===t;try{const L="tl-PH"===t?"lang=fil":"";try{const[r,u,h,f]=yield Promise.all([fetch(s.normalizeLinkSlash(`${d.getDiscoverApiDomain(t)}/wp-json/api/categories${L?"?"+L:""}`)).then((e=>e.json())),fetch(s.normalizeLinkSlash(`${d.getDiscoverApiDomain(t)}/wp-json/api/spotlights?per_page=10&order_by=start_date${L?"&"+L:""}`)).then((e=>e.json())),fetch(s.normalizeLinkSlash(`${d.getDiscoverApiDomain(t)}/wp-json/api/${N?"health-tools":"healthtools"}${L?"?"+L:""}`)).then((e=>e.json())),fetch(s.normalizeLinkSlash(`${d.getDiscoverApiDomain(t)}/wp-json/api/${N?"health-tools":"healthtools"}/favorites${L?"?"+L:""}`)).then((e=>e.json()))]);P.categories={items:(null===(a=null===(e=null==r?void 0:r.data)||void 0===e?void 0:e.map)||void 0===a?void 0:a.call(e,Ye))||[],spotlights:(null===(n=null===(o=null===(l=null===(i=null==u?void 0:u.data)||void 0===i?void 0:i.articles)||void 0===l?void 0:l.map)||void 0===o?void 0:o.call(l,tt))||void 0===n?void 0:n.filter(at))||[]},P.healthTools={items:(null===(c=null===(m=null==h?void 0:h.data)||void 0===m?void 0:m.map)||void 0===c?void 0:c.call(m,Ke))||[],spotlights:(null===(g=null===(p=null==f?void 0:f.data)||void 0===p?void 0:p.map)||void 0===g?void 0:g.call(p,Ke))||[]}}catch(e){}if(N||r.TOGETHER_LOCALES.includes(t))try{const[e,a]=yield Promise.all([fetch(s.normalizeLinkSlash(`${d.getTogetherApiDomain()}/api/v1/community?website_url=https://${r.domainLocales[t]}`)).then((e=>e.json())),fetch(s.normalizeLinkSlash(`${d.getTogetherApiDomain()}/api/v1/options?website_url=https://${r.domainLocales[t]}&meta_key=popular_post`)).then((e=>e.json()))]);P.together={items:(null===(v=null===(f=null===(h=null==e?void 0:e.data)||void 0===h?void 0:h.communities)||void 0===f?void 0:f.map)||void 0===v?void 0:v.call(f,u.formatCommunity))||[],spotlights:(null===(b=null===(x=null===(y=null==a?void 0:a.data)||void 0===y?void 0:y.posts)||void 0===x?void 0:x.map)||void 0===b?void 0:b.call(x,u.formatPost))||[]}}catch(e){}if(r.CARE_LOCALES.includes(t))try{const[e,a]=yield Promise.all([fetch(s.normalizeLinkSlash(d.getCareApiDomain()+`/api/options/setting_menu?site=${r.domainLocales[t]}&type=0`)).then((e=>e.json())),fetch(s.normalizeLinkSlash(d.getCareApiDomain()+`/api/options/setting_menu?site=${r.domainLocales[t]}&type=1`)).then((e=>e.json()))]);P.care={items:(null===(k=null===(w=null===(C=null===(E=null==e?void 0:e._data)||void 0===E?void 0:E.setting_menu)||void 0===C?void 0:C.menu_specialty)||void 0===w?void 0:w.map)||void 0===k?void 0:k.call(w,Je))||[],spotlights:(null===(M=null===(A=null===($=null==a?void 0:a._data.setting_menu)||void 0===$?void 0:$.menu_hospital)||void 0===A?void 0:A.map)||void 0===M?void 0:M.call(A,Xe))||[]}}catch(e){}}catch(e){console.error(e)}return P}));exports.Avatar=j,exports.LanguageSwitcher=Z,exports.NavHeader=ye,exports.NavigationLogoutPopup=rt,exports.NavigationProfileButton=st,exports.NavigationV2=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return _.default.createElement(ft,Object.assign({},t),_.default.createElement(mi,Object.assign({},t)))},exports.ProfilePopup=lt,exports.UserProfileNavigation=it,exports.UserStats=Qe,exports.getNavMenuContent=ci,exports.getNavMenuContentWithCache=t=>e.__awaiter(void 0,void 0,void 0,(function*(){return(yield a.getDataWithCache("nav-menu-content",(()=>ci(t||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}})),exports.isInternalLink=R;
|