@hhgtech/hhg-components 1.24.19 → 1.24.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/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/mantine/index.d.ts +4 -1
- package/build/components/mantine/text/index.d.ts +11 -0
- package/build/components/mantine/text/index.styled.d.ts +9 -0
- package/build/components/mantine/theme/heading.d.ts +9 -0
- package/build/components/mantine/theme/index.d.ts +1 -0
- package/build/components/mantine/theme/other.d.ts +7 -0
- package/build/components/mantine/theme/text.d.ts +63 -0
- package/build/components/mantine/useMantineLocale.d.ts +3 -1
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-f52ebeaa.js → core-1ddff0e2.js} +1 -1
- package/build/{dataTransform-8acb1cae.js → dataTransform-f19c1617.js} +1 -1
- package/build/esm/babyGrowth.js +8 -8
- 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-55659962.js → core-01abe7a1.js} +1 -1
- package/build/esm/{dataTransform-7c7cd603.js → dataTransform-b6ffa89e.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-0aab98fc.js +1 -0
- package/build/esm/{getSocialList-b4b810ea.js → getSocialList-03e2a2b1.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-bed3247d.js → index-10233643.js} +1 -1
- package/build/esm/index-1a820ef8.js +1 -0
- package/build/esm/{index-d24056ce.js → index-28b8dab6.js} +1 -1
- package/build/esm/{index-054ee498.js → index-43d2bffe.js} +1 -1
- package/build/esm/{index-e4836320.js → index-4b19571c.js} +1 -1
- package/build/esm/index-505a781d.js +1 -0
- package/build/esm/{index-8ac32fa0.js → index-65b95e24.js} +1 -1
- package/build/esm/{index-db2e1d7b.js → index-6b049c9f.js} +1 -1
- package/build/esm/{index-eb79e0cf.js → index-6d8a955b.js} +1 -1
- package/build/esm/index-6f78a19c.js +1 -0
- package/build/esm/{index-3f781614.js → index-879836ec.js} +1 -1
- package/build/esm/{index-bff98440.js → index-881e5990.js} +1 -1
- package/build/esm/index-8eec058f.js +1 -0
- package/build/esm/index-8f7ffa4b.js +1 -0
- package/build/esm/index-c2de5d7b.js +1 -0
- package/build/esm/{index-f1e8b189.js → index-c9290e7f.js} +1 -1
- package/build/esm/{index-7a57bc59.js → index-e1e88ca8.js} +1 -1
- package/build/esm/index-e2b7ef68.js +1 -0
- package/build/esm/{index-e5b9bc02.js → index-f3de7ff9.js} +11 -11
- package/build/esm/{index-693aacdc.js → index-f49aeb82.js} +1 -1
- package/build/esm/index-fcef2054.js +78 -0
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-75b0ceaa.js → index.styled-243d7f64.js} +1 -1
- package/build/esm/{index.styled-e6d05e31.js → index.styled-38864315.js} +1 -1
- package/build/esm/{index.styled-8f59035f.js → index.styled-839052ac.js} +1 -1
- package/build/esm/{index.styled-77b271f5.js → index.styled-89252990.js} +1 -1
- package/build/esm/{index.styled-70d2421e.js → index.styled-8aca10eb.js} +4 -4
- package/build/esm/{index.styled-53842855.js → index.styled-981e6c04.js} +1 -1
- package/build/esm/{index.styled-1c09bfcc.js → index.styled-c3d5eff6.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/pwg.js +2 -2
- package/build/esm/{routing-065ec7dc.js → routing-6d3d5706.js} +1 -1
- package/build/esm/{screenSizeContext-88744824.js → screenSizeContext-796cb6e5.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-ccaaba93.js → translationsProvider-8152b937.js} +1 -1
- package/build/esm/{types-e1294419.js → types-31c78444.js} +37 -37
- package/build/esm/{types-8f9ba152.js → types-e46ef606.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-3488ead9.js +1 -0
- package/build/esm/useRafState-1e0d71f3.js +1 -0
- package/build/esm/useTranslations-86f7e107.js +1 -0
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-407de63f.js +1 -0
- package/build/{getSocialList-f3816706.js → getSocialList-5d162a85.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-25fc984e.js → index-03b58356.js} +1 -1
- package/build/{index-4fdb1fcf.js → index-085adf8a.js} +1 -1
- package/build/{index-dfe405f8.js → index-178a694b.js} +1 -1
- package/build/{index-d0f252ba.js → index-19064ad7.js} +1 -1
- package/build/{index-378e1adb.js → index-1ecd880c.js} +1 -1
- package/build/{index-35c8dfd4.js → index-4d6932de.js} +1 -1
- package/build/{index-05535f0e.js → index-50f5a6cd.js} +1 -1
- package/build/index-5afdfa27.js +1 -0
- package/build/index-62cac9a6.js +1 -0
- package/build/{index-51753982.js → index-6419e3dc.js} +1 -1
- package/build/{index-58100bad.js → index-702d2f27.js} +1 -1
- package/build/index-727332bb.js +73 -0
- package/build/{index-3d81f9cc.js → index-857fa6cb.js} +1 -1
- package/build/{index-e37557dd.js → index-8fddd03f.js} +1 -1
- package/build/{index-b29f0100.js → index-92ea35de.js} +1 -1
- package/build/{index-90e9e28b.js → index-980141e9.js} +1 -1
- package/build/{index-ebf2f582.js → index-aca89b3b.js} +1 -1
- package/build/{index-cf883358.js → index-aeea420e.js} +1 -1
- package/build/index-c2ef36dd.js +1 -0
- package/build/{index-2814d9cc.js → index-fb65c87a.js} +1 -1
- package/build/{index-59408b77.js → index-fc40c9d0.js} +1 -1
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-637e5ec7.js → index.styled-1f82603f.js} +5 -5
- package/build/{index.styled-1a66009b.js → index.styled-38bd8957.js} +1 -1
- package/build/{index.styled-a51da094.js → index.styled-431f1caa.js} +1 -1
- package/build/{index.styled-5bb1a1f5.js → index.styled-66045dd3.js} +1 -1
- package/build/{index.styled-bf998dad.js → index.styled-77b969ab.js} +1 -1
- package/build/{index.styled-f315a185.js → index.styled-8fe3cbb8.js} +1 -1
- package/build/{index.styled-bd5b6a11.js → index.styled-da26abe1.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +3 -3
- package/build/{routing-7dbf8fef.js → routing-c02011e8.js} +1 -1
- package/build/screenSizeContext-4f7042b6.js +81 -0
- package/build/together.js +1 -1
- package/build/{translationsProvider-354e346a.js → translationsProvider-d0f24f1c.js} +1 -1
- package/build/{types-56115ec7.js → types-5df2a81a.js} +1 -1
- package/build/{types-cd37f582.js → types-d10baf2e.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-3f4dc66a.js +1 -0
- package/build/{useRafState-31591b58.js → useRafState-9cd628f0.js} +1 -1
- package/build/{useTranslations-2adbbe41.js → useTranslations-7bb84bd7.js} +1 -1
- package/package.json +1 -1
- package/build/esm/getDynamicHealthTool-f24e91d5.js +0 -1
- package/build/esm/index-04aac021.js +0 -1
- package/build/esm/index-1212f61e.js +0 -1
- package/build/esm/index-30dfa58f.js +0 -1
- package/build/esm/index-44a439da.js +0 -1
- package/build/esm/index-45ac44f1.js +0 -67
- package/build/esm/index-dd6e5684.js +0 -1
- package/build/esm/index-eb7126f6.js +0 -1
- package/build/esm/index-f5718bdd.js +0 -1
- package/build/esm/useHealthToolCache-a6576ccb.js +0 -1
- package/build/esm/useRafState-e6b465bb.js +0 -1
- package/build/esm/useTranslations-860db584.js +0 -1
- package/build/getDynamicHealthTool-4e1a845a.js +0 -1
- package/build/index-0bd8af32.js +0 -62
- package/build/index-879dd367.js +0 -1
- package/build/index-b3544b7d.js +0 -1
- package/build/index-b4a2c2fe.js +0 -1
- package/build/screenSizeContext-b1062be4.js +0 -81
- package/build/useHealthToolCache-e7470f87.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-2ff92556.js → BMI_BOYS.percentile.monthly-9061bffa.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-4bdaa6f2.js → BMI_BOYS.percentile.weekly-6963805b.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-961c9f82.js → BMI_BOYS.percentile.yearly-479e90a6.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-bf59e9f5.js → BMI_BOYS.zscore.monthly-1174fe4a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-7f264766.js → BMI_BOYS.zscore.weekly-fca159e9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-31d3ec67.js → BMI_BOYS.zscore.yearly-c7cbffa6.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-d88b9683.js → BMI_GIRLS.percentile.monthly-925f454e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-60f02b5b.js → BMI_GIRLS.percentile.weekly-3ee3b6cb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-7a944b49.js → BMI_GIRLS.percentile.yearly-a8a64247.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-532639fd.js → BMI_GIRLS.zscore.monthly-818e735c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-2c5d69e6.js → BMI_GIRLS.zscore.weekly-f69dc139.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-9d753f49.js → BMI_GIRLS.zscore.yearly-01c99405.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b6ce559f.js → HEAD CIRCUM_BOYS.percentile.monthly-c23614a4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-ab7409cd.js → HEAD CIRCUM_BOYS.percentile.weekly-a84f9182.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7a6703de.js → HEAD CIRCUM_BOYS.percentile.yearly-b1784f74.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-d702a50e.js → HEAD CIRCUM_BOYS.zscore.monthly-6fa109d5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-ca166fc4.js → HEAD CIRCUM_BOYS.zscore.weekly-0f128294.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-58c4e982.js → HEAD CIRCUM_BOYS.zscore.yearly-b0ae2aa5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-15e0eca2.js → HEAD CIRCUM_GIRLS.percentile.monthly-d8a849f5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-54bd6dc4.js → HEAD CIRCUM_GIRLS.percentile.weekly-e585c948.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-d564c43d.js → HEAD CIRCUM_GIRLS.percentile.yearly-f312b25f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-6cf92cb3.js → HEAD CIRCUM_GIRLS.zscore.monthly-a79f2c22.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-87ced1d3.js → HEAD CIRCUM_GIRLS.zscore.weekly-3905832d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0bc87993.js → HEAD CIRCUM_GIRLS.zscore.yearly-76817288.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-54a784db.js → HEIGHT_BOYS.percentile.monthly-058b22b8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-ce47d1ad.js → HEIGHT_BOYS.percentile.weekly-225abac0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-6813c238.js → HEIGHT_BOYS.percentile.yearly-c8f6fbc5.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-16af81ce.js → HEIGHT_BOYS.zscore.monthly-f2d62779.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-1476fa2c.js → HEIGHT_BOYS.zscore.weekly-2132aa31.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-8e93eb69.js → HEIGHT_BOYS.zscore.yearly-7bd73d3a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-a6a27fa2.js → HEIGHT_GIRLS.percentile.monthly-524307c0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-23d26ea5.js → HEIGHT_GIRLS.percentile.weekly-f323e7e3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-ecf66504.js → HEIGHT_GIRLS.percentile.yearly-1f2f77ee.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-9a2cd13b.js → HEIGHT_GIRLS.zscore.monthly-a58cd90f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-53e5495f.js → HEIGHT_GIRLS.zscore.weekly-24d8a6ac.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-46db6361.js → HEIGHT_GIRLS.zscore.yearly-d233bce8.js} +0 -0
- /package/build/{Locale-9a58ef93.js → Locale-a4f9d8f6.js} +0 -0
- /package/build/{Vietnam-e8b1dd8b.js → Vietnam-48e12311.js} +0 -0
- /package/build/{Visible-3a7847ca.js → Visible-f3415620.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-845b9c24.js → WEIGHT_BOYS.percentile.monthly-111c4d25.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-938e8254.js → WEIGHT_BOYS.percentile.weekly-478bf0e4.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-76a5f36c.js → WEIGHT_BOYS.percentile.yearly-a35cc113.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-bd78f3f3.js → WEIGHT_BOYS.zscore.monthly-33586e3f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-d2503217.js → WEIGHT_BOYS.zscore.weekly-0299912e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-066d0ab4.js → WEIGHT_BOYS.zscore.yearly-0e683e93.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-4ab70bd3.js → WEIGHT_GIRLS.percentile.monthly-ab188feb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-d751466f.js → WEIGHT_GIRLS.percentile.weekly-876c7d98.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-42ee7012.js → WEIGHT_GIRLS.percentile.yearly-49975396.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-ddf72f77.js → WEIGHT_GIRLS.zscore.monthly-1370faec.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-c2e0dc42.js → WEIGHT_GIRLS.zscore.weekly-01f8c266.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-b590d7d4.js → WEIGHT_GIRLS.zscore.yearly-f65a2231.js} +0 -0
- /package/build/{constants-540014d8.js → constants-81475620.js} +0 -0
- /package/build/{cookieHelper-f3717d04.js → cookieHelper-c871b460.js} +0 -0
- /package/build/{dataTransform-8d4b941a.js → dataTransform-68517294.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-02c0174e.js → BMI_BOYS.percentile.monthly-4223c4eb.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-fe988069.js → BMI_BOYS.percentile.weekly-c9f3efaa.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-14f63c53.js → BMI_BOYS.percentile.yearly-f0b4b014.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-aa3ff2b8.js → BMI_BOYS.zscore.monthly-e16193f5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-269962d9.js → BMI_BOYS.zscore.weekly-d2b2b292.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8318afa5.js → BMI_BOYS.zscore.yearly-817ec82e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-98db0e41.js → BMI_GIRLS.percentile.monthly-494bc828.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-7dbdd5e4.js → BMI_GIRLS.percentile.weekly-042426ae.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-0023eb12.js → BMI_GIRLS.percentile.yearly-247c7391.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-5b6640cb.js → BMI_GIRLS.zscore.monthly-371459b5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-6e0ab037.js → BMI_GIRLS.zscore.weekly-ecf23bd6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-232db6da.js → BMI_GIRLS.zscore.yearly-8020be10.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-96410a5e.js → HEAD CIRCUM_BOYS.percentile.monthly-854959a5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-27d9ac78.js → HEAD CIRCUM_BOYS.percentile.weekly-c39075dc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c1a53267.js → HEAD CIRCUM_BOYS.percentile.yearly-e387af13.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-7787fb4e.js → HEAD CIRCUM_BOYS.zscore.monthly-b7a84ef5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-5d08056c.js → HEAD CIRCUM_BOYS.zscore.weekly-b9a6fd79.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-75acbe34.js → HEAD CIRCUM_BOYS.zscore.yearly-28d7fb71.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1702b14d.js → HEAD CIRCUM_GIRLS.percentile.monthly-cebb3bd4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-450eb76b.js → HEAD CIRCUM_GIRLS.percentile.weekly-e30f8aee.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-386506ef.js → HEAD CIRCUM_GIRLS.percentile.yearly-a517c188.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-11f285ca.js → HEAD CIRCUM_GIRLS.zscore.monthly-6ec149f3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-9d5065f8.js → HEAD CIRCUM_GIRLS.zscore.weekly-e7a5b23f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-23d5bbeb.js → HEAD CIRCUM_GIRLS.zscore.yearly-2935ab55.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-2b99262e.js → HEIGHT_BOYS.percentile.monthly-f69e7c07.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-d9f156be.js → HEIGHT_BOYS.percentile.weekly-9a4b487d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-094e8482.js → HEIGHT_BOYS.percentile.yearly-cb58cecc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-27d449eb.js → HEIGHT_BOYS.zscore.monthly-5f7e0a28.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-d3826e91.js → HEIGHT_BOYS.zscore.weekly-3c7bd88b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-11ae82a4.js → HEIGHT_BOYS.zscore.yearly-66c2098e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-42522b7a.js → HEIGHT_GIRLS.percentile.monthly-484e0602.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-996a0b65.js → HEIGHT_GIRLS.percentile.weekly-3c492d07.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-74e99347.js → HEIGHT_GIRLS.percentile.yearly-8ce15a6f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-0305fe44.js → HEIGHT_GIRLS.zscore.monthly-204b1e6d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f269d20b.js → HEIGHT_GIRLS.zscore.weekly-ccb615d2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c985ffc1.js → HEIGHT_GIRLS.zscore.yearly-9479f3c0.js} +0 -0
- /package/build/esm/{Locale-c8320005.js → Locale-2a1e1450.js} +0 -0
- /package/build/esm/{Vietnam-3b9acb67.js → Vietnam-dc72e656.js} +0 -0
- /package/build/esm/{Visible-5d9b1ecd.js → Visible-18cf87ba.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-2fcf89dd.js → WEIGHT_BOYS.percentile.monthly-8dd91b1d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ec8ac244.js → WEIGHT_BOYS.percentile.weekly-3a959642.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-a543aa14.js → WEIGHT_BOYS.percentile.yearly-cc8eb0ef.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-5fa13f3f.js → WEIGHT_BOYS.zscore.monthly-2e131dd1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1f075b0e.js → WEIGHT_BOYS.zscore.weekly-cabcd1af.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-20bfba23.js → WEIGHT_BOYS.zscore.yearly-f1f7e94e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-231f6f63.js → WEIGHT_GIRLS.percentile.monthly-4de3f67c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-71540ce9.js → WEIGHT_GIRLS.percentile.weekly-2ed25b2a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-37ff25bb.js → WEIGHT_GIRLS.percentile.yearly-f0f76a88.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-7d7d8957.js → WEIGHT_GIRLS.zscore.monthly-b841255d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f1e586cb.js → WEIGHT_GIRLS.zscore.weekly-d6eb177b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-ca5d172b.js → WEIGHT_GIRLS.zscore.yearly-58a53745.js} +0 -0
- /package/build/esm/{constants-170605f8.js → constants-fb47e65c.js} +0 -0
- /package/build/esm/{cookieHelper-46eca077.js → cookieHelper-b88c2be8.js} +0 -0
- /package/build/esm/{dataTransform-81026524.js → dataTransform-75f1271b.js} +0 -0
- /package/build/esm/{index-9f83d332.js → index-77a5c7ce.js} +0 -0
- /package/build/esm/{isProduction-35cc6094.js → isProduction-e00482ad.js} +0 -0
- /package/build/esm/{localizeNumberFormat-14832370.js → localizeNumberFormat-65181040.js} +0 -0
- /package/build/esm/{normalizeLink-22f231d9.js → normalizeLink-1d2dc701.js} +0 -0
- /package/build/esm/{theme-35a76b33.js → theme-6dca57c7.js} +0 -0
- /package/build/esm/{translationsContext-7730f46a.js → translationsContext-d4d12e4a.js} +0 -0
- /package/build/esm/{tslib.es6-cb3ea48c.js → tslib.es6-f1b9d31e.js} +0 -0
- /package/build/esm/{useIsInit-17c423cc.js → useIsInit-e900b10b.js} +0 -0
- /package/build/esm/{useOutsideClick-b3adcf0b.js → useOutsideClick-305b5046.js} +0 -0
- /package/build/esm/{useScrollbarSize-e8a276bb.js → useScrollbarSize-057c4f10.js} +0 -0
- /package/build/esm/{useUniqueId-2654c98c.js → useUniqueId-679a497e.js} +0 -0
- /package/build/esm/{utils-1fa73d05.js → utils-049d75fa.js} +0 -0
- /package/build/{index-7c1cf961.js → index-444eee4a.js} +0 -0
- /package/build/{isProduction-25e05d32.js → isProduction-2a4d042f.js} +0 -0
- /package/build/{localizeNumberFormat-3d2fd8b9.js → localizeNumberFormat-3d8dd0e3.js} +0 -0
- /package/build/{normalizeLink-293919db.js → normalizeLink-f5ed8bd7.js} +0 -0
- /package/build/{theme-f8d912d5.js → theme-c812af69.js} +0 -0
- /package/build/{translationsContext-f782ff56.js → translationsContext-0e066585.js} +0 -0
- /package/build/{tslib.es6-7da5763e.js → tslib.es6-09b9cf36.js} +0 -0
- /package/build/{useIsInit-cc0a07fc.js → useIsInit-b290676c.js} +0 -0
- /package/build/{useOutsideClick-9fc45503.js → useOutsideClick-e4b4783f.js} +0 -0
- /package/build/{useScrollbarSize-70be7d32.js → useScrollbarSize-220a2ce3.js} +0 -0
- /package/build/{useUniqueId-71515148.js → useUniqueId-f2e50bd6.js} +0 -0
- /package/build/{utils-2fe5fc5c.js → utils-daf19904.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-4d6932de.js"),t=require("react"),r=require("./Locale-a4f9d8f6.js"),a=require("./theme-c812af69.js"),l=require("./index-03b58356.js"),o=require("styled-components"),n=require("./index-178a694b.js"),i=require("./index-857fa6cb.js"),s=require("./screenSizeContext-4f7042b6.js"),d=require("dayjs"),c=require("./useTranslations-7bb84bd7.js"),u=require("./index.styled-da26abe1.js"),C=require("./utils-daf19904.js");require("./gAssets.js"),require("./index.styled-38bd8957.js"),require("./index-50f5a6cd.js"),require("@mantine/core");var h=require("./index-444eee4a.js"),m=require("./useOutsideClick-e4b4783f.js");require("lodash/debounce"),require("./isProduction-2a4d042f.js"),require("./index-702d2f27.js");var f=require("./localizeNumberFormat-3d8dd0e3.js"),y=require("./tslib.es6-09b9cf36.js"),p=require("./index-1ecd880c.js"),b=require("recharts"),w=require("lodash/chunk");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useScrollbarSize-220a2ce3.js"),require("react-dom"),require("./useUniqueId-f2e50bd6.js"),require("./index.styled-8fe3cbb8.js"),require("lodash/throttle"),require("./translationsContext-0e066585.js"),require("string-format"),require("./index-fb65c87a.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;
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
gap: 16px;
|
|
273
273
|
margin-block: 16px;
|
|
274
274
|
}
|
|
275
|
-
`,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-
|
|
275
|
+
`,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-478bf0e4.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-111c4d25.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-a35cc113.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-225abac0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-058b22b8.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-c8f6fbc5.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-a84f9182.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-c23614a4.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-b1784f74.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-6963805b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-9061bffa.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-479e90a6.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-876c7d98.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-ab188feb.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-49975396.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-f323e7e3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-524307c0.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-1f2f77ee.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-e585c948.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-d8a849f5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-f312b25f.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-3ee3b6cb.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-925f454e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-a8a64247.js")}))}}},Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0299912e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-33586e3f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-0e683e93.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-2132aa31.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-f2d62779.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-7bd73d3a.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-0f128294.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-6fa109d5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-b0ae2aa5.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-fca159e9.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-1174fe4a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-c7cbffa6.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-01f8c266.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-1370faec.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-f65a2231.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-24d8a6ac.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-a58cd90f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-d233bce8.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-3905832d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-a79f2c22.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-76817288.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-f69dc139.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-818e735c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-01c99405.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`
|
|
276
276
|
position: relative;
|
|
277
277
|
.custom-chart-label {
|
|
278
278
|
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-1ddff0e2.js");require("./tslib.es6-09b9cf36.js"),require("./isProduction-2a4d042f.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-d10baf2e.js"),r=require("./constants-81475620.js");require("./tslib.es6-09b9cf36.js"),require("react"),require("./index-702d2f27.js"),require("./Locale-a4f9d8f6.js"),require("./isProduction-2a4d042f.js"),require("./cookieHelper-c871b460.js"),require("./useTranslations-7bb84bd7.js"),require("./translationsContext-0e066585.js"),require("string-format"),require("lodash/debounce"),require("./index-fb65c87a.js"),require("./index.styled-38bd8957.js"),require("./utils-daf19904.js"),require("styled-components"),require("./index-03b58356.js"),require("./theme-c812af69.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-e4b4783f.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
|
@@ -2,6 +2,8 @@ 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 { Text } from './text';
|
|
6
|
+
export type { TextProps } from './text';
|
|
5
7
|
export { Button } from './button';
|
|
6
8
|
export type { ButtonProps } from './button';
|
|
7
9
|
export { AspectRatio } from './aspectRatio';
|
|
@@ -39,7 +41,8 @@ export type { SwitchProps } from './switch';
|
|
|
39
41
|
export type { MantineProviderProps } from './provider';
|
|
40
42
|
export { MantineProvider } from './provider';
|
|
41
43
|
export { emotionCache } from './helpers';
|
|
42
|
-
export { getMantineThemeOverride } from './theme';
|
|
44
|
+
export { getMantineThemeOverride, TextSize } from './theme';
|
|
45
|
+
export { OTHER_THEME_CONFIG } from './theme/other';
|
|
43
46
|
export { MAPPED_LOCALE, useMantineLocale } from './useMantineLocale';
|
|
44
47
|
export { OTP } from './otp';
|
|
45
48
|
export type { OTPProps } from './otp';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextProps as MantineTextProps } from '@mantine/core';
|
|
3
|
+
import { TextSize } from '../theme';
|
|
4
|
+
export type TextProps = {
|
|
5
|
+
size: TextSize;
|
|
6
|
+
weight?: 'regular' | 'semiBold' | 'bold';
|
|
7
|
+
as?: React.ElementType<any>;
|
|
8
|
+
component?: React.ElementType<any>;
|
|
9
|
+
} & Omit<MantineTextProps, 'size' | 'weight' | 'component'>;
|
|
10
|
+
declare const Text: ({ size, color, weight, as, ...rest }: TextProps) => JSX.Element;
|
|
11
|
+
export { Text };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextProps } from '@mantine/core';
|
|
3
|
+
export declare const StyledText: import("styled-components").StyledComponent<(<C = "div">(props: import("@mantine/utils").PolymorphicComponentProps<C, TextProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Omit<import("react").FunctionComponent<(TextProps & {
|
|
4
|
+
component?: any;
|
|
5
|
+
} & Omit<Pick<any, string | number | symbol>, "component" | keyof TextProps> & {
|
|
6
|
+
ref?: any;
|
|
7
|
+
}) | (TextProps & {
|
|
8
|
+
component: import("react").ElementType<any>;
|
|
9
|
+
})>, never> & Record<string, never>, any, TextProps, never>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { MantineThemeOverride } from '@mantine/core';
|
|
2
2
|
import { LOCALE } from 'src/interfaces/types';
|
|
3
|
+
export type TextSize = 'lg' | 'md' | 'base' | 'sm' | 'xs' | 's1' | 's2' | 's3' | 's4' | 's5' | 'p1' | 'p2' | 'p3' | 'p4' | 'c1' | 'c2' | 'n1' | 'label1' | 'label2';
|
|
3
4
|
export declare const getMantineThemeOverride: (locale: LOCALE, template?: 'hb' | 'mb') => MantineThemeOverride;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TextSize } from '.';
|
|
2
|
+
export declare const OTHER_THEME_CONFIG: {
|
|
3
|
+
fontSize?: Record<TextSize, Array<number>>;
|
|
4
|
+
lineHeight?: Record<TextSize, Array<number>>;
|
|
5
|
+
letterSpacing?: Partial<Record<TextSize, Array<number>>>;
|
|
6
|
+
fontWeight?: Record<'regular' | 'semiBold' | 'bold', number>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare const GlobalTextStyle: {
|
|
2
|
+
fontSize: {
|
|
3
|
+
base: number[];
|
|
4
|
+
lg: number[];
|
|
5
|
+
md: number[];
|
|
6
|
+
sm: number[];
|
|
7
|
+
xs: number[];
|
|
8
|
+
s1: number[];
|
|
9
|
+
s2: number[];
|
|
10
|
+
s3: number[];
|
|
11
|
+
s4: number[];
|
|
12
|
+
s5: number[];
|
|
13
|
+
p1: number[];
|
|
14
|
+
p2: number[];
|
|
15
|
+
p3: number[];
|
|
16
|
+
p4: number[];
|
|
17
|
+
c1: number[];
|
|
18
|
+
c2: number[];
|
|
19
|
+
n1: number[];
|
|
20
|
+
label1: number[];
|
|
21
|
+
label2: number[];
|
|
22
|
+
};
|
|
23
|
+
lineHeight: {
|
|
24
|
+
base: number[];
|
|
25
|
+
lg: number[];
|
|
26
|
+
md: number[];
|
|
27
|
+
sm: number[];
|
|
28
|
+
xs: number[];
|
|
29
|
+
s1: number[];
|
|
30
|
+
s2: number[];
|
|
31
|
+
s3: number[];
|
|
32
|
+
s4: number[];
|
|
33
|
+
s5: number[];
|
|
34
|
+
p1: number[];
|
|
35
|
+
p2: number[];
|
|
36
|
+
p3: number[];
|
|
37
|
+
p4: number[];
|
|
38
|
+
c1: number[];
|
|
39
|
+
c2: number[];
|
|
40
|
+
n1: number[];
|
|
41
|
+
label1: number[];
|
|
42
|
+
label2: number[];
|
|
43
|
+
};
|
|
44
|
+
letterSpacing: {
|
|
45
|
+
lg: number[];
|
|
46
|
+
md: number[];
|
|
47
|
+
sm: number[];
|
|
48
|
+
s1: number[];
|
|
49
|
+
s2: number[];
|
|
50
|
+
s3: number[];
|
|
51
|
+
s4: number[];
|
|
52
|
+
p1: number[];
|
|
53
|
+
p2: number[];
|
|
54
|
+
p3: number[];
|
|
55
|
+
p4: number[];
|
|
56
|
+
label1: number[];
|
|
57
|
+
};
|
|
58
|
+
fontWeight: {
|
|
59
|
+
regular: number;
|
|
60
|
+
semiBold: number;
|
|
61
|
+
bold: number;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -2,4 +2,6 @@ import { LOCALE } from 'src/interfaces/types';
|
|
|
2
2
|
export declare const MAPPED_LOCALE: {
|
|
3
3
|
[key in LOCALE]: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const useMantineLocale: (locale: LOCALE) =>
|
|
5
|
+
export declare const useMantineLocale: (locale: LOCALE) => {
|
|
6
|
+
isLoaded: boolean;
|
|
7
|
+
};
|
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-8fddd03f.js"),r=require("./index-fc40c9d0.js"),o=require("./index-178a694b.js"),t=require("./index-62cac9a6.js"),i=require("./index.styled-da26abe1.js"),a=require("./index-fb65c87a.js"),s=require("./index.styled-38bd8957.js"),d=require("./index-aeea420e.js"),n=require("./index.styled-77b969ab.js"),u=require("./index-03b58356.js"),p=require("./index-50f5a6cd.js"),x=require("./index-4d6932de.js"),l=require("./index-1ecd880c.js"),c=require("./index-444eee4a.js"),q=require("./dataTransform-f19c1617.js"),g=require("./index-19064ad7.js"),b=require("./footer.js");require("react"),require("./utils-daf19904.js"),require("./useUniqueId-f2e50bd6.js"),require("./gAssets.js"),require("./index-702d2f27.js"),require("./Locale-a4f9d8f6.js"),require("./isProduction-2a4d042f.js"),require("./theme-c812af69.js"),require("./tslib.es6-09b9cf36.js"),require("lodash/throttle"),require("keen-slider/react"),require("dayjs"),require("./screenSizeContext-4f7042b6.js"),require("styled-components"),require("./useTranslations-7bb84bd7.js"),require("./translationsContext-0e066585.js"),require("string-format"),require("date-fns"),require("@mantine/core"),require("./index.styled-8fe3cbb8.js"),require("./index.styled-431f1caa.js"),require("./cookieHelper-c871b460.js"),require("slugify"),require("./routing-c02011e8.js"),require("dayjs/plugin/relativeTime"),require("./index-857fa6cb.js"),require("./index-6419e3dc.js"),require("@mantine/hooks"),require("./index-92ea35de.js"),require("react-hook-form"),require("./useHealthToolCache-3f4dc66a.js"),require("./getDynamicHealthTool-407de63f.js"),require("./core-1ddff0e2.js"),require("./normalizeLink-f5ed8bd7.js"),require("./useOutsideClick-e4b4783f.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-5d162a85.js"),require("@mantine/dates"),require("./constants-81475620.js"),require("./useIsInit-b290676c.js"),require("lodash/debounce"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-220a2ce3.js"),require("react-dom"),require("./index.styled-1f82603f.js"),require("./index-c2ef36dd.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=d.Logo,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.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=b.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-a4f9d8f6.js");var e=require("./index-702d2f27.js"),O=require("./isProduction-2a4d042f.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-09b9cf36.js"),e=require("./isProduction-2a4d042f.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();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-a51da094.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}:{},r=e=>{var i,o,t,r;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:a(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:a(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:a(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:a(null===(r=null==e?void 0:e.reviewed)||void 0===r?void 0:r.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}:{}},a=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,r,a,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===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(a=e.user)||void 0===a?void 0:a.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,r,a,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===(r=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(a=e.user)||void 0===a?void 0:a.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||[],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||""}:{}},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:r,formatUserProfile:a,formatBMIResult:e=>{var i,o,t,l,n,r,a,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!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(a=null==e?void 0:e.illustrator)&&void 0!==a?a:"",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(r),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?a(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?a(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:r,className:a="",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:`${a||""} popup-content`},!!o&&t.default.createElement("div",{className:"close-button",onClick:n},o),r)),t.default.createElement(i.StyledPopupWrapper,{"data-open":l,onClick:n})),exports.dataTransform=h,exports.formatArticle=r,exports.formatCategory=s,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-431f1caa.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}:{},r=e=>{var i,o,t,r;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:a(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:a(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:a(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:a(null===(r=null==e?void 0:e.reviewed)||void 0===r?void 0:r.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}:{}},a=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,r,a,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===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(a=e.user)||void 0===a?void 0:a.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,r,a,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===(r=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(a=e.user)||void 0===a?void 0:a.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||[],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||""}:{}},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:r,formatUserProfile:a,formatBMIResult:e=>{var i,o,t,l,n,r,a,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!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(a=null==e?void 0:e.illustrator)&&void 0!==a?a:"",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(r),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?a(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?a(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:r,className:a="",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:`${a||""} popup-content`},!!o&&t.default.createElement("div",{className:"close-button",onClick:n},o),r)),t.default.createElement(i.StyledPopupWrapper,{"data-open":l,onClick:n})),exports.dataTransform=h,exports.formatArticle=r,exports.formatCategory=s,exports.formatComment=f,exports.formatCommunity=c,exports.formatOvulationInfo=y,exports.formatPost=g,exports.formatTopic=p,exports.formatUserProfileUrl=w;
|