@hhgtech/hhg-components 1.28.67 → 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-0340efb3.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/navigationV2/hooks/useNavConfig.d.ts +1 -3
- 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-d5d9ef32.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/navigationV2/hooks/useNavConfig.d.ts +1 -3
- 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-0a1fb891.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-14b65c9e.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-c56b0165.js +0 -1
- package/build/BMI_BOYS.percentile.weekly-64287e04.js +0 -1
- package/build/BMI_BOYS.percentile.yearly-8db65d54.js +0 -1
- package/build/BMI_BOYS.zscore.monthly-f12389cd.js +0 -1
- package/build/BMI_BOYS.zscore.weekly-fff37a57.js +0 -1
- package/build/BMI_BOYS.zscore.yearly-a19b57eb.js +0 -1
- package/build/BMI_GIRLS.percentile.monthly-a4b36d7d.js +0 -1
- package/build/BMI_GIRLS.percentile.weekly-b6089202.js +0 -1
- package/build/BMI_GIRLS.percentile.yearly-0d340818.js +0 -1
- package/build/BMI_GIRLS.zscore.monthly-fd5b57c0.js +0 -1
- package/build/BMI_GIRLS.zscore.weekly-d4577f50.js +0 -1
- package/build/BMI_GIRLS.zscore.yearly-e40b8a7d.js +0 -1
- package/build/ChevronDown-602ce39e.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.monthly-2e4c5776.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.weekly-fc5728a5.js +0 -1
- package/build/HEAD CIRCUM_BOYS.percentile.yearly-6bfab277.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.monthly-6af7ce44.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.weekly-9adb819b.js +0 -1
- package/build/HEAD CIRCUM_BOYS.zscore.yearly-9a6cdbcf.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.monthly-e7bfe9c6.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.weekly-9f17e019.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.percentile.yearly-8a59f541.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.monthly-b7ddb16c.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.weekly-72701c55.js +0 -1
- package/build/HEAD CIRCUM_GIRLS.zscore.yearly-dd94bded.js +0 -1
- package/build/HEIGHT_BOYS.percentile.monthly-b890068c.js +0 -1
- package/build/HEIGHT_BOYS.percentile.weekly-a1aa5130.js +0 -1
- package/build/HEIGHT_BOYS.percentile.yearly-5727d920.js +0 -1
- package/build/HEIGHT_BOYS.zscore.monthly-13b70aa6.js +0 -1
- package/build/HEIGHT_BOYS.zscore.weekly-3e1d7f23.js +0 -1
- package/build/HEIGHT_BOYS.zscore.yearly-a956102d.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.monthly-da5ec01b.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.weekly-e6205d32.js +0 -1
- package/build/HEIGHT_GIRLS.percentile.yearly-caefa502.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.monthly-102ba473.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.weekly-db4f710b.js +0 -1
- package/build/HEIGHT_GIRLS.zscore.yearly-36465920.js +0 -1
- package/build/Subot-4751194d.js +0 -1
- package/build/Visible-9497c463.js +0 -1
- package/build/WEIGHT_BOYS.percentile.monthly-554d0361.js +0 -1
- package/build/WEIGHT_BOYS.percentile.weekly-8e5334b8.js +0 -1
- package/build/WEIGHT_BOYS.percentile.yearly-536e1ccb.js +0 -1
- package/build/WEIGHT_BOYS.zscore.monthly-01eccee1.js +0 -1
- package/build/WEIGHT_BOYS.zscore.weekly-ee8f2c6b.js +0 -1
- package/build/WEIGHT_BOYS.zscore.yearly-0aea2749.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.monthly-7abf9d06.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.weekly-f9b6e963.js +0 -1
- package/build/WEIGHT_GIRLS.percentile.yearly-254865a5.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.monthly-909f7417.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.weekly-e62cd084.js +0 -1
- package/build/WEIGHT_GIRLS.zscore.yearly-8d6e5405.js +0 -1
- package/build/constants-00e06f68.js +0 -108
- package/build/constants-51251306.js +0 -1
- package/build/cookieHelper-7d519a72.js +0 -1
- package/build/core-ba3af3e2.js +0 -1
- package/build/dataTransform-1805eae3.js +0 -1
- package/build/esm/BMI_BOYS.percentile.monthly-6272f835.js +0 -1
- package/build/esm/BMI_BOYS.percentile.weekly-80d18f47.js +0 -1
- package/build/esm/BMI_BOYS.percentile.yearly-a7e5b5f6.js +0 -1
- package/build/esm/BMI_BOYS.zscore.monthly-d3658f97.js +0 -1
- package/build/esm/BMI_BOYS.zscore.weekly-6e6708dc.js +0 -1
- package/build/esm/BMI_BOYS.zscore.yearly-b8400c9d.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.monthly-98586b46.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.weekly-7c1511b0.js +0 -1
- package/build/esm/BMI_GIRLS.percentile.yearly-ea667f90.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.monthly-3a4fd1a6.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.weekly-cc1de097.js +0 -1
- package/build/esm/BMI_GIRLS.zscore.yearly-6dd1a364.js +0 -1
- package/build/esm/ChevronDown-4e59cac6.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-bd0965ae.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-db1053f7.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-cd38b622.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-d7f88a95.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-76f7db79.js +0 -1
- package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-3ce70f8e.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-b2e678ae.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-8e2664bb.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-f5c075a9.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-6f87849e.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-48da0aaa.js +0 -1
- package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-4eea437b.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.monthly-d1a8cc8e.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.weekly-2b6cfe6c.js +0 -1
- package/build/esm/HEIGHT_BOYS.percentile.yearly-9e78afc3.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.monthly-5292d78a.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.weekly-fbdee645.js +0 -1
- package/build/esm/HEIGHT_BOYS.zscore.yearly-c11a8f1b.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.monthly-8e11e2dc.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.weekly-dc3965cb.js +0 -1
- package/build/esm/HEIGHT_GIRLS.percentile.yearly-490f7b4e.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.monthly-e3531c32.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.weekly-36a16a66.js +0 -1
- package/build/esm/HEIGHT_GIRLS.zscore.yearly-61736bba.js +0 -1
- package/build/esm/Subot-4642c5bf.js +0 -1
- package/build/esm/Visible-ff7d225c.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.monthly-0cfe7ecd.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.weekly-89802113.js +0 -1
- package/build/esm/WEIGHT_BOYS.percentile.yearly-0eb40972.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.monthly-7f8c5a15.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.weekly-3dcfa8ce.js +0 -1
- package/build/esm/WEIGHT_BOYS.zscore.yearly-98ce1ea0.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.monthly-df98e335.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.weekly-63fff42a.js +0 -1
- package/build/esm/WEIGHT_GIRLS.percentile.yearly-8db8cdd0.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.monthly-15c83c6d.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.weekly-747a55ec.js +0 -1
- package/build/esm/WEIGHT_GIRLS.zscore.yearly-197dc52d.js +0 -1
- package/build/esm/constants-6ecfa77c.js +0 -1
- package/build/esm/constants-f7c80032.js +0 -108
- package/build/esm/cookieHelper-4f089e3c.js +0 -1
- package/build/esm/core-80112758.js +0 -1
- package/build/esm/dataTransform-0fa341bb.js +0 -1
- package/build/esm/getDynamicHealthTool-a4c9d6dd.js +0 -1
- package/build/esm/getSocialList-4e48deba.js +0 -1
- package/build/esm/index-13dc1f44.js +0 -1
- package/build/esm/index-13e62563.js +0 -137
- package/build/esm/index-1e7ad007.js +0 -1
- package/build/esm/index-24557f2b.js +0 -1
- package/build/esm/index-252cb964.js +0 -1
- package/build/esm/index-2e99f941.js +0 -1
- package/build/esm/index-3452fed2.js +0 -1
- package/build/esm/index-3aff939b.js +0 -1
- package/build/esm/index-459e0362.js +0 -1
- package/build/esm/index-45dcd965.js +0 -1
- package/build/esm/index-486b71cd.js +0 -1
- package/build/esm/index-5408f5a4.js +0 -113
- package/build/esm/index-5e1af23a.js +0 -1
- package/build/esm/index-79ef3a30.js +0 -1
- package/build/esm/index-7c77273a.js +0 -1
- package/build/esm/index-823fd7c0.js +0 -117
- package/build/esm/index-8c77d7e0.js +0 -1
- package/build/esm/index-93e5b4f3.js +0 -1
- package/build/esm/index-9c7b9011.js +0 -2748
- package/build/esm/index-9e5956c2.js +0 -1
- package/build/esm/index-a83aad1c.js +0 -375
- package/build/esm/index-b7cc3ca2.js +0 -1
- package/build/esm/index-bf11f9e9.js +0 -50
- package/build/esm/index-ce3d38fd.js +0 -1
- package/build/esm/index-d27a0e25.js +0 -1
- package/build/esm/index-e21276e3.js +0 -1
- package/build/esm/index-f9514788.js +0 -177
- package/build/esm/index-fd04ccb7.js +0 -1430
- package/build/esm/index.styles-94af560f.js +0 -817
- package/build/esm/isProduction-00695d80.js +0 -1
- package/build/esm/localizeNumberFormat-8355a44f.js +0 -1
- package/build/esm/normalizeLink-1c194268.js +0 -1
- package/build/esm/number-1347eb7b.js +0 -1
- package/build/esm/paths-749b4b53.js +0 -1
- package/build/esm/routing-2b284b30.js +0 -1
- package/build/esm/theme-3db3c9a8.js +0 -1
- package/build/esm/translationsContext-6d2efd65.js +0 -1
- package/build/esm/tslib.es6-266309d1.js +0 -1
- package/build/esm/types-6d397125.js +0 -3004
- package/build/esm/types-850814a7.js +0 -785
- package/build/esm/types-d3da37d2.js +0 -1
- package/build/esm/useCategory-f5f74749.js +0 -1
- package/build/esm/useHealthToolCache-f1488032.js +0 -1
- package/build/esm/useIsInit-9661c5f5.js +0 -1
- package/build/esm/useOutsideClick-0704b383.js +0 -1
- package/build/esm/usePlacesAutocomplete-0733ec49.js +0 -1
- package/build/esm/useScrollbarSize-90b179a5.js +0 -1
- package/build/esm/useTranslations-df1b3bb8.js +0 -1
- package/build/esm/useUniqueId-03fbaecd.js +0 -1
- package/build/esm/utils-3d2e3f0f.js +0 -141
- package/build/esm/utils-5b4e60da.js +0 -1
- package/build/esm/utils-970ce0c0.js +0 -8
- package/build/esm/utils-b87ec473.js +0 -1
- package/build/getDynamicHealthTool-31f44ca1.js +0 -1
- package/build/getSocialList-29c0a6e8.js +0 -1
- package/build/index-1714c81c.js +0 -2748
- package/build/index-238813a4.js +0 -375
- package/build/index-2438163d.js +0 -1430
- package/build/index-29d302f4.js +0 -137
- package/build/index-3184ae4e.js +0 -1
- package/build/index-34b6bd24.js +0 -1
- package/build/index-35192783.js +0 -1
- package/build/index-41d684a8.js +0 -50
- package/build/index-4a8c8ce6.js +0 -1
- package/build/index-58e0d49f.js +0 -1
- package/build/index-64d2f812.js +0 -1
- package/build/index-85c621a2.js +0 -113
- package/build/index-90f4bc02.js +0 -1
- package/build/index-9a845847.js +0 -117
- package/build/index-9ed509d1.js +0 -1
- package/build/index-aa495d24.js +0 -1
- package/build/index-ad5cf64d.js +0 -1
- package/build/index-b21a1d96.js +0 -1
- package/build/index-b320255d.js +0 -1
- package/build/index-b9af15da.js +0 -1
- package/build/index-bd4b31bf.js +0 -1
- package/build/index-bf81cb71.js +0 -1
- package/build/index-c3cbb8f3.js +0 -1
- package/build/index-d25afe2f.js +0 -1
- package/build/index-e7c1ff53.js +0 -177
- package/build/index-ed8656f9.js +0 -1
- package/build/index-f6217f73.js +0 -1
- package/build/index-f7088d57.js +0 -1
- package/build/index.styles-2ecb9c85.js +0 -817
- package/build/isProduction-28d96804.js +0 -1
- package/build/localizeNumberFormat-22b2d7aa.js +0 -1
- package/build/normalizeLink-594ccff1.js +0 -1
- package/build/number-cf06dcc0.js +0 -1
- package/build/paths-ed72ecb8.js +0 -1
- package/build/routing-f2edd0d0.js +0 -1
- package/build/theme-f2b8aad7.js +0 -1
- package/build/translationsContext-4c4c33c4.js +0 -1
- package/build/tslib.es6-ceb091fd.js +0 -1
- package/build/types-49f0543a.js +0 -785
- package/build/types-5b303b71.js +0 -1
- package/build/types-bfd12e24.js +0 -3004
- package/build/useCategory-94d60dab.js +0 -1
- package/build/useHealthToolCache-7307d240.js +0 -1
- package/build/useIsInit-c3cf1925.js +0 -1
- package/build/useOutsideClick-15fef824.js +0 -1
- package/build/usePlacesAutocomplete-6ab0181b.js +0 -1
- package/build/useScrollbarSize-ab332673.js +0 -1
- package/build/useTranslations-233c68bc.js +0 -1
- package/build/useUniqueId-46834e18.js +0 -1
- package/build/utils-13ea4f2f.js +0 -8
- package/build/utils-45e691a3.js +0 -1
- package/build/utils-bee8be92.js +0 -141
- package/build/utils-d5766c73.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-81f295b7.js';
|
|
3
|
+
import { T as Text } from './index-3474401a.js';
|
|
4
|
+
import { P as PillCarousel } from './index-4aa8e518.js';
|
|
5
|
+
import { u as useTranslations } from './useTranslations-4f1db486.js';
|
|
6
|
+
import { t as theme } from './theme-e74db08c.js';
|
|
7
|
+
import { ResponsiveContainer, AreaChart, CartesianGrid, Tooltip, XAxis, YAxis, Area, ReferenceDot } from 'recharts';
|
|
8
|
+
import { C as CustomReferenceDot } from './index-12fa4985.js';
|
|
9
|
+
import { a as useOutsideClick } from './useOutsideClick-c8a7ff20.js';
|
|
10
|
+
import styled from 'styled-components';
|
|
11
|
+
import { _ as __rest } from './tslib.es6-1b1533a9.js';
|
|
12
|
+
import './index.styled-9c9db9cc.js';
|
|
13
|
+
import '@mantine/core';
|
|
14
|
+
import './Subot-3289bd8e.js';
|
|
15
|
+
import './index-8858383e.js';
|
|
16
|
+
import './index-e612be9c.js';
|
|
17
|
+
import 'date-fns/locale';
|
|
18
|
+
import './isProduction-0ea904dd.js';
|
|
19
|
+
import './index-32e53dac.js';
|
|
20
|
+
import '@hhgtech/icons/other';
|
|
21
|
+
import '@mantine/hooks';
|
|
22
|
+
import 'dayjs';
|
|
23
|
+
import './utils-2c484c05.js';
|
|
24
|
+
import '@mantine/carousel';
|
|
25
|
+
import 'classnames';
|
|
26
|
+
import './useUniqueId-3638402f.js';
|
|
27
|
+
import '@hhgtech/icons/core';
|
|
28
|
+
import './index-7af5242a.js';
|
|
29
|
+
import '@mantine/dates';
|
|
30
|
+
import './translationsContext-ad3e25de.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 o}from"react";import{M as a,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 o}from"react";import{M as a,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 o}from"react";import{M as a,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 o}from"react";import{M as a,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 o}from"react";import{M as a,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-e612be9c.js';
|
|
2
|
+
import { i as isProduction } from './isProduction-0ea904dd.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 };
|