@hhgtech/hhg-components 1.24.0 → 1.24.2-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/btnChoice/index.d.ts +14 -0
- package/build/components/atoms/btnChoice/index.styled.d.ts +1 -0
- package/build/components/atoms/icons/Alert.d.ts +4 -0
- package/build/components/atoms/index.d.ts +1 -0
- package/build/components/mantine/aspectRatio/index.d.ts +5 -0
- package/build/components/mantine/aspectRatio/index.styled.d.ts +1 -0
- package/build/components/mantine/button/index.d.ts +7 -0
- package/build/components/mantine/button/index.styled.d.ts +1 -0
- package/build/components/mantine/index.d.ts +4 -0
- package/build/components/mantine/provider/index.d.ts +2 -1
- package/build/components/mantine/theme/button.d.ts +9 -0
- package/build/components/mantine/theme/checkbox.d.ts +11 -0
- package/build/components/mantine/theme/index.d.ts +3 -0
- package/build/components/mantine/theme/input.d.ts +65 -0
- package/build/components/mantine/theme/radio.d.ts +15 -0
- package/build/components/mantine/theme/shared.d.ts +6 -0
- package/build/components/organisms/navigationV2/components/molecules/navigationBar/index.d.ts +2 -4
- package/build/components/organisms/navigationV2/hooks/useHeaderHeight.d.ts +1 -2
- package/build/components/organisms/navigationV2/types.d.ts +0 -3
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-b2fe46dd.js → core-ca19dfe7.js} +1 -1
- package/build/{dataTransform-fcf0a572.js → dataTransform-b8e97d79.js} +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-8afe5a4d.js → core-81c2a10d.js} +1 -1
- package/build/esm/{dataTransform-915aed8c.js → dataTransform-2b542c76.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-5bc53bc9.js → getDynamicHealthTool-40fb4fcb.js} +1 -1
- package/build/esm/{getSocialList-278ea87c.js → getSocialList-99bba581.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-cb50aeb8.js → index-01378eba.js} +1 -1
- package/build/esm/index-0bd38191.js +1 -0
- package/build/esm/{index-fe31b09c.js → index-1335ef96.js} +1 -1
- package/build/esm/{index-b5f6d798.js → index-1791e23d.js} +1 -1
- package/build/esm/{index-364770a0.js → index-214ac1af.js} +1 -1
- package/build/esm/{index-c4acfb04.js → index-24bbd0d5.js} +1 -1
- package/build/esm/{index-150d757e.js → index-2fb45247.js} +1 -1
- package/build/esm/index-35a0f664.js +1 -0
- package/build/esm/index-38a42f37.js +1 -0
- package/build/esm/{index-9d45815e.js → index-53a28b96.js} +13 -13
- package/build/esm/{index-05542543.js → index-552b590e.js} +2 -2
- package/build/esm/index-6d3b539f.js +1 -0
- package/build/esm/{index-b5e35ec5.js → index-7034eb69.js} +1 -1
- package/build/esm/{index-d02e0f58.js → index-71be5920.js} +1 -1
- package/build/esm/index-8422ed82.js +1 -0
- package/build/esm/{index-18a9e3fb.js → index-9d8adf93.js} +1 -1
- package/build/esm/{index-78cd9f91.js → index-aa518793.js} +1 -1
- package/build/esm/{index-c9e0a1b5.js → index-c1857c2d.js} +1 -1
- package/build/esm/{index-a2e77867.js → index-ce5ca9a3.js} +1 -1
- package/build/esm/index-d523ae71.js +1 -0
- package/build/esm/{index-f98bb958.js → index-f769282b.js} +1 -1
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-2465841d.js → index.styled-53a35ec5.js} +1 -1
- package/build/esm/{index.styled-7f0b774b.js → index.styled-5f892397.js} +1 -1
- package/build/esm/{index.styled-6b6e612e.js → index.styled-a65d40a7.js} +1 -1
- package/build/esm/{index.styled-6abf9e6a.js → index.styled-ae956ac0.js} +5 -5
- package/build/esm/{index.styled-c65f9df8.js → index.styled-d2707317.js} +1 -1
- package/build/esm/{index.styled-67c29a17.js → index.styled-d855e194.js} +184 -184
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/pwg.js +2 -2
- package/build/esm/{routing-e4b4ee8f.js → routing-faaaede9.js} +1 -1
- package/build/esm/{screenSizeContext-b29efdb0.js → screenSizeContext-659caf43.js} +3 -3
- package/build/esm/{theme-a631c5ab.js → theme-6b7bd325.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/translationsContext-725e616e.js +1 -0
- package/build/esm/translationsProvider-0e79a12a.js +1 -0
- package/build/esm/{types-978544c0.js → types-40049b3f.js} +138 -109
- package/build/esm/{types-d532ba8d.js → types-8ce784ad.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-718cbbb7.js +1 -0
- package/build/esm/{useRafState-a50dc032.js → useRafState-fc0b0d02.js} +1 -1
- package/build/esm/{useTranslations-7f736d5f.js → useTranslations-968546a6.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-9a866ff7.js +1 -0
- package/build/{getSocialList-e0fa1cc8.js → getSocialList-752ecc88.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-94d7557e.js → index-1e9a8775.js} +1 -1
- package/build/{index-af3b3f09.js → index-312ef08f.js} +1 -1
- package/build/{index-a83a062e.js → index-3ec72615.js} +1 -1
- package/build/{index-f9086275.js → index-418e90d8.js} +1 -1
- package/build/{index-b6acdcae.js → index-41e68508.js} +1 -1
- package/build/{index-635e21cc.js → index-69c0db0a.js} +1 -1
- package/build/{index-2b30377d.js → index-8069d1d7.js} +1 -1
- package/build/{index-2cbdb4bf.js → index-848fa64c.js} +1 -1
- package/build/{index-8a6a7cc0.js → index-a53f079b.js} +1 -1
- package/build/{index-9152ca1d.js → index-b26ecfdc.js} +1 -1
- package/build/{index-f8b86c53.js → index-be61e85d.js} +1 -1
- package/build/index-be8d001b.js +1 -0
- package/build/index-c7e47242.js +90 -0
- package/build/index-c9367006.js +1 -0
- package/build/{index-11f0284b.js → index-cf484b7d.js} +5 -5
- package/build/index-d60d5ed0.js +1 -0
- package/build/{index-e98fdd8c.js → index-d9be5c49.js} +1 -1
- package/build/index-d9fe084e.js +1 -0
- package/build/{index-a1d07633.js → index-e27bb585.js} +1 -1
- package/build/{index-c8db56b7.js → index-ec6bfada.js} +1 -1
- package/build/index-eda462dc.js +1 -0
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-6ff0df3f.js → index.styled-2ea14cde.js} +1 -1
- package/build/{index.styled-e3aa6f73.js → index.styled-8e2ae4d7.js} +4 -4
- package/build/{index.styled-6e461cdf.js → index.styled-90b84b33.js} +1 -1
- package/build/{index.styled-eb8f4b1e.js → index.styled-c6f43836.js} +216 -216
- package/build/{index.styled-642f11f7.js → index.styled-d3bae8db.js} +1 -1
- package/build/{index.styled-805b1f85.js → index.styled-db0039e0.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc/theme.d.ts +10 -0
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-72b2705b.js → routing-453749e7.js} +1 -1
- package/build/screenSizeContext-c963764d.js +81 -0
- package/build/{theme-9a2f5576.js → theme-3a67cf6b.js} +1 -1
- package/build/together/components/molecules/cardAuthor/index.d.ts +1 -1
- package/build/together/components/molecules/createNewPostContent/index.styled.d.ts +2 -0
- package/build/together/components/molecules/profileDetail/index.d.ts +2 -2
- package/build/together/components/molecules/profileDetailModal/index.d.ts +2 -2
- package/build/together.js +1 -1
- package/build/translationsContext-7616530f.js +1 -0
- package/build/translationsProvider-01e5a5f4.js +1 -0
- package/build/{types-02e3f27e.js → types-533e972c.js} +111 -82
- package/build/{types-8aaea47a.js → types-f4ab665b.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useHealthToolCache-7f3b83ae.js → useHealthToolCache-87fe1048.js} +1 -1
- package/build/{useRafState-012ffb1f.js → useRafState-1c556a96.js} +1 -1
- package/build/useTranslations-9e830974.js +1 -0
- package/package.json +1 -4
- package/build/components/mantine/theme.d.ts +0 -3
- package/build/ecom.js +0 -1
- package/build/esm/ecom.js +0 -1
- package/build/esm/index-21b4181b.js +0 -1
- package/build/esm/index-2c15a988.js +0 -1
- package/build/esm/index-5923c954.js +0 -1
- package/build/esm/index-5a00107b.js +0 -1
- package/build/esm/index-653fcb30.js +0 -1
- package/build/esm/index-7b6296d5.js +0 -1
- package/build/esm/translationsContext-fc21efad.js +0 -1
- package/build/esm/translationsProvider-84f592ea.js +0 -1
- package/build/esm/types-2bbcf540.js +0 -1
- package/build/esm/useHealthToolCache-23715185.js +0 -1
- package/build/getDynamicHealthTool-e361a825.js +0 -1
- package/build/index-0207c31b.js +0 -1
- package/build/index-2d563c87.js +0 -1
- package/build/index-8f5c7ee3.js +0 -90
- package/build/index-aa3c9ce0.js +0 -1
- package/build/index-b4ea7a21.js +0 -1
- package/build/index-d8eec019.js +0 -1
- package/build/screenSizeContext-aa77f70a.js +0 -81
- package/build/translationsContext-c77a479e.js +0 -1
- package/build/translationsProvider-631b95ce.js +0 -1
- package/build/types-5a9b3c87.js +0 -1
- package/build/useTranslations-fa071ccf.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-49a7e033.js → BMI_BOYS.percentile.monthly-108ba112.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-c3647a26.js → BMI_BOYS.percentile.weekly-243eeaa3.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-b182554a.js → BMI_BOYS.percentile.yearly-f64b773b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-6e49f68e.js → BMI_BOYS.zscore.monthly-0bf403c5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-473f821a.js → BMI_BOYS.zscore.weekly-ea73c185.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-91a7ef2e.js → BMI_BOYS.zscore.yearly-25955e55.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-489e52dc.js → BMI_GIRLS.percentile.monthly-33ae8c5b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-232aa9fd.js → BMI_GIRLS.percentile.weekly-c4681b89.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-fe7db447.js → BMI_GIRLS.percentile.yearly-d1b6c753.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-1eeee735.js → BMI_GIRLS.zscore.monthly-6232f0fd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-27ad267f.js → BMI_GIRLS.zscore.weekly-b6849164.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-ddb674d8.js → BMI_GIRLS.zscore.yearly-283b4bca.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-0a67b15b.js → HEAD CIRCUM_BOYS.percentile.monthly-f74a5c80.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-7ef9f7a7.js → HEAD CIRCUM_BOYS.percentile.weekly-d39286f2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-22d0bdda.js → HEAD CIRCUM_BOYS.percentile.yearly-a1e517cc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-d07fa700.js → HEAD CIRCUM_BOYS.zscore.monthly-17972e50.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-85731a7c.js → HEAD CIRCUM_BOYS.zscore.weekly-06e356eb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-3dbc3d23.js → HEAD CIRCUM_BOYS.zscore.yearly-96ad14bd.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-9c94c219.js → HEAD CIRCUM_GIRLS.percentile.monthly-759b03c3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-3d6afa9f.js → HEAD CIRCUM_GIRLS.percentile.weekly-e041de81.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-23f85bb3.js → HEAD CIRCUM_GIRLS.percentile.yearly-e7635ae7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-9e2e4574.js → HEAD CIRCUM_GIRLS.zscore.monthly-120719a2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-970f3868.js → HEAD CIRCUM_GIRLS.zscore.weekly-ff86bd24.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5f91a7be.js → HEAD CIRCUM_GIRLS.zscore.yearly-df623fa5.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-fc85d952.js → HEIGHT_BOYS.percentile.monthly-98e3bac7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-f90cdf3c.js → HEIGHT_BOYS.percentile.weekly-77c14d61.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-69d74ff2.js → HEIGHT_BOYS.percentile.yearly-65a9070b.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-c4c6ec23.js → HEIGHT_BOYS.zscore.monthly-e2363e93.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-5e246b85.js → HEIGHT_BOYS.zscore.weekly-8e7a5d2c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-a9a6c560.js → HEIGHT_BOYS.zscore.yearly-d48145f8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-ad9e6190.js → HEIGHT_GIRLS.percentile.monthly-7026506e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-6ad975ae.js → HEIGHT_GIRLS.percentile.weekly-6d22f0bf.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-a5be7a5c.js → HEIGHT_GIRLS.percentile.yearly-a7abdf4c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-8be73103.js → HEIGHT_GIRLS.zscore.monthly-90cad4ac.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-9e844863.js → HEIGHT_GIRLS.zscore.weekly-a366f1ee.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-3794c302.js → HEIGHT_GIRLS.zscore.yearly-49561db1.js} +0 -0
- /package/build/{Locale-0c6090ac.js → Locale-d3725c77.js} +0 -0
- /package/build/{Visible-5cc9afc6.js → Visible-40d36f80.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-ec4e917a.js → WEIGHT_BOYS.percentile.monthly-081e5c0a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-cf18e9d9.js → WEIGHT_BOYS.percentile.weekly-8ea3e35a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-0d17cbec.js → WEIGHT_BOYS.percentile.yearly-9916eb15.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-8055934c.js → WEIGHT_BOYS.zscore.monthly-02f30e10.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-42499533.js → WEIGHT_BOYS.zscore.weekly-f9b8f43b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-f566a157.js → WEIGHT_BOYS.zscore.yearly-0588a53b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-378ceed4.js → WEIGHT_GIRLS.percentile.monthly-e9bdc458.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-097016f4.js → WEIGHT_GIRLS.percentile.weekly-61f3fa06.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-b8cab7d6.js → WEIGHT_GIRLS.percentile.yearly-49eaa5b8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-18e50eb6.js → WEIGHT_GIRLS.zscore.monthly-7bb2c82f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-07eb577d.js → WEIGHT_GIRLS.zscore.weekly-e11abc21.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-61d9aba2.js → WEIGHT_GIRLS.zscore.yearly-51b30e83.js} +0 -0
- /package/build/{constants-c4903a50.js → constants-92a53509.js} +0 -0
- /package/build/{cookieHelper-9f080637.js → cookieHelper-bf0935e9.js} +0 -0
- /package/build/{dataTransform-a110e001.js → dataTransform-7834fcba.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-6162dbd1.js → BMI_BOYS.percentile.monthly-6577f576.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-ff0abf39.js → BMI_BOYS.percentile.weekly-98b8b591.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-0a5cbf88.js → BMI_BOYS.percentile.yearly-005979f2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-3bb589cb.js → BMI_BOYS.zscore.monthly-125e14ce.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-f5d0d55b.js → BMI_BOYS.zscore.weekly-7a6741de.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-168bb8ab.js → BMI_BOYS.zscore.yearly-b8721caf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-1bf2c569.js → BMI_GIRLS.percentile.monthly-59dd3c04.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-fb2f3e86.js → BMI_GIRLS.percentile.weekly-5cd855bd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-506acc36.js → BMI_GIRLS.percentile.yearly-c7eaee21.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-b64e0a5b.js → BMI_GIRLS.zscore.monthly-229f268b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-f1a9c248.js → BMI_GIRLS.zscore.weekly-461e1354.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-eff14fa8.js → BMI_GIRLS.zscore.yearly-5dff710d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-4b557dea.js → HEAD CIRCUM_BOYS.percentile.monthly-eea66ac6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d301205d.js → HEAD CIRCUM_BOYS.percentile.weekly-c48a96de.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-cbf0239b.js → HEAD CIRCUM_BOYS.percentile.yearly-cc038d19.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-1e472bf5.js → HEAD CIRCUM_BOYS.zscore.monthly-212fed70.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-5fc4fbf2.js → HEAD CIRCUM_BOYS.zscore.weekly-e8fb5cad.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-7fd04beb.js → HEAD CIRCUM_BOYS.zscore.yearly-ca99ef9f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0af48708.js → HEAD CIRCUM_GIRLS.percentile.monthly-6580b5f3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-d6b698bd.js → HEAD CIRCUM_GIRLS.percentile.weekly-00902b1a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f7b231b7.js → HEAD CIRCUM_GIRLS.percentile.yearly-97e5ab3a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-83186826.js → HEAD CIRCUM_GIRLS.zscore.monthly-4004628c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-c0791949.js → HEAD CIRCUM_GIRLS.zscore.weekly-eed13899.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-dfa2a71e.js → HEAD CIRCUM_GIRLS.zscore.yearly-e839f07e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b39865ac.js → HEIGHT_BOYS.percentile.monthly-44e7f5cf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-df5a99f1.js → HEIGHT_BOYS.percentile.weekly-ab00658b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-7e0b7ed8.js → HEIGHT_BOYS.percentile.yearly-5f7ce964.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-559b4b5d.js → HEIGHT_BOYS.zscore.monthly-bc9b441f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-544455a6.js → HEIGHT_BOYS.zscore.weekly-a1bfd47f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-81690a5c.js → HEIGHT_BOYS.zscore.yearly-eb71d829.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-4fa737ad.js → HEIGHT_GIRLS.percentile.monthly-eaed32d3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-2c85d07d.js → HEIGHT_GIRLS.percentile.weekly-26281cb0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-1b366b28.js → HEIGHT_GIRLS.percentile.yearly-126b9d5e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-d26f368c.js → HEIGHT_GIRLS.zscore.monthly-8333d296.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-5e356b98.js → HEIGHT_GIRLS.zscore.weekly-86b79cd7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-82c23bb8.js → HEIGHT_GIRLS.zscore.yearly-3e7e0131.js} +0 -0
- /package/build/esm/{Locale-00425d00.js → Locale-6469ef78.js} +0 -0
- /package/build/esm/{Visible-7eca30b5.js → Visible-0362f1ea.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b4bf9069.js → WEIGHT_BOYS.percentile.monthly-5623a24c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-28cf566c.js → WEIGHT_BOYS.percentile.weekly-f998ae6d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-22454f28.js → WEIGHT_BOYS.percentile.yearly-285df090.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-7c5c813b.js → WEIGHT_BOYS.zscore.monthly-a3bd7c1a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-58a385f6.js → WEIGHT_BOYS.zscore.weekly-b1edb3bd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-e4806377.js → WEIGHT_BOYS.zscore.yearly-ebad8f5c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-26c96203.js → WEIGHT_GIRLS.percentile.monthly-7c9c14f4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-a75e2e5b.js → WEIGHT_GIRLS.percentile.weekly-c0badf0b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-08ff921c.js → WEIGHT_GIRLS.percentile.yearly-65c50ae2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-88a3e7cd.js → WEIGHT_GIRLS.zscore.monthly-314436bc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-e5bfd844.js → WEIGHT_GIRLS.zscore.weekly-74bbd106.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-547bc55e.js → WEIGHT_GIRLS.zscore.yearly-5a31e935.js} +0 -0
- /package/build/esm/{constants-d1288784.js → constants-109e061e.js} +0 -0
- /package/build/esm/{cookieHelper-e007aa92.js → cookieHelper-8b66a28e.js} +0 -0
- /package/build/esm/{dataTransform-2fba1b2c.js → dataTransform-ea2145c9.js} +0 -0
- /package/build/esm/{index-87ee0d76.js → index-a446e9f8.js} +0 -0
- /package/build/esm/{isProduction-fab10892.js → isProduction-9eb49bc1.js} +0 -0
- /package/build/esm/{localizeNumberFormat-0724d25a.js → localizeNumberFormat-e12f7930.js} +0 -0
- /package/build/esm/{normalizeLink-2ec03ba7.js → normalizeLink-23fd2ac0.js} +0 -0
- /package/build/esm/{tslib.es6-0039c19c.js → tslib.es6-e27bef61.js} +0 -0
- /package/build/esm/{useIsInit-e1781437.js → useIsInit-88f62e7c.js} +0 -0
- /package/build/esm/{useOutsideClick-68a3714e.js → useOutsideClick-5cfd21a9.js} +0 -0
- /package/build/esm/{useScrollbarSize-3d17e421.js → useScrollbarSize-9e2afcce.js} +0 -0
- /package/build/esm/{useUniqueId-818c7708.js → useUniqueId-4a7dfffd.js} +0 -0
- /package/build/esm/{utils-7ce226e8.js → utils-e5236a8f.js} +0 -0
- /package/build/{index-0cad5f1b.js → index-30192e3f.js} +0 -0
- /package/build/{isProduction-e392487d.js → isProduction-2b0d3781.js} +0 -0
- /package/build/{localizeNumberFormat-eda96ba2.js → localizeNumberFormat-51a286c1.js} +0 -0
- /package/build/{normalizeLink-62e8417c.js → normalizeLink-9cfdf7ee.js} +0 -0
- /package/build/{tslib.es6-c8b5aa16.js → tslib.es6-22ab4f5a.js} +0 -0
- /package/build/{useIsInit-e8b04977.js → useIsInit-0ca30f1a.js} +0 -0
- /package/build/{useOutsideClick-f11e7192.js → useOutsideClick-afde045e.js} +0 -0
- /package/build/{useScrollbarSize-328d9797.js → useScrollbarSize-1f319a61.js} +0 -0
- /package/build/{useUniqueId-5a393d9b.js → useUniqueId-e41870ee.js} +0 -0
- /package/build/{utils-d98a0819.js → utils-54e65c44.js} +0 -0
package/build/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-be61e85d.js"),t=require("react"),r=require("./Locale-d3725c77.js"),a=require("./theme-3a67cf6b.js"),l=require("./index-8069d1d7.js"),o=require("styled-components"),n=require("./index-a53f079b.js"),i=require("./index-d60d5ed0.js"),s=require("./screenSizeContext-c963764d.js"),d=require("dayjs"),c=require("./useTranslations-9e830974.js"),u=require("./index.styled-db0039e0.js"),C=require("./utils-54e65c44.js");require("./gAssets.js"),require("./index.styled-8e2ae4d7.js"),require("./index-e27bb585.js"),require("@mantine/core");var h=require("./index-30192e3f.js"),m=require("./useOutsideClick-afde045e.js");require("lodash/debounce"),require("./isProduction-2b0d3781.js"),require("./index-41e68508.js");var f=require("./localizeNumberFormat-51a286c1.js"),y=require("./tslib.es6-22ab4f5a.js"),p=require("./index-be8d001b.js"),b=require("recharts"),w=require("lodash/chunk");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useScrollbarSize-1f319a61.js"),require("react-dom"),require("./useUniqueId-e41870ee.js"),require("./index.styled-d3bae8db.js"),require("lodash/throttle"),require("./translationsContext-7616530f.js"),require("string-format"),require("./index-418e90d8.js");var x=g(t),E=g(o),v=g(d),B=g(w);const L=E.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
gap: 16px;
|
|
272
272
|
margin-block: 16px;
|
|
273
273
|
}
|
|
274
|
-
`,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-
|
|
274
|
+
`,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8ea3e35a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-081e5c0a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-9916eb15.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-77c14d61.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-98e3bac7.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-65a9070b.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-d39286f2.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-f74a5c80.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-a1e517cc.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-243eeaa3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-108ba112.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-f64b773b.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-61f3fa06.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-e9bdc458.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-49eaa5b8.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-6d22f0bf.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-7026506e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-a7abdf4c.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-e041de81.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-759b03c3.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-e7635ae7.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-c4681b89.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-33ae8c5b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-d1b6c753.js")}))}}},Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-f9b8f43b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-02f30e10.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-0588a53b.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-8e7a5d2c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-e2363e93.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-d48145f8.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-06e356eb.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-17972e50.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-96ad14bd.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-ea73c185.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-0bf403c5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-25955e55.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-e11abc21.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-7bb2c82f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-51b30e83.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-a366f1ee.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-90cad4ac.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-49561db1.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-ff86bd24.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-120719a2.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-df623fa5.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-b6849164.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-6232f0fd.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-283b4bca.js")}))}}},F=(e,t,a,l)=>l===r.LOCALE.Indonesia?Y[e][t][a]():W[e][t][a](),$=(e,t)=>{const[r,a]=B.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},U=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),K=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),X=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},J=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Q=E.default.div`
|
|
275
275
|
position: relative;
|
|
276
276
|
.custom-chart-label {
|
|
277
277
|
display: flex;
|
package/build/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-ca19dfe7.js");require("./tslib.es6-22ab4f5a.js"),require("./isProduction-2b0d3781.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
|
package/build/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-f4ab665b.js"),r=require("./constants-92a53509.js");require("./tslib.es6-22ab4f5a.js"),require("react"),require("./index-41e68508.js"),require("./Locale-d3725c77.js"),require("./isProduction-2b0d3781.js"),require("./cookieHelper-bf0935e9.js"),require("./useTranslations-9e830974.js"),require("./translationsContext-7616530f.js"),require("string-format"),require("lodash/debounce"),require("./index-418e90d8.js"),require("./index.styled-8e2ae4d7.js"),require("./utils-54e65c44.js"),require("styled-components"),require("./index-8069d1d7.js"),require("./theme-3a67cf6b.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-afde045e.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type OptionValue = string | number | boolean;
|
|
3
|
+
export type BtnChoiceOption = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: OptionValue;
|
|
6
|
+
};
|
|
7
|
+
export type Props = {
|
|
8
|
+
choices: BtnChoiceOption[];
|
|
9
|
+
value?: OptionValue;
|
|
10
|
+
isMarryBaby?: boolean;
|
|
11
|
+
onChange?: (v?: OptionValue) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const BtnChoice: ({ value: valueInit, choices, onChange, isMarryBaby, }: Props) => JSX.Element;
|
|
14
|
+
export { BtnChoice };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -41,3 +41,4 @@ export type { AuthorBadgeProps } from './authorBadge';
|
|
|
41
41
|
export { NewBabyProfileRadio } from './newBabyProfileRadio';
|
|
42
42
|
export type { NewBabyProfileRadioProps } from './newBabyProfileRadio';
|
|
43
43
|
export { CustomReferenceDot } from './customReferenceDot/';
|
|
44
|
+
export { BtnChoice } from './btnChoice/';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledAspectRatio: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonProps as MantineButtonProps } from '@mantine/core';
|
|
3
|
+
export type ButtonProps = {
|
|
4
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'light' | 'ghost' | 'error';
|
|
5
|
+
} & Omit<MantineButtonProps, 'variant'> & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
6
|
+
declare const Button: ({ variant, styles, ...rest }: ButtonProps) => JSX.Element;
|
|
7
|
+
export { Button };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledButton: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -2,6 +2,10 @@ export type { SelectProps } from './select';
|
|
|
2
2
|
export { Select } from './select';
|
|
3
3
|
export type { DatePickerProps, DateRangePickerProps } from './datepicker';
|
|
4
4
|
export { DatePicker } from './datepicker';
|
|
5
|
+
export { Button } from './button';
|
|
6
|
+
export type { ButtonProps } from './button';
|
|
7
|
+
export { AspectRatio } from './aspectRatio';
|
|
8
|
+
export type { AspectRatioProps } from './aspectRatio';
|
|
5
9
|
export { Indicator } from './indicator';
|
|
6
10
|
export type { IndicatorProps } from './indicator';
|
|
7
11
|
export { TextArea } from './textArea';
|
|
@@ -4,5 +4,6 @@ import { LOCALE } from 'src/interfaces/types';
|
|
|
4
4
|
export type MantineProviderProps = {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
locale: LOCALE;
|
|
7
|
+
template?: 'hb' | 'mb';
|
|
7
8
|
} & _MantineProviderProps;
|
|
8
|
-
export declare const MantineProvider: ({ children, locale, ...props }: MantineProviderProps) => JSX.Element;
|
|
9
|
+
export declare const MantineProvider: ({ children, locale, template, ...props }: MantineProviderProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ButtonStylesParams, CSSObject, MantineTheme } from '@mantine/core';
|
|
2
|
+
export declare const GlobalButtonStyle: {
|
|
3
|
+
Button: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
size: string;
|
|
6
|
+
};
|
|
7
|
+
styles: (_theme: MantineTheme, params: ButtonStylesParams) => Partial<Record<"icon" | "label" | "root" | "inner" | "leftIcon" | "rightIcon" | "centerLoader", CSSObject>>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { InputStylesParams } from '@mantine/core';
|
|
2
|
+
import { LOCALE } from 'src/interfaces/types';
|
|
3
|
+
export declare const GlobalInputStyle: (locale: LOCALE) => {
|
|
4
|
+
InputWrapper: {
|
|
5
|
+
styles: {
|
|
6
|
+
label: {
|
|
7
|
+
marginBottom: string;
|
|
8
|
+
fontWeight: number;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
lineHeight: string;
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
description: {
|
|
14
|
+
fontWeight: number;
|
|
15
|
+
fontSize: string;
|
|
16
|
+
lineHeight: string;
|
|
17
|
+
color: string;
|
|
18
|
+
marginBottom: string;
|
|
19
|
+
};
|
|
20
|
+
error: {
|
|
21
|
+
marginTop: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
NumberInput: {
|
|
26
|
+
defaultProps: {
|
|
27
|
+
decimalSeparator: "," | ".";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
Input: {
|
|
31
|
+
styles: (_: any, params: InputStylesParams) => {
|
|
32
|
+
input: {
|
|
33
|
+
'&:focus': {
|
|
34
|
+
boxShadow: string;
|
|
35
|
+
};
|
|
36
|
+
'&:hover': {
|
|
37
|
+
border: string;
|
|
38
|
+
};
|
|
39
|
+
height: number;
|
|
40
|
+
fontSize: number;
|
|
41
|
+
lineHeight: number;
|
|
42
|
+
minHeight?: undefined;
|
|
43
|
+
border: string;
|
|
44
|
+
transition: string;
|
|
45
|
+
} | {
|
|
46
|
+
'&:focus': {
|
|
47
|
+
boxShadow: string;
|
|
48
|
+
};
|
|
49
|
+
'&:hover': {
|
|
50
|
+
border: string;
|
|
51
|
+
};
|
|
52
|
+
height: number;
|
|
53
|
+
fontSize: number;
|
|
54
|
+
lineHeight: number;
|
|
55
|
+
minHeight: string;
|
|
56
|
+
border: string;
|
|
57
|
+
transition: string;
|
|
58
|
+
};
|
|
59
|
+
invalid: {
|
|
60
|
+
border: string;
|
|
61
|
+
color: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
package/build/components/organisms/navigationV2/components/molecules/navigationBar/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { MenuItemType } from 'components/organisms/navigationV2/types';
|
|
3
3
|
export type TypeProps = 'popup' | 'popup-sub-level' | 'home';
|
|
4
4
|
export interface Props {
|
|
@@ -6,8 +6,6 @@ export interface Props {
|
|
|
6
6
|
type: TypeProps;
|
|
7
7
|
languageMenu?: JSX.Element;
|
|
8
8
|
menuItems: MenuItemType[];
|
|
9
|
-
sitewideBannerClosed?: boolean;
|
|
10
|
-
setSitewideBannerClosed?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
9
|
}
|
|
12
|
-
declare const NavigationBar: ({ onTopBarAppears, type, languageMenu, menuItems,
|
|
10
|
+
declare const NavigationBar: ({ onTopBarAppears, type, languageMenu, menuItems, }: Props) => JSX.Element;
|
|
13
11
|
export { NavigationBar };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const useHeaderHeight: ({ hasSponsoredBanners,
|
|
2
|
+
export declare const useHeaderHeight: ({ hasSponsoredBanners, isSponsored, isShowingSiteWideBanner, isMobile, }: {
|
|
3
3
|
hasSponsoredBanners?: boolean;
|
|
4
|
-
isSiteWide?: boolean;
|
|
5
4
|
isSponsored?: boolean;
|
|
6
5
|
isShowingSiteWideBanner?: boolean;
|
|
7
6
|
isMobile?: boolean;
|
|
@@ -145,9 +145,6 @@ export type State = {
|
|
|
145
145
|
isOpenDueDatePopup?: boolean;
|
|
146
146
|
dueDateRedirectLink?: string | null;
|
|
147
147
|
dueDate?: string | null;
|
|
148
|
-
sitewideClose: {
|
|
149
|
-
[key: string]: boolean;
|
|
150
|
-
};
|
|
151
148
|
};
|
|
152
149
|
export type UrlSource = 'first_login' | 'welcome_back' | 'comment';
|
|
153
150
|
export type Action = {
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-d9fe084e.js"),r=require("./index-b26ecfdc.js"),o=require("./index-a53f079b.js"),t=require("./index-c9367006.js"),i=require("./index.styled-db0039e0.js"),a=require("./index-418e90d8.js"),s=require("./index.styled-8e2ae4d7.js"),n=require("./index-d9be5c49.js"),d=require("./index.styled-c6f43836.js"),u=require("./index-8069d1d7.js"),p=require("./index-e27bb585.js"),x=require("./index-be61e85d.js"),l=require("./index-be8d001b.js"),c=require("./index-30192e3f.js"),q=require("./dataTransform-b8e97d79.js"),g=require("./index-848fa64c.js"),C=require("./footer.js");require("react"),require("./utils-54e65c44.js"),require("./useUniqueId-e41870ee.js"),require("./gAssets.js"),require("./index-41e68508.js"),require("./Locale-d3725c77.js"),require("./isProduction-2b0d3781.js"),require("./theme-3a67cf6b.js"),require("./tslib.es6-22ab4f5a.js"),require("lodash/throttle"),require("keen-slider/react"),require("./useTranslations-9e830974.js"),require("./translationsContext-7616530f.js"),require("string-format"),require("date-fns"),require("dayjs"),require("@mantine/core"),require("./index.styled-d3bae8db.js"),require("styled-components"),require("./index.styled-2ea14cde.js"),require("./cookieHelper-bf0935e9.js"),require("slugify"),require("./routing-453749e7.js"),require("dayjs/plugin/relativeTime"),require("./index-d60d5ed0.js"),require("./index-eda462dc.js"),require("@mantine/hooks"),require("./index-1e9a8775.js"),require("react-hook-form"),require("./useHealthToolCache-87fe1048.js"),require("./getDynamicHealthTool-9a866ff7.js"),require("./core-ca19dfe7.js"),require("./normalizeLink-9cfdf7ee.js"),require("./screenSizeContext-c963764d.js"),require("./useOutsideClick-afde045e.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-752ecc88.js"),require("@mantine/dates"),require("./constants-92a53509.js"),require("./useIsInit-0ca30f1a.js"),require("lodash/debounce"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-1f319a61.js"),require("react-dom"),require("./index.styled-90b84b33.js"),require("./index-312ef08f.js"),require("@mantine/carousel"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.Carousel=e.Carousel,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.Immunization=e.Immunization,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.RecordsByAgeGroup=e.RecordsByAgeGroup,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tag=e.Tag,exports.TimelineBanner=e.TimelineBanner,exports.Toggle=e.Toggle,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.VaccineCard=e.VaccineCard,exports.VaccineDetailPopup=e.VaccineDetailPopup,exports.Avatar=r.Avatar,exports.Flag=r.Flag,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.AuthorBadge=t.AuthorBadge,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.Tabs=t.Tabs,exports.Heading=i.Heading,exports.Menu=i.Menu,exports.PureInput=i.PureInput,exports.TextArea=i.TextArea,exports.TextDivider=i.TextDivider,exports.Input=a.Input,exports.Label=s.Label,exports.Logo=n.Logo,exports.DatePicker=d.DatePicker,exports.DoctorInfo=d.DoctorInfo,exports.Dropdown=d.Dropdown,exports.MobileBottomNavigation=d.MobileBottomNavigation,exports.MobileBottomNavigationIcon=d.MobileBottomNavigationIcon,exports.Radio=d.Radio,exports.RadioGroup=d.RadioGroup,exports.SurveyQuestionCard=d.SurveyQuestionCard,exports.ToolsBannerCard=d.ToolsBannerCard,exports.Text=u.Text,exports.Container=p.Container,exports.Drawer=x.Drawer,exports.Icon=x.Icon,exports.Modal=x.Modal,exports.RadioImageGroup=x.RadioImageGroup,exports.NewBabyProfileRadio=l.NewBabyProfileRadio,exports.CustomReferenceDot=c.CustomReferenceDot,exports.Popup=q.Popup,exports.PillCarousel=g.PillCarousel,exports.Footer=C.Footer;
|
package/build/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./Locale-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./Locale-d3725c77.js");var e=require("./index-41e68508.js"),O=require("./isProduction-2b0d3781.js");exports.CARE_BOOKING_LOCALES=e.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=e.CARE_LOCALES,exports.FAVICONS=e.FAVICONS,exports.ISO_FORMAT=e.ISO_FORMAT,exports.LOCALE_SPECS=e.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return e.QUERY_HEALTH_TOOL}}),exports.STATIC_PAGES=e.STATIC_PAGES,exports.TOGETHER_LOCALES=e.TOGETHER_LOCALES,exports.UP_BASEPATH=e.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=e.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=e.domainLocales,exports.siteHost=e.siteHost,exports.siteOptions=e.siteOptions,exports.isProduction=O.isProduction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-
|
|
1
|
+
"use strict";var t=require("./tslib.es6-22ab4f5a.js"),e=require("./isProduction-2b0d3781.js");const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},r=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}};exports.getCachedItem=i,exports.getDataWithCache=(e,a,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(a){const t=yield a();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react"),i=require("./index.styled-6ff0df3f.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(e);const l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},a=e=>{var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:s(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(s),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},r=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},u=e=>({postTitle:e.post_title,permalink:e.permalink}),s=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>s(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?u(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,c,p,_,g,y,w,h,b,k,I,C,x,S,T,P,A,B,D,q,U;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(x=e.mentioned)||void 0===x?void 0:x.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.partner_id):"",doctorId:(null===(A=e.mentioned)||void 0===A?void 0:A.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(U=e.mentioned)||void 0===U?void 0:U.title)||""}:null,mentions:e.mentions||[]}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:d,formatReviewedCategory:u,formatCategory:s,formatCategoryApi:e=>e?{categoryInfo:s(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(s)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});exports.Popup=({type:e="lead",closeIcon:o,isOpen:l=!0,onClose:n,children:a,className:r="",enableAnimation:d=!0})=>t.default.createElement(t.default.Fragment,null,t.default.createElement(i.StyledPopup$2,{"data-open":l,"data-type":e,"data-animation":d},t.default.createElement("div",{className:`${r||""} popup-content`},!!o&&t.default.createElement("div",{className:"close-button",onClick:n},o),a)),t.default.createElement(i.StyledPopupWrapper,{"data-open":l,onClick:n})),exports.dataTransform=h,exports.formatArticle=a,exports.formatComment=f,exports.formatCommunity=c,exports.formatOvulationInfo=y,exports.formatPost=g,exports.formatTopic=p,exports.formatUserProfileUrl=w;
|
|
1
|
+
"use strict";var e=require("react"),i=require("./index.styled-2ea14cde.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(e);const l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},a=e=>{var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:s(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(s),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},r=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},u=e=>({postTitle:e.post_title,permalink:e.permalink}),s=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>s(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?u(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,c,p,_,g,y,w,h,b,k,I,C,x,S,T,P,A,B,D,q,U;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(x=e.mentioned)||void 0===x?void 0:x.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.partner_id):"",doctorId:(null===(A=e.mentioned)||void 0===A?void 0:A.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(U=e.mentioned)||void 0===U?void 0:U.title)||""}:null,mentions:e.mentions||[]}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:d,formatReviewedCategory:u,formatCategory:s,formatCategoryApi:e=>e?{categoryInfo:s(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(s)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});exports.Popup=({type:e="lead",closeIcon:o,isOpen:l=!0,onClose:n,children:a,className:r="",enableAnimation:d=!0})=>t.default.createElement(t.default.Fragment,null,t.default.createElement(i.StyledPopup$2,{"data-open":l,"data-type":e,"data-animation":d},t.default.createElement("div",{className:`${r||""} popup-content`},!!o&&t.default.createElement("div",{className:"close-button",onClick:n},o),a)),t.default.createElement(i.StyledPopupWrapper,{"data-open":l,onClick:n})),exports.dataTransform=h,exports.formatArticle=a,exports.formatComment=f,exports.formatCommunity=c,exports.formatOvulationInfo=y,exports.formatPost=g,exports.formatTopic=p,exports.formatUserProfileUrl=w;
|
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as e,D as t,M as r}from"./index-
|
|
1
|
+
import{I as e,D as t,M as r}from"./index-ce5ca9a3.js";export{B as BabyGrowthGender}from"./index-ce5ca9a3.js";import l,{useMemo as o,useRef as a,useState as i,useEffect as n}from"react";import{L as s,G as c,B as d,a as C}from"./Locale-6469ef78.js";import{t as m}from"./theme-6b7bd325.js";import{T as p}from"./index-6d3b539f.js";import h from"styled-components";import{B as y}from"./index-f769282b.js";import{M as g}from"./index-1791e23d.js";import{h as f}from"./screenSizeContext-659caf43.js";import u from"dayjs";import{u as b}from"./useTranslations-968546a6.js";import{M as E,H as w}from"./index.styled-a65d40a7.js";import{s as x}from"./utils-e5236a8f.js";import"./gAssets.js";import"./index.styled-5f892397.js";import"./index-552b590e.js";import"@mantine/core";import{C as v}from"./index-a446e9f8.js";import{a as L}from"./useOutsideClick-5cfd21a9.js";import"lodash/debounce";import"./isProduction-9eb49bc1.js";import"./index-71be5920.js";import{a as M,l as k}from"./localizeNumberFormat-e12f7930.js";import{_ as H,a as I}from"./tslib.es6-e27bef61.js";import{N as j}from"./index-9d8adf93.js";import{ResponsiveContainer as S,LineChart as G,CartesianGrid as z,Tooltip as R,XAxis as Z,YAxis as _,Line as V,ReferenceDot as N}from"recharts";import T from"lodash/chunk";import"./useScrollbarSize-9e2afcce.js";import"react-dom";import"./useUniqueId-4a7dfffd.js";import"./index.styled-53a35ec5.js";import"lodash/throttle";import"./translationsContext-725e616e.js";import"string-format";import"./index-1335ef96.js";const A=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -271,7 +271,7 @@ import{I as e,D as t,M as r}from"./index-a2e77867.js";export{B as BabyGrowthGend
|
|
|
271
271
|
gap: 16px;
|
|
272
272
|
margin-block: 16px;
|
|
273
273
|
}
|
|
274
|
-
`,de=e=>{var t,r,{babyProfiles:o,currentProfileId:a,onClose:n,onCreate:s,onAddMeasurement:c,onSwitchProfile:d,open:C,isMobile:h,isMyProfile:f=!1,buttonGroup:u,newBabyValue:E,onNewBabyValueChange:w,siteType:x}=e,v=H(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType"]);const L=e=>f?l.createElement(l.Fragment,null,l.createElement(y,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,onClick:()=>{null==s||s(),n()},size:"lg",color:"secondary",icon:l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},B("babyGrowth.drawer.createBaby")),l.createElement(y,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),f?null==d||d(M):null==c||c(M),n()}},B(f?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):l.createElement(y,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,size:"lg",color:"primary",onClick:()=>{null==c||c(M),null==e||e(),n()}},B("chooseBaby.button")),[M,k]=i(a||(null===(t=o[0])||void 0===t?void 0:t.id)),{t:B}=b();return h?l.createElement(se,Object.assign({title:"Baby profiles",onClose:n,open:C,placement:"bottom"},v),(({internalClose:e})=>{var t;return l.createElement("div",{className:"add-profile-container"},l.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>l.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:M===e.id,onChange:k}))),!f&&l.createElement(j,{siteType:x,value:E,onInputChange:w,isActive:"new"===M,onChange:k})),l.createElement("div",{className:"button-group"},u||L(e)))})):l.createElement(ce,{type:"confirm",isOpen:C,onClose:n,siteType:x},l.createElement("div",{className:"header"},l.createElement("div",{className:"title"},"marryBaby"===x?l.createElement(g,{type:"subtitle-1",color:m.mbColors.dark},B("chooseBaby.title")):l.createElement(p,{size:"s2",type:"semiBold"},B("chooseBaby.title")),l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},l.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),l.createElement("div",{className:"profile-container"},null===(r=o||[])||void 0===r?void 0:r.map((e=>l.createElement(Q,{key:e.id,profile:e,isActive:M===e.id,onChange:k,siteType:x}))),!f&&l.createElement(j,{value:E,onInputChange:w,isActive:"new"===M,onChange:k,siteType:x})),l.createElement("div",{className:"button-group"},u||L()))},Ce={[c.Boy]:{[d.Weight]:{[C.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-
|
|
274
|
+
`,de=e=>{var t,r,{babyProfiles:o,currentProfileId:a,onClose:n,onCreate:s,onAddMeasurement:c,onSwitchProfile:d,open:C,isMobile:h,isMyProfile:f=!1,buttonGroup:u,newBabyValue:E,onNewBabyValueChange:w,siteType:x}=e,v=H(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType"]);const L=e=>f?l.createElement(l.Fragment,null,l.createElement(y,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,onClick:()=>{null==s||s(),n()},size:"lg",color:"secondary",icon:l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},B("babyGrowth.drawer.createBaby")),l.createElement(y,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),f?null==d||d(M):null==c||c(M),n()}},B(f?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):l.createElement(y,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,size:"lg",color:"primary",onClick:()=>{null==c||c(M),null==e||e(),n()}},B("chooseBaby.button")),[M,k]=i(a||(null===(t=o[0])||void 0===t?void 0:t.id)),{t:B}=b();return h?l.createElement(se,Object.assign({title:"Baby profiles",onClose:n,open:C,placement:"bottom"},v),(({internalClose:e})=>{var t;return l.createElement("div",{className:"add-profile-container"},l.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>l.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:M===e.id,onChange:k}))),!f&&l.createElement(j,{siteType:x,value:E,onInputChange:w,isActive:"new"===M,onChange:k})),l.createElement("div",{className:"button-group"},u||L(e)))})):l.createElement(ce,{type:"confirm",isOpen:C,onClose:n,siteType:x},l.createElement("div",{className:"header"},l.createElement("div",{className:"title"},"marryBaby"===x?l.createElement(g,{type:"subtitle-1",color:m.mbColors.dark},B("chooseBaby.title")):l.createElement(p,{size:"s2",type:"semiBold"},B("chooseBaby.title")),l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},l.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),l.createElement("div",{className:"profile-container"},null===(r=o||[])||void 0===r?void 0:r.map((e=>l.createElement(Q,{key:e.id,profile:e,isActive:M===e.id,onChange:k,siteType:x}))),!f&&l.createElement(j,{value:E,onInputChange:w,isActive:"new"===M,onChange:k,siteType:x})),l.createElement("div",{className:"button-group"},u||L()))},Ce={[c.Boy]:{[d.Weight]:{[C.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-f998ae6d.js"),[C.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-5623a24c.js"),[C.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-285df090.js")},[d.Height]:{[C.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-ab00658b.js"),[C.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-44e7f5cf.js"),[C.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-5f7ce964.js")},[d.Head]:{[C.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-c48a96de.js"),[C.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-eea66ac6.js"),[C.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-cc038d19.js")},[d.BMI]:{[C.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-98b8b591.js"),[C.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-6577f576.js"),[C.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-005979f2.js")}},[c.Girl]:{[d.Weight]:{[C.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-c0badf0b.js"),[C.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-7c9c14f4.js"),[C.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-65c50ae2.js")},[d.Height]:{[C.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-26281cb0.js"),[C.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-eaed32d3.js"),[C.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-126b9d5e.js")},[d.Head]:{[C.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-00902b1a.js"),[C.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-6580b5f3.js"),[C.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-97e5ab3a.js")},[d.BMI]:{[C.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-5cd855bd.js"),[C.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-59dd3c04.js"),[C.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-c7eaee21.js")}}},me={[c.Boy]:{[d.Weight]:{[C.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-b1edb3bd.js"),[C.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-a3bd7c1a.js"),[C.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-ebad8f5c.js")},[d.Height]:{[C.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-a1bfd47f.js"),[C.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-bc9b441f.js"),[C.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-eb71d829.js")},[d.Head]:{[C.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-e8fb5cad.js"),[C.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-212fed70.js"),[C.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-ca99ef9f.js")},[d.BMI]:{[C.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-7a6741de.js"),[C.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-125e14ce.js"),[C.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-b8721caf.js")}},[c.Girl]:{[d.Weight]:{[C.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-74bbd106.js"),[C.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-314436bc.js"),[C.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-5a31e935.js")},[d.Height]:{[C.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-86b79cd7.js"),[C.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-8333d296.js"),[C.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-3e7e0131.js")},[d.Head]:{[C.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-eed13899.js"),[C.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-4004628c.js"),[C.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-e839f07e.js")},[d.BMI]:{[C.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-461e1354.js"),[C.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-229f268b.js"),[C.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-5dff710d.js")}}},pe=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},he=(e,t,r,l)=>l===s.Indonesia?me[e][t][r]():Ce[e][t][r](),ye=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},ge=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),fe=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),ue=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},be=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Ee=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),s=l.getAttribute("x1"),c=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.blue50),d.setAttribute("fill",m.colors.blue50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(c)-Number(s))),t.appendChild(l),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},we=h.div`
|
|
275
275
|
position: relative;
|
|
276
276
|
.custom-chart-label {
|
|
277
277
|
display: flex;
|
package/build/esm/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-
|
|
1
|
+
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-81c2a10d.js";import"./tslib.es6-e27bef61.js";import"./isProduction-9eb49bc1.js";
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,t as CareTypes}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,t as CareTypes}from"./types-8ce784ad.js";export{c as CareConstants}from"./constants-109e061e.js";import"./tslib.es6-e27bef61.js";import"react";import"./index-71be5920.js";import"./Locale-6469ef78.js";import"./isProduction-9eb49bc1.js";import"./cookieHelper-8b66a28e.js";import"./useTranslations-968546a6.js";import"./translationsContext-725e616e.js";import"string-format";import"lodash/debounce";import"./index-1335ef96.js";import"./index.styled-5f892397.js";import"./utils-e5236a8f.js";import"styled-components";import"./index-6d3b539f.js";import"./theme-6b7bd325.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-5cfd21a9.js";
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Alert,e as ArticleCard,s as BMICardEmbed,w as BMRCardEmbed,t as BabyGrowthCardEmbed,u as BabyPoopEmbed,B as Badge,a as BorderHeading,f as Breadcrumbs,l as Carousel,g as CategoryCard,C as Checkbox,h as CheckboxGroup,q as CookieAcceptConfirm,y as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,p as FloatButtonGroup,G as Grid,I as IconText,L as Immunization,O as OvulationCardEmbed,x as PWGCardEmbed,P as Pagination,d as Progress,i as ProgressBar,R as RateStars,H as RecordsByAgeGroup,k as ScrollList,r as SeoHead,S as Shadow,z as ShareContainer,E as ShareDrawer,j as SideMenu,m as StatisticCard,o as SurveyThankyouCard,v as THRCardEmbed,n as Table,T as Tag,J as TimelineBanner,b as Toggle,U as UnderlinedLink,c as Uploader,V as VaccineCard,K as VaccineDetailPopup}from"./index-
|
|
1
|
+
export{A as Alert,e as ArticleCard,s as BMICardEmbed,w as BMRCardEmbed,t as BabyGrowthCardEmbed,u as BabyPoopEmbed,B as Badge,a as BorderHeading,f as Breadcrumbs,l as Carousel,g as CategoryCard,C as Checkbox,h as CheckboxGroup,q as CookieAcceptConfirm,y as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,p as FloatButtonGroup,G as Grid,I as IconText,L as Immunization,O as OvulationCardEmbed,x as PWGCardEmbed,P as Pagination,d as Progress,i as ProgressBar,R as RateStars,H as RecordsByAgeGroup,k as ScrollList,r as SeoHead,S as Shadow,z as ShareContainer,E as ShareDrawer,j as SideMenu,m as StatisticCard,o as SurveyThankyouCard,v as THRCardEmbed,n as Table,T as Tag,J as TimelineBanner,b as Toggle,U as UnderlinedLink,c as Uploader,V as VaccineCard,K as VaccineDetailPopup}from"./index-d523ae71.js";export{A as Avatar,F as Flag,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-24bbd0d5.js";export{B as Button}from"./index-f769282b.js";export{A as AuthorBadge,B as BtnChoice,D as Divider,T as Tabs}from"./index-0bd38191.js";export{H as Heading,M as Menu,P as PureInput,T as TextArea,a as TextDivider}from"./index.styled-a65d40a7.js";export{I as Input}from"./index-1335ef96.js";export{L as Label}from"./index.styled-5f892397.js";export{L as Logo}from"./index-aa518793.js";export{D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index.styled-d855e194.js";export{T as Text}from"./index-6d3b539f.js";export{C as Container}from"./index-552b590e.js";export{D as Drawer,I as Icon,M as Modal,R as RadioImageGroup}from"./index-ce5ca9a3.js";export{N as NewBabyProfileRadio}from"./index-9d8adf93.js";export{C as CustomReferenceDot}from"./index-a446e9f8.js";export{P as Popup}from"./dataTransform-2b542c76.js";export{P as PillCarousel}from"./index-38a42f37.js";export{Footer}from"./footer.js";import"react";import"./utils-e5236a8f.js";import"./useUniqueId-4a7dfffd.js";import"./gAssets.js";import"./index-71be5920.js";import"./Locale-6469ef78.js";import"./isProduction-9eb49bc1.js";import"./theme-6b7bd325.js";import"./tslib.es6-e27bef61.js";import"lodash/throttle";import"keen-slider/react";import"./useTranslations-968546a6.js";import"./translationsContext-725e616e.js";import"string-format";import"date-fns";import"dayjs";import"@mantine/core";import"./index.styled-53a35ec5.js";import"styled-components";import"./index.styled-d2707317.js";import"./cookieHelper-8b66a28e.js";import"slugify";import"./routing-faaaede9.js";import"dayjs/plugin/relativeTime";import"./index-1791e23d.js";import"./index-8422ed82.js";import"@mantine/hooks";import"./index-2fb45247.js";import"react-hook-form";import"./useHealthToolCache-718cbbb7.js";import"./getDynamicHealthTool-40fb4fcb.js";import"./core-81c2a10d.js";import"./normalizeLink-23fd2ac0.js";import"./screenSizeContext-659caf43.js";import"./useOutsideClick-5cfd21a9.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-99bba581.js";import"@mantine/dates";import"./constants-109e061e.js";import"./useIsInit-88f62e7c.js";import"lodash/debounce";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-9e2afcce.js";import"react-dom";import"./index.styled-ae956ac0.js";import"./index-c1857c2d.js";import"@mantine/carousel";
|
package/build/esm/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Locale-
|
|
1
|
+
import"./Locale-6469ef78.js";export{a as CARE_BOOKING_LOCALES,C as CARE_LOCALES,F as FAVICONS,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,b as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,c as siteHost,s as siteOptions}from"./index-71be5920.js";export{i as isProduction}from"./isProduction-9eb49bc1.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-e27bef61.js";import{i as e}from"./isProduction-9eb49bc1.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
|