@hhgtech/hhg-components 1.24.19 → 1.24.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/mantine/index.d.ts +4 -1
- package/build/components/mantine/text/index.d.ts +11 -0
- package/build/components/mantine/text/index.styled.d.ts +9 -0
- package/build/components/mantine/theme/heading.d.ts +9 -0
- package/build/components/mantine/theme/index.d.ts +1 -0
- package/build/components/mantine/theme/other.d.ts +7 -0
- package/build/components/mantine/theme/text.d.ts +63 -0
- package/build/components/mantine/useMantineLocale.d.ts +3 -1
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-f52ebeaa.js → core-1ddff0e2.js} +1 -1
- package/build/{dataTransform-8acb1cae.js → dataTransform-f19c1617.js} +1 -1
- package/build/esm/babyGrowth.js +8 -8
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-55659962.js → core-01abe7a1.js} +1 -1
- package/build/esm/{dataTransform-7c7cd603.js → dataTransform-b6ffa89e.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-0aab98fc.js +1 -0
- package/build/esm/{getSocialList-b4b810ea.js → getSocialList-03e2a2b1.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-bed3247d.js → index-10233643.js} +1 -1
- package/build/esm/index-1a820ef8.js +1 -0
- package/build/esm/{index-d24056ce.js → index-28b8dab6.js} +1 -1
- package/build/esm/{index-054ee498.js → index-43d2bffe.js} +1 -1
- package/build/esm/{index-e4836320.js → index-4b19571c.js} +1 -1
- package/build/esm/index-505a781d.js +1 -0
- package/build/esm/{index-8ac32fa0.js → index-65b95e24.js} +1 -1
- package/build/esm/{index-db2e1d7b.js → index-6b049c9f.js} +1 -1
- package/build/esm/{index-eb79e0cf.js → index-6d8a955b.js} +1 -1
- package/build/esm/index-6f78a19c.js +1 -0
- package/build/esm/{index-3f781614.js → index-879836ec.js} +1 -1
- package/build/esm/{index-bff98440.js → index-881e5990.js} +1 -1
- package/build/esm/index-8eec058f.js +1 -0
- package/build/esm/index-8f7ffa4b.js +1 -0
- package/build/esm/index-c2de5d7b.js +1 -0
- package/build/esm/{index-f1e8b189.js → index-c9290e7f.js} +1 -1
- package/build/esm/{index-7a57bc59.js → index-e1e88ca8.js} +1 -1
- package/build/esm/index-e2b7ef68.js +1 -0
- package/build/esm/{index-e5b9bc02.js → index-f3de7ff9.js} +11 -11
- package/build/esm/{index-693aacdc.js → index-f49aeb82.js} +1 -1
- package/build/esm/index-fcef2054.js +78 -0
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-75b0ceaa.js → index.styled-243d7f64.js} +1 -1
- package/build/esm/{index.styled-e6d05e31.js → index.styled-38864315.js} +1 -1
- package/build/esm/{index.styled-8f59035f.js → index.styled-839052ac.js} +1 -1
- package/build/esm/{index.styled-77b271f5.js → index.styled-89252990.js} +1 -1
- package/build/esm/{index.styled-70d2421e.js → index.styled-8aca10eb.js} +4 -4
- package/build/esm/{index.styled-53842855.js → index.styled-981e6c04.js} +1 -1
- package/build/esm/{index.styled-1c09bfcc.js → index.styled-c3d5eff6.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/pwg.js +2 -2
- package/build/esm/{routing-065ec7dc.js → routing-6d3d5706.js} +1 -1
- package/build/esm/{screenSizeContext-88744824.js → screenSizeContext-796cb6e5.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-ccaaba93.js → translationsProvider-8152b937.js} +1 -1
- package/build/esm/{types-e1294419.js → types-31c78444.js} +37 -37
- package/build/esm/{types-8f9ba152.js → types-e46ef606.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-3488ead9.js +1 -0
- package/build/esm/useRafState-1e0d71f3.js +1 -0
- package/build/esm/useTranslations-86f7e107.js +1 -0
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-407de63f.js +1 -0
- package/build/{getSocialList-f3816706.js → getSocialList-5d162a85.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-25fc984e.js → index-03b58356.js} +1 -1
- package/build/{index-4fdb1fcf.js → index-085adf8a.js} +1 -1
- package/build/{index-dfe405f8.js → index-178a694b.js} +1 -1
- package/build/{index-d0f252ba.js → index-19064ad7.js} +1 -1
- package/build/{index-378e1adb.js → index-1ecd880c.js} +1 -1
- package/build/{index-35c8dfd4.js → index-4d6932de.js} +1 -1
- package/build/{index-05535f0e.js → index-50f5a6cd.js} +1 -1
- package/build/index-5afdfa27.js +1 -0
- package/build/index-62cac9a6.js +1 -0
- package/build/{index-51753982.js → index-6419e3dc.js} +1 -1
- package/build/{index-58100bad.js → index-702d2f27.js} +1 -1
- package/build/index-727332bb.js +73 -0
- package/build/{index-3d81f9cc.js → index-857fa6cb.js} +1 -1
- package/build/{index-e37557dd.js → index-8fddd03f.js} +1 -1
- package/build/{index-b29f0100.js → index-92ea35de.js} +1 -1
- package/build/{index-90e9e28b.js → index-980141e9.js} +1 -1
- package/build/{index-ebf2f582.js → index-aca89b3b.js} +1 -1
- package/build/{index-cf883358.js → index-aeea420e.js} +1 -1
- package/build/index-c2ef36dd.js +1 -0
- package/build/{index-2814d9cc.js → index-fb65c87a.js} +1 -1
- package/build/{index-59408b77.js → index-fc40c9d0.js} +1 -1
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-637e5ec7.js → index.styled-1f82603f.js} +5 -5
- package/build/{index.styled-1a66009b.js → index.styled-38bd8957.js} +1 -1
- package/build/{index.styled-a51da094.js → index.styled-431f1caa.js} +1 -1
- package/build/{index.styled-5bb1a1f5.js → index.styled-66045dd3.js} +1 -1
- package/build/{index.styled-bf998dad.js → index.styled-77b969ab.js} +1 -1
- package/build/{index.styled-f315a185.js → index.styled-8fe3cbb8.js} +1 -1
- package/build/{index.styled-bd5b6a11.js → index.styled-da26abe1.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +3 -3
- package/build/{routing-7dbf8fef.js → routing-c02011e8.js} +1 -1
- package/build/screenSizeContext-4f7042b6.js +81 -0
- package/build/together.js +1 -1
- package/build/{translationsProvider-354e346a.js → translationsProvider-d0f24f1c.js} +1 -1
- package/build/{types-56115ec7.js → types-5df2a81a.js} +1 -1
- package/build/{types-cd37f582.js → types-d10baf2e.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-3f4dc66a.js +1 -0
- package/build/{useRafState-31591b58.js → useRafState-9cd628f0.js} +1 -1
- package/build/{useTranslations-2adbbe41.js → useTranslations-7bb84bd7.js} +1 -1
- package/package.json +1 -1
- package/build/esm/getDynamicHealthTool-f24e91d5.js +0 -1
- package/build/esm/index-04aac021.js +0 -1
- package/build/esm/index-1212f61e.js +0 -1
- package/build/esm/index-30dfa58f.js +0 -1
- package/build/esm/index-44a439da.js +0 -1
- package/build/esm/index-45ac44f1.js +0 -67
- package/build/esm/index-dd6e5684.js +0 -1
- package/build/esm/index-eb7126f6.js +0 -1
- package/build/esm/index-f5718bdd.js +0 -1
- package/build/esm/useHealthToolCache-a6576ccb.js +0 -1
- package/build/esm/useRafState-e6b465bb.js +0 -1
- package/build/esm/useTranslations-860db584.js +0 -1
- package/build/getDynamicHealthTool-4e1a845a.js +0 -1
- package/build/index-0bd8af32.js +0 -62
- package/build/index-879dd367.js +0 -1
- package/build/index-b3544b7d.js +0 -1
- package/build/index-b4a2c2fe.js +0 -1
- package/build/screenSizeContext-b1062be4.js +0 -81
- package/build/useHealthToolCache-e7470f87.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-2ff92556.js → BMI_BOYS.percentile.monthly-9061bffa.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-4bdaa6f2.js → BMI_BOYS.percentile.weekly-6963805b.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-961c9f82.js → BMI_BOYS.percentile.yearly-479e90a6.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-bf59e9f5.js → BMI_BOYS.zscore.monthly-1174fe4a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-7f264766.js → BMI_BOYS.zscore.weekly-fca159e9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-31d3ec67.js → BMI_BOYS.zscore.yearly-c7cbffa6.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-d88b9683.js → BMI_GIRLS.percentile.monthly-925f454e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-60f02b5b.js → BMI_GIRLS.percentile.weekly-3ee3b6cb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-7a944b49.js → BMI_GIRLS.percentile.yearly-a8a64247.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-532639fd.js → BMI_GIRLS.zscore.monthly-818e735c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-2c5d69e6.js → BMI_GIRLS.zscore.weekly-f69dc139.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-9d753f49.js → BMI_GIRLS.zscore.yearly-01c99405.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b6ce559f.js → HEAD CIRCUM_BOYS.percentile.monthly-c23614a4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-ab7409cd.js → HEAD CIRCUM_BOYS.percentile.weekly-a84f9182.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7a6703de.js → HEAD CIRCUM_BOYS.percentile.yearly-b1784f74.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-d702a50e.js → HEAD CIRCUM_BOYS.zscore.monthly-6fa109d5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-ca166fc4.js → HEAD CIRCUM_BOYS.zscore.weekly-0f128294.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-58c4e982.js → HEAD CIRCUM_BOYS.zscore.yearly-b0ae2aa5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-15e0eca2.js → HEAD CIRCUM_GIRLS.percentile.monthly-d8a849f5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-54bd6dc4.js → HEAD CIRCUM_GIRLS.percentile.weekly-e585c948.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-d564c43d.js → HEAD CIRCUM_GIRLS.percentile.yearly-f312b25f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-6cf92cb3.js → HEAD CIRCUM_GIRLS.zscore.monthly-a79f2c22.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-87ced1d3.js → HEAD CIRCUM_GIRLS.zscore.weekly-3905832d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0bc87993.js → HEAD CIRCUM_GIRLS.zscore.yearly-76817288.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-54a784db.js → HEIGHT_BOYS.percentile.monthly-058b22b8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-ce47d1ad.js → HEIGHT_BOYS.percentile.weekly-225abac0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-6813c238.js → HEIGHT_BOYS.percentile.yearly-c8f6fbc5.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-16af81ce.js → HEIGHT_BOYS.zscore.monthly-f2d62779.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-1476fa2c.js → HEIGHT_BOYS.zscore.weekly-2132aa31.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-8e93eb69.js → HEIGHT_BOYS.zscore.yearly-7bd73d3a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-a6a27fa2.js → HEIGHT_GIRLS.percentile.monthly-524307c0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-23d26ea5.js → HEIGHT_GIRLS.percentile.weekly-f323e7e3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-ecf66504.js → HEIGHT_GIRLS.percentile.yearly-1f2f77ee.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-9a2cd13b.js → HEIGHT_GIRLS.zscore.monthly-a58cd90f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-53e5495f.js → HEIGHT_GIRLS.zscore.weekly-24d8a6ac.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-46db6361.js → HEIGHT_GIRLS.zscore.yearly-d233bce8.js} +0 -0
- /package/build/{Locale-9a58ef93.js → Locale-a4f9d8f6.js} +0 -0
- /package/build/{Vietnam-e8b1dd8b.js → Vietnam-48e12311.js} +0 -0
- /package/build/{Visible-3a7847ca.js → Visible-f3415620.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-845b9c24.js → WEIGHT_BOYS.percentile.monthly-111c4d25.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-938e8254.js → WEIGHT_BOYS.percentile.weekly-478bf0e4.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-76a5f36c.js → WEIGHT_BOYS.percentile.yearly-a35cc113.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-bd78f3f3.js → WEIGHT_BOYS.zscore.monthly-33586e3f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-d2503217.js → WEIGHT_BOYS.zscore.weekly-0299912e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-066d0ab4.js → WEIGHT_BOYS.zscore.yearly-0e683e93.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-4ab70bd3.js → WEIGHT_GIRLS.percentile.monthly-ab188feb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-d751466f.js → WEIGHT_GIRLS.percentile.weekly-876c7d98.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-42ee7012.js → WEIGHT_GIRLS.percentile.yearly-49975396.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-ddf72f77.js → WEIGHT_GIRLS.zscore.monthly-1370faec.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-c2e0dc42.js → WEIGHT_GIRLS.zscore.weekly-01f8c266.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-b590d7d4.js → WEIGHT_GIRLS.zscore.yearly-f65a2231.js} +0 -0
- /package/build/{constants-540014d8.js → constants-81475620.js} +0 -0
- /package/build/{cookieHelper-f3717d04.js → cookieHelper-c871b460.js} +0 -0
- /package/build/{dataTransform-8d4b941a.js → dataTransform-68517294.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-02c0174e.js → BMI_BOYS.percentile.monthly-4223c4eb.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-fe988069.js → BMI_BOYS.percentile.weekly-c9f3efaa.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-14f63c53.js → BMI_BOYS.percentile.yearly-f0b4b014.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-aa3ff2b8.js → BMI_BOYS.zscore.monthly-e16193f5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-269962d9.js → BMI_BOYS.zscore.weekly-d2b2b292.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8318afa5.js → BMI_BOYS.zscore.yearly-817ec82e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-98db0e41.js → BMI_GIRLS.percentile.monthly-494bc828.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-7dbdd5e4.js → BMI_GIRLS.percentile.weekly-042426ae.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-0023eb12.js → BMI_GIRLS.percentile.yearly-247c7391.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-5b6640cb.js → BMI_GIRLS.zscore.monthly-371459b5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-6e0ab037.js → BMI_GIRLS.zscore.weekly-ecf23bd6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-232db6da.js → BMI_GIRLS.zscore.yearly-8020be10.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-96410a5e.js → HEAD CIRCUM_BOYS.percentile.monthly-854959a5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-27d9ac78.js → HEAD CIRCUM_BOYS.percentile.weekly-c39075dc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c1a53267.js → HEAD CIRCUM_BOYS.percentile.yearly-e387af13.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-7787fb4e.js → HEAD CIRCUM_BOYS.zscore.monthly-b7a84ef5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-5d08056c.js → HEAD CIRCUM_BOYS.zscore.weekly-b9a6fd79.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-75acbe34.js → HEAD CIRCUM_BOYS.zscore.yearly-28d7fb71.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1702b14d.js → HEAD CIRCUM_GIRLS.percentile.monthly-cebb3bd4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-450eb76b.js → HEAD CIRCUM_GIRLS.percentile.weekly-e30f8aee.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-386506ef.js → HEAD CIRCUM_GIRLS.percentile.yearly-a517c188.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-11f285ca.js → HEAD CIRCUM_GIRLS.zscore.monthly-6ec149f3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-9d5065f8.js → HEAD CIRCUM_GIRLS.zscore.weekly-e7a5b23f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-23d5bbeb.js → HEAD CIRCUM_GIRLS.zscore.yearly-2935ab55.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-2b99262e.js → HEIGHT_BOYS.percentile.monthly-f69e7c07.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-d9f156be.js → HEIGHT_BOYS.percentile.weekly-9a4b487d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-094e8482.js → HEIGHT_BOYS.percentile.yearly-cb58cecc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-27d449eb.js → HEIGHT_BOYS.zscore.monthly-5f7e0a28.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-d3826e91.js → HEIGHT_BOYS.zscore.weekly-3c7bd88b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-11ae82a4.js → HEIGHT_BOYS.zscore.yearly-66c2098e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-42522b7a.js → HEIGHT_GIRLS.percentile.monthly-484e0602.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-996a0b65.js → HEIGHT_GIRLS.percentile.weekly-3c492d07.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-74e99347.js → HEIGHT_GIRLS.percentile.yearly-8ce15a6f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-0305fe44.js → HEIGHT_GIRLS.zscore.monthly-204b1e6d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f269d20b.js → HEIGHT_GIRLS.zscore.weekly-ccb615d2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c985ffc1.js → HEIGHT_GIRLS.zscore.yearly-9479f3c0.js} +0 -0
- /package/build/esm/{Locale-c8320005.js → Locale-2a1e1450.js} +0 -0
- /package/build/esm/{Vietnam-3b9acb67.js → Vietnam-dc72e656.js} +0 -0
- /package/build/esm/{Visible-5d9b1ecd.js → Visible-18cf87ba.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-2fcf89dd.js → WEIGHT_BOYS.percentile.monthly-8dd91b1d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ec8ac244.js → WEIGHT_BOYS.percentile.weekly-3a959642.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-a543aa14.js → WEIGHT_BOYS.percentile.yearly-cc8eb0ef.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-5fa13f3f.js → WEIGHT_BOYS.zscore.monthly-2e131dd1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1f075b0e.js → WEIGHT_BOYS.zscore.weekly-cabcd1af.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-20bfba23.js → WEIGHT_BOYS.zscore.yearly-f1f7e94e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-231f6f63.js → WEIGHT_GIRLS.percentile.monthly-4de3f67c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-71540ce9.js → WEIGHT_GIRLS.percentile.weekly-2ed25b2a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-37ff25bb.js → WEIGHT_GIRLS.percentile.yearly-f0f76a88.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-7d7d8957.js → WEIGHT_GIRLS.zscore.monthly-b841255d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f1e586cb.js → WEIGHT_GIRLS.zscore.weekly-d6eb177b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-ca5d172b.js → WEIGHT_GIRLS.zscore.yearly-58a53745.js} +0 -0
- /package/build/esm/{constants-170605f8.js → constants-fb47e65c.js} +0 -0
- /package/build/esm/{cookieHelper-46eca077.js → cookieHelper-b88c2be8.js} +0 -0
- /package/build/esm/{dataTransform-81026524.js → dataTransform-75f1271b.js} +0 -0
- /package/build/esm/{index-9f83d332.js → index-77a5c7ce.js} +0 -0
- /package/build/esm/{isProduction-35cc6094.js → isProduction-e00482ad.js} +0 -0
- /package/build/esm/{localizeNumberFormat-14832370.js → localizeNumberFormat-65181040.js} +0 -0
- /package/build/esm/{normalizeLink-22f231d9.js → normalizeLink-1d2dc701.js} +0 -0
- /package/build/esm/{theme-35a76b33.js → theme-6dca57c7.js} +0 -0
- /package/build/esm/{translationsContext-7730f46a.js → translationsContext-d4d12e4a.js} +0 -0
- /package/build/esm/{tslib.es6-cb3ea48c.js → tslib.es6-f1b9d31e.js} +0 -0
- /package/build/esm/{useIsInit-17c423cc.js → useIsInit-e900b10b.js} +0 -0
- /package/build/esm/{useOutsideClick-b3adcf0b.js → useOutsideClick-305b5046.js} +0 -0
- /package/build/esm/{useScrollbarSize-e8a276bb.js → useScrollbarSize-057c4f10.js} +0 -0
- /package/build/esm/{useUniqueId-2654c98c.js → useUniqueId-679a497e.js} +0 -0
- /package/build/esm/{utils-1fa73d05.js → utils-049d75fa.js} +0 -0
- /package/build/{index-7c1cf961.js → index-444eee4a.js} +0 -0
- /package/build/{isProduction-25e05d32.js → isProduction-2a4d042f.js} +0 -0
- /package/build/{localizeNumberFormat-3d2fd8b9.js → localizeNumberFormat-3d8dd0e3.js} +0 -0
- /package/build/{normalizeLink-293919db.js → normalizeLink-f5ed8bd7.js} +0 -0
- /package/build/{theme-f8d912d5.js → theme-c812af69.js} +0 -0
- /package/build/{translationsContext-f782ff56.js → translationsContext-0e066585.js} +0 -0
- /package/build/{tslib.es6-7da5763e.js → tslib.es6-09b9cf36.js} +0 -0
- /package/build/{useIsInit-cc0a07fc.js → useIsInit-b290676c.js} +0 -0
- /package/build/{useOutsideClick-9fc45503.js → useOutsideClick-e4b4783f.js} +0 -0
- /package/build/{useScrollbarSize-70be7d32.js → useScrollbarSize-220a2ce3.js} +0 -0
- /package/build/{useUniqueId-71515148.js → useUniqueId-f2e50bd6.js} +0 -0
- /package/build/{utils-2fe5fc5c.js → utils-daf19904.js} +0 -0
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as e,D as t,M as r}from"./index-
|
|
1
|
+
import{I as e,D as t,M as r}from"./index-28b8dab6.js";export{B as BabyGrowthGender}from"./index-28b8dab6.js";import l,{useMemo as o,useRef as a,useState as i,useEffect as n}from"react";import{L as c,G as s,B as d,a as C}from"./Locale-2a1e1450.js";import{t as m}from"./theme-6dca57c7.js";import{T as p}from"./index-6b049c9f.js";import h from"styled-components";import{B as y}from"./index-10233643.js";import{M as g}from"./index-c2de5d7b.js";import{h as u}from"./screenSizeContext-796cb6e5.js";import f from"dayjs";import{u as b}from"./useTranslations-86f7e107.js";import{M as E,H as w}from"./index.styled-38864315.js";import{s as x}from"./utils-049d75fa.js";import"./gAssets.js";import"./index.styled-839052ac.js";import"./index-e1e88ca8.js";import"@mantine/core";import{C as v}from"./index-77a5c7ce.js";import{a as L}from"./useOutsideClick-305b5046.js";import"lodash/debounce";import"./isProduction-e00482ad.js";import"./index-c9290e7f.js";import{a as M,l as k}from"./localizeNumberFormat-65181040.js";import{_ as H,a as I}from"./tslib.es6-f1b9d31e.js";import{N as j}from"./index-8eec058f.js";import{ResponsiveContainer as S,LineChart as G,CartesianGrid as R,Tooltip as z,XAxis as Z,YAxis as _,Line as V,ReferenceDot as N}from"recharts";import T from"lodash/chunk";import"./useScrollbarSize-057c4f10.js";import"react-dom";import"./useUniqueId-679a497e.js";import"./index.styled-c3d5eff6.js";import"lodash/throttle";import"./translationsContext-d4d12e4a.js";import"string-format";import"./index-4b19571c.js";const A=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -12,7 +12,7 @@ import{I as e,D as t,M as r}from"./index-d24056ce.js";export{B as BabyGrowthGend
|
|
|
12
12
|
height: 8px;
|
|
13
13
|
border-radius: 50%;
|
|
14
14
|
}
|
|
15
|
-
`,Y=({legends:e,locale:t})=>l.createElement(A,null,e.map(((e,r)=>l.createElement(W,{key:r},l.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),l.createElement(p,{size:"n1",color:m.colors.gray800},t===
|
|
15
|
+
`,Y=({legends:e,locale:t})=>l.createElement(A,null,e.map(((e,r)=>l.createElement(W,{key:r},l.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),l.createElement(p,{size:"n1",color:m.colors.gray800},t===c.Indonesia?e["z-score"]:e.text))))),D=h.div`
|
|
16
16
|
display: flex;
|
|
17
17
|
justify-content: center;
|
|
18
18
|
.switch {
|
|
@@ -57,7 +57,7 @@ import{I as e,D as t,M as r}from"./index-d24056ce.js";export{B as BabyGrowthGend
|
|
|
57
57
|
.tooltip {
|
|
58
58
|
text-align: left;
|
|
59
59
|
}
|
|
60
|
-
`,P=[{name:["3rd","-3SD","97th","3SD"],color:m.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:m.colors.yellow600},{name:["50th","0Median"],color:m.colors.green600}],U={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},K=e=>{var t;const{payload:r,locale:a,active:i}=e,n=null===(t=null==r?void 0:r[0])||void 0===t?void 0:t.payload;if(!(n&&n.history&&n.name&&n.risk&&n.toolTipLabel&&i))return null;const
|
|
60
|
+
`,P=[{name:["3rd","-3SD","97th","3SD"],color:m.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:m.colors.yellow600},{name:["50th","0Median"],color:m.colors.green600}],U={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},K=e=>{var t;const{payload:r,locale:a,active:i}=e,n=null===(t=null==r?void 0:r[0])||void 0===t?void 0:t.payload;if(!(n&&n.history&&n.name&&n.risk&&n.toolTipLabel&&i))return null;const s=o((()=>{var e;return null===(e=P.find((e=>e.name.includes(n.risk||""))))||void 0===e?void 0:e.color}),[n.risk]),d=o((()=>a===c.Indonesia?n.risk?U[n.risk]:"":n.risk),[a,n.risk]);return l.createElement($,null,l.createElement("div",{className:"risk",style:{backgroundColor:s}},l.createElement(p,{size:"s3",color:m.colors.white,type:"semiBold"},d)),l.createElement("div",{className:"tooltip"},(n.toolTipLabel||[]).map(((e,t)=>l.createElement(p,{key:t,size:"n1",color:m.colors.gray600},e)))))},q="300ms",J=h.div`
|
|
61
61
|
background: ${m.colors.gray50};
|
|
62
62
|
border-radius: ${e=>e.theme.borderRadius};
|
|
63
63
|
padding: 16px 20px;
|
|
@@ -193,7 +193,7 @@ import{I as e,D as t,M as r}from"./index-d24056ce.js";export{B as BabyGrowthGend
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
`,re=({name:e,onClose:t,onEdit:r,onSwitch:o,onAdd:i,onRemove:n,siteType:s})=>{const{t:c}=b(),d="marryBaby"===s,C=a();return L(C,t),l.createElement("div",{ref:C},d?l.createElement(te,{width:250,"data-site":s},l.createElement(E.Item,{onClick:r,icon:l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.1512 4.29354C13.7553 3.68946 14.5746 3.3501 15.4289 3.3501C17.2078 3.3501 18.65 4.79223 18.65 6.5712C18.65 7.42549 18.3106 8.24479 17.7065 8.84886L16.9689 9.58652C16.9626 9.59307 16.9562 9.5995 16.9496 9.6058L13.7897 12.7657C12.0036 14.5518 9.76564 15.8189 7.31513 16.4315L6.55809 16.6208C5.84616 16.7988 5.20129 16.1539 5.37927 15.442L5.56853 14.6849C6.18116 12.2344 7.44827 9.99647 9.23437 8.21036L12.3943 5.0504C12.4006 5.04388 12.407 5.0375 12.4135 5.03127L13.1512 4.29354ZM12.2667 7.01649L10.1536 9.1296C8.53411 10.7491 7.3852 12.7783 6.82972 15.0002L6.77301 15.227L6.99983 15.1703C9.22177 14.6149 11.251 13.4659 12.8705 11.8464L14.9836 9.73334C14.3478 9.52953 13.7639 9.13743 13.3133 8.68678C12.8626 8.23613 12.4705 7.65226 12.2667 7.01649ZM16.1622 8.55469C15.5984 8.66895 14.8552 8.39025 14.2325 7.76754C13.6098 7.14483 13.3311 6.40165 13.4454 5.83784L14.0704 5.21278C14.4307 4.8525 14.9193 4.6501 15.4289 4.6501C16.4899 4.6501 17.35 5.5102 17.35 6.5712C17.35 7.08071 17.1476 7.56935 16.7873 7.92962L16.1622 8.55469Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.34998 20.0001C4.34998 19.6411 4.64099 19.3501 4.99998 19.3501H19C19.359 19.3501 19.65 19.6411 19.65 20.0001C19.65 20.3591 19.359 20.6501 19 20.6501H4.99998C4.64099 20.6501 4.34998 20.3591 4.34998 20.0001Z",fill:"#3E3F58"}))},l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},c("childCard.menu.edit",{name:e}))),l.createElement(E.Item,{onClick:o,icon:l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5951 4.50716C12.8673 4.19494 13.3411 4.16249 13.6533 4.43468L19.4929 9.52559C19.7286 9.73108 19.812 10.0613 19.7023 10.3541C19.5926 10.6469 19.3127 10.8409 19 10.8409H5C4.58579 10.8409 4.25 10.5051 4.25 10.0909C4.25 9.67671 4.58579 9.34092 5 9.34092H16.9984L12.6676 5.56534C12.3554 5.29315 12.3229 4.81938 12.5951 4.50716Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4049 19.4928C11.1327 19.8051 10.6589 19.8375 10.3467 19.5653L4.50715 14.4744C4.27144 14.2689 4.18796 13.9387 4.29768 13.6459C4.40741 13.3531 4.68729 13.1591 5 13.1591L19 13.1591C19.4142 13.1591 19.75 13.4949 19.75 13.9091C19.75 14.3233 19.4142 14.6591 19 14.6591L7.00161 14.6591L11.3324 18.4347C11.6446 18.7069 11.6771 19.1806 11.4049 19.4928Z",fill:"#3E3F58"}))},l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},c("childCard.menu.switch"))),l.createElement(E.Item,{onClick:i,icon:l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M11.8123 22.1251C8.24982 22.1251 5.15607 19.837 4.10577 16.4444C4.01202 16.1441 4.18048 15.8248 4.48077 15.731C4.78107 15.6373 5.1004 15.8057 5.19415 16.106C6.09357 19.0313 8.75665 20.981 11.8123 20.981C14.868 20.981 17.5311 19.0123 18.4305 16.106C18.5242 15.8057 18.8436 15.6373 19.1439 15.731C19.4442 15.8248 19.6126 16.1441 19.5189 16.4444C18.4686 19.837 15.3748 22.1251 11.8123 22.1251Z",fill:"#3E3F58"}),l.createElement("path",{d:"M4.3125 16.875C2.75684 16.875 1.5 15.6182 1.5 14.0625C1.5 12.5244 2.73779 11.2881 4.25684 11.25C4.96875 9.33691 6.41309 7.72559 8.26904 6.82471C8.55029 6.69434 8.88721 6.80566 9.01904 7.08691C9.14941 7.36816 9.03809 7.70654 8.75684 7.83691C7.05029 8.66309 5.73779 10.1997 5.19434 12C5.11816 12.2622 4.85596 12.4307 4.57471 12.394C4.46191 12.375 4.38721 12.375 4.3125 12.375C3.375 12.375 2.625 13.125 2.625 14.0625C2.625 15 3.375 15.75 4.3125 15.75C4.38721 15.75 4.46191 15.75 4.55566 15.731C4.85596 15.6943 5.15625 15.8994 5.19434 16.1997C5.23096 16.5 5.02441 16.8003 4.72559 16.8369C4.57471 16.856 4.44434 16.875 4.3125 16.875ZM19.3125 16.875C19.1807 16.875 19.0503 16.856 18.8994 16.8369C18.6006 16.8003 18.375 16.5 18.4307 16.1997C18.4688 15.8994 18.769 15.6753 19.0693 15.731C19.1631 15.75 19.2378 15.75 19.3125 15.75C20.25 15.75 21 15 21 14.0625C21 13.125 20.25 12.375 19.3125 12.375C19.2378 12.375 19.1631 12.375 19.0693 12.394C18.7881 12.4307 18.5244 12.2622 18.4497 12C17.5503 9.07471 14.8872 7.125 11.8315 7.125C10.856 7.125 9.39404 6.46875 9.39404 4.6875C9.39404 4.36816 9.63721 4.125 9.95654 4.125C10.2744 4.125 10.519 4.36816 10.519 4.6875C10.519 5.96191 11.6997 6 11.8315 6C15.2432 6 18.2256 8.10059 19.3872 11.25C20.9062 11.2881 22.144 12.5244 22.144 14.0625C22.125 15.6182 20.8682 16.875 19.3125 16.875Z",fill:"#3E3F58"}),l.createElement("circle",{cx:"11.8125",cy:"17.8125",r:"0.9375",fill:"#3E3F58"}),l.createElement("path",{d:"M16.0938 13.1694C15.897 13.0702 15.6596 13.1484 15.5592 13.343C15.5561 13.3488 15.2533 13.9219 14.7187 13.9219C14.1841 13.9219 13.8814 13.3488 13.8799 13.3453C13.781 13.148 13.5421 13.069 13.3452 13.1671C13.1483 13.2655 13.0689 13.5048 13.167 13.7017C13.188 13.7434 13.6876 14.7188 14.7187 14.7188C15.7499 14.7188 16.2495 13.7433 16.2705 13.7017C16.3685 13.5056 16.2892 13.2686 16.0938 13.1694Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.1344 13.0892L16.1346 13.0893C16.3737 13.2108 16.4714 13.5014 16.351 13.7421L16.3509 13.7425C16.3382 13.7675 16.2027 14.0317 15.9361 14.2906C15.6691 14.55 15.2651 14.809 14.7188 14.809C14.1725 14.809 13.7685 14.55 13.5014 14.2906C13.2349 14.0317 13.0994 13.7675 13.0867 13.7424L13.0865 13.742L13.0865 13.742C12.9664 13.5009 13.0635 13.2075 13.305 13.0867L13.3051 13.0867C13.5463 12.9666 13.8392 13.0633 13.9604 13.3051L13.9625 13.3094L13.9625 13.3094C13.9628 13.31 13.9635 13.3112 13.9646 13.313C13.9776 13.3355 14.0457 13.4532 14.1633 13.5717C14.2976 13.707 14.4853 13.8321 14.7188 13.8321C14.9522 13.8321 15.1399 13.707 15.2744 13.5714C15.3411 13.5042 15.3925 13.4366 15.4274 13.3854C15.4448 13.3598 15.458 13.3386 15.4667 13.3238C15.4711 13.3164 15.4744 13.3106 15.4766 13.3068L15.4797 13.3011C15.6028 13.0634 15.8935 12.9678 16.1344 13.0892ZM13.8799 13.3455C13.8814 13.349 14.1841 13.9221 14.7188 13.9221C15.2517 13.9221 15.5543 13.3525 15.5592 13.3432L15.5592 13.3431C15.6597 13.1486 15.897 13.0704 16.0939 13.1696C16.2892 13.2688 16.3686 13.5058 16.2705 13.7019C16.2495 13.7435 15.7499 14.719 14.7188 14.719C13.6877 14.719 13.1881 13.7435 13.167 13.7019C13.069 13.505 13.1484 13.2657 13.3453 13.1672C13.5422 13.0692 13.7811 13.1482 13.8799 13.3455Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5094 13.0893L10.5091 13.0892C10.2682 12.9678 9.97759 13.0634 9.85442 13.3011L9.85131 13.3068C9.84916 13.3106 9.84588 13.3164 9.8415 13.3238C9.83273 13.3386 9.81958 13.3598 9.80218 13.3854C9.76727 13.4366 9.71585 13.5042 9.6492 13.5714C9.51469 13.707 9.327 13.8321 9.09355 13.8321C8.86008 13.8321 8.67238 13.707 8.53807 13.5717C8.47152 13.5047 8.42025 13.4372 8.38558 13.3864C8.35996 13.3488 8.34478 13.3223 8.33921 13.3126L8.33682 13.3085L8.33512 13.3051C8.21396 13.0633 7.92186 12.9667 7.68003 13.0866L7.67978 13.0867C7.43828 13.2075 7.34115 13.5009 7.46124 13.742L7.46147 13.7424C7.47414 13.7675 7.60963 14.0317 7.87619 14.2906C8.14326 14.55 8.54722 14.809 9.09355 14.809C9.63987 14.809 10.0438 14.55 10.3109 14.2906C10.5775 14.0317 10.713 13.7675 10.7256 13.7425L10.7258 13.7421C10.8462 13.5014 10.7484 13.2108 10.5094 13.0893ZM9.93396 13.3432L9.934 13.3431C10.0062 13.2033 10.1491 13.1235 10.297 13.1266C10.1492 13.1236 10.0064 13.2033 9.93422 13.3431L9.93419 13.3432C9.92921 13.3526 9.62669 13.9221 9.09377 13.9221C9.08851 13.9221 9.08327 13.9221 9.07806 13.922C9.0832 13.9221 9.08836 13.9221 9.09355 13.9221C9.62649 13.9221 9.92901 13.3525 9.93396 13.3432ZM9.06061 14.7186C8.0518 14.6982 7.56261 13.7431 7.5418 13.7019C7.44375 13.505 7.52313 13.2657 7.72002 13.1672C7.7803 13.1373 7.84434 13.1239 7.90705 13.1253C7.84441 13.1239 7.78045 13.1374 7.72024 13.1672C7.52335 13.2657 7.44397 13.505 7.54203 13.7019C7.56283 13.7431 8.05195 14.6981 9.06061 14.7186Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.8 2.3999C19.9144 2.3999 20.0071 2.49262 20.0071 2.60698V3.99282H21.3929C21.5073 3.99282 21.6 4.08554 21.6 4.1999C21.6 4.31427 21.5073 4.40698 21.3929 4.40698H20.0071V5.79282C20.0071 5.90719 19.9144 5.9999 19.8 5.9999C19.6856 5.9999 19.5929 5.90719 19.5929 5.79282V4.40698H18.2071C18.0927 4.40698 18 4.31427 18 4.1999C18 4.08554 18.0927 3.99282 18.2071 3.99282H19.5929V2.60698C19.5929 2.49262 19.6856 2.3999 19.8 2.3999Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.2929 2.60718C19.2929 2.32712 19.5199 2.1001 19.8 2.1001C20.08 2.1001 20.307 2.32712 20.307 2.60718V3.69302H21.3929C21.6729 3.69302 21.9 3.92005 21.9 4.2001C21.9 4.48015 21.6729 4.70718 21.3929 4.70718H20.307V5.79302C20.307 6.07307 20.08 6.3001 19.8 6.3001C19.5199 6.3001 19.2929 6.07307 19.2929 5.79302V4.70718H18.207C17.927 4.70718 17.7 4.48015 17.7 4.2001C17.7 3.92005 17.927 3.69302 18.207 3.69302H19.2929V2.60718Z",fill:"#3E3F58"}))},l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},c("childCard.menu.add"))),l.createElement(E.Item,{onClick:n,icon:l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6094 2.61873C11.0508 2.44123 11.5233 2.3501 12 2.3501C12.4767 2.3501 12.9491 2.44123 13.3905 2.61873C13.832 2.79625 14.2343 3.05692 14.5741 3.38678C14.9139 3.71668 15.1845 4.10937 15.3695 4.54295C15.4685 4.77508 15.5419 5.01633 15.5887 5.2626H16.9895C18.4406 5.2626 19.65 6.40947 19.65 7.86442V8.01078C19.65 8.89985 19.1605 9.68128 18.4237 10.1037C18.884 10.8243 19.2029 11.64 19.3437 12.5139L19.3813 12.7472C19.5681 13.9067 19.4973 15.0915 19.1738 16.2218L19.0562 16.6329C18.3288 19.1745 16.1665 21.0699 13.5141 21.522C12.5123 21.6928 11.4876 21.6928 10.4858 21.522C7.83339 21.0699 5.67109 19.1745 4.94377 16.6329L4.82611 16.2218C4.50265 15.0915 4.43185 13.9067 4.61867 12.7472L4.65627 12.5139C4.79707 11.64 5.11599 10.8243 5.57625 10.1037C4.83944 9.68128 4.34998 8.89985 4.34998 8.01078V7.86442C4.34998 6.40947 5.55937 5.2626 7.01043 5.2626H8.41124C8.45805 5.01633 8.53144 4.77508 8.63048 4.54295C8.81547 4.10937 9.08608 3.71668 9.42589 3.38678C9.76565 3.05692 10.168 2.79625 10.6094 2.61873ZM9.74907 5.2626L14.2509 5.2626C14.2288 5.19175 14.2031 5.12183 14.1738 5.05312C14.0572 4.77998 13.8859 4.53053 13.6685 4.31952C13.4511 4.10848 13.192 3.94008 12.9055 3.82486C12.619 3.70963 12.3112 3.6501 12 3.6501C11.6887 3.6501 11.381 3.70963 11.0944 3.82486C10.8079 3.94008 10.5488 4.10848 10.3314 4.31952C10.1141 4.53053 9.94273 4.77998 9.8262 5.05311C9.79688 5.12183 9.77115 5.19175 9.74907 5.2626ZM7.01043 6.5626C6.2408 6.5626 5.64998 7.16345 5.64998 7.86442V8.01078C5.64998 8.53694 6.03782 9.01141 6.60612 9.11574C6.65027 9.12384 6.69443 9.13185 6.73861 9.13975C6.73934 9.13988 6.74007 9.14001 6.7408 9.14014C6.9188 9.17198 7.09704 9.20218 7.27549 9.23076C10.5824 9.76029 13.9603 9.73008 17.2592 9.14014C17.2597 9.14004 17.2603 9.13994 17.2608 9.13984C17.3052 9.13191 17.3495 9.12388 17.3938 9.11574C17.9621 9.01141 18.35 8.53694 18.35 8.01078V7.86442C18.35 7.16345 17.7591 6.5626 16.9895 6.5626H7.01043ZM6.89224 10.4854C6.40537 11.1346 6.07257 11.8962 5.93971 12.7207L5.90212 12.954C5.74569 13.9249 5.80489 14.917 6.07594 15.8642L6.19359 16.2753C6.77869 18.3198 8.5277 19.8695 10.7042 20.2405C11.5615 20.3866 12.4385 20.3866 13.2957 20.2405C15.4722 19.8695 17.2212 18.3198 17.8063 16.2753L17.924 15.8642C18.1951 14.917 18.2543 13.9249 18.0978 12.954L18.0602 12.7207C17.9274 11.8962 17.5946 11.1346 17.1077 10.4854C17.0485 10.4953 16.9893 10.5049 16.93 10.5144C13.6061 11.0467 10.2137 11.037 6.89224 10.4854ZM9.34998 16.5918V12.7084C9.34998 12.3495 9.64099 12.0584 9.99998 12.0584C10.359 12.0584 10.65 12.3495 10.65 12.7084V16.5918C10.65 16.9508 10.359 17.2418 9.99998 17.2418C9.64099 17.2418 9.34998 16.9508 9.34998 16.5918ZM14 12.0584C14.359 12.0584 14.65 12.3495 14.65 12.7084V16.5918C14.65 16.9508 14.359 17.2418 14 17.2418C13.641 17.2418 13.35 16.9508 13.35 16.5918V12.7084C13.35 12.3495 13.641 12.0584 14 12.0584Z",fill:"#3E3F58"}))},l.createElement(g,{type:"bodytext-2",color:m.mbColors.red},c("childCard.menu.remove",{name:e})))):l.createElement(te,{width:250},l.createElement(E.Item,{onClick:r,icon:l.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},l.createElement(p,{size:"p2",color:m.colors.gray800},c("childCard.menu.edit",{name:e}))),l.createElement(E.Item,{onClick:o,icon:l.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},l.createElement(p,{size:"p2",color:m.colors.gray800},c("childCard.menu.switch"))),l.createElement(E.Item,{onClick:i,icon:l.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),l.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},l.createElement(p,{size:"p2",color:m.colors.gray800},c("childCard.menu.add"))),l.createElement(E.Item,{onClick:n,icon:l.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},l.createElement(p,{size:"p2",color:m.colors.red600},c("childCard.menu.remove",{name:e})))))},le=(e,t)=>{if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},oe=({name:t,gender:r,age:o,isLoggedIn:a=!1,showMenu:n=!1,onEdit:s,onSwitch:d,onAdd:C,onRemove:h,className:y,siteType:u})=>{const{t:f}=b(),[E,v]=i(!1),L="marryBaby"===u;return l.createElement(X,{className:y,"data-theme":u},L?l.createElement(l.Fragment,null,l.createElement("div",{"data-testid":"gender"},r===c.Boy?l.createElement(e.BabyBoyMB,{"data-testid":"boy",id:"boy",size:48}):l.createElement(e.BabyGirlMB,{"data-testid":"girl",id:"girl",size:48})),l.createElement("div",{className:"information"},l.createElement(g,{type:"subtitle-1",color:m.mbColors.dark},x(t)||f("childCard.noName")),l.createElement("div",{className:"detail"},l.createElement("div",null,r===c.Boy?l.createElement(e.GenderBoy,{size:14}):l.createElement(e.GenderGirl,{size:14}),l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},x(r))),l.createElement("div",null,l.createElement(e.CalendarMB,{size:20}),o&&l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},le(o,f)))))):l.createElement(l.Fragment,null,l.createElement("div",{"data-testid":"gender"},r===c.Boy?l.createElement(e.Boy,{"data-testid":"boy",id:"boy"}):l.createElement(e.Girl,{"data-testid":"girl",id:"girl"})),l.createElement("div",{className:"information"},l.createElement(w,{tag:"h5",fontWeight:"bold",color:m.colors.gray800},x(t)||f("childCard.noName")),l.createElement("div",{className:"detail"},l.createElement("div",null,r===c.Boy?l.createElement(e.GenderBoy,null):l.createElement(e.GenderGirl,null),l.createElement(p,{size:"p3",color:m.colors.gray800,style:{textTransform:"capitalize"}},r)),l.createElement("div",null,l.createElement(e.Calendar,{size:16}),o&&l.createElement(p,{size:"p3",color:m.colors.gray800},le(o,f)))))),n&&a&&l.createElement(ee,null,l.createElement(e.Kebab,{onClick:()=>v((e=>!e))}),E&&l.createElement(re,{siteType:u,name:t,onClose:()=>v(!1),onEdit:()=>{v(!1),s()},onSwitch:()=>{v(!1),d()},onAdd:()=>{v(!1),C()},onRemove:()=>{v(!1),h()}})))},ae=h.div`
|
|
196
|
+
`,re=({name:e,onClose:t,onEdit:r,onSwitch:o,onAdd:i,onRemove:n,siteType:c})=>{const{t:s}=b(),d="marryBaby"===c,C=a();return L(C,t),l.createElement("div",{ref:C},d?l.createElement(te,{width:250,"data-site":c},l.createElement(E.Item,{onClick:r,icon:l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.1512 4.29354C13.7553 3.68946 14.5746 3.3501 15.4289 3.3501C17.2078 3.3501 18.65 4.79223 18.65 6.5712C18.65 7.42549 18.3106 8.24479 17.7065 8.84886L16.9689 9.58652C16.9626 9.59307 16.9562 9.5995 16.9496 9.6058L13.7897 12.7657C12.0036 14.5518 9.76564 15.8189 7.31513 16.4315L6.55809 16.6208C5.84616 16.7988 5.20129 16.1539 5.37927 15.442L5.56853 14.6849C6.18116 12.2344 7.44827 9.99647 9.23437 8.21036L12.3943 5.0504C12.4006 5.04388 12.407 5.0375 12.4135 5.03127L13.1512 4.29354ZM12.2667 7.01649L10.1536 9.1296C8.53411 10.7491 7.3852 12.7783 6.82972 15.0002L6.77301 15.227L6.99983 15.1703C9.22177 14.6149 11.251 13.4659 12.8705 11.8464L14.9836 9.73334C14.3478 9.52953 13.7639 9.13743 13.3133 8.68678C12.8626 8.23613 12.4705 7.65226 12.2667 7.01649ZM16.1622 8.55469C15.5984 8.66895 14.8552 8.39025 14.2325 7.76754C13.6098 7.14483 13.3311 6.40165 13.4454 5.83784L14.0704 5.21278C14.4307 4.8525 14.9193 4.6501 15.4289 4.6501C16.4899 4.6501 17.35 5.5102 17.35 6.5712C17.35 7.08071 17.1476 7.56935 16.7873 7.92962L16.1622 8.55469Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.34998 20.0001C4.34998 19.6411 4.64099 19.3501 4.99998 19.3501H19C19.359 19.3501 19.65 19.6411 19.65 20.0001C19.65 20.3591 19.359 20.6501 19 20.6501H4.99998C4.64099 20.6501 4.34998 20.3591 4.34998 20.0001Z",fill:"#3E3F58"}))},l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},s("childCard.menu.edit",{name:e}))),l.createElement(E.Item,{onClick:o,icon:l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5951 4.50716C12.8673 4.19494 13.3411 4.16249 13.6533 4.43468L19.4929 9.52559C19.7286 9.73108 19.812 10.0613 19.7023 10.3541C19.5926 10.6469 19.3127 10.8409 19 10.8409H5C4.58579 10.8409 4.25 10.5051 4.25 10.0909C4.25 9.67671 4.58579 9.34092 5 9.34092H16.9984L12.6676 5.56534C12.3554 5.29315 12.3229 4.81938 12.5951 4.50716Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4049 19.4928C11.1327 19.8051 10.6589 19.8375 10.3467 19.5653L4.50715 14.4744C4.27144 14.2689 4.18796 13.9387 4.29768 13.6459C4.40741 13.3531 4.68729 13.1591 5 13.1591L19 13.1591C19.4142 13.1591 19.75 13.4949 19.75 13.9091C19.75 14.3233 19.4142 14.6591 19 14.6591L7.00161 14.6591L11.3324 18.4347C11.6446 18.7069 11.6771 19.1806 11.4049 19.4928Z",fill:"#3E3F58"}))},l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},s("childCard.menu.switch"))),l.createElement(E.Item,{onClick:i,icon:l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M11.8123 22.1251C8.24982 22.1251 5.15607 19.837 4.10577 16.4444C4.01202 16.1441 4.18048 15.8248 4.48077 15.731C4.78107 15.6373 5.1004 15.8057 5.19415 16.106C6.09357 19.0313 8.75665 20.981 11.8123 20.981C14.868 20.981 17.5311 19.0123 18.4305 16.106C18.5242 15.8057 18.8436 15.6373 19.1439 15.731C19.4442 15.8248 19.6126 16.1441 19.5189 16.4444C18.4686 19.837 15.3748 22.1251 11.8123 22.1251Z",fill:"#3E3F58"}),l.createElement("path",{d:"M4.3125 16.875C2.75684 16.875 1.5 15.6182 1.5 14.0625C1.5 12.5244 2.73779 11.2881 4.25684 11.25C4.96875 9.33691 6.41309 7.72559 8.26904 6.82471C8.55029 6.69434 8.88721 6.80566 9.01904 7.08691C9.14941 7.36816 9.03809 7.70654 8.75684 7.83691C7.05029 8.66309 5.73779 10.1997 5.19434 12C5.11816 12.2622 4.85596 12.4307 4.57471 12.394C4.46191 12.375 4.38721 12.375 4.3125 12.375C3.375 12.375 2.625 13.125 2.625 14.0625C2.625 15 3.375 15.75 4.3125 15.75C4.38721 15.75 4.46191 15.75 4.55566 15.731C4.85596 15.6943 5.15625 15.8994 5.19434 16.1997C5.23096 16.5 5.02441 16.8003 4.72559 16.8369C4.57471 16.856 4.44434 16.875 4.3125 16.875ZM19.3125 16.875C19.1807 16.875 19.0503 16.856 18.8994 16.8369C18.6006 16.8003 18.375 16.5 18.4307 16.1997C18.4688 15.8994 18.769 15.6753 19.0693 15.731C19.1631 15.75 19.2378 15.75 19.3125 15.75C20.25 15.75 21 15 21 14.0625C21 13.125 20.25 12.375 19.3125 12.375C19.2378 12.375 19.1631 12.375 19.0693 12.394C18.7881 12.4307 18.5244 12.2622 18.4497 12C17.5503 9.07471 14.8872 7.125 11.8315 7.125C10.856 7.125 9.39404 6.46875 9.39404 4.6875C9.39404 4.36816 9.63721 4.125 9.95654 4.125C10.2744 4.125 10.519 4.36816 10.519 4.6875C10.519 5.96191 11.6997 6 11.8315 6C15.2432 6 18.2256 8.10059 19.3872 11.25C20.9062 11.2881 22.144 12.5244 22.144 14.0625C22.125 15.6182 20.8682 16.875 19.3125 16.875Z",fill:"#3E3F58"}),l.createElement("circle",{cx:"11.8125",cy:"17.8125",r:"0.9375",fill:"#3E3F58"}),l.createElement("path",{d:"M16.0938 13.1694C15.897 13.0702 15.6596 13.1484 15.5592 13.343C15.5561 13.3488 15.2533 13.9219 14.7187 13.9219C14.1841 13.9219 13.8814 13.3488 13.8799 13.3453C13.781 13.148 13.5421 13.069 13.3452 13.1671C13.1483 13.2655 13.0689 13.5048 13.167 13.7017C13.188 13.7434 13.6876 14.7188 14.7187 14.7188C15.7499 14.7188 16.2495 13.7433 16.2705 13.7017C16.3685 13.5056 16.2892 13.2686 16.0938 13.1694Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.1344 13.0892L16.1346 13.0893C16.3737 13.2108 16.4714 13.5014 16.351 13.7421L16.3509 13.7425C16.3382 13.7675 16.2027 14.0317 15.9361 14.2906C15.6691 14.55 15.2651 14.809 14.7188 14.809C14.1725 14.809 13.7685 14.55 13.5014 14.2906C13.2349 14.0317 13.0994 13.7675 13.0867 13.7424L13.0865 13.742L13.0865 13.742C12.9664 13.5009 13.0635 13.2075 13.305 13.0867L13.3051 13.0867C13.5463 12.9666 13.8392 13.0633 13.9604 13.3051L13.9625 13.3094L13.9625 13.3094C13.9628 13.31 13.9635 13.3112 13.9646 13.313C13.9776 13.3355 14.0457 13.4532 14.1633 13.5717C14.2976 13.707 14.4853 13.8321 14.7188 13.8321C14.9522 13.8321 15.1399 13.707 15.2744 13.5714C15.3411 13.5042 15.3925 13.4366 15.4274 13.3854C15.4448 13.3598 15.458 13.3386 15.4667 13.3238C15.4711 13.3164 15.4744 13.3106 15.4766 13.3068L15.4797 13.3011C15.6028 13.0634 15.8935 12.9678 16.1344 13.0892ZM13.8799 13.3455C13.8814 13.349 14.1841 13.9221 14.7188 13.9221C15.2517 13.9221 15.5543 13.3525 15.5592 13.3432L15.5592 13.3431C15.6597 13.1486 15.897 13.0704 16.0939 13.1696C16.2892 13.2688 16.3686 13.5058 16.2705 13.7019C16.2495 13.7435 15.7499 14.719 14.7188 14.719C13.6877 14.719 13.1881 13.7435 13.167 13.7019C13.069 13.505 13.1484 13.2657 13.3453 13.1672C13.5422 13.0692 13.7811 13.1482 13.8799 13.3455Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5094 13.0893L10.5091 13.0892C10.2682 12.9678 9.97759 13.0634 9.85442 13.3011L9.85131 13.3068C9.84916 13.3106 9.84588 13.3164 9.8415 13.3238C9.83273 13.3386 9.81958 13.3598 9.80218 13.3854C9.76727 13.4366 9.71585 13.5042 9.6492 13.5714C9.51469 13.707 9.327 13.8321 9.09355 13.8321C8.86008 13.8321 8.67238 13.707 8.53807 13.5717C8.47152 13.5047 8.42025 13.4372 8.38558 13.3864C8.35996 13.3488 8.34478 13.3223 8.33921 13.3126L8.33682 13.3085L8.33512 13.3051C8.21396 13.0633 7.92186 12.9667 7.68003 13.0866L7.67978 13.0867C7.43828 13.2075 7.34115 13.5009 7.46124 13.742L7.46147 13.7424C7.47414 13.7675 7.60963 14.0317 7.87619 14.2906C8.14326 14.55 8.54722 14.809 9.09355 14.809C9.63987 14.809 10.0438 14.55 10.3109 14.2906C10.5775 14.0317 10.713 13.7675 10.7256 13.7425L10.7258 13.7421C10.8462 13.5014 10.7484 13.2108 10.5094 13.0893ZM9.93396 13.3432L9.934 13.3431C10.0062 13.2033 10.1491 13.1235 10.297 13.1266C10.1492 13.1236 10.0064 13.2033 9.93422 13.3431L9.93419 13.3432C9.92921 13.3526 9.62669 13.9221 9.09377 13.9221C9.08851 13.9221 9.08327 13.9221 9.07806 13.922C9.0832 13.9221 9.08836 13.9221 9.09355 13.9221C9.62649 13.9221 9.92901 13.3525 9.93396 13.3432ZM9.06061 14.7186C8.0518 14.6982 7.56261 13.7431 7.5418 13.7019C7.44375 13.505 7.52313 13.2657 7.72002 13.1672C7.7803 13.1373 7.84434 13.1239 7.90705 13.1253C7.84441 13.1239 7.78045 13.1374 7.72024 13.1672C7.52335 13.2657 7.44397 13.505 7.54203 13.7019C7.56283 13.7431 8.05195 14.6981 9.06061 14.7186Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.8 2.3999C19.9144 2.3999 20.0071 2.49262 20.0071 2.60698V3.99282H21.3929C21.5073 3.99282 21.6 4.08554 21.6 4.1999C21.6 4.31427 21.5073 4.40698 21.3929 4.40698H20.0071V5.79282C20.0071 5.90719 19.9144 5.9999 19.8 5.9999C19.6856 5.9999 19.5929 5.90719 19.5929 5.79282V4.40698H18.2071C18.0927 4.40698 18 4.31427 18 4.1999C18 4.08554 18.0927 3.99282 18.2071 3.99282H19.5929V2.60698C19.5929 2.49262 19.6856 2.3999 19.8 2.3999Z",fill:"#3E3F58"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.2929 2.60718C19.2929 2.32712 19.5199 2.1001 19.8 2.1001C20.08 2.1001 20.307 2.32712 20.307 2.60718V3.69302H21.3929C21.6729 3.69302 21.9 3.92005 21.9 4.2001C21.9 4.48015 21.6729 4.70718 21.3929 4.70718H20.307V5.79302C20.307 6.07307 20.08 6.3001 19.8 6.3001C19.5199 6.3001 19.2929 6.07307 19.2929 5.79302V4.70718H18.207C17.927 4.70718 17.7 4.48015 17.7 4.2001C17.7 3.92005 17.927 3.69302 18.207 3.69302H19.2929V2.60718Z",fill:"#3E3F58"}))},l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},s("childCard.menu.add"))),l.createElement(E.Item,{onClick:n,icon:l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6094 2.61873C11.0508 2.44123 11.5233 2.3501 12 2.3501C12.4767 2.3501 12.9491 2.44123 13.3905 2.61873C13.832 2.79625 14.2343 3.05692 14.5741 3.38678C14.9139 3.71668 15.1845 4.10937 15.3695 4.54295C15.4685 4.77508 15.5419 5.01633 15.5887 5.2626H16.9895C18.4406 5.2626 19.65 6.40947 19.65 7.86442V8.01078C19.65 8.89985 19.1605 9.68128 18.4237 10.1037C18.884 10.8243 19.2029 11.64 19.3437 12.5139L19.3813 12.7472C19.5681 13.9067 19.4973 15.0915 19.1738 16.2218L19.0562 16.6329C18.3288 19.1745 16.1665 21.0699 13.5141 21.522C12.5123 21.6928 11.4876 21.6928 10.4858 21.522C7.83339 21.0699 5.67109 19.1745 4.94377 16.6329L4.82611 16.2218C4.50265 15.0915 4.43185 13.9067 4.61867 12.7472L4.65627 12.5139C4.79707 11.64 5.11599 10.8243 5.57625 10.1037C4.83944 9.68128 4.34998 8.89985 4.34998 8.01078V7.86442C4.34998 6.40947 5.55937 5.2626 7.01043 5.2626H8.41124C8.45805 5.01633 8.53144 4.77508 8.63048 4.54295C8.81547 4.10937 9.08608 3.71668 9.42589 3.38678C9.76565 3.05692 10.168 2.79625 10.6094 2.61873ZM9.74907 5.2626L14.2509 5.2626C14.2288 5.19175 14.2031 5.12183 14.1738 5.05312C14.0572 4.77998 13.8859 4.53053 13.6685 4.31952C13.4511 4.10848 13.192 3.94008 12.9055 3.82486C12.619 3.70963 12.3112 3.6501 12 3.6501C11.6887 3.6501 11.381 3.70963 11.0944 3.82486C10.8079 3.94008 10.5488 4.10848 10.3314 4.31952C10.1141 4.53053 9.94273 4.77998 9.8262 5.05311C9.79688 5.12183 9.77115 5.19175 9.74907 5.2626ZM7.01043 6.5626C6.2408 6.5626 5.64998 7.16345 5.64998 7.86442V8.01078C5.64998 8.53694 6.03782 9.01141 6.60612 9.11574C6.65027 9.12384 6.69443 9.13185 6.73861 9.13975C6.73934 9.13988 6.74007 9.14001 6.7408 9.14014C6.9188 9.17198 7.09704 9.20218 7.27549 9.23076C10.5824 9.76029 13.9603 9.73008 17.2592 9.14014C17.2597 9.14004 17.2603 9.13994 17.2608 9.13984C17.3052 9.13191 17.3495 9.12388 17.3938 9.11574C17.9621 9.01141 18.35 8.53694 18.35 8.01078V7.86442C18.35 7.16345 17.7591 6.5626 16.9895 6.5626H7.01043ZM6.89224 10.4854C6.40537 11.1346 6.07257 11.8962 5.93971 12.7207L5.90212 12.954C5.74569 13.9249 5.80489 14.917 6.07594 15.8642L6.19359 16.2753C6.77869 18.3198 8.5277 19.8695 10.7042 20.2405C11.5615 20.3866 12.4385 20.3866 13.2957 20.2405C15.4722 19.8695 17.2212 18.3198 17.8063 16.2753L17.924 15.8642C18.1951 14.917 18.2543 13.9249 18.0978 12.954L18.0602 12.7207C17.9274 11.8962 17.5946 11.1346 17.1077 10.4854C17.0485 10.4953 16.9893 10.5049 16.93 10.5144C13.6061 11.0467 10.2137 11.037 6.89224 10.4854ZM9.34998 16.5918V12.7084C9.34998 12.3495 9.64099 12.0584 9.99998 12.0584C10.359 12.0584 10.65 12.3495 10.65 12.7084V16.5918C10.65 16.9508 10.359 17.2418 9.99998 17.2418C9.64099 17.2418 9.34998 16.9508 9.34998 16.5918ZM14 12.0584C14.359 12.0584 14.65 12.3495 14.65 12.7084V16.5918C14.65 16.9508 14.359 17.2418 14 17.2418C13.641 17.2418 13.35 16.9508 13.35 16.5918V12.7084C13.35 12.3495 13.641 12.0584 14 12.0584Z",fill:"#3E3F58"}))},l.createElement(g,{type:"bodytext-2",color:m.mbColors.red},s("childCard.menu.remove",{name:e})))):l.createElement(te,{width:250},l.createElement(E.Item,{onClick:r,icon:l.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},l.createElement(p,{size:"p2",color:m.colors.gray800},s("childCard.menu.edit",{name:e}))),l.createElement(E.Item,{onClick:o,icon:l.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},l.createElement(p,{size:"p2",color:m.colors.gray800},s("childCard.menu.switch"))),l.createElement(E.Item,{onClick:i,icon:l.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),l.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},l.createElement(p,{size:"p2",color:m.colors.gray800},s("childCard.menu.add"))),l.createElement(E.Item,{onClick:n,icon:l.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},l.createElement(p,{size:"p2",color:m.colors.red600},s("childCard.menu.remove",{name:e})))))},le=(e,t)=>{if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},oe=({name:t,gender:r,age:o,isLoggedIn:a=!1,showMenu:n=!1,onEdit:c,onSwitch:d,onAdd:C,onRemove:h,className:y,siteType:u})=>{const{t:f}=b(),[E,v]=i(!1),L="marryBaby"===u;return l.createElement(X,{className:y,"data-theme":u},L?l.createElement(l.Fragment,null,l.createElement("div",{"data-testid":"gender"},r===s.Boy?l.createElement(e.BabyBoyMB,{"data-testid":"boy",id:"boy",size:48}):l.createElement(e.BabyGirlMB,{"data-testid":"girl",id:"girl",size:48})),l.createElement("div",{className:"information"},l.createElement(g,{type:"subtitle-1",color:m.mbColors.dark},x(t)||f("childCard.noName")),l.createElement("div",{className:"detail"},l.createElement("div",null,r===s.Boy?l.createElement(e.GenderBoy,{size:14}):l.createElement(e.GenderGirl,{size:14}),l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},x(r))),l.createElement("div",null,l.createElement(e.CalendarMB,{size:20}),o&&l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},le(o,f)))))):l.createElement(l.Fragment,null,l.createElement("div",{"data-testid":"gender"},r===s.Boy?l.createElement(e.Boy,{"data-testid":"boy",id:"boy"}):l.createElement(e.Girl,{"data-testid":"girl",id:"girl"})),l.createElement("div",{className:"information"},l.createElement(w,{tag:"h5",fontWeight:"bold",color:m.colors.gray800},x(t)||f("childCard.noName")),l.createElement("div",{className:"detail"},l.createElement("div",null,r===s.Boy?l.createElement(e.GenderBoy,null):l.createElement(e.GenderGirl,null),l.createElement(p,{size:"p3",color:m.colors.gray800,style:{textTransform:"capitalize"}},r)),l.createElement("div",null,l.createElement(e.Calendar,{size:16}),o&&l.createElement(p,{size:"p3",color:m.colors.gray800},le(o,f)))))),n&&a&&l.createElement(ee,null,l.createElement(e.Kebab,{onClick:()=>v((e=>!e))}),E&&l.createElement(re,{siteType:u,name:t,onClose:()=>v(!1),onEdit:()=>{v(!1),c()},onSwitch:()=>{v(!1),d()},onAdd:()=>{v(!1),C()},onRemove:()=>{v(!1),h()}})))},ae=h.div`
|
|
197
197
|
cursor: pointer;
|
|
198
198
|
position: relative;
|
|
199
199
|
padding: 20px 2px;
|
|
@@ -220,7 +220,7 @@ import{I as e,D as t,M as r}from"./index-d24056ce.js";export{B as BabyGrowthGend
|
|
|
220
220
|
align-items: center;
|
|
221
221
|
gap: 8px;
|
|
222
222
|
}
|
|
223
|
-
`,ie=(e,t)=>e&&"NaN"!==e?e+" "+(t||""):"--",ne=({measurementDate:e=new Date,weight:t,height:r,head:o,onEdit:a,birthday:i,dateFormat:n="DD/MM/YYYY",locale:c=s.PhilippinesEnglish,siteType:d})=>{const{t:C}=b(),h="marryBaby"===d;return l.createElement(ae,{onClick:a},l.createElement("div",{className:"time"},h?l.createElement("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.05257 0.762695C4.32181 0.762695 4.54007 0.980956 4.54007 1.2502V1.53122C4.60167 1.51424 4.66369 1.49824 4.72611 1.48326C6.2217 1.12422 7.77833 1.12422 9.27392 1.48326C9.33634 1.49824 9.39836 1.51424 9.45995 1.53122V1.2502C9.45995 0.980956 9.67821 0.762695 9.94745 0.762695C10.2167 0.762695 10.435 0.980956 10.435 1.2502V1.89841C12.0148 2.66392 13.1931 4.12969 13.6002 5.90621C13.9499 7.43197 13.9499 9.01971 13.6002 10.5455C13.0985 12.7345 11.426 14.4518 9.27392 14.9684C7.77833 15.3275 6.2217 15.3275 4.72611 14.9684C2.57399 14.4518 0.901521 12.7345 0.399789 10.5455C0.0500868 9.01971 0.0500868 7.43197 0.399789 5.90621C0.806964 4.12969 1.98518 2.66392 3.56507 1.89841V1.2502C3.56507 0.980956 3.78333 0.762695 4.05257 0.762695ZM3.56507 3.00938C2.88276 3.4302 2.31064 4.01866 1.90229 4.72184H12.0977C11.6894 4.01865 11.1173 3.4302 10.435 3.00938V3.1355C10.435 3.40474 10.2167 3.623 9.94745 3.623C9.67821 3.623 9.45995 3.40474 9.45995 3.1355V2.55069C9.32464 2.5049 9.18667 2.46501 9.04633 2.43132C7.70034 2.1082 6.29969 2.1082 4.9537 2.43132C4.81336 2.46501 4.67538 2.5049 4.54007 2.55069V3.1355C4.54007 3.40474 4.32181 3.623 4.05257 3.623C3.78333 3.623 3.56507 3.40474 3.56507 3.1355V3.00938ZM12.5322 5.69684H1.46788C1.42273 5.83649 1.38339 5.97898 1.35015 6.12403C1.0333 7.50643 1.0333 8.94525 1.35015 10.3277C1.77137 12.1654 3.17113 13.5924 4.9537 14.0204C6.29969 14.3435 7.70034 14.3435 9.04632 14.0204C10.8289 13.5924 12.2287 12.1654 12.6499 10.3276C12.9667 8.94525 12.9667 7.50643 12.6499 6.12403C12.6166 5.97898 12.5773 5.83649 12.5322 5.69684Z",fill:"#3E3F58"})):l.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),l.createElement(p,{size:"p3",color:m.colors.gray600},`${f(e).format(n)} (${le(M(i,e),C)})`),h?l.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.15119 1.29354C8.75527 0.689463 9.57457 0.350098 10.4289 0.350098C12.2078 0.350098 13.65 1.79223 13.65 3.5712C13.65 4.42549 13.3106 5.24479 12.7065 5.84886L11.9689 6.58652C11.9626 6.59307 11.9562 6.5995 11.9496 6.6058L8.78969 9.76569C7.00359 11.5518 4.76564 12.8189 2.31513 13.4315L1.55809 13.6208C0.846159 13.7988 0.201291 13.1539 0.379274 12.442L0.568533 11.6849C1.18116 9.23441 2.44827 6.99647 4.23437 5.21036L7.39433 2.0504C7.40058 2.04388 7.40696 2.0375 7.41346 2.03127L8.15119 1.29354ZM7.26672 4.01649L5.15361 6.1296C3.53411 7.7491 2.3852 9.77829 1.82972 12.0002L1.77301 12.227L1.99983 12.1703C4.22177 11.6149 6.25096 10.4659 7.87045 8.84645L9.98356 6.73334C9.34779 6.52953 8.76392 6.13743 8.31328 5.68678C7.86263 5.23613 7.47052 4.65226 7.26672 4.01649ZM11.1622 5.55469C10.5984 5.66895 9.85522 5.39025 9.23251 4.76754C8.6098 4.14483 8.3311 3.40165 8.44536 2.83784L9.07043 2.21278C9.43071 1.8525 9.91935 1.6501 10.4289 1.6501C11.4899 1.6501 12.35 2.5102 12.35 3.5712C12.35 4.08071 12.1476 4.56935 11.7873 4.92962L11.1622 5.55469Z",fill:"#3E3F58"})):l.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},l.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),l.createElement("div",{className:"record"},l.createElement("div",{className:"record-item"},h?l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},C("babyGrowth.weight")):l.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),l.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),l.createElement(p,{size:"s3",color:m.colors.gray800,type:"semiBold"},ie(k(t),"kg"))),l.createElement("div",{className:"record-item"},h?l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},C("babyGrowth.height")):l.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{clipPath:"url(#clip0_855_82991)"},l.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_855_82991"},l.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),l.createElement(p,{size:"s3",color:m.colors.gray800,type:"semiBold"},ie(k(r),"cm"))),l.createElement("div",{className:"record-item"},h?l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},C("babyGrowth.head")):l.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{clipPath:"url(#clip0_855_82994)"},l.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),l.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),l.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_855_82994"},l.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),l.createElement(p,{size:"s3",color:m.colors.gray800,type:"semiBold"},ie(k(o),"cm")))))},se=h(t)`
|
|
223
|
+
`,ie=(e,t)=>e&&"NaN"!==e?e+" "+(t||""):"--",ne=({measurementDate:e=new Date,weight:t,height:r,head:o,onEdit:a,birthday:i,dateFormat:n="DD/MM/YYYY",locale:s=c.PhilippinesEnglish,siteType:d})=>{const{t:C}=b(),h="marryBaby"===d;return l.createElement(ae,{onClick:a},l.createElement("div",{className:"time"},h?l.createElement("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.05257 0.762695C4.32181 0.762695 4.54007 0.980956 4.54007 1.2502V1.53122C4.60167 1.51424 4.66369 1.49824 4.72611 1.48326C6.2217 1.12422 7.77833 1.12422 9.27392 1.48326C9.33634 1.49824 9.39836 1.51424 9.45995 1.53122V1.2502C9.45995 0.980956 9.67821 0.762695 9.94745 0.762695C10.2167 0.762695 10.435 0.980956 10.435 1.2502V1.89841C12.0148 2.66392 13.1931 4.12969 13.6002 5.90621C13.9499 7.43197 13.9499 9.01971 13.6002 10.5455C13.0985 12.7345 11.426 14.4518 9.27392 14.9684C7.77833 15.3275 6.2217 15.3275 4.72611 14.9684C2.57399 14.4518 0.901521 12.7345 0.399789 10.5455C0.0500868 9.01971 0.0500868 7.43197 0.399789 5.90621C0.806964 4.12969 1.98518 2.66392 3.56507 1.89841V1.2502C3.56507 0.980956 3.78333 0.762695 4.05257 0.762695ZM3.56507 3.00938C2.88276 3.4302 2.31064 4.01866 1.90229 4.72184H12.0977C11.6894 4.01865 11.1173 3.4302 10.435 3.00938V3.1355C10.435 3.40474 10.2167 3.623 9.94745 3.623C9.67821 3.623 9.45995 3.40474 9.45995 3.1355V2.55069C9.32464 2.5049 9.18667 2.46501 9.04633 2.43132C7.70034 2.1082 6.29969 2.1082 4.9537 2.43132C4.81336 2.46501 4.67538 2.5049 4.54007 2.55069V3.1355C4.54007 3.40474 4.32181 3.623 4.05257 3.623C3.78333 3.623 3.56507 3.40474 3.56507 3.1355V3.00938ZM12.5322 5.69684H1.46788C1.42273 5.83649 1.38339 5.97898 1.35015 6.12403C1.0333 7.50643 1.0333 8.94525 1.35015 10.3277C1.77137 12.1654 3.17113 13.5924 4.9537 14.0204C6.29969 14.3435 7.70034 14.3435 9.04632 14.0204C10.8289 13.5924 12.2287 12.1654 12.6499 10.3276C12.9667 8.94525 12.9667 7.50643 12.6499 6.12403C12.6166 5.97898 12.5773 5.83649 12.5322 5.69684Z",fill:"#3E3F58"})):l.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),l.createElement(p,{size:"p3",color:m.colors.gray600},`${f(e).format(n)} (${le(M(i,e),C)})`),h?l.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.15119 1.29354C8.75527 0.689463 9.57457 0.350098 10.4289 0.350098C12.2078 0.350098 13.65 1.79223 13.65 3.5712C13.65 4.42549 13.3106 5.24479 12.7065 5.84886L11.9689 6.58652C11.9626 6.59307 11.9562 6.5995 11.9496 6.6058L8.78969 9.76569C7.00359 11.5518 4.76564 12.8189 2.31513 13.4315L1.55809 13.6208C0.846159 13.7988 0.201291 13.1539 0.379274 12.442L0.568533 11.6849C1.18116 9.23441 2.44827 6.99647 4.23437 5.21036L7.39433 2.0504C7.40058 2.04388 7.40696 2.0375 7.41346 2.03127L8.15119 1.29354ZM7.26672 4.01649L5.15361 6.1296C3.53411 7.7491 2.3852 9.77829 1.82972 12.0002L1.77301 12.227L1.99983 12.1703C4.22177 11.6149 6.25096 10.4659 7.87045 8.84645L9.98356 6.73334C9.34779 6.52953 8.76392 6.13743 8.31328 5.68678C7.86263 5.23613 7.47052 4.65226 7.26672 4.01649ZM11.1622 5.55469C10.5984 5.66895 9.85522 5.39025 9.23251 4.76754C8.6098 4.14483 8.3311 3.40165 8.44536 2.83784L9.07043 2.21278C9.43071 1.8525 9.91935 1.6501 10.4289 1.6501C11.4899 1.6501 12.35 2.5102 12.35 3.5712C12.35 4.08071 12.1476 4.56935 11.7873 4.92962L11.1622 5.55469Z",fill:"#3E3F58"})):l.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},l.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),l.createElement("div",{className:"record"},l.createElement("div",{className:"record-item"},h?l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},C("babyGrowth.weight")):l.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),l.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),l.createElement(p,{size:"s3",color:m.colors.gray800,type:"semiBold"},ie(k(t),"kg"))),l.createElement("div",{className:"record-item"},h?l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},C("babyGrowth.height")):l.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{clipPath:"url(#clip0_855_82991)"},l.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_855_82991"},l.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),l.createElement(p,{size:"s3",color:m.colors.gray800,type:"semiBold"},ie(k(r),"cm"))),l.createElement("div",{className:"record-item"},h?l.createElement(g,{type:"bodytext-2",color:m.mbColors.gray},C("babyGrowth.head")):l.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{clipPath:"url(#clip0_855_82994)"},l.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),l.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),l.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_855_82994"},l.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),l.createElement(p,{size:"s3",color:m.colors.gray800,type:"semiBold"},ie(k(o),"cm")))))},ce=h(t)`
|
|
224
224
|
.add-profile-container {
|
|
225
225
|
display: flex;
|
|
226
226
|
flex-direction: column;
|
|
@@ -239,7 +239,7 @@ import{I as e,D as t,M as r}from"./index-d24056ce.js";export{B as BabyGrowthGend
|
|
|
239
239
|
width: 100%;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
`,
|
|
242
|
+
`,se=h(r)`
|
|
243
243
|
.hhg-modal {
|
|
244
244
|
min-width: 570px;
|
|
245
245
|
}
|
|
@@ -272,7 +272,7 @@ import{I as e,D as t,M as r}from"./index-d24056ce.js";export{B as BabyGrowthGend
|
|
|
272
272
|
gap: 16px;
|
|
273
273
|
margin-block: 16px;
|
|
274
274
|
}
|
|
275
|
-
`,de=e=>{var t,r,{babyProfiles:o,currentProfileId:a,onClose:n,onCreate:
|
|
275
|
+
`,de=e=>{var t,r,{babyProfiles:o,currentProfileId:a,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:d,open:C,isMobile:h,isMyProfile:u=!1,buttonGroup:f,newBabyValue:E,onNewBabyValueChange:w,siteType:x}=e,v=H(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType"]);const L=e=>u?l.createElement(l.Fragment,null,l.createElement(y,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},B("babyGrowth.drawer.createBaby")),l.createElement(y,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),u?null==d||d(M):null==s||s(M),n()}},B(u?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):l.createElement(y,{style:{width:"marryBaby"===x?"100%":"unset"},theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(M),null==e||e(),n()}},B("chooseBaby.button")),[M,k]=i(a||(null===(t=o[0])||void 0===t?void 0:t.id)),{t:B}=b();return h?l.createElement(ce,Object.assign({title:"Baby profiles",onClose:n,open:C,placement:"bottom"},v),(({internalClose:e})=>{var t;return l.createElement("div",{className:"add-profile-container"},l.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>l.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:M===e.id,onChange:k}))),!u&&l.createElement(j,{siteType:x,value:E,onInputChange:w,isActive:"new"===M,onChange:k})),l.createElement("div",{className:"button-group"},f||L(e)))})):l.createElement(se,{type:"confirm",isOpen:C,onClose:n,siteType:x},l.createElement("div",{className:"header"},l.createElement("div",{className:"title"},"marryBaby"===x?l.createElement(g,{type:"subtitle-1",color:m.mbColors.dark},B("chooseBaby.title")):l.createElement(p,{size:"s2",type:"semiBold"},B("chooseBaby.title")),l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},l.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),l.createElement("div",{className:"profile-container"},null===(r=o||[])||void 0===r?void 0:r.map((e=>l.createElement(Q,{key:e.id,profile:e,isActive:M===e.id,onChange:k,siteType:x}))),!u&&l.createElement(j,{value:E,onInputChange:w,isActive:"new"===M,onChange:k,siteType:x})),l.createElement("div",{className:"button-group"},f||L()))},Ce={[s.Boy]:{[d.Weight]:{[C.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-3a959642.js"),[C.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-8dd91b1d.js"),[C.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-cc8eb0ef.js")},[d.Height]:{[C.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-9a4b487d.js"),[C.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-f69e7c07.js"),[C.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-cb58cecc.js")},[d.Head]:{[C.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-c39075dc.js"),[C.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-854959a5.js"),[C.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-e387af13.js")},[d.BMI]:{[C.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-c9f3efaa.js"),[C.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-4223c4eb.js"),[C.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-f0b4b014.js")}},[s.Girl]:{[d.Weight]:{[C.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-2ed25b2a.js"),[C.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-4de3f67c.js"),[C.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-f0f76a88.js")},[d.Height]:{[C.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-3c492d07.js"),[C.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-484e0602.js"),[C.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-8ce15a6f.js")},[d.Head]:{[C.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-e30f8aee.js"),[C.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-cebb3bd4.js"),[C.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-a517c188.js")},[d.BMI]:{[C.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-042426ae.js"),[C.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-494bc828.js"),[C.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-247c7391.js")}}},me={[s.Boy]:{[d.Weight]:{[C.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-cabcd1af.js"),[C.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-2e131dd1.js"),[C.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-f1f7e94e.js")},[d.Height]:{[C.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-3c7bd88b.js"),[C.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-5f7e0a28.js"),[C.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-66c2098e.js")},[d.Head]:{[C.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-b9a6fd79.js"),[C.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-b7a84ef5.js"),[C.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-28d7fb71.js")},[d.BMI]:{[C.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-d2b2b292.js"),[C.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-e16193f5.js"),[C.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-817ec82e.js")}},[s.Girl]:{[d.Weight]:{[C.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-d6eb177b.js"),[C.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-b841255d.js"),[C.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-58a53745.js")},[d.Height]:{[C.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-ccb615d2.js"),[C.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-204b1e6d.js"),[C.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-9479f3c0.js")},[d.Head]:{[C.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-e7a5b23f.js"),[C.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-6ec149f3.js"),[C.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-2935ab55.js")},[d.BMI]:{[C.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-ecf23bd6.js"),[C.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-371459b5.js"),[C.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-8020be10.js")}}},pe=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},he=(e,t,r,l)=>l===c.Indonesia?me[e][t][r]():Ce[e][t][r](),ye=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},ge=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ue=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),fe=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},be=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Ee=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),c=l.getAttribute("x1"),s=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(l),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},we=h.div`
|
|
276
276
|
position: relative;
|
|
277
277
|
.custom-chart-label {
|
|
278
278
|
display: flex;
|
|
@@ -281,4 +281,4 @@ import{I as e,D as t,M as r}from"./index-d24056ce.js";export{B as BabyGrowthGend
|
|
|
281
281
|
align-items: center;
|
|
282
282
|
margin-top: 8px;
|
|
283
283
|
}
|
|
284
|
-
`,xe=[{name:"-3SD",label:"-3",color:m.colors.red600},{name:"-2SD",label:"-2",color:m.colors.yellow600},{name:"0Median",label:"0",color:m.colors.green600},{name:"2SD",label:"2",color:m.colors.yellow600},{name:"3SD",label:"3",color:m.colors.red600},{name:"history",color:m.colors.primaryBase}],ve=[{name:"3rd",color:m.colors.red600},{name:"15th",color:m.colors.yellow600},{name:"50th",color:m.colors.green600},{name:"85th",color:m.colors.yellow600},{name:"97th",color:m.colors.red600},{name:"history",color:m.colors.primaryBase}],Le=e=>{const{x:t,y:r,last:o,index:a,name:i}=e;return o===a?l.createElement("text",{x:t,y:r,dx:16,fill:m.colors.gray500,fontSize:12,textAnchor:"middle"},i):null},Me=({gender:e,type:t,duration:r,xLabel:
|
|
284
|
+
`,xe=[{name:"-3SD",label:"-3",color:m.colors.red600},{name:"-2SD",label:"-2",color:m.colors.yellow600},{name:"0Median",label:"0",color:m.colors.green600},{name:"2SD",label:"2",color:m.colors.yellow600},{name:"3SD",label:"3",color:m.colors.red600},{name:"history",color:m.colors.primaryBase}],ve=[{name:"3rd",color:m.colors.red600},{name:"15th",color:m.colors.yellow600},{name:"50th",color:m.colors.green600},{name:"85th",color:m.colors.yellow600},{name:"97th",color:m.colors.red600},{name:"history",color:m.colors.primaryBase}],Le=e=>{const{x:t,y:r,last:o,index:a,name:i}=e;return o===a?l.createElement("text",{x:t,y:r,dx:16,fill:m.colors.gray500,fontSize:12,textAnchor:"middle"},i):null},Me=({gender:e,type:t,duration:r,xLabel:s,x:h,y:y,toolTipLabel:g=[],isDivide:u=!0,onIsPrevious:f,locale:E,riskLevel:w,withLine:x=!1,lineData:M=[]})=>{const[k,B]=i([]),H=a([]),{t:j}=b();n((()=>{I(void 0,void 0,void 0,(function*(){const l=(yield he(e,t,r,E)).default,o=r===C.Weekly?0:1,a=fe(l,o);if(Array.isArray(a)&&0===a.length)return void(null==f||f());let i={data:a.map(((e,t)=>Object.assign(Object.assign({},e),{name:t}))),status:"full"};try{i=u?ye(h||o,a):{data:a,status:"full"}}catch(e){}if(u)switch(i.status){case"first-half":H.current=be(i.data.length-1+o,o);break;case"second-half":H.current=be(l.length,i.data.length);break;default:H.current=be(a.length-1+o,o)}else H.current=be(a.length-1+o,o);B(i.data)}))}),[e,t,r,E,f]);const[T,A]=i(!1),W=o((()=>x&&Array.isArray(k)&&k.length>0?ge(k,M):ue(k,w,g,h,y)),[x,M,k]),Y=a(null);L(Y,(()=>A(!1)));return l.createElement(we,null,l.createElement("div",{className:"custom-chart-label"},l.createElement(p,{size:"n1",color:m.colors.gray500},(()=>{switch(t){case d.Weight:return j("babyGrowth.weight");case d.Height:return j("babyGrowth.height");case d.Head:return j("babyGrowth.headCircumference");case d.BMI:return"BMI";default:return""}})()),l.createElement(p,{size:"n1",color:m.colors.gray500},E===c.Indonesia?"Z-Score":j("babyGrowth.percentiles"))),Array.isArray(W)&&W.length>0&&l.createElement(S,{height:388,className:"chart"},l.createElement(G,{data:W,margin:{top:16,right:28,bottom:8,left:0}},l.createElement(R,{stroke:m.colors.neutral100}),l.createElement(z,{trigger:"click",content:e=>l.createElement(K,Object.assign({active:!x&&T&&void 0!==h&&void 0!==y,locale:E},e))}),l.createElement(Z,{type:"number",scale:"linear",ticks:H.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:m.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),allowDecimals:!0}),l.createElement(_,{domain:[e=>Math.min(e,y||e),e=>Math.max(e,y||e)],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:m.colors.gray800}}),(E===c.Indonesia?xe:ve).map(((e,t)=>l.createElement(l.Fragment,null,"history"===e.name?l.createElement(V,{key:t,connectNulls:!0,type:"linear",dataKey:"history",stroke:e.color,strokeWidth:2,dot:{stroke:e.color,fill:e.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:e.color}):l.createElement(V,{key:e.name,type:"linear",dataKey:e.name,stroke:e.color,dot:!1,activeDot:!1,connectNulls:!0,label:l.createElement(Le,{last:(null==W?void 0:W.length)?W.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"})))),void 0!==h&&void 0!==y&&l.createElement(N,{onClick:()=>A(!0),x:0===h?1:h,y:y,r:4,shape:l.createElement(v,{ref:Y,r:4}),fill:m.colors.primaryBase,stroke:m.colors.primaryBase}))),l.createElement("div",{className:"custom-chart-label"},l.createElement("i",null),l.createElement(p,{size:"n1",color:m.colors.gray500},s)))};export{Me as BabyGrowthChart,Ce as BabyGrowthChartPercentile,me as BabyGrowthChartZScore,de as BabyGrowthChooseProfileDrawer,Y as BabyGrowthLegend,Q as BabyGrowthProfileRadio,ne as BabyGrowthRecord,F as BabyGrowthSwitch,O as BabyGrowthSwitchChart,K as BabyGrowthTooltip,oe as ChildCard,ve as LABELS_PERCENTILE,xe as LABELS_Z_SCORE,ye as divideChartData,he as generateGrowthChart,be as generateXAxisTicks,pe as getAxisYDomain,Ee as paintAxis,ue as refineDataWithDot,ge as refineDataWithLine,fe as transformDataToChart};
|
package/build/esm/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-
|
|
1
|
+
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-01abe7a1.js";import"./tslib.es6-f1b9d31e.js";import"./isProduction-e00482ad.js";
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,t as CareTypes}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,t as CareTypes}from"./types-31c78444.js";export{c as CareConstants}from"./constants-fb47e65c.js";import"./tslib.es6-f1b9d31e.js";import"react";import"./index-c9290e7f.js";import"./Locale-2a1e1450.js";import"./isProduction-e00482ad.js";import"./cookieHelper-b88c2be8.js";import"./useTranslations-86f7e107.js";import"./translationsContext-d4d12e4a.js";import"string-format";import"lodash/debounce";import"./index-4b19571c.js";import"./index.styled-839052ac.js";import"./utils-049d75fa.js";import"styled-components";import"./index-6b049c9f.js";import"./theme-6dca57c7.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-305b5046.js";
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Alert,e as ArticleCard,s as BMICardEmbed,w as BMRCardEmbed,t as BabyGrowthCardEmbed,u as BabyPoopEmbed,B as Badge,a as BorderHeading,f as Breadcrumbs,l as Carousel,g as CategoryCard,C as Checkbox,h as CheckboxGroup,q as CookieAcceptConfirm,y as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,p as FloatButtonGroup,G as Grid,I as IconText,L as Immunization,O as OvulationCardEmbed,x as PWGCardEmbed,P as Pagination,d as Progress,i as ProgressBar,R as RateStars,H as RecordsByAgeGroup,k as ScrollList,r as SeoHead,S as Shadow,z as ShareContainer,E as ShareDrawer,j as SideMenu,m as StatisticCard,o as SurveyThankyouCard,v as THRCardEmbed,n as Table,T as Tag,J as TimelineBanner,b as Toggle,U as UnderlinedLink,c as Uploader,V as VaccineCard,K as VaccineDetailPopup}from"./index-
|
|
1
|
+
export{A as Alert,e as ArticleCard,s as BMICardEmbed,w as BMRCardEmbed,t as BabyGrowthCardEmbed,u as BabyPoopEmbed,B as Badge,a as BorderHeading,f as Breadcrumbs,l as Carousel,g as CategoryCard,C as Checkbox,h as CheckboxGroup,q as CookieAcceptConfirm,y as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,p as FloatButtonGroup,G as Grid,I as IconText,L as Immunization,O as OvulationCardEmbed,x as PWGCardEmbed,P as Pagination,d as Progress,i as ProgressBar,R as RateStars,H as RecordsByAgeGroup,k as ScrollList,r as SeoHead,S as Shadow,z as ShareContainer,E as ShareDrawer,j as SideMenu,m as StatisticCard,o as SurveyThankyouCard,v as THRCardEmbed,n as Table,T as Tag,J as TimelineBanner,b as Toggle,U as UnderlinedLink,c as Uploader,V as VaccineCard,K as VaccineDetailPopup}from"./index-f49aeb82.js";export{A as Avatar,F as Flag,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-879836ec.js";export{B as Button}from"./index-10233643.js";export{A as AuthorBadge,B as BtnChoice,D as Divider,T as Tabs}from"./index-6f78a19c.js";export{H as Heading,M as Menu,P as PureInput,T as TextArea,a as TextDivider}from"./index.styled-38864315.js";export{I as Input}from"./index-4b19571c.js";export{L as Label}from"./index.styled-839052ac.js";export{L as Logo}from"./index-65b95e24.js";export{D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index.styled-89252990.js";export{T as Text}from"./index-6b049c9f.js";export{C as Container}from"./index-e1e88ca8.js";export{D as Drawer,I as Icon,M as Modal,R as RadioImageGroup}from"./index-28b8dab6.js";export{N as NewBabyProfileRadio}from"./index-8eec058f.js";export{C as CustomReferenceDot}from"./index-77a5c7ce.js";export{P as Popup}from"./dataTransform-b6ffa89e.js";export{P as PillCarousel}from"./index-1a820ef8.js";export{Footer}from"./footer.js";import"react";import"./utils-049d75fa.js";import"./useUniqueId-679a497e.js";import"./gAssets.js";import"./index-c9290e7f.js";import"./Locale-2a1e1450.js";import"./isProduction-e00482ad.js";import"./theme-6dca57c7.js";import"./tslib.es6-f1b9d31e.js";import"lodash/throttle";import"keen-slider/react";import"dayjs";import"./screenSizeContext-796cb6e5.js";import"styled-components";import"./useTranslations-86f7e107.js";import"./translationsContext-d4d12e4a.js";import"string-format";import"date-fns";import"@mantine/core";import"./index.styled-c3d5eff6.js";import"./index.styled-981e6c04.js";import"./cookieHelper-b88c2be8.js";import"slugify";import"./routing-6d3d5706.js";import"dayjs/plugin/relativeTime";import"./index-c2de5d7b.js";import"./index-e2b7ef68.js";import"@mantine/hooks";import"./index-881e5990.js";import"react-hook-form";import"./useHealthToolCache-3488ead9.js";import"./getDynamicHealthTool-0aab98fc.js";import"./core-01abe7a1.js";import"./normalizeLink-1d2dc701.js";import"./useOutsideClick-305b5046.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-03e2a2b1.js";import"@mantine/dates";import"./constants-fb47e65c.js";import"./useIsInit-e900b10b.js";import"lodash/debounce";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-057c4f10.js";import"react-dom";import"./index.styled-8aca10eb.js";import"./index-43d2bffe.js";import"@mantine/carousel";
|
package/build/esm/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Locale-
|
|
1
|
+
import"./Locale-2a1e1450.js";export{a as CARE_BOOKING_LOCALES,C as CARE_LOCALES,F as FAVICONS,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,b as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,c as siteHost,s as siteOptions}from"./index-c9290e7f.js";export{i as isProduction}from"./isProduction-e00482ad.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-f1b9d31e.js";import{i as e}from"./isProduction-e00482ad.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{as as i,at as o}from"./index.styled-53842855.js";const t=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},a=e=>{var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:u(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(u),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},r=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},s=e=>({postTitle:e.post_title,permalink:e.permalink}),u=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=>u(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?s(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,w,h,b,k,I,C,S,T,x,A,B,P,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.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===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.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===(N=e.mentioned)||void 0===N?void 0:N.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:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:d,formatReviewedCategory:s,formatCategory:u,formatCategoryApi:e=>e?{categoryInfo:u(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(u)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{t as P,y as a,c as b,g as c,h as d,p as e,w as f,f as g,a as h,u as i};
|
|
1
|
+
import e from"react";import{as as i,at as o}from"./index.styled-981e6c04.js";const t=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},a=e=>{var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:u(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(u),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},r=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},s=e=>({postTitle:e.post_title,permalink:e.permalink}),u=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=>u(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?s(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,w,h,b,k,I,C,S,T,x,A,B,P,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.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===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.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===(N=e.mentioned)||void 0===N?void 0:N.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:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:d,formatReviewedCategory:s,formatCategory:u,formatCategoryApi:e=>e?{categoryInfo:u(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(u)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{t as P,y as a,c as b,g as c,h as d,p as e,w as f,f as g,a as h,u as i};
|
package/build/esm/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{B as t}from"./index-
|
|
1
|
+
import e from"react";import{B as t}from"./index-10233643.js";import{C as a}from"./index-e1e88ca8.js";import{T as l}from"./index-6b049c9f.js";import{d as n}from"./index-c9290e7f.js";import{t as o}from"./theme-6dca57c7.js";import{u as i}from"./useTranslations-86f7e107.js";import{L as r}from"./index-65b95e24.js";import{M as c}from"./index-c2de5d7b.js";import"./tslib.es6-f1b9d31e.js";import"./utils-049d75fa.js";import"styled-components";import"./gAssets.js";import"./isProduction-e00482ad.js";import"./Locale-2a1e1450.js";import"./translationsContext-d4d12e4a.js";import"string-format";import"./index.styled-c3d5eff6.js";var s="Lj0qoTD",m="OO-qFWT";const d=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:m,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),v=({className:r,type:c="main",footerInfo:m,isMobile:v,locale:u})=>{var E,g,y,p,N,b,f,h,k,F,$,z,j,C,T,x,M,L,w,A,_,H,B,I,G,S,D,q;const{t:J}=i(),K=null==m?void 0:m.menu,O=(null===(g=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===g?void 0:g.filter(Boolean))||[];return e.createElement("footer",{className:`${s} ${r||""}`,style:"mini"===c?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":c},"main"===c?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==m?void 0:m.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===u})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(p=null==m?void 0:m.general)||void 0===p?void 0:p.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.title),e.createElement("div",{className:"icons"},null===(f=null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.socials)||void 0===f?void 0:f.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(k=null===(h=K[0])||void 0===h?void 0:h.items)||void 0===k?void 0:k.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(F=K[1])||void 0===F?void 0:F.menu_title),null===(z=null===($=K[1])||void 0===$?void 0:$.items)||void 0===z?void 0:z.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[u]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(j=K[2])||void 0===j?void 0:j.menu_title),null===(T=null===(C=K[2])||void 0===C?void 0:C.items)||void 0===T?void 0:T.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(x=null==m?void 0:m.branch)||void 0===x?void 0:x.title),e.createElement("div",{className:"flags"},null===(L=null===(M=null==m?void 0:m.branch)||void 0===M?void 0:M.branch)||void 0===L?void 0:L.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(d,{url:t.flag,isMobile:v,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(l,{size:"xs",type:"regular",className:"copyright-content"},null===(w=null==m?void 0:m.general)||void 0===w?void 0:w.copyright)),"vi-VN"===u&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[1])||void 0===A?void 0:A.menu_title),null===(H=null===(_=null==m?void 0:m.menu[1])||void 0===_?void 0:_.items)||void 0===H?void 0:H.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[u]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[u]}${t.url}`,size:"sm",type:"regular",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.menu_title),null===(G=null===(I=null==m?void 0:m.menu[2])||void 0===I?void 0:I.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(l,{size:"sm",type:"regular",style:{color:o.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==c&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(S=null==m?void 0:m.social)||void 0===S?void 0:S.title),e.createElement("div",{className:"icons"},null===(q=null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.socials)||void 0===q?void 0:q.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var u="B6-KmWK",E="GS-7mbG",g="qc5bEb3",y="CQGVeuT",p="_6JMoel-",N="_8eUT8Jr",b="cjDwoLi";const f=({logoType:t="marryBaby",footerMenu:l,background:n})=>{var i;if(!l)return null;const{general:s,menu:m,socials:d}=l;return e.createElement("footer",{className:u,style:{backgroundColor:n||"none"}},e.createElement("div",{className:b},e.createElement(a,null,e.createElement("div",{className:E},null==m?void 0:m.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:g,key:`mbf${l}`},e.createElement(c,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:y,key:`mbitem${l}`},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:p},e.createElement(r,{className:"logo",type:t}),e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},null==s?void 0:s.content)),e.createElement("div",{className:"social-link"},null==d?void 0:d.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{loading:"lazy",src:t,alt:a}))))))),e.createElement("div",{className:N},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-3",color:o.colors.white},null==s?void 0:s.copyright),e.createElement("div",{className:"verify"},null===(i=null==s?void 0:s.verified)||void 0===i?void 0:i.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a})))))))))},h=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(v,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(f,{footerMenu:n,background:i});export{h as Footer};
|
package/build/esm/gAssets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as e}from"./index-c9290e7f.js";import{i as s}from"./isProduction-e00482ad.js";import"./Locale-2a1e1450.js";const t="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,t,o)=>{const i="https://hhg-common."+[t||this.getBaseDomain(),o||this.subPath,e].join("/");return s||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,o=s.split("."),i=e[Object.keys(e).find((t=>s.includes(e[t])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?t:i}return t}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./tslib.es6-f1b9d31e.js";import{g as i}from"./core-01abe7a1.js";import{n as o}from"./normalizeLink-1d2dc701.js";import{c as l}from"./routing-6d3d5706.js";const e=(t,i)=>{var o,l;if(!t)return{};const e="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(o=t.link)||void 0===o?void 0:o.startsWith("http"))?t.link:`${e}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${e}/`,"/")),subtitle:t.subtitle,title:t.title}},n=i=>t(void 0,void 0,void 0,(function*(){var t,n;try{let d;d="undefined"!=typeof window?window.fetch:yield require("node-fetch");const r="tl-PH"===i?"lang=fil":"";let s=[];try{const a=yield d(o(`${l(i)}/wp-json/api/healthtools?ismenu=0${r?"&"+r:""}`)).then((t=>t.json()));s=(null===(n=null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>e(t,i))))||[]}catch(t){}return s}catch(t){console.error(t)}})),d=o=>t(void 0,void 0,void 0,(function*(){return(yield i("all-health-tools",(()=>n(o||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{d as a,e as f,n as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{L as t}from"./Locale-c8320005.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
|
|
1
|
+
import e from"react";import{L as t}from"./Locale-2a1e1450.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
|
package/build/esm/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{u as useTranslations}from"./useTranslations-
|
|
1
|
+
export{u as useTranslations}from"./useTranslations-86f7e107.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-057c4f10.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-1e0d71f3.js";export{u as useHealthToolsCache}from"./useHealthToolCache-3488ead9.js";export{u as useIsInit}from"./useIsInit-e900b10b.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-305b5046.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-679a497e.js";import"react";import"./translationsContext-d4d12e4a.js";import"string-format";import"lodash/debounce";import"./tslib.es6-f1b9d31e.js";import"./cookieHelper-b88c2be8.js";import"./getDynamicHealthTool-0aab98fc.js";import"./core-01abe7a1.js";import"./isProduction-e00482ad.js";import"./normalizeLink-1d2dc701.js";import"./routing-6d3d5706.js";import"./index-c9290e7f.js";import"./Locale-2a1e1450.js";
|