@hhgtech/hhg-components 1.28.68 → 1.28.70
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/BMI_BOYS.percentile.monthly-ec484e1d.js +688 -0
- package/build/BMI_BOYS.percentile.weekly-ffc6b5a3.js +182 -0
- package/build/BMI_BOYS.percentile.yearly-5d5dc6e9.js +83 -0
- package/build/BMI_BOYS.zscore.monthly-b8e9eb67.js +440 -0
- package/build/BMI_BOYS.zscore.weekly-b3a3fe35.js +118 -0
- package/build/BMI_BOYS.zscore.yearly-1049cff4.js +55 -0
- package/build/BMI_GIRLS.percentile.monthly-d29f1886.js +688 -0
- package/build/BMI_GIRLS.percentile.weekly-10dd3bc1.js +182 -0
- package/build/BMI_GIRLS.percentile.yearly-a4a14fb6.js +83 -0
- package/build/BMI_GIRLS.zscore.monthly-3b5b1c91.js +440 -0
- package/build/BMI_GIRLS.zscore.weekly-d8d9d85b.js +118 -0
- package/build/BMI_GIRLS.zscore.yearly-ad43326e.js +55 -0
- package/build/ChevronDown-ec7af49f.js +29 -0
- package/build/HEAD CIRCUM_BOYS.percentile.monthly-e28549df.js +688 -0
- package/build/HEAD CIRCUM_BOYS.percentile.weekly-7e0bbc5c.js +182 -0
- package/build/HEAD CIRCUM_BOYS.percentile.yearly-16d85faf.js +83 -0
- package/build/HEAD CIRCUM_BOYS.zscore.monthly-2905143d.js +440 -0
- package/build/HEAD CIRCUM_BOYS.zscore.weekly-c884eb7a.js +118 -0
- package/build/HEAD CIRCUM_BOYS.zscore.yearly-1d2e8236.js +55 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.monthly-ad2221f6.js +688 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.weekly-a0f66bc1.js +182 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.yearly-ccd016aa.js +83 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.monthly-0fd4416c.js +440 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.weekly-9c6eb011.js +118 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.yearly-bbb354f1.js +55 -0
- package/build/HEIGHT_BOYS.percentile.monthly-a0f41c2e.js +688 -0
- package/build/HEIGHT_BOYS.percentile.weekly-7bc2b867.js +182 -0
- package/build/HEIGHT_BOYS.percentile.yearly-7c2f34c6.js +237 -0
- package/build/HEIGHT_BOYS.zscore.monthly-54789026.js +440 -0
- package/build/HEIGHT_BOYS.zscore.weekly-b1360897.js +118 -0
- package/build/HEIGHT_BOYS.zscore.yearly-d5eb559f.js +153 -0
- package/build/HEIGHT_GIRLS.percentile.monthly-6f7fef3f.js +688 -0
- package/build/HEIGHT_GIRLS.percentile.weekly-fb6605ac.js +182 -0
- package/build/HEIGHT_GIRLS.percentile.yearly-19052b79.js +237 -0
- package/build/HEIGHT_GIRLS.zscore.monthly-26c2a368.js +440 -0
- package/build/HEIGHT_GIRLS.zscore.weekly-305a8f9b.js +118 -0
- package/build/HEIGHT_GIRLS.zscore.yearly-f89639ce.js +153 -0
- package/build/Subot-cc39f8f4.js +217 -0
- package/build/Visible-4860305e.js +29 -0
- package/build/WEIGHT_BOYS.percentile.monthly-7763fdac.js +688 -0
- package/build/WEIGHT_BOYS.percentile.weekly-68c7793a.js +182 -0
- package/build/WEIGHT_BOYS.percentile.yearly-425ea795.js +138 -0
- package/build/WEIGHT_BOYS.zscore.monthly-09fbb556.js +440 -0
- package/build/WEIGHT_BOYS.zscore.weekly-5b55a950.js +118 -0
- package/build/WEIGHT_BOYS.zscore.yearly-a8492c27.js +90 -0
- package/build/WEIGHT_GIRLS.percentile.monthly-104461c2.js +688 -0
- package/build/WEIGHT_GIRLS.percentile.weekly-49d203bd.js +182 -0
- package/build/WEIGHT_GIRLS.percentile.yearly-f6f1c4ad.js +138 -0
- package/build/WEIGHT_GIRLS.zscore.monthly-ba6ce356.js +440 -0
- package/build/WEIGHT_GIRLS.zscore.weekly-c4c81f65.js +118 -0
- package/build/WEIGHT_GIRLS.zscore.yearly-e1085364.js +90 -0
- package/build/adapters.js +36 -1
- package/build/{esm/animation-a158bfd1.js → animation-4eb246c7.js} +32 -10
- package/build/babyGrowth.js +913 -47
- package/build/cache.js +13 -1
- package/build/care.js +38 -1
- package/build/components.js +186 -1
- package/build/constants-3864d668.js +935 -0
- package/build/constants-fc94e094.js +255 -0
- package/build/constants.js +43 -1
- package/build/cookieHelper-5530e215.js +43 -0
- package/build/core-04836b33.js +51 -0
- package/build/dataTransform-9b71cb70.js +66 -0
- package/build/ecom.js +745 -1
- package/build/esm/BMI_BOYS.percentile.monthly-6b3461e1.js +686 -0
- package/build/esm/BMI_BOYS.percentile.weekly-38412483.js +180 -0
- package/build/esm/BMI_BOYS.percentile.yearly-e8ca2213.js +81 -0
- package/build/esm/BMI_BOYS.zscore.monthly-2f32a201.js +438 -0
- package/build/esm/BMI_BOYS.zscore.weekly-8a24d204.js +116 -0
- package/build/esm/BMI_BOYS.zscore.yearly-b332a59e.js +53 -0
- package/build/esm/BMI_GIRLS.percentile.monthly-c9ac489f.js +686 -0
- package/build/esm/BMI_GIRLS.percentile.weekly-082d024f.js +180 -0
- package/build/esm/BMI_GIRLS.percentile.yearly-57a69990.js +81 -0
- package/build/esm/BMI_GIRLS.zscore.monthly-541623fd.js +438 -0
- package/build/esm/BMI_GIRLS.zscore.weekly-31b589ac.js +116 -0
- package/build/esm/BMI_GIRLS.zscore.yearly-9b283c7c.js +53 -0
- package/build/esm/ChevronDown-0ed72d46.js +7 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-2eb54be3.js +686 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-10259bd1.js +180 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-fff4845f.js +81 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-5ccfaf6a.js +438 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-dc789dde.js +116 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-5049a9b7.js +53 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-58902be4.js +686 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-c79eb8aa.js +180 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-6ecfd9f9.js +81 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-91b64b57.js +438 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-ec7b5e8d.js +116 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-43686573.js +53 -0
- package/build/esm/HEIGHT_BOYS.percentile.monthly-2c2ec339.js +686 -0
- package/build/esm/HEIGHT_BOYS.percentile.weekly-023fd92c.js +180 -0
- package/build/esm/HEIGHT_BOYS.percentile.yearly-64408f6e.js +235 -0
- package/build/esm/HEIGHT_BOYS.zscore.monthly-4c4c0583.js +438 -0
- package/build/esm/HEIGHT_BOYS.zscore.weekly-73d758dd.js +116 -0
- package/build/esm/HEIGHT_BOYS.zscore.yearly-63b0ee31.js +151 -0
- package/build/esm/HEIGHT_GIRLS.percentile.monthly-220a156b.js +686 -0
- package/build/esm/HEIGHT_GIRLS.percentile.weekly-39ed86d3.js +180 -0
- package/build/esm/HEIGHT_GIRLS.percentile.yearly-f6f9beda.js +235 -0
- package/build/esm/HEIGHT_GIRLS.zscore.monthly-98da19db.js +438 -0
- package/build/esm/HEIGHT_GIRLS.zscore.weekly-b46182b8.js +116 -0
- package/build/esm/HEIGHT_GIRLS.zscore.yearly-e17c3753.js +151 -0
- package/build/esm/Subot-73dd692f.js +212 -0
- package/build/esm/Visible-b2077c55.js +7 -0
- package/build/esm/WEIGHT_BOYS.percentile.monthly-43751c6a.js +686 -0
- package/build/esm/WEIGHT_BOYS.percentile.weekly-65778018.js +180 -0
- package/build/esm/WEIGHT_BOYS.percentile.yearly-68c4f38f.js +136 -0
- package/build/esm/WEIGHT_BOYS.zscore.monthly-847746a9.js +438 -0
- package/build/esm/WEIGHT_BOYS.zscore.weekly-a1f2fe34.js +116 -0
- package/build/esm/WEIGHT_BOYS.zscore.yearly-119adddc.js +88 -0
- package/build/esm/WEIGHT_GIRLS.percentile.monthly-4c5ceb09.js +686 -0
- package/build/esm/WEIGHT_GIRLS.percentile.weekly-ddff2e29.js +180 -0
- package/build/esm/WEIGHT_GIRLS.percentile.yearly-5a344597.js +136 -0
- package/build/esm/WEIGHT_GIRLS.zscore.monthly-a6917c8a.js +438 -0
- package/build/esm/WEIGHT_GIRLS.zscore.weekly-5b74c62e.js +116 -0
- package/build/esm/WEIGHT_GIRLS.zscore.yearly-8507cd6a.js +88 -0
- package/build/esm/adapters.js +26 -1
- package/build/{animation-ea278d9a.js → esm/animation-bdb3ff49.js} +22 -10
- package/build/esm/babyGrowth.js +883 -47
- package/build/esm/cache.js +3 -1
- package/build/esm/care.js +26 -1
- package/build/esm/components.js +88 -1
- package/build/esm/constants-bf79fcda.js +238 -0
- package/build/esm/constants-da0dfbf1.js +932 -0
- package/build/esm/constants.js +4 -1
- package/build/esm/cookieHelper-8ee29f1a.js +39 -0
- package/build/esm/core-23d12cc0.js +47 -0
- package/build/esm/dataTransform-1495a226.js +56 -0
- package/build/esm/ecom.js +737 -1
- package/build/esm/footer.js +31 -1
- package/build/esm/gAssets.js +5 -1
- package/build/esm/getDynamicHealthTool-a43e5baa.js +44 -0
- package/build/esm/getSocialList-961c0579.js +66 -0
- package/build/esm/hooks.js +21 -1
- package/build/esm/i18n-values/en-PH.js +600 -1
- package/build/esm/i18n-values/hi-IN.js +600 -1
- package/build/esm/i18n-values/id-ID.js +600 -1
- package/build/esm/i18n-values/km-KH.js +600 -1
- package/build/esm/i18n-values/ms-MY.js +602 -1
- package/build/esm/i18n-values/my-MM.js +600 -1
- package/build/esm/i18n-values/th-TH.js +600 -1
- package/build/esm/i18n-values/tl-PH.js +600 -1
- package/build/esm/i18n-values/vi-VN.js +607 -1
- package/build/esm/i18n-values/vi-VN_MB.js +607 -1
- package/build/esm/i18n-values/zh-TW.js +600 -1
- package/build/esm/i18n.js +55 -1
- package/build/esm/i18nV2.js +18 -1
- package/build/esm/index-01e95463.js +1936 -0
- package/build/esm/index-0b1da466.js +8 -0
- package/build/esm/index-191e851e.js +33 -0
- package/build/esm/index-2a68f8b2.js +24 -0
- package/build/esm/index-355c0d8a.js +17 -0
- package/build/esm/index-552efa5f.js +8302 -0
- package/build/esm/index-652f4b90.js +116 -0
- package/build/esm/index-70eeb14d.js +24 -0
- package/build/esm/index-852bb5ca.js +905 -0
- package/build/esm/index-9622b7d8.js +23 -0
- package/build/esm/index-9d3bbec1.js +124 -0
- package/build/esm/index-a23ed47f.js +53 -0
- package/build/esm/index-a3806b2a.js +14 -0
- package/build/esm/index-a5ac9bab.js +32 -0
- package/build/esm/index-a8506e24.js +152 -0
- package/build/esm/index-aa97bf26.js +33 -0
- package/build/esm/index-bd89745e.js +151 -0
- package/build/esm/index-bf14ddf1.js +184 -0
- package/build/esm/index-c28b5670.js +3241 -0
- package/build/esm/index-cc7415a3.js +837 -0
- package/build/esm/index-d1d2e96b.js +29 -0
- package/build/esm/index-d57cd8e6.js +615 -0
- package/build/esm/index-e183dc84.js +71 -0
- package/build/esm/index-ebb8bd0e.js +149 -0
- package/build/esm/index-ec1cc2ea.js +52 -0
- package/build/esm/index-f1227130.js +370 -0
- package/build/esm/index-f5f8c84b.js +5 -0
- package/build/esm/index-fb17aef5.js +12 -0
- package/build/esm/index.js +190 -1
- package/build/{index.styled-625bfdc7.js → esm/index.styled-385c2908.js} +17 -5
- package/build/esm/index.styles-31411b37.js +1303 -0
- package/build/esm/isProduction-9081cff7.js +27 -0
- package/build/esm/lead.js +2140 -1
- package/build/esm/localizeNumberFormat-d3e4f990.js +23 -0
- package/build/esm/mantine.js +113 -1
- package/build/esm/misc.js +22 -1
- package/build/esm/navigation.js +51 -1
- package/build/esm/normalizeLink-139f9dfd.js +12 -0
- package/build/esm/number-f0945de9.js +38 -0
- package/build/esm/onboardingV2.js +860 -34
- package/build/esm/paths-4eadd090.js +14 -0
- package/build/esm/pwg.js +208 -7
- package/build/esm/routing-b5780749.js +40 -0
- package/build/esm/subot.js +4553 -134
- package/build/esm/theme-7522724d.js +186 -0
- package/build/esm/together.js +52 -1
- package/build/esm/translationsContext-62ed87ff.js +5 -0
- package/build/esm/tslib.es6-f79929c2.js +38 -0
- package/build/esm/types-0757e895.js +8015 -0
- package/build/esm/types-40018b94.js +3432 -0
- package/build/esm/types-d32df09b.js +21 -0
- package/build/esm/types.js +1 -1
- package/build/esm/unifyEnv.js +42 -1
- package/build/esm/useCategory-e00a99e3.js +292 -0
- package/build/esm/useHealthToolCache-3ab5f2b6.js +17 -0
- package/build/esm/useIsInit-18a571ff.js +11 -0
- package/build/esm/useOutsideClick-8a0c90ee.js +45 -0
- package/build/esm/usePlacesAutocomplete-d9cfd28e.js +80 -0
- package/build/esm/useScrollbarSize-ee04fb14.js +57 -0
- package/build/esm/useTranslations-d53557b4.js +26 -0
- package/build/esm/useUniqueId-fc42d583.js +41 -0
- package/build/esm/utils-2af1561c.js +367 -0
- package/build/esm/utils-5e5da593.js +22 -0
- package/build/esm/utils-72693be6.js +1124 -0
- package/build/esm/utils-f7ab8c32.js +132 -0
- package/build/esm/vaccination.js +868 -40
- package/build/footer.js +39 -1
- package/build/gAssets.js +14 -1
- package/build/getDynamicHealthTool-b66c50c2.js +48 -0
- package/build/getSocialList-0c2f74e9.js +72 -0
- package/build/hooks.js +44 -1
- package/build/i18n-values/en-PH.js +611 -1
- package/build/i18n-values/hi-IN.js +611 -1
- package/build/i18n-values/id-ID.js +611 -1
- package/build/i18n-values/km-KH.js +611 -1
- package/build/i18n-values/ms-MY.js +613 -1
- package/build/i18n-values/my-MM.js +611 -1
- package/build/i18n-values/th-TH.js +611 -1
- package/build/i18n-values/tl-PH.js +611 -1
- package/build/i18n-values/vi-VN.js +618 -1
- package/build/i18n-values/vi-VN_MB.js +618 -1
- package/build/i18n-values/zh-TW.js +611 -1
- package/build/i18n.js +64 -1
- package/build/i18nV2.js +26 -1
- package/build/index-13da9bbd.js +8373 -0
- package/build/index-165c76af.js +30 -0
- package/build/index-2d4e4a2c.js +30 -0
- package/build/index-3540ce3f.js +380 -0
- package/build/index-473e8c3c.js +39 -0
- package/build/index-48b608d8.js +123 -0
- package/build/index-4d393920.js +191 -0
- package/build/index-51cda470.js +39 -0
- package/build/index-5e3660ec.js +14 -0
- package/build/index-69a38997.js +930 -0
- package/build/index-7144e07a.js +38 -0
- package/build/index-72944b3e.js +853 -0
- package/build/index-78055ee8.js +3261 -0
- package/build/index-95dd817d.js +1994 -0
- package/build/index-9625ab6c.js +7 -0
- package/build/index-970717a9.js +156 -0
- package/build/index-97f95550.js +23 -0
- package/build/index-a00da8f4.js +59 -0
- package/build/index-a69b48c2.js +20 -0
- package/build/index-add37f18.js +624 -0
- package/build/index-b0333d49.js +30 -0
- package/build/index-be2d90cb.js +35 -0
- package/build/index-bef45e43.js +55 -0
- package/build/index-c7dc021b.js +157 -0
- package/build/index-cd1375cc.js +18 -0
- package/build/index-d3d46009.js +159 -0
- package/build/index-e592738b.js +77 -0
- package/build/index-ed5f7bf2.js +133 -0
- package/build/index.js +436 -1
- package/build/{esm/index.styled-ac7ac0fc.js → index.styled-97b37364.js} +25 -5
- package/build/index.styles-2434bd17.js +1342 -0
- package/build/isProduction-4f301fa7.js +29 -0
- package/build/lead.js +2168 -1
- package/build/localizeNumberFormat-84d686f7.js +31 -0
- package/build/mantine.js +154 -1
- package/build/misc.js +70 -1
- package/build/navigation.js +61 -1
- package/build/normalizeLink-cc2af392.js +15 -0
- package/build/number-29e6fe47.js +40 -0
- package/build/onboardingV2.js +892 -34
- package/build/paths-da1bc0ab.js +16 -0
- package/build/pwg.js +217 -7
- package/build/routing-b27d22a5.js +46 -0
- package/build/subot.js +4592 -134
- package/build/theme-30426d81.js +189 -0
- package/build/together.js +112 -1
- package/build/translationsContext-7e9f4617.js +7 -0
- package/build/tslib.es6-abc17c4d.js +41 -0
- package/build/types-52edc091.js +24 -0
- package/build/types-72f2c593.js +8084 -0
- package/build/types-b7c4f1cc.js +3446 -0
- package/build/types.js +56 -1
- package/build/unifyEnv.js +46 -1
- package/build/useCategory-c53c40ba.js +299 -0
- package/build/useHealthToolCache-d358ef43.js +19 -0
- package/build/useIsInit-447f599e.js +13 -0
- package/build/useOutsideClick-44f3b64d.js +49 -0
- package/build/usePlacesAutocomplete-f63f4097.js +84 -0
- package/build/useScrollbarSize-3e11e4b6.js +64 -0
- package/build/useTranslations-64bdaca7.js +32 -0
- package/build/useUniqueId-27dee48b.js +44 -0
- package/build/utils-2b307237.js +25 -0
- package/build/utils-386fbc52.js +1171 -0
- package/build/utils-5c554121.js +384 -0
- package/build/utils-d8cae1f5.js +143 -0
- package/build/vaccination.js +891 -40
- package/package.json +4 -5
- package/build/BMI_BOYS.percentile.monthly-8cc875f7.js +0 -1
- package/build/BMI_BOYS.percentile.weekly-b45b05e3.js +0 -1
- package/build/BMI_BOYS.percentile.yearly-e4f1d19c.js +0 -1
- package/build/BMI_BOYS.zscore.monthly-e51737eb.js +0 -1
- package/build/BMI_BOYS.zscore.weekly-4080c0d5.js +0 -1
- package/build/BMI_BOYS.zscore.yearly-703e5747.js +0 -1
- package/build/BMI_GIRLS.percentile.monthly-ac5a001d.js +0 -1
- package/build/BMI_GIRLS.percentile.weekly-6a6f4703.js +0 -1
- package/build/BMI_GIRLS.percentile.yearly-8eb7e8e5.js +0 -1
- package/build/BMI_GIRLS.zscore.monthly-c2763465.js +0 -1
- package/build/BMI_GIRLS.zscore.weekly-7438d8b6.js +0 -1
- package/build/BMI_GIRLS.zscore.yearly-a56ffb0c.js +0 -1
- package/build/ChevronDown-81b50697.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.monthly-cccf9306.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.weekly-85fc8a7e.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.yearly-d22ad913.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.monthly-4db20906.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.weekly-1a4dc975.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.yearly-a2bcdd3a.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.monthly-13e127f5.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.weekly-95a7695c.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.yearly-852dc893.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.monthly-9865857d.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.weekly-9bdf4dda.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.yearly-ac24fb2f.js +0 -1
- package/build/HEIGHT_BOYS.percentile.monthly-691b0568.js +0 -1
- package/build/HEIGHT_BOYS.percentile.weekly-520bd6ac.js +0 -1
- package/build/HEIGHT_BOYS.percentile.yearly-9093722e.js +0 -1
- package/build/HEIGHT_BOYS.zscore.monthly-84db220e.js +0 -1
- package/build/HEIGHT_BOYS.zscore.weekly-ce0c52d1.js +0 -1
- package/build/HEIGHT_BOYS.zscore.yearly-dab7d4e0.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.monthly-7f42e4cd.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.weekly-79ca42e5.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.yearly-4e11d0f8.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.monthly-74be7929.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.weekly-a47a1d90.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.yearly-f4984496.js +0 -1
- package/build/Subot-b0700a95.js +0 -1
- package/build/Visible-0267024a.js +0 -1
- package/build/WEIGHT_BOYS.percentile.monthly-08b33be0.js +0 -1
- package/build/WEIGHT_BOYS.percentile.weekly-65a4fa70.js +0 -1
- package/build/WEIGHT_BOYS.percentile.yearly-f3b46cc5.js +0 -1
- package/build/WEIGHT_BOYS.zscore.monthly-d1191a6a.js +0 -1
- package/build/WEIGHT_BOYS.zscore.weekly-61c60cf9.js +0 -1
- package/build/WEIGHT_BOYS.zscore.yearly-0d89c866.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.monthly-221c1ba4.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.weekly-fbd203a6.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.yearly-36a909c2.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.monthly-09b6ae5b.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.weekly-7ada849a.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.yearly-5115a509.js +0 -1
- package/build/constants-47b9b5ff.js +0 -108
- package/build/constants-8d5fe5b9.js +0 -1
- package/build/cookieHelper-effc4373.js +0 -1
- package/build/core-fc6dbe08.js +0 -1
- package/build/dataTransform-ad721ec5.js +0 -1
- package/build/esm/BMI_BOYS.percentile.monthly-2aa26d5a.js +0 -1
- package/build/esm/BMI_BOYS.percentile.weekly-838f6b27.js +0 -1
- package/build/esm/BMI_BOYS.percentile.yearly-e77609d7.js +0 -1
- package/build/esm/BMI_BOYS.zscore.monthly-2657168d.js +0 -1
- package/build/esm/BMI_BOYS.zscore.weekly-d3c18887.js +0 -1
- package/build/esm/BMI_BOYS.zscore.yearly-3759a54e.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.monthly-f3e35273.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.weekly-7936ee97.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.yearly-757b0bc4.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.monthly-d9760b61.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.weekly-a58e0db1.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.yearly-92413c27.js +0 -1
- package/build/esm/ChevronDown-e7d44dc3.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-c50f125e.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-29038598.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-32c4e2be.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-cd04e4b1.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-6b63745c.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-3a5be78c.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-c7996a02.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-553c94d5.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-97f86688.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-a442f7cc.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-cdd37afd.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-50d9daff.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.monthly-53580c1f.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.weekly-60514fb8.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.yearly-d6b456a7.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.monthly-21bd1444.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.weekly-2a4e7aa0.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.yearly-7f68c522.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.monthly-d5d7448a.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.weekly-c3c18801.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.yearly-3491901c.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.monthly-9f15dd03.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.weekly-81319284.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.yearly-8a7db57c.js +0 -1
- package/build/esm/Subot-fcd7c77c.js +0 -1
- package/build/esm/Visible-66d0e6f3.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.monthly-0f5ea175.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.weekly-88f50098.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.yearly-63383bc3.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.monthly-bf93eec1.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.weekly-fe0600be.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.yearly-4212bebb.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.monthly-6cc8cf8c.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.weekly-05d66e6d.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.yearly-b8c1af06.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.monthly-8c9195d5.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.weekly-4ef9aeee.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.yearly-0ccaeb51.js +0 -1
- package/build/esm/constants-046883ea.js +0 -1
- package/build/esm/constants-1e65de37.js +0 -108
- package/build/esm/cookieHelper-e37e6893.js +0 -1
- package/build/esm/core-7a237cdc.js +0 -1
- package/build/esm/dataTransform-f4476a6b.js +0 -1
- package/build/esm/getDynamicHealthTool-e095ea8b.js +0 -1
- package/build/esm/getSocialList-5f74d2b2.js +0 -1
- package/build/esm/index-006bca17.js +0 -1
- package/build/esm/index-068a9606.js +0 -137
- package/build/esm/index-0d0e5f45.js +0 -1
- package/build/esm/index-1e29d7b0.js +0 -1
- package/build/esm/index-2b572b4f.js +0 -1
- package/build/esm/index-318d4230.js +0 -117
- package/build/esm/index-39174b30.js +0 -1
- package/build/esm/index-3bfcc95c.js +0 -1
- package/build/esm/index-3c612859.js +0 -1
- package/build/esm/index-4004c359.js +0 -113
- package/build/esm/index-41f67971.js +0 -177
- package/build/esm/index-42a8c7e8.js +0 -1430
- package/build/esm/index-461eded2.js +0 -2748
- package/build/esm/index-575f65cb.js +0 -1
- package/build/esm/index-7f4008ff.js +0 -1
- package/build/esm/index-81dbde00.js +0 -375
- package/build/esm/index-99348fe5.js +0 -1
- package/build/esm/index-9b8a2194.js +0 -1
- package/build/esm/index-9d529405.js +0 -1
- package/build/esm/index-a445a873.js +0 -1
- package/build/esm/index-ab99f4fa.js +0 -1
- package/build/esm/index-b7782e6c.js +0 -1
- package/build/esm/index-b7a87c5c.js +0 -50
- package/build/esm/index-c737fbcc.js +0 -1
- package/build/esm/index-dfe2918d.js +0 -1
- package/build/esm/index-e7dea007.js +0 -1
- package/build/esm/index-eab0e39a.js +0 -1
- package/build/esm/index-fa743e14.js +0 -1
- package/build/esm/index.styles-d0b249c6.js +0 -817
- package/build/esm/isProduction-819e0c5c.js +0 -1
- package/build/esm/localizeNumberFormat-87b8adfd.js +0 -1
- package/build/esm/normalizeLink-86ab5a4c.js +0 -1
- package/build/esm/number-087a7e5f.js +0 -1
- package/build/esm/paths-838a5528.js +0 -1
- package/build/esm/routing-c85cbf05.js +0 -1
- package/build/esm/theme-691eca44.js +0 -1
- package/build/esm/translationsContext-f8842fe7.js +0 -1
- package/build/esm/tslib.es6-1ab8a2bb.js +0 -1
- package/build/esm/types-2d76a291.js +0 -3004
- package/build/esm/types-81267cf7.js +0 -1
- package/build/esm/types-e02aa1d1.js +0 -785
- package/build/esm/useCategory-16048c77.js +0 -1
- package/build/esm/useHealthToolCache-b2ecca8b.js +0 -1
- package/build/esm/useIsInit-c9c6a218.js +0 -1
- package/build/esm/useOutsideClick-9787ba70.js +0 -1
- package/build/esm/usePlacesAutocomplete-1966a8e8.js +0 -1
- package/build/esm/useScrollbarSize-2cadb783.js +0 -1
- package/build/esm/useTranslations-06f29a74.js +0 -1
- package/build/esm/useUniqueId-8d28d0f0.js +0 -1
- package/build/esm/utils-21a3e198.js +0 -1
- package/build/esm/utils-581f9d39.js +0 -8
- package/build/esm/utils-8845cf64.js +0 -141
- package/build/esm/utils-9188a853.js +0 -1
- package/build/getDynamicHealthTool-110fd918.js +0 -1
- package/build/getSocialList-eca125e9.js +0 -1
- package/build/index-06e0154a.js +0 -177
- package/build/index-07abd94a.js +0 -1
- package/build/index-0c773078.js +0 -117
- package/build/index-170f5567.js +0 -1
- package/build/index-19ccb0c7.js +0 -1
- package/build/index-219cacd2.js +0 -1
- package/build/index-2c0386df.js +0 -50
- package/build/index-2ce34495.js +0 -1
- package/build/index-3f31aa06.js +0 -1
- package/build/index-686fe563.js +0 -1
- package/build/index-6c8c7fa5.js +0 -1
- package/build/index-76c307b4.js +0 -375
- package/build/index-78e20b2b.js +0 -1
- package/build/index-853a455f.js +0 -1
- package/build/index-9834ba3a.js +0 -1
- package/build/index-9c1259e4.js +0 -1
- package/build/index-9eed92e6.js +0 -1
- package/build/index-a046b313.js +0 -137
- package/build/index-ae78fa34.js +0 -113
- package/build/index-c4552011.js +0 -1
- package/build/index-d0a7d5e2.js +0 -1
- package/build/index-d59720e6.js +0 -1
- package/build/index-de63ce4e.js +0 -1
- package/build/index-e363ea7e.js +0 -1
- package/build/index-e4952f3b.js +0 -2748
- package/build/index-e9919dca.js +0 -1430
- package/build/index-f124e061.js +0 -1
- package/build/index-fc3d21c5.js +0 -1
- package/build/index.styles-e56f16e2.js +0 -817
- package/build/isProduction-b8d43f53.js +0 -1
- package/build/localizeNumberFormat-7b0e4009.js +0 -1
- package/build/normalizeLink-eb3980aa.js +0 -1
- package/build/number-03c2dc35.js +0 -1
- package/build/paths-38b399e5.js +0 -1
- package/build/routing-fa35242c.js +0 -1
- package/build/theme-58404344.js +0 -1
- package/build/translationsContext-6a4e467c.js +0 -1
- package/build/tslib.es6-f82cfdbc.js +0 -1
- package/build/types-006c0884.js +0 -785
- package/build/types-48100068.js +0 -3004
- package/build/types-b4886ab8.js +0 -1
- package/build/useCategory-5efbe937.js +0 -1
- package/build/useHealthToolCache-4085d047.js +0 -1
- package/build/useIsInit-cde99e17.js +0 -1
- package/build/useOutsideClick-8d455bb1.js +0 -1
- package/build/usePlacesAutocomplete-fa0acdc7.js +0 -1
- package/build/useScrollbarSize-3593573d.js +0 -1
- package/build/useTranslations-d91f297f.js +0 -1
- package/build/useUniqueId-76286c45.js +0 -1
- package/build/utils-6c4e6bc4.js +0 -8
- package/build/utils-dd2fab54.js +0 -141
- package/build/utils-e1f42597.js +0 -1
- package/build/utils-fade3897.js +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const PATHS = {
|
|
2
|
+
GET_CITIES_LIST: 'api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}&client={client}',
|
|
3
|
+
GET_CITY: 'api/lists/cities?ids={ids}&site={domain}&longitude={longitude}&latitude={latitude}',
|
|
4
|
+
GET_HOME_SEARCH: 'api/search/?_home=1&city_id={city}&keyword={keyword}&site={domain}&latitude={lat}&longitude={lng}',
|
|
5
|
+
GET_SEARCH_V2: 'api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}&specialty_id={specialty_id}&client_slug={client_slug}&msd={msd}',
|
|
6
|
+
GET_CITY_BY_IP: 'api/geobyip?site={domain}&latitude={lat}&longitude={lng}&_nopaging={noPaging}&client={client}',
|
|
7
|
+
GET_DOCTOR_DETAIL: 'api/doctors/{id}?site={site}',
|
|
8
|
+
GET_HOSPITAL_DETAIL: 'api/hospital/branch/{id}?site={site}',
|
|
9
|
+
GET_SERVICE_DETAIL: 'api/hospital/service/{id}?site={site}',
|
|
10
|
+
GET_SEARCH_SPECIALTY: 'api/v2/specialties/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}&msd={msd}',
|
|
11
|
+
GET_SEARCH_POPULAR_KEY: 'api/search/keywords?site={domain}&sort_by={sort_by}&sort_order={sort_order}&type={searchType}',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { PATHS as P };
|
package/build/esm/pwg.js
CHANGED
|
@@ -1,4 +1,51 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { useMemo, useState, useRef } from 'react';
|
|
2
|
+
import { M as MarryBabyText, a as MarryBabyHeading } from './index-9622b7d8.js';
|
|
3
|
+
import { T as Text } from './index-ebb8bd0e.js';
|
|
4
|
+
import { P as PillCarousel } from './index-652f4b90.js';
|
|
5
|
+
import { u as useTranslations } from './useTranslations-d53557b4.js';
|
|
6
|
+
import { t as theme } from './theme-7522724d.js';
|
|
7
|
+
import { ResponsiveContainer, AreaChart, CartesianGrid, Tooltip, XAxis, YAxis, Area, ReferenceDot } from 'recharts';
|
|
8
|
+
import { C as CustomReferenceDot } from './index-0b1da466.js';
|
|
9
|
+
import { a as useOutsideClick } from './useOutsideClick-8a0c90ee.js';
|
|
10
|
+
import styled from 'styled-components';
|
|
11
|
+
import { _ as __rest } from './tslib.es6-f79929c2.js';
|
|
12
|
+
import './index.styled-385c2908.js';
|
|
13
|
+
import '@mantine/core';
|
|
14
|
+
import './Subot-73dd692f.js';
|
|
15
|
+
import './index-ec1cc2ea.js';
|
|
16
|
+
import './index-852bb5ca.js';
|
|
17
|
+
import 'date-fns/locale';
|
|
18
|
+
import './isProduction-9081cff7.js';
|
|
19
|
+
import './index-01e95463.js';
|
|
20
|
+
import '@hhgtech/icons/other';
|
|
21
|
+
import '@mantine/hooks';
|
|
22
|
+
import 'dayjs';
|
|
23
|
+
import './utils-f7ab8c32.js';
|
|
24
|
+
import '@mantine/carousel';
|
|
25
|
+
import 'classnames';
|
|
26
|
+
import './useUniqueId-fc42d583.js';
|
|
27
|
+
import '@hhgtech/icons/core';
|
|
28
|
+
import './index-2a68f8b2.js';
|
|
29
|
+
import '@mantine/dates';
|
|
30
|
+
import './translationsContext-62ed87ff.js';
|
|
31
|
+
import 'string-format';
|
|
32
|
+
|
|
33
|
+
const CustomizedAxisTick = (props) => {
|
|
34
|
+
const { x, y, payload, activeWeek } = props;
|
|
35
|
+
if (activeWeek === payload.value) {
|
|
36
|
+
return (React__default.createElement("g", { transform: `translate(${x},${y})` },
|
|
37
|
+
React__default.createElement("circle", { r: 12, fill: props.siteType === 'marryBaby'
|
|
38
|
+
? theme.mbColors.pink
|
|
39
|
+
: theme.colors.primaryBase }),
|
|
40
|
+
React__default.createElement("text", { textAnchor: "middle", alignmentBaseline: "central", fill: theme.colors.white, fontFamily: "Inter", fontWeight: "600", fontSize: "12px" }, payload.value)));
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return (React__default.createElement("g", { transform: `translate(${x},${y})` },
|
|
44
|
+
React__default.createElement("text", { textAnchor: "middle", alignmentBaseline: "central", fill: theme.colors.gray600, fontFamily: "Inter", fontWeight: "400", fontSize: "12px" }, payload.value)));
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const StyledTooltip = styled.div `
|
|
2
49
|
/* position: absolute; */
|
|
3
50
|
display: flex;
|
|
4
51
|
flex-direction: column;
|
|
@@ -18,7 +65,7 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as
|
|
|
18
65
|
display: flex;
|
|
19
66
|
align-items: center;
|
|
20
67
|
padding: 4px 8px;
|
|
21
|
-
background: ${
|
|
68
|
+
background: ${theme.colors.yellow600};
|
|
22
69
|
border-radius: 3px;
|
|
23
70
|
} */
|
|
24
71
|
& > * {
|
|
@@ -32,7 +79,8 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as
|
|
|
32
79
|
border-radius: 2px;
|
|
33
80
|
background: #ffffff;
|
|
34
81
|
}
|
|
35
|
-
|
|
82
|
+
`;
|
|
83
|
+
const StyledChart = styled.div `
|
|
36
84
|
position: relative;
|
|
37
85
|
width: 100%;
|
|
38
86
|
.custom-chart-label {
|
|
@@ -45,7 +93,8 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as
|
|
|
45
93
|
display: flex;
|
|
46
94
|
justify-content: space-between;
|
|
47
95
|
}
|
|
48
|
-
|
|
96
|
+
`;
|
|
97
|
+
const StyledChartLegend = styled.div `
|
|
49
98
|
display: flex;
|
|
50
99
|
gap: 40px;
|
|
51
100
|
justify-content: center;
|
|
@@ -55,14 +104,151 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as
|
|
|
55
104
|
align-items: center;
|
|
56
105
|
gap: 4px;
|
|
57
106
|
}
|
|
58
|
-
|
|
107
|
+
`;
|
|
108
|
+
|
|
109
|
+
const LABELS_COLOR = [
|
|
110
|
+
{
|
|
111
|
+
name: 'overweight',
|
|
112
|
+
backgroundColor: theme.colors.yellow50,
|
|
113
|
+
color: theme.colors.yellow900,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'underweight',
|
|
117
|
+
backgroundColor: theme.colors.yellow50,
|
|
118
|
+
color: theme.colors.yellow900,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'healthy',
|
|
122
|
+
backgroundColor: theme.colors.green50,
|
|
123
|
+
color: theme.colors.green900,
|
|
124
|
+
},
|
|
125
|
+
];
|
|
126
|
+
const CustomizedTooltipLabel = (props) => {
|
|
127
|
+
var _a, _b, _c, _d, _e;
|
|
128
|
+
const { payload, active } = props;
|
|
129
|
+
const currentPayload = (_a = payload === null || payload === void 0 ? void 0 : payload[0]) === null || _a === void 0 ? void 0 : _a.payload;
|
|
130
|
+
if (!currentPayload || !currentPayload.toolTipLabel || !active)
|
|
131
|
+
return null;
|
|
132
|
+
const { backgroundColor, color } = useMemo(() => LABELS_COLOR.find((per) => per.name === currentPayload.status), [currentPayload === null || currentPayload === void 0 ? void 0 : currentPayload.status]);
|
|
133
|
+
return (React__default.createElement(StyledTooltip, null,
|
|
134
|
+
React__default.createElement("div", null, (_b = currentPayload.toolTipLabel) === null || _b === void 0 ? void 0 :
|
|
135
|
+
_b[0],
|
|
136
|
+
" ", (_c = currentPayload.toolTipLabel) === null || _c === void 0 ? void 0 :
|
|
137
|
+
_c[1]),
|
|
138
|
+
React__default.createElement("div", null,
|
|
139
|
+
((_d = currentPayload.toolTipLabel) === null || _d === void 0 ? void 0 : _d[2]) && (React__default.createElement(Text, { as: "span", size: "s3", color: theme.colors.gray800, weight: "semiBold" }, (_e = currentPayload.toolTipLabel) === null || _e === void 0 ? void 0 : _e[2])),
|
|
140
|
+
React__default.createElement("div", { className: "risk", style: {
|
|
141
|
+
backgroundColor,
|
|
142
|
+
} },
|
|
143
|
+
React__default.createElement(Text, { size: "n1", color: color }, currentPayload.translatedStatus)))));
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
const generatePregnancyWeightGainChartData = ({ weightByWeek, weightBefore, toolTipLabel, status, activeWeek, t, }) => {
|
|
147
|
+
const key = t(`bmi.result.${status}`);
|
|
148
|
+
const generateAdditionalData = (flag) => {
|
|
149
|
+
return flag === activeWeek
|
|
150
|
+
? { toolTipLabel, translatedStatus: key, status }
|
|
151
|
+
: {};
|
|
152
|
+
};
|
|
153
|
+
return weightByWeek.map((_data) => (Object.assign({ name: _data.week, min: weightBefore + _data.min, difference: _data.max - _data.min, max: weightBefore + _data.max }, generateAdditionalData(_data.week))));
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const Chart = ({ weightBefore, weightByWeek, activeWeek, currentWeight, toolTipLabel = [], status, withLine = false, siteType, }) => {
|
|
157
|
+
const { t } = useTranslations();
|
|
158
|
+
const isMarryBaby = siteType === 'marryBaby';
|
|
159
|
+
const chartData = useMemo(() => generatePregnancyWeightGainChartData({
|
|
160
|
+
weightByWeek,
|
|
161
|
+
weightBefore,
|
|
162
|
+
toolTipLabel,
|
|
163
|
+
status,
|
|
164
|
+
activeWeek,
|
|
165
|
+
t,
|
|
166
|
+
}), [weightByWeek, weightBefore, toolTipLabel, status, activeWeek]);
|
|
167
|
+
const [isTooltipActive, setIsTooltipActive] = useState(false);
|
|
168
|
+
const ref = useRef(null);
|
|
169
|
+
// State for our modal
|
|
170
|
+
// Call hook passing in the ref and a function to call on outside click
|
|
171
|
+
useOutsideClick(ref, () => setIsTooltipActive(false));
|
|
172
|
+
return (React__default.createElement(StyledChart, null,
|
|
173
|
+
isMarryBaby ? (React__default.createElement(MarryBabyText, { type: "bodytext-3", color: theme.mbColors.dark },
|
|
174
|
+
' ',
|
|
175
|
+
t('babyGrowth.weight'),
|
|
176
|
+
" ",
|
|
177
|
+
t('pregnancyWeightGain.weightInput.desc'))) : (React__default.createElement(Text, { size: "n1", color: theme.colors.gray500 },
|
|
178
|
+
t('babyGrowth.weight'),
|
|
179
|
+
" ",
|
|
180
|
+
t('pregnancyWeightGain.weightInput.desc'))),
|
|
181
|
+
Array.isArray(chartData) && chartData.length > 0 && (React__default.createElement(StyledChart, null,
|
|
182
|
+
React__default.createElement(ResponsiveContainer, { height: 388, className: "chart" },
|
|
183
|
+
React__default.createElement(AreaChart, { data: chartData, margin: { top: 16, right: 0, left: 0 } },
|
|
184
|
+
React__default.createElement(CartesianGrid, { stroke: theme.colors.neutral100 }),
|
|
185
|
+
React__default.createElement(Tooltip, { trigger: "click", content: (props) => (React__default.createElement(CustomizedTooltipLabel, Object.assign({ active: !withLine &&
|
|
186
|
+
isTooltipActive &&
|
|
187
|
+
typeof activeWeek !== 'undefined' &&
|
|
188
|
+
typeof currentWeight !== 'undefined' }, props))) }),
|
|
189
|
+
React__default.createElement(XAxis, { type: "number", scale: "linear", ticks: Array.from({ length: 40 }, (_, i) => i + 1), dataKey: "name", tickLine: false, tickMargin: 12, tick: (props) => (React__default.createElement(CustomizedAxisTick, Object.assign({}, props, { activeWeek: activeWeek, siteType: siteType }))), domain: ['dataMin', 'dataMax'], interval: 'preserveStartEnd', tickCount: 1, allowDecimals: false }),
|
|
190
|
+
React__default.createElement(YAxis, { domain: [
|
|
191
|
+
(dataMin) => Math.max(dataMin, weightBefore - 10 || dataMin),
|
|
192
|
+
(dataMax) => {
|
|
193
|
+
return Math.max(dataMax, weightBefore + 20 || dataMax);
|
|
194
|
+
},
|
|
195
|
+
], type: "number", scale: "auto", interval: "preserveStartEnd", tickLine: false, tickMargin: 7, width: 45, tickCount: 10, allowDecimals: true, tickFormatter: (value) => String(Math.round((value + Number.EPSILON) * 100) / 100), tick: {
|
|
196
|
+
fontFamily: 'Inter',
|
|
197
|
+
fontWeight: 400,
|
|
198
|
+
fontSize: 12,
|
|
199
|
+
color: theme.colors.gray600,
|
|
200
|
+
} }),
|
|
201
|
+
React__default.createElement(Area, { connectNulls: true, type: "monotone", dataKey: "min", stackId: "1", stroke: "transparent", fill: "transparent" }),
|
|
202
|
+
React__default.createElement(Area, { connectNulls: true, type: "monotone", dataKey: "difference", stackId: "1", stroke: "transparent", fill: isMarryBaby
|
|
203
|
+
? theme.mbColors.tonePink
|
|
204
|
+
: theme.colors.primary100 }),
|
|
205
|
+
typeof activeWeek !== 'undefined' &&
|
|
206
|
+
typeof currentWeight !== 'undefined' && (React__default.createElement(ReferenceDot, { onClick: () => setIsTooltipActive(true), x: activeWeek === 0 ? 1 : activeWeek, y: currentWeight, r: 4, shape: React__default.createElement(CustomReferenceDot, { ref: ref, r: 4 }), fill: isMarryBaby
|
|
207
|
+
? theme.mbColors.pink
|
|
208
|
+
: theme.colors.primaryBase, stroke: isMarryBaby
|
|
209
|
+
? theme.mbColors.pink
|
|
210
|
+
: theme.colors.primaryBase })))),
|
|
211
|
+
React__default.createElement("div", { className: "custom-chart-label" },
|
|
212
|
+
React__default.createElement("i", null),
|
|
213
|
+
isMarryBaby ? (React__default.createElement(MarryBabyText, { type: "bodytext-3", color: theme.mbColors.dark }, t('pregnancy.week'))) : (React__default.createElement(Text, { size: "n1", color: theme.colors.gray500 }, t('pregnancy.week'))))))));
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
const Dot = (_a) => {
|
|
217
|
+
var { color } = _a, rest = __rest(_a, ["color"]);
|
|
218
|
+
return (React__default.createElement("svg", Object.assign({ width: "8", height: "8", viewBox: "0 0 8 8", fill: "none" }, rest),
|
|
219
|
+
React__default.createElement("circle", { cx: "4", cy: "4", r: "4", fill: color || theme.colors.primaryBase })));
|
|
220
|
+
};
|
|
221
|
+
const ChartLegend = ({ idealWeight, siteType }) => {
|
|
222
|
+
const { t } = useTranslations();
|
|
223
|
+
const isMarryBaby = siteType === 'marryBaby';
|
|
224
|
+
return (React__default.createElement(StyledChartLegend, null,
|
|
225
|
+
React__default.createElement("div", null, isMarryBaby ? (React__default.createElement(React__default.Fragment, null,
|
|
226
|
+
React__default.createElement(Dot, { color: theme.mbColors.lightPink }),
|
|
227
|
+
React__default.createElement(MarryBabyText, { type: "bodytext-3", color: theme.mbColors.dark },
|
|
228
|
+
t('pregnancyTool.weightSuggested'),
|
|
229
|
+
' ',
|
|
230
|
+
React__default.createElement(Text, { size: "n1", color: theme.colors.gray800, weight: "bold", as: "span" }, idealWeight)))) : (React__default.createElement(React__default.Fragment, null,
|
|
231
|
+
React__default.createElement(Dot, { color: theme.colors.primary100 }),
|
|
232
|
+
React__default.createElement(Text, { size: "n1", color: theme.colors.gray600 },
|
|
233
|
+
React__default.createElement(Text, { size: "n1", as: "span" },
|
|
234
|
+
t('pregnancyTool.weightSuggested'),
|
|
235
|
+
' '),
|
|
236
|
+
React__default.createElement(Text, { size: "n1", color: theme.colors.gray800, weight: "bold", as: "span" }, idealWeight))))),
|
|
237
|
+
React__default.createElement("div", null, isMarryBaby ? (React__default.createElement(React__default.Fragment, null,
|
|
238
|
+
React__default.createElement(Dot, { color: theme.mbColors.pink }),
|
|
239
|
+
React__default.createElement(MarryBabyText, { type: "bodytext-3", color: theme.mbColors.dark }, t('pwg.placeholder.weight')))) : (React__default.createElement(React__default.Fragment, null,
|
|
240
|
+
React__default.createElement(Dot, null),
|
|
241
|
+
React__default.createElement(Text, { size: "n1", color: theme.colors.gray600 }, t('pwg.placeholder.weight')))))));
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
const StyledPregnancyWeightGainChart = styled.div `
|
|
59
245
|
display: flex;
|
|
60
246
|
flex-direction: column;
|
|
61
247
|
align-items: center;
|
|
62
248
|
padding: 24px 16px;
|
|
63
249
|
width: 100%;
|
|
64
250
|
gap: 24px;
|
|
65
|
-
border: 1px solid ${
|
|
251
|
+
border: 1px solid ${theme.colors.neutral100};
|
|
66
252
|
border-radius: 8px;
|
|
67
253
|
.chart-header {
|
|
68
254
|
text-align: center;
|
|
@@ -70,4 +256,19 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as
|
|
|
70
256
|
> div {
|
|
71
257
|
width: 100%;
|
|
72
258
|
}
|
|
73
|
-
|
|
259
|
+
`;
|
|
260
|
+
|
|
261
|
+
const PregnancyWeightGainChart = ({ chartProps, pillCarouselProps, idealWeight, description, siteType, }) => {
|
|
262
|
+
const { t } = useTranslations();
|
|
263
|
+
const isMarryBaby = siteType === 'marryBaby';
|
|
264
|
+
return (React__default.createElement(StyledPregnancyWeightGainChart, null,
|
|
265
|
+
React__default.createElement("div", { className: "chart-header" },
|
|
266
|
+
isMarryBaby ? (React__default.createElement(MarryBabyHeading, { type: "h3", color: theme.mbColors.dark }, t('pregnancyTool.weightSuggested'))) : (React__default.createElement(Text, { size: "s1", weight: "semiBold", color: theme.colors.gray800 }, t('pregnancyTool.weightSuggested'))),
|
|
267
|
+
description && description),
|
|
268
|
+
React__default.createElement(PillCarousel, Object.assign({}, pillCarouselProps)),
|
|
269
|
+
React__default.createElement("div", null,
|
|
270
|
+
React__default.createElement(ChartLegend, { idealWeight: idealWeight, siteType: siteType }),
|
|
271
|
+
React__default.createElement(Chart, Object.assign({}, chartProps, { siteType: siteType })))));
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
export { PregnancyWeightGainChart };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { d as domainLocales } from './index-852bb5ca.js';
|
|
2
|
+
import { i as isProduction } from './isProduction-9081cff7.js';
|
|
3
|
+
|
|
4
|
+
const getCurrentBaseUrl = (locale, isMarryBaby) => {
|
|
5
|
+
if (typeof window !== 'undefined')
|
|
6
|
+
return window.location.origin;
|
|
7
|
+
const isDev = process.env.NEXT_PUBLIC_DEPLOY_ENV === 'development';
|
|
8
|
+
const isStaging = !isDev && !isProduction;
|
|
9
|
+
// const isDev = false
|
|
10
|
+
// const isStaging = false
|
|
11
|
+
return isDev
|
|
12
|
+
? 'http://localhost:3000'
|
|
13
|
+
: `https://${isStaging
|
|
14
|
+
? isMarryBaby
|
|
15
|
+
? 'fe.'
|
|
16
|
+
: 'discover.'
|
|
17
|
+
: isMarryBaby
|
|
18
|
+
? 'www.'
|
|
19
|
+
: ''}${domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}`;
|
|
20
|
+
};
|
|
21
|
+
const getCurrentSsoUrl = (locale, isMarryBaby) => {
|
|
22
|
+
return (process.env.UNIFY_SSO_API ||
|
|
23
|
+
`https://${!isProduction ? 'staging-id.' : 'id.'}${domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}`);
|
|
24
|
+
};
|
|
25
|
+
const getTogetherApiDomain = () => {
|
|
26
|
+
return (process.env.UNIFY_INTERNAL_TOGETHER_API ||
|
|
27
|
+
process.env.UNIFY_TOGETHER_API ||
|
|
28
|
+
`https://${!isProduction ? 'staging-together.' : 'together.'}hellohealthgroup.com`);
|
|
29
|
+
};
|
|
30
|
+
const getDiscoverApiDomain = (locale) => {
|
|
31
|
+
return (process.env.UNIFY_DISCOVER_API ||
|
|
32
|
+
`https://${!isProduction ? 'staging.' : 'wp.'}${domainLocales[locale]}`);
|
|
33
|
+
};
|
|
34
|
+
const getCareApiDomain = () => {
|
|
35
|
+
return (process.env.UNIFY_INTERNAL_CARE_API ||
|
|
36
|
+
process.env.UNIFY_CARE_API ||
|
|
37
|
+
`https://${!isProduction ? 'service-health-care.' : 'health-care.'}hellohealthgroup.com`);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { getCurrentSsoUrl as a, getTogetherApiDomain as b, getDiscoverApiDomain as c, getCareApiDomain as d, getCurrentBaseUrl as g };
|