@hhgtech/hhg-components 1.25.9 → 1.25.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/alert/index.d.ts +3 -0
- package/build/components/atoms/avatar/index.d.ts +3 -0
- package/build/components/atoms/badge/index.d.ts +3 -0
- package/build/components/atoms/button/index.d.ts +3 -0
- package/build/components/atoms/checkbox/index.d.ts +3 -0
- package/build/components/atoms/container/index.d.ts +3 -0
- package/build/components/atoms/divider/index.d.ts +3 -0
- package/build/components/atoms/drawer/index.d.ts +3 -0
- package/build/components/atoms/grid/index.d.ts +3 -0
- package/build/components/atoms/input/index.d.ts +3 -0
- package/build/components/atoms/label/index.d.ts +3 -0
- package/build/components/atoms/marryBabyText/index.d.ts +3 -0
- package/build/components/atoms/pureInput/index.d.ts +3 -0
- package/build/components/atoms/radio/index.d.ts +3 -0
- package/build/components/atoms/text/index.d.ts +3 -0
- package/build/components/atoms/textArea/index.d.ts +3 -0
- package/build/components/atoms/toggle/index.d.ts +3 -0
- package/build/components/atoms/underlinedLink/index.d.ts +3 -0
- package/build/components/atoms/uploader/index.d.ts +3 -0
- package/build/components/molecules/carousel/index.d.ts +3 -0
- package/build/components/molecules/datePicker/index.d.ts +3 -0
- package/build/components/molecules/dateRangePicker/index.d.ts +3 -0
- package/build/components/molecules/dropdown/index.d.ts +3 -0
- package/build/components/molecules/dropdownSearch/index.d.ts +3 -0
- package/build/components/molecules/modal/index.d.ts +3 -0
- package/build/components/molecules/pillCarousel/index.d.ts +3 -0
- package/build/components/molecules/scrollList/index.d.ts +3 -0
- package/build/components/molecules/tabs/index.d.ts +3 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-7967b08d.js +1 -0
- package/build/{dataTransform-22d9e869.js → dataTransform-ebd46330.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-9a86c5c5.js → core-e22919ef.js} +1 -1
- package/build/esm/{dataTransform-8a5315d5.js → dataTransform-874d3c5d.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-01160a8f.js +1 -0
- package/build/esm/{getSocialList-6c0f5400.js → getSocialList-671369dc.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-1132015e.js → index-0455edb8.js} +1 -1
- package/build/esm/{index-87b5a0d6.js → index-29646938.js} +1 -1
- package/build/esm/{index-ea004de4.js → index-479281a9.js} +1 -1
- package/build/esm/{index-20849a23.js → index-4cd5df82.js} +1 -1
- package/build/esm/{index-18466163.js → index-4e089cd4.js} +1 -1
- package/build/esm/{index-df88901f.js → index-6efee064.js} +1 -1
- package/build/esm/{index-3969fa80.js → index-750a9af3.js} +1 -1
- package/build/esm/{index-3f75926d.js → index-81d4ec35.js} +1 -1
- package/build/esm/index-838e9439.js +1 -0
- package/build/esm/{index-6b0ace0a.js → index-898bf8a0.js} +1 -1
- package/build/esm/{index-3223f5e2.js → index-8cf73e87.js} +1 -1
- package/build/esm/{index-48b1b30c.js → index-a97b336f.js} +1 -1
- package/build/esm/index-aac9f702.js +1 -0
- package/build/esm/index-b717db96.js +1 -0
- package/build/esm/{index-089d9bae.js → index-bae2777b.js} +1 -1
- package/build/esm/{index-66dc56ed.js → index-bbd649b7.js} +1 -1
- package/build/esm/{index-f08fcbf8.js → index-d95d161c.js} +1 -1
- package/build/esm/{index-f010b224.js → index-db7918d6.js} +1 -1
- package/build/esm/{index-e44db44a.js → index-dc680745.js} +1 -1
- package/build/esm/index-e91dbbc6.js +1 -0
- package/build/esm/{index-0690a15f.js → index-ede22843.js} +1 -1
- package/build/esm/{index-f4577c25.js → index-ee118547.js} +1 -1
- package/build/esm/{index-75a639a4.js → index-eec33795.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-594714b9.js → index.styled-0386b48b.js} +1 -1
- package/build/esm/{index.styled-82a3b6c8.js → index.styled-044c2b0b.js} +1 -1
- package/build/esm/{index.styled-559237c4.js → index.styled-330afbe2.js} +3 -3
- package/build/esm/{index.styled-5f63f290.js → index.styled-630eb409.js} +4 -4
- package/build/esm/{index.styled-ff6733a1.js → index.styled-86d605ed.js} +1 -1
- package/build/esm/{index.styled-05a415e9.js → index.styled-98501b33.js} +1 -1
- package/build/esm/{index.styled-c7cfdeb3.js → index.styled-e9aa1463.js} +1 -1
- package/build/esm/{index.styles-9388355f.js → index.styles-2938320c.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 +3 -3
- package/build/esm/{routing-fda3cf6d.js → routing-c0c9da64.js} +1 -1
- package/build/esm/{screenSizeContext-f290fa29.js → screenSizeContext-a1fa9bf6.js} +3 -3
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-174396ba.js → translationsProvider-2c7431e2.js} +1 -1
- package/build/esm/{types-37a3eee6.js → types-75d1c06a.js} +1 -1
- package/build/esm/{types-d9ff6e6f.js → types-d63e7de1.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-a6b1236e.js +1 -0
- package/build/esm/{useRafState-af33985b.js → useRafState-b4b5a1c2.js} +1 -1
- package/build/esm/useScreenSize-4c953d4a.js +1 -0
- package/build/esm/{useTranslations-103dd00b.js → useTranslations-b7d3f852.js} +1 -1
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-d4e72e1c.js → getDynamicHealthTool-f7eb291a.js} +1 -1
- package/build/{getSocialList-e1710f93.js → getSocialList-9b36de9d.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-1cf25330.js → index-01f86f68.js} +1 -1
- package/build/index-02da947b.js +1 -0
- package/build/{index-e74851ed.js → index-076e818c.js} +1 -1
- package/build/{index-67f527c9.js → index-0ff0cf94.js} +1 -1
- package/build/{index-a52bd134.js → index-2a25ed39.js} +1 -1
- package/build/{index-0f12a433.js → index-2fd8bfe9.js} +1 -1
- package/build/{index-276b4c69.js → index-325fcced.js} +1 -1
- package/build/{index-1ab733e6.js → index-5e6ffd37.js} +1 -1
- package/build/{index-ea21b2e4.js → index-680ae62f.js} +1 -1
- package/build/{index-512b74a8.js → index-6c105c55.js} +1 -1
- package/build/{index-4988ead9.js → index-6d8ad857.js} +1 -1
- package/build/{index-28d9f392.js → index-6fbb91c3.js} +1 -1
- package/build/{index-d28c0696.js → index-9b350e60.js} +1 -1
- package/build/{index-3d7ba3ec.js → index-a7cda1c5.js} +1 -1
- package/build/index-a7e0e27c.js +1 -0
- package/build/{index-80f91a0c.js → index-affe1781.js} +1 -1
- package/build/{index-8d979a94.js → index-b0a612ce.js} +1 -1
- package/build/index-b9f6ab96.js +1 -0
- package/build/{index-441a3ca5.js → index-be7ce870.js} +1 -1
- package/build/index-c3a94487.js +1 -0
- package/build/index-d453ed07.js +1 -0
- package/build/index-dd639b43.js +1 -0
- package/build/{index-1a40e4e7.js → index-fe5ed80c.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-7654ccb6.js → index.styled-4c5d702a.js} +3 -3
- package/build/index.styled-4e2bcd47.js +50 -0
- package/build/{index.styled-56ac8b18.js → index.styled-7c8e01d4.js} +1 -1
- package/build/{index.styled-d34f26c1.js → index.styled-9ef5555d.js} +1 -1
- package/build/{index.styled-5320f380.js → index.styled-a85cf2d8.js} +1 -1
- package/build/{index.styled-2ba3e44d.js → index.styled-bad57cdc.js} +1 -1
- package/build/{index.styled-ef365648.js → index.styled-e37b0ba5.js} +1 -1
- package/build/{index.styles-81c47700.js → index.styles-31c72cd1.js} +4 -4
- 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 +1 -1
- package/build/{routing-c6c38d78.js → routing-f8d94930.js} +1 -1
- package/build/{screenSizeContext-8812943d.js → screenSizeContext-e33a9eca.js} +1 -1
- package/build/together.js +1 -1
- package/build/{translationsProvider-0eebd4b0.js → translationsProvider-c15860e2.js} +1 -1
- package/build/{types-9ce016a3.js → types-55dcb621.js} +1 -1
- package/build/{types-86f97b90.js → types-edd858ee.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-541d32b1.js +1 -0
- package/build/{useRafState-9f682959.js → useRafState-b1869767.js} +1 -1
- package/build/{useScreenSize-35c38f80.js → useScreenSize-fcaa1f70.js} +1 -1
- package/build/{useTranslations-f7327db4.js → useTranslations-f0911067.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-b86338df.js +0 -1
- package/build/esm/getDynamicHealthTool-513b6a29.js +0 -1
- package/build/esm/index-38b385a7.js +0 -1
- package/build/esm/index-92e8d56f.js +0 -1
- package/build/esm/index-b04552c8.js +0 -1
- package/build/esm/index-d1119c29.js +0 -1
- package/build/esm/useHealthToolCache-43a2e2cb.js +0 -1
- package/build/esm/useScreenSize-f7f4165f.js +0 -1
- package/build/index-24973da9.js +0 -1
- package/build/index-5c248e37.js +0 -1
- package/build/index-6067431a.js +0 -1
- package/build/index-658fcbbc.js +0 -1
- package/build/index-8397b60a.js +0 -1
- package/build/index-dbb2c16a.js +0 -1
- package/build/index.styled-2793901f.js +0 -50
- package/build/useHealthToolCache-35c820b7.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-c4d28ab7.js → BMI_BOYS.percentile.monthly-f36155bb.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-1ee91366.js → BMI_BOYS.percentile.weekly-493d724e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-ef47e9b0.js → BMI_BOYS.percentile.yearly-ec6debb5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b7179d6f.js → BMI_BOYS.zscore.monthly-18ca095a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-adcc394c.js → BMI_BOYS.zscore.weekly-35ff9ca1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-f494e368.js → BMI_BOYS.zscore.yearly-69affc58.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-18c40663.js → BMI_GIRLS.percentile.monthly-a5b90363.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-18be12e0.js → BMI_GIRLS.percentile.weekly-4c1d5327.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-7fe0ebc2.js → BMI_GIRLS.percentile.yearly-4c2ea39e.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-3067b3bc.js → BMI_GIRLS.zscore.monthly-643871e1.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-033625ae.js → BMI_GIRLS.zscore.weekly-34c3e533.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-6a8d7512.js → BMI_GIRLS.zscore.yearly-52fd8f77.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4068bb5f.js → HEAD CIRCUM_BOYS.percentile.monthly-abc8532d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-1807730d.js → HEAD CIRCUM_BOYS.percentile.weekly-373a6481.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-9355e8fd.js → HEAD CIRCUM_BOYS.percentile.yearly-9f98e181.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-11746662.js → HEAD CIRCUM_BOYS.zscore.monthly-a4e9f6df.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-60de1a55.js → HEAD CIRCUM_BOYS.zscore.weekly-ac4ee6ca.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-f2f08468.js → HEAD CIRCUM_BOYS.zscore.yearly-93fb4c15.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-2a570cfe.js → HEAD CIRCUM_GIRLS.percentile.monthly-620c6a20.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-84586688.js → HEAD CIRCUM_GIRLS.percentile.weekly-c4d43bd0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4423e60d.js → HEAD CIRCUM_GIRLS.percentile.yearly-5fc979ae.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-327c4ec1.js → HEAD CIRCUM_GIRLS.zscore.monthly-384accc5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-fc44778a.js → HEAD CIRCUM_GIRLS.zscore.weekly-64036d9c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-cca18f8d.js → HEAD CIRCUM_GIRLS.zscore.yearly-e608f161.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-1b6f693f.js → HEIGHT_BOYS.percentile.monthly-c384e437.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-79617a87.js → HEIGHT_BOYS.percentile.weekly-5f91157e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-adf272d4.js → HEIGHT_BOYS.percentile.yearly-fa34dd85.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-b2fd3cf9.js → HEIGHT_BOYS.zscore.monthly-ae6458ca.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-7442e053.js → HEIGHT_BOYS.zscore.weekly-0e57b8e7.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-19d4cdaf.js → HEIGHT_BOYS.zscore.yearly-6b8ab8b4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-d4372e1b.js → HEIGHT_GIRLS.percentile.monthly-eec76eec.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-aabdd879.js → HEIGHT_GIRLS.percentile.weekly-ff18a739.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-b34fc4e0.js → HEIGHT_GIRLS.percentile.yearly-3a58c352.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-f7e29bec.js → HEIGHT_GIRLS.zscore.monthly-b1e5d32d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-849f7e0c.js → HEIGHT_GIRLS.zscore.weekly-51b61c07.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-e7b2a47d.js → HEIGHT_GIRLS.zscore.yearly-1ce4b6ac.js} +0 -0
- /package/build/{Onboarding-8fa66f70.js → Onboarding-dd23dcac.js} +0 -0
- /package/build/{Visible-5e72a722.js → Visible-3ab5298b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-36df2742.js → WEIGHT_BOYS.percentile.monthly-eea3c7a7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-dfe6e7c3.js → WEIGHT_BOYS.percentile.weekly-563c5fc8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-99b10b62.js → WEIGHT_BOYS.percentile.yearly-4855d68d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e3f6b8b6.js → WEIGHT_BOYS.zscore.monthly-1e1fe207.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-c55976ea.js → WEIGHT_BOYS.zscore.weekly-1e79991b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-3fcf5d08.js → WEIGHT_BOYS.zscore.yearly-b87ef30f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-77fa84e6.js → WEIGHT_GIRLS.percentile.monthly-5bf03be3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-d75ab2c3.js → WEIGHT_GIRLS.percentile.weekly-27b48626.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-85f2bf2d.js → WEIGHT_GIRLS.percentile.yearly-7aab4de6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-9ec43435.js → WEIGHT_GIRLS.zscore.monthly-6dc04c63.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-35c4e6de.js → WEIGHT_GIRLS.zscore.weekly-aefb21a3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-266c28d0.js → WEIGHT_GIRLS.zscore.yearly-f3a0638e.js} +0 -0
- /package/build/{constants-00a1aed9.js → constants-3a3cba3e.js} +0 -0
- /package/build/{cookieHelper-23401e25.js → cookieHelper-11d465fb.js} +0 -0
- /package/build/{dataTransform-281fcc15.js → dataTransform-ad96adb7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-ac784d9d.js → BMI_BOYS.percentile.monthly-aa2dead4.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-8d245e3b.js → BMI_BOYS.percentile.weekly-a4c340cc.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-e41db64a.js → BMI_BOYS.percentile.yearly-6abb5973.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-78c133af.js → BMI_BOYS.zscore.monthly-8fb8f911.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-89d3405d.js → BMI_BOYS.zscore.weekly-127cc474.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-65f27dce.js → BMI_BOYS.zscore.yearly-39444147.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-9ab67064.js → BMI_GIRLS.percentile.monthly-001ee761.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-9c4f71c7.js → BMI_GIRLS.percentile.weekly-148e406b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-39a136c5.js → BMI_GIRLS.percentile.yearly-a5dd74be.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-f2644bfc.js → BMI_GIRLS.zscore.monthly-618da57b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-9e12eb75.js → BMI_GIRLS.zscore.weekly-84043a70.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-f32ba632.js → BMI_GIRLS.zscore.yearly-2c151852.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f4e75126.js → HEAD CIRCUM_BOYS.percentile.monthly-59e987e7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c7a526dc.js → HEAD CIRCUM_BOYS.percentile.weekly-84696f87.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-24eb7b34.js → HEAD CIRCUM_BOYS.percentile.yearly-b8e2924a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ed842a8e.js → HEAD CIRCUM_BOYS.zscore.monthly-6931c20d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8342309b.js → HEAD CIRCUM_BOYS.zscore.weekly-1813b7cf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-da630818.js → HEAD CIRCUM_BOYS.zscore.yearly-721b83e4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1addec75.js → HEAD CIRCUM_GIRLS.percentile.monthly-eee6dc50.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-607523c1.js → HEAD CIRCUM_GIRLS.percentile.weekly-3b4a36dd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-3769923a.js → HEAD CIRCUM_GIRLS.percentile.yearly-e97092a8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3148baea.js → HEAD CIRCUM_GIRLS.zscore.monthly-c646aa4b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-de610bc1.js → HEAD CIRCUM_GIRLS.zscore.weekly-bbc583f6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-79d33980.js → HEAD CIRCUM_GIRLS.zscore.yearly-d70f1f59.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b55b5604.js → HEIGHT_BOYS.percentile.monthly-06b3ca93.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-06652862.js → HEIGHT_BOYS.percentile.weekly-7d89958e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-8afdc080.js → HEIGHT_BOYS.percentile.yearly-688d9faa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-abd70d45.js → HEIGHT_BOYS.zscore.monthly-39b7e0f2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e49d765f.js → HEIGHT_BOYS.zscore.weekly-2f2aa629.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-10052800.js → HEIGHT_BOYS.zscore.yearly-d771804a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-a03b1102.js → HEIGHT_GIRLS.percentile.monthly-5836540d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-3fc54e34.js → HEIGHT_GIRLS.percentile.weekly-c6bb8644.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-aa8fcd06.js → HEIGHT_GIRLS.percentile.yearly-94b85b35.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-72e414ba.js → HEIGHT_GIRLS.zscore.monthly-b7489388.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-a96360bf.js → HEIGHT_GIRLS.zscore.weekly-a1c23d63.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c3acfe86.js → HEIGHT_GIRLS.zscore.yearly-a88a1287.js} +0 -0
- /package/build/esm/{Onboarding-bdce44a2.js → Onboarding-425ce5e0.js} +0 -0
- /package/build/esm/{Visible-6abf9977.js → Visible-07963bb9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-11956cd1.js → WEIGHT_BOYS.percentile.monthly-d52bbd68.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-4564ee40.js → WEIGHT_BOYS.percentile.weekly-763cad4e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-a5300252.js → WEIGHT_BOYS.percentile.yearly-12b2e89f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-10a5cd7c.js → WEIGHT_BOYS.zscore.monthly-f171ddb6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-74d6578e.js → WEIGHT_BOYS.zscore.weekly-c036a53a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-a64937f3.js → WEIGHT_BOYS.zscore.yearly-6ddc20d0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-e80cd318.js → WEIGHT_GIRLS.percentile.monthly-537e50af.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-c5d342d0.js → WEIGHT_GIRLS.percentile.weekly-feaf29cd.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-c41b22ef.js → WEIGHT_GIRLS.percentile.yearly-4f3b9d83.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-bb7dad10.js → WEIGHT_GIRLS.zscore.monthly-dd2fdb0d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-ff029bdf.js → WEIGHT_GIRLS.zscore.weekly-be8eb223.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d4581080.js → WEIGHT_GIRLS.zscore.yearly-2cf879f1.js} +0 -0
- /package/build/esm/{constants-edea5500.js → constants-ece5a399.js} +0 -0
- /package/build/esm/{cookieHelper-a9802f54.js → cookieHelper-65c10ff9.js} +0 -0
- /package/build/esm/{dataTransform-6b0ced9f.js → dataTransform-e58b894e.js} +0 -0
- /package/build/esm/{index-41642062.js → index-2b0fc3cc.js} +0 -0
- /package/build/esm/{index-6d14046f.js → index-d62c8590.js} +0 -0
- /package/build/esm/{isProduction-0a7ebad0.js → isProduction-d29de9ea.js} +0 -0
- /package/build/esm/{localizeNumberFormat-50733c28.js → localizeNumberFormat-346e0c33.js} +0 -0
- /package/build/esm/{normalizeLink-c3752ebc.js → normalizeLink-53b5813b.js} +0 -0
- /package/build/esm/{theme-d7414209.js → theme-595172c3.js} +0 -0
- /package/build/esm/{translationsContext-061c0ba1.js → translationsContext-09290db2.js} +0 -0
- /package/build/esm/{tslib.es6-a0b18256.js → tslib.es6-1122f43e.js} +0 -0
- /package/build/esm/{types-745a48c9.js → types-a7634411.js} +0 -0
- /package/build/esm/{useIsInit-3d7a5b3a.js → useIsInit-5040250f.js} +0 -0
- /package/build/esm/{useOutsideClick-62f5835e.js → useOutsideClick-8c195b0c.js} +0 -0
- /package/build/esm/{useScrollbarSize-506ba58e.js → useScrollbarSize-98a8f29b.js} +0 -0
- /package/build/esm/{useUniqueId-d9994630.js → useUniqueId-efa31f3c.js} +0 -0
- /package/build/esm/{utils-1c866772.js → utils-dd45ebd6.js} +0 -0
- /package/build/{index-ec92811b.js → index-4007dc43.js} +0 -0
- /package/build/{index-8eb5334a.js → index-a7d96b4b.js} +0 -0
- /package/build/{isProduction-1abb5cb6.js → isProduction-ca7a0d51.js} +0 -0
- /package/build/{localizeNumberFormat-3d78ebcf.js → localizeNumberFormat-f87e3703.js} +0 -0
- /package/build/{normalizeLink-61b70627.js → normalizeLink-3220421b.js} +0 -0
- /package/build/{theme-b3862f47.js → theme-7b182b51.js} +0 -0
- /package/build/{translationsContext-5066d395.js → translationsContext-4d46297e.js} +0 -0
- /package/build/{tslib.es6-616b0cfc.js → tslib.es6-4bd6bd01.js} +0 -0
- /package/build/{types-cc597012.js → types-f31cdf47.js} +0 -0
- /package/build/{useIsInit-4d139725.js → useIsInit-8d4e3d7c.js} +0 -0
- /package/build/{useOutsideClick-887560ce.js → useOutsideClick-011ff769.js} +0 -0
- /package/build/{useScrollbarSize-33d4c51c.js → useScrollbarSize-1232a288.js} +0 -0
- /package/build/{useUniqueId-23e1051c.js → useUniqueId-0c883ec8.js} +0 -0
- /package/build/{utils-4146be71.js → utils-475916e4.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-be7ce870.js"),t=require("react"),r=require("./Onboarding-dd23dcac.js"),a=require("./theme-7b182b51.js"),l=require("./index-c3a94487.js"),o=require("styled-components"),n=require("./index-9b350e60.js"),i=require("./index-0ff0cf94.js"),s=require("./index-b0a612ce.js"),d=require("./screenSizeContext-e33a9eca.js"),c=require("dayjs"),u=require("./useTranslations-f0911067.js");require("lodash/debounce"),require("./isProduction-ca7a0d51.js"),require("./index-2a25ed39.js");var C=require("./localizeNumberFormat-f87e3703.js"),h=require("./index-dd639b43.js"),m=require("./utils-475916e4.js"),f=require("./index.styled-bad57cdc.js");require("./gAssets.js"),require("@mantine/core"),require("./index.styled-7c8e01d4.js"),require("./index-affe1781.js");var y=require("./index-4007dc43.js");require("./index.styles-31c72cd1.js"),require("./index-d453ed07.js"),require("@mantine/hooks");var p=require("./useOutsideClick-011ff769.js"),b=require("./tslib.es6-4bd6bd01.js"),w=require("./index-6d8ad857.js"),g=require("recharts"),x=require("lodash/chunk");function E(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-0c883ec8.js"),require("./index.styled-e37b0ba5.js"),require("lodash/throttle"),require("./translationsContext-4d46297e.js"),require("string-format"),require("@mantine/dates"),require("@mantine/carousel"),require("./index-fe5ed80c.js"),require("./useScrollbarSize-1232a288.js"),require("react-dom");var v=E(t),B=E(o),L=E(c),G=E(x);const M=B.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
|
-
`,F={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-
|
|
275
|
+
`,F={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-563c5fc8.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-eea3c7a7.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-4855d68d.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-5f91157e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-c384e437.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-fa34dd85.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-373a6481.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-abc8532d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-9f98e181.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-493d724e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-f36155bb.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-ec6debb5.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-27b48626.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-5bf03be3.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-7aab4de6.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-ff18a739.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-eec76eec.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-3a58c352.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-c4d43bd0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-620c6a20.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-5fc979ae.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-4c1d5327.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-a5b90363.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-4c2ea39e.js")}))}}},$={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-1e79991b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-1e1fe207.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-b87ef30f.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-0e57b8e7.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-ae6458ca.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-6b8ab8b4.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-ac4ee6ca.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-a4e9f6df.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-93fb4c15.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-35ff9ca1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-18ca095a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-69affc58.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-aefb21a3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-6dc04c63.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-f3a0638e.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-51b61c07.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-b1e5d32d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-1ce4b6ac.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-64036d9c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-384accc5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-e608f161.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-34c3e533.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-643871e1.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-52fd8f77.js")}))}}},U=(e,t,a,l)=>l===r.LOCALE.Indonesia?$[e][t][a]():F[e][t][a](),K=(e,t)=>{const[r,a]=G.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"}},X=(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)),J=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),Q=(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},ee=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),te=B.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-7967b08d.js");require("./tslib.es6-4bd6bd01.js"),require("./isProduction-ca7a0d51.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-55dcb621.js"),r=require("./constants-3a3cba3e.js");require("./tslib.es6-4bd6bd01.js"),require("react"),require("./index-2a25ed39.js"),require("./Onboarding-dd23dcac.js"),require("./isProduction-ca7a0d51.js"),require("./cookieHelper-11d465fb.js"),require("./useTranslations-f0911067.js"),require("./translationsContext-4d46297e.js"),require("string-format"),require("lodash/debounce"),require("./index-fe5ed80c.js"),require("@mantine/core"),require("./index.styled-7c8e01d4.js"),require("./utils-475916e4.js"),require("styled-components"),require("./index-c3a94487.js"),require("./theme-7b182b51.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-011ff769.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
|
@@ -10,5 +10,8 @@ export type Props = {
|
|
|
10
10
|
style?: CSSProperties;
|
|
11
11
|
onClose?: () => void;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Consider to use Mantine
|
|
15
|
+
*/
|
|
13
16
|
declare const Alert: ({ style, onClose, text, type, contentIcon, closeIcon, className, description, }: Props) => JSX.Element;
|
|
14
17
|
export { Alert };
|
|
@@ -14,5 +14,8 @@ export type Props = {
|
|
|
14
14
|
width?: number;
|
|
15
15
|
height?: number;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
19
|
+
*/
|
|
17
20
|
declare const Avatar: ({ type, size, avatarImg, avatarUrl, firstLetter, backgroundColor, onClick, style, className, width, height, }: Props) => JSX.Element;
|
|
18
21
|
export { Avatar };
|
|
@@ -10,5 +10,8 @@ export type Props = {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
amount?: number | string | JSX.Element;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
15
|
+
*/
|
|
13
16
|
declare const Badge: ({ amount, type, size, color, icon, className, }: Props) => JSX.Element;
|
|
14
17
|
export { Badge };
|
|
@@ -25,5 +25,8 @@ export type Props = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> & {
|
|
|
25
25
|
dataProductPosition?: string;
|
|
26
26
|
type?: 'submit' | 'reset' | 'button';
|
|
27
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
30
|
+
*/
|
|
28
31
|
declare const Button: ({ size, color, theme, isDisabled, isBlock, title, className, onClick, icon, iconPosition, children, isLoading, loadingText, dataEventCategory, dataEventAction, dataEventLabel, dataProductChannel, dataProductSku, dataProductBrand, dataProductName, dataProductPrice, dataProductCategory, dataProductPosition, type, ...rest }: Props) => JSX.Element;
|
|
29
32
|
export { Button };
|
|
@@ -12,5 +12,8 @@ export type Props = {
|
|
|
12
12
|
inputDataTestId?: string;
|
|
13
13
|
siteType?: SiteType;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
17
|
+
*/
|
|
15
18
|
declare const Checkbox: ({ label, name, checked, className, isDisabled, onChange, value, isRectangle, inputDataTestId, siteType, }: Props) => JSX.Element;
|
|
16
19
|
export { Checkbox };
|
|
@@ -20,5 +20,8 @@ interface ExtendedGrid extends BasicProps {
|
|
|
20
20
|
gridTemplateColumnsDesktop: string;
|
|
21
21
|
}
|
|
22
22
|
export type Props = BasicGrid | ExtendedGrid;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Consider to use mantine
|
|
25
|
+
*/
|
|
23
26
|
declare const Grid: ({ className, columns, columnsDesktop, gridTemplateColumns, gridTemplateColumnsDesktop, gap, children, justifyChildren, style, alignItems, }: Props) => JSX.Element;
|
|
24
27
|
export { Grid };
|
|
@@ -21,5 +21,8 @@ export type Props = {
|
|
|
21
21
|
trackingAttributes?: GATrackingCode;
|
|
22
22
|
enterKeyHint?: React.InputHTMLAttributes<HTMLInputElement>['enterKeyHint'];
|
|
23
23
|
} & Omit<HTMLAttributes<HTMLInputElement>, 'onChange' | 'name' | 'value'>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
26
|
+
*/
|
|
24
27
|
declare const Input: ({ name, value, errorMessage, isNumerousKeyboard, showErrorMessage, actionIcon: ActionIcon, displayIcon: DisplayIcon, onActionClick, label, className, onChange, isDisabled, CustomInput, size, style, autoComplete, type, inputClassName, trackingAttributes, enterKeyHint, ...rest }: Props) => JSX.Element;
|
|
25
28
|
export { Input };
|
|
@@ -13,5 +13,8 @@ type TextProps = {
|
|
|
13
13
|
style?: CSSProperties;
|
|
14
14
|
[x: string]: string | JSX.Element | JSX.Element[] | React.ReactNode;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
18
|
+
*/
|
|
16
19
|
declare const MarryBabyText: ({ type, color, style, ...props }: TextProps) => JSX.Element;
|
|
17
20
|
export { MarryBabyHeading, MarryBabyText };
|
|
@@ -17,5 +17,8 @@ export type CustomInputProps = {
|
|
|
17
17
|
nativeOnChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
18
18
|
};
|
|
19
19
|
export type Props = Omit<React.DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'size' | 'autoComplete' | 'type' | 'onChange' | 'enterKeyHint' | 'ref'> & CustomInputProps;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
22
|
+
*/
|
|
20
23
|
declare const PureInput: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "enterKeyHint" | "autoComplete" | "size" | "type" | "onChange" | "ref"> & CustomInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
21
24
|
export { PureInput };
|
|
@@ -13,5 +13,8 @@ export type Props = {
|
|
|
13
13
|
dataEventAction?: string;
|
|
14
14
|
dataEventLabel?: string;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
18
|
+
*/
|
|
16
19
|
declare const Radio: ({ type, size, label, name, checked, value, className, isDisabled, onChange, dataEventCategory, dataEventAction, dataEventLabel, }: Props) => JSX.Element;
|
|
17
20
|
export { Radio };
|
|
@@ -20,5 +20,8 @@ export type Props<T = HTMLParagraphElement> = HTMLAttributes<T> & {
|
|
|
20
20
|
*/
|
|
21
21
|
isUppercase?: boolean;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
25
|
+
*/
|
|
23
26
|
declare const Text: <T>({ size, type, className, style, children, color, dataEventCategory, dataEventAction, dataEventLabel, as, wordWrap, isUppercase, ...rest }: Props<T>) => JSX.Element;
|
|
24
27
|
export { Text };
|
|
@@ -12,5 +12,8 @@ export type Props = {
|
|
|
12
12
|
onKeyPress?: (e: KeyboardEvent) => void;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
17
|
+
*/
|
|
15
18
|
declare const TextArea: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLTextAreaElement>>;
|
|
16
19
|
export { TextArea };
|
|
@@ -7,5 +7,8 @@ export type Props = {
|
|
|
7
7
|
label?: string;
|
|
8
8
|
onChange?: () => void;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Consider to use {@link Switch} at {@link https://www.npmjs.com/package/@hhgtech/hhg-components/mantine}
|
|
12
|
+
*/
|
|
10
13
|
declare const Toggle: ({ className, id, onChange, checked, style, label }: Props) => JSX.Element;
|
|
11
14
|
export { Toggle };
|
|
@@ -10,5 +10,8 @@ export type Props = {
|
|
|
10
10
|
value?: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Consider to use mantine
|
|
15
|
+
*/
|
|
13
16
|
declare const Uploader: ({ type, withIcon, onFileSelected, inputId, withElement, fileAcceptType, multiple, value, className, }: Props) => JSX.Element;
|
|
14
17
|
export { Uploader };
|
|
@@ -14,4 +14,7 @@ export type Props = {
|
|
|
14
14
|
dataEventLabel?: string;
|
|
15
15
|
onChangePage?: (page: number) => void;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
19
|
+
*/
|
|
17
20
|
export declare const Carousel: ({ row, column, children, scheme, classNameLeftArrow, classNameRightArrow, mode, isDotsShown, isArrowShown, dataEventCategory, dataEventAction, dataEventLabel, onChangePage, }: Props) => JSX.Element;
|
|
@@ -22,5 +22,8 @@ export type Props = {
|
|
|
22
22
|
export type DatePickerCustomInputProps = {
|
|
23
23
|
onClick: () => void;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
27
|
+
*/
|
|
25
28
|
declare const DatePicker: ({ alignRight, placeholder, displayDateFormat, onChange, customInput: CustomInput, pickedDate, className, isStatic, disabledDays, modifiers, UnHideOnClickOutside, initialMonth, locale, }: Props) => JSX.Element;
|
|
26
29
|
export { DatePicker };
|
|
@@ -11,4 +11,7 @@ export type DateRangePickerProps = {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
autoClose?: boolean;
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
16
|
+
*/
|
|
14
17
|
export declare function DateRangePicker({ inputSize, name, value, minDate, maxDate, onChange, className, autoClose, }: DateRangePickerProps): JSX.Element;
|
|
@@ -23,5 +23,8 @@ export type Props = {
|
|
|
23
23
|
};
|
|
24
24
|
isNativeSelect?: boolean;
|
|
25
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
28
|
+
*/
|
|
26
29
|
declare const Dropdown: ({ className, value, options, onChange, id, placeholderIcon, placeholder, style, size, groupedWithLabel, disabled, dropdownLabelTrackingAttributes, isNativeSelect, }: Props) => JSX.Element;
|
|
27
30
|
export { Dropdown };
|
|
@@ -20,5 +20,8 @@ export type Props = Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus'>
|
|
|
20
20
|
hasIcons?: boolean;
|
|
21
21
|
keepSearch?: boolean;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
25
|
+
*/
|
|
23
26
|
declare const DropdownSearch: ({ className, style, id, placeholder, placeholderIcon, onChange, value, options, dropdownLabelTrackingAttributes, disabled, onSearchChange, useSearchFilter, onFocus, hasIcons, keepSearch, ...rest }: Props) => JSX.Element;
|
|
24
27
|
export { DropdownSearch };
|
|
@@ -12,5 +12,8 @@ export type Props = {
|
|
|
12
12
|
style?: CSSProperties;
|
|
13
13
|
siteType?: SiteType;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
17
|
+
*/
|
|
15
18
|
declare const Modal: ({ type, closeIcon, isOpen, onClose, children, className, animationType, isStaticBackdrop, siteType, style, }: Props) => React.ReactPortal;
|
|
16
19
|
export { Modal };
|
|
@@ -12,5 +12,8 @@ export type PillCarouselProps = {
|
|
|
12
12
|
blurFromIndex?: number;
|
|
13
13
|
blurLength?: number;
|
|
14
14
|
} & MantineCarouselProps;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
17
|
+
*/
|
|
15
18
|
declare const PillCarousel: ({ data, isMobile, onSlideChange, pillProps, locale, blurFromIndex, blurLength, ...rest }: PillCarouselProps) => JSX.Element;
|
|
16
19
|
export { PillCarousel };
|
|
@@ -31,5 +31,8 @@ export type Props = {
|
|
|
31
31
|
customPageWidth?: number;
|
|
32
32
|
scheme?: 'hellosites' | 'marrybaby';
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
36
|
+
*/
|
|
34
37
|
export declare const ScrollList: ({ row, column, isDotsShown, isImageGalleryShown, mode, type, distanceOverlappedLeft, children, className, isProgressShown, statusChildren, isArrowShown, classNameLeftArrow, classNameRightArrow, dataEventCategory, dataEventAction, dataEventLabel, onChangePage, page, customPageWidth, scheme, arrowType, }: Props) => JSX.Element;
|
|
35
38
|
export {};
|
|
@@ -20,5 +20,8 @@ export interface Props extends DefaultProps<Selectors<typeof useStyles>> {
|
|
|
20
20
|
style?: CSSProperties;
|
|
21
21
|
id?: string;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Consider to use mantine
|
|
25
|
+
*/
|
|
23
26
|
declare const Tabs: ({ style, initialTab, tabContent, onChange, className, dataEventCategory, dataEventAction, dataEventLabel, id, styles, }: Props & DataTrackingType) => JSX.Element;
|
|
24
27
|
export { Tabs };
|
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-a7cda1c5.js"),r=require("./index-6c105c55.js"),o=require("./index-9b350e60.js"),t=require("./index-a7e0e27c.js"),i=require("./index-dd639b43.js"),a=require("./index-fe5ed80c.js"),s=require("./index.styled-7c8e01d4.js"),d=require("./index-325fcced.js"),n=require("./index.styled-bad57cdc.js"),u=require("./index.styled-a85cf2d8.js"),x=require("./index-c3a94487.js"),p=require("./index-affe1781.js"),c=require("./index-0ff0cf94.js"),l=require("./index-be7ce870.js"),q=require("./index-6d8ad857.js"),b=require("./index-4007dc43.js"),g=require("./dataTransform-ebd46330.js"),C=require("./index-680ae62f.js"),j=require("./footer.js");require("react"),require("./utils-475916e4.js"),require("./useUniqueId-0c883ec8.js"),require("./gAssets.js"),require("./index-2a25ed39.js"),require("./Onboarding-dd23dcac.js"),require("./isProduction-ca7a0d51.js"),require("./theme-7b182b51.js"),require("./tslib.es6-4bd6bd01.js"),require("lodash/throttle"),require("keen-slider/react"),require("dayjs"),require("./screenSizeContext-e33a9eca.js"),require("styled-components"),require("./useTranslations-f0911067.js"),require("./translationsContext-4d46297e.js"),require("string-format"),require("date-fns"),require("@mantine/core"),require("./index.styled-e37b0ba5.js"),require("./index.styles-31c72cd1.js"),require("@mantine/dates"),require("@mantine/hooks"),require("@mantine/carousel"),require("./index-d453ed07.js"),require("./types-f31cdf47.js"),require("./index.styled-9ef5555d.js"),require("./cookieHelper-11d465fb.js"),require("slugify"),require("./routing-f8d94930.js"),require("dayjs/plugin/relativeTime"),require("./index-b0a612ce.js"),require("./index-2fd8bfe9.js"),require("react-hook-form"),require("./useHealthToolCache-541d32b1.js"),require("./getDynamicHealthTool-f7eb291a.js"),require("./core-7967b08d.js"),require("./normalizeLink-3220421b.js"),require("./useOutsideClick-011ff769.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./useScreenSize-fcaa1f70.js"),require("./getSocialList-9b36de9d.js"),require("./constants-3a3cba3e.js"),require("./useIsInit-8d4e3d7c.js"),require("lodash/debounce"),require("./index-02da947b.js"),require("./index-b9f6ab96.js"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-1232a288.js"),require("react-dom"),require("./index.styled-4e2bcd47.js"),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.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.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.Tabs=t.Tabs,exports.Heading=i.Heading,exports.Input=a.Input,exports.Label=s.Label,exports.Logo=d.Logo,exports.Menu=n.Menu,exports.PureInput=n.PureInput,exports.TextArea=n.TextArea,exports.TextDivider=n.TextDivider,exports.DatePicker=u.DatePicker,exports.DoctorInfo=u.DoctorInfo,exports.Dropdown=u.Dropdown,exports.MobileBottomNavigation=u.MobileBottomNavigation,exports.MobileBottomNavigationIcon=u.MobileBottomNavigationIcon,exports.Radio=u.Radio,exports.RadioGroup=u.RadioGroup,exports.SurveyQuestionCard=u.SurveyQuestionCard,exports.ToolsBannerCard=u.ToolsBannerCard,exports.Text=x.Text,exports.Container=p.Container,exports.Icon=c.Icon,exports.Drawer=l.Drawer,exports.RadioImageGroup=l.RadioImageGroup,exports.Modal=q.Modal,exports.NewBabyProfileRadio=q.NewBabyProfileRadio,exports.CustomReferenceDot=b.CustomReferenceDot,exports.Popup=g.Popup,exports.PillCarousel=C.PillCarousel,exports.Footer=j.Footer;
|
package/build/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./Onboarding-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./Onboarding-dd23dcac.js");var e=require("./index-2a25ed39.js"),O=require("./isProduction-ca7a0d51.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("./tslib.es6-4bd6bd01.js"),e=require("./isProduction-ca7a0d51.js");const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},r=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}};exports.getCachedItem=i,exports.getDataWithCache=(e,a,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(a){const t=yield a();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react"),i=require("./index.styled-d34f26c1.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-9ef5555d.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;
|