@hhgtech/hhg-components 1.27.20 → 1.27.21
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/__mocks__/article.d.ts +112 -0
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/molecules/articleCard/_deprecated_index.d.ts +48 -0
- package/build/components/molecules/articleCard/articleCard.styles.d.ts +15 -0
- package/build/components/molecules/articleCard/horizontal.d.ts +5 -0
- package/build/components/molecules/articleCard/index.d.ts +24 -47
- package/build/components/molecules/articleCard/vertical.d.ts +5 -0
- package/build/components/molecules/index.d.ts +3 -1
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-5fc7daa8.js +1 -0
- package/build/dataTransform-eb0fc094.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +9 -9
- 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-f4921406.js → core-7a68b678.js} +1 -1
- package/build/esm/dataTransform-3d1d4bc1.js +1 -0
- package/build/esm/ecom.js +1 -1
- package/build/esm/fixedBottomAdBlock-a443d842.js +1 -0
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-b816e73e.js +1 -0
- package/build/esm/{getSocialList-0b1bc4d3.js → getSocialList-08ad8deb.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-fa4c894b.js → index-01b76a13.js} +2 -2
- package/build/esm/{index-cc528532.js → index-02167185.js} +1 -1
- package/build/esm/{index-5764840b.js → index-024fd863.js} +1 -1
- package/build/esm/{index-f9c8112c.js → index-0be36507.js} +1 -1
- package/build/esm/{index-0743f7be.js → index-2cc311bd.js} +1 -1
- package/build/esm/index-3c3b45c0.js +1 -0
- package/build/esm/{index-36770424.js → index-48211a00.js} +1 -1
- package/build/esm/{index-dcfae392.js → index-4a509cc6.js} +283 -283
- package/build/esm/{index-9c06b2b7.js → index-4b140eb5.js} +2 -2
- package/build/esm/index-560ba8a9.js +1 -0
- package/build/esm/{index-253fdb18.js → index-69e8fa65.js} +1 -1
- package/build/esm/{index-f5b54828.js → index-7310104f.js} +1 -1
- package/build/esm/{index-8f4eb7c8.js → index-796cd4b9.js} +1 -1
- package/build/esm/{index-94be123e.js → index-83466745.js} +1 -1
- package/build/esm/{index-fa3a3c6d.js → index-9403b310.js} +1 -1
- package/build/esm/{index-262dec12.js → index-944539e0.js} +1 -1
- package/build/esm/{index-6e7bc4c4.js → index-a3ee5512.js} +1 -1
- package/build/esm/{index-6c4357c8.js → index-a58b8d97.js} +2 -2
- package/build/esm/index-b3237719.js +1 -0
- package/build/esm/{index-75a8f3e1.js → index-c5017c09.js} +1 -1
- package/build/esm/{index-7f1fa778.js → index-deb1a19f.js} +1 -1
- package/build/esm/index-df563b31.js +1 -0
- package/build/esm/index-e895c809.js +1 -0
- package/build/esm/{index-1d241148.js → index-e9427dcc.js} +1 -1
- package/build/esm/{index-f1817571.js → index-ff1e020f.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-844a44e4.js → index.styled-19e06a97.js} +1 -1
- package/build/esm/{index.styled-061d8df4.js → index.styled-57ad1216.js} +2 -2
- package/build/esm/{index.styled-3e3f0a46.js → index.styled-b0c747db.js} +5 -5
- package/build/esm/{index.styled-725f9844.js → index.styled-d97859fe.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-60b5d5fc.js → routing-273628ac.js} +1 -1
- package/build/esm/{screenSizeContext-406f4376.js → screenSizeContext-bb948f59.js} +3 -3
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-d02f395c.js → translationsProvider-72e02090.js} +1 -1
- package/build/esm/{types-c8755532.js → types-5cd5ca0b.js} +13 -13
- package/build/esm/{types-3d44368f.js → types-b3e95c41.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-c36ffb1d.js +1 -0
- package/build/esm/{useRafState-772f2a32.js → useRafState-553a838e.js} +1 -1
- package/build/esm/useTranslations-7e9b125b.js +1 -0
- package/build/esm/{utils-0f683dd7.js → utils-99a40ef3.js} +1 -1
- package/build/esm/vaccination.js +3 -3
- package/build/fixedBottomAdBlock-69537d9d.js +1 -0
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-25afa70f.js +1 -0
- package/build/{getSocialList-343eb33a.js → getSocialList-7aaf538f.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-1f3e9f0a.js → index-00f6f629.js} +1 -1
- package/build/{index-87ba90ad.js → index-00fc8857.js} +1 -1
- package/build/{index-fef5e844.js → index-086f9d4d.js} +1 -1
- package/build/{index-13ceff0d.js → index-1be002ea.js} +1 -1
- package/build/{index-9c44f2a9.js → index-1f26ab0c.js} +1 -1
- package/build/{index-3b26129e.js → index-2b1a52f1.js} +1 -1
- package/build/{index-1beecf74.js → index-46537d24.js} +3 -3
- package/build/{index-df0be7c9.js → index-57dc3044.js} +1 -1
- package/build/{index-c6d1cb99.js → index-5b294600.js} +1 -1
- package/build/{index-f3daef0c.js → index-6b9f731c.js} +1 -1
- package/build/{index-46136591.js → index-7116efd1.js} +1 -1
- package/build/{index-c6e74326.js → index-79b9bb52.js} +1 -1
- package/build/{index-7b1f23ce.js → index-9543d304.js} +1 -1
- package/build/{index-c5f81935.js → index-95c57647.js} +1 -1
- package/build/{index-b0648d3f.js → index-b4e06b47.js} +1 -1
- package/build/{index-3d50c0f8.js → index-d8f597f8.js} +1 -1
- package/build/{index-fcac92af.js → index-d9541579.js} +1 -1
- package/build/{index-aede4c03.js → index-df595a0f.js} +1 -1
- package/build/{index-453b67ec.js → index-e15ea45f.js} +1 -1
- package/build/index-e2b29459.js +1 -0
- package/build/{index-4b7fb19a.js → index-f15e13a4.js} +1 -1
- package/build/{index-575369f9.js → index-f64380d8.js} +1 -1
- package/build/{index-27fc8c1a.js → index-f770a569.js} +1 -1
- package/build/{index-e33a141e.js → index-f80f9ffb.js} +261 -261
- package/build/{index-5fec58a6.js → index-f99a6a7c.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-e088732b.js → index.styled-11afece1.js} +1 -1
- package/build/{index.styled-3b57f0ee.js → index.styled-6b77a261.js} +1 -1
- package/build/{index.styled-582ff164.js → index.styled-6ef5f0b5.js} +1 -1
- package/build/{index.styled-97514c69.js → index.styled-940f3ed8.js} +6 -6
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-eda65989.js → routing-23f12b3b.js} +1 -1
- package/build/{screenSizeContext-63130b92.js → screenSizeContext-c3c6b5ab.js} +1 -1
- package/build/together/api/dataTransform.d.ts +11 -0
- package/build/together/interfaces/types.d.ts +163 -78
- package/build/together.js +1 -1
- package/build/{translationsProvider-304ad209.js → translationsProvider-80dd5bd5.js} +1 -1
- package/build/{types-47af7e63.js → types-4a368c57.js} +1 -1
- package/build/{types-402d7bf1.js → types-dd93c7ef.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-da048bf2.js +1 -0
- package/build/{useRafState-ee8200fb.js → useRafState-a27a2ac1.js} +1 -1
- package/build/{useTranslations-947db8a5.js → useTranslations-bdd3ff14.js} +1 -1
- package/build/utils-2639c99f.js +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-d40e01eb.js +0 -1
- package/build/dataTransform-dbeac253.js +0 -1
- package/build/esm/dataTransform-c2167199.js +0 -1
- package/build/esm/fixedBottomAdBlock-54a85d06.js +0 -1
- package/build/esm/getDynamicHealthTool-52e1f144.js +0 -1
- package/build/esm/index-1ddd5897.js +0 -1
- package/build/esm/index-27781055.js +0 -1
- package/build/esm/index-373719f8.js +0 -1
- package/build/esm/index-5f6a062f.js +0 -1
- package/build/esm/index-df931ff9.js +0 -1
- package/build/esm/useHealthToolCache-065d528b.js +0 -1
- package/build/esm/useTranslations-cdf037b8.js +0 -1
- package/build/fixedBottomAdBlock-7899cdae.js +0 -1
- package/build/getDynamicHealthTool-d27d36dc.js +0 -1
- package/build/index-af05d87a.js +0 -1
- package/build/useHealthToolCache-ed20dae6.js +0 -1
- package/build/utils-78d044db.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-4fa96134.js → BMI_BOYS.percentile.monthly-3a142091.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-328e67fe.js → BMI_BOYS.percentile.weekly-f36077cf.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-8fb3420a.js → BMI_BOYS.percentile.yearly-635dcbca.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-132c86f3.js → BMI_BOYS.zscore.monthly-d0ef44da.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-6f29f79f.js → BMI_BOYS.zscore.weekly-e644fac2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-760bb769.js → BMI_BOYS.zscore.yearly-f770abda.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-3c57ce90.js → BMI_GIRLS.percentile.monthly-55e455b2.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-1671a325.js → BMI_GIRLS.percentile.weekly-0a24fcfe.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-fe6f71ef.js → BMI_GIRLS.percentile.yearly-b8403a72.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-4f308a9f.js → BMI_GIRLS.zscore.monthly-55b67539.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-f11936a1.js → BMI_GIRLS.zscore.weekly-29170322.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-45143b67.js → BMI_GIRLS.zscore.yearly-99ea18b8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-20dee378.js → HEAD CIRCUM_BOYS.percentile.monthly-c557760f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f6cf55de.js → HEAD CIRCUM_BOYS.percentile.weekly-49b789b7.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7d544c9e.js → HEAD CIRCUM_BOYS.percentile.yearly-a0b122cd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-57107b4e.js → HEAD CIRCUM_BOYS.zscore.monthly-ea6e10da.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d53c6386.js → HEAD CIRCUM_BOYS.zscore.weekly-8d3ccb80.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c8d4b541.js → HEAD CIRCUM_BOYS.zscore.yearly-bb5c019b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-27e8a294.js → HEAD CIRCUM_GIRLS.percentile.monthly-a60b1e64.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-7fb5af60.js → HEAD CIRCUM_GIRLS.percentile.weekly-11e9bafa.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-1b96e3ee.js → HEAD CIRCUM_GIRLS.percentile.yearly-47851bf9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-8be8ab8c.js → HEAD CIRCUM_GIRLS.zscore.monthly-4077630b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-9fe66c94.js → HEAD CIRCUM_GIRLS.zscore.weekly-138146e2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3caabf26.js → HEAD CIRCUM_GIRLS.zscore.yearly-8235cb13.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-1b19d2ae.js → HEIGHT_BOYS.percentile.monthly-3c0d867c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-aef0a594.js → HEIGHT_BOYS.percentile.weekly-6226a691.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-d439286b.js → HEIGHT_BOYS.percentile.yearly-e30989a5.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-dc0c30f4.js → HEIGHT_BOYS.zscore.monthly-a924def5.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-56552293.js → HEIGHT_BOYS.zscore.weekly-64e8cffa.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-1dd3b2f1.js → HEIGHT_BOYS.zscore.yearly-fda83171.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-99add30f.js → HEIGHT_GIRLS.percentile.monthly-ebbeece9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-750cca51.js → HEIGHT_GIRLS.percentile.weekly-57967bc4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-6ff37701.js → HEIGHT_GIRLS.percentile.yearly-86c0e2a1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-da18a350.js → HEIGHT_GIRLS.zscore.monthly-c05885bd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-09856b78.js → HEIGHT_GIRLS.zscore.weekly-b0e6a0e9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-1e405510.js → HEIGHT_GIRLS.zscore.yearly-b1ca3214.js} +0 -0
- /package/build/{Onboarding-ebc555c6.js → Onboarding-10ae5938.js} +0 -0
- /package/build/{Visible-9985755d.js → Visible-bbd6451e.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-13211a04.js → WEIGHT_BOYS.percentile.monthly-b8510d82.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-d58c486a.js → WEIGHT_BOYS.percentile.weekly-60e3f7a7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-91282f30.js → WEIGHT_BOYS.percentile.yearly-93b25e89.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-d79fd04a.js → WEIGHT_BOYS.zscore.monthly-d121f9be.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-27de9410.js → WEIGHT_BOYS.zscore.weekly-136ee389.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-e9b0efeb.js → WEIGHT_BOYS.zscore.yearly-1e0c038d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-43390f3f.js → WEIGHT_GIRLS.percentile.monthly-c3f18b14.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-557c77e7.js → WEIGHT_GIRLS.percentile.weekly-568b2e0a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-760e0678.js → WEIGHT_GIRLS.percentile.yearly-d23bd671.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-35e4136e.js → WEIGHT_GIRLS.zscore.monthly-4517aa11.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-2a4fc090.js → WEIGHT_GIRLS.zscore.weekly-9f712fd5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-44345ab1.js → WEIGHT_GIRLS.zscore.yearly-dee1e4f4.js} +0 -0
- /package/build/{constants-08ec32ae.js → constants-059fba88.js} +0 -0
- /package/build/{cookieHelper-27a49116.js → cookieHelper-ef979911.js} +0 -0
- /package/build/{dataTransform-e3bf7318.js → dataTransform-dd8221c8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-4be4f026.js → BMI_BOYS.percentile.monthly-a26756cd.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-af8fdc10.js → BMI_BOYS.percentile.weekly-966c37af.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-4110edf0.js → BMI_BOYS.percentile.yearly-6edf1f94.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-baffa9bf.js → BMI_BOYS.zscore.monthly-891408db.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-3134962a.js → BMI_BOYS.zscore.weekly-050f65e8.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-f2753791.js → BMI_BOYS.zscore.yearly-3fa39d1e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-f87d4291.js → BMI_GIRLS.percentile.monthly-b229e34c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-fefeaef2.js → BMI_GIRLS.percentile.weekly-65bd3de9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-4c375f80.js → BMI_GIRLS.percentile.yearly-5fa768f1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-e2072136.js → BMI_GIRLS.zscore.monthly-d6893f2d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-c0d3c5ad.js → BMI_GIRLS.zscore.weekly-04d6052d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-bbd29215.js → BMI_GIRLS.zscore.yearly-2abfb8a5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-cefddb34.js → HEAD CIRCUM_BOYS.percentile.monthly-b2c00937.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2bb8bb96.js → HEAD CIRCUM_BOYS.percentile.weekly-d5d416fd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-6367ad40.js → HEAD CIRCUM_BOYS.percentile.yearly-6bedd4de.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-7615a3ae.js → HEAD CIRCUM_BOYS.zscore.monthly-28d0663c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a1452ea8.js → HEAD CIRCUM_BOYS.zscore.weekly-0339077c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-9798a18b.js → HEAD CIRCUM_BOYS.zscore.yearly-596da936.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1935051e.js → HEAD CIRCUM_GIRLS.percentile.monthly-a427b992.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-4cc5623c.js → HEAD CIRCUM_GIRLS.percentile.weekly-3501fb55.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-bf0d86ea.js → HEAD CIRCUM_GIRLS.percentile.yearly-9f3fc6cf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8c2471eb.js → HEAD CIRCUM_GIRLS.zscore.monthly-a1323150.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-eb72a5ba.js → HEAD CIRCUM_GIRLS.zscore.weekly-828ff49d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-6e2568f0.js → HEAD CIRCUM_GIRLS.zscore.yearly-e46dac69.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-d0a0e3c3.js → HEIGHT_BOYS.percentile.monthly-8f57a392.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-a47ee377.js → HEIGHT_BOYS.percentile.weekly-d260baba.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-e0b6e39f.js → HEIGHT_BOYS.percentile.yearly-47df0037.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5c1d26f7.js → HEIGHT_BOYS.zscore.monthly-dd63db22.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-f160d44d.js → HEIGHT_BOYS.zscore.weekly-8b2b8dec.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-ffd98b8b.js → HEIGHT_BOYS.zscore.yearly-115d41b7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ab261e36.js → HEIGHT_GIRLS.percentile.monthly-2068f47c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-2b10a774.js → HEIGHT_GIRLS.percentile.weekly-26236bc7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-8ce9104e.js → HEIGHT_GIRLS.percentile.yearly-d4dad0e3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b347f8f0.js → HEIGHT_GIRLS.zscore.monthly-184de5e0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-2ab2a6d1.js → HEIGHT_GIRLS.zscore.weekly-b6d0d1ba.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-63677b6f.js → HEIGHT_GIRLS.zscore.yearly-68029906.js} +0 -0
- /package/build/esm/{Onboarding-b9a03ed3.js → Onboarding-b425de16.js} +0 -0
- /package/build/esm/{Visible-e01e49c9.js → Visible-0ddcce73.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-9d992462.js → WEIGHT_BOYS.percentile.monthly-d5a4ded5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-e3cead45.js → WEIGHT_BOYS.percentile.weekly-d5364eb9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-c9d9289e.js → WEIGHT_BOYS.percentile.yearly-312717de.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e86fd8e3.js → WEIGHT_BOYS.zscore.monthly-8f58cd24.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7f113c50.js → WEIGHT_BOYS.zscore.weekly-bd54e817.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-dca792ab.js → WEIGHT_BOYS.zscore.yearly-b6752e86.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-9a1d2e6f.js → WEIGHT_GIRLS.percentile.monthly-d8284b8e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-1e56a78e.js → WEIGHT_GIRLS.percentile.weekly-9025a9b0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f0f2e04e.js → WEIGHT_GIRLS.percentile.yearly-4d95f790.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-24e949dc.js → WEIGHT_GIRLS.zscore.monthly-41d2ef49.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-a5e5db0e.js → WEIGHT_GIRLS.zscore.weekly-bb8b3e59.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-6a83bd38.js → WEIGHT_GIRLS.zscore.yearly-a20ad0ce.js} +0 -0
- /package/build/esm/{constants-adfc1af7.js → constants-16de50ca.js} +0 -0
- /package/build/esm/{cookieHelper-fb027e8b.js → cookieHelper-555e4df7.js} +0 -0
- /package/build/esm/{dataTransform-86e4e263.js → dataTransform-c5270174.js} +0 -0
- /package/build/esm/{index-17e070c5.js → index-c0bb968b.js} +0 -0
- /package/build/esm/{index-2cc0bbe5.js → index-de0a1075.js} +0 -0
- /package/build/esm/{isProduction-da7b81f2.js → isProduction-4824d4ae.js} +0 -0
- /package/build/esm/{localizeNumberFormat-351d0fd5.js → localizeNumberFormat-f0cd626c.js} +0 -0
- /package/build/esm/{normalizeLink-5db2ffa6.js → normalizeLink-2c40a8ff.js} +0 -0
- /package/build/esm/{theme-76cfb450.js → theme-65096834.js} +0 -0
- /package/build/esm/{translationsContext-1662b4e8.js → translationsContext-008485fb.js} +0 -0
- /package/build/esm/{tslib.es6-935f080f.js → tslib.es6-448e0a38.js} +0 -0
- /package/build/esm/{types-40d2aa4c.js → types-91686d2e.js} +0 -0
- /package/build/esm/{useIsInit-53cb6952.js → useIsInit-f8d461d7.js} +0 -0
- /package/build/esm/{useOutsideClick-08cac710.js → useOutsideClick-6b303c0c.js} +0 -0
- /package/build/esm/{useScrollbarSize-9ebbdfbf.js → useScrollbarSize-49f320c3.js} +0 -0
- /package/build/esm/{useUniqueId-473f5e3d.js → useUniqueId-da1c9d1f.js} +0 -0
- /package/build/esm/{utils-79fc4167.js → utils-2dd925b4.js} +0 -0
- /package/build/{index-daeb9cc5.js → index-5a88e402.js} +0 -0
- /package/build/{index-9e5b43f3.js → index-78e54dde.js} +0 -0
- /package/build/{isProduction-36925238.js → isProduction-8407abfb.js} +0 -0
- /package/build/{localizeNumberFormat-c1d14421.js → localizeNumberFormat-cc2e28a7.js} +0 -0
- /package/build/{normalizeLink-4572ea6b.js → normalizeLink-2c5f40d5.js} +0 -0
- /package/build/{theme-a579acf5.js → theme-c5a6785e.js} +0 -0
- /package/build/{translationsContext-b8100002.js → translationsContext-7210431d.js} +0 -0
- /package/build/{tslib.es6-546fbd3e.js → tslib.es6-a9f3656b.js} +0 -0
- /package/build/{types-54c3468f.js → types-1db52b8f.js} +0 -0
- /package/build/{useIsInit-ca718a2c.js → useIsInit-80686861.js} +0 -0
- /package/build/{useOutsideClick-8a3dfc26.js → useOutsideClick-fd068dca.js} +0 -0
- /package/build/{useScrollbarSize-ca91e319.js → useScrollbarSize-d22b5226.js} +0 -0
- /package/build/{useUniqueId-4f661606.js → useUniqueId-9078c6cc.js} +0 -0
- /package/build/{utils-1c50a2ef.js → utils-b2e9c50d.js} +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export declare const MOCK_ARTICLE: {
|
|
2
|
+
ID: number;
|
|
3
|
+
post_name: string;
|
|
4
|
+
post_title: string;
|
|
5
|
+
post_status: string;
|
|
6
|
+
post_date: string;
|
|
7
|
+
post_modified: string;
|
|
8
|
+
modified_time: string;
|
|
9
|
+
edit_last: {
|
|
10
|
+
ID: number;
|
|
11
|
+
user_id: number;
|
|
12
|
+
former_role: string;
|
|
13
|
+
role: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
display_name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
profile_url: string;
|
|
18
|
+
avatar: string;
|
|
19
|
+
avatar_thumbnail: string;
|
|
20
|
+
avatar_large: string;
|
|
21
|
+
turn_off_profile: boolean;
|
|
22
|
+
};
|
|
23
|
+
permalink: string;
|
|
24
|
+
label: string;
|
|
25
|
+
hide_cover: boolean;
|
|
26
|
+
is_sponsored: boolean;
|
|
27
|
+
is_premium: boolean;
|
|
28
|
+
premium_teaser: any;
|
|
29
|
+
sponsor: any;
|
|
30
|
+
reviewed: {
|
|
31
|
+
author: {
|
|
32
|
+
ID: number;
|
|
33
|
+
user_id: number;
|
|
34
|
+
former_role: string;
|
|
35
|
+
role: string;
|
|
36
|
+
slug: string;
|
|
37
|
+
display_name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
profile_url: string;
|
|
40
|
+
avatar: string;
|
|
41
|
+
avatar_thumbnail: string;
|
|
42
|
+
avatar_large: string;
|
|
43
|
+
turn_off_profile: boolean;
|
|
44
|
+
};
|
|
45
|
+
editor: any;
|
|
46
|
+
expert: {
|
|
47
|
+
ID: number;
|
|
48
|
+
user_id: number;
|
|
49
|
+
former_role: string;
|
|
50
|
+
role: string;
|
|
51
|
+
slug: string;
|
|
52
|
+
display_name: string;
|
|
53
|
+
description: string;
|
|
54
|
+
profile_url: string;
|
|
55
|
+
avatar: string;
|
|
56
|
+
avatar_thumbnail: string;
|
|
57
|
+
avatar_large: string;
|
|
58
|
+
turn_off_profile: boolean;
|
|
59
|
+
'care-booking': any;
|
|
60
|
+
specialty: string;
|
|
61
|
+
organisation: string;
|
|
62
|
+
organisation_url: string;
|
|
63
|
+
};
|
|
64
|
+
fact_check: any;
|
|
65
|
+
is_author: boolean;
|
|
66
|
+
};
|
|
67
|
+
pregnancy: boolean;
|
|
68
|
+
week_pregnancy: number;
|
|
69
|
+
post_content: string;
|
|
70
|
+
sources: string;
|
|
71
|
+
categories: {
|
|
72
|
+
term_id: number;
|
|
73
|
+
name: string;
|
|
74
|
+
slug: string;
|
|
75
|
+
permalink: string;
|
|
76
|
+
text_color: string;
|
|
77
|
+
lang: string;
|
|
78
|
+
}[];
|
|
79
|
+
breadcrumb: {
|
|
80
|
+
term_id: number;
|
|
81
|
+
name: string;
|
|
82
|
+
en_name: string;
|
|
83
|
+
cat_name: string;
|
|
84
|
+
permalink: string;
|
|
85
|
+
image: string;
|
|
86
|
+
icon: string;
|
|
87
|
+
image_color: string;
|
|
88
|
+
text_color: string;
|
|
89
|
+
lang: string;
|
|
90
|
+
}[];
|
|
91
|
+
primary_category: {
|
|
92
|
+
term_id: number;
|
|
93
|
+
slug: string;
|
|
94
|
+
count: number;
|
|
95
|
+
name: string;
|
|
96
|
+
permalink: string;
|
|
97
|
+
text_color: string;
|
|
98
|
+
lang: string;
|
|
99
|
+
};
|
|
100
|
+
image: string;
|
|
101
|
+
image_medium: string;
|
|
102
|
+
image_thumbnail: string;
|
|
103
|
+
turn_off_comment: boolean;
|
|
104
|
+
turn_off_ivs_player: boolean;
|
|
105
|
+
enable_audio: boolean;
|
|
106
|
+
lang: string;
|
|
107
|
+
affiliate_message: any;
|
|
108
|
+
related_articles: string[];
|
|
109
|
+
jumping_link: any[];
|
|
110
|
+
faqs: any[];
|
|
111
|
+
meta_tag: string;
|
|
112
|
+
};
|
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-df595a0f.js"),t=require("react"),r=require("./Onboarding-10ae5938.js"),a=require("./theme-c5a6785e.js"),l=require("./index-57dc3044.js"),o=require("styled-components"),n=require("./index-f64380d8.js"),i=require("./index-7116efd1.js"),s=require("./index-79b9bb52.js"),d=require("./screenSizeContext-c3c6b5ab.js"),c=require("dayjs"),u=require("./useTranslations-bdd3ff14.js");require("lodash/debounce"),require("./isProduction-8407abfb.js"),require("./index-00fc8857.js");var C=require("./localizeNumberFormat-cc2e28a7.js"),h=require("./utils-b2e9c50d.js");require("./gAssets.js"),require("@mantine/core"),require("./index-e15ea45f.js"),require("./index-95c57647.js");var m=require("./index-5a88e402.js"),f=require("./useOutsideClick-fd068dca.js"),y=require("./tslib.es6-a9f3656b.js"),p=require("./index-f15e13a4.js"),b=require("recharts"),g=require("lodash/chunk");function w(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-9078c6cc.js"),require("react-keyed-flatten-children"),require("./index.styled-6ef5f0b5.js"),require("lodash/throttle"),require("./translationsContext-7210431d.js"),require("string-format"),require("date-fns/locale"),require("./index-b4e06b47.js"),require("./useScrollbarSize-d22b5226.js"),require("react-dom");var x=w(t),E=w(o),v=w(c),B=w(g);const L=E.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
width: 100%;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
`,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-
|
|
279
|
+
`,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-60e3f7a7.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-b8510d82.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-93b25e89.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-6226a691.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-3c0d867c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-e30989a5.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-49b789b7.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-c557760f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-a0b122cd.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-f36077cf.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-3a142091.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-635dcbca.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-568b2e0a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-c3f18b14.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-d23bd671.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-57967bc4.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-ebbeece9.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-86c0e2a1.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-11e9bafa.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-a60b1e64.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-47851bf9.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-0a24fcfe.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-55e455b2.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-b8403a72.js")}))}}},Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-136ee389.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-d121f9be.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-1e0c038d.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-64e8cffa.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-a924def5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-fda83171.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-8d3ccb80.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-ea6e10da.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-bb5c019b.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-e644fac2.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-d0ef44da.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-f770abda.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-9f712fd5.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-4517aa11.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-dee1e4f4.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-b0e6a0e9.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-c05885bd.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-b1ca3214.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-138146e2.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-4077630b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-8235cb13.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-29170322.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-55b67539.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-99ea18b8.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`
|
|
280
280
|
position: relative;
|
|
281
281
|
.custom-chart-label {
|
|
282
282
|
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-5fc7daa8.js");require("./tslib.es6-a9f3656b.js"),require("./isProduction-8407abfb.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-dd93c7ef.js"),r=require("./constants-059fba88.js");require("./tslib.es6-a9f3656b.js"),require("react"),require("./index-00fc8857.js"),require("date-fns/locale"),require("./Onboarding-10ae5938.js"),require("./isProduction-8407abfb.js"),require("./cookieHelper-ef979911.js"),require("./useTranslations-bdd3ff14.js"),require("./translationsContext-7210431d.js"),require("string-format"),require("lodash/debounce"),require("./index-b4e06b47.js"),require("@mantine/core"),require("./index-e15ea45f.js"),require("./utils-b2e9c50d.js"),require("styled-components"),require("./index-57dc3044.js"),require("./theme-c5a6785e.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-fd068dca.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CSSProperties } from 'styled-components';
|
|
3
|
+
export type Props = {
|
|
4
|
+
banner: JSX.Element;
|
|
5
|
+
title: string;
|
|
6
|
+
text: string;
|
|
7
|
+
avatarImg: JSX.Element;
|
|
8
|
+
direction?: 'vertical' | 'horizontal';
|
|
9
|
+
size?: 'sm' | 'lg' | 'md';
|
|
10
|
+
type?: 'author' | 'expert';
|
|
11
|
+
section?: 'home' | 'normal';
|
|
12
|
+
authorName: React.ReactNode;
|
|
13
|
+
authorLink?: string;
|
|
14
|
+
specialty?: string;
|
|
15
|
+
uploadTime: string;
|
|
16
|
+
categoryName?: string;
|
|
17
|
+
categoryLink?: string;
|
|
18
|
+
articleLink?: string;
|
|
19
|
+
isBookmarkDisplayed?: boolean;
|
|
20
|
+
onBookmark?: () => void;
|
|
21
|
+
isBookmark?: boolean;
|
|
22
|
+
hasAffiliate?: boolean;
|
|
23
|
+
hasButton?: boolean;
|
|
24
|
+
textButton?: string;
|
|
25
|
+
isMobile?: boolean;
|
|
26
|
+
styleBanner?: CSSProperties;
|
|
27
|
+
styleLabel?: CSSProperties;
|
|
28
|
+
styleTitle?: CSSProperties;
|
|
29
|
+
style?: CSSProperties;
|
|
30
|
+
className?: string;
|
|
31
|
+
dataEventCategoryForCategory?: string;
|
|
32
|
+
dataEventActionForCategory?: string;
|
|
33
|
+
dataEventLabelForCategory?: string;
|
|
34
|
+
dataEventCategoryForTitle?: string;
|
|
35
|
+
dataEventActionForTitle?: string;
|
|
36
|
+
dataEventLabelForTitle?: string;
|
|
37
|
+
dataEventCategoryForBanner?: string;
|
|
38
|
+
dataEventActionForBanner?: string;
|
|
39
|
+
dataEventLabelForBanner?: string;
|
|
40
|
+
dataEventCategoryForBookmark?: string;
|
|
41
|
+
dataEventActionForBookmark?: string;
|
|
42
|
+
dataEventLabelForBookmark?: string;
|
|
43
|
+
onClickCategoryName?: (e: React.MouseEvent) => void;
|
|
44
|
+
articleLinkTarget?: React.HTMLAttributeAnchorTarget;
|
|
45
|
+
isPremium?: boolean;
|
|
46
|
+
};
|
|
47
|
+
declare const ArticleCard: ({ articleLink, authorLink, authorName, avatarImg, banner, categoryLink, categoryName, className, dataEventActionForBanner, dataEventActionForBookmark, dataEventActionForCategory, dataEventActionForTitle, dataEventCategoryForBanner, dataEventCategoryForBookmark, dataEventCategoryForCategory, dataEventCategoryForTitle, dataEventLabelForBanner, dataEventLabelForBookmark, dataEventLabelForCategory, dataEventLabelForTitle, direction, hasAffiliate, isBookmark, isBookmarkDisplayed, isMobile, onBookmark, onClickCategoryName, section, size, specialty, style, styleBanner, styleLabel, styleTitle, text, title, type, uploadTime, articleLinkTarget, isPremium, }: Props) => React.JSX.Element;
|
|
48
|
+
export { ArticleCard };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ArticleCardStylesParams {
|
|
2
|
+
}
|
|
3
|
+
declare const _default: (params: ArticleCardStylesParams, options?: import("@mantine/core").UseStylesOptions<string>) => {
|
|
4
|
+
classes: {
|
|
5
|
+
root: string;
|
|
6
|
+
image: string;
|
|
7
|
+
title: string;
|
|
8
|
+
category: string;
|
|
9
|
+
description: string;
|
|
10
|
+
author: string;
|
|
11
|
+
};
|
|
12
|
+
cx: (...args: any) => string;
|
|
13
|
+
theme: import("@mantine/core").MantineTheme;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ArticleCardProps } from '.';
|
|
3
|
+
type _HorizontalProps = ArticleCardProps;
|
|
4
|
+
export declare const _Horizontal: ({ article, author, authorAvatar, badge, hideDescription, isBookmarked, onBookmark, time, tracking, ...rest }: _HorizontalProps) => React.JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,48 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
styleBanner?: CSSProperties;
|
|
27
|
-
styleLabel?: CSSProperties;
|
|
28
|
-
styleTitle?: CSSProperties;
|
|
29
|
-
style?: CSSProperties;
|
|
30
|
-
className?: string;
|
|
31
|
-
dataEventCategoryForCategory?: string;
|
|
32
|
-
dataEventActionForCategory?: string;
|
|
33
|
-
dataEventLabelForCategory?: string;
|
|
34
|
-
dataEventCategoryForTitle?: string;
|
|
35
|
-
dataEventActionForTitle?: string;
|
|
36
|
-
dataEventLabelForTitle?: string;
|
|
37
|
-
dataEventCategoryForBanner?: string;
|
|
38
|
-
dataEventActionForBanner?: string;
|
|
39
|
-
dataEventLabelForBanner?: string;
|
|
40
|
-
dataEventCategoryForBookmark?: string;
|
|
41
|
-
dataEventActionForBookmark?: string;
|
|
42
|
-
dataEventLabelForBookmark?: string;
|
|
43
|
-
onClickCategoryName?: (e: React.MouseEvent) => void;
|
|
44
|
-
articleLinkTarget?: React.HTMLAttributeAnchorTarget;
|
|
45
|
-
isPremium?: boolean;
|
|
46
|
-
};
|
|
47
|
-
declare const ArticleCard: ({ articleLink, authorLink, authorName, avatarImg, banner, categoryLink, categoryName, className, dataEventActionForBanner, dataEventActionForBookmark, dataEventActionForCategory, dataEventActionForTitle, dataEventCategoryForBanner, dataEventCategoryForBookmark, dataEventCategoryForCategory, dataEventCategoryForTitle, dataEventLabelForBanner, dataEventLabelForBookmark, dataEventLabelForCategory, dataEventLabelForTitle, direction, hasAffiliate, isBookmark, isBookmarkDisplayed, isMobile, onBookmark, onClickCategoryName, section, size, specialty, style, styleBanner, styleLabel, styleTitle, text, title, type, uploadTime, articleLinkTarget, isPremium, }: Props) => React.JSX.Element;
|
|
48
|
-
export { ArticleCard };
|
|
2
|
+
import { DefaultProps, Selectors } from '@mantine/core';
|
|
3
|
+
import { AspectRatioProps } from "../../mantine";
|
|
4
|
+
import { DataTrackingTypeHTMLElement } from "../../../interfaces/types";
|
|
5
|
+
import { Article } from "../../../together/interfaces/types";
|
|
6
|
+
import useStyles, { ArticleCardStylesParams } from './articleCard.styles';
|
|
7
|
+
type ArticleCardStylesNames = Selectors<typeof useStyles>;
|
|
8
|
+
export interface ArticleCardProps extends DefaultProps<ArticleCardStylesNames, ArticleCardStylesParams> {
|
|
9
|
+
article: Article;
|
|
10
|
+
author: React.ReactNode;
|
|
11
|
+
authorAvatar: string;
|
|
12
|
+
badge?: string;
|
|
13
|
+
bannerImageWrapProps?: Partial<AspectRatioProps>;
|
|
14
|
+
hideDescription?: boolean;
|
|
15
|
+
isBookmarked?: boolean;
|
|
16
|
+
onBookmark?(): void;
|
|
17
|
+
time: string;
|
|
18
|
+
tracking?: {
|
|
19
|
+
bookmark: DataTrackingTypeHTMLElement;
|
|
20
|
+
} | null;
|
|
21
|
+
variant?: 'vertical' | 'horizontal';
|
|
22
|
+
size?: 'lg' | 'md' | 'sm';
|
|
23
|
+
}
|
|
24
|
+
export declare const ArticleCard: ({ variant, ...rest }: ArticleCardProps) => React.JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ArticleCardProps } from '.';
|
|
3
|
+
type _VerticalProps = ArticleCardProps;
|
|
4
|
+
export declare const _Vertical: ({ article, author, authorAvatar, badge, bannerImageWrapProps, hideDescription, isBookmarked, onBookmark, time, tracking, classNames, styles, unstyled, className, ...rest }: _VerticalProps) => React.JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { ArticleCard } from './articleCard';
|
|
1
|
+
export { ArticleCard } from './articleCard/_deprecated_index';
|
|
2
|
+
export { ArticleCard as ArticleCardV2 } from './articleCard/index';
|
|
3
|
+
export type { ArticleCardProps as ArticleCardV2Props } from './articleCard/index';
|
|
2
4
|
export { CategoryCard } from './categoryCard';
|
|
3
5
|
export { CheckboxGroup } from './checkboxGroup';
|
|
4
6
|
export { DatePicker } from './datePicker';
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./fixedBottomAdBlock-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./fixedBottomAdBlock-69537d9d.js"),r=require("./index-9543d304.js"),o=require("./index-f64380d8.js"),t=require("./index-f99a6a7c.js"),i=require("./index-7116efd1.js"),a=require("./index-b4e06b47.js"),s=require("./index-e15ea45f.js"),d=require("./index-086f9d4d.js"),n=require("./index-f80f9ffb.js"),u=require("./index-57dc3044.js"),p=require("./index-95c57647.js"),x=require("./index-df595a0f.js"),l=require("./index-f15e13a4.js"),c=require("./index-5a88e402.js"),q=require("./dataTransform-eb0fc094.js"),f=require("./index-f770a569.js"),b=require("./index-2b1a52f1.js"),g=require("./footer.js");require("react"),require("./utils-b2e9c50d.js"),require("./useUniqueId-9078c6cc.js"),require("./gAssets.js"),require("./index-00fc8857.js"),require("date-fns/locale"),require("./Onboarding-10ae5938.js"),require("./isProduction-8407abfb.js"),require("./theme-c5a6785e.js"),require("./tslib.es6-a9f3656b.js"),require("@mantine/core"),require("innertext"),require("@mantine/hooks"),require("@mantine/dates"),require("./index-6b9f731c.js"),require("dayjs"),require("styled-components"),require("@mantine/carousel"),require("./screenSizeContext-c3c6b5ab.js"),require("lodash/throttle"),require("./index.styled-6ef5f0b5.js"),require("./translationsContext-7210431d.js"),require("string-format"),require("./index-1be002ea.js"),require("keen-slider/react"),require("./useTranslations-bdd3ff14.js"),require("date-fns"),require("./types-1db52b8f.js"),require("./index.styled-11afece1.js"),require("./cookieHelper-ef979911.js"),require("slugify"),require("./routing-23f12b3b.js"),require("dayjs/plugin/relativeTime"),require("./index-79b9bb52.js"),require("./index-1f26ab0c.js"),require("react-hook-form"),require("./useHealthToolCache-da048bf2.js"),require("./getDynamicHealthTool-25afa70f.js"),require("./core-5fc7daa8.js"),require("./normalizeLink-2c5f40d5.js"),require("./useOutsideClick-fd068dca.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-7aaf538f.js"),require("uuid"),require("./constants-059fba88.js"),require("./index-e2b29459.js"),require("lodash/debounce"),require("./useIsInit-80686861.js"),require("react-keyed-flatten-children"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-d22b5226.js"),require("react-dom"),require("./index.styled-940f3ed8.js"),require("./index-00f6f629.js"),require("./utils-2639c99f.js"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,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.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Grid=e.Grid,exports.IconText=e.IconText,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.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.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,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.ImageWithHandler=t.ImageWithHandler,exports.Heading=i.Heading,exports.Icon=i.Icon,exports.Menu=i.Menu,exports.PureInput=i.PureInput,exports.StepRenderer=i.StepRenderer,exports.StepRendererContext=i.StepRendererContext,exports.TextArea=i.TextArea,exports.TextDivider=i.TextDivider,exports.Input=a.Input,exports.Label=s.Label,exports.Logo=d.Logo,exports.AdBlock=n.AdBlock,exports.DatePicker=n.DatePicker,exports.DoctorInfo=n.DoctorInfo,exports.Dropdown=n.Dropdown,exports.MobileBottomNavigation=n.MobileBottomNavigation,exports.MobileBottomNavigationIcon=n.MobileBottomNavigationIcon,exports.Radio=n.Radio,exports.RadioGroup=n.RadioGroup,exports.SurveyQuestionCard=n.SurveyQuestionCard,exports.ToolsBannerCard=n.ToolsBannerCard,exports.Text=u.Text,exports.Container=p.Container,exports.LogoIcon=p.LogoIcon,exports.Drawer=x.Drawer,exports.RadioImageGroup=x.RadioImageGroup,exports.Modal=l.Modal,exports.NewBabyProfileRadio=l.NewBabyProfileRadio,exports.CustomReferenceDot=c.CustomReferenceDot,exports.Popup=q.Popup,exports.PillCarousel=f.PillCarousel,exports.AddressInput=b.AddressInput,exports.Footer=g.Footer;
|
package/build/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Onboarding-10ae5938.js");var O=require("./index-00fc8857.js"),e=require("./isProduction-8407abfb.js");exports.BEARER_TOKEN_COOKIE=O.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=O.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=O.CARE_LOCALES,exports.CDN_ADDRESS=O.CDN_ADDRESS,exports.DATE_FNS_LOCALE=O.DATE_FNS_LOCALE,exports.ECOM_LOCALES=O.ECOM_LOCALES,exports.FAVICONS=O.FAVICONS,exports.ISO_FORMAT=O.ISO_FORMAT,exports.LOCALE_SPECS=O.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return O.QUERY_HEALTH_TOOL}}),exports.STATIC_PAGES=O.STATIC_PAGES,exports.TOGETHER_LOCALES=O.TOGETHER_LOCALES,exports.UP_BASEPATH=O.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=O.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=O.domainLocales,exports.siteHost=O.siteHost,exports.siteOptions=O.siteOptions,exports.isProduction=e.isProduction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("./tslib.es6-a9f3656b.js"),e=require("./isProduction-8407abfb.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),i=require("./index.styled-11afece1.js"),o=require("./tslib.es6-a9f3656b.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=t(e);const n=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||""}:{},a=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}:{},r=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,d=e=>{if(!e)return{};const{button_text:i,button_url:t,status:l,banner_desktop:n,banner_mobile:a}=e,r=o.__rest(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(l),bannerDesktop:n||"",bannerMobile:a||""},r)},u={EN:"English",FIL:"Filipino"},s=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in u?u[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),m=e=>{var i,o,t,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?p(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,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:n(e.author),reviewer:e.reviewed_by&&n(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:v(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:v(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:v(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:v(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:_(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(_),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:a(e.expert),metaTag:e.meta_tag||null,spotlight:r(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:s(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:_(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:n(e.edit_last),subscriptionBanner:d(e.subscription_banner)}:{}},v=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,p=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},c=e=>({postTitle:e.post_title,permalink:e.permalink}),_=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?p(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=>_(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?c(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>g(e))):null}:{}},g=e=>({title:e.title,content:e.content}),y=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},f=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)}:{},b=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)}:{}},h=e=>e?{answer:null==e?void 0:e.answer.map(I),expert:null==e?void 0:e.expert}:{},k=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,p,c,_,g,y,f,b,k,w;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===(p=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===p?void 0:p.toLowerCase():"",type:(null===(c=e.user)||void 0===c?void 0:c.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(k=e.user)||void 0===k?void 0:k.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.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:h(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},w=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}:{},I=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,p,c,_,g,y,f,b,h,k,w,C,x,S,T,A,P,B,D,U,j;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(I):[],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===(p=e.user)||void 0===p?void 0:p.doctor_id)?String(null===(c=e.user)||void 0===c?void 0:c.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===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(w=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===w?void 0:w.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===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(P=e.mentioned)||void 0===P?void 0:P.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===(U=e.mentioned)||void 0===U?void 0:U.hospital_id):"",title:(null===(j=e.mentioned)||void 0===j?void 0:j.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},C=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 x=Object.freeze({__proto__:null,formatAuthor:n,formatArticleExpert:a,formatSpotlightsSummary:r,TRANSLATE_LANGUAGES:u,formatTranslateOptions:s,formatArticle:m,formatUserProfile:v,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:p,formatReviewedCategory:c,formatCategory:_,formatCategoryApi:e=>e?{categoryInfo:_(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(m),subCategories:(e.data.sub_categories||[]).map(_)}:{},formatFaqsCategory:g,formatHealthTool:y,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=>y(e))))&&void 0!==o?o:[]}:{}},formatCommunity:f,formatTopic:b,formatExpertAnswer:h,formatPost:k,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:w,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:I,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?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:C,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(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:C(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:t=!0,onClose:n,children:a,className:r="",enableAnimation:d=!0})=>l.default.createElement(l.default.Fragment,null,l.default.createElement(i.StyledPopup$2,{"data-open":t,"data-type":e,"data-animation":d},l.default.createElement("div",{className:`${r||""} popup-content`},!!o&&l.default.createElement("div",{className:"close-button",onClick:n},o),a)),l.default.createElement(i.StyledPopupWrapper,{"data-open":t,onClick:n})),exports.dataTransform=x,exports.formatArticle=m,exports.formatCategory=_,exports.formatComment=I,exports.formatCommunity=f,exports.formatOvulationInfo=w,exports.formatPost=k,exports.formatTopic=b,exports.formatUserProfileUrl=C;
|