@hhgtech/hhg-components 1.28.68 → 1.28.69
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-48c9471d.js +688 -0
- package/build/BMI_BOYS.percentile.weekly-4965852e.js +182 -0
- package/build/BMI_BOYS.percentile.yearly-0f7cc8f4.js +83 -0
- package/build/BMI_BOYS.zscore.monthly-5bb8a433.js +440 -0
- package/build/BMI_BOYS.zscore.weekly-3d56f80f.js +118 -0
- package/build/BMI_BOYS.zscore.yearly-57081f24.js +55 -0
- package/build/BMI_GIRLS.percentile.monthly-95859cd9.js +688 -0
- package/build/BMI_GIRLS.percentile.weekly-009cf4df.js +182 -0
- package/build/BMI_GIRLS.percentile.yearly-4436947b.js +83 -0
- package/build/BMI_GIRLS.zscore.monthly-689b4eee.js +440 -0
- package/build/BMI_GIRLS.zscore.weekly-dff693df.js +118 -0
- package/build/BMI_GIRLS.zscore.yearly-05ef5f4f.js +55 -0
- package/build/ChevronDown-275f1ab5.js +29 -0
- package/build/HEAD CIRCUM_BOYS.percentile.monthly-55c580a7.js +688 -0
- package/build/HEAD CIRCUM_BOYS.percentile.weekly-e30f4a42.js +182 -0
- package/build/HEAD CIRCUM_BOYS.percentile.yearly-2378a5f0.js +83 -0
- package/build/HEAD CIRCUM_BOYS.zscore.monthly-102d5559.js +440 -0
- package/build/HEAD CIRCUM_BOYS.zscore.weekly-7b0f1ba8.js +118 -0
- package/build/HEAD CIRCUM_BOYS.zscore.yearly-e9237d31.js +55 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.monthly-1ddda8b3.js +688 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.weekly-843147ea.js +182 -0
- package/build/HEAD CIRCUM_GIRLS.percentile.yearly-9b51c237.js +83 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.monthly-3f1b233c.js +440 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.weekly-9e14d3fe.js +118 -0
- package/build/HEAD CIRCUM_GIRLS.zscore.yearly-d924f5ae.js +55 -0
- package/build/HEIGHT_BOYS.percentile.monthly-15538920.js +688 -0
- package/build/HEIGHT_BOYS.percentile.weekly-10bd0277.js +182 -0
- package/build/HEIGHT_BOYS.percentile.yearly-8e678d38.js +237 -0
- package/build/HEIGHT_BOYS.zscore.monthly-2c110da9.js +440 -0
- package/build/HEIGHT_BOYS.zscore.weekly-288b7733.js +118 -0
- package/build/HEIGHT_BOYS.zscore.yearly-42f6f9f7.js +153 -0
- package/build/HEIGHT_GIRLS.percentile.monthly-04abe7d2.js +688 -0
- package/build/HEIGHT_GIRLS.percentile.weekly-9653b16c.js +182 -0
- package/build/HEIGHT_GIRLS.percentile.yearly-9efacd67.js +237 -0
- package/build/HEIGHT_GIRLS.zscore.monthly-c64a97b2.js +440 -0
- package/build/HEIGHT_GIRLS.zscore.weekly-3302dd83.js +118 -0
- package/build/HEIGHT_GIRLS.zscore.yearly-ebe5114f.js +153 -0
- package/build/Subot-5fc40fb5.js +217 -0
- package/build/Visible-5c5d57cf.js +29 -0
- package/build/WEIGHT_BOYS.percentile.monthly-5e11e7a0.js +688 -0
- package/build/WEIGHT_BOYS.percentile.weekly-68ae2578.js +182 -0
- package/build/WEIGHT_BOYS.percentile.yearly-030c06a4.js +138 -0
- package/build/WEIGHT_BOYS.zscore.monthly-d22c7b57.js +440 -0
- package/build/WEIGHT_BOYS.zscore.weekly-d8d901e6.js +118 -0
- package/build/WEIGHT_BOYS.zscore.yearly-c311a084.js +90 -0
- package/build/WEIGHT_GIRLS.percentile.monthly-5c44f8eb.js +688 -0
- package/build/WEIGHT_GIRLS.percentile.weekly-faa98671.js +182 -0
- package/build/WEIGHT_GIRLS.percentile.yearly-560b862e.js +138 -0
- package/build/WEIGHT_GIRLS.zscore.monthly-5365ba1a.js +440 -0
- package/build/WEIGHT_GIRLS.zscore.weekly-0d9dc521.js +118 -0
- package/build/WEIGHT_GIRLS.zscore.yearly-5a3c4e43.js +90 -0
- package/build/adapters.js +36 -1
- package/build/{esm/animation-a158bfd1.js → animation-eb4e500b.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-8b8bc19f.js +255 -0
- package/build/constants-ae18ce18.js +935 -0
- package/build/constants.js +43 -1
- package/build/cookieHelper-5c9f4bb8.js +43 -0
- package/build/core-2aa8d86c.js +51 -0
- package/build/dataTransform-089f414c.js +66 -0
- package/build/ecom.js +745 -1
- package/build/esm/BMI_BOYS.percentile.monthly-de5dce68.js +686 -0
- package/build/esm/BMI_BOYS.percentile.weekly-9d3990b6.js +180 -0
- package/build/esm/BMI_BOYS.percentile.yearly-98b9114a.js +81 -0
- package/build/esm/BMI_BOYS.zscore.monthly-394646f0.js +438 -0
- package/build/esm/BMI_BOYS.zscore.weekly-c669ea51.js +116 -0
- package/build/esm/BMI_BOYS.zscore.yearly-771ef6b6.js +53 -0
- package/build/esm/BMI_GIRLS.percentile.monthly-1ff3d499.js +686 -0
- package/build/esm/BMI_GIRLS.percentile.weekly-211d2f27.js +180 -0
- package/build/esm/BMI_GIRLS.percentile.yearly-206fdcff.js +81 -0
- package/build/esm/BMI_GIRLS.zscore.monthly-b1137e36.js +438 -0
- package/build/esm/BMI_GIRLS.zscore.weekly-63ed3cd6.js +116 -0
- package/build/esm/BMI_GIRLS.zscore.yearly-221d187c.js +53 -0
- package/build/esm/ChevronDown-9a8ece61.js +7 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-4c37847c.js +686 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-8f6ea38a.js +180 -0
- package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-6c12a99a.js +81 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-c531b497.js +438 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-6cafba00.js +116 -0
- package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-fe8114a0.js +53 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-25ce0d36.js +686 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-5d3f2862.js +180 -0
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-2b709ca5.js +81 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-e8617bae.js +438 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-f3252d67.js +116 -0
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-5b62d41f.js +53 -0
- package/build/esm/HEIGHT_BOYS.percentile.monthly-63d2cf96.js +686 -0
- package/build/esm/HEIGHT_BOYS.percentile.weekly-8ea5102d.js +180 -0
- package/build/esm/HEIGHT_BOYS.percentile.yearly-8107b77b.js +235 -0
- package/build/esm/HEIGHT_BOYS.zscore.monthly-641cdfa3.js +438 -0
- package/build/esm/HEIGHT_BOYS.zscore.weekly-86da0362.js +116 -0
- package/build/esm/HEIGHT_BOYS.zscore.yearly-060f6e79.js +151 -0
- package/build/esm/HEIGHT_GIRLS.percentile.monthly-fb987d37.js +686 -0
- package/build/esm/HEIGHT_GIRLS.percentile.weekly-82655dc0.js +180 -0
- package/build/esm/HEIGHT_GIRLS.percentile.yearly-a63b8456.js +235 -0
- package/build/esm/HEIGHT_GIRLS.zscore.monthly-77d676a3.js +438 -0
- package/build/esm/HEIGHT_GIRLS.zscore.weekly-c0387a4e.js +116 -0
- package/build/esm/HEIGHT_GIRLS.zscore.yearly-41203c20.js +151 -0
- package/build/esm/Subot-3289bd8e.js +212 -0
- package/build/esm/Visible-a3d436dd.js +7 -0
- package/build/esm/WEIGHT_BOYS.percentile.monthly-50802d8b.js +686 -0
- package/build/esm/WEIGHT_BOYS.percentile.weekly-4d72ddd6.js +180 -0
- package/build/esm/WEIGHT_BOYS.percentile.yearly-20a29844.js +136 -0
- package/build/esm/WEIGHT_BOYS.zscore.monthly-729e6614.js +438 -0
- package/build/esm/WEIGHT_BOYS.zscore.weekly-90352f48.js +116 -0
- package/build/esm/WEIGHT_BOYS.zscore.yearly-fe1871cc.js +88 -0
- package/build/esm/WEIGHT_GIRLS.percentile.monthly-e6afb2e0.js +686 -0
- package/build/esm/WEIGHT_GIRLS.percentile.weekly-b66d3016.js +180 -0
- package/build/esm/WEIGHT_GIRLS.percentile.yearly-a55622c5.js +136 -0
- package/build/esm/WEIGHT_GIRLS.zscore.monthly-2cdcbe75.js +438 -0
- package/build/esm/WEIGHT_GIRLS.zscore.weekly-d5be31d5.js +116 -0
- package/build/esm/WEIGHT_GIRLS.zscore.yearly-99e8d3a7.js +88 -0
- package/build/esm/adapters.js +26 -1
- package/build/{animation-ea278d9a.js → esm/animation-3d5edc39.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-2a6d2434.js +932 -0
- package/build/esm/constants-b77ffe3d.js +238 -0
- package/build/esm/constants.js +4 -1
- package/build/esm/cookieHelper-d314282c.js +39 -0
- package/build/esm/core-8c73d133.js +47 -0
- package/build/esm/dataTransform-8ecfc046.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-f4497aa5.js +44 -0
- package/build/esm/getSocialList-a5b8462e.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-12fa4985.js +8 -0
- package/build/esm/index-1e59f99a.js +152 -0
- package/build/esm/index-32e53dac.js +1936 -0
- package/build/esm/index-3474401a.js +149 -0
- package/build/esm/index-34899aa3.js +17 -0
- package/build/esm/index-350e8f5b.js +124 -0
- package/build/esm/index-41bf860a.js +151 -0
- package/build/esm/index-4aa8e518.js +116 -0
- package/build/esm/index-4fe2b03f.js +32 -0
- package/build/esm/index-6ea6484e.js +29 -0
- package/build/esm/index-717401ee.js +184 -0
- package/build/esm/index-7af5242a.js +24 -0
- package/build/esm/index-7b8c85cd.js +8302 -0
- package/build/esm/index-81f295b7.js +23 -0
- package/build/esm/index-8858383e.js +52 -0
- package/build/esm/index-8f52dcf3.js +33 -0
- package/build/esm/index-9ea7e838.js +33 -0
- package/build/esm/index-aabac2aa.js +3241 -0
- package/build/esm/index-b9b2c417.js +837 -0
- package/build/esm/index-c2da5293.js +12 -0
- package/build/esm/index-c56d60db.js +370 -0
- package/build/esm/index-c5d7f692.js +24 -0
- package/build/esm/index-cc93e010.js +53 -0
- package/build/esm/index-d7f046db.js +5 -0
- package/build/esm/index-d8177667.js +14 -0
- package/build/esm/index-da139dda.js +615 -0
- package/build/esm/index-e612be9c.js +905 -0
- package/build/esm/index-f3d0592b.js +71 -0
- package/build/esm/index.js +190 -1
- package/build/{index.styled-625bfdc7.js → esm/index.styled-9c9db9cc.js} +17 -5
- package/build/esm/index.styles-5add27c5.js +1303 -0
- package/build/esm/isProduction-0ea904dd.js +27 -0
- package/build/esm/lead.js +2140 -1
- package/build/esm/localizeNumberFormat-2ac3773e.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-d1c9617e.js +12 -0
- package/build/esm/number-0c126a39.js +38 -0
- package/build/esm/onboardingV2.js +860 -34
- package/build/esm/paths-a8204db4.js +14 -0
- package/build/esm/pwg.js +208 -7
- package/build/esm/routing-2474f896.js +40 -0
- package/build/esm/subot.js +4553 -134
- package/build/esm/theme-e74db08c.js +186 -0
- package/build/esm/together.js +52 -1
- package/build/esm/translationsContext-ad3e25de.js +5 -0
- package/build/esm/tslib.es6-1b1533a9.js +38 -0
- package/build/esm/types-06f00b3d.js +8015 -0
- package/build/esm/types-15e34418.js +3432 -0
- package/build/esm/types-ba190c26.js +21 -0
- package/build/esm/types.js +1 -1
- package/build/esm/unifyEnv.js +42 -1
- package/build/esm/useCategory-2c87152d.js +292 -0
- package/build/esm/useHealthToolCache-29d22ddb.js +17 -0
- package/build/esm/useIsInit-8a2fc8e5.js +11 -0
- package/build/esm/useOutsideClick-c8a7ff20.js +45 -0
- package/build/esm/usePlacesAutocomplete-63e04e8e.js +80 -0
- package/build/esm/useScrollbarSize-51ce1374.js +57 -0
- package/build/esm/useTranslations-4f1db486.js +26 -0
- package/build/esm/useUniqueId-3638402f.js +41 -0
- package/build/esm/utils-2c484c05.js +132 -0
- package/build/esm/utils-3a2a47d9.js +22 -0
- package/build/esm/utils-6d7b88da.js +367 -0
- package/build/esm/utils-70718e9c.js +1124 -0
- package/build/esm/vaccination.js +868 -40
- package/build/footer.js +39 -1
- package/build/gAssets.js +14 -1
- package/build/getDynamicHealthTool-114a1e27.js +48 -0
- package/build/getSocialList-4713441d.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-020e6908.js +39 -0
- package/build/index-0da9b2e8.js +59 -0
- package/build/index-11468c00.js +157 -0
- package/build/index-117448a5.js +133 -0
- package/build/index-12c07f71.js +18 -0
- package/build/index-1a105e87.js +123 -0
- package/build/index-1baaedb0.js +55 -0
- package/build/index-32d38318.js +7 -0
- package/build/index-38582ee0.js +8373 -0
- package/build/index-3e5fc2d6.js +1994 -0
- package/build/index-3eef6bed.js +853 -0
- package/build/index-4035e658.js +159 -0
- package/build/index-488d71ae.js +30 -0
- package/build/index-5553f9e1.js +930 -0
- package/build/index-5fa68e45.js +380 -0
- package/build/index-7b467209.js +39 -0
- package/build/index-81cb1142.js +77 -0
- package/build/index-84ab5b89.js +38 -0
- package/build/index-8a95d709.js +30 -0
- package/build/index-9da9f0c3.js +35 -0
- package/build/index-af91c83e.js +20 -0
- package/build/index-b6aea85e.js +191 -0
- package/build/index-bc4f4c33.js +156 -0
- package/build/index-c604d6bb.js +624 -0
- package/build/index-d330735e.js +30 -0
- package/build/index-d8a7efaf.js +14 -0
- package/build/index-e2e81fa2.js +23 -0
- package/build/index-e3d896b3.js +3261 -0
- package/build/index.js +436 -1
- package/build/{esm/index.styled-ac7ac0fc.js → index.styled-5628b3e7.js} +25 -5
- package/build/index.styles-b822bf42.js +1342 -0
- package/build/isProduction-5ce3a388.js +29 -0
- package/build/lead.js +2168 -1
- package/build/localizeNumberFormat-f5f50987.js +31 -0
- package/build/mantine.js +154 -1
- package/build/misc.js +70 -1
- package/build/navigation.js +61 -1
- package/build/normalizeLink-6f7b85d8.js +15 -0
- package/build/number-79fe92e1.js +40 -0
- package/build/onboardingV2.js +892 -34
- package/build/paths-a5643d9e.js +16 -0
- package/build/pwg.js +217 -7
- package/build/routing-191a9a00.js +46 -0
- package/build/subot.js +4592 -134
- package/build/theme-fa910869.js +189 -0
- package/build/together.js +112 -1
- package/build/translationsContext-950334bf.js +7 -0
- package/build/tslib.es6-65e312a5.js +41 -0
- package/build/types-0f117a9f.js +8084 -0
- package/build/types-1fedb3d1.js +3446 -0
- package/build/types-52a4e888.js +24 -0
- package/build/types.js +56 -1
- package/build/unifyEnv.js +46 -1
- package/build/useCategory-cfc702f5.js +299 -0
- package/build/useHealthToolCache-43a7014d.js +19 -0
- package/build/useIsInit-89535012.js +13 -0
- package/build/useOutsideClick-c6813964.js +49 -0
- package/build/usePlacesAutocomplete-297de092.js +84 -0
- package/build/useScrollbarSize-0fa31aa7.js +64 -0
- package/build/useTranslations-e1853417.js +32 -0
- package/build/useUniqueId-11369116.js +44 -0
- package/build/utils-52113753.js +384 -0
- package/build/utils-64bd0c42.js +143 -0
- package/build/utils-661411f6.js +1171 -0
- package/build/utils-e1513cbc.js +25 -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,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const PATHS = {
|
|
4
|
+
GET_CITIES_LIST: 'api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}&client={client}',
|
|
5
|
+
GET_CITY: 'api/lists/cities?ids={ids}&site={domain}&longitude={longitude}&latitude={latitude}',
|
|
6
|
+
GET_HOME_SEARCH: 'api/search/?_home=1&city_id={city}&keyword={keyword}&site={domain}&latitude={lat}&longitude={lng}',
|
|
7
|
+
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}',
|
|
8
|
+
GET_CITY_BY_IP: 'api/geobyip?site={domain}&latitude={lat}&longitude={lng}&_nopaging={noPaging}&client={client}',
|
|
9
|
+
GET_DOCTOR_DETAIL: 'api/doctors/{id}?site={site}',
|
|
10
|
+
GET_HOSPITAL_DETAIL: 'api/hospital/branch/{id}?site={site}',
|
|
11
|
+
GET_SERVICE_DETAIL: 'api/hospital/service/{id}?site={site}',
|
|
12
|
+
GET_SEARCH_SPECIALTY: 'api/v2/specialties/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}&msd={msd}',
|
|
13
|
+
GET_SEARCH_POPULAR_KEY: 'api/search/keywords?site={domain}&sort_by={sort_by}&sort_order={sort_order}&type={searchType}',
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.PATHS = PATHS;
|
package/build/pwg.js
CHANGED
|
@@ -1,4 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var index$1 = require('./index-488d71ae.js');
|
|
7
|
+
var index = require('./index-bc4f4c33.js');
|
|
8
|
+
var index$3 = require('./index-1a105e87.js');
|
|
9
|
+
var useTranslations = require('./useTranslations-e1853417.js');
|
|
10
|
+
var theme = require('./theme-fa910869.js');
|
|
11
|
+
var recharts = require('recharts');
|
|
12
|
+
var index$2 = require('./index-d8a7efaf.js');
|
|
13
|
+
var useOutsideClick = require('./useOutsideClick-c6813964.js');
|
|
14
|
+
var styled = require('styled-components');
|
|
15
|
+
var tslib_es6 = require('./tslib.es6-65e312a5.js');
|
|
16
|
+
require('./index.styled-5628b3e7.js');
|
|
17
|
+
require('@mantine/core');
|
|
18
|
+
require('./Subot-5fc40fb5.js');
|
|
19
|
+
require('./index-1baaedb0.js');
|
|
20
|
+
require('./index-5553f9e1.js');
|
|
21
|
+
require('date-fns/locale');
|
|
22
|
+
require('./isProduction-5ce3a388.js');
|
|
23
|
+
require('./index-3e5fc2d6.js');
|
|
24
|
+
require('@hhgtech/icons/other');
|
|
25
|
+
require('@mantine/hooks');
|
|
26
|
+
require('dayjs');
|
|
27
|
+
require('./utils-64bd0c42.js');
|
|
28
|
+
require('@mantine/carousel');
|
|
29
|
+
require('classnames');
|
|
30
|
+
require('./useUniqueId-11369116.js');
|
|
31
|
+
require('@hhgtech/icons/core');
|
|
32
|
+
require('./index-8a95d709.js');
|
|
33
|
+
require('@mantine/dates');
|
|
34
|
+
require('./translationsContext-950334bf.js');
|
|
35
|
+
require('string-format');
|
|
36
|
+
|
|
37
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
38
|
+
|
|
39
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
40
|
+
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
41
|
+
|
|
42
|
+
const CustomizedAxisTick = (props) => {
|
|
43
|
+
const { x, y, payload, activeWeek } = props;
|
|
44
|
+
if (activeWeek === payload.value) {
|
|
45
|
+
return (React__default["default"].createElement("g", { transform: `translate(${x},${y})` },
|
|
46
|
+
React__default["default"].createElement("circle", { r: 12, fill: props.siteType === 'marryBaby'
|
|
47
|
+
? theme.theme.mbColors.pink
|
|
48
|
+
: theme.theme.colors.primaryBase }),
|
|
49
|
+
React__default["default"].createElement("text", { textAnchor: "middle", alignmentBaseline: "central", fill: theme.theme.colors.white, fontFamily: "Inter", fontWeight: "600", fontSize: "12px" }, payload.value)));
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
return (React__default["default"].createElement("g", { transform: `translate(${x},${y})` },
|
|
53
|
+
React__default["default"].createElement("text", { textAnchor: "middle", alignmentBaseline: "central", fill: theme.theme.colors.gray600, fontFamily: "Inter", fontWeight: "400", fontSize: "12px" }, payload.value)));
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const StyledTooltip = styled__default["default"].div `
|
|
2
58
|
/* position: absolute; */
|
|
3
59
|
display: flex;
|
|
4
60
|
flex-direction: column;
|
|
@@ -18,7 +74,7 @@
|
|
|
18
74
|
display: flex;
|
|
19
75
|
align-items: center;
|
|
20
76
|
padding: 4px 8px;
|
|
21
|
-
background: ${
|
|
77
|
+
background: ${theme.theme.colors.yellow600};
|
|
22
78
|
border-radius: 3px;
|
|
23
79
|
} */
|
|
24
80
|
& > * {
|
|
@@ -32,7 +88,8 @@
|
|
|
32
88
|
border-radius: 2px;
|
|
33
89
|
background: #ffffff;
|
|
34
90
|
}
|
|
35
|
-
|
|
91
|
+
`;
|
|
92
|
+
const StyledChart = styled__default["default"].div `
|
|
36
93
|
position: relative;
|
|
37
94
|
width: 100%;
|
|
38
95
|
.custom-chart-label {
|
|
@@ -45,7 +102,8 @@
|
|
|
45
102
|
display: flex;
|
|
46
103
|
justify-content: space-between;
|
|
47
104
|
}
|
|
48
|
-
|
|
105
|
+
`;
|
|
106
|
+
const StyledChartLegend = styled__default["default"].div `
|
|
49
107
|
display: flex;
|
|
50
108
|
gap: 40px;
|
|
51
109
|
justify-content: center;
|
|
@@ -55,14 +113,151 @@
|
|
|
55
113
|
align-items: center;
|
|
56
114
|
gap: 4px;
|
|
57
115
|
}
|
|
58
|
-
|
|
116
|
+
`;
|
|
117
|
+
|
|
118
|
+
const LABELS_COLOR = [
|
|
119
|
+
{
|
|
120
|
+
name: 'overweight',
|
|
121
|
+
backgroundColor: theme.theme.colors.yellow50,
|
|
122
|
+
color: theme.theme.colors.yellow900,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'underweight',
|
|
126
|
+
backgroundColor: theme.theme.colors.yellow50,
|
|
127
|
+
color: theme.theme.colors.yellow900,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'healthy',
|
|
131
|
+
backgroundColor: theme.theme.colors.green50,
|
|
132
|
+
color: theme.theme.colors.green900,
|
|
133
|
+
},
|
|
134
|
+
];
|
|
135
|
+
const CustomizedTooltipLabel = (props) => {
|
|
136
|
+
var _a, _b, _c, _d, _e;
|
|
137
|
+
const { payload, active } = props;
|
|
138
|
+
const currentPayload = (_a = payload === null || payload === void 0 ? void 0 : payload[0]) === null || _a === void 0 ? void 0 : _a.payload;
|
|
139
|
+
if (!currentPayload || !currentPayload.toolTipLabel || !active)
|
|
140
|
+
return null;
|
|
141
|
+
const { backgroundColor, color } = React.useMemo(() => LABELS_COLOR.find((per) => per.name === currentPayload.status), [currentPayload === null || currentPayload === void 0 ? void 0 : currentPayload.status]);
|
|
142
|
+
return (React__default["default"].createElement(StyledTooltip, null,
|
|
143
|
+
React__default["default"].createElement("div", null, (_b = currentPayload.toolTipLabel) === null || _b === void 0 ? void 0 :
|
|
144
|
+
_b[0],
|
|
145
|
+
" ", (_c = currentPayload.toolTipLabel) === null || _c === void 0 ? void 0 :
|
|
146
|
+
_c[1]),
|
|
147
|
+
React__default["default"].createElement("div", null,
|
|
148
|
+
((_d = currentPayload.toolTipLabel) === null || _d === void 0 ? void 0 : _d[2]) && (React__default["default"].createElement(index.Text, { as: "span", size: "s3", color: theme.theme.colors.gray800, weight: "semiBold" }, (_e = currentPayload.toolTipLabel) === null || _e === void 0 ? void 0 : _e[2])),
|
|
149
|
+
React__default["default"].createElement("div", { className: "risk", style: {
|
|
150
|
+
backgroundColor,
|
|
151
|
+
} },
|
|
152
|
+
React__default["default"].createElement(index.Text, { size: "n1", color: color }, currentPayload.translatedStatus)))));
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const generatePregnancyWeightGainChartData = ({ weightByWeek, weightBefore, toolTipLabel, status, activeWeek, t, }) => {
|
|
156
|
+
const key = t(`bmi.result.${status}`);
|
|
157
|
+
const generateAdditionalData = (flag) => {
|
|
158
|
+
return flag === activeWeek
|
|
159
|
+
? { toolTipLabel, translatedStatus: key, status }
|
|
160
|
+
: {};
|
|
161
|
+
};
|
|
162
|
+
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))));
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
const Chart = ({ weightBefore, weightByWeek, activeWeek, currentWeight, toolTipLabel = [], status, withLine = false, siteType, }) => {
|
|
166
|
+
const { t } = useTranslations.useTranslations();
|
|
167
|
+
const isMarryBaby = siteType === 'marryBaby';
|
|
168
|
+
const chartData = React.useMemo(() => generatePregnancyWeightGainChartData({
|
|
169
|
+
weightByWeek,
|
|
170
|
+
weightBefore,
|
|
171
|
+
toolTipLabel,
|
|
172
|
+
status,
|
|
173
|
+
activeWeek,
|
|
174
|
+
t,
|
|
175
|
+
}), [weightByWeek, weightBefore, toolTipLabel, status, activeWeek]);
|
|
176
|
+
const [isTooltipActive, setIsTooltipActive] = React.useState(false);
|
|
177
|
+
const ref = React.useRef(null);
|
|
178
|
+
// State for our modal
|
|
179
|
+
// Call hook passing in the ref and a function to call on outside click
|
|
180
|
+
useOutsideClick.useOutsideClick(ref, () => setIsTooltipActive(false));
|
|
181
|
+
return (React__default["default"].createElement(StyledChart, null,
|
|
182
|
+
isMarryBaby ? (React__default["default"].createElement(index$1.MarryBabyText, { type: "bodytext-3", color: theme.theme.mbColors.dark },
|
|
183
|
+
' ',
|
|
184
|
+
t('babyGrowth.weight'),
|
|
185
|
+
" ",
|
|
186
|
+
t('pregnancyWeightGain.weightInput.desc'))) : (React__default["default"].createElement(index.Text, { size: "n1", color: theme.theme.colors.gray500 },
|
|
187
|
+
t('babyGrowth.weight'),
|
|
188
|
+
" ",
|
|
189
|
+
t('pregnancyWeightGain.weightInput.desc'))),
|
|
190
|
+
Array.isArray(chartData) && chartData.length > 0 && (React__default["default"].createElement(StyledChart, null,
|
|
191
|
+
React__default["default"].createElement(recharts.ResponsiveContainer, { height: 388, className: "chart" },
|
|
192
|
+
React__default["default"].createElement(recharts.AreaChart, { data: chartData, margin: { top: 16, right: 0, left: 0 } },
|
|
193
|
+
React__default["default"].createElement(recharts.CartesianGrid, { stroke: theme.theme.colors.neutral100 }),
|
|
194
|
+
React__default["default"].createElement(recharts.Tooltip, { trigger: "click", content: (props) => (React__default["default"].createElement(CustomizedTooltipLabel, Object.assign({ active: !withLine &&
|
|
195
|
+
isTooltipActive &&
|
|
196
|
+
typeof activeWeek !== 'undefined' &&
|
|
197
|
+
typeof currentWeight !== 'undefined' }, props))) }),
|
|
198
|
+
React__default["default"].createElement(recharts.XAxis, { type: "number", scale: "linear", ticks: Array.from({ length: 40 }, (_, i) => i + 1), dataKey: "name", tickLine: false, tickMargin: 12, tick: (props) => (React__default["default"].createElement(CustomizedAxisTick, Object.assign({}, props, { activeWeek: activeWeek, siteType: siteType }))), domain: ['dataMin', 'dataMax'], interval: 'preserveStartEnd', tickCount: 1, allowDecimals: false }),
|
|
199
|
+
React__default["default"].createElement(recharts.YAxis, { domain: [
|
|
200
|
+
(dataMin) => Math.max(dataMin, weightBefore - 10 || dataMin),
|
|
201
|
+
(dataMax) => {
|
|
202
|
+
return Math.max(dataMax, weightBefore + 20 || dataMax);
|
|
203
|
+
},
|
|
204
|
+
], 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: {
|
|
205
|
+
fontFamily: 'Inter',
|
|
206
|
+
fontWeight: 400,
|
|
207
|
+
fontSize: 12,
|
|
208
|
+
color: theme.theme.colors.gray600,
|
|
209
|
+
} }),
|
|
210
|
+
React__default["default"].createElement(recharts.Area, { connectNulls: true, type: "monotone", dataKey: "min", stackId: "1", stroke: "transparent", fill: "transparent" }),
|
|
211
|
+
React__default["default"].createElement(recharts.Area, { connectNulls: true, type: "monotone", dataKey: "difference", stackId: "1", stroke: "transparent", fill: isMarryBaby
|
|
212
|
+
? theme.theme.mbColors.tonePink
|
|
213
|
+
: theme.theme.colors.primary100 }),
|
|
214
|
+
typeof activeWeek !== 'undefined' &&
|
|
215
|
+
typeof currentWeight !== 'undefined' && (React__default["default"].createElement(recharts.ReferenceDot, { onClick: () => setIsTooltipActive(true), x: activeWeek === 0 ? 1 : activeWeek, y: currentWeight, r: 4, shape: React__default["default"].createElement(index$2.CustomReferenceDot, { ref: ref, r: 4 }), fill: isMarryBaby
|
|
216
|
+
? theme.theme.mbColors.pink
|
|
217
|
+
: theme.theme.colors.primaryBase, stroke: isMarryBaby
|
|
218
|
+
? theme.theme.mbColors.pink
|
|
219
|
+
: theme.theme.colors.primaryBase })))),
|
|
220
|
+
React__default["default"].createElement("div", { className: "custom-chart-label" },
|
|
221
|
+
React__default["default"].createElement("i", null),
|
|
222
|
+
isMarryBaby ? (React__default["default"].createElement(index$1.MarryBabyText, { type: "bodytext-3", color: theme.theme.mbColors.dark }, t('pregnancy.week'))) : (React__default["default"].createElement(index.Text, { size: "n1", color: theme.theme.colors.gray500 }, t('pregnancy.week'))))))));
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
const Dot = (_a) => {
|
|
226
|
+
var { color } = _a, rest = tslib_es6.__rest(_a, ["color"]);
|
|
227
|
+
return (React__default["default"].createElement("svg", Object.assign({ width: "8", height: "8", viewBox: "0 0 8 8", fill: "none" }, rest),
|
|
228
|
+
React__default["default"].createElement("circle", { cx: "4", cy: "4", r: "4", fill: color || theme.theme.colors.primaryBase })));
|
|
229
|
+
};
|
|
230
|
+
const ChartLegend = ({ idealWeight, siteType }) => {
|
|
231
|
+
const { t } = useTranslations.useTranslations();
|
|
232
|
+
const isMarryBaby = siteType === 'marryBaby';
|
|
233
|
+
return (React__default["default"].createElement(StyledChartLegend, null,
|
|
234
|
+
React__default["default"].createElement("div", null, isMarryBaby ? (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
235
|
+
React__default["default"].createElement(Dot, { color: theme.theme.mbColors.lightPink }),
|
|
236
|
+
React__default["default"].createElement(index$1.MarryBabyText, { type: "bodytext-3", color: theme.theme.mbColors.dark },
|
|
237
|
+
t('pregnancyTool.weightSuggested'),
|
|
238
|
+
' ',
|
|
239
|
+
React__default["default"].createElement(index.Text, { size: "n1", color: theme.theme.colors.gray800, weight: "bold", as: "span" }, idealWeight)))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
240
|
+
React__default["default"].createElement(Dot, { color: theme.theme.colors.primary100 }),
|
|
241
|
+
React__default["default"].createElement(index.Text, { size: "n1", color: theme.theme.colors.gray600 },
|
|
242
|
+
React__default["default"].createElement(index.Text, { size: "n1", as: "span" },
|
|
243
|
+
t('pregnancyTool.weightSuggested'),
|
|
244
|
+
' '),
|
|
245
|
+
React__default["default"].createElement(index.Text, { size: "n1", color: theme.theme.colors.gray800, weight: "bold", as: "span" }, idealWeight))))),
|
|
246
|
+
React__default["default"].createElement("div", null, isMarryBaby ? (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
247
|
+
React__default["default"].createElement(Dot, { color: theme.theme.mbColors.pink }),
|
|
248
|
+
React__default["default"].createElement(index$1.MarryBabyText, { type: "bodytext-3", color: theme.theme.mbColors.dark }, t('pwg.placeholder.weight')))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
249
|
+
React__default["default"].createElement(Dot, null),
|
|
250
|
+
React__default["default"].createElement(index.Text, { size: "n1", color: theme.theme.colors.gray600 }, t('pwg.placeholder.weight')))))));
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
const StyledPregnancyWeightGainChart = styled__default["default"].div `
|
|
59
254
|
display: flex;
|
|
60
255
|
flex-direction: column;
|
|
61
256
|
align-items: center;
|
|
62
257
|
padding: 24px 16px;
|
|
63
258
|
width: 100%;
|
|
64
259
|
gap: 24px;
|
|
65
|
-
border: 1px solid ${
|
|
260
|
+
border: 1px solid ${theme.theme.colors.neutral100};
|
|
66
261
|
border-radius: 8px;
|
|
67
262
|
.chart-header {
|
|
68
263
|
text-align: center;
|
|
@@ -70,4 +265,19 @@
|
|
|
70
265
|
> div {
|
|
71
266
|
width: 100%;
|
|
72
267
|
}
|
|
73
|
-
`;
|
|
268
|
+
`;
|
|
269
|
+
|
|
270
|
+
const PregnancyWeightGainChart = ({ chartProps, pillCarouselProps, idealWeight, description, siteType, }) => {
|
|
271
|
+
const { t } = useTranslations.useTranslations();
|
|
272
|
+
const isMarryBaby = siteType === 'marryBaby';
|
|
273
|
+
return (React__default["default"].createElement(StyledPregnancyWeightGainChart, null,
|
|
274
|
+
React__default["default"].createElement("div", { className: "chart-header" },
|
|
275
|
+
isMarryBaby ? (React__default["default"].createElement(index$1.MarryBabyHeading, { type: "h3", color: theme.theme.mbColors.dark }, t('pregnancyTool.weightSuggested'))) : (React__default["default"].createElement(index.Text, { size: "s1", weight: "semiBold", color: theme.theme.colors.gray800 }, t('pregnancyTool.weightSuggested'))),
|
|
276
|
+
description && description),
|
|
277
|
+
React__default["default"].createElement(index$3.PillCarousel, Object.assign({}, pillCarouselProps)),
|
|
278
|
+
React__default["default"].createElement("div", null,
|
|
279
|
+
React__default["default"].createElement(ChartLegend, { idealWeight: idealWeight, siteType: siteType }),
|
|
280
|
+
React__default["default"].createElement(Chart, Object.assign({}, chartProps, { siteType: siteType })))));
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
exports.PregnancyWeightGainChart = PregnancyWeightGainChart;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-5553f9e1.js');
|
|
4
|
+
var isProduction = require('./isProduction-5ce3a388.js');
|
|
5
|
+
|
|
6
|
+
const getCurrentBaseUrl = (locale, isMarryBaby) => {
|
|
7
|
+
if (typeof window !== 'undefined')
|
|
8
|
+
return window.location.origin;
|
|
9
|
+
const isDev = process.env.NEXT_PUBLIC_DEPLOY_ENV === 'development';
|
|
10
|
+
const isStaging = !isDev && !isProduction.isProduction;
|
|
11
|
+
// const isDev = false
|
|
12
|
+
// const isStaging = false
|
|
13
|
+
return isDev
|
|
14
|
+
? 'http://localhost:3000'
|
|
15
|
+
: `https://${isStaging
|
|
16
|
+
? isMarryBaby
|
|
17
|
+
? 'fe.'
|
|
18
|
+
: 'discover.'
|
|
19
|
+
: isMarryBaby
|
|
20
|
+
? 'www.'
|
|
21
|
+
: ''}${index.domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}`;
|
|
22
|
+
};
|
|
23
|
+
const getCurrentSsoUrl = (locale, isMarryBaby) => {
|
|
24
|
+
return (process.env.UNIFY_SSO_API ||
|
|
25
|
+
`https://${!isProduction.isProduction ? 'staging-id.' : 'id.'}${index.domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}`);
|
|
26
|
+
};
|
|
27
|
+
const getTogetherApiDomain = () => {
|
|
28
|
+
return (process.env.UNIFY_INTERNAL_TOGETHER_API ||
|
|
29
|
+
process.env.UNIFY_TOGETHER_API ||
|
|
30
|
+
`https://${!isProduction.isProduction ? 'staging-together.' : 'together.'}hellohealthgroup.com`);
|
|
31
|
+
};
|
|
32
|
+
const getDiscoverApiDomain = (locale) => {
|
|
33
|
+
return (process.env.UNIFY_DISCOVER_API ||
|
|
34
|
+
`https://${!isProduction.isProduction ? 'staging.' : 'wp.'}${index.domainLocales[locale]}`);
|
|
35
|
+
};
|
|
36
|
+
const getCareApiDomain = () => {
|
|
37
|
+
return (process.env.UNIFY_INTERNAL_CARE_API ||
|
|
38
|
+
process.env.UNIFY_CARE_API ||
|
|
39
|
+
`https://${!isProduction.isProduction ? 'service-health-care.' : 'health-care.'}hellohealthgroup.com`);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.getCareApiDomain = getCareApiDomain;
|
|
43
|
+
exports.getCurrentBaseUrl = getCurrentBaseUrl;
|
|
44
|
+
exports.getCurrentSsoUrl = getCurrentSsoUrl;
|
|
45
|
+
exports.getDiscoverApiDomain = getDiscoverApiDomain;
|
|
46
|
+
exports.getTogetherApiDomain = getTogetherApiDomain;
|