@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
|
@@ -0,0 +1,3533 @@
|
|
|
1
|
+
import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,memo as r,useCallback as o,useImperativeHandle as s,forwardRef as c,createContext as d,useContext as m}from"react";import{T as p,I as g}from"./index-b902806c.js";import{e as u,f as h,g as b,h as v,i as y,j as f,k as x,l as w,m as E,n as k,o as C,p as N,q as B,r as D,s as $,t as P,u as z,v as S,w as L,H as M,T,x as I,Z as A,P as j,y as O,z as _,A as F,B as H,C as R,b as U,E as W,F as V,I as G}from"./index.styles-1512f2b5.js";import{i as Z,M as q}from"./screenSizeContext-d394cc53.js";import{I as Y,R as X,u as K,A as J,a as Q,b as ee,B as te,c as ae,d as ne,e as ie,t as le}from"./index-425a92c5.js";import{T as re}from"./index-fe3254e0.js";import{b as oe,u as se}from"./useTranslations-dd0a13ad.js";import"lodash/debounce";import{i as ce}from"./isProduction-f42d4af9.js";import{d as de,L as me,F as pe,Q as ge,R as ue,a as he,G as be}from"./index-29bf362b.js";import"./useCategory-efa124e8.js";import{CommonGAssets as ve}from"./gAssets.js";import{t as ye}from"./theme-e05003ce.js";import{_ as fe,a as xe}from"./tslib.es6-d0d7aa00.js";import{Box as we,Radio as Ee,Flex as ke,rem as Ce,Card as Ne,Group as Be,createStyles as De,Stack as $e,getStylesRef as Pe,useMantineTheme as ze,Container as Se,UnstyledButton as Le,AspectRatio as Me,ScrollArea as Te,Chip as Ie,Badge as Ae,MultiSelect as je,Stepper as Oe}from"@mantine/core";import _e from"innertext";import"@mantine/dates";import{G as Fe,L as He}from"./Onboarding-776a51ed.js";import Re from"dayjs";import Ue,{keyframes as We,css as Ve}from"styled-components";import"./translationsContext-f924f41c.js";import"string-format";import{useViewportSize as Ge}from"@mantine/hooks";import{i as Ze,d as qe}from"./index-84edbddf.js";import Ye from"lodash/throttle";import{L as Xe}from"./index-034573a6.js";import{B as Ke}from"./index-e12c492a.js";import{I as Je}from"./index-3bc70679.js";import Qe from"html-react-parser";import{format as et,addDays as tt,isBefore as at,startOfMonth as nt,addMonths as it,subMonths as lt,getDaysInMonth as rt,isToday as ot,isSameDay as st,isWithinInterval as ct,isAfter as dt,isPast as mt}from"date-fns";import"./utils-8ef9fdb1.js";import"./index.styled-6f781392.js";import"./index-2c84d24b.js";import{L as pt}from"./constants-c312beee.js";import{D as gt}from"./types-69c2911d.js";import{S as ut}from"./index-8b57ae3b.js";import{M as ht}from"./index-b9920630.js";import{b as bt}from"./index.styled-7aa83a38.js";import{C as vt}from"./index-08fb1171.js";import{useForm as yt,Controller as ft}from"react-hook-form";import{u as xt}from"./useHealthToolCache-de46a889.js";import{yupResolver as wt}from"@hookform/resolvers/yup";import{B as Et,D as kt}from"./index-645ef204.js";import{f as Ct}from"./index-9a575100.js";import Nt from"react-day-picker/DayPickerInput";import{a as Bt}from"./useOutsideClick-631f70f3.js";import Dt from"date-fns/locale/en-US";import $t from"date-fns/locale/id";import Pt from"date-fns/locale/vi";import zt from"date-fns/locale/zh-TW";import{g as St}from"./getSocialList-757a53c6.js";import{v4 as Lt}from"uuid";import{g as Mt,a as Tt}from"./routing-6b724e34.js";import{useForm as It,isNotEmpty as At}from"@mantine/form";import{M as jt}from"./index-324430b9.js";import Ot from"js-cookie";import _t from"lodash/flatten";import"react-contenteditable";import"react-dom";import Ft from"lodash/uniqBy";import{g as Ht}from"./cookieHelper-df1c13f9.js";import{n as Rt,a as Ut}from"./normalizeLink-83bc2fa0.js";var Wt="CHw-fZZ",Vt="_03U6VRS",Gt="EO828Vv";const Zt=({style:t,onClose:a,text:n,type:i,contentIcon:l,closeIcon:r,className:o,description:s})=>e.createElement("div",{className:`${Wt} ${o||""}`,style:t,"data-alert-type":i},e.createElement("div",{className:Vt},e.createElement("div",{className:"icon-title"},l,e.createElement(p,{weight:"bold",size:"label1"},n)),e.createElement(p,{weight:"regular",size:"p3"},s)),e.createElement("div",{className:Gt,onClick:a},r)),qt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},Yt=({type:n="square",size:i,avatarImg:l,avatarUrl:r,firstLetter:o,backgroundColor:s,onClick:c,style:d,className:m,width:p,height:g,alt:h})=>{const b=i?qt[i]:void 0,[v,y]=t(!1);a((()=>{if(r){const e=document.createElement("img");e.setAttribute("src",r),e.addEventListener("error",(()=>{y(!0)}))}}),[r,y]);const f=(!r&&!l||v)&&o;return e.createElement(u,{style:Object.assign(Object.assign({},d),{"--size":b?b+"px":void 0,"--width-prop":p?p+"px":void 0,"--height-prop":g?g+"px":void 0,"--background-color":s}),"data-has-max":!(!p||!g),"data-avatar-type":n,onClick:c,className:m,avatarUrl:r,"data-custom-size":!!i},l,r&&!v&&e.createElement(Y,{src:r,alt:h||"avatar"}),f&&o)},Xt=({amount:t,type:a,size:n="medium",color:i="primary",icon:l,className:r})=>e.createElement(h,{"data-notification-type":a,"data-notification-size":n,"data-notification-color":i,"data-has-icon":!!l||void 0,notificationType:a,notificationSize:n,notificationColor:i,hasIcon:!!l,className:r},e.createElement("div",null,t&&e.createElement("span",null,t)," ",l&&e.createElement("div",null,l))),Kt=({style:t,children:a,className:n,size:i="lg",type:l="bold",upperCase:r,as:o="h4",color:s})=>e.createElement(b,{style:Object.assign({color:s},t),className:n,"data-size":i,"data-type":l,"data-uppercase":r,as:o},a),Jt=()=>e.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),Qt=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),ea=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"download"),e.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),ta=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"upload"),e.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"})),aa=({className:a,value:i,options:l,onUploadSelected:r,id:o,placeholderIcon:s,placeholder:c,style:d})=>{const[m,p]=t(!1),g=()=>p(!m),u=n(l.map((t=>"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+o+"-"+t.value,key:"uploader-dropdown-input-"+o+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),r(e.target.files)}}))));return e.createElement(v,{className:a,"data-dropdown-open":!!m,id:o,"data-has-icons":!0,style:d,onBlur:()=>p(!1),tabIndex:0},e.createElement(Jt,null),e.createElement(y,{onClick:g},s||e.createElement(Qt,null)," ",e.createElement("span",null,i&&i.value?i.label:c)),m&&e.createElement(f,{onClick:g,"data-has-icons":!0},l.map((t=>e.createElement(x,{key:`${o}-${t.value}`,"data-selected":i&&i.value===t.value||void 0,onClick:()=>{return"upload"===t.type?(a="#uploader-dropdown-input-"+o+"-"+t.value,void(null===(n=document.querySelector(a))||void 0===n||n.click())):void((e=t.url)&&window.open(e,"_blank"));var e,a,n}},e.createElement(w,null,t.icon||"download"===t.type?e.createElement(ea,null):e.createElement(ta,null)),t.label)))),e.createElement(e.Fragment,null,u.current))},na=({className:t,columns:a,columnsDesktop:n,gridTemplateColumns:i,gridTemplateColumnsDesktop:l,gap:r,children:o,justifyChildren:s,style:c,alignItems:d})=>e.createElement(E,{className:t,style:c,theme:{columns:a,columnsDesktop:n,gap:r,justifyChildren:s,gridTemplateColumns:i,gridTemplateColumnsDesktop:l,alignItems:d}},o),ia=({pagesAmount:n,activePage:i,handlePageChange:r,handleClick:o,href:s,queryPageName:c="page"})=>{const d=[...Array(n)].map(((e,t)=>t+1)),[m,p]=t(i<=4?d.slice(0,5):i>=d.length-3?d.slice(d.length-5,d.length):d.slice(i-2,i+1));return a((()=>{i<=4?p(d.slice(0,5)):i>=d.length-3?p(d.slice(d.length-5,d.length)):p(d.slice(i-2,i+1))}),[i]),e.createElement(l,null,i>4&&e.createElement(l,null,e.createElement(N,{onClick:()=>r(1)},s?e.createElement("a",{href:s,onClick:o},1):1),e.createElement(N,null,"...")),m.map((t=>e.createElement(N,{key:`pagination+${t}`,"data-page-active":t===i||void 0,onClick:()=>r(t)},s?e.createElement("a",{href:Z(s,t,c),onClick:o},t):t))),i<d.length-3&&e.createElement(l,null,e.createElement(N,null,"..."),e.createElement(N,{onClick:()=>r(d.length)},s?e.createElement("a",{href:Z(s,d.length,c),onClick:o},d.length):d.length)))},la=({className:n,pagesAmount:l,currentPage:r,onChange:o,onClick:s,style:c,href:d,queryPageName:m="page"})=>{const p=[...Array(l)].map(((e,t)=>t+1)),[g,u]=t(r),h=i((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),b=l-1,v=e=>{e<=l&&e>0&&(u(e),o(e))},y=e=>{s&&s(e)};return a((()=>{u(r)}),[r]),e.createElement(k,{className:n,style:c},e.createElement(C,{className:"prev-page",onClick:()=>v(g-1),"data-last-page":1===g||void 0},h?e.createElement("a",{href:Z(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),p.length>8?e.createElement(ia,{pagesAmount:l,activePage:g,handlePageChange:v,handleClick:y,href:h,queryPageName:m}):p.map((t=>e.createElement(N,{key:`pagination+${t}`,"data-page-active":t===g||void 0,onClick:()=>v(t)},h?e.createElement("a",{href:Z(h,t,m),onClick:y},t):t))),e.createElement(C,{className:"next-page",onClick:()=>v(g+1),"data-last-page":g===b+1||void 0},h?e.createElement("a",{href:Z(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},ra=({size:t="small",label:a,name:n,checked:i,value:l,className:r,isDisabled:o=!1,onChange:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>{const p=!!d&&!!c&&!!m?{"data-event-category":c,"data-event-action":d,"data-event-label":m}:{};return e.createElement(X,Object.assign({size:"small"===t?"md":"lg",label:a,name:n,checked:i,value:l,className:r,disabled:o,onChange:e=>null==s?void 0:s(e.target.value)},p))},oa=({type:t,children:a,style:n,isInline:i,isSquared:l=!1,className:r,isLight:o,hasMorePadding:s,isLink:c,isSelected:d,textProps:m={size:"sm"}})=>{const p=m.color?{"--text-props-color":m.color}:{};return e.createElement(B,{"data-is-squared":l||void 0,"data-tag-type":t,"data-is-light":o||void 0,"data-has-more-padding":s||void 0,"data-is-inline":i||void 0,style:Object.assign(Object.assign({},n),p),className:r,"data-is-selected":d||void 0,"data-is-link":c||void 0,tagType:t,isInline:i,tagHasMorePadding:s,tagIsLight:o,tagIsSquared:l,tagIsALink:c},e.createElement(re,Object.assign({},m),a))},sa=({className:t,id:a,onChange:n,checked:i,style:l,label:r})=>e.createElement(D,{className:t,style:l},e.createElement("input",{type:"checkbox",id:a,onChange:n,checked:i}),e.createElement("label",{htmlFor:a},e.createElement($,null),r&&e.createElement(P,null,r))),ca=({label:t,name:a,checked:n,className:i,isDisabled:l,onChange:r,value:o,isRectangle:s,inputDataTestId:c,siteType:d})=>e.createElement(z,{className:i,"data-disabled":l||void 0,"data-is-rectangle":s||void 0,"data-label-text":t,"data-theme":d},e.createElement("input",{type:"checkbox",checked:n,name:a,onChange:()=>r(o,!n),disabled:l,value:o,id:`${a}-${o}`,"data-label-text":t,"data-testid":c}),!s&&e.createElement("label",{htmlFor:`${a}-${o}`},t)),da=t=>e.createElement("svg",Object.assign({},t,{viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),ma=t=>e.createElement("svg",Object.assign({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),pa=t=>{const a=oe();return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 24 24",fill:"none"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:`url(#${a})`},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},ga=({gap:a=2,size:n=24,star:i,totalStars:l=5,onSelect:r,hideEmptyStars:o,style:s,className:c})=>{const d=Math.floor(i),m=i-d>=.5?1:0,[p,g]=t(null),u=p||d,h=p?0:m;return e.createElement(S,{"data-selectable":!!r,style:Object.assign({"--gap":a,"--star-size":n},s),className:c},Array.from({length:o?d+m:l}).map(((t,a)=>{const n=()=>!!r&&g(a+1),i=()=>!!r&&g(null);return a+1<=u?e.createElement(ma,{key:a,onClick:()=>null==r?void 0:r(a+1),onMouseOver:n,onMouseLeave:i}):a+1===u+h?e.createElement(pa,{key:a,onClick:()=>null==r?void 0:r(a+1),onMouseOver:n,onMouseLeave:i}):e.createElement(da,{key:a,onClick:()=>null==r?void 0:r(a+1),onMouseOver:n,onMouseLeave:i})})))},ua=l=>{var{label:r,availableValue:o,styles:s,isBaby:c,genderValue:d={male:"male",female:"female"}}=l,m=fe(l,["label","availableValue","styles","isBaby","genderValue"]);const{t:g}=se(),{classes:u,cx:h}=L(void 0,{name:"GenderOptionControl",styles:s}),[b,v]=t(),y=n(null),f=i((()=>[{value:d.male,label:g(c?"gender.boy":"gender.male"),icon:ve.getAssetPath(c?"health-tools/boy-icon.svg":"health-tools/male-icon.svg")},{value:d.female,label:g(c?"gender.girl":"gender.female"),icon:ve.getAssetPath(c?"health-tools/girl-icon.svg":"health-tools/female-icon.svg")}]),[]);return a((()=>{v(o)}),[o]),e.createElement(we,{ref:y,className:u.root},e.createElement(Ee.Group,Object.assign({className:"radio-group",label:e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},r||g(c?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},m,{classNames:{error:u.groupErr}}),e.createElement(ke,{className:h(u.wrapper)},f.map((t=>e.createElement(Ee,Object.assign({className:"gender-item",classNames:{root:u.itemRoot,labelWrapper:u.itemLabelWrapper,label:u.itemLabel,inner:u.itemInner},key:t.value,value:t.value},b&&t.value!==b&&{disabled:!0},{label:e.createElement(ke,{gap:Ce(8),align:"center",justify:"center",sx:{zIndex:0}},e.createElement("img",{src:t.icon,className:"gender-image",alt:"female",loading:"lazy"}),e.createElement(p,{size:"p3"},t.label))})))))))};var ha="tliWyii";const ba=({className:t,theme:a,hideText:n})=>{const{t:i}=se();return e.createElement("div",{className:`${ha} ${t}`},e.createElement(g.Spinner,{isMarryBaby:"marryBaby"===a}),!n&&i("loading"))};var va="PiqKaXk",ya="HgbW6-m",fa="_6lkfLYy",xa="j7c-onH";const wa=({avatarImg:t,authorName:a,authorLink:n,uploadTime:i,size:l})=>e.createElement("div",{className:xa},e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":l},t),e.createElement("div",{className:"poster","data-is-disabled-url":!n},e.createElement(p,{size:"lg"===l?"p3":"p4"},e.createElement("a",{href:n},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,i))))),Ea=({isMobile:t,avatarImg:a,name:n,link:i,size:l="lg",specialty:r})=>e.createElement("div",{className:xa},e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":l},a),e.createElement("div",{className:"expert","data-is-disabled-url":!i},t?e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(M,{tag:"h6",className:"expert__name",color:ye.colors.gray600},n),e.createElement(p,{color:ye.colors.gray500,size:"p3",className:"specialty"},r)):e.createElement(e.Fragment,null,e.createElement(M,{tag:"h6",className:"expert__name",color:ye.colors.gray600},n))):e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(M,{tag:"h6",className:"expert__name",color:ye.colors.gray600},n),e.createElement(p,{color:ye.colors.gray500,size:"p3",className:"specialty"},r)):e.createElement(e.Fragment,null,e.createElement("h6",{color:ye.colors.gray600,className:`${va} expert__name`},n),e.createElement(p,{color:ye.colors.gray500,size:"p4",className:"specialty"},r)))))),ka=r((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),Ca=r((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),Na=r((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"})))),Ba=({articleLink:t,authorLink:a,authorName:n,avatarImg:i,banner:l,categoryLink:r,categoryName:o,className:s,dataEventActionForBanner:c,dataEventActionForBookmark:d,dataEventActionForCategory:m,dataEventActionForTitle:g,dataEventCategoryForBanner:u,dataEventCategoryForBookmark:h,dataEventCategoryForCategory:b,dataEventCategoryForTitle:v,dataEventLabelForBanner:y,dataEventLabelForBookmark:f,dataEventLabelForCategory:x,dataEventLabelForTitle:w,direction:E="horizontal",hasAffiliate:k,isBookmark:C=!1,isBookmarkDisplayed:N=!0,isMobile:B=!0,onBookmark:D,onClickCategoryName:$,section:P="normal",size:z="md",specialty:S,style:L,styleBanner:T,styleLabel:I,styleTitle:A,text:j,title:O,type:_="author",uploadTime:F,articleLinkTarget:H,isPremium:R})=>{const U=e=>{e.stopPropagation(),null==D||D()},W="lg"===z&&"expert"===_?"h4":"lg"===z&&"home"===P?B?"h4":"h3":"lg"===z?"h4":"h5",V="lg"===z?"p3":"p4",G=B||"home"!==P||"lg"!==z||"author"!==_?"c2":"c1";return e.createElement("article",{className:`${fa} ${s||""}`,"data-size":z,style:L,"data-direction":E,"data-is-expert":"expert"===_||void 0},e.createElement("div",{className:"banner",style:T},e.createElement("a",{className:ya,"data-event-category":u,"data-event-action":c,"data-event-label":y,href:t||"#",target:H},l),R&&e.createElement("img",{loading:"lazy",className:"premium",src:ve.getAssetPath("premium-crown.svg")}),k&&e.createElement(ka,null)),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(p,{style:I,className:"label",size:G,weight:"caption"},e.createElement("a",{className:ya,"data-event-category":b,"data-event-action":m,"data-event-label":x,href:r||"#",onClick:$},o),N&&e.createElement("a",{className:"bookmark",onClick:U},C?e.createElement(Ca,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(Na,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))),e.createElement(M,{tag:W,style:A,className:"title",as:"lg"===z?"h2":"h3"},e.createElement("a",{className:ya,"data-event-category":v,"data-event-action":g,"data-event-label":w,href:t||"#",target:H},O)),j&&e.createElement("a",{href:t||"#",target:H},e.createElement(p,{size:V,className:"text"},j))),e.createElement("div",{className:"footer"},"author"===_?e.createElement(wa,{size:z,avatarImg:i,authorName:n,authorLink:a,uploadTime:F,handleClick:U,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(Ea,{size:z,isMobile:B,avatarImg:i,specialty:S,name:n,link:a,handleClick:U,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))))},Da=t=>{var a,n,i,{article:l,author:r,authorAvatar:o,badge:s="",hideDescription:c=!1,isBookmarked:d=!1,onBookmark:m,time:g,tracking:u}=t,h=fe(t,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:b}=K();return console.log({article:l}),e.createElement(Ne,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},h),e.createElement(Ne.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},e.createElement("img",{src:(b?l.featureImageMobile:l.featureImage)||l.featureImage,alt:l.postName,style:{width:"100%"},loading:"lazy"})),e.createElement(Ne.Section,null,e.createElement(Be,{position:"apart",mt:16,mb:4},e.createElement(J,{href:(null===(a=null==l?void 0:l.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==l?void 0:l.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(we,{sx:{cursor:"pointer"},role:"button",onClick:m},d?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(p,{size:c?"s2":"s1",mb:8,weight:"semiBold",className:"pointer"},l.postTitle||l.postName||""),!c&&e.createElement(p,{size:"p2",mb:16,lineClamp:3,className:"pointer"},_e(l.excerpt||l.description||(null===(i=l.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),e.createElement(ke,{gap:12,align:"center"},e.createElement(Q,{size:32,src:o,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:s,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},r," • ",g))))};var $a=De(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const Pa=648/440,za=1.5,Sa=t=>{var a,n,l,{article:r,author:o,authorAvatar:s,badge:c="",bannerImageWrapProps:d,hideDescription:m=!1,isBookmarked:g=!1,onBookmark:u,time:h,tracking:b,classNames:v,styles:y,unstyled:f,className:x}=t,w=fe(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:E}=K(),{classes:k,cx:C}=$a({},{name:"ArticleCard",classNames:v,styles:y,unstyled:f}),N=i((()=>m?za:Pa),[m]);return e.createElement(Ne,Object.assign({className:C(k.root,x),padding:"lg",radius:0},w),e.createElement(Ne.Section,{className:C(k.image,"pointer")},e.createElement(ee,Object.assign({ratio:N},d),e.createElement("img",{src:(E?r.featureImageMobile:r.featureImage)||r.featureImage,alt:r.postName,style:{objectFit:"cover"}}))),e.createElement(Ne.Section,null,e.createElement(Be,{position:"apart",mt:16,mb:4},e.createElement(J,{className:k.category,href:(null===(a=null==r?void 0:r.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==r?void 0:r.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(we,{sx:{cursor:"pointer"},role:"button",onClick:u},g?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==b?void 0:b.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==b?void 0:b.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(p,{className:C(k.title,"pointer"),size:m?"s2":"s1",mb:8,weight:"semiBold"},r.postTitle||r.postName||""),!m&&e.createElement(p,{className:C(k.description,"pointer"),size:"p2",mb:16,lineClamp:3},_e(r.excerpt||r.description||(null===(l=r.postContent)||void 0===l?void 0:l.split("\r\n")[0])||"")),e.createElement(ke,{className:k.author,gap:12,align:"center"},e.createElement(Q,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},o," • ",h))))},La=t=>{var{variant:a="vertical"}=t,n=fe(t,["variant"]);return"horizontal"===a?e.createElement(Da,Object.assign({},n)):e.createElement(Sa,Object.assign({},n))},Ma=Ue.a`
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 125px;
|
|
4
|
+
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding: 8px;
|
|
9
|
+
|
|
10
|
+
border: 1px solid ${e=>e.theme.colors.neutral100};
|
|
11
|
+
background-color: white;
|
|
12
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
13
|
+
box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
|
|
17
|
+
& > .banner {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 63px;
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
& > .content {
|
|
24
|
+
display: -webkit-box;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
-webkit-box-orient: vertical;
|
|
27
|
+
-webkit-line-clamp: 2;
|
|
28
|
+
text-align: center;
|
|
29
|
+
word-break: break-word;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
* {
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}
|
|
35
|
+
`,Ta=t=>{var{category:a,imgBanner:n,label:i,className:l,style:r,href:o="",dataEventCategory:s,dataEventAction:c,dataEventLabel:d}=t,m=fe(t,["category","imgBanner","label","className","style","href","dataEventCategory","dataEventAction","dataEventLabel"]);const g=(null==a?void 0:a.customizedUrl)||(null==a?void 0:a.permalink)||o||"";return e.createElement(Ma,Object.assign({"data-event-category":s,"data-event-action":c,"data-event-label":d,className:l,style:r,href:g},(null==a?void 0:a.customizedUrl)&&!Ze(a.customizedUrl)&&{target:"_blank"},{onClick:e=>{""===g&&e.preventDefault()}},m),e.createElement("div",{className:"banner"},n),e.createElement("div",{className:"content"},e.createElement(p,{className:"category_name",size:"sm",weight:"bold"},(null==a?void 0:a.displayName)||i||"")))},Ia=Ue.div`
|
|
36
|
+
display: flex;
|
|
37
|
+
|
|
38
|
+
&[data-type='vertical'] {
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
|
|
41
|
+
div {
|
|
42
|
+
margin-bottom: 20px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-type='horizontal'] {
|
|
47
|
+
flex-wrap: wrap;
|
|
48
|
+
|
|
49
|
+
div {
|
|
50
|
+
margin-right: 25px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-is-rectangle] {
|
|
54
|
+
div {
|
|
55
|
+
margin-right: 14px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`,Aa=({name:t,values:a=[],onChanges:n,options:i=[],className:l,type:r="vertical",isDisabled:o,isRectangle:s})=>{const c=(e,t)=>{const i=a.slice();if(t)i.push(e);else{const t=i.findIndex((t=>t===e));i.splice(t,1)}n&&n(i)};return e.createElement(Ia,{className:l,"data-type":r,"data-is-rectangle":s||void 0},i.map(((n,i)=>e.createElement(ca,{label:n.label,name:t,key:`${i}-${n.value}`,checked:a.includes(n.value),value:n.value,isDisabled:o||n.disabled,onChange:!o&&c,isRectangle:s}))))},ja={"vi-VN":["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],"id-ID":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"ms-MY":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"km-KH":["មករា","ខែកុម្ភៈ","មីនា","ខែមេសា","ឧសភា","មិថុនា","ខែកក្កដា","សីហា","ខែកញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],"en-PH":["January","February","March","April","May","June","July","August","September","October","November","December"],"th-TH":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","อาจ","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"my-MM":["ဇန်နဝါရီလ","ဖေဖော်ဝါရီလ","မတ်လ","ပြီလ","မေလ","ဇွန","ဇူလိုင်လ","သြဂုတ်လ","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"],"zh-TW":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"hi-IN":["जनवरी","फ़रवरी","जुलूस","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},Oa=Ue.div`
|
|
60
|
+
.pickerContainer {
|
|
61
|
+
position: relative;
|
|
62
|
+
padding-top: 0;
|
|
63
|
+
& > div > svg {
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 36px;
|
|
66
|
+
right: 16px;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
& > :not(:first-child) {
|
|
71
|
+
position: absolute;
|
|
72
|
+
z-index: 2;
|
|
73
|
+
width: 100%;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&[data-is-static] .pickerOverlayWrapper {
|
|
78
|
+
position: static;
|
|
79
|
+
max-width: 250px;
|
|
80
|
+
aspect-ratio: 1 / 1;
|
|
81
|
+
|
|
82
|
+
> .pickerOverlay {
|
|
83
|
+
padding: 1rem;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.pickerOverlayWrapper {
|
|
88
|
+
min-width: 320px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&[data-align-right='true'] {
|
|
92
|
+
.pickerOverlayWrapper {
|
|
93
|
+
right: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.pickerOverlay {
|
|
98
|
+
margin-top: 6px;
|
|
99
|
+
background: white;
|
|
100
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
101
|
+
box-shadow: 0px 6px 12px rgba(67, 86, 100, 0.2);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.picker {
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.react-datepicker-popper {
|
|
109
|
+
.react-datepicker {
|
|
110
|
+
display: flex;
|
|
111
|
+
width: 340px;
|
|
112
|
+
height: 305px;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
border: none;
|
|
116
|
+
box-shadow: (-1px 1px 2px rgba(67, 70, 74, 0.0001)),
|
|
117
|
+
(-2px 2px 5px rgba(67, 86, 100, 0.123689));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.svg {
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
stroke: ${e=>e.theme.colors.gray800};
|
|
123
|
+
}
|
|
124
|
+
.react-datepicker__day {
|
|
125
|
+
width: 40px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.react-datepicker__header {
|
|
129
|
+
border-bottom: 0;
|
|
130
|
+
background-color: white;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.react-datepicker__day--outside-month {
|
|
134
|
+
color: #e9e9e9;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.react-datepicker__day {
|
|
138
|
+
font-weight: ${e=>e.theme.sizes.fwBold};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.react-datepicker__day--selected,
|
|
142
|
+
.react-datepicker__day--today,
|
|
143
|
+
.react-datepicker__day--selected:hover,
|
|
144
|
+
.react-datepicker__day--keyboard-selected {
|
|
145
|
+
width: 32px;
|
|
146
|
+
height: 30px;
|
|
147
|
+
margin: 4px;
|
|
148
|
+
margin-bottom: -2px;
|
|
149
|
+
background: ${e=>e.theme.colors.primaryBase};
|
|
150
|
+
border-radius: 50%;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.react-datepicker__day-name {
|
|
154
|
+
width: 40px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.react-datepicker__triangle {
|
|
158
|
+
display: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.react-datepicker__header.react-datepicker__header--custom {
|
|
162
|
+
svg {
|
|
163
|
+
stroke: #262626;
|
|
164
|
+
}
|
|
165
|
+
select {
|
|
166
|
+
background: ${e=>e.theme.colors.neutral100};
|
|
167
|
+
text-align: center;
|
|
168
|
+
&:not(:last-child) {
|
|
169
|
+
padding: 8px 10px;
|
|
170
|
+
margin-right: 15px;
|
|
171
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* DayPicker styles */
|
|
178
|
+
|
|
179
|
+
.DayPicker {
|
|
180
|
+
display: inline-block;
|
|
181
|
+
font-size: 1rem;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.DayPicker-wrapper {
|
|
185
|
+
position: relative;
|
|
186
|
+
|
|
187
|
+
flex-direction: row;
|
|
188
|
+
padding-bottom: 1em;
|
|
189
|
+
|
|
190
|
+
-webkit-user-select: none;
|
|
191
|
+
|
|
192
|
+
-moz-user-select: none;
|
|
193
|
+
|
|
194
|
+
-ms-user-select: none;
|
|
195
|
+
|
|
196
|
+
user-select: none;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.DayPicker-Months {
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-wrap: wrap;
|
|
202
|
+
justify-content: center;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.DayPicker-Month {
|
|
206
|
+
display: table;
|
|
207
|
+
margin: 0 16px;
|
|
208
|
+
margin-top: 16px;
|
|
209
|
+
border-collapse: collapse;
|
|
210
|
+
border-spacing: 0;
|
|
211
|
+
|
|
212
|
+
-webkit-user-select: none;
|
|
213
|
+
|
|
214
|
+
-moz-user-select: none;
|
|
215
|
+
|
|
216
|
+
-ms-user-select: none;
|
|
217
|
+
|
|
218
|
+
user-select: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.DayPicker-NavBar {
|
|
222
|
+
position: absolute;
|
|
223
|
+
top: 16px;
|
|
224
|
+
left: 0;
|
|
225
|
+
display: flex;
|
|
226
|
+
width: 100%;
|
|
227
|
+
height: 0;
|
|
228
|
+
align-items: center;
|
|
229
|
+
justify-content: space-between;
|
|
230
|
+
padding: 0 20px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.DayPicker-NavButton {
|
|
234
|
+
width: 24px;
|
|
235
|
+
height: 24px;
|
|
236
|
+
margin-bottom: -47px;
|
|
237
|
+
background-position: center;
|
|
238
|
+
background-repeat: no-repeat;
|
|
239
|
+
background-size: 16px 16px;
|
|
240
|
+
color: #8b9898;
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.DayPicker-NavButton:hover {
|
|
245
|
+
opacity: 0.8;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.DayPicker-NavButton--prev {
|
|
249
|
+
//left: 2px;
|
|
250
|
+
background-image: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 9L1 5L5 1' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.DayPicker-NavButton--next {
|
|
254
|
+
//right: 2px;
|
|
255
|
+
background-image: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L1 9' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.DayPicker-NavButton--interactionDisabled {
|
|
259
|
+
display: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.DayPicker-Caption {
|
|
263
|
+
display: table-caption;
|
|
264
|
+
width: 100%;
|
|
265
|
+
height: 46px;
|
|
266
|
+
padding: 0 32px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.DayPicker-Caption select {
|
|
270
|
+
font-size: 16px;
|
|
271
|
+
font-weight: 600;
|
|
272
|
+
line-height: 24px;
|
|
273
|
+
text-align: left;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.DayPicker-Weekdays {
|
|
277
|
+
display: table-header-group;
|
|
278
|
+
margin-top: 1em;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.DayPicker-WeekdaysRow {
|
|
282
|
+
display: table-row;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.DayPicker-Weekday {
|
|
286
|
+
display: table-cell;
|
|
287
|
+
padding: 0.5em;
|
|
288
|
+
color: #8b9898;
|
|
289
|
+
font-size: 0.875em;
|
|
290
|
+
text-align: center;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.DayPicker-Weekday abbr[title] {
|
|
294
|
+
border-bottom: none;
|
|
295
|
+
text-decoration: none;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.DayPicker-Body {
|
|
299
|
+
display: table-row-group;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.DayPicker-Week {
|
|
303
|
+
display: table-row;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.DayPicker-Day {
|
|
307
|
+
display: table-cell;
|
|
308
|
+
|
|
309
|
+
width: 40px;
|
|
310
|
+
height: 40px;
|
|
311
|
+
border-radius: 50%;
|
|
312
|
+
cursor: pointer;
|
|
313
|
+
text-align: center;
|
|
314
|
+
vertical-align: middle;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.DayPicker-WeekNumber {
|
|
318
|
+
display: table-cell;
|
|
319
|
+
min-width: 1em;
|
|
320
|
+
padding: 0.5em;
|
|
321
|
+
border-right: 1px solid #eaecec;
|
|
322
|
+
color: #8b9898;
|
|
323
|
+
cursor: pointer;
|
|
324
|
+
font-size: 0.75em;
|
|
325
|
+
text-align: right;
|
|
326
|
+
vertical-align: middle;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.DayPicker--interactionDisabled .DayPicker-Day {
|
|
330
|
+
cursor: default;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.DayPicker-Footer {
|
|
334
|
+
padding-top: 0.5em;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.DayPicker-TodayButton {
|
|
338
|
+
border: none;
|
|
339
|
+
background-color: transparent;
|
|
340
|
+
background-image: none;
|
|
341
|
+
box-shadow: none;
|
|
342
|
+
color: #4a90e2;
|
|
343
|
+
cursor: pointer;
|
|
344
|
+
font-size: 0.875em;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* Default modifiers */
|
|
348
|
+
|
|
349
|
+
.DayPicker-Day--today {
|
|
350
|
+
color: #d0021b;
|
|
351
|
+
font-weight: 700;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.DayPicker-Day--outside {
|
|
355
|
+
color: #8b9898;
|
|
356
|
+
cursor: default;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.DayPicker-Day--disabled {
|
|
360
|
+
color: #dce0e0;
|
|
361
|
+
cursor: default;
|
|
362
|
+
/* background-color: #eff1f1; */
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* Example modifiers */
|
|
366
|
+
|
|
367
|
+
.DayPicker-Day--sunday {
|
|
368
|
+
background-color: #f7f8f8;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.DayPicker-Day--sunday:not(.DayPicker-Day--today) {
|
|
372
|
+
color: #dce0e0;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
|
|
376
|
+
.DayPicker-Day--outside
|
|
377
|
+
) {
|
|
378
|
+
position: relative;
|
|
379
|
+
|
|
380
|
+
background-color: ${e=>e.theme.colors.primaryBase};
|
|
381
|
+
color: #f0f8ff;
|
|
382
|
+
font-weight: ${e=>e.theme.sizes.fwBold};
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
|
|
386
|
+
.DayPicker-Day--outside
|
|
387
|
+
):hover {
|
|
388
|
+
background-color: #51a0fa;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.DayPicker:not(.DayPicker--interactionDisabled)
|
|
392
|
+
.DayPicker-Day:not(.DayPicker-Day--disabled):not(
|
|
393
|
+
.DayPicker-Day--selected
|
|
394
|
+
):not(.DayPicker-Day--outside):hover {
|
|
395
|
+
background-color: #f0f8ff;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/* DayPickerInput */
|
|
399
|
+
|
|
400
|
+
.DayPickerInput {
|
|
401
|
+
display: inline-block;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.DayPickerInput-OverlayWrapper {
|
|
405
|
+
position: relative;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.DayPickerInput-Overlay {
|
|
409
|
+
position: absolute;
|
|
410
|
+
z-index: 1;
|
|
411
|
+
left: 0;
|
|
412
|
+
|
|
413
|
+
background: white;
|
|
414
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
|
|
415
|
+
}
|
|
416
|
+
`,_a=Ue.form`
|
|
417
|
+
display: flex;
|
|
418
|
+
width: 100%;
|
|
419
|
+
|
|
420
|
+
height: 46px;
|
|
421
|
+
align-items: center;
|
|
422
|
+
justify-content: space-between;
|
|
423
|
+
& > :first-child {
|
|
424
|
+
margin-right: 10px;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
& * {
|
|
428
|
+
height: 46px;
|
|
429
|
+
padding: 10px 10px;
|
|
430
|
+
background: ${e=>e.theme.colors.neutral100};
|
|
431
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
432
|
+
}
|
|
433
|
+
`,Fa=({alignRight:i=!0,placeholder:l,displayDateFormat:r,onChange:o,customInput:s,pickedDate:c,className:d,isStatic:m,disabledDays:p,modifiers:g,UnHideOnClickOutside:u,initialMonth:h,locale:b="en-PH"})=>{const v=n(!1),y=et,[f,x]=t(h||new Date),w=n(null),E=n(null),k=ja[b],C=e=>{u||w.current&&w.current.contains(e.target)||E.current&&E.current.hideDayPicker()},N=(new Date).getFullYear(),B=new Date(N-150,0),D=new Date(N+1,0),$=({date:t,onChange:a,monthLabels:n})=>{const i=[];for(let e=D.getFullYear();e>=B.getFullYear();e-=1)i.push(e);const l=function(e){const{year:t,month:n}=e.target.form;a(new Date(t.value,n.value))};return e.createElement("div",{className:"DayPicker-Caption"},e.createElement(_a,null,e.createElement("select",{name:"month",onChange:l,value:t.getMonth()},n.map(((t,a)=>e.createElement("option",{key:t,value:a},t)))),e.createElement("select",{name:"year",onChange:l,value:t.getFullYear()},i.map((t=>e.createElement("option",{key:t,value:t},t))))))};return a((()=>(document.addEventListener("mousedown",C,{passive:!0}),()=>{document.removeEventListener("mousedown",C,!1)})),[]),e.createElement(Oa,{className:d,"data-align-right":i,ref:w,"data-is-static":m||void 0},e.createElement(Nt,{ref:E,inputProps:{readOnly:!0},keepFocus:!1,classNames:{container:"pickerContainer",overlayWrapper:"pickerOverlayWrapper",overlay:"pickerOverlay"},component:s&&e.forwardRef(((t,a)=>e.createElement(s,Object.assign({},t)))),onDayPickerHide:()=>{v.current=!1},onDayPickerShow:()=>{v.current=!0},dayPickerProps:{month:f,className:"picker",selectedDays:c,canChangeMonth:!0,enableOutsideDaysClick:!m,firstDayOfWeek:1,captionElement:({date:t,localeUtils:a})=>{const n=null==a?void 0:a.getMonths();return e.createElement($,{date:t,monthLabels:k||n,onChange:x})},disabledDays:p||void 0,modifiers:g},format:r||"yyyy-MM-dd",formatDate:(e,t)=>y(e,t),hideOnDayClick:!m,placeholder:l||"",onDayChange:e=>{var t;t=e,E.current&&!m&&E.current.hideDayPicker(),o&&o(t)},showOverlay:m}))},Ha=Ue.div`
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
--font-weight-lg: ${e=>e.theme.sizes.fwBold};
|
|
437
|
+
--font-weight-md: ${e=>e.theme.sizes.fwRegular};
|
|
438
|
+
--font-weight-sm: ${e=>e.theme.sizes.fwRegular};
|
|
439
|
+
|
|
440
|
+
&[data-icon-position='left'] {
|
|
441
|
+
& > *:first-child {
|
|
442
|
+
margin-right: 8px;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
& > *:last-child {
|
|
446
|
+
width: calc(100% - 24px);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
&[data-icon-position='right'] {
|
|
450
|
+
& > *:first-child {
|
|
451
|
+
width: calc(100% - 24px);
|
|
452
|
+
}
|
|
453
|
+
& > *:last-child {
|
|
454
|
+
margin-left: 8px;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
${q.mbDown} {
|
|
459
|
+
&[data-size='lg'] {
|
|
460
|
+
font-size: 16px;
|
|
461
|
+
line-height: 24px;
|
|
462
|
+
font-weight: var(--font-weight-lg);
|
|
463
|
+
}
|
|
464
|
+
&[data-size='md'] {
|
|
465
|
+
font-size: 14px;
|
|
466
|
+
line-height: 22px;
|
|
467
|
+
font-weight: var(--font-weight-md);
|
|
468
|
+
}
|
|
469
|
+
&[data-size='sm'] {
|
|
470
|
+
font-size: 13px;
|
|
471
|
+
line-height: 20px;
|
|
472
|
+
font-weight: var(----font-weight-sm);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
`,Ra=({size:t,iconPosition:a,className:n,children:i,icon:l})=>e.createElement(Ha,{className:n,"data-size":t,"data-icon-position":a},"left"===a&&l,i,"right"===a&&l),Ua=Ue.div`
|
|
476
|
+
position: relative;
|
|
477
|
+
width: 100%;
|
|
478
|
+
|
|
479
|
+
& div[role='slider'] {
|
|
480
|
+
-webkit-text-size-adjust: none;
|
|
481
|
+
-webkit-user-select: none;
|
|
482
|
+
&:focus {
|
|
483
|
+
outline: none;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
`,Wa=Ue.div`
|
|
487
|
+
position: absolute;
|
|
488
|
+
top: 19px;
|
|
489
|
+
width: 24px;
|
|
490
|
+
height: 24px;
|
|
491
|
+
color: ${e=>e.theme.colors.white};
|
|
492
|
+
border: 2px solid ${e=>e.theme.colors.white};
|
|
493
|
+
border-radius: 50%;
|
|
494
|
+
transform: translateY(-50%) translateX(-50%);
|
|
495
|
+
display: flex;
|
|
496
|
+
align-items: center;
|
|
497
|
+
justify-content: center;
|
|
498
|
+
cursor: pointer;
|
|
499
|
+
|
|
500
|
+
background-color: ${e=>e.theme.colors.white};
|
|
501
|
+
color: ${e=>e.theme.colors.gray300};
|
|
502
|
+
border: 1px solid ${e=>e.theme.colors.gray300};
|
|
503
|
+
|
|
504
|
+
&[data-is-active='true'] {
|
|
505
|
+
background-color: ${e=>e.theme.colors.primaryBase};
|
|
506
|
+
color: ${e=>e.theme.colors.white};
|
|
507
|
+
border: none;
|
|
508
|
+
}
|
|
509
|
+
`,Va=Ue.div`
|
|
510
|
+
display: flex;
|
|
511
|
+
width: 100%;
|
|
512
|
+
height: 36px;
|
|
513
|
+
|
|
514
|
+
&[data-track-type='detail'] {
|
|
515
|
+
margin-top: 0;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
&[data-track-type='detail'][data-step-passed='true'] > div {
|
|
519
|
+
border: 1px solid ${e=>e.theme.colors.primaryBase};
|
|
520
|
+
height: 0px;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
&[data-track-type='detail'] > div {
|
|
524
|
+
border: 1px solid ${e=>e.theme.colors.gray200};
|
|
525
|
+
height: 0px;
|
|
526
|
+
}
|
|
527
|
+
`,Ga=Ue.div`
|
|
528
|
+
width: 100%;
|
|
529
|
+
height: 5px;
|
|
530
|
+
align-self: center;
|
|
531
|
+
border-radius: 4px;
|
|
532
|
+
background-color: ${e=>e.theme.colors.gray200};
|
|
533
|
+
`,Za=Ue.div`
|
|
534
|
+
position: absolute;
|
|
535
|
+
top: 32px;
|
|
536
|
+
min-width: 100px;
|
|
537
|
+
text-align: center;
|
|
538
|
+
color: ${e=>e.theme.colors.gray500};
|
|
539
|
+
font-size: ${e=>e.theme.sizes.fsCaption2};
|
|
540
|
+
font-weight: ${e=>e.theme.sizes.fwBold};
|
|
541
|
+
|
|
542
|
+
&[data-step-passed='true'] {
|
|
543
|
+
color: ${e=>e.theme.colors.gray800};
|
|
544
|
+
}
|
|
545
|
+
`,qa=Ue.div`
|
|
546
|
+
display: flex;
|
|
547
|
+
align-items: center;
|
|
548
|
+
`,Ya=Ue.div`
|
|
549
|
+
display: flex;
|
|
550
|
+
align-items: center;
|
|
551
|
+
font-size: ${e=>e.theme.sizes.fsCaption2};
|
|
552
|
+
font-weight: ${e=>e.theme.sizes.fwBold};
|
|
553
|
+
color: ${e=>e.theme.colors.gray500};
|
|
554
|
+
cursor: pointer;
|
|
555
|
+
|
|
556
|
+
& > svg {
|
|
557
|
+
height: 10px;
|
|
558
|
+
width: 10px;
|
|
559
|
+
margin: 0 14px;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
& > svg > path {
|
|
563
|
+
stroke: ${e=>e.theme.colors.gray500};
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
&[data-selected='true'] {
|
|
567
|
+
color: ${e=>e.theme.colors.primaryBase};
|
|
568
|
+
}
|
|
569
|
+
`,Xa=Ue.div`
|
|
570
|
+
position: absolute;
|
|
571
|
+
left: 0;
|
|
572
|
+
top: 19px;
|
|
573
|
+
height: 24px;
|
|
574
|
+
cursor: pointer;
|
|
575
|
+
|
|
576
|
+
transform: translateY(-50%);
|
|
577
|
+
display: flex;
|
|
578
|
+
align-items: center;
|
|
579
|
+
|
|
580
|
+
padding: 8px;
|
|
581
|
+
background-color: ${e=>e.theme.colors.white};
|
|
582
|
+
`,Ka=Ue.div`
|
|
583
|
+
min-width: 24px;
|
|
584
|
+
height: 24px;
|
|
585
|
+
border: 2px solid ${e=>e.theme.colors.white};
|
|
586
|
+
border-radius: 50%;
|
|
587
|
+
margin-right: 8px;
|
|
588
|
+
display: flex;
|
|
589
|
+
align-items: center;
|
|
590
|
+
justify-content: center;
|
|
591
|
+
cursor: pointer;
|
|
592
|
+
|
|
593
|
+
background-color: ${e=>e.theme.colors.white};
|
|
594
|
+
color: ${e=>e.theme.colors.gray300};
|
|
595
|
+
border: 1px solid ${e=>e.theme.colors.gray300};
|
|
596
|
+
|
|
597
|
+
&[data-is-active='true'] {
|
|
598
|
+
border: none;
|
|
599
|
+
background-color: ${e=>e.theme.colors.primaryBase};
|
|
600
|
+
color: ${e=>e.theme.colors.white};
|
|
601
|
+
}
|
|
602
|
+
`,Ja=Ue.div`
|
|
603
|
+
display: flex;
|
|
604
|
+
align-items: center;
|
|
605
|
+
justify-content: center;
|
|
606
|
+
|
|
607
|
+
& > svg {
|
|
608
|
+
height: 20px;
|
|
609
|
+
width: 20px;
|
|
610
|
+
margin-right: 8px;
|
|
611
|
+
|
|
612
|
+
& > path {
|
|
613
|
+
stroke: ${e=>e.theme.colors.gray500};
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
`,Qa=Ue.div`
|
|
617
|
+
color: ${e=>e.theme.colors.gray400};
|
|
618
|
+
font-size: ${e=>e.theme.sizes.fsCaption2};
|
|
619
|
+
font-weight: ${e=>e.theme.sizes.fwBold};
|
|
620
|
+
margin-right: 8px;
|
|
621
|
+
flex: 0 0 auto;
|
|
622
|
+
|
|
623
|
+
&[data-step-passed='true'] {
|
|
624
|
+
color: ${e=>e.theme.colors.gray800};
|
|
625
|
+
}
|
|
626
|
+
`,en=Ue.div`
|
|
627
|
+
position: absolute;
|
|
628
|
+
top: 32px;
|
|
629
|
+
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
630
|
+
color: ${e=>e.theme.colors.gray400};
|
|
631
|
+
padding-right: 16px;
|
|
632
|
+
`,tn=({type:n,numberOfStep:i,activeStep:l,labelPrefix:r,detailSteps:s,className:c,onChange:d})=>{const[m,p]=t(0),g=t=>{var{trackClassName:a}=t,n=fe(t,["trackClassName"]);return e.createElement(Va,Object.assign({},n,{className:a}),e.createElement(Ga,null))},u=e.createElement(Ua,{className:c+" progress-bar"},e.createElement(g,null),e.createElement((({trackLength:t,activeStep:a,labelPrefix:n="Step",onChange:l})=>e.createElement(e.Fragment,null,Array.from({length:i},((e,t)=>t)).map(((r,o)=>e.createElement(Wa,{"data-is-active":o===a,"data-label":o,style:{left:o*t/(i-1)},onClick:()=>{l&&l(o)},key:o},o+1,e.createElement(Za,{"data-step-passed":o<=a},n+" "+(o+1))))))),{trackLength:m,activeStep:l,labelPrefix:r,onChange:d})),h=e.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 5.5 9.5"},e.createElement("title",null,"chevron-right"),e.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),b=e.createElement(qa,null,s&&Array.from({length:s.length},((e,t)=>t)).map(((t,a)=>{var n;return e.createElement(Ya,{key:a,"data-selected":a===l,onClick:()=>{d&&d(a)}},null===(n=s[a])||void 0===n?void 0:n.text," ",a<s.length-1&&h)}))),v=e.createElement(Ua,{className:c+" progress-bar"},e.createElement((({detailSteps:t,activeStep:a,onChange:n})=>e.createElement(e.Fragment,null,Array.from({length:t.length},((e,t)=>t)).map(((i,l)=>e.createElement(Xa,{key:l,style:{left:100/t.length*l+"%",width:100/t.length+"%"},onClick:()=>{n&&n(l)}},t[l].icon?e.createElement(Ja,{onClick:()=>{n&&n(l)}},t[l].icon):e.createElement(Ka,{"data-is-active":l===a,"data-label":i,onClick:()=>{n&&n(l)},key:l},l+1),e.createElement(Qa,{"data-step-passed":l<a+1},t[l].text,e.createElement(en,null,t[l].description)),l<t.length-1&&e.createElement(g,{"data-step-passed":l<a,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:l,detailSteps:s,onChange:d})),y=o(Ye((()=>{const e=document.querySelector(".progress-bar");e&&p(e.offsetWidth)}),1e3),[]);return a((()=>{const e=document.querySelector(".progress-bar");return p(null==e?void 0:e.offsetWidth),window.addEventListener("resize",y,{passive:!0}),()=>{window.removeEventListener("resize",y)}}),[]),"step-track"===n&&u||"breadcrumb"===n&&b||"detail-track"===n&&v},an=e.forwardRef((({id:a,value:n,options:i,className:l,isDisabled:r,size:o="small",direction:c="vertical",onChange:d,dataEventCategory:m,dataEventAction:p,dataEventLabel:g},u)=>{const[h,b]=t(n);s(u,(()=>({reset(){b(n)}})));const v="small"===o?"md":"lg",y="vertical"===c?$e:Be;return e.createElement(X.Group,{name:a,className:l,size:v,value:String(h),defaultValue:n,onChange:e=>{b(e),null==d||d(e)}},e.createElement(y,{spacing:"xl"},i.map((t=>e.createElement(X,{key:t.value,value:t.value,label:t.label,disabled:r,"data-event-category":m,"data-event-action":p,"data-event-label":g})))))})),nn=Ue.div`
|
|
633
|
+
--menu-width: 240px;
|
|
634
|
+
--menu-spacing: 28px 16px;
|
|
635
|
+
width: var(--menu-width);
|
|
636
|
+
height: 100vh;
|
|
637
|
+
padding: var(--menu-spacing);
|
|
638
|
+
background-color: ${e=>e.theme.colors.neutral50};
|
|
639
|
+
transition: ease-in-out 0.5s;
|
|
640
|
+
|
|
641
|
+
&[data-is-collapsed] {
|
|
642
|
+
--menu-width: 64px;
|
|
643
|
+
--menu-spacing: 28px 8px;
|
|
644
|
+
}
|
|
645
|
+
`,ln=Ue.div`
|
|
646
|
+
display: flex;
|
|
647
|
+
align-items: baseline;
|
|
648
|
+
justify-content: space-between;
|
|
649
|
+
|
|
650
|
+
svg {
|
|
651
|
+
transition: 0.4s ease-in-out;
|
|
652
|
+
}
|
|
653
|
+
`,rn=Ue.div`
|
|
654
|
+
cursor: pointer;
|
|
655
|
+
&[data-is-collapsed] {
|
|
656
|
+
transform: rotate(180deg);
|
|
657
|
+
}
|
|
658
|
+
`,on=Ue.figure`
|
|
659
|
+
display: flex;
|
|
660
|
+
|
|
661
|
+
> img,
|
|
662
|
+
svg,
|
|
663
|
+
picture {
|
|
664
|
+
width: 40px;
|
|
665
|
+
height: 40px;
|
|
666
|
+
margin-right: 1rem;
|
|
667
|
+
border-radius: 6px;
|
|
668
|
+
object-fit: cover;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
> figcaption {
|
|
672
|
+
p + p {
|
|
673
|
+
margin-top: 2px;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
`,sn=({name:t,description:a,image:n,isDescriptionHidden:i})=>e.createElement(on,null,n,!i&&e.createElement("figcaption",null,e.createElement(p,{size:"p4",weight:"bold"},t),e.createElement(p,{size:"p4"},a))),cn=Ue.div`
|
|
677
|
+
display: flex;
|
|
678
|
+
align-items: center;
|
|
679
|
+
margin-top: 24px;
|
|
680
|
+
margin-bottom: 36px;
|
|
681
|
+
|
|
682
|
+
figcaption {
|
|
683
|
+
white-space: nowrap;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
&[data-is-collapsed='true'] {
|
|
687
|
+
img {
|
|
688
|
+
max-width: 2rem;
|
|
689
|
+
max-height: 2rem;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
`,dn=Ue.div`
|
|
693
|
+
display: flex;
|
|
694
|
+
align-items: center;
|
|
695
|
+
padding: 9px 21px;
|
|
696
|
+
margin-bottom: 4px;
|
|
697
|
+
border-radius: 6px;
|
|
698
|
+
|
|
699
|
+
&:not([data-is-link-active]) {
|
|
700
|
+
cursor: pointer;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
p {
|
|
704
|
+
margin-left: 12px;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
&[data-is-link-active] {
|
|
708
|
+
background: ${e=>e.theme.colors.primaryBase};
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
&[data-is-link-collapsed] {
|
|
712
|
+
justify-content: center;
|
|
713
|
+
margin-right: -14px;
|
|
714
|
+
margin-left: -14px;
|
|
715
|
+
}
|
|
716
|
+
`;var mn=Object.freeze({__proto__:null,SideMenu:({isCollapsed:t,className:a,style:n,children:i})=>e.createElement(nn,{style:n,className:a,"data-is-collapsed":t||void 0},i),SideHeader:({isCollapsed:t,defaultLogo:a,onBackClick:n,customIcon:i})=>e.createElement(ln,null,e.createElement(Xe,{type:t?"logomark":a||"hellocare",customSize:{width:t?"24px":"77px",height:"24px"}}),e.createElement(rn,{"data-is-collapsed":t||void 0,onClick:n},i||e.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 20 20",width:"20px",height:"20px"},e.createElement("path",{d:"M10 .75A9.25 9.25 0 1019.25 10 9.25 9.25 0 0010 .75z",fill:"none",stroke:"#d2d6dc",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),e.createElement("path",{d:"M11.44 6.53L8 10l3.48 3.47",fill:"none",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})))),UserInfo:({isCollapsed:t,userName:a,role:n,avatar:i})=>e.createElement(cn,{"data-is-collapsed":t||void 0},e.createElement(sn,{image:i,name:a,description:n,isDescriptionHidden:t})),MenuLink:({icon:t,isActive:a,children:n,isCollapsed:i,activeIcon:l,onLinkClick:r,textSize:o="base",textType:s="bold",textColorActive:c="#fff",textColor:d="#595959"})=>e.createElement(dn,{"data-is-link-active":a||void 0,onClick:r,"data-is-link-collapsed":i||void 0},a&&l?l:t,!i&&e.createElement(p,{size:o,weight:s,color:a?c:d},n))});const pn=Ue.div`
|
|
717
|
+
position: relative;
|
|
718
|
+
width: 100%;
|
|
719
|
+
> .container {
|
|
720
|
+
display: flex;
|
|
721
|
+
width: 100%;
|
|
722
|
+
-ms-overflow-style: none;
|
|
723
|
+
overflow-x: auto;
|
|
724
|
+
scrollbar-width: none;
|
|
725
|
+
|
|
726
|
+
&::-webkit-scrollbar {
|
|
727
|
+
display: none;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.section {
|
|
731
|
+
display: flex;
|
|
732
|
+
width: 100%;
|
|
733
|
+
flex-direction: column;
|
|
734
|
+
flex-shrink: 0;
|
|
735
|
+
margin: auto;
|
|
736
|
+
|
|
737
|
+
> .grid-layout {
|
|
738
|
+
display: grid;
|
|
739
|
+
width: 100%;
|
|
740
|
+
grid-row-gap: 8px;
|
|
741
|
+
|
|
742
|
+
> .item-grid {
|
|
743
|
+
width: 100%;
|
|
744
|
+
|
|
745
|
+
> * {
|
|
746
|
+
margin: 0 auto;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.progress-bar {
|
|
752
|
+
display: grid;
|
|
753
|
+
height: 15px;
|
|
754
|
+
margin-bottom: 10px;
|
|
755
|
+
|
|
756
|
+
.items-progress {
|
|
757
|
+
position: relative;
|
|
758
|
+
display: flex;
|
|
759
|
+
width: 100%;
|
|
760
|
+
align-items: center;
|
|
761
|
+
justify-content: center;
|
|
762
|
+
|
|
763
|
+
.icon-status {
|
|
764
|
+
position: absolute;
|
|
765
|
+
display: flex;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.line {
|
|
769
|
+
width: 50%;
|
|
770
|
+
height: 2px;
|
|
771
|
+
background-color: ${e=>e.theme.colors.gray600};
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.bullet-nav {
|
|
779
|
+
position: absolute;
|
|
780
|
+
z-index: ${e=>e.theme.zIndexes.belowHeader};
|
|
781
|
+
bottom: -30px;
|
|
782
|
+
left: 50%;
|
|
783
|
+
display: flex;
|
|
784
|
+
transform: translate(-50%, -50%);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.bullet-nav__link {
|
|
788
|
+
display: block;
|
|
789
|
+
width: 8px;
|
|
790
|
+
height: 8px;
|
|
791
|
+
padding: 0;
|
|
792
|
+
margin-right: 8px;
|
|
793
|
+
backface-visibility: hidden;
|
|
794
|
+
background-color: #e4e8ec;
|
|
795
|
+
border-radius: 50%;
|
|
796
|
+
cursor: pointer;
|
|
797
|
+
transition: all 0.3s;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.bullet-nav__link.active[data-scheme='hellosites'] {
|
|
801
|
+
background-color: ${e=>e.theme.colors.primary600};
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.bullet-nav__link.active[data-scheme='marrybaby'] {
|
|
805
|
+
background-color: ${e=>e.theme.mbColors.pink};
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.arrow-left {
|
|
809
|
+
position: absolute;
|
|
810
|
+
z-index: 10;
|
|
811
|
+
top: 50%;
|
|
812
|
+
left: -35px;
|
|
813
|
+
transform: translateY(-50%);
|
|
814
|
+
&[data-event-category] > * {
|
|
815
|
+
pointer-events: none;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.arrow-right {
|
|
820
|
+
position: absolute;
|
|
821
|
+
z-index: 10;
|
|
822
|
+
top: 50%;
|
|
823
|
+
right: -35px;
|
|
824
|
+
transform: translateY(-50%);
|
|
825
|
+
&[data-event-category] > * {
|
|
826
|
+
pointer-events: none;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.image-gallery-wrapper {
|
|
831
|
+
display: flex;
|
|
832
|
+
position: relative;
|
|
833
|
+
margin-top: 16px;
|
|
834
|
+
justify-content: center;
|
|
835
|
+
gap: 16px;
|
|
836
|
+
.image-block {
|
|
837
|
+
display: block;
|
|
838
|
+
width: 100%;
|
|
839
|
+
border: 2px solid transparent;
|
|
840
|
+
border-radius: 4px;
|
|
841
|
+
}
|
|
842
|
+
.image-block.active {
|
|
843
|
+
border-color: ${e=>e.theme.colors.primaryBase};
|
|
844
|
+
}
|
|
845
|
+
img {
|
|
846
|
+
height: 40px;
|
|
847
|
+
width: auto;
|
|
848
|
+
max-width: 100%;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
`,gn=({status:t})=>"inActive"===t?e.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},e.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})):"active"===t?e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e.createElement("circle",{cx:"6",cy:"6",r:"4",fill:"#2D87F3"}),e.createElement("circle",{cx:"6",cy:"6",r:"5.5",stroke:"#2D87F3"})):"done"===t?e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e.createElement("path",{d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12Z",fill:"#00B16A"}),e.createElement("path",{d:"M8.76061 4.20029L4.80061 7.80029L3.00061 6.16392",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})):e.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none"},e.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})),un=({row:i=2,column:l=3,isDotsShown:r=!0,isImageGalleryShown:o=!1,mode:s="infinity",type:c="separated",distanceOverlappedLeft:d={amount:0,unit:"pixel"},children:m,className:p,isProgressShown:g=!1,statusChildren:u,isArrowShown:h=!1,classNameLeftArrow:b,classNameRightArrow:v,dataEventCategory:y,dataEventAction:f,dataEventLabel:x,onChangePage:w,page:E,customPageWidth:k,scheme:C="hellosites",arrowType:N="Discover"})=>{const B="number"==typeof E,[D,$]=t(B?E:0),P=[];e.Children.map(m,((t,a)=>{a%(i*l)==0&&P.push([]),P[P.length-1].push(e.cloneElement(t))}));const z=n(),S=n(0),L=e=>{if(!z.current)return;const{clientWidth:t}=z.current,a=k||t,n="intertwined"===c?"percentage"===d.unit?e*a+d.amount/100*a*e:e*a+d.amount*a*e:e*a;z.current.scrollTo({top:0,left:n,behavior:"smooth"}),S.current=e,$(e),w&&w(e)};a((()=>{"number"==typeof E&&(e=>{if(!z.current)return;const{clientWidth:t}=z.current,a=k||t,n="intertwined"===c?"percentage"===d.unit?e*a+d.amount/100*a*e:e*a+d.amount*a*e:e*a;z.current.scrollTo({top:0,left:n,behavior:"smooth"}),S.current=e,$(e)})(E)}),[E]);const M=e=>{if(!z.current)return;const{clientWidth:t}=z.current,a=k||t;let n;n=0===D?0:D*a,"forward"===e&&(n===a*(P.length-1)?($(P.length-1),n=a*(P.length-1),w&&w(P.length-1)):($(D+1),n+=a,w&&w(D+1)),z.current.scrollTo({top:0,left:n,behavior:"smooth"})),"back"===e&&(0===n?($(0),w&&w(0),n=0):($(D-1),w&&w(D-1),n-=a),z.current.scrollTo({top:0,left:n,behavior:"smooth"}))},T=Ye((()=>{if("infinity"===s){if(!z.current)return;const{clientWidth:e,scrollLeft:t}=z.current,a=k||e,n=Math.floor(t/a);$(n),w&&w(n)}}),400);return a((()=>{if("snapped"===s){let e,t,a,n,i,l,r=!1;const o=z.current,s=(l,s)=>{r=!0,a=!1,n=!1,e=l-o.offsetLeft,t=s-o.offsetTop,i=o.scrollLeft},m=e=>{s(e.pageX,e.pageY)},p=e=>{s(e.touches[0].pageX,e.touches[0].pageY)},g=()=>{if(r=!1,a=!1,n=!1,!z.current)return;const{clientWidth:e}=z.current,t=k||e,i="ltr"===l?0!==S.current?S.current-1:S.current:"rtl"===l&&S.current<P.length-1?S.current+1:S.current,o="intertwined"===c?"percentage"===d.unit?i*t+d.amount/100*t*i:i*t+d.amount*t*i:i*t;z.current.scrollTo({top:0,left:o,behavior:"smooth"}),l="none",S.current!==i&&(S.current=i,$(i),w&&w(i))},u=(s,c)=>{if(!r)return;const d=s-o.offsetLeft,m=c-o.offsetTop,p=d-e,g=m-t;a||n||!(g>20||g<-20)||(a=!0),!a&&(p>20||p<-20)&&(n=!0,o.scrollLeft=i-p,p>0&&(l="ltr"),p<0&&(l="rtl"),0===p&&(l="none"))},h=e=>{n&&e.preventDefault(),u(e.pageX,e.pageY)},b=e=>{n&&e.preventDefault(),u(e.touches[0].pageX,e.touches[0].pageY)};return null==o||o.addEventListener("mousedown",m,{passive:!0}),null==o||o.addEventListener("touchstart",p,{passive:!0}),window.addEventListener("mouseup",g,{passive:!0}),window.addEventListener("touchend",g,{passive:!0}),null==o||o.addEventListener("mousemove",h,{passive:!0}),null==o||o.addEventListener("touchmove",b,{passive:!0}),()=>{null==o||o.removeEventListener("mousedown",m),null==o||o.removeEventListener("touchstart",p),window.removeEventListener("mouseup",g),window.removeEventListener("touchend",g),null==o||o.removeEventListener("mousemove",h),null==o||o.removeEventListener("touchmove",b)}}}),[]),e.createElement(pn,{className:p,"data-row":i,onScroll:T},h&&D>0&&e.createElement("div",{className:`${b} arrow-left`,onClick:()=>M("back"),"data-event-category":y,"data-event-action":f,"data-event-label":x},"Care"===N?e.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},e.createElement("g",{filter:"url(#filter0_dd_12599_34420)"},e.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3V3C31.8368 3 39.0002 10.1634 39.0002 19V19C39.0002 27.8366 31.8368 35 23.0002 35V35C14.1637 35 7.00024 27.8366 7.00024 19V19Z",fill:"white"}),e.createElement("path",{d:"M20.9293 19L24.7503 15.179C25.1643 14.765 25.1643 14.093 24.7503 13.679C24.3363 13.265 23.6643 13.265 23.2503 13.679L18.6363 18.293C18.2453 18.684 18.2453 19.317 18.6363 19.707L23.2503 24.321C23.6643 24.735 24.3363 24.735 24.7503 24.321C25.1643 23.907 25.1643 23.235 24.7503 22.821L20.9293 19Z",fill:"#595959"}),e.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),e.createElement("defs",null,e.createElement("filter",{id:"filter0_dd_12599_34420",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-2",dy:"2"}),e.createElement("feGaussianBlur",{stdDeviation:"2.5"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),e.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12599_34420"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-1",dy:"1"}),e.createElement("feGaussianBlur",{stdDeviation:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12599_34420",result:"effect2_dropShadow_12599_34420"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12599_34420",result:"shape"})))):e.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},e.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M15.9997 11.1109L11.1108 15.9998L15.9997 20.8887",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),e.createElement("div",{ref:z,className:"container",style:{overflowX:"snapped"===s||h?"hidden":"scroll"}},P.map(((t,a)=>{let n=0;for(let e=0;e<a;e++)n+=P[e].length;return e.createElement("div",{key:a,className:"section",style:{marginLeft:"intertwined"===c&&0!==a?d.amount+""+("percentage"===d.unit?"%":"px"):"0px"}},1===i&&g&&e.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${l}, 1fr)`}},t.map(((i,l)=>{const r=n+l,o=u.find((e=>e.index===r));return e.createElement("div",{className:"items-progress",key:l},0===l&&0===a?e.createElement("div",{className:"line",style:{visibility:"hidden"}}):e.createElement("div",{className:"line"}),e.createElement("div",{className:"icon-status"},e.createElement(gn,{status:null==o?void 0:o.status})),a===P.length-1&&l===t.length-1?e.createElement("div",{className:"line",style:{visibility:"hidden"}}):e.createElement("div",{className:"line"}))}))),e.createElement("div",{className:"grid-layout","data-index":a,style:{gridTemplateColumns:`repeat(${l}, 1fr)`,gridTemplateRows:`repeat(${i}, 1fr)`}},t.map(((t,a)=>e.createElement(e.Fragment,{key:a},e.createElement("div",{className:"item-grid",key:a},t))))))}))),h&&D<P.length-1&&e.createElement("div",{className:`${v} arrow-right`,onClick:()=>M("forward"),"data-event-category":y,"data-event-action":f,"data-event-label":x}," ","Care"===N?e.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},e.createElement("g",{filter:"url(#filter0_dd_12597_34423)"},e.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3C31.8368 3 39.0002 10.1634 39.0002 19C39.0002 27.8366 31.8368 35 23.0002 35C14.1637 35 7.00024 27.8366 7.00024 19Z",fill:"white"}),e.createElement("path",{d:"M24.0712 19L20.2502 15.179C19.8362 14.765 19.8362 14.093 20.2502 13.679C20.6642 13.265 21.3362 13.265 21.7502 13.679L26.3642 18.293C26.7552 18.684 26.7552 19.317 26.3642 19.707L21.7502 24.321C21.3362 24.735 20.6642 24.735 20.2502 24.321C19.8362 23.907 19.8362 23.235 20.2502 22.821L24.0712 19Z",fill:"#595959"}),e.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),e.createElement("defs",null,e.createElement("filter",{id:"filter0_dd_12597_34423",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-2",dy:"2"}),e.createElement("feGaussianBlur",{stdDeviation:"2.5"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),e.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12597_34423"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dx:"-1",dy:"1"}),e.createElement("feGaussianBlur",{stdDeviation:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12597_34423",result:"effect2_dropShadow_12597_34423"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12597_34423",result:"shape"})))):e.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},e.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M15.9998 20.8891L20.8887 16.0002L15.9998 11.1113",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===C?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r&&e.createElement("ul",{className:"bullet-nav"},P.map(((t,a)=>e.createElement("li",{key:a,className:"bullet-nav__item "},e.createElement("p",{onClick:()=>L(a),className:`bullet-nav__link scroll ${D==a?"active":null}`,"data-scheme":C}))))),o&&e.createElement("div",{className:"image-gallery-wrapper","data-test":P.length},P.slice(0,3).map(((t,a)=>e.createElement("div",{className:`image-block ${D==a?"active":null}`,key:a,onClick:()=>L(a),"data-scheme":C},t)))))},hn=Ue.div`
|
|
852
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
853
|
+
${e=>e["data-is-in-card"]&&`\n padding: 12px; \n background-color: ${e["data-card-color"]};`}
|
|
854
|
+
`,bn=Ue.div`
|
|
855
|
+
width: 13px;
|
|
856
|
+
height: 13px;
|
|
857
|
+
margin-right: 10px;
|
|
858
|
+
background-color: ${e=>e["data-color"]};
|
|
859
|
+
border-radius: 50%;
|
|
860
|
+
`,vn=Ue.div`
|
|
861
|
+
display: flex;
|
|
862
|
+
align-items: center;
|
|
863
|
+
color: ${e=>e.theme.colors.gray800};
|
|
864
|
+
font-size: ${e=>e.theme.sizes.fsParagraph4};
|
|
865
|
+
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
866
|
+
`,yn=Ue.div`
|
|
867
|
+
display: flex;
|
|
868
|
+
align-items: center;
|
|
869
|
+
margin-top: 4px;
|
|
870
|
+
color: ${e=>e.theme.colors.gray800};
|
|
871
|
+
font-size: ${e=>e.theme.sizes.fsHeading2};
|
|
872
|
+
font-weight: ${e=>e.theme.sizes.fwSemiBold};
|
|
873
|
+
|
|
874
|
+
& > svg {
|
|
875
|
+
width: 24px;
|
|
876
|
+
height: 24px;
|
|
877
|
+
margin-right: 12px;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
&[data-size='small'] {
|
|
881
|
+
margin-left: 23px;
|
|
882
|
+
font-size: ${e=>e.theme.sizes.fsParagraph4};
|
|
883
|
+
font-weight: ${e=>e.theme.sizes.fwBold};
|
|
884
|
+
}
|
|
885
|
+
`,fn=({type:t,description:a,value:n,withIcon:i,isInACard:l,cardColor:r,className:o})=>e.createElement(hn,{className:o,"data-size":t,"data-is-in-card":"big"===t&&l,"data-card-color":r},e.createElement(vn,null,"small"===t&&e.createElement(bn,{"data-color":r}),a),e.createElement(yn,{"data-size":t},"small"!==t&&i,n)),xn=Ue.table`
|
|
886
|
+
--horizontal-spacing: ${e=>e.theme.horizontalPadding||"19px"};
|
|
887
|
+
--vertical-spacing: ${e=>e.theme.verticalPadding||"26px"};
|
|
888
|
+
width: 100%;
|
|
889
|
+
position: relative;
|
|
890
|
+
`,wn=Ue.td`
|
|
891
|
+
padding: var(--vertical-spacing) var(--horizontal-spacing);
|
|
892
|
+
vertical-align: middle;
|
|
893
|
+
|
|
894
|
+
&[data-text-align='left'] {
|
|
895
|
+
text-align: left;
|
|
896
|
+
}
|
|
897
|
+
&[data-text-align='right'] {
|
|
898
|
+
text-align: right;
|
|
899
|
+
}
|
|
900
|
+
&[data-text-align='center'] {
|
|
901
|
+
text-align: center;
|
|
902
|
+
}
|
|
903
|
+
`,En=Ue.tr`
|
|
904
|
+
border-bottom: 1px solid ${e=>e.theme.colors.gray100};
|
|
905
|
+
|
|
906
|
+
&[data-is-active='true'] {
|
|
907
|
+
background-color: ${e=>e.theme.colors.gray200};
|
|
908
|
+
}
|
|
909
|
+
`,kn=({children:t,className:a,style:n,isActive:i,onRowClicked:l,rowId:r})=>e.createElement(En,{className:a,"data-is-active":i,style:n,onClick:()=>{l&&l(r)}},t),Cn=Ue.thead`
|
|
910
|
+
th {
|
|
911
|
+
padding: var(--vertical-spacing) var(--horizontal-spacing);
|
|
912
|
+
text-align: left;
|
|
913
|
+
|
|
914
|
+
color: ${e=>e.theme.colors.gray500};
|
|
915
|
+
font-weight: ${e=>e.theme.sizes.fwBold};
|
|
916
|
+
}
|
|
917
|
+
&[data-is-sticky] {
|
|
918
|
+
th {
|
|
919
|
+
position: sticky;
|
|
920
|
+
top: 0;
|
|
921
|
+
background: white;
|
|
922
|
+
border-bottom: 2px solid
|
|
923
|
+
${e=>e.theme.colors.gray200};
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
`,Nn=Ue.tbody`
|
|
927
|
+
position: relative;
|
|
928
|
+
&[data-is-striped] {
|
|
929
|
+
> tr:nth-child(odd) {
|
|
930
|
+
background-color: ${e=>e.theme.colors.neutral50};
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
&[data-is-hoverable] {
|
|
934
|
+
> tr:hover {
|
|
935
|
+
background-color: ${e=>e.theme.colors.neutral100};
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
`;var Bn=Object.freeze({__proto__:null,Table:({children:t,className:a,style:n,horizontalPadding:i,verticalPadding:l})=>e.createElement(xn,{className:a,style:n,theme:{horizontalPadding:i,verticalPadding:l}},t),Cell:({children:t,className:a,style:n,textAlign:i,isTableHead:l})=>e.createElement(wn,{className:a,style:n,"data-text-align":i||"left",as:l?"th":"td"},t),Head:({isSticky:t,children:a,className:n,style:i})=>e.createElement(Cn,{className:n,"data-is-sticky":t||void 0,style:i},e.createElement(kn,null,a)),Row:kn,Body:({children:t,className:a,style:n,isHoverable:i,isStriped:l})=>e.createElement(Nn,{className:a,style:n,"data-is-striped":l||void 0,"data-is-hoverable":i||void 0},t)}),Dn=De((e=>{const t=Pe("itemLabel");return{root:{display:"inline-flex",maxWidth:"100%",borderBottom:`1px solid ${e.colors.neutral[1]}`,"-webkit-overflow-scrolling":"touch",overflowX:"auto",overflowY:"hidden","-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"},columnGap:e.spacing.lg},item:{display:"flex",alignItems:"center",paddingBottom:"4px","&:hover":{cursor:"pointer"},"&.active":{color:e.fn.primaryColor(),borderBottom:`3px solid ${e.fn.primaryColor()}`,bottom:"-1px",position:"relative",[`& .${t}`]:{}},"&[data-event-category] > *":{pointerEvents:"none"}},itemInner:{display:"flex",alignItems:"center"},label:{ref:t},icon:{marginRight:e.spacing.xs}}}));const $n=({style:n,initialTab:i,tabContent:l,onChange:r,className:o,dataEventCategory:s,dataEventAction:c,dataEventLabel:d,id:m,styles:g})=>{const{classes:u,cx:h,theme:b}=Dn(void 0,{name:"Tabs",styles:g}),[v,y]=t(i||0);return a((()=>{y(i)}),[i]),e.createElement("ul",{style:n,className:h(u.root,o),role:"tablist",id:m},l.map(((t,a)=>e.createElement("li",{className:`${u.item} ${v===a?"active":""} ${t.className}`,"aria-selected":v===a,role:"tab",onClick:()=>{y(a),r&&r(a)},onKeyDown:e=>{"Enter"===e.key&&(y(a),r&&r(a))},key:a,"data-event-category":t.dataEventCategory||s,"data-event-action":t.dataEventAction||c,"data-event-label":t.dataEventLabel||d,tabIndex:0,"data-testid":t.dataTestid},e.createElement("div",{className:u.itemInner},t.icon&&e.createElement("div",{className:u.icon},t.icon),e.createElement(p,{className:u.label,size:t.textSize||"sm",weight:t.textType||"bold",color:v===a?b.fn.primaryColor():t.textColor||b.colors.gray[4],dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name))))))},Pn=Ue.div`
|
|
939
|
+
padding: 1rem;
|
|
940
|
+
background: ${e=>e.theme.colors.neutral100};
|
|
941
|
+
.survey-inner-wrapper {
|
|
942
|
+
padding: 1.25rem 1rem 1.5rem;
|
|
943
|
+
background: ${e=>e.theme.colors.white};
|
|
944
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
945
|
+
.survey-header {
|
|
946
|
+
border-bottom: 1px solid #dbdfe5;
|
|
947
|
+
margin-bottom: 12px;
|
|
948
|
+
.survey-header-text {
|
|
949
|
+
color: ${e=>e.theme.colors.gray500};
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.survey-contact-submit {
|
|
954
|
+
width: 100%;
|
|
955
|
+
margin-bottom: 1.5rem;
|
|
956
|
+
}
|
|
957
|
+
.term-policy-container {
|
|
958
|
+
width: 70%;
|
|
959
|
+
min-width: 210px;
|
|
960
|
+
max-width: 100%;
|
|
961
|
+
margin: 0 auto 1.5rem;
|
|
962
|
+
text-align: center;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
.survey-progress-wrapper {
|
|
966
|
+
width: calc(100% + 2rem);
|
|
967
|
+
height: 4px;
|
|
968
|
+
margin-bottom: 1rem;
|
|
969
|
+
margin-left: -1rem;
|
|
970
|
+
background: #e4e8ec;
|
|
971
|
+
.survey-progress {
|
|
972
|
+
width: 100%;
|
|
973
|
+
height: 100%;
|
|
974
|
+
background: #00b16a;
|
|
975
|
+
transform: scaleX(0);
|
|
976
|
+
transform-origin: left;
|
|
977
|
+
transition: transform ease-in-out 0.3s;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.survey-button-wrapper {
|
|
982
|
+
display: flex;
|
|
983
|
+
justify-content: flex-end;
|
|
984
|
+
button {
|
|
985
|
+
justify-content: center;
|
|
986
|
+
&[data-has-icon='true'] {
|
|
987
|
+
svg {
|
|
988
|
+
width: 10px;
|
|
989
|
+
height: 10px;
|
|
990
|
+
margin-right: 10px;
|
|
991
|
+
vertical-align: unset;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
&.survey-next-button {
|
|
995
|
+
&[data-has-icon='true'] {
|
|
996
|
+
svg {
|
|
997
|
+
margin-right: 0;
|
|
998
|
+
margin-left: 10px;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
&[data-center='true'] {
|
|
1004
|
+
justify-content: center;
|
|
1005
|
+
button:only-child {
|
|
1006
|
+
width: 200px;
|
|
1007
|
+
max-width: 80%;
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
.survey-prev-button {
|
|
1011
|
+
margin-right: 0.5rem;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
`,zn=Ue.div`
|
|
1016
|
+
position: relative;
|
|
1017
|
+
display: flex;
|
|
1018
|
+
align-items: center;
|
|
1019
|
+
cursor: pointer;
|
|
1020
|
+
|
|
1021
|
+
input {
|
|
1022
|
+
position: relative;
|
|
1023
|
+
width: 20px;
|
|
1024
|
+
height: 20px;
|
|
1025
|
+
flex-shrink: 0;
|
|
1026
|
+
border: solid 1px ${e=>e.theme.colors.gray500};
|
|
1027
|
+
margin-right: 8px;
|
|
1028
|
+
border-radius: 100%;
|
|
1029
|
+
cursor: inherit;
|
|
1030
|
+
transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
|
|
1031
|
+
|
|
1032
|
+
&:hover,
|
|
1033
|
+
&:active {
|
|
1034
|
+
border-color: ${e=>e.theme.colors.primaryBase};
|
|
1035
|
+
box-shadow: 0 0 2px 2px
|
|
1036
|
+
${e=>e.theme.colors.primary600};
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
&:checked {
|
|
1040
|
+
display: flex;
|
|
1041
|
+
align-items: center;
|
|
1042
|
+
justify-content: center;
|
|
1043
|
+
border-color: ${e=>e.theme.colors.primaryBase};
|
|
1044
|
+
&:after {
|
|
1045
|
+
position: absolute;
|
|
1046
|
+
top: 50%;
|
|
1047
|
+
left: 50%;
|
|
1048
|
+
width: 14px;
|
|
1049
|
+
height: 14px;
|
|
1050
|
+
//left: 3px;
|
|
1051
|
+
//position: absolute;
|
|
1052
|
+
//top: 4px;
|
|
1053
|
+
background-color: ${e=>e.theme.colors.primaryBase};
|
|
1054
|
+
border-radius: 50%;
|
|
1055
|
+
content: '';
|
|
1056
|
+
transform: translate(-50%, -50%);
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
label {
|
|
1062
|
+
width: calc(100% - 24px);
|
|
1063
|
+
cursor: inherit;
|
|
1064
|
+
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
&[data-disabled='true'] {
|
|
1068
|
+
color: ${e=>e.theme.colors.gray300};
|
|
1069
|
+
cursor: not-allowed;
|
|
1070
|
+
input {
|
|
1071
|
+
border-color: ${e=>e.theme.colors.gray300};
|
|
1072
|
+
|
|
1073
|
+
&:hover {
|
|
1074
|
+
border-color: ${e=>e.theme.colors.gray300};
|
|
1075
|
+
box-shadow: none;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
padding: 16px 20px;
|
|
1081
|
+
border: 0.5px solid transparent;
|
|
1082
|
+
background: #fafafa;
|
|
1083
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1084
|
+
&[data-checked='true'] {
|
|
1085
|
+
border: 0.5px solid #2d87f3;
|
|
1086
|
+
background: #f7f9fc;
|
|
1087
|
+
}
|
|
1088
|
+
input {
|
|
1089
|
+
border: solid 2px #737373;
|
|
1090
|
+
margin-right: 0;
|
|
1091
|
+
background: white;
|
|
1092
|
+
&[type='checkbox'] {
|
|
1093
|
+
&:checked {
|
|
1094
|
+
border: 0;
|
|
1095
|
+
background: ${e=>e.theme.colors.primaryBase}
|
|
1096
|
+
url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z' fill='%232D87F3' stroke='%232D87F3' stroke-width='2'/%3E%3Cpath d='M15.5714 8L9.67857 14L7 11.2727' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
|
|
1097
|
+
no-repeat center center;
|
|
1098
|
+
&:after {
|
|
1099
|
+
display: none;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
&[data-has-image='true'] {
|
|
1106
|
+
position: relative;
|
|
1107
|
+
display: block;
|
|
1108
|
+
padding: 12px;
|
|
1109
|
+
input {
|
|
1110
|
+
position: absolute;
|
|
1111
|
+
top: 20px;
|
|
1112
|
+
right: 20px;
|
|
1113
|
+
}
|
|
1114
|
+
.choice-image-wrapper {
|
|
1115
|
+
position: relative;
|
|
1116
|
+
padding-top: 56.25%;
|
|
1117
|
+
margin-bottom: 0.75rem;
|
|
1118
|
+
img {
|
|
1119
|
+
position: absolute;
|
|
1120
|
+
top: 0;
|
|
1121
|
+
left: 0;
|
|
1122
|
+
width: 100%;
|
|
1123
|
+
height: 100%;
|
|
1124
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1125
|
+
object-fit: cover;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
`,Sn=Ue.div`
|
|
1130
|
+
position: relative;
|
|
1131
|
+
width: 100%;
|
|
1132
|
+
padding-top: min(400px, 100%);
|
|
1133
|
+
.survey-thankyou-wrapper-inner {
|
|
1134
|
+
position: absolute;
|
|
1135
|
+
top: 0;
|
|
1136
|
+
left: 0;
|
|
1137
|
+
display: flex;
|
|
1138
|
+
width: 100%;
|
|
1139
|
+
height: 100%;
|
|
1140
|
+
flex-direction: column;
|
|
1141
|
+
align-items: center;
|
|
1142
|
+
justify-content: center;
|
|
1143
|
+
.survey-thankyou-icon {
|
|
1144
|
+
width: 36%;
|
|
1145
|
+
max-height: 50%;
|
|
1146
|
+
margin-bottom: 1.5rem;
|
|
1147
|
+
}
|
|
1148
|
+
.survey-thankyou-title {
|
|
1149
|
+
margin-bottom: 1rem;
|
|
1150
|
+
text-align: center;
|
|
1151
|
+
}
|
|
1152
|
+
.survey-thankyou-subtitle {
|
|
1153
|
+
text-align: center;
|
|
1154
|
+
> * {
|
|
1155
|
+
text-align: center;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
`,Ln=Ue.div`
|
|
1160
|
+
.survey-question-text-wrapper {
|
|
1161
|
+
margin-bottom: 24px;
|
|
1162
|
+
.survey-question-title {
|
|
1163
|
+
margin-bottom: 4px;
|
|
1164
|
+
}
|
|
1165
|
+
.survey-question-subtitle,
|
|
1166
|
+
.survey-question-description {
|
|
1167
|
+
color: ${e=>e.theme.colors.gray500};
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
.survey-question-image {
|
|
1171
|
+
width: 100%;
|
|
1172
|
+
margin-bottom: 12px;
|
|
1173
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.survey-question-answer-wrapper {
|
|
1177
|
+
margin-bottom: 1.5rem;
|
|
1178
|
+
.survey-question-options-wrapper {
|
|
1179
|
+
display: grid;
|
|
1180
|
+
grid-gap: 0.5rem;
|
|
1181
|
+
grid-template-columns: 1fr;
|
|
1182
|
+
&[data-has-image='true'] {
|
|
1183
|
+
grid-gap: 0.8rem;
|
|
1184
|
+
grid-template-columns: 1fr 1fr;
|
|
1185
|
+
}
|
|
1186
|
+
.survey-question-option-item {
|
|
1187
|
+
label {
|
|
1188
|
+
color: #262626;
|
|
1189
|
+
font-size: 16px;
|
|
1190
|
+
font-style: normal;
|
|
1191
|
+
font-weight: normal;
|
|
1192
|
+
line-height: 24px;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
.survey-contact-input {
|
|
1197
|
+
margin-bottom: 1rem;
|
|
1198
|
+
&:first-child {
|
|
1199
|
+
margin-top: 1rem;
|
|
1200
|
+
}
|
|
1201
|
+
label {
|
|
1202
|
+
font-weight: 700;
|
|
1203
|
+
}
|
|
1204
|
+
input {
|
|
1205
|
+
margin-top: 6px;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
`,Mn=({size:t="small",label:a,name:n,checked:i,value:l,className:r,isDisabled:o=!1,onChange:s,hasImage:c,inputType:d,image:m})=>e.createElement(zn,{"data-disabled":o,className:r,"data-size":t,"data-checked":i,onClick:()=>{s(l)},"data-has-image":c},c&&e.createElement("div",{className:"choice-image-wrapper"},m&&e.createElement("img",{src:m,loading:"lazy"})),e.createElement("label",{onClick:e=>{e.preventDefault()},htmlFor:`${n}-${l}`},a),e.createElement("input",{type:d,checked:i,name:n,id:`${n}-${l}`,value:l,readOnly:!0})),Tn=({question:n,description:i,onOptionsChange:l,onTextOptionsChange:r,style:o,className:s})=>{const{type:c,title:d,subtitle:m,image:g,textOptions:u,options:h,name:b,is_multi_select:v}=n,y=!!(null==h?void 0:h.some((e=>e.image))),[f,x]=t([]),[w,E]=t((()=>(null==u?void 0:u.slice())||[]));return a((()=>{l&&l(f.slice())}),[!!l,f]),a((()=>{r&&r(w)}),[!!r,w]),e.createElement(Ln,{className:s,style:o},e.createElement("div",{className:"survey-question-text-wrapper"},d&&e.createElement(M,{"data-nosubtitle":!m,className:"survey-question-title",tag:"h4"},d),m&&e.createElement(p,{className:"survey-question-subtitle",size:"p2"},m),i&&e.createElement(p,{className:"survey-question-description",size:"p2"},i)),g&&e.createElement("img",{src:g,className:"survey-question-image",loading:"lazy"}),e.createElement("div",{className:"survey-question-answer-wrapper"},"radio"===c&&e.createElement("div",{"data-has-image":y,className:"survey-question-options-wrapper"},h.map((t=>{var a;return e.createElement(Mn,{inputType:"radio",label:t.label,name:b,key:`${b}-${t.value}`,checked:(null===(a=f[0])||void 0===a?void 0:a.value)===t.value,value:t.value,onChange:e=>{x([h.find((t=>t.value===e))])},className:"survey-question-option-item",image:t.image,hasImage:y})}))),"checkbox"===c&&e.createElement("div",{"data-has-image":y,className:"survey-question-options-wrapper"},h.map((t=>e.createElement(Mn,{inputType:"checkbox",label:t.label,name:b,key:`${b}-${t.value}`,checked:!!f.find((e=>e.value===t.value)),value:t.value,onChange:()=>{const e=f.findIndex((e=>e.value===t.value));x(e>=0?t=>(t.splice(e,1),t.slice()):v?e=>e.concat(t).slice():[t])},className:"survey-question-option-item survey-option-radio",image:t.image,hasImage:y})))),"textbox"===c&&w.map(((t,a)=>t.isTextArea?e.createElement(T,{key:a,placeholder:t.placeholder,height:"150px",value:t.value,onChange:e=>E((t=>(t[a].value=e,t.slice())))}):e.createElement(Je,{key:a,value:t.value,name:t.name,size:"md",className:"survey-contact-input",label:t.label,placeholder:t.placeholder,onChange:e=>{E((t=>(t[a].value=e,t.slice())))},type:t.type})))))};var In;!function(e){e[e.UNLIMITED=0]="UNLIMITED",e[e.EXACT_NUMBER=1]="EXACT_NUMBER",e[e.RANGE=2]="RANGE"}(In||(In={}));const An=({className:a,headerText:i,style:l,question:r,termAndPolicyText:o,prevText:s,nextText:c,isContactForm:d,isDisableNext:m,isDisablePrev:g,onPrevClick:u,onNextClick:h,isSubmitButton:b,isButtonCenter:v,progress:y,descriptionText:f})=>{var x,w,E;const[k,C]=t([]),{is_multi_select:N,multi_select_option:B,from:D,to:$}=r,P=null==r?void 0:r.type,z="checkbox"===P&&(null===(x=r.options)||void 0===x?void 0:x.length)&&(!k||0===k.length||N&&B===In.RANGE&&(k.length<D||k.length>$)||N&&B===In.EXACT_NUMBER&&k.length!==D)||"radio"===P&&(null===(w=r.options)||void 0===w?void 0:w.length)&&(!k||0===k.length)||"textbox"===P&&(null===(E=r.textOptions)||void 0===E?void 0:E.length)&&(k.length<r.textOptions.length||k.some((e=>!e.value))),S="number"==typeof y?y>1?1:y<0?0:Number(y.toFixed(2)):-1,L=n(null),M=()=>"textbox"!==P||L.current.reportValidity();return e.createElement(Pn,{className:a,style:l},e.createElement("div",{className:"survey-inner-wrapper"},i&&e.createElement("div",{className:"survey-header"},e.createElement(p,{className:"survey-header-text",size:"c2"},i)),e.createElement("form",{ref:L,onSubmit:e=>e.preventDefault()},e.createElement(Tn,{question:r,description:f,onOptionsChange:e=>{C(e)},onTextOptionsChange:e=>{C(e)}})),d&&c&&e.createElement(Ke,{className:"survey-contact-submit",size:"lg",isDisabled:m||z,onClick:()=>M()&&h&&h(k)},c),o&&e.createElement("div",{className:"term-policy-container"},o),"number"==typeof y&&e.createElement("div",{className:"survey-progress-wrapper"},e.createElement("div",{className:"survey-progress",style:{transform:`scaleX(${S})`}})),(s||c)&&e.createElement("div",{"data-center":v,className:"survey-button-wrapper"},s&&e.createElement(Ke,{className:"survey-prev-button",size:"lg",color:g?"primary":"secondary",isDisabled:g,icon:e.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e.createElement("path",{d:"M2.44677 4.99999L5.31252 2.13424C5.62302 1.82374 5.62302 1.31974 5.31252 1.00924C5.00202 0.698742 4.49802 0.698742 4.18752 1.00924L0.727018 4.46974C0.433768 4.76299 0.433768 5.23774 0.727018 5.53024L4.18752 8.99074C4.49802 9.30124 5.00202 9.30124 5.31252 8.99074C5.62302 8.68024 5.62302 8.17624 5.31252 7.86574L2.44677 4.99999Z",fill:g?"#fff":"#2D87F3"})),onClick:u},s),!d&&c&&e.createElement(Ke,{onClick:()=>M()&&h&&h(k),className:"survey-next-button",size:"lg",isDisabled:m||z},c," ",b?void 0:e.createElement("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e.createElement("path",{d:"M3.80322 5.19994L0.937465 2.33419C0.626965 2.02369 0.626965 1.51969 0.937465 1.20919C1.24796 0.898693 1.75196 0.898693 2.06246 1.20919L5.52297 4.66969C5.81622 4.96294 5.81622 5.43769 5.52297 5.73019L2.06246 9.19069C1.75196 9.50119 1.24796 9.50119 0.937465 9.19069C0.626965 8.88019 0.626965 8.37619 0.937465 8.06569L3.80322 5.19994Z",fill:"#ffffff"}))))))},jn=({thankyou:t,thankyouSubtitle:a,className:n,style:i})=>e.createElement(Pn,{className:n,style:i},e.createElement("div",{className:"survey-inner-wrapper"},e.createElement(Sn,null,e.createElement("div",{className:"survey-thankyou-wrapper-inner"},e.createElement("svg",{viewBox:"0 0 122 122",fill:"none",className:"survey-thankyou-icon"},e.createElement("path",{d:"M61.5 122c33.137 0 60-26.863 60-60S94.637 2 61.5 2s-60 26.863-60 60 26.863 60 60 60Z",fill:ye.colors.primary50}),e.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),e.createElement("path",{d:"M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z",fill:"#2C74DF"}),e.createElement("path",{d:"M74.4 15H39.863a5.364 5.364 0 0 0-5.363 5.363v52.214a5.364 5.364 0 0 0 5.363 5.363h43.273a5.364 5.364 0 0 0 5.363-5.363V21a6 6 0 0 0-6-6H74.4Z",fill:"#fff"}),e.createElement("path",{d:"M88.853 80.108H34.147a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074h54.706a4.055 4.055 0 0 1 4.087 4.074v10.65c0 2.27-1.81 4.074-4.087 4.074Z",fill:"#E4E8EC"}),e.createElement("path",{d:"M90.838 85.451H32.162a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074H90.78a4.055 4.055 0 0 1 4.087 4.074v10.65c.058 2.27-1.81 4.074-4.029 4.074Z",fill:"#fff"}),e.createElement("path",{d:"M103.748 75.492v30.263c0 1.92-1.576 3.492-3.503 3.492H23.003c-1.927 0-3.503-1.572-3.503-3.492V75.492c0-1.92 1.576-3.492 3.503-3.492h19.384c1.926 0 3.503 1.571 3.503 3.492v5.354c0 .35.233.582.584.582h30.3c.351 0 .585-.233.585-.582v-5.354c0-1.92 1.576-3.492 3.503-3.492h19.383c1.927 0 3.503 1.571 3.503 3.492Z",fill:"#45A4FF"}),e.createElement("path",{stroke:"#2C74DF",d:"M51.954 91.377v3.084c0 1.63 1.285 2.91 2.92 2.91h12.844c1.635 0 2.92-1.28 2.92-2.91v-3.084"}),e.createElement("path",{d:"M120.5 38.025c-2-.246-3.25 1.352-2.375 3.195l.25.737c.75 1.844-.375 3.441-2.375 3.195l-.75-.123c-2-.245-3.25 1.352-2.375 3.195l.375.738c.75 1.843-.375 3.44-2.375 3.195l-.75-.123c-1.5-.123-2.625.737-2.625 1.966",stroke:"#FE921D"}),e.createElement("path",{d:"M1.533 62c-.269 1.413 1.142 2.337 2.82 1.848l.672-.218c1.678-.543 3.089.38 2.82 1.848l-.134.544c-.269 1.413 1.141 2.337 2.82 1.848l.671-.218c1.68-.543 3.09.38 2.82 1.848l-.134.543c-.201 1.087.538 1.848 1.612 1.957M118 92a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM82 3.187l1.188 4.348 4.347-1.188L86.347 2 82 3.187Z",stroke:"#00B16A"}),e.createElement("path",{stroke:"#FE921D",d:"M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),e.createElement("path",{d:"M61.5 26.667c-7.364 0-13.333 5.97-13.333 13.333 0 7.364 5.969 13.333 13.333 13.333S74.833 47.364 74.833 40 68.864 26.667 61.5 26.667Zm7.61 10.276-9.334 9.333a1.33 1.33 0 0 1-1.885 0l-4-4a1.332 1.332 0 1 1 1.885-1.885l3.057 3.057 8.391-8.39a1.332 1.332 0 1 1 1.885 1.885Z",fill:"#00CB8A"})),t&&e.createElement(M,{className:"survey-thankyou-title",tag:"h3"},t),a&&e.createElement(p,{className:"survey-thankyou-subtitle",size:"p3"},a))))),On=200,_n=Ue.div``,Fn=Ue.div`
|
|
1210
|
+
width: 100vw;
|
|
1211
|
+
height: 100vh;
|
|
1212
|
+
position: fixed;
|
|
1213
|
+
bottom: 0;
|
|
1214
|
+
right: 0;
|
|
1215
|
+
background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
|
|
1216
|
+
opacity: 0.83;
|
|
1217
|
+
transition: display ${On}ms linear;
|
|
1218
|
+
|
|
1219
|
+
[data-floatmenu-open='true'] & {
|
|
1220
|
+
animation: showBackgroundPanel ${On}ms linear 0s normal forwards;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
[data-floatmenu-open='false'] & {
|
|
1224
|
+
animation: hideBackgroundPanel ${On}ms linear 0s normal forwards;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
@keyframes showBackgroundPanel {
|
|
1228
|
+
0% {
|
|
1229
|
+
opacity: 0;
|
|
1230
|
+
width: 100vw;
|
|
1231
|
+
height: 100vh;
|
|
1232
|
+
}
|
|
1233
|
+
100% {
|
|
1234
|
+
opacity: 0.83;
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
@keyframes hideBackgroundPanel {
|
|
1239
|
+
0% {
|
|
1240
|
+
width: 100vw;
|
|
1241
|
+
height: 100vh;
|
|
1242
|
+
}
|
|
1243
|
+
99% {
|
|
1244
|
+
width: 100vw;
|
|
1245
|
+
height: 100vh;
|
|
1246
|
+
}
|
|
1247
|
+
100% {
|
|
1248
|
+
opacity: 0;
|
|
1249
|
+
width: 0;
|
|
1250
|
+
height: 0;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
`,Hn=Ue.div`
|
|
1254
|
+
position: fixed;
|
|
1255
|
+
right: 16px;
|
|
1256
|
+
bottom: 40px;
|
|
1257
|
+
`,Rn=Ue.div`
|
|
1258
|
+
display: flex;
|
|
1259
|
+
flex-direction: column;
|
|
1260
|
+
gap: 16px;
|
|
1261
|
+
transition: all ${On}ms ease-in-out;
|
|
1262
|
+
position: fixed;
|
|
1263
|
+
bottom: 112px;
|
|
1264
|
+
right: 16px;
|
|
1265
|
+
|
|
1266
|
+
// scale
|
|
1267
|
+
[data-animation-type='scale'] & {
|
|
1268
|
+
transform-origin: 100% 100%;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
[data-animation-type='scale'][data-floatmenu-open='true'] & {
|
|
1272
|
+
transform: scale(1);
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
[data-animation-type='scale'][data-floatmenu-open='false'] & {
|
|
1276
|
+
transform: scale(0);
|
|
1277
|
+
bottom: 46px;
|
|
1278
|
+
right: 36px;
|
|
1279
|
+
}
|
|
1280
|
+
`,Un=Ue.div`
|
|
1281
|
+
border-radius: 50%;
|
|
1282
|
+
width: 56px;
|
|
1283
|
+
height: 56px;
|
|
1284
|
+
position: relative;
|
|
1285
|
+
cursor: pointer;
|
|
1286
|
+
margin-left: auto;
|
|
1287
|
+
transition: all 0.1s linear;
|
|
1288
|
+
-webkit-tap-highlight-color: transparent;
|
|
1289
|
+
[data-site-type='hb'] & {
|
|
1290
|
+
background-color: ${e=>e.theme.colors.primaryBase||e.theme.colors.primary};
|
|
1291
|
+
&:hover {
|
|
1292
|
+
background-color: ${e=>{var t,a;return e.theme.colors.primaryHover||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.blue_700)}};
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
[data-site-type='mb'] & {
|
|
1296
|
+
background-color: #2d87f3;
|
|
1297
|
+
&:hover {
|
|
1298
|
+
background-color: #2c74df;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
&:before {
|
|
1303
|
+
content: '';
|
|
1304
|
+
width: 2px;
|
|
1305
|
+
height: 20px;
|
|
1306
|
+
background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
|
|
1307
|
+
border-radius: 2px;
|
|
1308
|
+
position: absolute;
|
|
1309
|
+
top: 50%;
|
|
1310
|
+
left: 50%;
|
|
1311
|
+
transform: translate(-50%, -50%);
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
&:after {
|
|
1315
|
+
content: '';
|
|
1316
|
+
width: 20px;
|
|
1317
|
+
height: 2px;
|
|
1318
|
+
background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
|
|
1319
|
+
border-radius: 2px;
|
|
1320
|
+
position: absolute;
|
|
1321
|
+
top: 50%;
|
|
1322
|
+
left: 50%;
|
|
1323
|
+
transform: translate(-50%, -50%);
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
[data-floatmenu-open='true'] &:before,
|
|
1327
|
+
[data-floatmenu-open='true'] &:after {
|
|
1328
|
+
animation: toX ${On}ms linear 0s normal forwards;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
[data-floatmenu-open='false'] &:before,
|
|
1332
|
+
[data-floatmenu-open='false'] &:after {
|
|
1333
|
+
animation: toPlus ${On}ms linear 0s normal forwards;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
@keyframes toX {
|
|
1337
|
+
0% {
|
|
1338
|
+
transform: translate(-50%, -50%) rotateZ(0deg);
|
|
1339
|
+
}
|
|
1340
|
+
49% {
|
|
1341
|
+
transform: translate(-50%, -50%) rotateZ(0deg);
|
|
1342
|
+
}
|
|
1343
|
+
50% {
|
|
1344
|
+
width: 2px;
|
|
1345
|
+
height: 2px;
|
|
1346
|
+
transform: translate(-50%, -50%) rotateZ(45deg);
|
|
1347
|
+
}
|
|
1348
|
+
100% {
|
|
1349
|
+
transform: translate(-50%, -50%) rotateZ(45deg);
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
@keyframes toPlus {
|
|
1354
|
+
0% {
|
|
1355
|
+
transform: translate(-50%, -50%) rotateZ(45deg);
|
|
1356
|
+
}
|
|
1357
|
+
49% {
|
|
1358
|
+
transform: translate(-50%, -50%) rotateZ(45deg);
|
|
1359
|
+
}
|
|
1360
|
+
50% {
|
|
1361
|
+
width: 2px;
|
|
1362
|
+
height: 2px;
|
|
1363
|
+
transform: translate(-50%, -50%) rotateZ(0deg);
|
|
1364
|
+
}
|
|
1365
|
+
100% {
|
|
1366
|
+
transform: translate(-50%, -50%) rotateZ(0deg);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
`,Wn=Ue.div`
|
|
1370
|
+
display: flex;
|
|
1371
|
+
gap: 8px;
|
|
1372
|
+
align-items: center;
|
|
1373
|
+
justify-content: flex-end;
|
|
1374
|
+
|
|
1375
|
+
width: fit-content;
|
|
1376
|
+
margin-left: auto;
|
|
1377
|
+
|
|
1378
|
+
[data-floatmenu-open='true'] {
|
|
1379
|
+
cursor: pointer;
|
|
1380
|
+
}
|
|
1381
|
+
[data-floatmenu-open='false'] {
|
|
1382
|
+
pointer-events: none;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
[data-animation-type='zoom'] &,
|
|
1386
|
+
[data-animation-type='slide'] & {
|
|
1387
|
+
position: absolute;
|
|
1388
|
+
right: 0;
|
|
1389
|
+
width: max-content;
|
|
1390
|
+
}
|
|
1391
|
+
// slide
|
|
1392
|
+
[data-animation-type='slide'] & {
|
|
1393
|
+
transition: all ${On}ms ease-in;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
[data-animation-type='slide'][data-floatmenu-open='true'] & {
|
|
1397
|
+
animation: showItem ${On}ms;
|
|
1398
|
+
}
|
|
1399
|
+
[data-animation-type='slide'][data-floatmenu-open='false'] & {
|
|
1400
|
+
bottom: -64px !important;
|
|
1401
|
+
animation: hideItemOnZoom ${250}ms normal forwards;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
// zoom
|
|
1405
|
+
[data-animation-type='zoom'][data-floatmenu-open='false'] & {
|
|
1406
|
+
animation: hideItemOnZoom ${250}ms normal forwards;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
@keyframes showItem {
|
|
1410
|
+
0% {
|
|
1411
|
+
opacity: 0;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
100% {
|
|
1415
|
+
opacity: 1;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
@keyframes hideItemOnZoom {
|
|
1420
|
+
0% {
|
|
1421
|
+
transform: translateX(0);
|
|
1422
|
+
opacity: 1;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
99% {
|
|
1426
|
+
transform: translateX(0);
|
|
1427
|
+
opacity: 0.5;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
100% {
|
|
1431
|
+
transform: translateX(calc(100% + 16px));
|
|
1432
|
+
opacity: 0;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
`,Vn=Ue.div`
|
|
1436
|
+
font-size: 14px;
|
|
1437
|
+
|
|
1438
|
+
// zoom
|
|
1439
|
+
[data-animation-type='zoom'] & {
|
|
1440
|
+
transition: transform ${On}ms ease-in-out;
|
|
1441
|
+
transform-origin: 100% 0;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
[data-animation-type='zoom'][data-floatmenu-open='true'] & {
|
|
1445
|
+
transform: scale(1);
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
[data-animation-type='zoom'][data-floatmenu-open='false'] & {
|
|
1449
|
+
transform: scale(0);
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
// slide
|
|
1453
|
+
[data-animation-type='slide'] & {
|
|
1454
|
+
transition: opacity ${On}ms;
|
|
1455
|
+
}
|
|
1456
|
+
[data-animation-type='slide'][data-floatmenu-open='true'] & {
|
|
1457
|
+
opacity: 1;
|
|
1458
|
+
}
|
|
1459
|
+
[data-animation-type='slide'][data-floatmenu-open='false'] & {
|
|
1460
|
+
opacity: 0;
|
|
1461
|
+
}
|
|
1462
|
+
`,Gn=Ue.div`
|
|
1463
|
+
border-radius: 50%;
|
|
1464
|
+
box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06), 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
1465
|
+
width: 48px;
|
|
1466
|
+
height: 48px;
|
|
1467
|
+
display: flex;
|
|
1468
|
+
align-items: center;
|
|
1469
|
+
justify-content: center;
|
|
1470
|
+
background-color: ${e=>{var t,a;return e.theme.colors.white||(null===(a=null===(t=e.theme.colors)||void 0===t?void 0:t.palette)||void 0===a?void 0:a.white)}};
|
|
1471
|
+
|
|
1472
|
+
// zoom
|
|
1473
|
+
[data-animation-type='zoom'] & {
|
|
1474
|
+
transition: transform ${On}ms ease-in-out;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
[data-animation-type='zoom'][data-floatmenu-open='true'] & {
|
|
1478
|
+
transform: scale(1);
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
[data-animation-type='zoom'][data-floatmenu-open='false'] & {
|
|
1482
|
+
transform: scale(0);
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
> img {
|
|
1486
|
+
width: 24px;
|
|
1487
|
+
height: 24px;
|
|
1488
|
+
object-fit: contain;
|
|
1489
|
+
}
|
|
1490
|
+
`,Zn=({items:n,className:i,style:l,backgroundPanelStyle:r,isOpen:o,onOpen:s,onClose:c,disableBackdropClick:d,siteType:m="hb",animationType:p="zoom",zIndex:g=300})=>{const[u,h]=t(!!o);a((()=>{h(!!o)}),[o]);const b=()=>{h(!1),c&&c()};return e.createElement(_n,{style:l,className:i,"data-floatmenu-open":u,"data-site-type":m,"data-animation-type":p},e.createElement(Fn,{className:"float-button-group__panel",style:Object.assign({zIndex:g},r),onClick:d?void 0:b}),e.createElement(Hn,{className:"float-button-group___content",style:{zIndex:g}},e.createElement(Rn,null,n.map(((t,a)=>e.createElement(Wn,{className:`float-item-button-${a}`,style:Object.assign(Object.assign({},"zoom"===p&&{bottom:64*(n.length-1-a),transitionDelay:On/n.length*(u?n.length-1-a:a)+"ms"}),"slide"===p&&{bottom:64*(n.length-1-a),transitionDelay:On/n.length*(u?a:n.length-1-a)+"ms"}),key:a,onClick:()=>{t.onClick(),t.keepMenuOnClick||h(!1)}},e.createElement(Vn,{style:Object.assign({},"zoom"===p&&{transitionDelay:On/n.length*(u?n.length-1-a:a)+"ms"})},t.label),e.createElement(Gn,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===p||"slide"===p)&&{transitionDelay:On/n.length*(u?n.length-1-a:a)+"ms"})},t.icon))))),e.createElement(Un,{onClick:u?b:()=>{h(!0),s&&s()}})))},qn=Ue.div`
|
|
1491
|
+
padding: 16px;
|
|
1492
|
+
width: 375px;
|
|
1493
|
+
word-wrap: break-word;
|
|
1494
|
+
word-break: break-word;
|
|
1495
|
+
${q.mbDown} {
|
|
1496
|
+
width: 100%;
|
|
1497
|
+
}
|
|
1498
|
+
&[data-theme='helloSites'] {
|
|
1499
|
+
background: ${e=>e.theme.colors.secondaryBase};
|
|
1500
|
+
box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.1);
|
|
1501
|
+
}
|
|
1502
|
+
&[data-theme='marryBaby'] {
|
|
1503
|
+
border: none;
|
|
1504
|
+
background: ${e=>e.theme.mbColors.pink};
|
|
1505
|
+
border-radius: 12px 12px 0 0;
|
|
1506
|
+
}
|
|
1507
|
+
&[data-is-open='false'] {
|
|
1508
|
+
display: none;
|
|
1509
|
+
}
|
|
1510
|
+
&[data-default-position='true'] {
|
|
1511
|
+
position: fixed;
|
|
1512
|
+
z-index: 1000;
|
|
1513
|
+
bottom: 0;
|
|
1514
|
+
right: 0;
|
|
1515
|
+
${q.mbDown} {
|
|
1516
|
+
left: 0;
|
|
1517
|
+
right: unset;
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
`,Yn=Ue.p`
|
|
1521
|
+
position: relative;
|
|
1522
|
+
padding-left: 24px;
|
|
1523
|
+
color: ${e=>e.theme.colors.white};
|
|
1524
|
+
font-size: 14px;
|
|
1525
|
+
font-weight: 600;
|
|
1526
|
+
line-height: 22px;
|
|
1527
|
+
&[data-has-content='true'] {
|
|
1528
|
+
::before {
|
|
1529
|
+
position: absolute;
|
|
1530
|
+
top: 0;
|
|
1531
|
+
bottom: 0;
|
|
1532
|
+
left: 0;
|
|
1533
|
+
width: 16px;
|
|
1534
|
+
height: 16px;
|
|
1535
|
+
margin: auto 0;
|
|
1536
|
+
content: url("data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.00001 1.33331C4.32001 1.33331 1.33334 4.31998 1.33334 7.99998C1.33334 11.68 4.32001 14.6666 8.00001 14.6666C11.68 14.6666 14.6667 11.68 14.6667 7.99998C14.6667 4.31998 11.68 1.33331 8.00001 1.33331ZM8.00001 11.3333C7.63334 11.3333 7.33334 11.0333 7.33334 10.6666V7.99998C7.33334 7.63331 7.63334 7.33331 8.00001 7.33331C8.36668 7.33331 8.66668 7.63331 8.66668 7.99998V10.6666C8.66668 11.0333 8.36668 11.3333 8.00001 11.3333ZM7.33334 5.99998H8.66668V4.66665H7.33334V5.99998Z' fill='white'/%3e%3c/svg%3e");
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
`,Xn=Ue.p`
|
|
1540
|
+
margin-top: 2px;
|
|
1541
|
+
color: ${e=>e.theme.colors.white};
|
|
1542
|
+
font-size: 12px;
|
|
1543
|
+
font-weight: 400;
|
|
1544
|
+
line-height: 18px;
|
|
1545
|
+
a {
|
|
1546
|
+
color: ${e=>e.theme.colors.white};
|
|
1547
|
+
text-decoration: none;
|
|
1548
|
+
text-decoration-line: underline;
|
|
1549
|
+
}
|
|
1550
|
+
`,Kn=Ue.div`
|
|
1551
|
+
display: flex;
|
|
1552
|
+
align-items: center;
|
|
1553
|
+
margin-top: 8px;
|
|
1554
|
+
gap: 16px;
|
|
1555
|
+
`,Jn=Ue.div`
|
|
1556
|
+
padding: 7px 28px;
|
|
1557
|
+
background: ${e=>e.theme.colors.white};
|
|
1558
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1559
|
+
color: ${e=>e.theme.colors.secondaryBase};
|
|
1560
|
+
cursor: pointer;
|
|
1561
|
+
font-size: 12px;
|
|
1562
|
+
font-weight: 600;
|
|
1563
|
+
line-height: 18px;
|
|
1564
|
+
`,Qn=Ue.a`
|
|
1565
|
+
color: ${e=>e.theme.colors.white};
|
|
1566
|
+
font-size: 12px;
|
|
1567
|
+
font-weight: 600;
|
|
1568
|
+
line-height: 22px;
|
|
1569
|
+
text-decoration: none;
|
|
1570
|
+
text-decoration-line: underline;
|
|
1571
|
+
`,ei=({className:t,policiesUrl:a,onAcceptClick:n,translations:i={acceptButton:"Accept",policiesButton:"Our Policies"},title:l="",description:r="",theme:o="helloSites",isOpen:s=!0,useDefaultPosition:c=!0,trackingAttributes:d})=>e.createElement(qn,{className:t,"data-theme":o,"data-is-open":s,"data-default-position":c},e.createElement(Yn,{"data-has-content":!!l},l),e.createElement(Xn,{dangerouslySetInnerHTML:{__html:r}}),e.createElement(Kn,null,e.createElement(Jn,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:n,"data-event-category":null==d?void 0:d.dataEventCategory,"data-event-action":null==d?void 0:d.dataEventAction,"data-event-label":null==d?void 0:d.dataEventLabel},i.acceptButton),e.createElement(Qn,{href:a},i.policiesButton))),ti=We`
|
|
1572
|
+
from {
|
|
1573
|
+
transform: translateY(100%);
|
|
1574
|
+
visibility: visible;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
to {
|
|
1578
|
+
transform: translateY(0);
|
|
1579
|
+
}
|
|
1580
|
+
`,ai=We`
|
|
1581
|
+
from {
|
|
1582
|
+
transform: translate(0, 0);
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
to {
|
|
1586
|
+
visibility: hidden;
|
|
1587
|
+
transform: translate(0, 100%);
|
|
1588
|
+
}
|
|
1589
|
+
`,ni=Ue.div`
|
|
1590
|
+
cursor: pointer;
|
|
1591
|
+
display: flex;
|
|
1592
|
+
flex-direction: column;
|
|
1593
|
+
align-items: center;
|
|
1594
|
+
justify-items: center;
|
|
1595
|
+
gap: 4px;
|
|
1596
|
+
|
|
1597
|
+
.mobile-navigation-label {
|
|
1598
|
+
font-weight: 500;
|
|
1599
|
+
font-size: 10px;
|
|
1600
|
+
line-height: 16px;
|
|
1601
|
+
color: ${ye.colors.gray600};
|
|
1602
|
+
overflow: hidden;
|
|
1603
|
+
text-overflow: ellipsis;
|
|
1604
|
+
white-space: nowrap;
|
|
1605
|
+
width: 60px;
|
|
1606
|
+
text-align: center;
|
|
1607
|
+
${q.mbDown} {
|
|
1608
|
+
max-width: 60px;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.mobile-navigation-icon {
|
|
1613
|
+
position: relative;
|
|
1614
|
+
height: 24px;
|
|
1615
|
+
&[data-no-label='true'] {
|
|
1616
|
+
border-radius: 50%;
|
|
1617
|
+
display: flex;
|
|
1618
|
+
flex-direction: column;
|
|
1619
|
+
justify-content: center;
|
|
1620
|
+
align-items: center;
|
|
1621
|
+
padding: 0px;
|
|
1622
|
+
gap: 16px;
|
|
1623
|
+
width: 40px;
|
|
1624
|
+
height: 40px;
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
&[data-is-special='true'] {
|
|
1629
|
+
display: flex;
|
|
1630
|
+
flex-direction: row;
|
|
1631
|
+
align-items: center;
|
|
1632
|
+
padding: 4px 12px 4px 6px;
|
|
1633
|
+
gap: 4px;
|
|
1634
|
+
|
|
1635
|
+
min-width: 152px;
|
|
1636
|
+
height: 32px;
|
|
1637
|
+
/* Neutral/Neutral-50 */
|
|
1638
|
+
background: ${ye.colors.primary50};
|
|
1639
|
+
border-radius: 20px;
|
|
1640
|
+
flex-grow: 1;
|
|
1641
|
+
.mobile-navigation-icon {
|
|
1642
|
+
&[data-no-label='true'] {
|
|
1643
|
+
width: 24px;
|
|
1644
|
+
height: 24px;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
.mobile-navigation-label {
|
|
1648
|
+
max-width: max-content;
|
|
1649
|
+
color: ${ye.colors.primaryBase};
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
&[data-is-active='true'] {
|
|
1654
|
+
.mobile-navigation-label {
|
|
1655
|
+
color: ${ye.colors.primaryBase};
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
&[data-is-disabled='true'] {
|
|
1660
|
+
opacity: 0.2;
|
|
1661
|
+
}
|
|
1662
|
+
`,ii=Ue.div`
|
|
1663
|
+
z-index: 100;
|
|
1664
|
+
position: fixed;
|
|
1665
|
+
bottom: 0;
|
|
1666
|
+
left: 0;
|
|
1667
|
+
width: 100%;
|
|
1668
|
+
height: 100%;
|
|
1669
|
+
max-height: 56px;
|
|
1670
|
+
min-height: 56px;
|
|
1671
|
+
display: flex;
|
|
1672
|
+
height: 100%;
|
|
1673
|
+
align-items: center;
|
|
1674
|
+
justify-content: space-evenly;
|
|
1675
|
+
background-color: ${ye.colors.white};
|
|
1676
|
+
@supports (padding-bottom: env(safe-area-inset-bottom)) {
|
|
1677
|
+
min-height: calc(56px + env(safe-area-inset-bottom));
|
|
1678
|
+
max-height: calc(56px + env(safe-area-inset-bottom));
|
|
1679
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
1680
|
+
}
|
|
1681
|
+
& > div {
|
|
1682
|
+
flex: 1;
|
|
1683
|
+
}
|
|
1684
|
+
a {
|
|
1685
|
+
text-decoration: none;
|
|
1686
|
+
}
|
|
1687
|
+
&[data-is-collapsed='true'] {
|
|
1688
|
+
animation: ${ai} 500ms ease-in-out forwards;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
&[data-is-collapsed='false'] {
|
|
1692
|
+
animation: ${ti} 500ms ease-in-out forwards;
|
|
1693
|
+
}
|
|
1694
|
+
&[data-template='health-tool'] {
|
|
1695
|
+
height: 44px;
|
|
1696
|
+
max-height: 44px;
|
|
1697
|
+
min-height: 44px;
|
|
1698
|
+
justify-content: space-between;
|
|
1699
|
+
& > div {
|
|
1700
|
+
flex: 0;
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
`,li=Ue.span`
|
|
1704
|
+
position: absolute;
|
|
1705
|
+
left: 100%;
|
|
1706
|
+
transform: translate(-10px, calc(-50% + 3px));
|
|
1707
|
+
background-color: ${ye.colors.green800};
|
|
1708
|
+
border-radius: 32px;
|
|
1709
|
+
border: 2px solid ${ye.colors.white};
|
|
1710
|
+
padding: 1px 4px;
|
|
1711
|
+
display: flex;
|
|
1712
|
+
flex-direction: column;
|
|
1713
|
+
justify-content: center;
|
|
1714
|
+
align-items: center;
|
|
1715
|
+
height: 20px;
|
|
1716
|
+
aspect-ratio: 1;
|
|
1717
|
+
&[data-no-label='true'] {
|
|
1718
|
+
left: 0;
|
|
1719
|
+
transform: translate(22px, -50%);
|
|
1720
|
+
}
|
|
1721
|
+
`;Ue.div`
|
|
1722
|
+
position: absolute;
|
|
1723
|
+
top: 0;
|
|
1724
|
+
left: 0;
|
|
1725
|
+
height: 3px;
|
|
1726
|
+
background-color: ${ye.colors.primaryBase};
|
|
1727
|
+
transition: width 150ms linear;
|
|
1728
|
+
`,Ue.div`
|
|
1729
|
+
a {
|
|
1730
|
+
text-decoration: none;
|
|
1731
|
+
}
|
|
1732
|
+
`;const ri=t=>{var{badgeAmount:a,disabled:n=!1,hasBadge:i=!1,icon:l,isActive:r=!1,isSpecial:o=!1,label:s}=t,c=fe(t,["badgeAmount","disabled","hasBadge","icon","isActive","isSpecial","label"]);return e.createElement(ni,Object.assign({"data-is-special":o,"data-is-active":r,"data-is-disabled":n},c),e.createElement("div",{className:"mobile-navigation-icon","data-no-label":!Boolean(s)},i&&e.createElement(li,{"data-no-label":!Boolean(s)},e.createElement(p,{size:"s5",weight:"semiBold",color:o?ye.colors.primaryBase:ye.colors.white},a)),l),s&&e.createElement("span",{className:"mobile-navigation-label"},s))},oi=t=>{var{children:a,on:n="",isCollapsed:i=!1,template:l="homepage"}=t,r=fe(t,["children","on","isCollapsed","template"]);return e.createElement(ii,Object.assign({on:n,"data-is-collapsed":i,"data-template":l},r),a)};oi.Icon=ri;const si=({SEOData:t={},locale:a="vi-VN",routerPathname:n,routerQuery:l,nextHead:r,siteType:o,seoCustom:s,userId:c,forcedCanonicalUrl:d})=>{var m,p,g,u,h,b,v,y,f,x,w,E;const{totalPages:k,currentPage:C,SEOTitle:N="",SEODescription:B="",SEOImage:D,seoType:$,SEOImageWidth:P,SEOImageHeight:z,customMetaData:S=[],isIndexable:L=!0,hasNoCanonical:M=!1}=t,T=L&&ce?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:I}=process.env;let A=t.canonicalUrl||n;Object.keys(l).forEach((e=>{const t=l[e];t&&Array.isArray(t)&&(A=A.replace(`[...${e}]`,t.join("/")))}));const j=a||"en-PH",O="helloSites"===o?de[j]:"www.marrybaby.vn",_=A.endsWith("/")?"":"/",F=i((()=>{var n,i,l,r,o,s,c;let d="";if(t.apiMetaData&&"string"==typeof t.apiMetaData){const m=null===(n=t.apiMetaData)||void 0===n?void 0:n.match(/<title.*?>(.*)<\/title>/),p=` - Page ${C} of ${k}`,g=C&&1!==C&&m?t.apiMetaData.replace(m[0],m[0].includes("-")?m[0].replace("-",p+" - "):`<title>${m[1].concat(p)}</title>`).replace(`<link rel="canonical" href="https://${O}${A}${_}" />`,`<link rel="canonical" href="https://${O}${A}${_}?page=${C}" />`):t.apiMetaData;if(d=Qe(g,{trim:!0}),!d.find((e=>{var t,a;return"og:image"===(null===(t=e.props)||void 0===t?void 0:t.property)||"og:image:secure_url"===(null===(a=e.props)||void 0===a?void 0:a.property)}))){const n=`https://${O}/images/${a}.png`;d=[...d,e.createElement("meta",{key:"og:image",property:"og:image",content:(null===(i=t.openGraph)||void 0===i?void 0:i.image)||D||n||""}),e.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(l=t.openGraph)||void 0===l?void 0:l.image)||D||n}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(r=t.openGraph)||void 0===r?void 0:r.imageWidth)&&String(null===(o=t.openGraph)||void 0===o?void 0:o.imageWidth)||P&&String(P)||"1200"}),e.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(s=t.openGraph)||void 0===s?void 0:s.imageHeight)&&String(null===(c=t.openGraph)||void 0===c?void 0:c.imageHeight)||z&&String(z)||"630"})]}}return d}),[t.apiMetaData,t.openGraph,D,z,P,C,A,k,a,O]),H=`https://${O}/images/${a}.png`;return e.createElement(r,null,e.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===o?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}):"km-KH"===a?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"th-TH"===a?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wdth,wght@62.5..100,100..900&display=swap",rel:"stylesheet"}):e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap",rel:"stylesheet"}),e.createElement("link",{rel:"preconnect",href:I}),e.createElement("meta",{charSet:"UTF-8"}),e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),e.createElement("meta",{name:"google",content:"notranslate"}),e.createElement("meta",{name:"robots",content:T}),e.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),S.map(((t,a)=>e.createElement("meta",Object.assign({key:a},t)))),e.createElement("meta",{name:"theme-color",content:"helloSites"===o?"#2c87f3":"#e85388"}),e.createElement("meta",{name:"page_type",content:"Home"}),e.createElement("meta",{name:"page_platform",content:"WEB"}),e.createElement("meta",{name:"page_language",content:j}),e.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!F&&e.createElement(e.Fragment,null,"helloSites"===o?e.createElement("title",null,s?N:N+" - "+(null===(m=me[a])||void 0===m?void 0:m.SITE_NAME)):e.createElement("title",null,N),!M&&e.createElement("link",{rel:"canonical",href:`https://${O}${A}`}),e.createElement("meta",{name:"description",content:B||(null===(p=t.openGraph)||void 0===p?void 0:p.description)}),t.schemaData&&e.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:t.schemaData}}),e.createElement("meta",{property:"og:locale",content:a}),e.createElement("meta",{property:"og:type",content:$||"website"}),e.createElement("meta",{property:"og:title",content:(null===(g=t.openGraph)||void 0===g?void 0:g.title)||N}),e.createElement("meta",{property:"og:description",content:(null===(u=t.openGraph)||void 0===u?void 0:u.description)||B}),e.createElement("meta",{property:"og:url",content:`https://${O}${A}`}),e.createElement("meta",{property:"og:site_name",content:`https://${O}`}),e.createElement("meta",{property:"og:image",content:(null===(h=t.openGraph)||void 0===h?void 0:h.image)||D||H||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(b=t.openGraph)||void 0===b?void 0:b.image)||D||H}),e.createElement("meta",{property:"og:image:width",content:(null===(v=t.openGraph)||void 0===v?void 0:v.imageWidth)&&String(null===(y=t.openGraph)||void 0===y?void 0:y.imageWidth)||P&&String(P)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(f=t.openGraph)||void 0===f?void 0:f.imageHeight)&&String(null===(x=t.openGraph)||void 0===x?void 0:x.imageHeight)||z&&String(z)||"630"}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"twitter:title",content:(null===(w=t.twitter)||void 0===w?void 0:w.title)||N}),e.createElement("meta",{name:"twitter:description",content:B}),e.createElement("meta",{name:"twitter:image",content:(null===(E=t.twitter)||void 0===E?void 0:E.image)||D})),("helloSites"===o?pe[j]||[]:pe.marryBaby).map(((t,a)=>"link"===t.type?e.createElement("link",{key:`favicon-${a}`,rel:t.rel,href:t.href,sizes:t.sizes}):"meta"===t.type?e.createElement("meta",{key:a,name:t.name,content:t.content}):null)),Array.isArray(F)&&d?F.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):F,d&&e.createElement("link",{rel:"canonical",href:d}),!t.hasNoAmp&&"vi-VN"!==a&&e.createElement("link",{rel:"amphtml",href:`https://${O}${A}${_}?amp=1`}),c&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${c}'});`}}):null)};Ue.div`
|
|
1733
|
+
margin-top: 13px;
|
|
1734
|
+
&[data-is-mobile='false'] {
|
|
1735
|
+
display: flex;
|
|
1736
|
+
width: 60%;
|
|
1737
|
+
min-width: min(600px, 100%);
|
|
1738
|
+
align-items: center;
|
|
1739
|
+
& > :first-child {
|
|
1740
|
+
margin-right: 18px;
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
`,Ue.div`
|
|
1744
|
+
&[data-is-mobile='false'] {
|
|
1745
|
+
max-width: 540px;
|
|
1746
|
+
}
|
|
1747
|
+
${q.tdUp} {
|
|
1748
|
+
padding-right: 120px;
|
|
1749
|
+
}
|
|
1750
|
+
`,Ue.div`
|
|
1751
|
+
display: flex;
|
|
1752
|
+
align-items: flex-start;
|
|
1753
|
+
margin-top: 10px;
|
|
1754
|
+
color: ${e=>e.theme.colors.white};
|
|
1755
|
+
font-size: ${e=>e.theme.sizes.fsParagraph4};
|
|
1756
|
+
> img {
|
|
1757
|
+
margin-top: 2px;
|
|
1758
|
+
margin-right: 4px;
|
|
1759
|
+
}
|
|
1760
|
+
&[data-is-mobile='false'] {
|
|
1761
|
+
margin-top: 12px;
|
|
1762
|
+
> img {
|
|
1763
|
+
width: 16px;
|
|
1764
|
+
height: 16px;
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
&[data-is-mobile='true'] {
|
|
1768
|
+
> img {
|
|
1769
|
+
width: 14px;
|
|
1770
|
+
height: 14px;
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
`;const ci="hhgcomp-toolbanner-iconcontainer";I(Ue.div`
|
|
1774
|
+
position: absolute;
|
|
1775
|
+
z-index: 0;
|
|
1776
|
+
right: 0;
|
|
1777
|
+
bottom: -50px;
|
|
1778
|
+
display: flex;
|
|
1779
|
+
|
|
1780
|
+
align-items: center;
|
|
1781
|
+
|
|
1782
|
+
${q.mbUp} {
|
|
1783
|
+
img {
|
|
1784
|
+
width: 190px;
|
|
1785
|
+
height: 155px;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
${q.mbDown} {
|
|
1789
|
+
width: 70px;
|
|
1790
|
+
}
|
|
1791
|
+
`,ci),Ue.div`
|
|
1792
|
+
position: relative;
|
|
1793
|
+
z-index: 1;
|
|
1794
|
+
max-width: 100%;
|
|
1795
|
+
${q.mbUp} {
|
|
1796
|
+
padding: 23px 40px;
|
|
1797
|
+
max-width: calc(100% - 210px);
|
|
1798
|
+
&[data-is-side='true'] {
|
|
1799
|
+
max-width: calc(100% - 120px);
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
`;const di="hhgcomp-toolbanner-inner";I(Ue.div`
|
|
1803
|
+
position: relative;
|
|
1804
|
+
`,di);const mi="hhgcomp-toolbanner-wrapper",pi=I(Ue.div`
|
|
1805
|
+
position: relative;
|
|
1806
|
+
width: 100%;
|
|
1807
|
+
height: 100%;
|
|
1808
|
+
background: ${e=>e.bgColor};
|
|
1809
|
+
background-color: inherit;
|
|
1810
|
+
|
|
1811
|
+
&[data-site='marryBaby'] {
|
|
1812
|
+
background-color: ${e=>e["data-banner-color"]||"#5EC08F"};
|
|
1813
|
+
background-image: none;
|
|
1814
|
+
padding-bottom: 0;
|
|
1815
|
+
&[data-is-embedded='true'] {
|
|
1816
|
+
border-top-left-radius: 16px;
|
|
1817
|
+
border-top-right-radius: 16px;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
`,mi),gi=Ue.div`
|
|
1821
|
+
width: 100%;
|
|
1822
|
+
${q.mbDown} {
|
|
1823
|
+
padding-bottom: 24px;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
a {
|
|
1827
|
+
text-decoration: none;
|
|
1828
|
+
color: inherit;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
&[data-site='marryBaby'] {
|
|
1832
|
+
a {
|
|
1833
|
+
text-decoration: underline;
|
|
1834
|
+
}
|
|
1835
|
+
${q.mbDown} {
|
|
1836
|
+
padding-bottom: 0;
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
${q.tdDown} {
|
|
1841
|
+
height: auto;
|
|
1842
|
+
.${mi} {
|
|
1843
|
+
.${di} {
|
|
1844
|
+
display: flex;
|
|
1845
|
+
align-items: center;
|
|
1846
|
+
${q.mbDown} {
|
|
1847
|
+
justify-content: space-between;
|
|
1848
|
+
}
|
|
1849
|
+
.${ci} {
|
|
1850
|
+
position: relative;
|
|
1851
|
+
right: -50px;
|
|
1852
|
+
bottom: -20px;
|
|
1853
|
+
width: 110px;
|
|
1854
|
+
min-width: 0;
|
|
1855
|
+
height: auto;
|
|
1856
|
+
min-height: 0;
|
|
1857
|
+
align-self: flex-end;
|
|
1858
|
+
margin-bottom: -20px;
|
|
1859
|
+
${q.mbDown} {
|
|
1860
|
+
right: unset;
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
`,ui=Ue.div`
|
|
1867
|
+
display: flex;
|
|
1868
|
+
flex-direction: row;
|
|
1869
|
+
align-items: center;
|
|
1870
|
+
padding: 16px 24px;
|
|
1871
|
+
gap: 16px;
|
|
1872
|
+
width: 100%;
|
|
1873
|
+
background-color: ;
|
|
1874
|
+
${q.mbDown} {
|
|
1875
|
+
padding: 16px 0;
|
|
1876
|
+
}
|
|
1877
|
+
`,hi=Ue.div`
|
|
1878
|
+
background: #ffffff;
|
|
1879
|
+
border-radius: 16px;
|
|
1880
|
+
width: 48px;
|
|
1881
|
+
height: 48px;
|
|
1882
|
+
position: relative;
|
|
1883
|
+
|
|
1884
|
+
img {
|
|
1885
|
+
position: absolute;
|
|
1886
|
+
top: 50%;
|
|
1887
|
+
left: 50%;
|
|
1888
|
+
max-width: 24px;
|
|
1889
|
+
max-height: 24px;
|
|
1890
|
+
transform: translate(-50%, -50%);
|
|
1891
|
+
}
|
|
1892
|
+
`,bi=Ue.div`
|
|
1893
|
+
display: flex;
|
|
1894
|
+
align-items: flex-start;
|
|
1895
|
+
flex-direction: column;
|
|
1896
|
+
justify-content: space-between;
|
|
1897
|
+
gap: 0;
|
|
1898
|
+
width: 100%;
|
|
1899
|
+
`,vi=Ue.div`
|
|
1900
|
+
display: flex;
|
|
1901
|
+
align-items: flex-start;
|
|
1902
|
+
font-weight: 400;
|
|
1903
|
+
font-size: 12px;
|
|
1904
|
+
line-height: 18px;
|
|
1905
|
+
letter-spacing: -0.2px;
|
|
1906
|
+
color: #f3f3f3;
|
|
1907
|
+
|
|
1908
|
+
> img {
|
|
1909
|
+
margin-top: 2px;
|
|
1910
|
+
margin-right: 4px;
|
|
1911
|
+
}
|
|
1912
|
+
&[data-is-mobile='false'] {
|
|
1913
|
+
> img {
|
|
1914
|
+
width: 16px;
|
|
1915
|
+
height: 16px;
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
&[data-is-mobile='true'] {
|
|
1919
|
+
> img {
|
|
1920
|
+
width: 14px;
|
|
1921
|
+
height: 14px;
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
`,yi=({className:t,heading:a,color:n="blue",isMobile:i,bannerUrl:l,bannerUrlLarge:r,bannerColor:o,medicalReview:s={link:"#",reviewer:"",date:""},icon:c,style:d,siteType:m,isEmbeded:g})=>{var u,h;const{t:b}=se(),v=ze(),y=i?l:r||l,f={pink:[8,6]},x=v.colors[n]||v.colors.blue,w=(null==s?void 0:s.reviewer)?e.createElement(p,{size:"label2",color:"#fff",as:"div",className:"embedded-review",sx:{a:{textUnderlineOffset:"2px",color:"#fff",textDecoration:"underline"}}},e.createElement("div",{dangerouslySetInnerHTML:{__html:b("toolPage.toolReviewer",{expert_name:`<a href="${s.link}">${s.reviewer.trim()}</a>`,date:s.date})}})):null;return e.createElement(gi,{"data-is-mobile":i,style:d,"data-site":m},e.createElement(pi,{className:t,"data-banner-url":y,"data-is-mobile":i,"data-site":m,"data-banner-color":o,"data-is-embedded":g,bgColor:`linear-gradient(71deg, ${null==x?void 0:x[(null===(u=f[n])||void 0===u?void 0:u[0])||7]} -4.07%, ${null==x?void 0:x[(null===(h=f[n])||void 0===h?void 0:h[1])||4]} 90.13%)}`},"marryBaby"===m&&g?e.createElement(ui,null,e.createElement(hi,null,c),e.createElement(bi,null,e.createElement(M,{color:"white",tag:"h5",as:"h2"},a),s&&e.createElement(vi,{"data-is-mobile":i},w))):e.createElement(ke,{gap:Ce(24),align:"center",justify:"space-between",sx:{padding:`${Ce(13)} ${Ce(20)}`,gap:Ce(24)}},e.createElement(we,null,e.createElement(M,{tag:"h5",as:"h2",color:"#fff"},a),s&&e.createElement(p,{size:"n1",as:"div"},w)),e.createElement(ke,{justify:"center",align:"center",sx:e=>{var t,a;return{width:Ce(64),height:Ce(64),borderRadius:"50%",background:(null===(a=null===(t=e.colors)||void 0===t?void 0:t[n])||void 0===a?void 0:a[0])||e.colors.blue[0],flexShrink:0,img:{maxWidth:Ce(48),maxHeight:Ce(48)},[e.fn.smallerThan("sm")]:{width:Ce(56),height:Ce(56),img:{maxWidth:Ce(40),maxHeight:Ce(40)}}}}},c))))},fi=Ue(bt)`
|
|
1925
|
+
border-color: ${e=>e.theme.mbColors.lightGray};
|
|
1926
|
+
background-color: ${e=>e.theme.colors.white};
|
|
1927
|
+
border-radius: 16px;
|
|
1928
|
+
transition: all 0.2s ease;
|
|
1929
|
+
&:hover {
|
|
1930
|
+
border-color: ${e=>e.theme.mbColors.pink};
|
|
1931
|
+
box-shadow: none;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
& > ul {
|
|
1935
|
+
z-index: ${A.menuSearchPopup};
|
|
1936
|
+
max-height: 300px;
|
|
1937
|
+
overflow-y: auto;
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
${e=>e.groupedWithLabel&&Ve`
|
|
1941
|
+
& > div:first-child {
|
|
1942
|
+
color: ${e=>e.theme.mbColors.midGray};
|
|
1943
|
+
font-size: 12px;
|
|
1944
|
+
}
|
|
1945
|
+
`}
|
|
1946
|
+
|
|
1947
|
+
&[data-dropdown-open='true'] {
|
|
1948
|
+
border-color: ${e=>e.theme.mbColors.pink};
|
|
1949
|
+
}
|
|
1950
|
+
`;Ue(j)`
|
|
1951
|
+
& input {
|
|
1952
|
+
border-color: ${e=>e.theme.mbColors.lightGray};
|
|
1953
|
+
background-color: ${e=>e.theme.colors.white};
|
|
1954
|
+
border-radius: 16px;
|
|
1955
|
+
transition: all 0.2s ease;
|
|
1956
|
+
&:focus,
|
|
1957
|
+
&:hover {
|
|
1958
|
+
border-color: ${e=>e.theme.mbColors.pink};
|
|
1959
|
+
box-shadow: none;
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
& .displayIcon {
|
|
1964
|
+
pointer-events: none;
|
|
1965
|
+
}
|
|
1966
|
+
`;const xi=Ue(Je)`
|
|
1967
|
+
& label {
|
|
1968
|
+
position: absolute;
|
|
1969
|
+
z-index: 1;
|
|
1970
|
+
top: 16px;
|
|
1971
|
+
|
|
1972
|
+
left: 16px;
|
|
1973
|
+
color: ${e=>e.theme.mbColors.midGray};
|
|
1974
|
+
pointer-events: none;
|
|
1975
|
+
transition: all 0.2s ease;
|
|
1976
|
+
white-space: nowrap;
|
|
1977
|
+
overflow: hidden;
|
|
1978
|
+
text-overflow: ellipsis;
|
|
1979
|
+
max-width: 240px;
|
|
1980
|
+
|
|
1981
|
+
&[data-size='label2'] {
|
|
1982
|
+
font-size: 12px;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
${q.tdDown} {
|
|
1986
|
+
max-width: 220px;
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
& input {
|
|
1990
|
+
::placeholder {
|
|
1991
|
+
color: ${e=>e.theme.mbColors.gray};
|
|
1992
|
+
font-size: 14px;
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
::-webkit-input-placeholder {
|
|
1996
|
+
/* Chrome/Opera/Safari */
|
|
1997
|
+
color: ${e=>e.theme.mbColors.gray};
|
|
1998
|
+
font-size: 14px;
|
|
1999
|
+
}
|
|
2000
|
+
::-moz-placeholder {
|
|
2001
|
+
/* Firefox 19+ */
|
|
2002
|
+
color: ${e=>e.theme.mbColors.gray};
|
|
2003
|
+
font-size: 14px;
|
|
2004
|
+
}
|
|
2005
|
+
:-ms-input-placeholder {
|
|
2006
|
+
/* IE 10+ */
|
|
2007
|
+
color: ${e=>e.theme.mbColors.gray};
|
|
2008
|
+
font-size: 14px;
|
|
2009
|
+
}
|
|
2010
|
+
:-moz-placeholder {
|
|
2011
|
+
/* Firefox 18- */
|
|
2012
|
+
color: ${e=>e.theme.mbColors.gray};
|
|
2013
|
+
font-size: 14px;
|
|
2014
|
+
}
|
|
2015
|
+
height: ${e=>"sm"===e.size?48:72}px;
|
|
2016
|
+
padding-top: 27px;
|
|
2017
|
+
border-color: ${e=>e.theme.mbColors.lightGray};
|
|
2018
|
+
background-color: ${e=>e.theme.colors.white};
|
|
2019
|
+
border-radius: 16px;
|
|
2020
|
+
transition: all 0.2s ease;
|
|
2021
|
+
padding-top: ${e=>e.value?"38px":"27px"};
|
|
2022
|
+
|
|
2023
|
+
&:focus,
|
|
2024
|
+
&:hover {
|
|
2025
|
+
border-color: ${e=>e.theme.mbColors.pink};
|
|
2026
|
+
box-shadow: none;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
&[data-has-action-icon] {
|
|
2031
|
+
input {
|
|
2032
|
+
padding-top: ${e=>e.value?"38px":"27px"};
|
|
2033
|
+
padding-bottom: ${e=>e.value?"16px":"27px"};
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
label {
|
|
2037
|
+
position: absolute;
|
|
2038
|
+
z-index: 1;
|
|
2039
|
+
top: 16px;
|
|
2040
|
+
padding-right: 46px;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
`,wi=Ue.div`
|
|
2044
|
+
width: 100%;
|
|
2045
|
+
`,Ei=Ue.div`
|
|
2046
|
+
#due-date-dropdown {
|
|
2047
|
+
z-index: 9;
|
|
2048
|
+
width: 100%;
|
|
2049
|
+
min-width: unset;
|
|
2050
|
+
max-width: unset;
|
|
2051
|
+
|
|
2052
|
+
${q.mbDown} {
|
|
2053
|
+
font-size: 14px;
|
|
2054
|
+
}
|
|
2055
|
+
${q.tdUp} {
|
|
2056
|
+
font-size: 16px;
|
|
2057
|
+
&[data-is-side='true'] {
|
|
2058
|
+
font-size: 14px;
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
color: ${e=>e.theme.colors.gray800};
|
|
2062
|
+
> div {
|
|
2063
|
+
white-space: nowrap;
|
|
2064
|
+
overflow: hidden;
|
|
2065
|
+
text-overflow: ellipsis;
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
display: flex;
|
|
2069
|
+
width: 100%;
|
|
2070
|
+
justify-content: space-between;
|
|
2071
|
+
`,ki=Ue(wi)`
|
|
2072
|
+
.due-date-input {
|
|
2073
|
+
width: 100%;
|
|
2074
|
+
min-width: unset;
|
|
2075
|
+
max-width: unset;
|
|
2076
|
+
color: ${e=>e.theme.colors.gray800};
|
|
2077
|
+
}
|
|
2078
|
+
.due-date-calculate-button {
|
|
2079
|
+
margin-right: auto;
|
|
2080
|
+
margin-left: auto;
|
|
2081
|
+
}
|
|
2082
|
+
input {
|
|
2083
|
+
&[data-is-side='true'] {
|
|
2084
|
+
${q.tdUp} {
|
|
2085
|
+
font-size: 14px;
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
${q.mbDown} {
|
|
2089
|
+
font-size: 14px;
|
|
2090
|
+
}
|
|
2091
|
+
${q.tdUp} {
|
|
2092
|
+
font-size: 16px;
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
`;Ue.div`
|
|
2096
|
+
display: flex;
|
|
2097
|
+
align-items: right;
|
|
2098
|
+
|
|
2099
|
+
& > p {
|
|
2100
|
+
display: inline-block;
|
|
2101
|
+
border-bottom: solid 1px
|
|
2102
|
+
${e=>e.theme.colors.primaryBase};
|
|
2103
|
+
margin-bottom: 24px;
|
|
2104
|
+
margin-left: auto;
|
|
2105
|
+
color: ${e=>e.theme.colors.primaryBase};
|
|
2106
|
+
cursor: pointer;
|
|
2107
|
+
font-size: 11px;
|
|
2108
|
+
line-height: 16px;
|
|
2109
|
+
text-align: right;
|
|
2110
|
+
}
|
|
2111
|
+
`;var Ci;Ue(Ue.img`
|
|
2112
|
+
img& {
|
|
2113
|
+
width: 16px;
|
|
2114
|
+
height: 16px;
|
|
2115
|
+
}
|
|
2116
|
+
`)`
|
|
2117
|
+
margin-right: 4px;
|
|
2118
|
+
`,function(e){e[e.lastPeriod=0]="lastPeriod",e[e.conception=1]="conception",e[e.IVF=2]="IVF"}(Ci||(Ci={}));const Ni="yyyy-MM-dd",Bi=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,Di=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:r}=se(),[o,s]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(ki,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(xi,{label:r("dueDatePage.conceptionDate"),name:"date",size:"md",value:Bi(o),CustomInput:e.createElement(Fa,{onChange:e=>{s(e)},placeholder:"dd/mm/yyyy",pickedDate:o,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Je,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:o&&Re(o).format(O)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}):e.createElement(Je,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600,style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.conceptionDate")),value:Bi(o),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(Fa,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:Bi(o)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:o,displayDateFormat:gt,onChange:e=>{s(e)},placeholder:"placeholder"})})),e.createElement(te,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,onClick:()=>{n((e=>{const t=new Date(e);return t.setDate(t.getDate()+265),{startDate:e,dueDate:t,otherInfo:{method:Ci.conception+1,conception_date:et(e,Ni),first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}})(o),`${ge.type}=1&sd=${et(o,Ni)}&${ge.additional}= `)},role:"button"},r("dueDatePage.lastPeriod.calculate")))},$i=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:r}=se(),[o,s]=t(new Date),[c,d]=t("3");return e.createElement(e.Fragment,null,e.createElement(ki,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(xi,{label:r("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:Bi(o),CustomInput:e.createElement(Fa,{onChange:e=>{s(e)},placeholder:"dd/mm/yyyy",pickedDate:o,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Je,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:o&&Re(o).format(O)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}):e.createElement(Je,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray700,style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.ivf.transferDate")),value:Bi(o),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(Fa,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:Bi(o)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:o,displayDateFormat:gt,onChange:e=>{s(e)},placeholder:"placeholder"})})),e.createElement("div",{style:{width:"100%"}},e.createElement(an,{id:"radio-transfer-date",direction:"vertical",size:"small",value:c,onChange:e=>d(e),options:[{value:"3",label:r("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:r("dueDatePage.ivf.transferDateRadio",{number:5})}]})),e.createElement(te,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,onClick:()=>{n(((e,t)=>{const a=new Date(e);return a.setDate(a.getDate()+265-t),{startDate:e,dueDate:a,otherInfo:{method:Ci.IVF+1,ivf_transfer_date:et(e,Ni),days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}})(o,Number(c)),`${ge.type}=2&${ge.startDate}=${et(o,Ni)}&${ge.additional}=${c}`)},role:"button"},r("dueDatePage.lastPeriod.calculate")))},Pi=({locale:a,onClick:n,siteType:i,pageUrl:l})=>{const{t:r}=se(),[o,s]=t(28),[c,d]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(ki,{className:"input-form","data-is-side":!0},"marryBaby"===i?e.createElement(xi,{label:r("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:Bi(c),CustomInput:e.createElement(Fa,{onChange:e=>{d(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Je,Object.assign({name:"birthday",size:"md"},t,{value:c&&Re(c).format(O)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}):e.createElement(Je,{className:"input-section due-date-input",label:e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600,style:{marginBottom:"9px",flex:"1"}},r("dueDatePage.lastPeriod.lastPeriodLabel")),value:Bi(c),name:"date",size:"md",CustomInput:e.createElement(Fa,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:Bi(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:c,displayDateFormat:gt,onChange:e=>{d(e)},placeholder:"placeholder"})})),e.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===i?"marryBaby":""},"marryBaby"===i?e.createElement(ht,{type:"bodytext-3",color:ye.mbColors.midGray},r("dueDatePage.lastPeriod.periodLengthLabel")):e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600,style:{marginBottom:"0.5rem"}},r("dueDatePage.lastPeriod.periodLengthLabel")),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===i&&e.createElement(p,{size:"s3",weight:"semiBold",color:ye.colors.gray600},o),e.createElement(ut,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==i,withControl:"marryBaby"!==i,onChange:s,value:o,label:"marryBaby"!==i?void 0:null}))),e.createElement(te,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===i?"secondary":"primary",onClick:()=>n(((e,t)=>{const a=t-21+272,n=new Date(e);return n.setDate(n.getDate()+a),{startDate:e,dueDate:n,otherInfo:{method:Ci.lastPeriod+1,first_day:et(e,Ni),cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}})(c,o),`${ge.type}=0&${ge.startDate}=${et(c,Ni)}&${ge.additional}=${o}`),role:"button"},r("dueDatePage.lastPeriod.calculate")))};Ue.div`
|
|
2119
|
+
padding: 0;
|
|
2120
|
+
background-color: white;
|
|
2121
|
+
`,Ue.div`
|
|
2122
|
+
padding-bottom: 2px;
|
|
2123
|
+
margin: auto;
|
|
2124
|
+
${q.mbUp} {
|
|
2125
|
+
width: 100%;
|
|
2126
|
+
padding: 24px;
|
|
2127
|
+
}
|
|
2128
|
+
`;const zi=Ue.div`
|
|
2129
|
+
&[data-is-side='true'] {
|
|
2130
|
+
width: 100%;
|
|
2131
|
+
margin-bottom: 0;
|
|
2132
|
+
}
|
|
2133
|
+
${q.mbDown} {
|
|
2134
|
+
width: 100%;
|
|
2135
|
+
margin-bottom: 0;
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
margin-bottom: 24px;
|
|
2139
|
+
|
|
2140
|
+
& > :not(:last-child) {
|
|
2141
|
+
margin-bottom: 8px;
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
.gender-selector {
|
|
2145
|
+
& > :not(:last-child) {
|
|
2146
|
+
margin-right: 16px;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
& > div {
|
|
2150
|
+
width: calc(50% - 8px);
|
|
2151
|
+
|
|
2152
|
+
${q.mbUp} {
|
|
2153
|
+
max-width: 186px;
|
|
2154
|
+
justify-self: left;
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
`,Si=Ue.div`
|
|
2159
|
+
margin-bottom: 20px;
|
|
2160
|
+
width: 100%;
|
|
2161
|
+
|
|
2162
|
+
& > :not(:last-child) {
|
|
2163
|
+
margin-bottom: 8px;
|
|
2164
|
+
}
|
|
2165
|
+
.gender-selector {
|
|
2166
|
+
& > div {
|
|
2167
|
+
width: calc(50% - 8px);
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
`,Li=Ue.div`
|
|
2171
|
+
width: 100%;
|
|
2172
|
+
display: flex;
|
|
2173
|
+
justify-content: center;
|
|
2174
|
+
${q.mbUp} {
|
|
2175
|
+
padding: 0 16px;
|
|
2176
|
+
&[data-is-side='true'] {
|
|
2177
|
+
margin-top: 24px;
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
${q.mbDown} {
|
|
2182
|
+
margin-top: 24px;
|
|
2183
|
+
&[data-site='marryBaby'] {
|
|
2184
|
+
margin-top: 12px;
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
& > :not(:last-child) {
|
|
2188
|
+
margin-bottom: 8px;
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
button {
|
|
2192
|
+
width: 100%;
|
|
2193
|
+
margin: auto;
|
|
2194
|
+
${q.mbUp} {
|
|
2195
|
+
max-width: 200px;
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
`;Ue.div`
|
|
2199
|
+
${q.mbUp} {
|
|
2200
|
+
padding-left: 16px;
|
|
2201
|
+
padding-right: 16px;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
padding-bottom: 60px;
|
|
2205
|
+
`,Ue.div`
|
|
2206
|
+
& > :not(:last-child) {
|
|
2207
|
+
margin-bottom: 28px;
|
|
2208
|
+
}
|
|
2209
|
+
`,Ue.div`
|
|
2210
|
+
${q.mbUp} {
|
|
2211
|
+
padding-left: 16px;
|
|
2212
|
+
padding-right: 16px;
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
padding-top: 32px;
|
|
2216
|
+
|
|
2217
|
+
color: ${e=>e.theme.colors.gray800};
|
|
2218
|
+
text-align: center;
|
|
2219
|
+
|
|
2220
|
+
& > :last-child {
|
|
2221
|
+
margin-top: 8px;
|
|
2222
|
+
}
|
|
2223
|
+
`,Ue.div`
|
|
2224
|
+
margin-bottom: 32px;
|
|
2225
|
+
|
|
2226
|
+
${q.mbUp} {
|
|
2227
|
+
padding-left: 16px;
|
|
2228
|
+
padding-right: 16px;
|
|
2229
|
+
}
|
|
2230
|
+
`,Ue.div`
|
|
2231
|
+
margin-bottom: 32px;
|
|
2232
|
+
|
|
2233
|
+
${q.mbUp} {
|
|
2234
|
+
padding-left: 16px;
|
|
2235
|
+
padding-right: 16px;
|
|
2236
|
+
}
|
|
2237
|
+
`,Ue.div`
|
|
2238
|
+
margin-bottom: 16px;
|
|
2239
|
+
|
|
2240
|
+
${q.mbUp} {
|
|
2241
|
+
padding-left: 16px;
|
|
2242
|
+
padding-right: 16px;
|
|
2243
|
+
}
|
|
2244
|
+
`,Ue.div`
|
|
2245
|
+
margin-bottom: 24px;
|
|
2246
|
+
|
|
2247
|
+
${q.mbUp} {
|
|
2248
|
+
padding-left: 16px;
|
|
2249
|
+
padding-right: 16px;
|
|
2250
|
+
}
|
|
2251
|
+
`,Ue.div`
|
|
2252
|
+
margin-bottom: 56px;
|
|
2253
|
+
line-height: 24px;
|
|
2254
|
+
|
|
2255
|
+
& > :first-child {
|
|
2256
|
+
margin-bottom: 8px;
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
${q.mbUp} {
|
|
2260
|
+
padding-left: 16px;
|
|
2261
|
+
padding-right: 16px;
|
|
2262
|
+
}
|
|
2263
|
+
`,Ue.div`
|
|
2264
|
+
margin-bottom: 56px;
|
|
2265
|
+
|
|
2266
|
+
& > :first-child {
|
|
2267
|
+
margin-bottom: 8px;
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
${q.mbUp} {
|
|
2271
|
+
padding-left: 16px;
|
|
2272
|
+
padding-right: 16px;
|
|
2273
|
+
}
|
|
2274
|
+
`,Ue.div`
|
|
2275
|
+
padding-top: 32px;
|
|
2276
|
+
|
|
2277
|
+
& > div {
|
|
2278
|
+
margin-bottom: 24px;
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
${q.mbUp} {
|
|
2282
|
+
padding-left: 16px;
|
|
2283
|
+
padding-right: 16px;
|
|
2284
|
+
}
|
|
2285
|
+
`,Ue.div`
|
|
2286
|
+
padding: 68px 0 56px 0;
|
|
2287
|
+
|
|
2288
|
+
${q.mbUp} {
|
|
2289
|
+
padding: 84px 0 72px 0;
|
|
2290
|
+
}
|
|
2291
|
+
`,Ue.div`
|
|
2292
|
+
display: flex;
|
|
2293
|
+
gap: 10px;
|
|
2294
|
+
line-height: 1;
|
|
2295
|
+
span {
|
|
2296
|
+
overflow: hidden;
|
|
2297
|
+
text-overflow: ellipsis;
|
|
2298
|
+
-webkit-line-clamp: 2;
|
|
2299
|
+
display: -webkit-box;
|
|
2300
|
+
-webkit-box-orient: vertical;
|
|
2301
|
+
}
|
|
2302
|
+
${q.mbUp} {
|
|
2303
|
+
padding-right: 16px;
|
|
2304
|
+
padding-bottom: 10px;
|
|
2305
|
+
flex-wrap: wrap;
|
|
2306
|
+
align-items: center;
|
|
2307
|
+
justify-content: space-between;
|
|
2308
|
+
&[data-is-side='true'] {
|
|
2309
|
+
width: 100%;
|
|
2310
|
+
margin-bottom: 15px;
|
|
2311
|
+
justify-content: unset;
|
|
2312
|
+
.label {
|
|
2313
|
+
margin-bottom: 9px;
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
${q.mbDown} {
|
|
2319
|
+
width: 100%;
|
|
2320
|
+
margin-bottom: 15px;
|
|
2321
|
+
|
|
2322
|
+
.label {
|
|
2323
|
+
margin-bottom: 9px;
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
`;const Mi=Ue.div`
|
|
2327
|
+
width: 100%;
|
|
2328
|
+
display: flex;
|
|
2329
|
+
flex-wrap: wrap;
|
|
2330
|
+
justify-content: space-between;
|
|
2331
|
+
.input-section {
|
|
2332
|
+
display: flex;
|
|
2333
|
+
flex-direction: column;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
${q.mbDown} {
|
|
2337
|
+
flex-direction: column;
|
|
2338
|
+
.input-section {
|
|
2339
|
+
width: 100%;
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
`,Ti=Ue.div`
|
|
2343
|
+
position: relative;
|
|
2344
|
+
width: calc(50% - 8px);
|
|
2345
|
+
|
|
2346
|
+
&[data-is-side='true'] {
|
|
2347
|
+
.label {
|
|
2348
|
+
margin-bottom: 9px;
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
${q.mbDown} {
|
|
2352
|
+
.label {
|
|
2353
|
+
margin-bottom: 9px;
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
margin-bottom: 24px;
|
|
2357
|
+
#weight-gain-dropdown {
|
|
2358
|
+
z-index: 9;
|
|
2359
|
+
width: 100%;
|
|
2360
|
+
min-width: unset;
|
|
2361
|
+
max-width: unset;
|
|
2362
|
+
color: ${e=>e.theme.colors.gray800};
|
|
2363
|
+
& > ul {
|
|
2364
|
+
z-index: 1;
|
|
2365
|
+
max-height: 300px;
|
|
2366
|
+
overflow-y: scroll;
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
`,Ii=Ue.div`
|
|
2370
|
+
margin-bottom: 24px;
|
|
2371
|
+
width: 100%;
|
|
2372
|
+
|
|
2373
|
+
${q.mbUp} {
|
|
2374
|
+
padding: 0 16px;
|
|
2375
|
+
}
|
|
2376
|
+
.card {
|
|
2377
|
+
display: flex;
|
|
2378
|
+
align-items: center;
|
|
2379
|
+
justify-content: space-between;
|
|
2380
|
+
|
|
2381
|
+
& > :not(:last-child) {
|
|
2382
|
+
margin-bottom: 8px;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
.gender-selector {
|
|
2386
|
+
row-gap: 12px;
|
|
2387
|
+
|
|
2388
|
+
& > :not(:last-child) {
|
|
2389
|
+
margin-right: 16px;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
& > div {
|
|
2393
|
+
${q.mbUp} {
|
|
2394
|
+
width: calc(18% - 4px);
|
|
2395
|
+
max-width: 186px;
|
|
2396
|
+
justify-self: left;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
${q.mbDown} {
|
|
2400
|
+
width: calc(31% - 8px);
|
|
2401
|
+
max-width: 109px;
|
|
2402
|
+
justify-self: left;
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
.gender-image {
|
|
2408
|
+
width: 23px;
|
|
2409
|
+
height: 36px;
|
|
2410
|
+
object-fit: contain;
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
.note {
|
|
2414
|
+
display: flex;
|
|
2415
|
+
align-items: center;
|
|
2416
|
+
padding-top: 8px;
|
|
2417
|
+
padding-bottom: 16px;
|
|
2418
|
+
}
|
|
2419
|
+
`,Ai=({onSubmitDueDate:a,locale:n,isSide:l,siteType:r})=>{const{t:o}=se(),[s,c]=t(Ci.lastPeriod),d=[{value:Ci.lastPeriod,label:o("dueDatePage.lastPeriod")},{value:Ci.conception,label:o("dueDatePage.conceptionDate")},{value:Ci.IVF,label:o("dueDatePage.ivf")}],m=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(Mi,null,e.createElement(wi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===r?e.createElement(fi,{groupedWithLabel:o("dueDatePage.calculationMethod"),options:d,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:d[s],onChange:e=>{c(e.value)}}):e.createElement(e.Fragment,null,e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.calculationMethod")),e.createElement(Ei,{"data-is-side":l},e.createElement(bt,{options:d,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:d[s],onChange:e=>{c(e.value)}})))),s===Ci.lastPeriod?e.createElement(Pi,{locale:n,onClick:a,isSide:l,siteType:r,pageUrl:m}):null,s===Ci.conception?e.createElement(Di,{locale:n,onClick:a,isSide:l,siteType:r,pageUrl:m}):null,s===Ci.IVF?e.createElement($i,{locale:n,onClick:a,isSide:l,siteType:r,pageUrl:m}):null)},ji="hhgcomp-embedtoolcard-content",Oi=I(Ue.form`
|
|
2420
|
+
margin: auto;
|
|
2421
|
+
${q.mbUp} {
|
|
2422
|
+
width: 100%;
|
|
2423
|
+
padding: 20px;
|
|
2424
|
+
display: flex;
|
|
2425
|
+
justify-content: space-between;
|
|
2426
|
+
flex-wrap: wrap;
|
|
2427
|
+
}
|
|
2428
|
+
${q.mbDown} {
|
|
2429
|
+
padding: 16px;
|
|
2430
|
+
}
|
|
2431
|
+
.due-date-calculate-button {
|
|
2432
|
+
width: 100%;
|
|
2433
|
+
margin: 12px auto 0;
|
|
2434
|
+
${q.mbUp} {
|
|
2435
|
+
max-width: 200px;
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
&[data-is-side='true'] {
|
|
2439
|
+
${q.mbUp} {
|
|
2440
|
+
padding: 24px 40px 0px 40px;
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
.input-weight-form {
|
|
2444
|
+
display: flex;
|
|
2445
|
+
flex-wrap: wrap;
|
|
2446
|
+
justify-content: space-between;
|
|
2447
|
+
padding: 0 16px;
|
|
2448
|
+
}
|
|
2449
|
+
.input-form {
|
|
2450
|
+
display: flex;
|
|
2451
|
+
|
|
2452
|
+
${q.mbUp} {
|
|
2453
|
+
margin-bottom: 24px;
|
|
2454
|
+
width: calc(50% - 8px);
|
|
2455
|
+
}
|
|
2456
|
+
&[data-is-side='true'] {
|
|
2457
|
+
${q.mbUp} {
|
|
2458
|
+
margin-bottom: 8px;
|
|
2459
|
+
width: 100%;
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
${q.mbDown} {
|
|
2463
|
+
margin-bottom: 8px;
|
|
2464
|
+
}
|
|
2465
|
+
.label-text {
|
|
2466
|
+
overflow: hidden;
|
|
2467
|
+
text-overflow: ellipsis;
|
|
2468
|
+
-webkit-line-clamp: 2;
|
|
2469
|
+
display: -webkit-box;
|
|
2470
|
+
-webkit-box-orient: vertical;
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
.input-form-pwg {
|
|
2474
|
+
display: flex;
|
|
2475
|
+
width: calc(50% - 8px);
|
|
2476
|
+
|
|
2477
|
+
${q.mbUp} {
|
|
2478
|
+
margin-bottom: 24px;
|
|
2479
|
+
}
|
|
2480
|
+
&[data-is-side='true'] {
|
|
2481
|
+
${q.mbUp} {
|
|
2482
|
+
margin-bottom: 8px;
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
${q.mbDown} {
|
|
2486
|
+
margin-bottom: 8px;
|
|
2487
|
+
width: 100%;
|
|
2488
|
+
}
|
|
2489
|
+
.label-text {
|
|
2490
|
+
overflow: hidden;
|
|
2491
|
+
text-overflow: ellipsis;
|
|
2492
|
+
-webkit-line-clamp: 2;
|
|
2493
|
+
display: -webkit-box;
|
|
2494
|
+
-webkit-box-orient: vertical;
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
.day-slider {
|
|
2498
|
+
width: 100%;
|
|
2499
|
+
${q.mbUp} {
|
|
2500
|
+
width: calc(50% - 8px);
|
|
2501
|
+
&[data-is-side='true'] {
|
|
2502
|
+
width: 100%;
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
`,ji),_i=Ue.div`
|
|
2507
|
+
padding: 0;
|
|
2508
|
+
background-color: white;
|
|
2509
|
+
border: 1px solid #e4e8ec;
|
|
2510
|
+
border-radius: 4px;
|
|
2511
|
+
|
|
2512
|
+
&[data-site='marryBaby'] {
|
|
2513
|
+
background-color: ${e=>e.theme.mbColors.green};
|
|
2514
|
+
border-radius: 16px;
|
|
2515
|
+
}
|
|
2516
|
+
.due-date-cal {
|
|
2517
|
+
.${ji} {
|
|
2518
|
+
${q.mbUp} {
|
|
2519
|
+
padding: 24px;
|
|
2520
|
+
}
|
|
2521
|
+
${q.mbDown} {
|
|
2522
|
+
padding: 16px;
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
display: table;
|
|
2526
|
+
width: 100%;
|
|
2527
|
+
.slider-due-date {
|
|
2528
|
+
margin-bottom: 12px;
|
|
2529
|
+
width: 100%;
|
|
2530
|
+
margin-left: 0px;
|
|
2531
|
+
margin-right: 0px;
|
|
2532
|
+
.slider-outer-wrapper {
|
|
2533
|
+
margin: 2rem -0.5rem 1rem;
|
|
2534
|
+
}
|
|
2535
|
+
&[data-theme='marryBaby'] {
|
|
2536
|
+
padding: 1rem;
|
|
2537
|
+
background: white;
|
|
2538
|
+
border-radius: 1rem;
|
|
2539
|
+
.slider-outer-wrapper {
|
|
2540
|
+
gap: 12px;
|
|
2541
|
+
display: flex;
|
|
2542
|
+
align-items: center;
|
|
2543
|
+
margin: 0.5rem;
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
.input-form {
|
|
2548
|
+
display: flex;
|
|
2549
|
+
${q.mbUp} {
|
|
2550
|
+
width: calc(50% - 8px);
|
|
2551
|
+
margin-bottom: 24px;
|
|
2552
|
+
}
|
|
2553
|
+
&[data-is-side='true'] {
|
|
2554
|
+
${q.mbUp} {
|
|
2555
|
+
margin-bottom: 12px;
|
|
2556
|
+
width: 100%;
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
${q.mbDown} {
|
|
2560
|
+
margin-bottom: 8px;
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
.heart-rate-cal {
|
|
2565
|
+
.slider-heart-rate {
|
|
2566
|
+
margin-bottom: 12px;
|
|
2567
|
+
width: 100%;
|
|
2568
|
+
margin-left: 0px;
|
|
2569
|
+
margin-right: 0px;
|
|
2570
|
+
.slider-outer-wrapper {
|
|
2571
|
+
margin: 2rem -0.5rem 1rem;
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
.ovulation-cal {
|
|
2576
|
+
display: flex;
|
|
2577
|
+
/* padding-top: 24px; */
|
|
2578
|
+
justify-content: space-between;
|
|
2579
|
+
flex-wrap: wrap;
|
|
2580
|
+
.slider-ovulation {
|
|
2581
|
+
margin-bottom: 12px;
|
|
2582
|
+
/* width: 100%; */
|
|
2583
|
+
margin-left: 0px;
|
|
2584
|
+
margin-right: 0px;
|
|
2585
|
+
.slider-outer-wrapper {
|
|
2586
|
+
margin: 2rem -0.5rem 1rem;
|
|
2587
|
+
}
|
|
2588
|
+
&[data-theme='marryBaby'] {
|
|
2589
|
+
padding: 1rem;
|
|
2590
|
+
background: white;
|
|
2591
|
+
border-radius: 1rem;
|
|
2592
|
+
.slider-outer-wrapper {
|
|
2593
|
+
gap: 12px;
|
|
2594
|
+
display: flex;
|
|
2595
|
+
align-items: center;
|
|
2596
|
+
margin: 0.5rem;
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
.input-form {
|
|
2601
|
+
display: flex;
|
|
2602
|
+
${q.mbUp} {
|
|
2603
|
+
width: calc(50% - 8px);
|
|
2604
|
+
margin-bottom: 24px;
|
|
2605
|
+
&[data-is-side='true'] {
|
|
2606
|
+
margin-bottom: 12px;
|
|
2607
|
+
width: 100%;
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
${q.mbDown} {
|
|
2611
|
+
margin-bottom: 8px;
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
.pwg-view-mobile {
|
|
2616
|
+
&[data-is-side='true'] {
|
|
2617
|
+
display: flex;
|
|
2618
|
+
flex-wrap: wrap;
|
|
2619
|
+
justify-content: space-between;
|
|
2620
|
+
}
|
|
2621
|
+
${q.mbDown} {
|
|
2622
|
+
display: flex;
|
|
2623
|
+
flex-wrap: wrap;
|
|
2624
|
+
justify-content: space-between;
|
|
2625
|
+
padding: 16px 0;
|
|
2626
|
+
}
|
|
2627
|
+
.hide-asking-mobile {
|
|
2628
|
+
gap: 10px;
|
|
2629
|
+
&[data-is-side='true'] {
|
|
2630
|
+
${q.mbUp} {
|
|
2631
|
+
display: none;
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
${q.mbDown} {
|
|
2635
|
+
display: none;
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
.hide-asking-desk {
|
|
2639
|
+
gap: 10px;
|
|
2640
|
+
&[data-is-side='true'] {
|
|
2641
|
+
${q.mbUp} {
|
|
2642
|
+
display: unset;
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
${q.mbUp} {
|
|
2646
|
+
display: none;
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
input[type='date']::after {
|
|
2651
|
+
width: 16px;
|
|
2652
|
+
height: 16px;
|
|
2653
|
+
background-image: url('https://hellobacsi.com/svg/calendar.svg');
|
|
2654
|
+
background-repeat: no-repeat;
|
|
2655
|
+
background-size: contain;
|
|
2656
|
+
content: '';
|
|
2657
|
+
}
|
|
2658
|
+
`,Fi=Ue(an)`
|
|
2659
|
+
&[data-direction='horizontal'] div[data-type='circle'] {
|
|
2660
|
+
margin-right: 8px;
|
|
2661
|
+
}
|
|
2662
|
+
label {
|
|
2663
|
+
font-size: 14px;
|
|
2664
|
+
}
|
|
2665
|
+
`,Hi=({isMobile:t,locale:a,onSubmitDueDate:n,dueDatePageInfo:i,expertUrl:l,isSide:r,siteType:o})=>{var s;const{t:c}=se();return e.createElement(_i,{"data-is-side":r,"data-site":o},e.createElement(yi,{isSide:r,siteType:o,bannerColor:"marryBaby"===o&&ye.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==i?void 0:i.featured_image)||ve.getAssetPath("health-tools/due-date-icon.svg"),loading:"lazy"}),heading:c("healthTools.dueDateCalculator"),medicalReview:{link:l,reviewer:null===(s=null==i?void 0:i.reviewed_by)||void 0===s?void 0:s.display_name,date:null==i?void 0:i.reviewed_date},isMobile:t}),e.createElement(Oi,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":r},e.createElement(Ai,{siteType:o,locale:a,onSubmitDueDate:n,isSide:r})))},Ri=Ue(te)`
|
|
2666
|
+
margin: 0 auto 24px;
|
|
2667
|
+
${q.mbUp} {
|
|
2668
|
+
max-width: 200px;
|
|
2669
|
+
margin: 24px auto;
|
|
2670
|
+
}
|
|
2671
|
+
`,Ui=Ue(j)`
|
|
2672
|
+
&.bmi--input {
|
|
2673
|
+
+ .bmi--input {
|
|
2674
|
+
margin-top: 24px;
|
|
2675
|
+
}
|
|
2676
|
+
.inputLabel {
|
|
2677
|
+
display: inline-block;
|
|
2678
|
+
margin-bottom: 5px;
|
|
2679
|
+
color: #595959;
|
|
2680
|
+
font-weight: bold;
|
|
2681
|
+
font-size: 12px;
|
|
2682
|
+
}
|
|
2683
|
+
.errorLabel {
|
|
2684
|
+
line-height: 1.3;
|
|
2685
|
+
}
|
|
2686
|
+
input[type='radio'] {
|
|
2687
|
+
padding: 0;
|
|
2688
|
+
}
|
|
2689
|
+
.bmi--input-radio_gender {
|
|
2690
|
+
width: 100%;
|
|
2691
|
+
gap: 16px;
|
|
2692
|
+
> div {
|
|
2693
|
+
${q.mbDown} {
|
|
2694
|
+
width: calc(50% - 8px);
|
|
2695
|
+
}
|
|
2696
|
+
width: calc(33% - 8px);
|
|
2697
|
+
}
|
|
2698
|
+
& > div > div {
|
|
2699
|
+
display: flex;
|
|
2700
|
+
flex-direction: row;
|
|
2701
|
+
justify-content: center;
|
|
2702
|
+
align-content: center;
|
|
2703
|
+
gap: 8px;
|
|
2704
|
+
padding-block: 5px;
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
.bmi-side-embed {
|
|
2708
|
+
> div {
|
|
2709
|
+
${q.mbUp} {
|
|
2710
|
+
width: calc(50% - 8px);
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
.radio-group-item-heading {
|
|
2715
|
+
margin-top: 0;
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
${q.mbDown} {
|
|
2720
|
+
&.bmi--input {
|
|
2721
|
+
.bmi--input-radio_gender {
|
|
2722
|
+
> div {
|
|
2723
|
+
.gender-image {
|
|
2724
|
+
width: 40px;
|
|
2725
|
+
height: 40px;
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
`,Wi=Ue.div`
|
|
2732
|
+
width: 100%;
|
|
2733
|
+
`,Vi=Ue.div`
|
|
2734
|
+
margin-bottom: 1rem;
|
|
2735
|
+
display: flex;
|
|
2736
|
+
flex-direction: column;
|
|
2737
|
+
gap: 16px;
|
|
2738
|
+
input {
|
|
2739
|
+
font-size: 12px;
|
|
2740
|
+
::placeholder {
|
|
2741
|
+
color: #8c8c8c;
|
|
2742
|
+
opacity: 1;
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2745
|
+
.input-label {
|
|
2746
|
+
label {
|
|
2747
|
+
display: inline-block;
|
|
2748
|
+
margin-bottom: 9px;
|
|
2749
|
+
color: #595959;
|
|
2750
|
+
font-weight: bold;
|
|
2751
|
+
font-size: 12px;
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
`;Ue.div`
|
|
2755
|
+
display: flex;
|
|
2756
|
+
flex-direction: column;
|
|
2757
|
+
#thr-dropdown {
|
|
2758
|
+
z-index: 10;
|
|
2759
|
+
width: 100%;
|
|
2760
|
+
min-width: unset;
|
|
2761
|
+
max-width: unset;
|
|
2762
|
+
color: ${e=>e.theme.colors.gray800};
|
|
2763
|
+
& > ul {
|
|
2764
|
+
z-index: 1;
|
|
2765
|
+
max-height: 300px;
|
|
2766
|
+
overflow-y: scroll;
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
`;const Gi=Ue.div`
|
|
2770
|
+
${q.mbUp} {
|
|
2771
|
+
display: flex;
|
|
2772
|
+
width: 100%;
|
|
2773
|
+
align-items: flex-start;
|
|
2774
|
+
justify-content: space-between;
|
|
2775
|
+
gap: 12px;
|
|
2776
|
+
> div {
|
|
2777
|
+
width: 100%;
|
|
2778
|
+
}
|
|
2779
|
+
&[data-is-side='true'] {
|
|
2780
|
+
${q.mbUp} {
|
|
2781
|
+
display: flex;
|
|
2782
|
+
flex-direction: column;
|
|
2783
|
+
gap: 0px;
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
${q.mbDown} {
|
|
2788
|
+
display: flex;
|
|
2789
|
+
flex-direction: column;
|
|
2790
|
+
gap: 0px;
|
|
2791
|
+
}
|
|
2792
|
+
`;function Zi({weight:e,height:t}){const a=t/100,n=e;return Math.round(n/(a*a)*10)/10}const qi=({value:n,onChange:l,onSubmit:r,disabled:o,bmiGenerated:s,bmiUnit:c,locale:d,isSide:m})=>{var g,u,h,b;const[v,y]=t(!1),{control:f,handleSubmit:x,setValue:w,watch:E}=yt(),k=E(),{t:C}=se(),{gender:N=!1,age:B=!1,height:D=!1,weight:$=!1,objective:P=!0}=o||{},{getHealthToolLink:z}=xt(d),S=i((()=>z(_.OVULATION)),[z]),L=i((()=>[{value:"lose-weight",label:C("bmi.objective.loseWeight")},{value:"maintain-weight",label:C("bmi.objective.maintainWeight")},{value:"gain-weight",label:C("bmi.objective.gainWeight")}]),[]),M=()=>{y(!0)};return a((()=>{Object.keys(n||{}).forEach((e=>{w(e,null==n?void 0:n[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[n]),a((()=>{l&&l(k)}),[k]),e.createElement(Wi,null,e.createElement("form",{onSubmit:x((e=>xe(void 0,void 0,void 0,(function*(){const t=c.heightConvert(e.height),a=c.weightConvert(e.weight),n={gender:e.gender,age:e.age,height:t,weight:a,bmi:Zi({height:t,weight:a})};P||(n.objective=e.objective),M(),r&&r(n)}))),M)},!N&&e.createElement(Vi,{"data-is-side":m},e.createElement(ft,{name:"gender",control:f,defaultValue:"male",render:({field:{onChange:t}})=>e.createElement(ua,{defaultValue:"male",onChange:e=>t(e),styles:e=>({root:!m&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:Ce(12)}}})})})),e.createElement(Gi,{"data-is-side":m},!B&&e.createElement(Vi,null,e.createElement(ft,{name:"age",control:f,rules:null===(g=s.age)||void 0===g?void 0:g.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(ae.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600},C("bmi.ageInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray300,as:"span"},C("bmi.ageInput.desc"))),placeholder:C("healthtool.placeholder.age"),name:t,value:a,onChange:n,error:v?null==i?void 0:i.message:"",min:0})})),!D&&e.createElement(Vi,null,e.createElement(ft,{name:"height",control:f,rules:null===(u=s.height)||void 0===u?void 0:u.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(ae.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600},C("bmi.heightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray300,as:"span"},C("bmi.heightInput.desc"))),placeholder:C("pwg.placeholder.height"),name:t,value:a,onChange:n,error:v?null==i?void 0:i.message:"",min:0})})),!$&&e.createElement(Vi,null,e.createElement(ft,{name:"weight",control:f,rules:null===(h=s.weight)||void 0===h?void 0:h.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(ae.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600},C("bmi.weightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray300,as:"span"},C("bmi.weightInput.desc"))),placeholder:C("pwg.placeholder.weight"),name:t,value:a,onChange:n,error:v?null==i?void 0:i.message:"",precision:1,min:0})})),!P&&e.createElement(Vi,null,e.createElement(ft,{name:"objective",control:f,defaultValue:"lose-weight",rules:null===(b=s.objective)||void 0===b?void 0:b.rule,render:({field:{name:t,value:a,onChange:n},fieldState:{error:i}})=>e.createElement(Ui,{size:"md",name:t,label:s.objective.label,CustomInput:e.createElement(an,{id:"bmi-objective",className:"bmi-objective",direction:"vertical",size:"small",options:L,value:a,onChange:n}),errorMessage:v?null==i?void 0:i.message:"",className:"bmi--input bmi--input-objective"})}))),e.createElement("div",{style:{display:"flex"}},e.createElement(Ri,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${de[d]}/${S}`,type:"submit"},C("bmi.submit")))))},Yi=({isMobile:t,onSubmit:a,bmiContent:n,isSide:i,bmiGenerated:l,bmiUnit:r,bmiLink:o,locale:s})=>{var c,d,m;const{t:p}=se();return e.createElement(_i,{"data-is-side":i},e.createElement(yi,{isSide:i,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||ve.getAssetPath("health-tools/bmi.svg"),loading:"lazy"}),heading:p("bmi.heading"),medicalReview:{link:null===(c=null==n?void 0:n.reviewBy)||void 0===c?void 0:c.link,reviewer:null===(d=null==n?void 0:n.reviewBy)||void 0===d?void 0:d.reviewer,date:null===(m=null==n?void 0:n.reviewBy)||void 0===m?void 0:m.date},isMobile:t}),e.createElement(vt,null,e.createElement(Oi,{as:"div","data-is-side":i},o&&e.createElement(qi,{onSubmit:a,bmiGenerated:l,locale:s,bmiUnit:r,isSide:i}))))},Xi=Ue.div`
|
|
2793
|
+
padding-block: 40px;
|
|
2794
|
+
|
|
2795
|
+
&[data-theme='marryBaby'] {
|
|
2796
|
+
padding-block: 0;
|
|
2797
|
+
padding-top: 12px;
|
|
2798
|
+
}
|
|
2799
|
+
`,Ki=Ue.form`
|
|
2800
|
+
display: flex;
|
|
2801
|
+
flex-direction: column;
|
|
2802
|
+
gap: 16px;
|
|
2803
|
+
`,Ji=Ue.div`
|
|
2804
|
+
display: flex;
|
|
2805
|
+
flex-direction: column;
|
|
2806
|
+
gap: 6px;
|
|
2807
|
+
margin-top: auto;
|
|
2808
|
+
|
|
2809
|
+
.error-input input {
|
|
2810
|
+
border: 1px solid ${e=>e.theme.colors.red700};
|
|
2811
|
+
}
|
|
2812
|
+
`,Qi=Ue(pt)`
|
|
2813
|
+
display: inline-flex;
|
|
2814
|
+
padding-bottom: 6px;
|
|
2815
|
+
gap: 4px;
|
|
2816
|
+
`,el=Ue.div`
|
|
2817
|
+
display: flex;
|
|
2818
|
+
width: 100%;
|
|
2819
|
+
align-items: center;
|
|
2820
|
+
justify-content: space-between;
|
|
2821
|
+
gap: 16px;
|
|
2822
|
+
> div {
|
|
2823
|
+
width: 100%;
|
|
2824
|
+
}
|
|
2825
|
+
`;Ue.div`
|
|
2826
|
+
${q.mbUp} {
|
|
2827
|
+
padding: 0 16px;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
margin-bottom: 24px;
|
|
2831
|
+
|
|
2832
|
+
& > :not(:last-child) {
|
|
2833
|
+
margin-bottom: 8px;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
.gender-selector {
|
|
2837
|
+
& > :not(:last-child) {
|
|
2838
|
+
margin-right: 16px;
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
& > div {
|
|
2842
|
+
width: calc(50% - 8px);
|
|
2843
|
+
|
|
2844
|
+
${q.mbUp} {
|
|
2845
|
+
max-width: 186px;
|
|
2846
|
+
justify-self: left;
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2850
|
+
`;const tl=(e=0,t=0)=>{try{if(e&&t){const a=Number(t)/Math.pow(Number(e)/100,2);return Number(((e,t=2)=>Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(e))(a))}return 0}catch(e){}return 0},al=Ue.div`
|
|
2851
|
+
padding: 36px;
|
|
2852
|
+
padding-top: 0;
|
|
2853
|
+
background-color: white;
|
|
2854
|
+
${q.mbDown} {
|
|
2855
|
+
padding: 16px;
|
|
2856
|
+
padding-top: 0;
|
|
2857
|
+
}
|
|
2858
|
+
&[data-theme='marryBaby'] {
|
|
2859
|
+
background-color: ${e=>e.theme.mbColors.green};
|
|
2860
|
+
padding: 24px;
|
|
2861
|
+
border-bottom-right-radius: 16px;
|
|
2862
|
+
border-bottom-left-radius: 16px;
|
|
2863
|
+
${q.mbDown} {
|
|
2864
|
+
padding: 16px;
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
`,nl=Ue((({onSubmit:t,onError:n,schema:l,siteType:r})=>{const{t:o}=se(),s="mb"===ze().other.template,{control:c,setValue:d,watch:m,handleSubmit:u,formState:{isSubmitted:h}}=yt({resolver:wt(l),mode:"onSubmit",defaultValues:{name:"",gender:Fe.Boy,measurementDate:new Date}}),b=m("weight"),v=m("height"),y=m("head"),f=i((()=>h&&!b&&!v&&!y),[h,b,v,y]);a((()=>{const e=tl(v,b);d("bmi",String(e)||"0")}),[b,v]);const x=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(e.Fragment,null,e.createElement(Xi,{"data-theme":r},e.createElement(Ki,{onSubmit:u(t,n)},e.createElement(ft,{control:c,name:"gender",render:({field:{onChange:t,value:a}})=>e.createElement(Et,{onChange:t,value:a,siteType:r})}),"marryBaby"===r?e.createElement(e.Fragment,null,e.createElement(ft,{control:c,name:"birthday",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ji,null,e.createElement(xi,{label:o("babyGrowth.input.birthday"),name:"birthday",size:"md",value:String(a),CustomInput:e.createElement(Fa,{onChange:t,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:i=>e.createElement(Je,Object.assign({onChange:t,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md"},i,{value:a&&Re(a).format(O)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}))}),e.createElement(el,null,e.createElement(ft,{control:c,name:"height",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ji,null,e.createElement(xi,{label:`${o("babyGrowth.height")} ${o("babyGrowth.cm")}`,name:"height",size:"md",value:String(a),CustomInput:e.createElement(Je,{className:f||(null==n?void 0:n.message)?"error-input":"",name:"height",size:"md",placeholder:"Nhập thông tin",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))}),e.createElement(ft,{control:c,name:"weight",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ji,null,e.createElement(xi,{label:`${o("babyGrowth.weight")} ${o("babyGrowth.kg")}`,name:"weight",size:"md",value:String(a),CustomInput:e.createElement(Je,{className:f||(null==n?void 0:n.message)?"error-input":"",name:"weight",size:"md",placeholder:"Nhập thông tin",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))})),e.createElement(el,null,e.createElement(ft,{control:c,name:"head",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ji,null,e.createElement(xi,{label:`${o("babyGrowth.headCircumference")} ${o("babyGrowth.cm")}`,name:"head",size:"md",value:String(a),CustomInput:e.createElement(Je,{className:f||(null==n?void 0:n.message)?"error-input":"",name:"head",size:"md",value:String(a),onChange:t,type:"number",placeholder:"Nhập thông tin",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()})}))}),e.createElement(ft,{control:c,name:"bmi",render:({field:{value:t}})=>e.createElement(Ji,null,e.createElement(xi,{label:`${o("babyGrowth.input.bmi")} ${o("babyGrowth.kg.m2")}`,name:"date",size:"md",value:String(t),CustomInput:e.createElement(Je,{name:"bmi",size:"md",type:"number",value:String(t),isDisabled:!0,style:{color:"#9495A0"}})}))})),e.createElement(ft,{control:c,name:"measurementDate",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ji,null,e.createElement(xi,{label:o("babyGrowth.input.measurementDate"),name:"date",size:"md",value:Bi(a),CustomInput:e.createElement(Fa,{placeholder:a&&Re(a).format(O),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:t,disabledDays:{after:new Date},customInput:i=>e.createElement(Je,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&Re(a).format(O),onChange:t},i,{value:a&&Re(a).format(O)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}))}),e.createElement(te,{size:"lg",variant:s?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":x},o("babyGrowth.input.submit"))):e.createElement(e.Fragment,null,e.createElement(ft,{control:c,name:"birthday",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ji,null,e.createElement(Qi,{size:"label1",htmlFor:"birthday"},e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},o("babyGrowth.input.birthday"))),e.createElement(Fa,{onChange:t,placeholder:"dd/mm/yyyy",pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",disabledDays:{after:new Date},customInput:i=>e.createElement(Je,Object.assign({onChange:t,className:(null==n?void 0:n.message)?"error-input":"",name:"birthday",size:"md",actionIcon:e.createElement(g.Calendar,null)},i,{value:a&&Re(a).format(O)}))}))}),e.createElement(el,null,e.createElement(ft,{control:c,name:"height",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ji,null,e.createElement(Qi,{size:"label1",htmlFor:"height"},e.createElement(p,{size:"s4",weight:"semiBold"},o("babyGrowth.height")),e.createElement(p,{as:"span",size:"n1",color:ye.colors.gray400},o("babyGrowth.cm"))),e.createElement(Je,{className:f||(null==n?void 0:n.message)?"error-input":"",name:"height",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))}),e.createElement(ft,{control:c,name:"weight",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ji,null,e.createElement(Qi,{size:"label1",htmlFor:"weight"},e.createElement(p,{size:"s4",weight:"semiBold"},o("babyGrowth.weight")),e.createElement(p,{as:"span",size:"n1",color:ye.colors.gray400},o("babyGrowth.kg"))),e.createElement(Je,{className:f||(null==n?void 0:n.message)?"error-input":"",name:"weight",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))})),e.createElement(el,null,e.createElement(ft,{control:c,name:"head",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ji,null,e.createElement(Qi,{size:"label1",htmlFor:"head"},e.createElement(p,{size:"s4",weight:"semiBold"},o("babyGrowth.headCircumference")),e.createElement(p,{as:"span",size:"n1",color:ye.colors.gray400},o("babyGrowth.cm"))),e.createElement(Je,{className:f||(null==n?void 0:n.message)?"error-input":"",name:"head",placeholder:"0",size:"md",value:String(a),onChange:t,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur()}))}),e.createElement(ft,{control:c,name:"bmi",render:({field:{value:t}})=>e.createElement(Ji,null,e.createElement(Qi,{size:"label1",htmlFor:"bmi"},e.createElement(p,{size:"s4",weight:"semiBold"},o("babyGrowth.input.bmi")),e.createElement(p,{as:"span",size:"n1",color:ye.colors.gray400},o("babyGrowth.kg.m2"))),e.createElement(Je,{name:"bmi",size:"md",type:"number",value:String(t),isDisabled:!0}))})),e.createElement(ft,{control:c,name:"measurementDate",render:({field:{onChange:t,value:a},fieldState:{error:n}})=>e.createElement(Ji,null,e.createElement(Qi,{size:"label1",htmlFor:"measurementDate"},e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},o("babyGrowth.input.measurementDate"))),e.createElement(Fa,{placeholder:a&&Re(a).format(O),pickedDate:a||new Date,displayDateFormat:"dd/MM/yyyy",onChange:t,disabledDays:{after:new Date},customInput:i=>e.createElement(Je,Object.assign({className:(null==n?void 0:n.message)&&"error-input",name:"measurementDate",size:"md",placeholder:a&&Re(a).format(O),onChange:t,actionIcon:e.createElement(g.Calendar,null)},i,{value:a&&Re(a).format(O)}))}))}),e.createElement(te,{size:"lg",variant:s?"secondary":"primary","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":x},o("babyGrowth.input.submit"))))))}))`
|
|
2868
|
+
padding-block: 0;
|
|
2869
|
+
`;Ue(yi)`
|
|
2870
|
+
padding-inline: 20px;
|
|
2871
|
+
|
|
2872
|
+
img.embedded-icon {
|
|
2873
|
+
width: 140px;
|
|
2874
|
+
margin-left: 50%;
|
|
2875
|
+
align-self: center;
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
${q.mbDown} {
|
|
2879
|
+
padding-inline: 0;
|
|
2880
|
+
img.embedded-icon {
|
|
2881
|
+
width: 125px;
|
|
2882
|
+
align-self: end;
|
|
2883
|
+
margin-left: 0;
|
|
2884
|
+
position: absolute;
|
|
2885
|
+
transform: translateY(50%);
|
|
2886
|
+
}
|
|
2887
|
+
.embedded-review {
|
|
2888
|
+
max-width: 200px;
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
`;const il=({isMobile:t,className:a,onSubmit:n,onError:i,schema:l,babyGrowthContent:r,siteType:o})=>{var s,c,d;return e.createElement(_i,{"babyGrowthContent-is-mobile":t,"data-site":o},e.createElement(yi,{siteType:o,bannerUrl:ve.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:ve.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===o&&ye.mbColors.mint,isEmbeded:!0,icon:e.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==r?void 0:r.featuredImage)||ve.getAssetPath("health-tools/toolsIconBabyGrowth.svg"),loading:"lazy"}),heading:(null==r?void 0:r.title)||"",medicalReview:{link:null===(s=null==r?void 0:r.reviewBy)||void 0===s?void 0:s.link,reviewer:null===(c=null==r?void 0:r.reviewBy)||void 0===c?void 0:c.reviewer.trim(),date:null===(d=null==r?void 0:r.reviewBy)||void 0===d?void 0:d.date},isMobile:t}),e.createElement(al,{"data-theme":o},e.createElement(nl,{siteType:o,schema:l,className:a,onSubmit:n,onError:i})))};var ll=De(((e,t)=>{const{isMarryBaby:a,isSide:n,direction:i}=t;return{root:Object.assign(Object.assign(Object.assign(Object.assign({position:"relative",display:"flex"},"auto"===i?{flexDirection:"row"}:{flexDirection:"column"===i?"column-reverse":"row"}),{gap:"8px",padding:"16px",borderRadius:a?"16px":"8px"}),!a&&{backgroundImage:`url(${ve.getAssetPath("bgPattern/baby-poop.svg")})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center"}),{backgroundColor:a?e.colors.toneGreen.toString():e.colors[e.primaryColor][0],[e.fn.smallerThan("sm")]:Object.assign({},"auto"===i?{flexDirection:"column-reverse"}:{}),[e.fn.smallerThan("md")]:{borderRadius:a?"12px":"8px"},[e.fn.largerThan("md")]:{padding:"32px",gap:"20px"}}),inner:{display:"flex",gap:"16px",flexDirection:"column",flex:1},content:{display:"flex",flexDirection:"column",gap:"16px"},reviewText:{display:"flex",gap:"4px",a:{color:e.colors.gray[6],fontWeight:"bold","&:not(:hover)":{textDecoration:"none"}}},reviewTextIcon:{flexShrink:0,width:"16px",height:"16px",[e.fn.largerThan("sm")]:{marginTop:"2px"}},thumbnail:Object.assign(Object.assign({img:{objectFit:"contain",objectPosition:"bottom",width:"100%",height:"100%"}},"column"===i?{width:"80%",alignSelf:"center"}:"row"===i?{width:"40%"}:{}),{[e.fn.smallerThan("sm")]:Object.assign({},"auto"===i?{width:"80%",alignSelf:"center"}:{}),[e.fn.largerThan("sm")]:Object.assign({},"auto"===i?{width:"40%"}:{})}),action:{display:"flex",justifyContent:a?"center":"flex-start"},btn:{minWidth:a?"auto":"143px",width:n||a?"100%":"auto",[e.fn.smallerThan("md")]:{width:"100%"}},sponsorLogo:Object.assign(Object.assign({position:"absolute",top:0,height:40,objectFit:"contain",objectPosition:"top"},"column"===i?{left:"16px",height:40}:"row"===i?{height:50,right:"40px"}:{left:"16px",height:40}),{[e.fn.largerThan("sm")]:Object.assign({},"auto"===i?{height:50,right:"40px",left:"unset"}:{})})}}));const rl=({babyPoopPage:t,onClickFindOut:a,currentUrl:n,isSide:i,direction:l="auto",sponsorLogo:r})=>{const{t:o}=se(),s="mb"===ze().other.template,{classes:c}=ll({isMarryBaby:s,isSide:i,direction:l},{name:"BabyPoopEmbed"}),{reviewedBy:d,reviewedDate:m}=t||{};return e.createElement("div",{className:c.root},e.createElement("div",{className:c.inner},e.createElement(M,{tag:"h3",as:"h2",color:!s&&"#284A75"},t.title),e.createElement("div",{className:c.content,"data-is-side":i},e.createElement(p,{size:"p3",className:"description"},t.description),!!d&&e.createElement("div",{className:c.reviewText},e.createElement("img",{src:ve.getAssetPath("reviewerCheck.svg"),alt:"check",className:c.reviewTextIcon,loading:"lazy"}),e.createElement(p,{size:"p4",color:ye.colors.gray600},o("categoryPage.info.reviewed")," ",e.createElement("a",{href:d.profile_url},d.display_name)," ",o("categoryPage.onDate",{date:m||""}))),e.createElement("div",{className:c.action},e.createElement(te,{className:c.btn,size:s?"lg":"md",variant:s?"secondary":"primary",onClick:a,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:n,style:{visibility:Boolean(a)?"visible":"hidden"}},o("babyPoop.findOut"))))),e.createElement("div",{className:c.thumbnail},e.createElement("img",{src:s?ve.getAssetPath("baby-poop.svg"):null==t?void 0:t.featuredImage,alt:t.title,loading:"lazy"})),r&&e.createElement("img",{loading:"lazy",src:r,alt:"sponsor",className:c.sponsorLogo}))},ol=Ue.div`
|
|
2892
|
+
display: flex;
|
|
2893
|
+
width: 100%;
|
|
2894
|
+
|
|
2895
|
+
&[data-direction='vertical'] {
|
|
2896
|
+
flex-direction: column;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
&[data-direction='horizontal'] {
|
|
2900
|
+
flex-wrap: wrap;
|
|
2901
|
+
}
|
|
2902
|
+
`,sl=Ue.div`
|
|
2903
|
+
display: flex;
|
|
2904
|
+
|
|
2905
|
+
padding: 8px;
|
|
2906
|
+
|
|
2907
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
2908
|
+
cursor: pointer;
|
|
2909
|
+
|
|
2910
|
+
& > div {
|
|
2911
|
+
display: flex;
|
|
2912
|
+
width: 100%;
|
|
2913
|
+
height: 100%;
|
|
2914
|
+
flex-direction: column;
|
|
2915
|
+
align-items: center;
|
|
2916
|
+
justify-content: flex-start;
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
&[data-selected='true'] {
|
|
2920
|
+
border: 1px solid #2d87f3;
|
|
2921
|
+
background: white;
|
|
2922
|
+
|
|
2923
|
+
.radio-group-item-heading {
|
|
2924
|
+
color: #2d87f3;
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
&[data-selected='false'] {
|
|
2928
|
+
border: 1px solid #f2f2f2;
|
|
2929
|
+
box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
|
|
2930
|
+
.radio-group-item-heading {
|
|
2931
|
+
color: #262626;
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
&[data-disabled='true'] {
|
|
2935
|
+
cursor: auto;
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
.radio-group-item-heading {
|
|
2939
|
+
margin-top: 8px;
|
|
2940
|
+
text-align: center;
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
.gender-image {
|
|
2944
|
+
width: 23px;
|
|
2945
|
+
height: 36px;
|
|
2946
|
+
object-fit: contain;
|
|
2947
|
+
}
|
|
2948
|
+
`,cl=({value:a,options:n,className:i,direction:l="horizontal",onChange:r,isDisabled:o})=>{const[s,c]=t(a);return e.createElement(ol,{className:i,"data-direction":l},n.map(((t,n)=>e.createElement(sl,{"data-selected":(a||s)===t.value,"data-disabled":o,key:`health-tool${n}`,onClick:()=>{var e;e=t.value,o||(c(e),r&&r(e))}},e.createElement("div",null,e.createElement("img",{src:(a||s)===t.value?t.imageActive:t.image,className:"gender-image",alt:"",loading:"lazy"}),t.label&&e.createElement(p,{weight:"bold",className:"radio-group-item-heading",size:"label1"},t.label))))))},dl=Ue(te)`
|
|
2949
|
+
margin: 0 auto 24px;
|
|
2950
|
+
width: 100%;
|
|
2951
|
+
${q.mbUp} {
|
|
2952
|
+
max-width: 200px;
|
|
2953
|
+
}
|
|
2954
|
+
`;Ue.div`
|
|
2955
|
+
display: flex;
|
|
2956
|
+
gap: 10px;
|
|
2957
|
+
line-height: 1;
|
|
2958
|
+
span {
|
|
2959
|
+
overflow: hidden;
|
|
2960
|
+
text-overflow: ellipsis;
|
|
2961
|
+
-webkit-line-clamp: 2;
|
|
2962
|
+
display: -webkit-box;
|
|
2963
|
+
-webkit-box-orient: vertical;
|
|
2964
|
+
}
|
|
2965
|
+
${q.mbUp} {
|
|
2966
|
+
padding-right: 16px;
|
|
2967
|
+
padding-bottom: 10px;
|
|
2968
|
+
flex-wrap: wrap;
|
|
2969
|
+
align-items: center;
|
|
2970
|
+
&[data-is-side='true'] {
|
|
2971
|
+
width: 100%;
|
|
2972
|
+
justify-content: unset;
|
|
2973
|
+
.label {
|
|
2974
|
+
margin-bottom: 9px;
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2978
|
+
&[data-is-side='true'] {
|
|
2979
|
+
${q.mbDown} {
|
|
2980
|
+
width: 100%;
|
|
2981
|
+
.label {
|
|
2982
|
+
margin-bottom: 9px;
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
${q.mbDown} {
|
|
2987
|
+
width: 100%;
|
|
2988
|
+
.label {
|
|
2989
|
+
margin-bottom: 9px;
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2992
|
+
`,Ue(j)`
|
|
2993
|
+
&.bmi--input {
|
|
2994
|
+
+ .bmi--input {
|
|
2995
|
+
margin-top: 24px;
|
|
2996
|
+
}
|
|
2997
|
+
.inputLabel {
|
|
2998
|
+
display: inline-block;
|
|
2999
|
+
margin-bottom: 5px;
|
|
3000
|
+
color: #595959;
|
|
3001
|
+
font-weight: bold;
|
|
3002
|
+
font-size: 12px;
|
|
3003
|
+
}
|
|
3004
|
+
.errorLabel {
|
|
3005
|
+
line-height: 1.3;
|
|
3006
|
+
}
|
|
3007
|
+
input[type='radio'] {
|
|
3008
|
+
padding: 0;
|
|
3009
|
+
}
|
|
3010
|
+
.bmi--input-radio_gender {
|
|
3011
|
+
width: 100%;
|
|
3012
|
+
gap: 16px;
|
|
3013
|
+
> div {
|
|
3014
|
+
width: calc(50% - 8px);
|
|
3015
|
+
}
|
|
3016
|
+
& > div > div {
|
|
3017
|
+
display: flex;
|
|
3018
|
+
flex-direction: row;
|
|
3019
|
+
justify-content: center;
|
|
3020
|
+
align-content: center;
|
|
3021
|
+
gap: 8px;
|
|
3022
|
+
padding-block: 5px;
|
|
3023
|
+
}
|
|
3024
|
+
}
|
|
3025
|
+
.radio-group-item-heading {
|
|
3026
|
+
margin-top: 0;
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
${q.mbUp} {
|
|
3031
|
+
&.bmi--input {
|
|
3032
|
+
.bmi--input-radio_gender {
|
|
3033
|
+
> div {
|
|
3034
|
+
max-width: 186px;
|
|
3035
|
+
}
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
${q.mbDown} {
|
|
3041
|
+
&.bmi--input {
|
|
3042
|
+
.bmi--input-radio_gender {
|
|
3043
|
+
> div {
|
|
3044
|
+
.gender-image {
|
|
3045
|
+
width: 40px;
|
|
3046
|
+
height: 40px;
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
`;const ml=Ue.div``,pl=Ue.div`
|
|
3053
|
+
display: flex;
|
|
3054
|
+
flex-direction: column;
|
|
3055
|
+
gap: 16px;
|
|
3056
|
+
input {
|
|
3057
|
+
font-size: 12px;
|
|
3058
|
+
}
|
|
3059
|
+
.gender-option {
|
|
3060
|
+
gap: 16px;
|
|
3061
|
+
> div {
|
|
3062
|
+
width: calc(50% - 8px);
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
.input-label {
|
|
3066
|
+
label {
|
|
3067
|
+
display: inline-block;
|
|
3068
|
+
margin-bottom: 9px;
|
|
3069
|
+
color: #595959;
|
|
3070
|
+
font-weight: bold;
|
|
3071
|
+
font-size: 12px;
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
`,gl=Ue.div`
|
|
3075
|
+
${q.mbUp} {
|
|
3076
|
+
display: flex;
|
|
3077
|
+
width: 100%;
|
|
3078
|
+
align-items: flex-start;
|
|
3079
|
+
justify-content: space-between;
|
|
3080
|
+
gap: 16px;
|
|
3081
|
+
margin-bottom: 24px;
|
|
3082
|
+
> div {
|
|
3083
|
+
width: 100%;
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
${q.mbDown} {
|
|
3088
|
+
display: flex;
|
|
3089
|
+
flex-direction: column;
|
|
3090
|
+
gap: 16px;
|
|
3091
|
+
margin-bottom: 8px;
|
|
3092
|
+
}
|
|
3093
|
+
&[data-is-side='true'] {
|
|
3094
|
+
${q.mbUp} {
|
|
3095
|
+
display: flex;
|
|
3096
|
+
flex-direction: column-reverse;
|
|
3097
|
+
gap: 0px;
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
`,ul=({info:n,className:i,style:l,onChange:r,errorMessage:o={},locale:s})=>{const{t:c}=se(),[d,m]=t(new Date),[g,u]=t({age:!1,rate:!1});return a((()=>{u({age:!1,rate:!1})}),[o]),e.createElement(ml,{style:l,className:i},e.createElement(Je,{className:"input-section due-date-input",label:e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600,style:{marginBottom:"9px",flex:"1"}},c("targetHeartRate.ageInput")),value:Bi(d),name:"date",size:"md",CustomInput:e.createElement(Fa,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:Bi(d)})),disabledDays:{after:new Date(tt(new Date,0))},locale:s,pickedDate:d,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{m(e),u((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},n),{age:et(new Date(e),Ni)});r&&r(t)})(e)},placeholder:"placeholder"}),errorMessage:g.age?"":o.age}))},hl=({isSide:n,locale:l,thrContent:r,isMobile:o,info:s,inputErrorMessage:c,onFormChange:d,onSubmit:m})=>{var g,u,h;const{t:b}=se(),{getHealthToolLink:v}=xt(l),y=i((()=>v(_.THR)),[v]),[f,x]=t(!1),[w,E]=t("low_intensity"),[k,C]=t("male"),[N,B]=t(60),[D,$]=t({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),P=[{idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40},{idAge:1,minAge:18,maxAge:25,rangeMale:49,rangeFemale:54},{idAge:2,minAge:25,maxAge:35,rangeMale:49,rangeFemale:54},{idAge:3,minAge:35,maxAge:45,rangeMale:50,rangeFemale:54},{idAge:4,minAge:45,maxAge:55,rangeMale:50,rangeFemale:54},{idAge:5,minAge:55,maxAge:65,rangeMale:51,rangeFemale:54},{idAge:6,minAge:65,maxAge:120,rangeMale:50,rangeFemale:54}],z=[{value:"low_intensity",label:b("targetHeartRate.lowIntensity.title"),image:ve.getAssetPath("/low.svg"),imageActive:ve.getAssetPath("/low-active.svg"),content:b("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:b("targetHeartRate.moderateIntensity.title"),image:ve.getAssetPath("/moderate.svg"),imageActive:ve.getAssetPath("/moderate-active.svg"),content:b("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:b("targetHeartRate.aerobicZone.title"),image:ve.getAssetPath("/aerobic.svg"),imageActive:ve.getAssetPath("/aerobic-active.svg"),content:b("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:b("targetHeartRate.vigorousIntensity.title"),image:ve.getAssetPath("/vigorous.svg"),imageActive:ve.getAssetPath("/vigorous-active.svg"),content:b("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:b("targetHeartRate.maximumIntensity.title"),image:ve.getAssetPath("/maximum.svg"),imageActive:ve.getAssetPath("/maximum-active.svg"),content:b("targetHeartRate.maximumIntensity.note")}];return a((()=>{const e=((new Date).getTime()-new Date(null==s?void 0:s.age).getTime())/1e3;x(e>=567648e3);const t=P.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||P[0];$(t),B(60)}),[null==s?void 0:s.age]),e.createElement(_i,{"data-is-side":n},e.createElement(yi,{isSide:n,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==r?void 0:r.featured_image)||ve.getAssetPath("health-tools/target-heart-rate-icon.svg"),loading:"lazy"}),heading:b("targetHearRate.heading"),medicalReview:(null===(g=null==r?void 0:r.reviewedBy)||void 0===g?void 0:g.display_name)?{link:Ct(null==r?void 0:r.reviewedBy),reviewer:null===(u=null==r?void 0:r.reviewedBy)||void 0===u?void 0:u.display_name,date:null==r?void 0:r.reviewedDate}:void 0,isMobile:o}),e.createElement(vt,null,e.createElement(Oi,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":n},e.createElement(gl,{"data-is-side":n},e.createElement(pl,null,e.createElement(ua,{defaultValue:"male",onChange:e=>{C(e),B(60)},styles:e=>({root:!n&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:Ce(12)}}})}))),e.createElement(gl,null,e.createElement(ul,{info:s,locale:l,errorMessage:c,onChange:d})),e.createElement("div",{className:"slider-heart-rate"},e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600},b("targetHeartRate.heartRateInput")),e.createElement("div",{className:"slider-outer-wrapper"},e.createElement(ut,{containerStyle:{flex:1},min:"male"===k?D.rangeMale:D.rangeFemale,max:200,step:1,value:N,withControl:!0,onChange:B}))),f&&e.createElement(pl,null,e.createElement(Ii,null,e.createElement(p,{size:"s4",style:{display:"inline-block",fontWeight:"bold",color:ye.colors.gray600,marginBottom:"9px"}},b("targetHeartRate.selectActive")),e.createElement("div",{className:"card"},e.createElement(cl,{options:z.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:w,onChange:e=>{E(e)},className:"gender-selector"})),w&&e.createElement("div",{className:"note"},e.createElement("img",{style:{height:"16px",width:"16px"},src:ve.getAssetPath("/infoIcon.svg"),alt:"",loading:"lazy"}),e.createElement(p,{size:"s4",color:"#595959"},null===(h=z[z.findIndex((e=>e.value==w))||0])||void 0===h?void 0:h.content)),!w&&e.createElement("span",{style:{color:"#e64728"}},c.intensity)))),e.createElement("div",{style:{display:"flex"}},e.createElement(dl,{size:"lg",onClick:()=>{m(k,w,[N])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${de[l]}/${y}`},b("bmi.submit")))))},bl=Ue(te)`
|
|
3101
|
+
margin: 0 auto 24px;
|
|
3102
|
+
${q.mbUp} {
|
|
3103
|
+
max-width: 200px;
|
|
3104
|
+
margin: 24px auto;
|
|
3105
|
+
}
|
|
3106
|
+
`;Ue(j)`
|
|
3107
|
+
&.bmi--input {
|
|
3108
|
+
+ .bmi--input {
|
|
3109
|
+
margin-top: 24px;
|
|
3110
|
+
}
|
|
3111
|
+
.inputLabel {
|
|
3112
|
+
display: inline-block;
|
|
3113
|
+
margin-bottom: 5px;
|
|
3114
|
+
color: #595959;
|
|
3115
|
+
font-weight: bold;
|
|
3116
|
+
font-size: 12px;
|
|
3117
|
+
}
|
|
3118
|
+
.errorLabel {
|
|
3119
|
+
line-height: 1.3;
|
|
3120
|
+
}
|
|
3121
|
+
input[type='radio'] {
|
|
3122
|
+
padding: 0;
|
|
3123
|
+
}
|
|
3124
|
+
.bmi--input-radio_gender {
|
|
3125
|
+
width: 100%;
|
|
3126
|
+
gap: 16px;
|
|
3127
|
+
> div {
|
|
3128
|
+
${q.mbDown} {
|
|
3129
|
+
width: calc(50% - 8px);
|
|
3130
|
+
}
|
|
3131
|
+
width: calc(33% - 8px);
|
|
3132
|
+
}
|
|
3133
|
+
& > div > div {
|
|
3134
|
+
display: flex;
|
|
3135
|
+
flex-direction: row;
|
|
3136
|
+
justify-content: center;
|
|
3137
|
+
align-content: center;
|
|
3138
|
+
gap: 8px;
|
|
3139
|
+
padding-block: 5px;
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
.bmi-side-embed {
|
|
3143
|
+
> div {
|
|
3144
|
+
${q.mbUp} {
|
|
3145
|
+
width: calc(50% - 8px);
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
}
|
|
3149
|
+
.radio-group-item-heading {
|
|
3150
|
+
margin-top: 0;
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
${q.mbDown} {
|
|
3155
|
+
&.bmi--input {
|
|
3156
|
+
.bmi--input-radio_gender {
|
|
3157
|
+
> div {
|
|
3158
|
+
.gender-image {
|
|
3159
|
+
width: 40px;
|
|
3160
|
+
height: 40px;
|
|
3161
|
+
}
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
`;const vl=Ue.div``,yl=Ue.div`
|
|
3167
|
+
margin-bottom: 1rem;
|
|
3168
|
+
display: flex;
|
|
3169
|
+
flex-direction: column;
|
|
3170
|
+
gap: 16px;
|
|
3171
|
+
input {
|
|
3172
|
+
font-size: 12px;
|
|
3173
|
+
::placeholder {
|
|
3174
|
+
color: #8c8c8c;
|
|
3175
|
+
opacity: 1;
|
|
3176
|
+
}
|
|
3177
|
+
}
|
|
3178
|
+
.gender-option {
|
|
3179
|
+
gap: 16px;
|
|
3180
|
+
> div {
|
|
3181
|
+
width: calc(50% - 8px);
|
|
3182
|
+
}
|
|
3183
|
+
}
|
|
3184
|
+
.input-label {
|
|
3185
|
+
label {
|
|
3186
|
+
display: inline-block;
|
|
3187
|
+
margin-bottom: 9px;
|
|
3188
|
+
color: #595959;
|
|
3189
|
+
font-weight: bold;
|
|
3190
|
+
font-size: 12px;
|
|
3191
|
+
}
|
|
3192
|
+
}
|
|
3193
|
+
`,fl=Ue.div`
|
|
3194
|
+
${q.mbUp} {
|
|
3195
|
+
display: flex;
|
|
3196
|
+
width: 100%;
|
|
3197
|
+
align-items: flex-start;
|
|
3198
|
+
justify-content: space-between;
|
|
3199
|
+
gap: 12px;
|
|
3200
|
+
> div {
|
|
3201
|
+
width: 100%;
|
|
3202
|
+
}
|
|
3203
|
+
&[data-is-side='true'] {
|
|
3204
|
+
${q.mbUp} {
|
|
3205
|
+
display: flex;
|
|
3206
|
+
flex-direction: column;
|
|
3207
|
+
gap: 0px;
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
${q.mbDown} {
|
|
3212
|
+
display: flex;
|
|
3213
|
+
flex-direction: column;
|
|
3214
|
+
gap: 0px;
|
|
3215
|
+
}
|
|
3216
|
+
`,xl=({info:n,className:l,style:r,onChange:o,errorMessage:s={},locale:c,onClick:d,isSide:m})=>{const{t:g}=se(),[u,h]=t({age:!1,height:!1,weight:!1}),{getHealthToolLink:b}=xt(c),v=i((()=>b(_.OVULATION)),[b]),[y,f]=t("male"),x=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},w=e=>{var t,a;a=e=>{h((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},n),{age:e});o&&o(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||a(t)};return a((()=>{o&&o(Object.assign(Object.assign({},n),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),a((()=>{h({age:!1,height:!1,weight:!1})}),[s]),e.createElement(vl,{style:r,className:l},e.createElement(yl,{"data-is-side":m},e.createElement(ua,{defaultValue:"male",onChange:e=>f(e),styles:e=>({root:!m&&{[e.fn.largerThan("sm")]:{width:"calc((100% - 24px) * 2/3 + 12px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:Ce(12)}}})})),e.createElement(fl,{"data-is-side":m},e.createElement(yl,null,e.createElement(ae.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600},g("bmi.ageInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray300,as:"span"},g("bmi.ageInput.desc"))),placeholder:g("healthtool.placeholder.age"),value:Number(n.age),onChange:e=>w(String(e)),error:u.age?"":s.age,min:0})),e.createElement(yl,null,e.createElement(ae.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600},g("bmi.heightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray300,as:"span"},g("bmi.heightInput.desc"))),placeholder:g("pwg.placeholder.height"),value:Number(n.height),onChange:e=>{return t=String(e),void x(t,(e=>{h((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},n),{height:e});o&&o(t)}));var t},error:u.height?"":s.height,min:0})),e.createElement(yl,null,e.createElement(ae.Number,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray600},g("bmi.weightInput")," ",e.createElement(p,{size:"s4",weight:"semiBold",color:ye.colors.gray300,as:"span"},g("bmi.weightInput.desc"))),placeholder:g("pwg.placeholder.weight"),value:Number(n.weight),onChange:e=>{return t=String(e),h((e=>Object.assign(Object.assign({},e),{weight:!0}))),void x(t,(e=>{const t=Object.assign(Object.assign({},n),{weight:e});o&&o(t)}));var t},error:u.weight?"":s.weight,min:0,precision:1}))),e.createElement("div",{style:{display:"flex"}},e.createElement(bl,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${de[c]}/${v}`,onClick:()=>{d(y)}},g("bmi.submit"))))},wl=({isSide:t,locale:a,bmrContent:n,isMobile:i,info:l,inputErrorMessage:r,onFormChange:o,onSubmit:s})=>{var c,d,m;const{t:p}=se();return e.createElement(_i,{"data-is-side":t},e.createElement(yi,{isSide:t,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||ve.getAssetPath("health-tools/bmr.svg"),loading:"lazy"}),heading:p("bmr.heading"),medicalReview:{link:null===(c=null==n?void 0:n.reviewBy)||void 0===c?void 0:c.link,reviewer:null===(d=null==n?void 0:n.reviewBy)||void 0===d?void 0:d.reviewer,date:null===(m=null==n?void 0:n.reviewBy)||void 0===m?void 0:m.date},isMobile:i}),e.createElement(vt,null,e.createElement(Oi,{onSubmit:e=>e.preventDefault(),"data-is-side":t},e.createElement(Si,null,e.createElement(xl,{info:l,locale:a,errorMessage:r,onChange:o,onClick:s,isSide:t})))))},El=({locale:a,onSubmit:n,isSide:l,siteType:r})=>{const{t:o}=se(),[s,c]=t(new Date),[d,m]=t(28),[u,h]=t(7),b={cycle:d,periodDateStart:s,periodLength:u},v=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(e.Fragment,null,e.createElement(ki,{className:"input-form input-section","data-is-side":!0},"marryBaby"===r?e.createElement(xi,{label:o("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:Bi(s),CustomInput:e.createElement(Fa,{onChange:e=>{c(e)},placeholder:"dd/mm/yyyy",pickedDate:s,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:tt(new Date,-45),after:new Date},customInput:t=>e.createElement(Je,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:s&&Re(s).format(O)}))}),actionIcon:e.createElement(g.CalendarMB,{size:32})}):e.createElement(Je,{label:e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.lastPeriod.lastPeriodLabel")),value:Bi(s),size:"md",name:"date",className:"due-date-input",CustomInput:e.createElement(Fa,{customInput:t=>e.createElement("input",Object.assign({},t,{type:"date",className:"due-date-input",value:Bi(s)})),locale:a,pickedDate:s,displayDateFormat:gt,onChange:e=>{c(e)},disabledDays:{before:tt(new Date,-45),after:new Date},placeholder:"Chọn ngày"})})),e.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===r?"marryBaby":"","data-is-side":l},"marryBaby"===r?e.createElement(ht,{type:"bodytext-3",color:ye.mbColors.midGray},o("ovulationPage.cycleLength")):e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959"},o("ovulationPage.cycleLength")+" ",e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},o("ovulationPage.dayUnit"))),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&e.createElement(p,{size:"s3",weight:"semiBold",color:ye.colors.gray600},d),e.createElement(ut,{containerStyle:{flex:1},min:21,max:45,step:1,value:d,onChange:m,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,label:"marryBaby"!==r?void 0:null}))),e.createElement("div",{className:"slider-ovulation day-slider","data-theme":"marryBaby"===r?"marryBaby":"","data-is-side":l},"marryBaby"===r?e.createElement(ht,{type:"bodytext-3",color:ye.mbColors.midGray},o("ovulationPage.periodDuration")):e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959"},o("ovulationPage.periodDuration")+" ",e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{display:"inline",minHeight:"36px"}},o("ovulationPage.dayUnit"))),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&e.createElement(p,{size:"s3",weight:"semiBold",color:ye.colors.gray600},u),e.createElement(ut,{containerStyle:{flex:1},min:1,max:15,step:1,value:u,onChange:h,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,label:"marryBaby"!==r?void 0:null}))),e.createElement("div",{style:{width:"100%",display:"flex"}},e.createElement(te,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===r?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:v,onClick:()=>{localStorage.setItem("ovulationInfo",JSON.stringify(b)),n&&n({startDate:s,cycle:d,periodLength:u})},role:"button"},o("dueDatePage.lastPeriod.calculate"))))};var kl;!function(e){e[e.trackPeriod=0]="trackPeriod",e[e.conceive=1]="conceive",e[e.avoidPregnancy=2]="avoidPregnancy"}(kl||(kl={}));const Cl=({locale:a,onSubmitOvulation:n,isSide:i,siteType:l})=>{const{t:r}=se(),[o,s]=t(kl.trackPeriod),c=[{label:r("ovulationPage.trackPeriod"),value:kl.trackPeriod},{label:r("ovulationPage.conceive"),value:kl.conceive},{label:r("ovulationPage.avoidPregnancy"),value:kl.avoidPregnancy}];return e.createElement(Mi,null,e.createElement(wi,{className:"input-form input-section","data-is-side":!0},"marryBaby"===l?e.createElement(fi,{groupedWithLabel:r("dueDatePage.calculationMethod"),options:c,placeholder:r("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:c[o],onChange:e=>{s(e.value)}}):e.createElement(e.Fragment,null,e.createElement(p,{size:"s4",weight:"semiBold",color:"#595959",style:{marginBottom:"9px",flex:"1"}},r("ovulationPage.objectives")),e.createElement(Ei,{"data-is-side":i},e.createElement(bt,{options:c,placeholder:r("ovulationPage.trackPeriod"),id:"due-date-dropdown",size:"md",value:c[o],onChange:e=>{s(e.value)}})))),e.createElement(El,{siteType:l,locale:a,onSubmit:({startDate:e,cycle:t,periodLength:a})=>{n&&n({method:o,periodDateStart:e,cycle:t,periodLength:a})},isSide:i}))},Nl=({onSubmitOvulation:t,locale:a,ovulationPageInfo:n,expertUrl:i,isSide:l=!1,siteType:r,isMobile:o})=>{var s;const{t:c}=se();return e.createElement(_i,{"data-is-side":l,"data-site":r},e.createElement(yi,{isSide:l,bannerUrl:ve.getAssetPath("embedToolBannerPink.svg"),siteType:r,bannerColor:"marryBaby"===r&&ye.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||ve.getAssetPath("health-tools/ovulation-icon.svg"),loading:"lazy"}),heading:c("healthTools.ovulationCalculator"),medicalReview:{link:i,reviewer:null===(s=null==n?void 0:n.reviewed_by)||void 0===s?void 0:s.display_name,date:null==n?void 0:n.reviewed_date},isMobile:o}),e.createElement(Oi,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":l},e.createElement(Cl,{siteType:r,locale:a,onSubmitOvulation:t,isSide:l})))},Bl=({siteType:i,info:l,onChange:r,errorMessage:o={}})=>{const{t:s}=se(),[c,d]=t({weightBefore:!1,height:!1,weight:!1}),[m,p]=t(0),g=n(null);a((()=>{var e;p(null===(e=g.current)||void 0===e?void 0:e.clientHeight)}));const u=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},h=e=>{u(e,(e=>{d((e=>Object.assign(Object.assign({},e),{weightBefore:!0})));const t=Object.assign(Object.assign({},l),{weightBefore:e});r&&r(t)}))},b=e=>{u(e,(e=>{d((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});r&&r(t)}))},v=e=>{u(e,(e=>{d((e=>Object.assign(Object.assign({},e),{weight:!0})));const t=Object.assign(Object.assign({},l),{weight:e});r&&r(t)}))};return a((()=>{r&&r(Object.assign({},l))}),[]),a((()=>{d({weightBefore:!1,height:!1,weight:!1})}),[o]),"marryBaby"===i?e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(xi,{label:s("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==l?void 0:l.height,CustomInput:e.createElement(Je,{className:(null==c?void 0:c.height)?"":"error-input",name:"pwg-height",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.height,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==c?void 0:c.height)?"":null==o?void 0:o.height,showErrorMessage:!1,onChange:b})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(xi,{label:s("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==l?void 0:l.weightBefore,CustomInput:e.createElement(Je,{className:(null==c?void 0:c.weightBefore)?"":"error-input",name:"pwg-weightBefore",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.weightBefore,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==c?void 0:c.weightBefore)?"":null==o?void 0:o.height,showErrorMessage:!1,onChange:h})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(xi,{label:s("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==l?void 0:l.weight,CustomInput:e.createElement(Je,{className:(null==c?void 0:c.weight)?"":"error-input",name:"pwg-weight",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.weight,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==c?void 0:c.weight)?"":null==o?void 0:o.weight,showErrorMessage:!1,onChange:v})}))):e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg"},e.createElement(j,{placeholder:s("pwg.placeholder.height"),className:"input-section",label:e.createElement("span",{style:{color:ye.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},s("pregnancyWeightGain.heightInput")," ",e.createElement("span",{style:{color:`${ye.colors.gray300}`}},s("bmi.heightInput.desc"))),errorMessage:c.height?"":null==o?void 0:o.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==l?void 0:l.height,onChange:b})),e.createElement("div",{className:"input-form-pwg"},e.createElement(j,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:ye.colors.gray600,fontWeight:"bold",marginBottom:"9px"},ref:g,className:"label-text"},s("pregnancyWeightGain.weightBeforeInput")," ",e.createElement("span",{style:{color:`${ye.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weightBefore?"":null==o?void 0:o.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:h,value:null==l?void 0:l.weightBefore})),e.createElement("div",{className:"input-form-pwg"},e.createElement(j,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:ye.colors.gray600,fontWeight:"bold",marginBottom:"9px",minHeight:m},className:"label-text"},s("pregnancyWeightGain.weightInput")," ",e.createElement("span",{style:{color:`${ye.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weight?"":null==o?void 0:o.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==l?void 0:l.weight,onChange:v})))},Dl=({locale:a,onClick:n,inputErrorMessage:l,pwgContent:r,onFormChange:o,info:s,isMobile:c,isSide:d=!1,siteType:m})=>{var g;const{t:u}=se(),[h,b]=t("notwins"),[v,y]=t({label:"1",value:1}),f=i((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:x}=xt(a),w=i((()=>x(_.PWG)),[x]);return e.createElement(_i,{"data-is-side":d,"data-site":m},e.createElement(yi,{siteType:m,bannerColor:"marryBaby"===m&&ye.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==r?void 0:r.featuredImage)||ve.getAssetPath("health-tools/pwg-icon.svg"),loading:"lazy"}),heading:u("pregnancyWeightGain.heading"),medicalReview:{link:Ct(null==r?void 0:r.reviewedBy),reviewer:null===(g=null==r?void 0:r.reviewedBy)||void 0===g?void 0:g.display_name,date:null==r?void 0:r.reviewedDate},isMobile:c,isSide:d}),e.createElement(vt,null,e.createElement(Oi,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":d},"marryBaby"!==m&&e.createElement(zi,{className:"hide-asking-mobile","data-is-side":d},e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"block",color:ye.colors.gray600},className:"label"},u("pregnancyWeightGain.havingTwins")),e.createElement(Fi,{options:[{value:"twins",label:u("switchBtn.yes")},{value:"notwins",label:u("switchBtn.no")}],value:h,onChange:e=>b(e),className:"gender-selector",id:"twins-check",direction:"horizontal",size:"small"})),e.createElement(Mi,null,e.createElement(Ti,{className:"input-section input-form-pwg","data-is-side":d},"marryBaby"===m?e.createElement(fi,{groupedWithLabel:u("pregnancyWeightGain.weekInput"),options:f,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:v,onChange:e=>y({label:e.label,value:e.value})}):e.createElement(e.Fragment,null,e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"inline-block",marginBottom:"9px",color:ye.colors.gray600}},u("pregnancyWeightGain.weekInput")),e.createElement(bt,{options:f,placeholder:String(v.label),id:"weight-gain-dropdown",size:"md",value:v,onChange:e=>y({label:e.label,value:e.value})}))),e.createElement(Bl,{siteType:m,info:s,errorMessage:l,onChange:o})),"marryBaby"!==m&&e.createElement(zi,{className:"hide-asking-desk","data-is-side":d},e.createElement(p,{size:"s4",weight:"semiBold",style:{display:"block",color:ye.colors.gray600},className:"label"},u("pregnancyWeightGain.havingTwins")),e.createElement(Fi,{options:[{value:"twins",label:u("switchBtn.yes")},{value:"notwins",label:u("switchBtn.no")}],value:h,onChange:e=>b(e),className:"gender-selector",id:"twins-check-mobile",direction:"horizontal",size:"small"})),"marryBaby"===m&&e.createElement(ca,{name:"twins",label:u("pregnancyWeightGain.havingTwins"),checked:"twins"===h,siteType:"marryBaby",onChange:()=>{b("twins"===h?"notwins":"twins")},value:"twins"}),e.createElement(Li,{"data-is-side":d,"data-site":m},e.createElement(te,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${de["marryBaby"===m?"vi-VN_MB":a]}/${w}`,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===m?"secondary":"primary",onClick:()=>n(h,v.value),role:"button"},u("dueDatePage.lastPeriod.calculate"))))))},$l=Ue.div`
|
|
3217
|
+
flex: 1;
|
|
3218
|
+
`,Pl=Ue.div`
|
|
3219
|
+
padding: 0 10px;
|
|
3220
|
+
`,zl=Ue.div`
|
|
3221
|
+
display: flex;
|
|
3222
|
+
height: 80px;
|
|
3223
|
+
align-items: center;
|
|
3224
|
+
.calendar-month {
|
|
3225
|
+
font-size: 16px;
|
|
3226
|
+
flex: 1;
|
|
3227
|
+
text-align: center;
|
|
3228
|
+
strong {
|
|
3229
|
+
margin-left: 5px;
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
${q.mbDown} {
|
|
3233
|
+
height: 70px;
|
|
3234
|
+
}
|
|
3235
|
+
`,Sl=Ue.div`
|
|
3236
|
+
display: grid;
|
|
3237
|
+
grid-template-columns: repeat(7, 1fr);
|
|
3238
|
+
row-gap: 2px;
|
|
3239
|
+
`,Ll=Ue(Sl)`
|
|
3240
|
+
margin-bottom: 8px;
|
|
3241
|
+
`;Ue.div`
|
|
3242
|
+
height: 40px;
|
|
3243
|
+
width: 40px;
|
|
3244
|
+
display: flex;
|
|
3245
|
+
align-items: center;
|
|
3246
|
+
justify-content: center;
|
|
3247
|
+
`;const Ml=Ue.div`
|
|
3248
|
+
font-size: 14px;
|
|
3249
|
+
display: flex;
|
|
3250
|
+
justify-content: center;
|
|
3251
|
+
align-items: center;
|
|
3252
|
+
color: 1px solid ${e=>e.theme.colors.gray800};
|
|
3253
|
+
font-weight: 300;
|
|
3254
|
+
`,Tl=Ue.div`
|
|
3255
|
+
width: 18px;
|
|
3256
|
+
position: relative;
|
|
3257
|
+
&::before {
|
|
3258
|
+
content: '';
|
|
3259
|
+
position: absolute;
|
|
3260
|
+
inset: 16px 0 0 0;
|
|
3261
|
+
width: 1px;
|
|
3262
|
+
left: 50%;
|
|
3263
|
+
right: 50%;
|
|
3264
|
+
background: ${e=>e.theme.colors.neutral100};
|
|
3265
|
+
}
|
|
3266
|
+
`,Il=Ue.div`
|
|
3267
|
+
margin: 0 auto;
|
|
3268
|
+
`,Al=Ue.div`
|
|
3269
|
+
position: relative;
|
|
3270
|
+
`,jl=Ue(Sl)``,Ol=Ue.div`
|
|
3271
|
+
position: relative;
|
|
3272
|
+
display: flex;
|
|
3273
|
+
justify-content: center;
|
|
3274
|
+
align-items: center;
|
|
3275
|
+
height: 34px;
|
|
3276
|
+
${q.mbUp} {
|
|
3277
|
+
height: 38px;
|
|
3278
|
+
}
|
|
3279
|
+
&[data-is-disabled='true'] {
|
|
3280
|
+
opacity: 0.3;
|
|
3281
|
+
}
|
|
3282
|
+
&[data-in-range='true']:not([data-is-from='true'][data-is-to='true']) {
|
|
3283
|
+
background-color: ${e=>e.theme.colors.gray100};
|
|
3284
|
+
}
|
|
3285
|
+
&:before {
|
|
3286
|
+
position: absolute;
|
|
3287
|
+
top: 0;
|
|
3288
|
+
bottom: 0;
|
|
3289
|
+
right: 0;
|
|
3290
|
+
background-color: ${e=>e.theme.colors.gray100};
|
|
3291
|
+
}
|
|
3292
|
+
&[data-is-from='true'][data-in-range='true'][data-is-to='false'] {
|
|
3293
|
+
background-color: transparent;
|
|
3294
|
+
&:before {
|
|
3295
|
+
content: '';
|
|
3296
|
+
left: 50%;
|
|
3297
|
+
right: 0;
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
&[data-is-to='true'][data-in-range='true'][data-is-from='false'],
|
|
3302
|
+
&:hover[data-in-range='true']:is([data-has-range='false'] &) {
|
|
3303
|
+
background-color: transparent;
|
|
3304
|
+
&:before {
|
|
3305
|
+
content: '';
|
|
3306
|
+
left: 0;
|
|
3307
|
+
right: 50%;
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
`,_l=Ue.div`
|
|
3311
|
+
position: relative;
|
|
3312
|
+
font-weight: 600;
|
|
3313
|
+
${q.mbDown} {
|
|
3314
|
+
width: 32px;
|
|
3315
|
+
height: 32px;
|
|
3316
|
+
}
|
|
3317
|
+
${q.mbUp} {
|
|
3318
|
+
width: 36px;
|
|
3319
|
+
height: 36px;
|
|
3320
|
+
}
|
|
3321
|
+
display: flex;
|
|
3322
|
+
justify-content: center;
|
|
3323
|
+
align-items: center;
|
|
3324
|
+
cursor: pointer;
|
|
3325
|
+
[data-is-disabled='true'] & {
|
|
3326
|
+
cursor: not-allowed;
|
|
3327
|
+
}
|
|
3328
|
+
line-height: 1;
|
|
3329
|
+
color: 1px solid ${e=>e.theme.colors.gray800};
|
|
3330
|
+
[data-is-selected='true'] &,
|
|
3331
|
+
[data-is-today='true'] &,
|
|
3332
|
+
[data-is-selected='false']:hover & {
|
|
3333
|
+
border-radius: 32px;
|
|
3334
|
+
}
|
|
3335
|
+
[data-is-selected='true'] & {
|
|
3336
|
+
background-color: ${e=>e.theme.colors.primaryBase};
|
|
3337
|
+
color: white;
|
|
3338
|
+
}
|
|
3339
|
+
[data-is-selected='false']:hover & {
|
|
3340
|
+
background-color: ${e=>e.theme.colors.primary50};
|
|
3341
|
+
}
|
|
3342
|
+
[data-is-today='true'][data-is-selected='false'] & {
|
|
3343
|
+
background-color: transparent;
|
|
3344
|
+
border-radius: 32px;
|
|
3345
|
+
border: 1px solid ${e=>e.theme.colors.primaryBase};
|
|
3346
|
+
}
|
|
3347
|
+
`;const Fl={"en-PH":Dt,"vi-VN":Pt,"zh-TW":zt,"id-ID":$t};function Hl(a){const{value:n={from:null,to:null}}=a,[l,r]=t(null),{isMobile:o}=K(),[s,c]=t((()=>n)),[d,m]=t((()=>{var e;return nt(null!==(e=n.from)&&void 0!==e?e:new Date)})),p=i((()=>it(d,1)),[d]);const g=Object.assign(Object.assign({},a),{goToNextMonth:function(){m((e=>it(e,1)))},goToPreviousMonth:function(){m((e=>lt(e,1)))},range:s,setRange:c,hoverDay:l,setHoverDay:r});return e.createElement(e.Fragment,null,e.createElement(Rl,Object.assign({},g,{date:d})),!o&&e.createElement(Tl,null),!o&&e.createElement(Rl,Object.assign({},g,{date:p})))}function Rl({date:t,range:n,setRange:l,onChange:r,goToPreviousMonth:o,goToNextMonth:s,minDate:c,maxDate:d,close:m=(()=>{}),autoClose:p=!1,hoverDay:g,setHoverDay:u}){const{locale:h}=se(),b=i((()=>{var e;return null!==(e=Fl[h])&&void 0!==e?e:Fl["en-PH"]}),[h]),v=i((()=>et(t,"MMMM",{locale:b})),[t,b]),y=i((()=>b?[1,2,3,4,5,6,0].map((e=>b.localize.day(e,{width:"narrow"}))):[]),[b]);function f(t,a){if(null===t)return e.createElement(Ol,{key:`idx-${a}`,"data-empty":"true"});const i=t.getDate(),r=ot(t),o=!!n.from&&st(n.from,t),s=!!n.to&&st(n.to,t),h=o||s;let b=!1;null!==g&&n.from&&at(n.from,g)&&!n.to?b=ct(t,{start:n.from,end:g}):n.from&&n.to&&(b=ct(t,{start:n.from,end:n.to}));let v=!1;return c&&d?v=!ct(t,{start:c,end:d}):c?v=at(t,c):d&&(v=dt(t,d)),e.createElement(Ol,{key:i,"data-is-today":r,"data-is-past":!r&&mt(t),"data-is-selected":h,"data-is-disabled":v,"data-in-range":b,"data-is-from":o,"data-is-to":s,onMouseEnter:()=>{u(t)},onMouseLeave:()=>u(null),onClick:()=>{v||l((e=>(p&&n.from&&!n.to&&m(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?at(e,t.from)?Object.assign(Object.assign({},t),{from:e}):Object.assign(Object.assign({},t),{to:e}):t:Object.assign(Object.assign({},t),{from:e})}(t,e))))}},e.createElement(_l,{onClick:()=>{}},e.createElement("p",null,i)))}return a((()=>{n.from&&n.to&&r(n)}),[n]),e.createElement($l,{className:"calendar-wrapper"},e.createElement(zl,null,e.createElement(Ke,{onClick:o,size:"md",color:"ghost",icon:e.createElement("img",{src:ve.getAssetPath("calendarArrowLeft.svg"),loading:"lazy"})}),e.createElement("div",{className:"calendar-month"},v,e.createElement("strong",null,et(t,"yyyy"))),e.createElement(Ke,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:ve.getAssetPath("calendarArrowRight.svg"),loading:"lazy"})})),e.createElement(Pl,null,e.createElement("div",null,e.createElement(Ll,null,y.map(((t,a)=>e.createElement(Ml,{key:`${t}-${a}`},t))))),e.createElement("div",null,function(){const a=t.getFullYear(),i=t.getMonth(),l=rt(t),r=[];for(let e=1;e<=l;e++)r.push(new Date(a,i,e));const o=r[0]?r[0].getDay():0;if(1!==o){const e=0===o?6:o-1;for(let t=0;t<e;t++)r.unshift(null)}return e.createElement(Al,{key:`month-${i}`,"data-month-index":i,"data-has-range":Boolean(n.from&&n.to)},e.createElement(Il,null,e.createElement(jl,null,r.map(f))))}())))}const Ul=Ue.div`
|
|
3348
|
+
display: block;
|
|
3349
|
+
position: relative;
|
|
3350
|
+
width: 270px;
|
|
3351
|
+
input {
|
|
3352
|
+
pointer-events: none;
|
|
3353
|
+
caret-color: transparent;
|
|
3354
|
+
}
|
|
3355
|
+
${q.mbDown} {
|
|
3356
|
+
width: 100%;
|
|
3357
|
+
}
|
|
3358
|
+
`,Wl=Ue.div`
|
|
3359
|
+
display: flex;
|
|
3360
|
+
position: absolute;
|
|
3361
|
+
top: 46px;
|
|
3362
|
+
left: 0;
|
|
3363
|
+
width: 684px;
|
|
3364
|
+
border: 1px solid ${e=>e.theme.colors.gray200};
|
|
3365
|
+
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
|
|
3366
|
+
drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
|
|
3367
|
+
drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
|
|
3368
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
3369
|
+
background-color: white;
|
|
3370
|
+
z-index: 100;
|
|
3371
|
+
padding-bottom: 16px;
|
|
3372
|
+
align-items: stretch;
|
|
3373
|
+
user-select: none;
|
|
3374
|
+
${q.mbDown} {
|
|
3375
|
+
width: 100%;
|
|
3376
|
+
}
|
|
3377
|
+
`;function Vl({inputSize:a="md",name:l="date-range-picker",value:r,minDate:o,maxDate:s,onChange:c,className:d,autoClose:m=!1}){r||(r={from:null,to:null});const[p,g]=t(!1);function u(){g(!1)}const h=n(null);function b(e){c&&c(e)}function v(e){return et(e,"dd/MM/yyyy")}Bt(h,(()=>{u()}));const y=i((()=>r.from&&r.to?st(r.from,r.to)?v(r.from):`${v(r.from)} - ${v(r.to)}`:""),[r.from,r.to]);return e.createElement(Ul,{className:[d,p&&"focused"].filter(Boolean).join(" "),ref:h},e.createElement("label",{htmlFor:l},e.createElement(j,{size:a,value:y,name:l,actionIcon:e.createElement("img",{src:ve.getAssetPath("calendar.svg"),loading:"lazy"}),onFocus:()=>g(!0)})),p?e.createElement(Wl,{onMouseDown:e=>{e.stopPropagation()}},e.createElement(Hl,{value:r,onChange:b,minDate:o,maxDate:s,close:u,autoClose:m})):null)}var Gl="WUqzfRb",Zl="MnVGtSY",ql="NclbhXQ";const Yl=({LinkComponent:t,page:a,isLast:n,onChangePage:i})=>{const{label:l,value:r,isDropdown:o,dropdownItems:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m}=a;return o?e.createElement(bt,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:i,className:"collapsed-breadcrumb"}):e.createElement("div",{className:ql,title:"string"!=typeof l?r:l,"data-last":n},t&&e.createElement(t,{"data-event-category":c,"data-event-action":d,"data-event-label":m,href:r||"#"},l))},Xl=({className:t,pages:a,size:n,LinkComponent:r="a",onChangePage:o,separator:s})=>{const c=i((()=>a.map(((e,t)=>a.length>4?t>1&&t<a.length-2?null:1===t?Object.assign(Object.assign({},e),{isDropdown:1===t,dropdownItems:a.slice(1,a.length-2)}):e:e)).filter(Boolean)),[a]);return e.createElement("div",{"data-size":n,className:`${Gl} ${t||""}`},c.map(((t,a)=>{const i=a+1===c.length;return e.createElement(l,{key:a},e.createElement(Yl,{LinkComponent:r,page:t,isLast:i,onChangePage:o}),!i&&(t.separator||s||e.createElement("div",{className:Zl,"data-size":n})))})))},Kl=Ue.div`
|
|
3378
|
+
display: flex;
|
|
3379
|
+
gap: 20px;
|
|
3380
|
+
width: 100%;
|
|
3381
|
+
align-items: center;
|
|
3382
|
+
justify-content: center;
|
|
3383
|
+
.icon-group {
|
|
3384
|
+
display: flex;
|
|
3385
|
+
align-items: center;
|
|
3386
|
+
gap: 10px;
|
|
3387
|
+
a,
|
|
3388
|
+
svg {
|
|
3389
|
+
width: 32px;
|
|
3390
|
+
height: 32px;
|
|
3391
|
+
}
|
|
3392
|
+
.share {
|
|
3393
|
+
width: 32px;
|
|
3394
|
+
height: 32px;
|
|
3395
|
+
padding: 8px;
|
|
3396
|
+
|
|
3397
|
+
&:hover {
|
|
3398
|
+
background-color: ${e=>e.theme.colors.neutral50};
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
svg {
|
|
3402
|
+
margin: 0;
|
|
3403
|
+
width: 16px;
|
|
3404
|
+
height: 16px;
|
|
3405
|
+
}
|
|
3406
|
+
}
|
|
3407
|
+
}
|
|
3408
|
+
`,Jl=()=>e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},e.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})),Ql=({url:t,onCopied:a,locale:n,siteType:l})=>{const{t:r}=se(),o=St(t||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(n))),s=i((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(Kl,null,e.createElement(p,{size:"p3",color:ye.colors.gray800},r("shareContainer.title")),e.createElement("div",{className:"icon-group"},o.map(((t,a)=>e.createElement("a",{key:a,href:t.href,target:"_blank",rel:"noreferrer","data-event-category":"Health Tool","data-event-action":`Social Share - ${t.name}`,"data-event-label":s},t.icon))),e.createElement(Ke,{theme:l,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(Jl,null),onClick:()=>xe(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(t),null==a||a()})),"data-event-category":"Health Tool","data-event-action":"Copy Link","data-event-label":s})))},er=Ue(kt)`
|
|
3409
|
+
padding-bottom: 24px;
|
|
3410
|
+
.share-container {
|
|
3411
|
+
display: flex;
|
|
3412
|
+
flex-direction: column;
|
|
3413
|
+
gap: 24px;
|
|
3414
|
+
}
|
|
3415
|
+
.icon-group {
|
|
3416
|
+
margin-top: 12px;
|
|
3417
|
+
display: flex;
|
|
3418
|
+
gap: 16px;
|
|
3419
|
+
img {
|
|
3420
|
+
border-radius: 8px;
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
3423
|
+
.input-group {
|
|
3424
|
+
margin-top: 8px;
|
|
3425
|
+
display: flex;
|
|
3426
|
+
gap: 8px;
|
|
3427
|
+
button {
|
|
3428
|
+
padding: 10px;
|
|
3429
|
+
&:hover {
|
|
3430
|
+
background-color: ${e=>e.theme.colors.neutral50};
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
svg {
|
|
3434
|
+
margin: 0;
|
|
3435
|
+
}
|
|
3436
|
+
a,
|
|
3437
|
+
svg:not(.copy) {
|
|
3438
|
+
width: 32px;
|
|
3439
|
+
height: 32px;
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
`,tr=()=>e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"copy"},e.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"})),ar=t=>{var{open:n,title:i,onClose:l,onCopied:r,onShared:s,url:c,locale:d}=t,m=fe(t,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:g}=se(),u=o((()=>xe(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(c),null==r||r()}))),[c,r]),h=St(c||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(d)));return a((()=>{n&&navigator.share&&navigator.share({title:null!=i?i:"Read This Post",url:c}).then((()=>{null==s||s()})).catch((()=>{null==l||l()}))}),[c,i,s,n]),"undefined"!=typeof navigator&&navigator.share?null:e.createElement(er,Object.assign({title:g("share.title"),onClose:l,open:n,placement:"bottom"},m),e.createElement("div",{className:"share-container"},e.createElement("div",{className:"icon-container"},e.createElement(p,{weight:"semiBold",size:"s3",color:ye.colors.gray600},g("share.title")),e.createElement("div",{className:"icon-group"},h.map(((t,a)=>e.createElement("a",{key:a,href:t.href,target:"_blank",rel:"noreferrer"},t.icon))))),e.createElement("div",{className:"link-container"},e.createElement(p,{weight:"semiBold",size:"s3",color:ye.colors.gray600},g("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(Je,{name:"link",size:"md",value:c,isDisabled:!0}),e.createElement(Ke,{size:"md",type:"button",color:"tertiary",icon:e.createElement(tr,null),onClick:u})))))},nr=Ue.div`
|
|
3443
|
+
position: fixed;
|
|
3444
|
+
z-index: 48;
|
|
3445
|
+
bottom: 0;
|
|
3446
|
+
left: 50%;
|
|
3447
|
+
width: fit-content;
|
|
3448
|
+
max-width: 100%;
|
|
3449
|
+
background: none;
|
|
3450
|
+
transform: translateX(-50%);
|
|
3451
|
+
.close-sticky-button {
|
|
3452
|
+
position: absolute;
|
|
3453
|
+
display: flex;
|
|
3454
|
+
width: 16px;
|
|
3455
|
+
height: 16px;
|
|
3456
|
+
align-items: center;
|
|
3457
|
+
justify-content: center;
|
|
3458
|
+
background: #bfbfbf;
|
|
3459
|
+
border-radius: 50%;
|
|
3460
|
+
color: white;
|
|
3461
|
+
|
|
3462
|
+
cursor: pointer;
|
|
3463
|
+
font-size: 12px;
|
|
3464
|
+
line-height: 12px;
|
|
3465
|
+
transform: translate(50%, -50%);
|
|
3466
|
+
top: 0;
|
|
3467
|
+
right: 0;
|
|
3468
|
+
}
|
|
3469
|
+
opacity: 0;
|
|
3470
|
+
pointer-events: none;
|
|
3471
|
+
&[data-visible='true'] {
|
|
3472
|
+
opacity: 1;
|
|
3473
|
+
pointer-events: auto;
|
|
3474
|
+
}
|
|
3475
|
+
`,ir=Ue.div`
|
|
3476
|
+
display: flex;
|
|
3477
|
+
justify-content: center;
|
|
3478
|
+
align-items: center;
|
|
3479
|
+
flex-direction: column;
|
|
3480
|
+
max-width: 100%;
|
|
3481
|
+
width: fit-content;
|
|
3482
|
+
height: fit-content;
|
|
3483
|
+
margin-inline: auto;
|
|
3484
|
+
/* margin: 1rem auto; */
|
|
3485
|
+
&[data-no-wrapper='false'] {
|
|
3486
|
+
border: 1px solid ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}};
|
|
3487
|
+
background: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}};
|
|
3488
|
+
}
|
|
3489
|
+
&[data-no-wrapper='true'] {
|
|
3490
|
+
line-height: 0;
|
|
3491
|
+
}
|
|
3492
|
+
&[data-header-bottom='true'] {
|
|
3493
|
+
flex-direction: column-reverse;
|
|
3494
|
+
background: none;
|
|
3495
|
+
border: none;
|
|
3496
|
+
}
|
|
3497
|
+
`,lr=Ue.div`
|
|
3498
|
+
/* background: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}}; */
|
|
3499
|
+
width: 100%;
|
|
3500
|
+
padding: 0 5px 1.5px;
|
|
3501
|
+
display: flex;
|
|
3502
|
+
align-items: center;
|
|
3503
|
+
justify-content: center;
|
|
3504
|
+
gap: 5px;
|
|
3505
|
+
text-transform: capitalize;
|
|
3506
|
+
img {
|
|
3507
|
+
height: 12px;
|
|
3508
|
+
width: 12px;
|
|
3509
|
+
max-width: 12px;
|
|
3510
|
+
max-height: 12px;
|
|
3511
|
+
}
|
|
3512
|
+
&[data-header-bottom='true'] {
|
|
3513
|
+
background: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.neutral50}};
|
|
3514
|
+
}
|
|
3515
|
+
span {
|
|
3516
|
+
font-size: 10px;
|
|
3517
|
+
line-height: 12px;
|
|
3518
|
+
color: ${e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.colors.gray400}};
|
|
3519
|
+
font-weight: 400;
|
|
3520
|
+
}
|
|
3521
|
+
`,rr=Ue.div`
|
|
3522
|
+
background-color: white;
|
|
3523
|
+
background-image: url(${ve.getAssetPath("close-blue.svg")});
|
|
3524
|
+
background-repeat: no-repeat;
|
|
3525
|
+
background-size: 10px;
|
|
3526
|
+
background-position: center;
|
|
3527
|
+
width: 12px;
|
|
3528
|
+
height: 12px;
|
|
3529
|
+
position: absolute;
|
|
3530
|
+
top: 1px;
|
|
3531
|
+
right: 1px;
|
|
3532
|
+
cursor: pointer;
|
|
3533
|
+
`,or={},sr=e=>{if(or[e]){window.googletag=window.googletag||{cmd:[]};const{googletag:t}=window;t.cmd.push((function(){t.destroySlots([or[e]]),delete or[e]}))}},cr=["TopBanner","MidBanner1","MidBanner2","EndBanner","Sticky"],dr=r(c((function({className:i,adUnitPath:l,size:r,divId:o,pos:s,sizeMapping:c,contentId:d,isHidden:m,hideIfHasSubot:p,isSticky:g,refreshInterval:u,customTargetings:h,style:b,adDefaultSize:v,noWrapper:y,showCloseBtn:f,onCloseAd:x,headerBottom:w,wrapperProps:E,locale:k,isMarryBaby:C},N){const B=u||(k===He.Vietnam&&s.some((e=>cr.includes(e)))?30:void 0),{t:D}=se(),$=n(null),P=n(null),z=n(B);z.current=B;const[S,L]=t(!1),M=()=>{z.current&&(null!==P.current&&clearInterval(P.current),P.current=window.setInterval((()=>{window.googletag=window.googletag||{cmd:[]};const{googletag:e}=window;e.cmd.push((function(){or[o]&&e.pubads().refresh([or[o]])}))}),1e3*z.current))};if(a((()=>()=>{sr(o),P.current&&clearInterval(P.current)}),[]),a((()=>{M()}),[B]),a((()=>{m||(({contentId:e,adUnitPath:t,size:a,divId:n,pos:i,sizeMapping:l,hideIfHasSubot:r,customTargetings:o,onSuccess:s})=>{if(!n||!document.getElementById(n))return console.error("divId is required");sr(n),window.googletag=window.googletag||{cmd:[]};const{googletag:c}=window;c.cmd.push((function(){const d=document.querySelector('meta[name="content_id"]'),m="string"==typeof e?e:null==d?void 0:d.content,p=c.defineSlot(t,a,n);if(p){try{o&&Object.keys(o).forEach((e=>{e&&(null==p||p.setTargeting(e,o[e]))}))}catch(e){console.error(e)}or[n]=p,p.setTargeting("Pos",i),p.addService(c.pubads()),m&&p.setTargeting("Content_ID",m),l&&p.defineSizeMapping(l),r&&document.getElementById("subot--container")&&p.setTargeting("chatbot",!0),c.display(n),null==s||s()}}))})({contentId:d,adUnitPath:l,size:r,divId:o,pos:s,sizeMapping:c,hideIfHasSubot:p,customTargetings:h,onSuccess:M})}),[m]),S)return null;const T=e.createElement("div",{style:{position:"relative",width:"fit-content",height:"fit-content",overflow:"hidden",maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement("div",{ref:N,id:o}),f&&e.createElement(rr,{onClick:()=>{null==x||x(),L(!0)}}));if(g)return T;const I=v?v[0]:r?Array.isArray(r[0])?r[0][0]:r[0]:void 0,A=v?v[1]:r?Array.isArray(r[0])?r[0][1]:r[1]:void 0;return e.createElement(we,Object.assign({},E,{className:i}),e.createElement(ir,{ref:$,className:i,style:b,"data-no-wrapper":!!y,"data-header-bottom":!!w},y?T:e.createElement(e.Fragment,null,e.createElement(lr,{"data-header-bottom":!!w},e.createElement("img",{src:C?ve.getAssetPath("adsIcon-mb.svg"):ve.getAssetPath("adsIcon.svg"),alt:"",loading:"lazy"}),e.createElement("span",null,D("adBanner.title"))),e.createElement("div",{style:{minWidth:I||"100%",minHeight:A||"100%",position:"relative"}},T))))})),((e,t)=>e.adUnitPath===t.adUnitPath&&e.divId===t.divId&&e.className===t.className)),mr=({className:i,adUnitPath:l,divId:r,isMobile:o,contentId:s,customTargetings:c,locale:d,isMarryBaby:m})=>{const[p,g]=t(!0),[u,h]=t(!1),[b,v]=t(!0),y=n(null),f=n(Lt()),x=n(null),w=n(),E=n();return a((()=>{const e=()=>{E.current&&clearTimeout(E.current),E.current=setTimeout((()=>{var t;document.getElementById("subot--container")?g(!0):(g(!1),(null===(t=y.current)||void 0===t?void 0:t.clientHeight)?v(!1):v(!0)),e()}),4e3)};return e(),()=>{w.current&&clearTimeout(w.current),E.current&&clearTimeout(E.current)}}),[]),p||u?null:e.createElement(nr,{key:o?"mobile":"desktop",ref:x,className:i,"data-visible":!b},l&&e.createElement(dr,{wrapperProps:{m:0},ref:y,adUnitPath:l,size:o?[[320,50],[320,100]]:[728,90],divId:(r||"div-gpt-ad-sticky")+(o?"-mobile":"")+s+String(f.current),pos:["Sticky"],contentId:s,hideIfHasSubot:o,customTargetings:c,adDefaultSize:o?[320,50]:[728,90],showCloseBtn:!0,onCloseAd:()=>h(!0),refreshInterval:60,locale:d,isMarryBaby:m}))},pr=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:ve.getAssetPath("newsletter-prefer/newsletter-health.svg"),checked:!1,id:1},{title:"Educational Medical Hello Bacsi Content",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:ve.getAssetPath("newsletter-prefer/newsletter-education.svg"),checked:!1,id:2},{title:"Hello Health Community Feed",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:ve.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];var gr;!function(e){e.DUE_DATE="due-date-calculator",e.BMI="bmi",e.BMR="bmr",e.OVULATION="ovulation",e.IFRAME="IFRAME",e.PWG="pregnancy-weight-gain",e.THR="heart-rate",e.BABY_VACCINE="vaccination-tool",e.BABY_GROWTH="baby-growth-tracking",e.BABY_POOP="baby-poop-checking"}(gr||(gr={}));const ur={DUE_DATE:gr.DUE_DATE,BMI:gr.BMI,BMR:gr.BMR,OVULATION:gr.OVULATION,IFRAME:gr.IFRAME,PWG:gr.PWG,THR:gr.THR,BABY_VACCINE:gr.BABY_VACCINE,BABY_GROWTH:gr.BABY_GROWTH,BABY_POOP:gr.BABY_POOP},hr={[ur.DUE_DATE]:ve.getAssetPath("health-tools/due-date-icon.svg")};var br,vr,yr,fr;!function(e){e.Pregnant="pregnant",e.Parenting="parenting"}(br||(br={})),function(e){e.Option="option"}(vr||(vr={})),function(e){e.Button="button",e.Checkbox="checkbox"}(yr||(yr={})),function(e){e.ShowTool="showTool",e.ShowPremiumModal="showPremiumModal",e.ShowOptionBanner="showOptionBanner",e.Hide="hide"}(fr||(fr={}));const xr={pregnancy:br.Pregnant,parenting:br.Parenting},wr={[br.Pregnant]:"pregnant",[br.Parenting]:"parent"},Er=e=>({[ur.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:ur.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[ur.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:ur.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[ur.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:ur.BABY_GROWTH},[ue.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:ve.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:ve.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:ue.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),kr=d({}),Cr=t=>{var a=fe(t,[]);const{locale:n}=se(),{type:i,isMobile:l,currentUrl:r,isMarketing:o,isLoggedIn:s,setShouldAcquisitionModalOpen:c}=m(kr);return e.createElement(Se,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:()=>xe(void 0,void 0,void 0,(function*(){const e=o?Mt(n)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;s?null==c||c():window.location.href=`${Tt(n)}/?returnUrl=${encodeURIComponent(e)}`})),"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":r,className:"pointer-event-child-none"},a),e.createElement(Y,{src:o?ve.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_Marketing.png`):ve.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_${i}.png`),style:{maxWidth:"100%"},alt:"newsletter banner"}))},Nr="api/v1/categories?site={website_url}",Br="api/v1/subscription?site={website_url}",Dr="api/v1/categories?site={website_url}";var $r=De((e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:Ce(32),padding:`${Ce(6)} ${Ce(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}})));const Pr=({heading:t,description:a,thumbnail:n={desktop:"",mobile:""},hideDescOnMobile:i,children:l})=>{const{isMobile:r,minHeight:o}=m(kr);return e.createElement(we,{sx:()=>({borderRadius:Ce(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},e.createElement(we,{sx:e=>({minHeight:Ce(o),borderRadius:"inherit",background:`url(${r?n.mobile:n.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${Ce(24)} ${Ce(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${Ce(22)} ${Ce(32)}`}})},e.createElement($e,{spacing:Ce(16)},e.createElement($e,{spacing:Ce(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},t&&e.createElement(M,{tag:"h4"},t),!(i&&r)&&a&&e.createElement(p,{size:"p4"},a)),e.createElement(we,null,l))))},zr=t=>{const{styleType:a=yr.Button,items:n=[],buttonProps:l,styles:r,submitBtnTracking:s}=t,{classes:c}=$r(void 0,{name:"PremiumBannerWithOptions",styles:r}),{t:d,locale:p}=se(),{surveyType:u,articleId:h,handleClickOption:b,hasPremiumBanner:v,source:y,isMobile:f,setShowPNModal:x}=m(kr),w=i((()=>v?n:n.filter((e=>!Boolean(e.isPNBtn))).filter(Boolean)),[n]),{getHealthToolLink:E}=xt(p),k=It({initialValues:{bannerOptions:[]}}),C=e=>xe(void 0,void 0,void 0,(function*(){return yield F(H(R.HEALTH_TOOL.CREATE,{_locale:p,type:wr[u]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:h,source:y}})})),N=o((()=>e.createElement(ke,{gap:Ce(8),className:c.wrapper},w.map(((t,a)=>e.createElement(we,{key:String(a),component:t.isLink?"a":"div",href:t.isRiskScreener?`https://${de[p]}/bot/${he[p][t.activeTool]}/`:t.isLink?E(t.activeTool):void 0},e.createElement(te,Object.assign({className:c.button,classNames:{label:c.buttonLabel},size:"sm"},t.tracking,l,{onClick:()=>{t.isLink||(t.isPNBtn&&x(!0),C(t.value),b(t.value))}}),t.label)))))),[w,k]),B=o((()=>e.createElement(ke,null,e.createElement(ke,{align:"center",gap:Ce(24),sx:e=>({background:"white",borderRadius:Ce(8),padding:Ce(4),[e.fn.largerThan("sm")]:{paddingLeft:Ce(16)}})},e.createElement(ne.Group,Object.assign({},k.getInputProps("bannerOptions",{type:"checkbox"})),e.createElement(ke,{gap:Ce(16)},w.map(((t,a)=>e.createElement(ne,{key:String(a),value:t.value,label:t.label,styles:{label:{cursor:"pointer"}}}))))),e.createElement(te,Object.assign({size:"sm"},s,l,{disabled:0===k.getInputProps("bannerOptions").value.length,leftIcon:f?e.createElement(g.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{const e=k.getInputProps("bannerOptions").value;C(e.join("|")),b(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:Ce(38),minWidth:"auto",padding:0}}})}),!f&&d("pnBanner.submit"))))),[w,k]);return e.createElement(Pr,Object.assign({},t),a===yr.Button?N():a===yr.Checkbox?B():null)},Sr=t=>{var a,n;const{t:l}=se(),{heading:r,description:o,thumbnail:s,btnLabel:c,value:d,isRiskScreener:g,hideDescOnMobile:u,dataEventAction:h}=t,{locale:b}=se(),{isMobile:v}=m(kr),{getHealthToolLink:y,allTools:f}=xt(b),x=g?"mainBanner":"toolBanner",w=i((()=>{const t=g?`https://${ce?"":"discover."}${de[b]}/bot/${he[b][d]}`:y(d);return e.createElement("a",{href:t},e.createElement(te,{size:"sm","data-event-category":"Focused Audience","data-event-action":h,"data-event-label":t},c||l("pnBanner.caclNow")))}),[f]);return"mainBanner"===x?e.createElement(Pr,Object.assign({},Object.assign(Object.assign({},t),{thumbnail:t.thumbnail})),w):e.createElement(ke,{gap:Ce(7),align:"center",justify:"space-between",sx:e=>({borderRadius:Ce(8),background:e.colors.blue[0],minHeight:Ce(180),padding:`${Ce(24)} ${Ce(16)}`,[e.fn.largerThan("sm")]:{padding:`${Ce(34)} ${Ce(32)}`}})},e.createElement($e,{spacing:Ce(12)},e.createElement($e,{spacing:Ce(4)},r&&e.createElement(M,{tag:"h4"},r),!(v&&u)&&o&&e.createElement(p,{size:"p4"},o)),e.createElement(ke,{gap:Ce(8),sx:{button:{minWidth:Ce(120)}}},w)),e.createElement(ke,{align:"center",justify:"center",sx:e=>({width:Ce(96),height:Ce(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:Ce(112),height:Ce(112)},img:{maxWidth:Ce(64),[e.fn.largerThan("sm")]:{maxWidth:Ce(73)}}})},e.createElement("img",{alt:"health-tool-icon",src:s||(null===(n=null===(a=f.filter((e=>e.template===d)))||void 0===a?void 0:a[0])||void 0===n?void 0:n.icon)||hr[d]||"",loading:"lazy"})))},Lr=()=>{var t,a,n;const{t:i}=se(),{state:l,Outside:r}=m(kr);return(null==l?void 0:l.action)===fr.ShowTool?e.createElement(r,null,Er(i)[null===(t=null==l?void 0:l.props)||void 0===t?void 0:t.value]?e.createElement(Sr,Object.assign({},Er(i)[null===(a=null==l?void 0:l.props)||void 0===a?void 0:a.value],{value:null===(n=null==l?void 0:l.props)||void 0===n?void 0:n.value})):null):(null==l?void 0:l.action)===fr.ShowOptionBanner?e.createElement(r,null,e.createElement(zr,Object.assign({},null==l?void 0:l.props))):null},Mr=a=>{var{isMobile:n,children:i,desktopBanner:l=ve.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:r=ve.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:o={width:937,height:536},mobileBannerRatio:s={width:750,height:480},desktopBannerRatio:c={width:420,height:536},closeProps:d}=a,m=fe(a,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);const{width:p,height:u}=Ge(),h=(u<=667?190:265)+p*s.height/s.width+74,[b,v]=t(!1);return e.createElement(jt,Object.assign({styles:e=>({content:{flex:"auto",background:"transparent",[e.fn.smallerThan("sm")]:{maxHeight:"100%",height:"100%",position:"relative",borderRadius:0},[e.fn.largerThan("sm")]:{maxWidth:Ce(o.width),width:"100%",height:"100%",maxHeight:Ce(o.height),boxShadow:"none"}},body:{padding:0,width:"100%",height:"100%",[e.fn.largerThan("sm")]:{display:"flex",alignItems:"center"}},inner:{padding:0,[e.fn.smallerThan("sm")]:{display:"flex",alignItems:"flex-end"}}})},m),n?e.createElement(we,{sx:{position:"relative",height:"100%"},onTouchStart:()=>v(!0)},e.createElement(we,{className:"mobile-template",sx:{position:"absolute",height:100*(b?1:h/u)+"%",left:0,bottom:0,right:0,transition:"height 0.4s ease"}},e.createElement(we,{sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:b?0:Ce(12),borderTopRightRadius:b?0:Ce(12)}},e.createElement(we,{sx:{height:"calc(100% - 74px)",background:`url(${r})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},e.createElement(Le,Object.assign({leftIcon:e.createElement(g.Close,null),sx:{position:"absolute",right:0,top:0,zIndex:1,padding:Ce(10)}},d,{onClick:()=>null==m?void 0:m.onClose()})),e.createElement(Me,{ratio:(null==s?void 0:s.width)/(null==s?void 0:s.height),w:"100%"}),e.createElement(we,{sx:{padding:`${Ce(28)} ${Ce(16)} ${Ce(16)}`,background:"white"}},i))))):e.createElement(Me,{className:"desktop-template",ratio:o.width/o.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},e.createElement(we,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:Ce(8),background:"white",boxShadow:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"}},e.createElement("img",{alt:"",src:l,loading:"lazy",style:{borderTopLeftRadius:Ce(8),borderBottomLeftRadius:Ce(8),height:"100%",display:"block"}}),e.createElement(we,{sx:{position:"relative",height:"100%",width:(o.width-c.width)/o.width*100+"%"}},e.createElement(te,Object.assign({unstyled:!0,leftIcon:e.createElement(g.Close,null)},d,{onClick:()=>null==m?void 0:m.onClose(),sx:{position:"absolute",right:0,top:"10px"}})),e.createElement(we,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${Ce(40)} ${Ce(24)} 0`}},i)))))},Tr="user/subscription",Ir=d({}),Ar=t=>{var{value:a,name:n}=t,i=fe(t,["value","name"]);return e.createElement(ie,Object.assign({value:a,withIcon:!0},i,{buttonProps:{styles:()=>({leftIcon:{marginRight:Ce(6)},root:{paddingLeft:Ce(10),paddingRight:Ce(10)}})}}),n)},jr=({topicsGroup:n,onTopicChange:i,isBlock:l=!1,selectedTopics:r=[],inputProps:o,labelProps:s,maxSelect:c=5,hasScroll:d,readonly:g})=>{const{action:{pushNotifications:u}}=m(U),h=_t(n.map((e=>e.topics||[]))),{t:b}=se(),[v,y]=t([]);a((()=>{y(r)}),[r.length]),a((()=>{null==i||i(v)}),[v]);const f=e=>{e.length>5?u({type:"danger",title:b("pnTopicSection.maxSelectError.title",{maxSelect:c}),message:b("pnTopicSection.maxSelectError.desc")}):!g&&y((()=>h.filter((t=>e.some((e=>t.catId===e))))))};return e.createElement($e,{spacing:12},n.map(((t,a)=>e.createElement($e,{key:String(a),spacing:12},t.label&&e.createElement(p,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},s),t.label),d?e.createElement(Te,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},e.createElement(we,{w:800},e.createElement(Ie.Group,Object.assign({value:v.map((e=>e.catId)),multiple:!0},o,{onChange:f}),e.createElement(ke,{gap:8,wrap:"wrap"},t.topics.map((a=>e.createElement(Ar,Object.assign({key:a.catId,value:a.catId,name:a.localName,isBlock:l},t.tracking)))))))):e.createElement(Ie.Group,Object.assign({value:v.map((e=>e.catId)),multiple:!0},o,{onChange:f}),e.createElement(ke,{gap:8,wrap:"wrap"},t.topics.map((a=>a.catId?e.createElement(Ar,Object.assign({key:a.catId,value:a.catId,name:a.localName,isBlock:l},t.tracking)):e.isValidElement(a.component)?a.component:null))))))))},Or=t=>{var{heading:a,children:n,stickyActions:i}=t,l=fe(t,["heading","children","stickyActions"]);const{isMobile:r}=m(Ir),o=e.createElement($e,{spacing:Ce(24),sx:{height:"100%"}},e.createElement(M,{tag:"h4",style:{textAlign:"center"}},a),e.createElement(we,null,n));return e.createElement(we,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},r?o:e.createElement(Te,Object.assign({className:"layout-body",h:i?"calc(100% - 90px)":"100%"},l),o),i&&e.createElement(ke,{gap:Ce(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:Ce(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${Ce(24)} 0`}})},i))},_r=()=>{const{t:n,locale:l}=se(),{data:{userInfo:r},action:{pushNotifications:o}}=m(U),s=null==r?void 0:r.id,{currentUrl:c,isMobile:d,pnSuggestCategory:u=[],nextStep:h,formValues:b,setFormValues:v,onSubmit:y,submitLoading:f,selectCategory:x,setCategoryLibs:w,setSelectCategory:E,maxSelectCategory:k}=m(Ir),C=u.map((e=>e.catId)),N=It({validate:{name:At(n("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},b),{fitnessTopics:C})}),[B,D]=t([]),[$,P]=t([]);a((()=>{xe(void 0,void 0,void 0,(function*(){var e;try{const t=yield F(W(Dr,{_locale:l}),"get"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.subscription)||[]).filter((e=>!C.includes(e.catId)));D(u),P(a),w([...u,...a])}catch(e){console.log(e)}}))}),[]),a((()=>{s&&N.setFieldValue("name",(null==r?void 0:r.name)||"")}),[s]);const z=()=>{""!==N.getInputProps("name").value?(v(N.getTransformedValues()),h()):N.validateField("name")},S=i((()=>e.createElement(te,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:c,leftIcon:e.createElement(g.Plus,{size:16,color:"#262626",useCurrentColor:!0}),onClick:z,styles:e=>({root:{borderRadius:Ce(6),padding:"2px 15px",height:Ce(40)},label:{fontSize:Ce(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:Ce(12),lineHeight:Ce(16),height:Ce(40)}},leftIcon:{marginRight:"5px"}})},e.createElement(p,{size:d?"p3":"p4"},n("home.seeMore")))),[N]);return a((()=>{N.setFieldValue("fitnessTopics",x.map((e=>e.catId)))}),[x]),e.createElement("form",{style:{height:"100%"},onSubmit:N.onSubmit((e=>{if(0===x.length)return o({type:"danger",title:n("newsletter.error.minTitle"),message:n("newsletter.error.minCotennt")}),!1;v(e),null==y||y(e.name)}))},e.createElement(Or,{heading:n("healthToolPNModal.heading"),stickyActions:e.createElement(e.Fragment,null,e.createElement(te,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:c,loading:f,sx:{maxWidth:Ce(240)}},n("healthToolPNModal.register")))},e.createElement($e,{spacing:Ce(16)},e.createElement(ae,Object.assign({label:n("newsletter.welcome.description")},N.getInputProps("name"))),e.createElement(jr,{topicsGroup:[...0===u.length&&0===$.length?[{topics:[{component:S}]}]:[],...u.length>0?[{label:n("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...u,...0===$.length?[{component:S}]:[]]}]:[],...$.length>0?[{label:n("healthToolPNModal.findMore.chooseFav"),topics:[...$,...$.length>0?[{component:S}]:[]]}]:[]],selectedTopics:[...B],labelProps:{size:d?"p3":"p4",color:"gray.6"},onTopicChange:E,maxSelect:k}))))},Fr=c((function(t,a){var{label:n}=t,i=fe(t,["label"]);return e.createElement("div",Object.assign({ref:a},i),e.createElement(Be,{noWrap:!0},e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72615 14.8099 11.1702 14.2653 12.3086 13.3547L15.2376 16.2837C15.5264 16.5725 15.9946 16.5725 16.2833 16.2837C16.5721 15.9949 16.5721 15.5267 16.2833 15.238L13.3544 12.3091C14.2652 11.1705 14.8099 9.72634 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"#8C8C8C"})),e.createElement(p,{size:"p3"},n)))})),Hr=c((function(t,a){var{label:n}=t,i=fe(t,["label"]);return e.createElement("div",Object.assign({ref:a},i),e.createElement(p,{size:"p3"},n))})),Rr=({history:t,onDelete:a})=>e.createElement(ke,{wrap:"wrap",gap:8},Ft(t,"catId").map((t=>e.createElement(Ae,{key:t.catId,rightSection:e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",onClick:()=>null==a?void 0:a(t)},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 9C1.5 4.8525 4.8525 1.5 9 1.5C13.1475 1.5 16.5 4.8525 16.5 9C16.5 13.1475 13.1475 16.5 9 16.5C4.8525 16.5 1.5 13.1475 1.5 9ZM11.1677 12.2248C11.4602 12.5173 11.9327 12.5173 12.2252 12.2248C12.5101 11.9323 12.5101 11.4523 12.2252 11.1673L10.0577 8.99979L12.2252 6.83229C12.5177 6.53979 12.5177 6.0673 12.2252 5.7748C11.9327 5.4823 11.4602 5.4823 11.1677 5.7748L9.00015 7.9423L6.83265 5.7748C6.54015 5.4823 6.06765 5.4823 5.77515 5.7748C5.63471 5.91492 5.55579 6.10516 5.55579 6.30354C5.55579 6.50193 5.63471 6.69217 5.77515 6.83229L7.94265 8.99979L5.77515 11.1673C5.63471 11.3074 5.55579 11.4977 5.55579 11.696C5.55579 11.8944 5.63471 12.0847 5.77515 12.2248C6.06765 12.5173 6.54015 12.5173 6.83265 12.2248L9.00015 10.0573L11.1677 12.2248Z",fill:"#8C8C8C"})),styles:{root:{height:32,background:"#ffffff",padding:"5px 12px",border:`1px solid ${le.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},e.createElement(p,{size:"p4"},t.localName))))),Ur=({topics:n,onTopicChange:i,isBlock:l=!1,selectedTopics:r,labelProps:o,maxSelect:s=5})=>{const{action:{pushNotifications:c}}=m(U),[d,g]=t([]),{t:u}=se();a((()=>{g(r)}),[r.length]),a((()=>{i(d)}),[d]);return n&&0!==n.length?e.createElement($e,{spacing:12,px:16,mx:-16},e.createElement(p,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},o),u("pnTopicSection.recentView")),e.createElement(Ie.Group,{value:d.map((e=>e.catId)),onChange:e=>{l&&d.length<e.length?c({type:"danger",title:u("pnTopicSection.maxSelectError.title",{maxSelect:s}),message:u("pnTopicSection.maxSelectError.desc")}):g((()=>n.filter((t=>e.some((e=>t.catId===e))))))},multiple:!0},e.createElement(ke,{gap:8,wrap:"wrap"},n.map(((t,a)=>e.createElement(Ar,{key:a,value:t.catId,name:t.localName,isBlock:l})))))):null},Wr=t=>{var{topic:a,active:n,onClick:i}=t,l=fe(t,["topic","active","onClick"]);return e.createElement(we,Object.assign({sx:e=>({position:"relative",cursor:"pointer",padding:2,borderRadius:8,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04)",minHeight:Ce(130),[e.fn.largerThan("sm")]:{minHeight:Ce(138)}}),onClick:()=>i(a,n)},l),n&&e.createElement(we,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},e.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66699 9.99984C1.66699 5.39984 5.40033 1.6665 10.0003 1.6665C14.6003 1.6665 18.3337 5.39984 18.3337 9.99984C18.3337 14.5998 14.6003 18.3332 10.0003 18.3332C5.40033 18.3332 1.66699 14.5998 1.66699 9.99984ZM4.75066 10.5827L7.74232 13.5744C8.06732 13.8994 8.60066 13.8994 8.91732 13.5744L15.2423 7.2494C15.5673 6.9244 15.5673 6.3994 15.2423 6.0744C14.9173 5.7494 14.3923 5.7494 14.0673 6.0744L8.33399 11.8077L5.92566 9.40773C5.60066 9.08273 5.07566 9.08273 4.75066 9.40773C4.59461 9.56342 4.50692 9.7748 4.50692 9.99523C4.50692 10.2157 4.59461 10.427 4.75066 10.5827Z",fill:"#2D87F3"}),e.createElement("path",{d:"M7.74224 13.5772L4.75057 10.5856C4.59453 10.4299 4.50684 10.2185 4.50684 9.99808C4.50684 9.77765 4.59453 9.56627 4.75057 9.41058C5.07557 9.08558 5.60057 9.08558 5.92557 9.41058L8.33391 11.8106L14.0672 6.07725C14.3922 5.75225 14.9172 5.75225 15.2422 6.07725C15.5672 6.40225 15.5672 6.92725 15.2422 7.25225L8.91724 13.5772C8.60057 13.9022 8.06724 13.9022 7.74224 13.5772Z",fill:"white"}))),e.createElement(we,{sx:{borderRadius:"8px"}},e.createElement(ee,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},e.createElement(we,null,e.createElement("img",{src:a.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),e.createElement(p,{size:"p4",ta:"center",px:6,sx:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},a.localName||""))},Vr=({topics:i,selectedTopics:l=[],onTopicChange:r,isBlock:o=!1,labelProps:s,pushNotifications:c,maxSelect:d=5})=>{const{t:m}=se(),[g,u]=t([]),h=(e,t)=>{if(t)u((t=>t.filter((t=>t.catId!==e.catId))));else{if(o)return void c({type:"danger",title:m("pnTopicSection.maxSelectError.title",{maxSelect:d}),message:m("pnTopicSection.maxSelectError.desc")});u((t=>[...t,e]))}};a((()=>{u(l)}),[l.length]),a((()=>{r(g)}),[g]);const[b,v]=t(!1),[y,f]=t(0),[x,w]=t(0),E=n(null),k=()=>{v(!1)};return e.createElement($e,{spacing:10},e.createElement(ke,{justify:"space-between",align:"center",w:"100%"},e.createElement(p,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},s),m("pnTopicSection.trending"))),e.createElement(we,null,e.createElement(Te,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:E,viewportProps:{onMouseDown:e=>{e.preventDefault(),E.current&&(v(!0),f(e.pageX-E.current.offsetLeft),w(E.current.scrollLeft))},onMouseUp:k,onMouseLeave:k,onMouseMove:e=>{if(e.preventDefault(),!b||!E.current)return;const t=2*(e.pageX-E.current.offsetLeft-y);E.current.scrollLeft=x-t}},styles:{viewport:{paddingBottom:16}}},e.createElement(we,{w:{base:112*i.length+8*(i.length-1)+10}},e.createElement(ke,{gap:8},i.map(((t,a)=>e.createElement(Wr,{key:a,topic:t,onClick:h,active:g.some((e=>e.catId===t.catId)),w:{base:112}}))))))))},Gr=l=>{var{isLoggedIn:r,maxSelect:o=5,values:s=[],labelProps:c,onChange:d}=l,g=fe(l,["isLoggedIn","maxSelect","values","labelProps","onChange"]);const{action:{pushNotifications:u}}=m(U),[h,b]=t(""),{t:v,locale:y}=se(),f=n(null),[x,w]=t([]),[E,k]=t([]),[C,N]=t([]),[B,D]=t([]),[$,P]=t(null),[z,S]=t([]);a((()=>{xe(void 0,void 0,void 0,(function*(){var e,t;const a=yield F(W(Nr,{_locale:y}),"get"),n=(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.interested)||[],i=(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.trending)||[],l=Ft([...n,...i],"catId").map((e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""})));if(S(l||[]),P((null==a?void 0:a.data)||null),s.length>0){const e=n.filter((e=>s.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"interested"}))),t=i.filter((e=>s.includes(e.catId))).map((e=>Object.assign(Object.assign({},e),{template:"trending"})));D(e),k(t)}}))}),[r]);const L=i((()=>Ft([...x,...E,...B,...C],"catId")),[x,E,B,C]),[M,T]=t(!1);a((()=>{L.length>=o?T(!0):T(!1),null==d||d(L)}),[L]);return e.createElement($e,Object.assign({spacing:Ce(16)},g),e.createElement($e,{spacing:Ce(8)},e.createElement(p,{size:"p3"},v("pnTopicSection.maxSelectError.detail",{max:o,maxTopic:L.length})),e.createElement(je,{ref:f,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:le.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:e.createElement(p,{size:"s4",color:"gray.6"},v("pnTopicSection.notFound")),itemComponent:""===h?Fr:Hr,size:"lg",placeholder:v("pnTopicSection.plsEnterFavTopics"),data:z,onSearchChange:b,searchValue:h,icon:e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.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.9682 19.7465 14.8936 19.0205 16.4115 17.8063L20.3168 21.7116C20.7018 22.0966 21.3261 22.0966 21.7111 21.7116C22.0961 21.3266 22.0961 20.7023 21.7111 20.3173L17.8059 16.4121C19.0203 14.894 19.7465 12.9684 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#595959"})),rightSection:e.createElement(e.Fragment,null),zIndex:500,searchable:!0,withinPortal:!0,onChange:e=>{return t=e,xe(void 0,void 0,void 0,(function*(){var e;const a={trending:k,recently:N,interested:D,default:w};let n="default";if(M)u({type:"danger",title:v("pnTopicSection.maxSelectError.title",{maxSelect:o}),message:v("pnTopicSection.maxSelectError.desc")});else{const i=[{key:"trending",array:null==$?void 0:$.trending},{key:"recently",array:null==$?void 0:$.recently},{key:"interested",array:null==$?void 0:$.interested}].find((e=>{var a;return null===(a=e.array)||void 0===a?void 0:a.some((e=>e.catId===t[0]))}));n=(null==i?void 0:i.key)||"default",a[n]((e=>[...e,...z.filter((e=>t.some((t=>e.catId===t))))].map((e=>Object.assign(Object.assign({},e),{template:n}))))),null===(e=f.current)||void 0===e||e.blur()}return null}));var t},value:[]}),L&&L.length>0&&e.createElement(Rr,{history:L,onDelete:e=>{const t={trending:k,recently:N,interested:D,default:w};(t[e.template]||t.default)((t=>{const a=[...t],n=a.findIndex((t=>t.catId===e.catId));return a.splice(n,1),a}))}})),e.createElement(we,{sx:e=>({position:"relative",height:Ce(175),[e.fn.largerThan("sm")]:{height:Ce(190)}})},e.createElement(we,{sx:{position:"absolute",top:0,right:0,left:0}},e.createElement(Vr,{topics:((null==$?void 0:$.trending)||[]).map((e=>Object.assign(Object.assign({},e),{template:"trending"}))),selectedTopics:E,onTopicChange:k,isBlock:M,labelProps:c}))),e.createElement(Ur,{topics:((null==$?void 0:$.recently)||[]).map((e=>Object.assign(Object.assign({},e),{template:"recently"}))),selectedTopics:C,onTopicChange:N,isBlock:M,labelProps:c}),e.createElement(jr,{labelProps:c,topicsGroup:[{label:v("pnTopicSection.ppAlsoInterested"),topics:((null==$?void 0:$.interested)||[]).map((e=>Object.assign(Object.assign({},e),{template:"interested"})))}],selectedTopics:B,onTopicChange:D,isBlock:M}))},Zr=()=>{const{t:t}=se(),{action:{pushNotifications:a}}=m(U),{prevStep:n,formValues:i,submitLoading:l,onSubmit:r,selectCategory:o,maxSelectCategory:s,setSelectCategory:c,currentUrl:d,isLoggedIn:p}=m(Ir);return e.createElement(Or,{heading:t("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:Ce(25)}},stickyActions:e.createElement(e.Fragment,null,e.createElement(te,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:d,onClick:n},t("healthToolPNModal.back")),e.createElement(te,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:d,onClick:()=>{if(0===o.length)return a({type:"danger",title:t("newsletter.error.minTitle"),message:t("newsletter.error.minCotennt")}),!1;null==r||r(i.name)},loading:l},t("healthToolPNModal.next")))},e.createElement(Gr,{isLoggedIn:p,maxSelect:s,values:i.fitnessTopics,onChange:c,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},qr=()=>{const{t:t}=se(),{close:n,selectCategory:i,onRegisterSuccess:l,currentUrl:r,finishLabelOnResult:o,disclaimerText:s}=m(Ir);return a((()=>()=>{setTimeout((()=>{null==l||l()}),400)}),[]),e.createElement(Or,{heading:t("healthToolPNModal.heading"),stickyActions:e.createElement(te,{fullWidth:!0,sx:{maxWidth:Ce(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:r,onClick:()=>{n()}},o||t("healthToolPNModal.finish"))},e.createElement($e,null,e.createElement(ke,{gap:Ce(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:Ce(8),padding:Ce(8)})},e.createElement(we,null,e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("path",{d:"M9.99984 18.3334C14.6022 18.3334 18.3332 14.6025 18.3332 10.0001C18.3332 5.39771 14.6022 1.66675 9.99984 1.66675C5.39746 1.66675 1.6665 5.39771 1.6665 10.0001C1.6665 14.6025 5.39746 18.3334 9.99984 18.3334Z",fill:"#00B16A"}),e.createElement("path",{d:"M9.58558 12.6674C9.22944 12.668 8.87668 12.5983 8.54752 12.4623C8.21835 12.3264 7.91925 12.1268 7.66732 11.8751L6.68587 10.8931C6.55607 10.7587 6.48424 10.5787 6.48587 10.3919C6.48749 10.2051 6.56243 10.0263 6.69455 9.89422C6.82667 9.7621 7.00539 9.68716 7.19222 9.68554C7.37906 9.68391 7.55906 9.75574 7.69345 9.88554L8.67491 10.8675C8.79344 10.986 8.93415 11.08 9.08902 11.1442C9.24389 11.2083 9.40987 11.2413 9.5775 11.2413C9.74513 11.2413 9.91111 11.2083 10.066 11.1442C10.2208 11.08 10.3616 10.986 10.4801 10.8675L16.7033 5.24335C16.8443 5.12184 17.0272 5.06032 17.213 5.07195C17.3987 5.08358 17.5726 5.16744 17.6973 5.30558C17.8221 5.44373 17.8878 5.6252 17.8805 5.81118C17.8731 5.99717 17.7933 6.17291 17.6581 6.30081L11.4592 11.8998C11.2128 12.1448 10.9205 12.3387 10.5989 12.4705C10.2774 12.6022 9.93304 12.6692 9.58558 12.6674Z",fill:"white"}))),e.createElement(p,{size:"p3"},s||t("pnModal.disclaimer"))),e.createElement(M,{tag:"h5"},t("healthToolPNModal.yourPre")),i.length>0&&e.createElement(jr,{topicsGroup:[{label:"",topics:i}],selectedTopics:i,readonly:!0})))},Yr=({isMobile:n,isLoggedIn:i,pnSuggestCategory:l=[],acquisitionInfo:r,currentUrl:s,opened:c,close:d,finishLabelOnResult:p,onRegisterSuccess:g,disclaimerText:u})=>{const{t:h,locale:b}=se(),{action:{pushNotifications:v}}=m(U),y=ve.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),f=ve.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[x,w]=t([]),[E,k]=t([]),[C,N]=t(0),[B,D]=t({name:"",fitnessTopics:[]}),[$,P]=t(!1),z=()=>N(2),S=o((e=>xe(void 0,void 0,void 0,(function*(){try{P(!0),yield F(W(Br,{website_url:V(b)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:Ot.get(be),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},r.userInfo),{name:e||B.name,type_subscription:1}),domain:de[b||He.Vietnam],category:E,perferred:r.preferredTopics.map((({id:e})=>({id:e})))}}),P(!1),yield F(G(Tr),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),z()}catch(e){console.log({err:e}),P(!1),v({title:h("notification.comment.somethingWrong"),message:"",type:"danger"})}}))),[B,E]);return a((()=>{[y,f].forEach((e=>{(new Image).src=e}))}),[]),e.createElement(Ir.Provider,{value:{currentUrl:s,isMobile:n,isLoggedIn:i,opened:c,close:d,pnSuggestCategory:l,nextStep:()=>N((e=>e<3?e+1:e)),prevStep:()=>N((e=>e>0?e-1:e)),lastStep:z,categoryLibs:x,setCategoryLibs:w,selectCategory:E,setSelectCategory:k,formValues:B,setFormValues:D,maxSelectCategory:5,submitLoading:$,onSubmit:S,onRegisterSuccess:g,finishLabelOnResult:p,disclaimerText:u}},e.createElement(Mr,{isMobile:n,desktopBanner:ve.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:ve.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:c,onClose:d,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:s}},e.createElement(Oe,{active:C,onStepClick:N,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},e.createElement(Oe.Step,null,e.createElement(_r,null)),e.createElement(Oe.Step,null,e.createElement(Zr,null)),e.createElement(Oe.Step,null,e.createElement(qr,null)))))},Xr=()=>{const{locale:i}=se(),{isMobile:l,isLoggedIn:r,currentUrl:o,acquisitionInfo:s,categoryIds:c,state:d,setState:p,settings:g,submitHandler:u,subcribeHealthStatus:h,showPNModal:b,setShowPNModal:v,setIsBack:y}=m(kr),[f,x]=t([]),[w,E]=t(b);a((()=>{xe(void 0,void 0,void 0,(function*(){var e,t;const a=yield F(W(Nr,{_locale:i}),"get"),n=[...(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.interested)||[],...(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.trending)||[]];x(n.filter((e=>c.includes(Number(e.catId)))))}))}),[]);const k=n([]);return a((()=>{const e=(null==h?void 0:h.value)||"",t=e.split("|").filter(Boolean);let a=e;k.current.push(h),t.length>1&&(null!==k.current[0]&&y(!0),Object.keys(u).map((e=>{const n=e.split("|");if(t.length===n.length){let i=0;t.map((e=>{n.includes(String(e))&&(i+=1)})),i===t.length&&(a=e)}})));const n=t.length>0?u[a]:g;p(n)}),[h]),a((()=>{E(b)}),[b]),(null==d?void 0:d.action)!==fr.Hide?e.createElement(e.Fragment,null,e.createElement(Lr,Object.assign({},g.props)),e.createElement(Yr,{acquisitionInfo:s,isMobile:l,isLoggedIn:r,currentUrl:o,pnSuggestCategory:f,opened:w,close:()=>{var e;E(!1),v(!1),setTimeout((()=>{var e;(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&p({action:fr.Hide})}),400),(null===(e=d.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&p({action:fr.Hide})},onRegisterSuccess:()=>E(!1)})):null},Kr=({type:n,articleId:l=0,categoryIds:r=[],isMarketing:o,isSurveyType:s,hasPremiumBanner:c,currentUrl:d,isMobile:p,subcribeHealthStatus:g,setShouldAcquisitionModalOpen:u,onValueChange:h,source:b="discover",Wrapper:v})=>{const{t:y}=se(),{data:{userInfo:f}}=m(U),x=Boolean(null==f?void 0:f.id),[w,E]=t(null),[k,C]=t(),[N,B]=t(""),[D,$]=t(!1),[P,z]=t(!1),S=i((()=>xr[n]),[]),L=((e,t)=>({[br.Pregnant]:{action:fr.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:yr.Button,thumbnail:{desktop:ve.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:ve.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:Ce(80),[e.fn.largerThan("sm")]:{minWidth:Ce(120)}})},items:[{label:e("switchBtn.yes"),value:"yes",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - Yes Click",dataEventLabel:t}},{label:e("switchBtn.no"),value:"no",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - No Click",dataEventLabel:t}}]},submitHandler:{yes:{action:fr.ShowTool,props:{value:ur.DUE_DATE}},no:{action:fr.ShowPremiumModal}}},[br.Parenting]:{action:fr.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:ve.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:ve.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:yr.Checkbox,items:[{label:e("pnBanner.toddlers"),value:"todders"},{label:e("pnBanner.teenager"),value:"teenager"}],submitBtnTracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the age range of your kids Click",dataEventLabel:t}},submitHandler:{todders:{action:fr.ShowTool,props:{value:ur.BABY_VACCINE}},teenager:{action:fr.ShowOptionBanner,props:{styleType:yr.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:ve.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:ve.getAssetPath("newsletter/banner-option-parenting-mobile.png")},buttonProps:{variant:"white"},items:[{label:e("childCard.boy"),value:"teenager.boy",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Boy Click",dataEventLabel:t}},{label:e("childCard.girl"),value:"teenager.girl",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Girl Click",dataEventLabel:t}}]}},"teenager.boy":{action:fr.ShowPremiumModal},"teenager.girl":{action:fr.ShowTool,activeTool:ue.HPV,props:{value:ue.HPV}},"todders|teenager":{action:fr.ShowOptionBanner,props:{styleType:yr.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:ve.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:ve.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:ur.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}},{label:e("pnBanner.pn.btnLabel"),value:"todders|teenager.showPN",isPNBtn:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Premium Newsletter Click",dataEventLabel:t}}]}},"todders|teenager.showPN":{action:fr.ShowOptionBanner,props:{styleType:yr.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:ve.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:ve.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:ur.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}))(y,d)[S],M=null==L?void 0:L.submitHandler,T=v||we,I=()=>c&&1!==(null==f?void 0:f.subscription)?e.createElement(Cr,null):null;return a((()=>{x&&E({userInfo:f,preferredTopics:pr,healthTopics:[]})}),[x]),e.createElement(kr.Provider,{value:{settings:L,submitHandler:M,type:n,surveyType:S,value:N,setValue:B,isMobile:p,isLoggedIn:x,isMarketing:o,hasPremiumBanner:c,currentUrl:d,acquisitionInfo:w,categoryIds:r,subcribeHealthStatus:g,articleId:l,onValueChange:h,state:k,setState:C,handleClickOption:e=>{const t=(e=>{let t="";const a=e.split("|");return 1===a.length?e:(Object.keys(M).map((e=>{const n=e.split("|");if(a.length===n.length){let i=0;a.map((e=>{n.includes(String(e))&&(i+=1)})),i===a.length&&(t=e)}})),t)})(e);if(t){const a=M[t];a.action===fr.ShowPremiumModal?c?($(!0),C(Object.assign(Object.assign({},k),{actionParams:{hideBannerWhenClose:a.action===fr.ShowPremiumModal}}))):(C({action:fr.Hide}),null==h||h(e)):(C(a),null==h||h(e))}},showPNModal:D,setShowPNModal:$,source:b,Outside:T,isBack:P,setIsBack:z,minHeight:180,setShouldAcquisitionModalOpen:u}},void 0!==g?x?s&&L?(()=>{const t=M[(null==g?void 0:g.value)||""];return(null==t?void 0:t.action)===fr.ShowPremiumModal?I():e.createElement(Xr,null)})():I():c?e.createElement(Cr,null):null:null)},Jr={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"/shop/ho-so/quan-li-don-hang/"};var Qr="uJQBNNg",eo="TfG3dM5",to="aMtjFNf",ao="cSz2RR-",no="GyFm00F";function io({userInfo:t,onClickMyProfileButton:a,themeName:n="helloSites"}){const{t:l}=se(),r=i((()=>{const e=(null==t?void 0:t.name)||(null==t?void 0:t.username);return e&&e.length?e[0].toUpperCase():"A"}),[null==t?void 0:t.username,null==t?void 0:t.name]);return e.createElement("div",{className:Qr,onClick:()=>{a&&a()}},e.createElement(Yt,{className:eo,type:"rounded",size:"xl",avatarUrl:null==t?void 0:t.avatar,firstLetter:r,backgroundColor:"marryBaby"===n?ye.mbColors.pink:ye.colors.secondaryBase}),e.createElement("div",{className:to},e.createElement("div",{className:ao},(null==t?void 0:t.name)||(null==t?void 0:t.username)),e.createElement("div",{className:no,style:{"--bg-hellosites":`url(${ve.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${ve.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},l("userProfile.nav.header.viewProfile"))))}var lo="fVk18fq",ro="v8TCvUb",oo="mx7T4V3";const so={myHealth:ye.mbColors.toneYellow,myCommunity:ye.mbColors.toneBlue,mySaved:ye.mbColors.toneGreen},co={helloSites:{myBooking:()=>ve.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg"),myCommunity:()=>ve.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg"),myFamily:()=>ve.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg"),myHealth:()=>ve.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg"),mySaved:()=>ve.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg"),eCom:()=>ve.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")},marryBaby:{mySaved:()=>ve.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg"),myCommunity:()=>ve.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg"),myHealth:()=>ve.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}},mo=({type:t,themeName:a,className:n,onClick:l=(()=>{})})=>{const{t:r}=se(),o=i((()=>{var e,n;return(null===(n=null===(e=co[a])||void 0===e?void 0:e[t])||void 0===n?void 0:n.call(e))||""}),[t,a]),s=i((()=>"marryBaby"!==a?"transparent":so[t]),[t,a]);return e.createElement("div",{onClick:function(){l(t)},className:`${lo} ${n}`},e.createElement("div",{className:oo,style:{backgroundColor:s,backgroundImage:`url("${o}")`}}),e.createElement("h3",{className:ro},r(`userProfile.nav.card.${t}`)))};var po="gn6HmGG",go="FCx8FEM",uo="zMiRxaE",ho="lZ2Z9MQ",bo="rwm-agG",vo="qMOscoq";const yo=({themeName:a,locale:n,onClickItem:l})=>{const[r,o]=t(""),s=i((()=>"marryBaby"===a?[{key:"userProfile.nav.menu.password",icon:ve.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:ve.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:ve.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:ve.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[a]);function c(e){e.subMenu?o((t=>t?"":e.key)):l&&l(e)}return e.createElement("div",{className:po},s.map((t=>e.createElement(fo,{key:t.key,item:t,openKey:r,onClickItem:c,locale:n}))))},fo=({item:t,openKey:a,onClickItem:n,locale:i})=>{var l;const{t:r}=se();return(null===(l=t.disableLocale)||void 0===l?void 0:l.includes(i))?null:e.createElement("div",{className:`${go} nav-menu-item`,"data-is-open":a===t.key,key:t.key,"data-has-submenu":!!t.subMenu},e.createElement("div",{className:uo,onClick:()=>n(t)},t.icon&&e.createElement("div",{className:ho,style:{backgroundImage:`url("${t.icon}")`}}),r(t.key),t.subMenu&&e.createElement("div",{className:bo,style:{"--after-bg":`url(${ve.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),t.subMenu&&e.createElement("div",{className:vo},t.subMenu.map((t=>e.createElement(fo,{key:t.key,item:t,openKey:a,onClickItem:n,locale:i})))))};var xo="-AZt1au",wo="IvSIfCI",Eo="eahCJov",ko="XIyViFs",Co="_4y-O0w3",No="kO8iNgD",Bo="a1d4E10",Do="Tdguxxf",$o="-mOxsaU",Po="yPeDBNZ";const zo={helloSites:{member:()=>ve.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>ve.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>ve.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>ve.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>ve.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>ve.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>ve.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>ve.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>ve.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>ve.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},So=({themeName:t,rank:a="member",numberOfPosts:n=0})=>{const{t:l}=se(),r=i((()=>{var e,n;return(null===(n=null===(e=zo[t])||void 0===e?void 0:e[a])||void 0===n?void 0:n.call(e))||""}),[a,t]);return e.createElement("div",{className:Co,"data-user-rank":a},e.createElement("div",{className:No},e.createElement("div",{className:Bo},e.createElement("div",{className:Do,style:{backgroundImage:`url("${r}")`}}),e.createElement("h3",{className:$o},l(`userProfile.userRank.${a}`)),n>0&&e.createElement("p",{className:Po},n," ",l("userProfile.nav.header.count.posts")))))},Lo=({SSO_URL:n,UP_BASEPATH:l="user",themeName:r="helloSites",cardUrls:o=Jr,enableCare:s,enableTogether:c,enableEcom:d,enableMySaved:m,userInfo:p,togetherApiDomain:g,userPostsNumber:u,onClickNavigationCard:h,onClickMyProfileButton:b,onClickMenuItem:v,onClickLogout:y,isUserProfileNavigatorMenuHidden:f=!1,isMyHealthEnabled:x=!1,locale:w})=>{const{t:E}=se(),[k,C]=t(u||0),N="marryBaby"===r;a((()=>{if(p&&void 0===u){const e=Ht("hhg_user_token");e&&fetch(Rt(qe(w,N,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,a,n;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&C((null===(n=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.pagination)||void 0===n?void 0:n.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[w,null!==p,u,g,N]);const B=i((()=>{let e;return e=N?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?x:"eCom"===e?d:"mySaved"!==e||m))}),[N,x]),D=i((()=>"marryBaby"===r?null:e.createElement(Ke,{color:"tertiary",icon:e.createElement("img",{src:ve.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15,loading:"lazy"}),size:"md",onClick:y,className:ko},E("userProfile.nav.menu.logout"))),[r]),$=e=>{e.startsWith("http")||e.startsWith("/")?window.location.href=Ut(e):n&&(window.location.href=Ut(`${n}${l}/${e}`))},P=e=>{const t=o[e];h?h(t):$(t)};return p?e.createElement("div",{className:xo,"data-theme":r},e.createElement(io,{userInfo:p,themeName:r,onClickMyProfileButton:()=>{b?b():$("profile")}}),e.createElement(So,{themeName:r,rank:"member",numberOfPosts:k}),e.createElement("div",{className:wo},B.map((t=>e.createElement(mo,{className:Eo,key:t,themeName:r,type:t,onClick:P})))),!f&&e.createElement(e.Fragment,null,e.createElement(yo,{themeName:r,locale:w,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(v?v(e.link):$(e.link))}}),D)):null};export{Lo as $,Zt as A,Xt as B,ca as C,Fa as D,rl as E,aa as F,na as G,hl as H,Ra as I,wl as J,Dl as K,ba as L,oi as M,Vl as N,Nl as O,la as P,Xl as Q,ra as R,un as S,oa as T,Ql as U,ar as V,dr as W,mr as X,Kr as Y,xr as Z,wr as _,Yt as a,io as a0,So as a1,Kt as b,sa as c,ga as d,ua as e,Ba as f,La as g,Ta as h,Aa as i,tn as j,an as k,mn as l,fn as m,Bn as n,$n as o,sn as p,An as q,jn as r,Zn as s,ei as t,ri as u,si as v,yi as w,Hi as x,Yi as y,il as z};
|