@hhgtech/hhg-components 1.25.8 → 1.25.9
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/input/index.styled.d.ts +4 -1
- package/build/components/mantine/anchor/index.d.ts +9 -5
- package/build/components/mantine/anchor/index.styles.d.ts +9 -0
- package/build/components/mantine/button/index.d.ts +4 -2
- package/build/components/mantine/button/index.styles.d.ts +13 -0
- package/build/components/mantine/text/index.d.ts +7 -6
- package/build/components/mantine/text/index.styles.d.ts +10 -0
- package/build/components/molecules/dropdown/index.styled.d.ts +8 -2
- package/build/components/molecules/tabs/index.d.ts +10 -13
- package/build/components/molecules/tabs/index.styles.d.ts +2 -2
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-b86338df.js +1 -0
- package/build/{dataTransform-adda3623.js → dataTransform-22d9e869.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +5 -5
- 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-9e507348.js → core-9a86c5c5.js} +1 -1
- package/build/esm/{dataTransform-d83f8410.js → dataTransform-8a5315d5.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-513b6a29.js +1 -0
- package/build/esm/{getSocialList-bbf52a7a.js → getSocialList-6c0f5400.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-c2e45d61.js → index-0690a15f.js} +1 -1
- package/build/esm/{index-46ae67bc.js → index-089d9bae.js} +1 -1
- package/build/esm/{index-b8a7373c.js → index-1132015e.js} +2 -2
- package/build/esm/{index-40ef106d.js → index-18466163.js} +1 -1
- package/build/esm/{index-346d4995.js → index-20849a23.js} +1 -1
- package/build/esm/{index-ef2111b2.js → index-3223f5e2.js} +1 -1
- package/build/esm/index-38b385a7.js +1 -0
- package/build/esm/index-3969fa80.js +1 -0
- package/build/esm/{index-f1029275.js → index-3f75926d.js} +1 -1
- package/build/esm/index-48b1b30c.js +1 -0
- package/build/esm/{index-05358d37.js → index-66dc56ed.js} +1 -1
- package/build/esm/index-6b0ace0a.js +1 -0
- package/build/esm/{index-3a18e414.js → index-75a639a4.js} +1 -1
- package/build/esm/index-87b5a0d6.js +1 -0
- package/build/esm/index-92e8d56f.js +1 -0
- package/build/esm/index-b04552c8.js +1 -0
- package/build/esm/index-d1119c29.js +1 -0
- package/build/esm/{index-91dd7297.js → index-df88901f.js} +1 -1
- package/build/esm/{index-d39eb350.js → index-e44db44a.js} +1 -1
- package/build/esm/index-ea004de4.js +1 -0
- package/build/esm/index-f010b224.js +1 -0
- package/build/esm/{index-f900276a.js → index-f08fcbf8.js} +1 -1
- package/build/esm/{index-c644dedc.js → index-f4577c25.js} +1 -1
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-e94e7231.js → index.styled-05a415e9.js} +1 -1
- package/build/esm/{index.styled-0375e1ac.js → index.styled-559237c4.js} +6 -6
- package/build/esm/{index.styled-28ec3a94.js → index.styled-594714b9.js} +1 -1
- package/build/esm/{index.styled-da1f6fc3.js → index.styled-5f63f290.js} +14 -14
- package/build/esm/{index.styled-7ba08c7b.js → index.styled-82a3b6c8.js} +1 -1
- package/build/esm/{index.styled-3b073749.js → index.styled-c7cfdeb3.js} +3 -4
- package/build/esm/{index.styled-19fe427f.js → index.styled-ff6733a1.js} +175 -178
- package/build/esm/{index-c915fcde.js → index.styles-9388355f.js} +11 -24
- 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-0c7cb8d9.js → routing-fda3cf6d.js} +1 -1
- package/build/esm/{screenSizeContext-7a09b9a6.js → screenSizeContext-f290fa29.js} +3 -3
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-42f4ca02.js → translationsProvider-174396ba.js} +1 -1
- package/build/esm/{types-f61b51cb.js → types-37a3eee6.js} +37 -37
- package/build/esm/{types-2b4faaf7.js → types-d9ff6e6f.js} +70 -70
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-43a2e2cb.js +1 -0
- package/build/esm/{useRafState-938bb51c.js → useRafState-af33985b.js} +1 -1
- package/build/esm/{useScreenSize-62c19865.js → useScreenSize-f7f4165f.js} +1 -1
- package/build/esm/{useTranslations-0252ace4.js → useTranslations-103dd00b.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-452bd905.js → getDynamicHealthTool-d4e72e1c.js} +1 -1
- package/build/{getSocialList-82a643a5.js → getSocialList-e1710f93.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index-0f12a433.js +1 -0
- package/build/index-1a40e4e7.js +1 -0
- package/build/index-1ab733e6.js +1 -0
- package/build/{index-f2a6c1c0.js → index-1cf25330.js} +1 -1
- package/build/{index-d04e582d.js → index-24973da9.js} +1 -1
- package/build/{index-d83601ab.js → index-276b4c69.js} +1 -1
- package/build/index-28d9f392.js +1 -0
- package/build/index-3d7ba3ec.js +1 -0
- package/build/{index-965fced2.js → index-441a3ca5.js} +3 -3
- package/build/{index-447e7263.js → index-4988ead9.js} +1 -1
- package/build/index-512b74a8.js +1 -0
- package/build/index-5c248e37.js +1 -0
- package/build/{index-8ea81525.js → index-6067431a.js} +1 -1
- package/build/index-658fcbbc.js +1 -0
- package/build/{index-5100b89a.js → index-67f527c9.js} +1 -1
- package/build/{index-27d451dd.js → index-80f91a0c.js} +1 -1
- package/build/{index-ed822e8e.js → index-8397b60a.js} +1 -1
- package/build/{index-117f7e28.js → index-8d979a94.js} +1 -1
- package/build/{index-2b84e1db.js → index-a52bd134.js} +1 -1
- package/build/{index-fb7de03f.js → index-d28c0696.js} +1 -1
- package/build/index-dbb2c16a.js +1 -0
- package/build/index-e74851ed.js +1 -0
- package/build/{index-8de936fb.js → index-ea21b2e4.js} +1 -1
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-c93747db.js → index.styled-2793901f.js} +5 -5
- package/build/{index.styled-61982153.js → index.styled-2ba3e44d.js} +1 -1
- package/build/{index.styled-8498ef7f.js → index.styled-5320f380.js} +19 -22
- package/build/{index.styled-c2b23b28.js → index.styled-56ac8b18.js} +8 -9
- package/build/{index.styled-6f7cc9a4.js → index.styled-7654ccb6.js} +14 -14
- package/build/{index.styled-b7cd5f1e.js → index.styled-d34f26c1.js} +1 -1
- package/build/{index.styled-30ee4ed0.js → index.styled-ef365648.js} +1 -1
- package/build/index.styles-81c47700.js +115 -0
- 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-33dd3614.js → routing-c6c38d78.js} +1 -1
- package/build/screenSizeContext-8812943d.js +81 -0
- package/build/together/components/molecules/postContent/index.d.ts +8 -6
- package/build/together/components/molecules/postContent/index.styled.d.ts +3 -1
- package/build/together/components/molecules/postContent/index.styles.d.ts +6 -0
- package/build/together.js +1 -1
- package/build/{translationsProvider-7b5443c8.js → translationsProvider-0eebd4b0.js} +1 -1
- package/build/{types-231c4f9d.js → types-86f97b90.js} +79 -79
- package/build/{types-9b46e0c4.js → types-9ce016a3.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-35c820b7.js +1 -0
- package/build/{useRafState-5eb5f73f.js → useRafState-9f682959.js} +1 -1
- package/build/{useScreenSize-1aef4a73.js → useScreenSize-35c38f80.js} +1 -1
- package/build/{useTranslations-12079e07.js → useTranslations-f7327db4.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-3eb73a90.js +0 -1
- package/build/esm/getDynamicHealthTool-ddf5402e.js +0 -1
- package/build/esm/index-0dd8d8cc.js +0 -1
- package/build/esm/index-3943a4ee.js +0 -1
- package/build/esm/index-4aa230ae.js +0 -1
- package/build/esm/index-5b495a39.js +0 -1
- package/build/esm/index-73b8f2ef.js +0 -1
- package/build/esm/index-84e548f3.js +0 -1
- package/build/esm/index-bf25487f.js +0 -1
- package/build/esm/index-dfd4f6fe.js +0 -1
- package/build/esm/index-e05c0257.js +0 -1
- package/build/esm/useHealthToolCache-0908f395.js +0 -1
- package/build/index-5ed28706.js +0 -128
- package/build/index-5ed63889.js +0 -1
- package/build/index-660e2d94.js +0 -1
- package/build/index-7279d356.js +0 -1
- package/build/index-76a61628.js +0 -1
- package/build/index-9c753bfa.js +0 -1
- package/build/index-ab2a2ed6.js +0 -1
- package/build/index-b830a90b.js +0 -1
- package/build/index-ca36b41b.js +0 -1
- package/build/index-ff8c7c71.js +0 -1
- package/build/screenSizeContext-cb07b904.js +0 -81
- package/build/useHealthToolCache-a0e9cd93.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-ec9bf9a2.js → BMI_BOYS.percentile.monthly-c4d28ab7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-9d1da9ec.js → BMI_BOYS.percentile.weekly-1ee91366.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-cc8bb08f.js → BMI_BOYS.percentile.yearly-ef47e9b0.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-163fc5f5.js → BMI_BOYS.zscore.monthly-b7179d6f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-e6c1b4fc.js → BMI_BOYS.zscore.weekly-adcc394c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-f9b8dff7.js → BMI_BOYS.zscore.yearly-f494e368.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-3e28b5fb.js → BMI_GIRLS.percentile.monthly-18c40663.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d4a8e075.js → BMI_GIRLS.percentile.weekly-18be12e0.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-f778434d.js → BMI_GIRLS.percentile.yearly-7fe0ebc2.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-5e76a8a8.js → BMI_GIRLS.zscore.monthly-3067b3bc.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-d5edd254.js → BMI_GIRLS.zscore.weekly-033625ae.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-29b85ba3.js → BMI_GIRLS.zscore.yearly-6a8d7512.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-d577b05a.js → HEAD CIRCUM_BOYS.percentile.monthly-4068bb5f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-736ba5ae.js → HEAD CIRCUM_BOYS.percentile.weekly-1807730d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-88283d34.js → HEAD CIRCUM_BOYS.percentile.yearly-9355e8fd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-22dd8d89.js → HEAD CIRCUM_BOYS.zscore.monthly-11746662.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-7fc89687.js → HEAD CIRCUM_BOYS.zscore.weekly-60de1a55.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-89fedf3f.js → HEAD CIRCUM_BOYS.zscore.yearly-f2f08468.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-bf06b955.js → HEAD CIRCUM_GIRLS.percentile.monthly-2a570cfe.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-775e2803.js → HEAD CIRCUM_GIRLS.percentile.weekly-84586688.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-9b6ea573.js → HEAD CIRCUM_GIRLS.percentile.yearly-4423e60d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5ec57b76.js → HEAD CIRCUM_GIRLS.zscore.monthly-327c4ec1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-fc7ee4fb.js → HEAD CIRCUM_GIRLS.zscore.weekly-fc44778a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3217ec4c.js → HEAD CIRCUM_GIRLS.zscore.yearly-cca18f8d.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-fbe8bd35.js → HEIGHT_BOYS.percentile.monthly-1b6f693f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-e2609993.js → HEIGHT_BOYS.percentile.weekly-79617a87.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-f3ae91e1.js → HEIGHT_BOYS.percentile.yearly-adf272d4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-7d054e77.js → HEIGHT_BOYS.zscore.monthly-b2fd3cf9.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-a9dd2ff5.js → HEIGHT_BOYS.zscore.weekly-7442e053.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-b906215f.js → HEIGHT_BOYS.zscore.yearly-19d4cdaf.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-53829380.js → HEIGHT_GIRLS.percentile.monthly-d4372e1b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-b0f5cd39.js → HEIGHT_GIRLS.percentile.weekly-aabdd879.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-d47eed23.js → HEIGHT_GIRLS.percentile.yearly-b34fc4e0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-60d65154.js → HEIGHT_GIRLS.zscore.monthly-f7e29bec.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-8577fddc.js → HEIGHT_GIRLS.zscore.weekly-849f7e0c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-1d3af54d.js → HEIGHT_GIRLS.zscore.yearly-e7b2a47d.js} +0 -0
- /package/build/{Onboarding-6a93948f.js → Onboarding-8fa66f70.js} +0 -0
- /package/build/{Visible-f47dbb69.js → Visible-5e72a722.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-42acf975.js → WEIGHT_BOYS.percentile.monthly-36df2742.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-0b9deb7d.js → WEIGHT_BOYS.percentile.weekly-dfe6e7c3.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-69eec7f3.js → WEIGHT_BOYS.percentile.yearly-99b10b62.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-dfd575ea.js → WEIGHT_BOYS.zscore.monthly-e3f6b8b6.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-71a6992c.js → WEIGHT_BOYS.zscore.weekly-c55976ea.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-509805a3.js → WEIGHT_BOYS.zscore.yearly-3fcf5d08.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-3d2539c9.js → WEIGHT_GIRLS.percentile.monthly-77fa84e6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-0276f67e.js → WEIGHT_GIRLS.percentile.weekly-d75ab2c3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-4dfd5b80.js → WEIGHT_GIRLS.percentile.yearly-85f2bf2d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-de970453.js → WEIGHT_GIRLS.zscore.monthly-9ec43435.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-54fffe53.js → WEIGHT_GIRLS.zscore.weekly-35c4e6de.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-9831b02f.js → WEIGHT_GIRLS.zscore.yearly-266c28d0.js} +0 -0
- /package/build/{constants-655575eb.js → constants-00a1aed9.js} +0 -0
- /package/build/{cookieHelper-afab3a2a.js → cookieHelper-23401e25.js} +0 -0
- /package/build/{dataTransform-d91898b6.js → dataTransform-281fcc15.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-ac821089.js → BMI_BOYS.percentile.monthly-ac784d9d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-e7c5d331.js → BMI_BOYS.percentile.weekly-8d245e3b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-ab929bd1.js → BMI_BOYS.percentile.yearly-e41db64a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-12574fe0.js → BMI_BOYS.zscore.monthly-78c133af.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-b4c12ba7.js → BMI_BOYS.zscore.weekly-89d3405d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-816b479f.js → BMI_BOYS.zscore.yearly-65f27dce.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-086694b8.js → BMI_GIRLS.percentile.monthly-9ab67064.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-d3bf0c8f.js → BMI_GIRLS.percentile.weekly-9c4f71c7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-ed1e1131.js → BMI_GIRLS.percentile.yearly-39a136c5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-75511331.js → BMI_GIRLS.zscore.monthly-f2644bfc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-73162770.js → BMI_GIRLS.zscore.weekly-9e12eb75.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-98afde16.js → BMI_GIRLS.zscore.yearly-f32ba632.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-5a172571.js → HEAD CIRCUM_BOYS.percentile.monthly-f4e75126.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-1c4ee2fa.js → HEAD CIRCUM_BOYS.percentile.weekly-c7a526dc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-6a397384.js → HEAD CIRCUM_BOYS.percentile.yearly-24eb7b34.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-6a7247eb.js → HEAD CIRCUM_BOYS.zscore.monthly-ed842a8e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-24033572.js → HEAD CIRCUM_BOYS.zscore.weekly-8342309b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-9401c6fd.js → HEAD CIRCUM_BOYS.zscore.yearly-da630818.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-24e2ff47.js → HEAD CIRCUM_GIRLS.percentile.monthly-1addec75.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-65ca2d01.js → HEAD CIRCUM_GIRLS.percentile.weekly-607523c1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-843df12b.js → HEAD CIRCUM_GIRLS.percentile.yearly-3769923a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-12b63acd.js → HEAD CIRCUM_GIRLS.zscore.monthly-3148baea.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-aa1c68d5.js → HEAD CIRCUM_GIRLS.zscore.weekly-de610bc1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-213cc084.js → HEAD CIRCUM_GIRLS.zscore.yearly-79d33980.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-32380fd3.js → HEIGHT_BOYS.percentile.monthly-b55b5604.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-541cca14.js → HEIGHT_BOYS.percentile.weekly-06652862.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-b7116466.js → HEIGHT_BOYS.percentile.yearly-8afdc080.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a61554a3.js → HEIGHT_BOYS.zscore.monthly-abd70d45.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-1b7a5ea6.js → HEIGHT_BOYS.zscore.weekly-e49d765f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d18c9b51.js → HEIGHT_BOYS.zscore.yearly-10052800.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-1d0727df.js → HEIGHT_GIRLS.percentile.monthly-a03b1102.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-591f92dd.js → HEIGHT_GIRLS.percentile.weekly-3fc54e34.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-304ff1b9.js → HEIGHT_GIRLS.percentile.yearly-aa8fcd06.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-d85d7865.js → HEIGHT_GIRLS.zscore.monthly-72e414ba.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e05d0a51.js → HEIGHT_GIRLS.zscore.weekly-a96360bf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-07fcdaa0.js → HEIGHT_GIRLS.zscore.yearly-c3acfe86.js} +0 -0
- /package/build/esm/{Onboarding-67bbb6b4.js → Onboarding-bdce44a2.js} +0 -0
- /package/build/esm/{Visible-556a6913.js → Visible-6abf9977.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-affc5486.js → WEIGHT_BOYS.percentile.monthly-11956cd1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-0b939fd3.js → WEIGHT_BOYS.percentile.weekly-4564ee40.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-f223db23.js → WEIGHT_BOYS.percentile.yearly-a5300252.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-53aaffc1.js → WEIGHT_BOYS.zscore.monthly-10a5cd7c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8c41b1f6.js → WEIGHT_BOYS.zscore.weekly-74d6578e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-8e178887.js → WEIGHT_BOYS.zscore.yearly-a64937f3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-1c3848ec.js → WEIGHT_GIRLS.percentile.monthly-e80cd318.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-5ff12481.js → WEIGHT_GIRLS.percentile.weekly-c5d342d0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-7bb93c90.js → WEIGHT_GIRLS.percentile.yearly-c41b22ef.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-944d9db7.js → WEIGHT_GIRLS.zscore.monthly-bb7dad10.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-cf21c917.js → WEIGHT_GIRLS.zscore.weekly-ff029bdf.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-a3bad8ba.js → WEIGHT_GIRLS.zscore.yearly-d4581080.js} +0 -0
- /package/build/esm/{constants-df5d1670.js → constants-edea5500.js} +0 -0
- /package/build/esm/{cookieHelper-8ff54d02.js → cookieHelper-a9802f54.js} +0 -0
- /package/build/esm/{dataTransform-2eb04963.js → dataTransform-6b0ced9f.js} +0 -0
- /package/build/esm/{index-daced1c3.js → index-41642062.js} +0 -0
- /package/build/esm/{index-baaafb28.js → index-6d14046f.js} +0 -0
- /package/build/esm/{isProduction-f5c96b47.js → isProduction-0a7ebad0.js} +0 -0
- /package/build/esm/{localizeNumberFormat-23ee7f45.js → localizeNumberFormat-50733c28.js} +0 -0
- /package/build/esm/{normalizeLink-8b5607fc.js → normalizeLink-c3752ebc.js} +0 -0
- /package/build/esm/{theme-5e7b10c4.js → theme-d7414209.js} +0 -0
- /package/build/esm/{translationsContext-afbcd08a.js → translationsContext-061c0ba1.js} +0 -0
- /package/build/esm/{tslib.es6-e5891de7.js → tslib.es6-a0b18256.js} +0 -0
- /package/build/esm/{types-74bfd5de.js → types-745a48c9.js} +0 -0
- /package/build/esm/{useIsInit-7cd12dbe.js → useIsInit-3d7a5b3a.js} +0 -0
- /package/build/esm/{useOutsideClick-f7715e31.js → useOutsideClick-62f5835e.js} +0 -0
- /package/build/esm/{useScrollbarSize-a94199ee.js → useScrollbarSize-506ba58e.js} +0 -0
- /package/build/esm/{useUniqueId-5b433e76.js → useUniqueId-d9994630.js} +0 -0
- /package/build/esm/{utils-7125e1e4.js → utils-1c866772.js} +0 -0
- /package/build/{index-7adf7ca0.js → index-8eb5334a.js} +0 -0
- /package/build/{index-e7a438ca.js → index-ec92811b.js} +0 -0
- /package/build/{isProduction-53bfc0ca.js → isProduction-1abb5cb6.js} +0 -0
- /package/build/{localizeNumberFormat-4e5d8e20.js → localizeNumberFormat-3d78ebcf.js} +0 -0
- /package/build/{normalizeLink-4ad75d55.js → normalizeLink-61b70627.js} +0 -0
- /package/build/{theme-6c7a193c.js → theme-b3862f47.js} +0 -0
- /package/build/{translationsContext-88404bec.js → translationsContext-5066d395.js} +0 -0
- /package/build/{tslib.es6-7ea40a63.js → tslib.es6-616b0cfc.js} +0 -0
- /package/build/{types-d5534dbb.js → types-cc597012.js} +0 -0
- /package/build/{useIsInit-326f6473.js → useIsInit-4d139725.js} +0 -0
- /package/build/{useOutsideClick-615765d9.js → useOutsideClick-887560ce.js} +0 -0
- /package/build/{useScrollbarSize-9538a8a5.js → useScrollbarSize-33d4c51c.js} +0 -0
- /package/build/{useUniqueId-e2b3cb6e.js → useUniqueId-23e1051c.js} +0 -0
- /package/build/{utils-0857c803.js → utils-4146be71.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-441a3ca5.js"),t=require("react"),r=require("./Onboarding-8fa66f70.js"),a=require("./theme-b3862f47.js"),l=require("./index-24973da9.js"),o=require("styled-components"),n=require("./index-d28c0696.js"),i=require("./index-67f527c9.js"),s=require("./index-8d979a94.js"),d=require("./screenSizeContext-8812943d.js"),c=require("dayjs"),u=require("./useTranslations-f7327db4.js");require("lodash/debounce"),require("./isProduction-1abb5cb6.js"),require("./index-a52bd134.js");var C=require("./localizeNumberFormat-3d78ebcf.js"),h=require("./index-8397b60a.js"),m=require("./utils-4146be71.js"),f=require("./index.styled-2ba3e44d.js");require("./gAssets.js"),require("@mantine/core"),require("./index.styled-56ac8b18.js"),require("./index-80f91a0c.js");var y=require("./index-ec92811b.js");require("./index.styles-81c47700.js"),require("./index-6067431a.js"),require("@mantine/hooks");var p=require("./useOutsideClick-887560ce.js"),b=require("./tslib.es6-616b0cfc.js"),w=require("./index-4988ead9.js"),g=require("recharts"),x=require("lodash/chunk");function E(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useUniqueId-23e1051c.js"),require("./index.styled-ef365648.js"),require("lodash/throttle"),require("./translationsContext-5066d395.js"),require("string-format"),require("@mantine/dates"),require("@mantine/carousel"),require("./index-1a40e4e7.js"),require("./useScrollbarSize-33d4c51c.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-dfe6e7c3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-36df2742.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-99b10b62.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-79617a87.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-1b6f693f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-adf272d4.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-1807730d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-4068bb5f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-9355e8fd.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-1ee91366.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-c4d28ab7.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-ef47e9b0.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-d75ab2c3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-77fa84e6.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-85f2bf2d.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-aabdd879.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-d4372e1b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-b34fc4e0.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-84586688.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-2a570cfe.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-4423e60d.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-18be12e0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-18c40663.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-7fe0ebc2.js")}))}}},$={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-c55976ea.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-e3f6b8b6.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-3fcf5d08.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-7442e053.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-b2fd3cf9.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-19d4cdaf.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-60de1a55.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-11746662.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-f2f08468.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-adcc394c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-b7179d6f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-f494e368.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-35c4e6de.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-9ec43435.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-266c28d0.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-849f7e0c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-f7e29bec.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-e7b2a47d.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-fc44778a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-327c4ec1.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-cca18f8d.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-033625ae.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-3067b3bc.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-6a8d7512.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-b86338df.js");require("./tslib.es6-616b0cfc.js"),require("./isProduction-1abb5cb6.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-9ce016a3.js"),r=require("./constants-00a1aed9.js");require("./tslib.es6-616b0cfc.js"),require("react"),require("./index-a52bd134.js"),require("./Onboarding-8fa66f70.js"),require("./isProduction-1abb5cb6.js"),require("./cookieHelper-23401e25.js"),require("./useTranslations-f7327db4.js"),require("./translationsContext-5066d395.js"),require("string-format"),require("lodash/debounce"),require("./index-1a40e4e7.js"),require("@mantine/core"),require("./index.styled-56ac8b18.js"),require("./utils-4146be71.js"),require("styled-components"),require("./index-24973da9.js"),require("./theme-b3862f47.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-887560ce.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare const StyledInput: import("styled-components").StyledComponent<"div", any, {
|
|
1
|
+
export declare const StyledInput: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
color?: string;
|
|
3
|
+
shadowColor?: string;
|
|
4
|
+
}, never>;
|
|
2
5
|
export declare const StyledInputLabel: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
3
6
|
export declare const StyledErrorLabel: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
4
7
|
export declare const StyledActionIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import { AnchorProps as MantineAnchorProps } from '@mantine/core';
|
|
3
|
-
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { AnchorProps as MantineAnchorProps, DefaultProps, Selectors } from '@mantine/core';
|
|
3
|
+
import { DataTrackingType } from 'src/interfaces/types';
|
|
4
|
+
import useStyles from './index.styles';
|
|
5
|
+
export interface AnchorProps extends DefaultProps<Selectors<typeof useStyles>, MantineAnchorProps>, HTMLAttributes<HTMLAnchorElement>, DataTrackingType {
|
|
6
|
+
href?: string;
|
|
4
7
|
color?: string;
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
rel?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const Anchor: ({ color, styles, className, ...rest }: AnchorProps) => JSX.Element;
|
|
7
11
|
export { Anchor };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface StylesParams {
|
|
2
|
+
color?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: (params: StylesParams, options?: import("@mantine/core").UseStylesOptions<"root">) => {
|
|
5
|
+
classes: Record<"root", string>;
|
|
6
|
+
cx: (...args: any) => string;
|
|
7
|
+
theme: import("@mantine/core").MantineTheme;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import { ButtonProps as MantineButtonProps } from '@mantine/core';
|
|
3
|
+
import { DataTrackingType } from 'src/interfaces/types';
|
|
3
4
|
export type ButtonProps = {
|
|
4
5
|
variant?: 'primary' | 'secondary' | 'tertiary' | 'light' | 'ghost' | 'error';
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
skipHover?: boolean;
|
|
7
|
+
} & Omit<MantineButtonProps, 'variant'> & ButtonHTMLAttributes<HTMLButtonElement> & DataTrackingType;
|
|
8
|
+
declare const Button: ({ variant, size, color, skipHover, styles, className, ...rest }: ButtonProps) => JSX.Element;
|
|
7
9
|
export { Button };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ButtonStyles {
|
|
2
|
+
color?: string;
|
|
3
|
+
size?: string;
|
|
4
|
+
variant?: string;
|
|
5
|
+
skipHover?: boolean;
|
|
6
|
+
isError?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: (params: ButtonStyles, options?: import("@mantine/core").UseStylesOptions<"rootCustom">) => {
|
|
9
|
+
classes: Record<"rootCustom", string>;
|
|
10
|
+
cx: (...args: any) => string;
|
|
11
|
+
theme: import("@mantine/core").MantineTheme;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import { TextProps as MantineTextProps } from '@mantine/core';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DefaultProps, Selectors, TextProps as MantineTextProps } from '@mantine/core';
|
|
3
|
+
import { DataTrackingType } from 'src/interfaces/types';
|
|
3
4
|
import { TextSize } from '../theme';
|
|
5
|
+
import useStyles from './index.styles';
|
|
4
6
|
export type TextProps = {
|
|
5
7
|
size: TextSize;
|
|
6
8
|
weight?: 'regular' | 'semiBold' | 'bold';
|
|
7
|
-
as?:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
declare const Text: ({ size, color, weight, as, ...rest }: TextProps) => JSX.Element;
|
|
9
|
+
as?: any;
|
|
10
|
+
} & Omit<MantineTextProps, 'size' | 'weight' | 'component'> & DefaultProps<Selectors<typeof useStyles>> & DataTrackingType;
|
|
11
|
+
declare const Text: ({ size, color, weight, as, styles, className, ...rest }: TextProps) => JSX.Element;
|
|
11
12
|
export { Text };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface StylesParams {
|
|
2
|
+
size?: string;
|
|
3
|
+
weight?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: (params: StylesParams, options?: import("@mantine/core").UseStylesOptions<"root">) => {
|
|
6
|
+
classes: Record<"root", string>;
|
|
7
|
+
cx: (...args: any) => string;
|
|
8
|
+
theme: import("@mantine/core").MantineTheme;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
export declare const StyledDropdown: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
-
|
|
1
|
+
export declare const StyledDropdown: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
color?: string;
|
|
3
|
+
shadowColor?: string;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const StyledDropdownName: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
color?: string;
|
|
7
|
+
shadowColor?: string;
|
|
8
|
+
}, never>;
|
|
3
9
|
export declare const StyledDropdownList: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
4
10
|
export declare const StyledDropdownOption: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
5
11
|
export declare const StyledIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { DefaultProps, Selectors } from '@mantine/core';
|
|
3
|
+
import { TextSize } from 'components/atoms/text';
|
|
4
|
+
import { TextProps } from 'src/components/mantine';
|
|
5
|
+
import { DataTrackingType } from 'src/interfaces/types';
|
|
3
6
|
import { CSSProperties } from 'styled-components';
|
|
7
|
+
import useStyles from './index.styles';
|
|
4
8
|
type TabContent = {
|
|
5
9
|
name: string;
|
|
6
10
|
icon?: JSX.Element;
|
|
7
|
-
|
|
8
|
-
dataEventAction?: string;
|
|
9
|
-
dataEventLabel?: string;
|
|
10
|
-
textType?: TextType;
|
|
11
|
+
textType?: TextProps['weight'];
|
|
11
12
|
textSize?: TextSize;
|
|
12
13
|
textColor?: string;
|
|
13
14
|
dataTestid?: string;
|
|
14
|
-
};
|
|
15
|
-
export
|
|
15
|
+
} & DataTrackingType;
|
|
16
|
+
export interface Props extends DefaultProps<Selectors<typeof useStyles>> {
|
|
16
17
|
tabContent: Array<TabContent>;
|
|
17
18
|
onChange?: (n: number) => void;
|
|
18
|
-
className?: string;
|
|
19
19
|
initialTab?: number;
|
|
20
20
|
style?: CSSProperties;
|
|
21
|
-
dataEventCategory?: string;
|
|
22
|
-
dataEventAction?: string;
|
|
23
|
-
dataEventLabel?: string;
|
|
24
21
|
id?: string;
|
|
25
|
-
}
|
|
26
|
-
declare const Tabs: ({ style, initialTab, tabContent, onChange, className, dataEventCategory, dataEventAction, dataEventLabel, id, }: Props) => JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
declare const Tabs: ({ style, initialTab, tabContent, onChange, className, dataEventCategory, dataEventAction, dataEventLabel, id, styles, }: Props & DataTrackingType) => JSX.Element;
|
|
27
24
|
export { Tabs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<"root" | "item" | "itemInner" | "
|
|
2
|
-
classes: Record<"root" | "item" | "itemInner" | "
|
|
1
|
+
declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<"root" | "item" | "itemInner" | "label" | "icon">) => {
|
|
2
|
+
classes: Record<"root" | "item" | "itemInner" | "label" | "icon", string>;
|
|
3
3
|
cx: (...args: any) => string;
|
|
4
4
|
theme: import("@mantine/core").MantineTheme;
|
|
5
5
|
};
|
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-3d7ba3ec.js"),r=require("./index-512b74a8.js"),o=require("./index-d28c0696.js"),t=require("./index-dbb2c16a.js"),i=require("./index-8397b60a.js"),a=require("./index-1a40e4e7.js"),s=require("./index.styled-56ac8b18.js"),d=require("./index-276b4c69.js"),n=require("./index.styled-2ba3e44d.js"),u=require("./index.styled-5320f380.js"),x=require("./index-24973da9.js"),p=require("./index-80f91a0c.js"),c=require("./index-67f527c9.js"),l=require("./index-441a3ca5.js"),q=require("./index-4988ead9.js"),b=require("./index-ec92811b.js"),g=require("./dataTransform-22d9e869.js"),C=require("./index-ea21b2e4.js"),j=require("./footer.js");require("react"),require("./utils-4146be71.js"),require("./useUniqueId-23e1051c.js"),require("./gAssets.js"),require("./index-a52bd134.js"),require("./Onboarding-8fa66f70.js"),require("./isProduction-1abb5cb6.js"),require("./theme-b3862f47.js"),require("./tslib.es6-616b0cfc.js"),require("lodash/throttle"),require("keen-slider/react"),require("dayjs"),require("./screenSizeContext-8812943d.js"),require("styled-components"),require("./useTranslations-f7327db4.js"),require("./translationsContext-5066d395.js"),require("string-format"),require("date-fns"),require("@mantine/core"),require("./index.styled-ef365648.js"),require("./index.styles-81c47700.js"),require("@mantine/dates"),require("@mantine/hooks"),require("@mantine/carousel"),require("./index-6067431a.js"),require("./types-cc597012.js"),require("./index.styled-d34f26c1.js"),require("./cookieHelper-23401e25.js"),require("slugify"),require("./routing-c6c38d78.js"),require("dayjs/plugin/relativeTime"),require("./index-8d979a94.js"),require("./index-0f12a433.js"),require("react-hook-form"),require("./useHealthToolCache-35c820b7.js"),require("./getDynamicHealthTool-d4e72e1c.js"),require("./core-b86338df.js"),require("./normalizeLink-61b70627.js"),require("./useOutsideClick-887560ce.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-35c38f80.js"),require("./getSocialList-e1710f93.js"),require("./constants-00a1aed9.js"),require("./useIsInit-4d139725.js"),require("lodash/debounce"),require("./index-5c248e37.js"),require("./index-658fcbbc.js"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-33d4c51c.js"),require("react-dom"),require("./index.styled-2793901f.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-8fa66f70.js");var e=require("./index-a52bd134.js"),O=require("./isProduction-1abb5cb6.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-616b0cfc.js"),e=require("./isProduction-1abb5cb6.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-b7cd5f1e.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-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;
|