@hhgtech/hhg-components 1.29.42 → 1.29.43
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/{WhatsApp-c618fc4b.js → WhatsApp-da901a36.js} +1 -1
- package/build/adapters.js +15 -15
- package/build/babyGrowth.js +80 -80
- package/build/cache.js +3 -3
- package/build/care.js +17 -17
- package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.d.ts +3 -10
- package/build/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +0 -3
- package/build/components/molecules/embeddedHeathToolCards/pwg/pwg.d.ts +6 -16
- package/build/components/molecules/healthTools/components/borderBoxControl/index.d.ts +3 -2
- package/build/components/molecules/healthTools/components/borderBoxControl/index.styles.d.ts +4 -6
- package/build/components/molecules/healthTools/form/babyPoopForm/index.d.ts +13 -0
- package/build/components/molecules/healthTools/form/pwgForm/context.d.ts +10 -0
- package/build/components/molecules/healthTools/form/pwgForm/defaultLayout.d.ts +3 -0
- package/build/components/molecules/healthTools/form/pwgForm/index.d.ts +29 -0
- package/build/components/molecules/healthTools/form/pwgForm/inlineLayout.d.ts +3 -0
- package/build/components/molecules/healthTools/form/pwgForm/mbLayout.d.ts +3 -0
- package/build/components/molecules/healthTools/formWrapper/index.d.ts +2 -0
- package/build/components/molecules/healthTools/formWrapper/switching.d.ts +8 -0
- package/build/components/molecules/index.d.ts +2 -0
- package/build/components/molecules/weightGainForm/index.d.ts +5 -1
- package/build/components.js +60 -58
- package/build/{constants-5a0f1f18.js → constants-1531deca.js} +2 -2
- package/build/{constants-dd84f8e3.js → constants-7fddc7f7.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-b1b3721a.js → core-0cca2a30.js} +2 -2
- package/build/{dataTransform-ecb93da7.js → dataTransform-15015b32.js} +1 -1
- package/build/ecom.js +6 -6
- package/build/esm/{WhatsApp-85f73100.js → WhatsApp-98f17e50.js} +1 -1
- package/build/esm/adapters.js +15 -15
- package/build/esm/babyGrowth.js +81 -81
- package/build/esm/cache.js +3 -3
- package/build/esm/care.js +17 -17
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-poop/index.d.ts +3 -10
- package/build/esm/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +0 -3
- package/build/esm/components/molecules/embeddedHeathToolCards/pwg/pwg.d.ts +6 -16
- package/build/esm/components/molecules/healthTools/components/borderBoxControl/index.d.ts +3 -2
- package/build/esm/components/molecules/healthTools/components/borderBoxControl/index.styles.d.ts +4 -6
- package/build/esm/components/molecules/healthTools/form/babyPoopForm/index.d.ts +13 -0
- package/build/esm/components/molecules/healthTools/form/pwgForm/context.d.ts +10 -0
- package/build/esm/components/molecules/healthTools/form/pwgForm/defaultLayout.d.ts +3 -0
- package/build/esm/components/molecules/healthTools/form/pwgForm/index.d.ts +29 -0
- package/build/esm/components/molecules/healthTools/form/pwgForm/inlineLayout.d.ts +3 -0
- package/build/esm/components/molecules/healthTools/form/pwgForm/mbLayout.d.ts +3 -0
- package/build/esm/components/molecules/healthTools/formWrapper/index.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/formWrapper/switching.d.ts +8 -0
- package/build/esm/components/molecules/index.d.ts +2 -0
- package/build/esm/components/molecules/weightGainForm/index.d.ts +5 -1
- package/build/esm/components.js +58 -58
- package/build/esm/{constants-0904669a.js → constants-3f24d4bd.js} +2 -2
- package/build/esm/{constants-ee4f30c7.js → constants-b34d417b.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-2e0a38ee.js → core-3cbf0731.js} +2 -2
- package/build/esm/{dataTransform-5e5983b2.js → dataTransform-a44c3d7b.js} +1 -1
- package/build/esm/ecom.js +6 -6
- package/build/esm/footer.js +18 -18
- package/build/esm/gAssets.js +4 -4
- package/build/esm/{getDynamicHealthTool-bb0c554b.js → getDynamicHealthTool-acd90910.js} +4 -4
- package/build/esm/{getSocialList-77cc5472.js → getSocialList-87a58288.js} +4 -4
- package/build/esm/hooks.js +17 -17
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +2 -1
- package/build/esm/i18n-values/hi-IN.js +2 -1
- package/build/esm/i18n-values/id-ID.js +2 -1
- package/build/esm/i18n-values/km-KH.js +2 -1
- package/build/esm/i18n-values/ms-MY.js +2 -1
- package/build/esm/i18n-values/my-MM.js +2 -1
- package/build/esm/i18n-values/th-TH.js +2 -1
- package/build/esm/i18n-values/tl-PH.js +2 -1
- package/build/esm/i18n-values/vi-VN.js +2 -1
- package/build/esm/i18n-values/vi-VN_MB.js +2 -1
- package/build/esm/i18n-values/zh-TW.js +2 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-0d9866a6.js → index-0771cb54.js} +2 -2
- package/build/esm/{index-4ea3e525.js → index-08683b2c.js} +97 -57
- package/build/esm/{index-4929d9c4.js → index-0ec34552.js} +9 -9
- package/build/esm/{index-f2de848c.js → index-10f46069.js} +4 -4
- package/build/esm/{index-18250b0b.js → index-1d14271f.js} +2 -2
- package/build/esm/{index-3fa61807.js → index-23968a4b.js} +4 -4
- package/build/esm/{index-d73121f4.js → index-30aa26a2.js} +2 -2
- package/build/esm/{index-031da05c.js → index-40919066.js} +193 -224
- package/build/esm/{index-a6863224.js → index-51a5b352.js} +11 -11
- package/build/esm/{index-a367d535.js → index-54d95469.js} +1 -1
- package/build/esm/{index-829fbe6e.js → index-62e81061.js} +2 -2
- package/build/esm/{index-b804ef2f.js → index-7b6dd120.js} +32 -32
- package/build/esm/{index-6201aa22.js → index-8345f710.js} +2 -2
- package/build/esm/{index-f2ac3b3b.js → index-8573a814.js} +12 -12
- package/build/esm/{index-7edac771.js → index-8e030e26.js} +10 -10
- package/build/esm/{index-3723a2c1.js → index-8f004caa.js} +5 -5
- package/build/esm/{index-b03e8e5c.js → index-a6c27fed.js} +4 -4
- package/build/esm/{index-7d1d6c79.js → index-b115d850.js} +2 -2
- package/build/esm/{index-667832a2.js → index-b1db79d0.js} +2 -2
- package/build/esm/{index-48d75d5b.js → index-c853dc6e.js} +2 -2
- package/build/esm/{index-61c6842a.js → index-cb06c57d.js} +2 -2
- package/build/esm/{index-75658868.js → index-d2706741.js} +6 -6
- package/build/esm/{index-62e5ab51.js → index-df7ed505.js} +2 -2
- package/build/esm/{index-ba777d71.js → index-e2d45ff6.js} +9 -9
- package/build/esm/{index-13578b4b.js → index-f0551563.js} +3 -3
- package/build/esm/index.js +66 -66
- package/build/esm/{index.styled-d9fe4f4b.js → index.styled-7e8976d7.js} +2 -2
- package/build/esm/{index.styles-924b4812.js → index.styles-64fbe1fc.js} +6 -6
- package/build/esm/lead.js +28 -28
- package/build/esm/mantine.js +21 -21
- package/build/esm/misc.js +19 -19
- package/build/esm/navigation.js +35 -35
- package/build/esm/onboardingV2.js +33 -33
- package/build/esm/pwg.js +19 -19
- package/build/esm/{routing-e559250d.js → routing-4707108c.js} +2 -2
- package/build/esm/subot.js +22 -22
- package/build/esm/together.js +34 -34
- package/build/esm/{types-29922728.js → types-6fa07764.js} +13 -13
- package/build/esm/{types-20993189.js → types-efc23bf1.js} +30 -30
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-ee4a1988.js → useCategory-cad4aa31.js} +5 -5
- package/build/esm/{useHealthToolCache-807babad.js → useHealthToolCache-38287625.js} +2 -2
- package/build/esm/{useMantineLocale-deeb986b.js → useMantineLocale-5341dd85.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-b0c230b8.js → usePlacesAutocomplete-8fad7364.js} +1 -1
- package/build/esm/{useTranslations-3a5b70f3.js → useTranslations-5f0ff5be.js} +1 -1
- package/build/esm/{utils-cf5bebf5.js → utils-3d5bdbed.js} +4 -4
- package/build/esm/{utils-b0732a5b.js → utils-5f7c2eba.js} +5 -5
- package/build/esm/{utils-50c254f2.js → utils-ea3a5a18.js} +1 -1
- package/build/esm/vaccination.js +26 -26
- package/build/footer.js +18 -18
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-ffb87e2a.js → getDynamicHealthTool-628cb656.js} +4 -4
- package/build/{getSocialList-a960f8f9.js → getSocialList-f2fcc50f.js} +4 -4
- package/build/hooks.js +17 -17
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +2 -1
- package/build/i18n-values/hi-IN.js +2 -1
- package/build/i18n-values/id-ID.js +2 -1
- package/build/i18n-values/km-KH.js +2 -1
- package/build/i18n-values/ms-MY.js +2 -1
- package/build/i18n-values/my-MM.js +2 -1
- package/build/i18n-values/th-TH.js +2 -1
- package/build/i18n-values/tl-PH.js +2 -1
- package/build/i18n-values/vi-VN.js +2 -1
- package/build/i18n-values/vi-VN_MB.js +2 -1
- package/build/i18n-values/zh-TW.js +2 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-4fbef592.js → index-00302cb4.js} +9 -9
- package/build/{index-ac5d1c65.js → index-0c6427d7.js} +2 -2
- package/build/{index-ebdaf69f.js → index-10d9cfdb.js} +5 -5
- package/build/{index-c78fbad6.js → index-122c5fb9.js} +2 -2
- package/build/{index-46a403de.js → index-2a48c97f.js} +10 -10
- package/build/{index-e42193d1.js → index-35563f12.js} +2 -2
- package/build/{index-f49fc384.js → index-3a44158b.js} +32 -32
- package/build/{index-360ff7c3.js → index-57683f28.js} +2 -2
- package/build/{index-4ec18b8e.js → index-6922d805.js} +2 -2
- package/build/{index-89e0a527.js → index-79230bff.js} +9 -9
- package/build/{index-8b591908.js → index-83b804f7.js} +4 -4
- package/build/{index-1015b133.js → index-84c6efc1.js} +2 -2
- package/build/{index-d8660e08.js → index-9c2c196e.js} +6 -6
- package/build/{index-409da37e.js → index-9c2c227f.js} +11 -11
- package/build/{index-e407cc85.js → index-bb55a2a5.js} +1 -1
- package/build/{index-1c6a470a.js → index-bc5dcbc1.js} +2 -2
- package/build/{index-ffb39121.js → index-c58213cc.js} +96 -56
- package/build/{index-cdd767e6.js → index-cd19b5cc.js} +12 -12
- package/build/{index-bcb185da.js → index-d56f3314.js} +2 -2
- package/build/{index-f1fec527.js → index-de3537ec.js} +2 -2
- package/build/{index-b2034af4.js → index-e1ab3b36.js} +2 -2
- package/build/{index-026689eb.js → index-e36755e5.js} +4 -4
- package/build/{index-56cf325c.js → index-e9dac48f.js} +196 -225
- package/build/{index-577374f5.js → index-fda0fbbe.js} +3 -3
- package/build/{index-a11eaf40.js → index-fdd78527.js} +4 -4
- package/build/index.js +68 -66
- package/build/{index.styled-47d1a79c.js → index.styled-4f0b82d2.js} +2 -2
- package/build/{index.styles-6fcbfe1c.js → index.styles-cef9703d.js} +6 -6
- package/build/lead.js +28 -28
- package/build/mantine.js +18 -18
- package/build/misc.js +19 -19
- package/build/navigation.js +35 -35
- package/build/onboardingV2.js +32 -32
- package/build/pwg.js +19 -19
- package/build/{routing-225709b4.js → routing-3285a2c2.js} +2 -2
- package/build/subot.js +22 -22
- package/build/together.js +34 -34
- package/build/{types-3b156cb9.js → types-05c5aced.js} +13 -13
- package/build/{types-efe1b34a.js → types-4cec1d4c.js} +30 -30
- package/build/types.js +1 -1
- package/build/{useCategory-1fdb4640.js → useCategory-8319f05f.js} +5 -5
- package/build/{useHealthToolCache-54b03fea.js → useHealthToolCache-b6d91149.js} +2 -2
- package/build/{useMantineLocale-741637f6.js → useMantineLocale-904a06a5.js} +3 -3
- package/build/{usePlacesAutocomplete-f8b10801.js → usePlacesAutocomplete-2c183056.js} +1 -1
- package/build/{useTranslations-ae9962a2.js → useTranslations-480f64da.js} +1 -1
- package/build/{utils-956f04ea.js → utils-03baf837.js} +4 -4
- package/build/{utils-3559ef16.js → utils-ca6f6696.js} +5 -5
- package/build/{utils-bb9fa0c2.js → utils-f4ff815d.js} +1 -1
- package/build/vaccination.js +26 -26
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-5e7ec1d2.js → BMI_BOYS.percentile.monthly-d50fe5ae.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-6e4738a8.js → BMI_BOYS.percentile.weekly-43894113.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-8d16e5a8.js → BMI_BOYS.percentile.yearly-fbd052bf.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-0840deac.js → BMI_BOYS.zscore.monthly-74c8af46.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-74429316.js → BMI_BOYS.zscore.weekly-42f382c7.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-cd2fe266.js → BMI_BOYS.zscore.yearly-6ea91784.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-2bff3efe.js → BMI_GIRLS.percentile.monthly-eeaad411.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-e6fc6dbe.js → BMI_GIRLS.percentile.weekly-34799c6d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-7f25de61.js → BMI_GIRLS.percentile.yearly-59bdf904.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-0375ac4d.js → BMI_GIRLS.zscore.monthly-95f19acb.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-91ca1406.js → BMI_GIRLS.zscore.weekly-c2525a68.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-ffd5c54a.js → BMI_GIRLS.zscore.yearly-c67c83e1.js} +0 -0
- /package/build/{ChevronDown-d3d4a8c4.js → ChevronDown-91f06fd2.js} +0 -0
- /package/build/{Close-25846383.js → Close-6e566c9d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-1b1d5579.js → HEAD CIRCUM_BOYS.percentile.monthly-342a4a8b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-ca05f7ea.js → HEAD CIRCUM_BOYS.percentile.weekly-b582bdc6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-00387468.js → HEAD CIRCUM_BOYS.percentile.yearly-f45241a8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-3e45b7a0.js → HEAD CIRCUM_BOYS.zscore.monthly-c4899e99.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9ae6fb48.js → HEAD CIRCUM_BOYS.zscore.weekly-2592ac1c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-6f15fb28.js → HEAD CIRCUM_BOYS.zscore.yearly-4fdb95df.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-a01b2242.js → HEAD CIRCUM_GIRLS.percentile.monthly-35293595.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-cf7c6488.js → HEAD CIRCUM_GIRLS.percentile.weekly-cb142232.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-6634e25d.js → HEAD CIRCUM_GIRLS.percentile.yearly-72be1a24.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5e2b4919.js → HEAD CIRCUM_GIRLS.zscore.monthly-11902907.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-05b1b3a6.js → HEAD CIRCUM_GIRLS.zscore.weekly-f01466fc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-e9e48412.js → HEAD CIRCUM_GIRLS.zscore.yearly-cbcaff35.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-49cc8a87.js → HEIGHT_BOYS.percentile.monthly-8b850042.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-a325ce62.js → HEIGHT_BOYS.percentile.weekly-a72cd3c5.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-03eb805e.js → HEIGHT_BOYS.percentile.yearly-20908987.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-11ef3efb.js → HEIGHT_BOYS.zscore.monthly-b63b54dc.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-9b0fa44a.js → HEIGHT_BOYS.zscore.weekly-8c2af19d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-7bb6502a.js → HEIGHT_BOYS.zscore.yearly-ee3ccb3c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-53ccb921.js → HEIGHT_GIRLS.percentile.monthly-bca91c6a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-edc585db.js → HEIGHT_GIRLS.percentile.weekly-a579abb8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-7ac079d0.js → HEIGHT_GIRLS.percentile.yearly-b60fbbd1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-484f76e8.js → HEIGHT_GIRLS.zscore.monthly-4f5029fd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-722a4648.js → HEIGHT_GIRLS.zscore.weekly-b85f05ee.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-97904656.js → HEIGHT_GIRLS.zscore.yearly-44f4fab9.js} +0 -0
- /package/build/{Visible-9a919449.js → Visible-63ae4a15.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-b257074b.js → WEIGHT_BOYS.percentile.monthly-11e4f5e8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-702503eb.js → WEIGHT_BOYS.percentile.weekly-b6fab62d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-ed038d17.js → WEIGHT_BOYS.percentile.yearly-a4801ff8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-6001e8a8.js → WEIGHT_BOYS.zscore.monthly-d5fe14b5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-ebdb9876.js → WEIGHT_BOYS.zscore.weekly-5701e0e0.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-916094ae.js → WEIGHT_BOYS.zscore.yearly-8eec9677.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-6c72b49a.js → WEIGHT_GIRLS.percentile.monthly-1119cd80.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-9e1d5a4c.js → WEIGHT_GIRLS.percentile.weekly-521dfc88.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-01f08511.js → WEIGHT_GIRLS.percentile.yearly-70ce9387.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-b55046d5.js → WEIGHT_GIRLS.zscore.monthly-23806ed2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-8f6a4861.js → WEIGHT_GIRLS.zscore.weekly-7b7bd073.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-d9f26541.js → WEIGHT_GIRLS.zscore.yearly-491f32e1.js} +0 -0
- /package/build/{animation-265b0036.js → animation-9d8acebe.js} +0 -0
- /package/build/{cart-16fb26d5.js → cart-690cadca.js} +0 -0
- /package/build/components/molecules/{embeddedHeathToolCards/baby-poop → healthTools/form/babyPoopForm}/index.styles.d.ts +0 -0
- /package/build/{cookieHelper-d38b57aa.js → cookieHelper-0b7f586d.js} +0 -0
- /package/build/{doctor-c93787ed.js → doctor-5ca5d99b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-8b5d47d1.js → BMI_BOYS.percentile.monthly-954c2d8f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-3e74be5a.js → BMI_BOYS.percentile.weekly-4f9c77ab.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-40f6256a.js → BMI_BOYS.percentile.yearly-1929eb3b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-ddeeb36e.js → BMI_BOYS.zscore.monthly-66f969ea.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-9d1d7e9c.js → BMI_BOYS.zscore.weekly-c3eb69b3.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-4865ccc5.js → BMI_BOYS.zscore.yearly-738ee609.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-81b34946.js → BMI_GIRLS.percentile.monthly-5bd9e974.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-065ecf25.js → BMI_GIRLS.percentile.weekly-50399b6a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-5619f4dd.js → BMI_GIRLS.percentile.yearly-b780ed5c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-e013d9a3.js → BMI_GIRLS.zscore.monthly-9946a16f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-1fb839bf.js → BMI_GIRLS.zscore.weekly-6a985189.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-54ec7e0e.js → BMI_GIRLS.zscore.yearly-7e06b463.js} +0 -0
- /package/build/esm/{ChevronDown-14cc5d20.js → ChevronDown-761e1d17.js} +0 -0
- /package/build/esm/{Close-2f1a64cb.js → Close-e3fe72a2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-cb28050d.js → HEAD CIRCUM_BOYS.percentile.monthly-b5fd3180.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f0b0e5f8.js → HEAD CIRCUM_BOYS.percentile.weekly-07f290cd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-68cbd39f.js → HEAD CIRCUM_BOYS.percentile.yearly-99c9790d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-9d0fc66b.js → HEAD CIRCUM_BOYS.zscore.monthly-2c61094c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-c371830b.js → HEAD CIRCUM_BOYS.zscore.weekly-55e7391c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-ee2e6fd5.js → HEAD CIRCUM_BOYS.zscore.yearly-c3ae5aac.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-9b2337cf.js → HEAD CIRCUM_GIRLS.percentile.monthly-2fc36807.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5e7d9efc.js → HEAD CIRCUM_GIRLS.percentile.weekly-36d69146.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-9b56ef27.js → HEAD CIRCUM_GIRLS.percentile.yearly-79967c54.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fa8e7985.js → HEAD CIRCUM_GIRLS.zscore.monthly-15ff247d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f2e1d774.js → HEAD CIRCUM_GIRLS.zscore.weekly-7e74085f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-aa042b87.js → HEAD CIRCUM_GIRLS.zscore.yearly-1a6f280f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-2bca7e36.js → HEIGHT_BOYS.percentile.monthly-42868130.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-04a91167.js → HEIGHT_BOYS.percentile.weekly-b497520f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-16de0b96.js → HEIGHT_BOYS.percentile.yearly-489e3a70.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-6cea9714.js → HEIGHT_BOYS.zscore.monthly-22b88c68.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-412b184e.js → HEIGHT_BOYS.zscore.weekly-6b6b951c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-0f4049ba.js → HEIGHT_BOYS.zscore.yearly-4293d9f0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-b2571bcd.js → HEIGHT_GIRLS.percentile.monthly-cbc98ce9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-baeb8c8a.js → HEIGHT_GIRLS.percentile.weekly-9c962736.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-78f687cc.js → HEIGHT_GIRLS.percentile.yearly-43d44637.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-54565652.js → HEIGHT_GIRLS.zscore.monthly-7e8ffefc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-7afa591c.js → HEIGHT_GIRLS.zscore.weekly-30c4a68b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-07696a76.js → HEIGHT_GIRLS.zscore.yearly-cea9956e.js} +0 -0
- /package/build/esm/{Visible-f514e062.js → Visible-6294ea92.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-548f4eba.js → WEIGHT_BOYS.percentile.monthly-351b002b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-e7230863.js → WEIGHT_BOYS.percentile.weekly-f4df38c2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-a6fd5440.js → WEIGHT_BOYS.percentile.yearly-5ef225df.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-a4b99987.js → WEIGHT_BOYS.zscore.monthly-d03bbb69.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b9a278b2.js → WEIGHT_BOYS.zscore.weekly-a642e63d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-4fc09b9d.js → WEIGHT_BOYS.zscore.yearly-de0f11a4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-6d72e5b5.js → WEIGHT_GIRLS.percentile.monthly-4a22c12a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-480b25c8.js → WEIGHT_GIRLS.percentile.weekly-8273ddae.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-3472c514.js → WEIGHT_GIRLS.percentile.yearly-28df4700.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-717db383.js → WEIGHT_GIRLS.zscore.monthly-a2e302d9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-21fb2418.js → WEIGHT_GIRLS.zscore.weekly-b684c8d6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-fd07c8f6.js → WEIGHT_GIRLS.zscore.yearly-bb99a4f3.js} +0 -0
- /package/build/esm/{animation-8a323af5.js → animation-89491bac.js} +0 -0
- /package/build/esm/{cart-d52f1dec.js → cart-e181efa3.js} +0 -0
- /package/build/esm/components/molecules/{embeddedHeathToolCards/baby-poop → healthTools/form/babyPoopForm}/index.styles.d.ts +0 -0
- /package/build/esm/{cookieHelper-82442bba.js → cookieHelper-bdcae9e9.js} +0 -0
- /package/build/esm/{doctor-04938ed4.js → doctor-e1e1a438.js} +0 -0
- /package/build/esm/{index-d84269ae.js → index-11ea5f3a.js} +0 -0
- /package/build/esm/{index-eec6203c.js → index-2219b86b.js} +0 -0
- /package/build/esm/{index-1aeb952a.js → index-39aeff4f.js} +0 -0
- /package/build/esm/{index-7dea2608.js → index-cc4e3181.js} +0 -0
- /package/build/esm/{isProduction-d3299694.js → isProduction-2cb49e0e.js} +0 -0
- /package/build/esm/{localizeNumberFormat-a3a55f49.js → localizeNumberFormat-93a46788.js} +0 -0
- /package/build/esm/{normalizeLink-09b7b732.js → normalizeLink-98886668.js} +0 -0
- /package/build/esm/{number-8d86a56c.js → number-d3e03931.js} +0 -0
- /package/build/esm/{paths-5ab6cf36.js → paths-47504c6e.js} +0 -0
- /package/build/esm/{theme-03d89802.js → theme-ad9ae9bc.js} +0 -0
- /package/build/esm/{translationsContext-c2547a40.js → translationsContext-dd192b6b.js} +0 -0
- /package/build/esm/{tslib.es6-5160724c.js → tslib.es6-77e4ea0d.js} +0 -0
- /package/build/esm/{types-19e68c3a.js → types-1184bbca.js} +0 -0
- /package/build/esm/{useIsInit-742bfdbc.js → useIsInit-8442a087.js} +0 -0
- /package/build/esm/{useOutsideClick-371cb137.js → useOutsideClick-29676c24.js} +0 -0
- /package/build/esm/{useScrollbarSize-f2dc58f6.js → useScrollbarSize-c96444e0.js} +0 -0
- /package/build/esm/{useUniqueId-7834dc19.js → useUniqueId-0d137689.js} +0 -0
- /package/build/esm/{utils-21e35369.js → utils-3501a8c9.js} +0 -0
- /package/build/{index-261ce38d.js → index-1327fbe0.js} +0 -0
- /package/build/{index-6dd09d0e.js → index-14dec016.js} +0 -0
- /package/build/{index-6768d385.js → index-8515dc14.js} +0 -0
- /package/build/{index-d5b0e368.js → index-ec93dd5c.js} +0 -0
- /package/build/{isProduction-a589f8e0.js → isProduction-b1fe9e14.js} +0 -0
- /package/build/{localizeNumberFormat-2d08ab00.js → localizeNumberFormat-1a51ee3d.js} +0 -0
- /package/build/{normalizeLink-81e44471.js → normalizeLink-2fbce9d9.js} +0 -0
- /package/build/{number-f3955ac1.js → number-a548c60c.js} +0 -0
- /package/build/{paths-1eedeba0.js → paths-c6a37ed5.js} +0 -0
- /package/build/{theme-0c7de955.js → theme-98664cfd.js} +0 -0
- /package/build/{translationsContext-f0b00799.js → translationsContext-4b7afa0b.js} +0 -0
- /package/build/{tslib.es6-21bc76dd.js → tslib.es6-86f09fff.js} +0 -0
- /package/build/{types-c5c61b1f.js → types-68510635.js} +0 -0
- /package/build/{useIsInit-1e1192d3.js → useIsInit-2b2ff2f0.js} +0 -0
- /package/build/{useOutsideClick-fb7b0e11.js → useOutsideClick-cff03e12.js} +0 -0
- /package/build/{useScrollbarSize-02a199f1.js → useScrollbarSize-8ba5e28e.js} +0 -0
- /package/build/{useUniqueId-9ee0e545.js → useUniqueId-3b0ef44a.js} +0 -0
- /package/build/{utils-20389cd3.js → utils-1f428807.js} +0 -0
|
@@ -1,69 +1,68 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useRef, useMemo, Fragment, memo, useCallback, useImperativeHandle, createContext, useContext, forwardRef } from 'react';
|
|
2
|
-
import { T as Text } from './index-
|
|
3
|
-
import { b as StyledAvatar, c as StyledBadge$1, d as StyledBorderHeading, e as StyledDropdown, f as StyledDropdownName, g as StyledDropdownList, h as StyledDropdownOption, i as StyledIcon$1, j as StyledGrid, k as StyledPagination, l as StyledPageBlock, m as StyledPaginationBlock, n as StyledTag, o as StyledToggle, p as StyledToggleIcon, q as StyledToggleLabel, r as StyledCheckbox, s as StyledRateStars, T as TextArea, P as PureInput } from './index.styles-
|
|
4
|
-
import { f as formatUrlWithPageParam, M as MediaQueries } from './utils-
|
|
5
|
-
import { I as ImageWrap, R as Radio$1, u as useScreenSize, A as Anchor, a as Avatar$1, b as AspectRatio, t as themeColors, B as Button$1, c as Input$1, S as Select, d as Checkbox$1, e as ChipButton } from './index-
|
|
6
|
-
import { T as Text$1 } from './index-
|
|
7
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
2
|
+
import { T as Text } from './index-b1db79d0.js';
|
|
3
|
+
import { b as StyledAvatar, c as StyledBadge$1, d as StyledBorderHeading, e as StyledDropdown, f as StyledDropdownName, g as StyledDropdownList, h as StyledDropdownOption, i as StyledIcon$1, j as StyledGrid, k as StyledPagination, l as StyledPageBlock, m as StyledPaginationBlock, n as StyledTag, o as StyledToggle, p as StyledToggleIcon, q as StyledToggleLabel, r as StyledCheckbox, s as StyledRateStars, T as TextArea, P as PureInput } from './index.styles-64fbe1fc.js';
|
|
4
|
+
import { f as formatUrlWithPageParam, M as MediaQueries } from './utils-3501a8c9.js';
|
|
5
|
+
import { I as ImageWrap, R as Radio$1, u as useScreenSize, A as Anchor, a as Avatar$1, b as AspectRatio, t as themeColors, B as Button$1, c as Input$1, S as Select, d as Checkbox$1, e as ChipButton } from './index-e2d45ff6.js';
|
|
6
|
+
import { T as Text$1 } from './index-8e030e26.js';
|
|
7
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-77e4ea0d.js';
|
|
8
8
|
import { Bookmark, CalendarMB } from '@hhgtech/icons/other';
|
|
9
|
-
import { C as CommonGAssets } from './index-
|
|
10
|
-
import { H as Heading } from './index-
|
|
11
|
-
import { t as theme } from './theme-
|
|
12
|
-
import { Card, Group, Box, Flex, createStyles, Stack, getStylesRef, useMantineTheme, rem, Container
|
|
9
|
+
import { C as CommonGAssets } from './index-cb06c57d.js';
|
|
10
|
+
import { H as Heading } from './index-c853dc6e.js';
|
|
11
|
+
import { t as theme } from './theme-ad9ae9bc.js';
|
|
12
|
+
import { Card, Group, Box, Flex, createStyles, Stack, getStylesRef, useMantineTheme, rem, Container, AspectRatio as AspectRatio$1, ScrollArea, Chip, Badge as Badge$1, MultiSelect, Stepper } from '@mantine/core';
|
|
13
13
|
import innertext from 'innertext';
|
|
14
14
|
import '@mantine/dates';
|
|
15
|
-
import { d as domainLocales, L as LOCALE_SPECS, F as FAVICONS, Q as QUERY_HEALTH_TOOL, R as RISK_SCREENER_NAME, a as RISK_SCREENER_SLUG, G as GA_TOKEN_COOKIE } from './index-
|
|
16
|
-
import { L as LOCALE } from './index-
|
|
17
|
-
import './useMantineLocale-
|
|
18
|
-
import './translationsContext-
|
|
15
|
+
import { d as domainLocales, L as LOCALE_SPECS, F as FAVICONS, Q as QUERY_HEALTH_TOOL, R as RISK_SCREENER_NAME, a as RISK_SCREENER_SLUG, G as GA_TOKEN_COOKIE } from './index-df7ed505.js';
|
|
16
|
+
import { L as LOCALE } from './index-cc4e3181.js';
|
|
17
|
+
import './useMantineLocale-5341dd85.js';
|
|
18
|
+
import './translationsContext-dd192b6b.js';
|
|
19
19
|
import 'string-format';
|
|
20
20
|
import { useViewportSize } from '@mantine/hooks';
|
|
21
|
-
import { i as isInternalLink, d as getTogetherUserPostsApiPath } from './index-
|
|
21
|
+
import { i as isInternalLink, d as getTogetherUserPostsApiPath } from './index-7b6dd120.js';
|
|
22
22
|
import styled from '@emotion/styled';
|
|
23
23
|
import throttle from 'lodash/throttle';
|
|
24
|
-
import { L as Logo } from './index-
|
|
25
|
-
import { B as Button } from './index-
|
|
26
|
-
import { I as Input } from './index-
|
|
24
|
+
import { L as Logo } from './index-23968a4b.js';
|
|
25
|
+
import { B as Button } from './index-0771cb54.js';
|
|
26
|
+
import { I as Input } from './index-b115d850.js';
|
|
27
27
|
import { keyframes, css } from '@emotion/react';
|
|
28
28
|
import parse from 'html-react-parser';
|
|
29
|
-
import { i as isProduction } from './isProduction-
|
|
30
|
-
import { u as useTranslations } from './useTranslations-
|
|
29
|
+
import { i as isProduction } from './isProduction-2cb49e0e.js';
|
|
30
|
+
import { u as useTranslations } from './useTranslations-5f0ff5be.js';
|
|
31
31
|
import { format, addDays, isBefore, startOfMonth, addMonths, subMonths, getDaysInMonth, isToday, isSameDay, isWithinInterval, isAfter, isPast } from 'date-fns';
|
|
32
32
|
import dayjs from 'dayjs';
|
|
33
|
-
import { S as StyledTextField, a as DateToInputValue, g as getDueDateConception, A as API_DATE_FORMAT, b as getDueDateIVF, c as getDueDateLastPeriod, d as DueDateCalculatorType, H as HealthToolFormWrapper, G as GenderOptionControl, B as BabyGrowthForm, D as Drawer } from './index-
|
|
34
|
-
import { D as DATE_FORMAT } from './types-
|
|
35
|
-
import { s as setDefaultClass, Z as Z_INDEX, b as DUE_DATE_FORMAT, H as HEALTH_TOOL_TYPE$1, d as callApiWithAuth, g as getApiPath, P as PATHS$2, T as TogetherComponentGlobalContext, e as getPremiumApiPath, f as getWebsiteUrlApi, h as getSsoApiPath } from './utils-
|
|
36
|
-
import { D as DatePicker } from './index-
|
|
37
|
-
import { M as MarryBabyText } from './index-
|
|
38
|
-
import { S as Slider } from './index-
|
|
39
|
-
import { D as Dropdown } from './index-
|
|
40
|
-
import { f as formatUserProfileUrl } from './index-
|
|
33
|
+
import { S as StyledTextField, a as DateToInputValue, g as getDueDateConception, A as API_DATE_FORMAT, b as getDueDateIVF, c as getDueDateLastPeriod, d as DueDateCalculatorType, H as HealthToolFormWrapper, G as GenderOptionControl, B as BabyGrowthForm, D as Drawer } from './index-08683b2c.js';
|
|
34
|
+
import { D as DATE_FORMAT } from './types-1184bbca.js';
|
|
35
|
+
import { s as setDefaultClass, Z as Z_INDEX, b as DUE_DATE_FORMAT, H as HEALTH_TOOL_TYPE$1, d as callApiWithAuth, g as getApiPath, P as PATHS$2, T as TogetherComponentGlobalContext, e as getPremiumApiPath, f as getWebsiteUrlApi, h as getSsoApiPath } from './utils-5f7c2eba.js';
|
|
36
|
+
import { D as DatePicker } from './index-f0551563.js';
|
|
37
|
+
import { M as MarryBabyText } from './index-1d14271f.js';
|
|
38
|
+
import { S as Slider } from './index-30aa26a2.js';
|
|
39
|
+
import { D as Dropdown } from './index-54d95469.js';
|
|
40
|
+
import { f as formatUserProfileUrl } from './index-a6c27fed.js';
|
|
41
41
|
import { useForm as useForm$1, isNotEmpty } from '@mantine/form';
|
|
42
|
-
import { u as useHealthToolsCache } from './useHealthToolCache-
|
|
43
|
-
import { D as DatePicker$1 } from './index-
|
|
42
|
+
import { u as useHealthToolsCache } from './useHealthToolCache-38287625.js';
|
|
43
|
+
import { D as DatePicker$1 } from './index-8f004caa.js';
|
|
44
44
|
import { Controller, useForm } from 'react-hook-form';
|
|
45
|
-
import './
|
|
46
|
-
import './utils-cf5bebf5.js';
|
|
47
|
-
import { C as Container } from './index-1aeb952a.js';
|
|
48
|
-
import './WhatsApp-85f73100.js';
|
|
49
|
-
import './index.styled-d9fe4f4b.js';
|
|
50
|
-
import './index-eec6203c.js';
|
|
51
|
-
import { a as useOutsideClick } from './useOutsideClick-371cb137.js';
|
|
45
|
+
import { a as useOutsideClick } from './useOutsideClick-29676c24.js';
|
|
52
46
|
import enUS from 'date-fns/locale/en-US';
|
|
53
47
|
import id from 'date-fns/locale/id';
|
|
54
48
|
import vi from 'date-fns/locale/vi';
|
|
55
49
|
import zhTW from 'date-fns/locale/zh-TW';
|
|
56
|
-
import { g as getSocialList } from './getSocialList-
|
|
50
|
+
import { g as getSocialList } from './getSocialList-87a58288.js';
|
|
57
51
|
import { v4 } from 'uuid';
|
|
58
|
-
import
|
|
59
|
-
import
|
|
52
|
+
import './constants-3f24d4bd.js';
|
|
53
|
+
import './utils-3d5bdbed.js';
|
|
54
|
+
import './WhatsApp-98f17e50.js';
|
|
55
|
+
import './index.styled-7e8976d7.js';
|
|
56
|
+
import './index-2219b86b.js';
|
|
57
|
+
import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-4707108c.js';
|
|
58
|
+
import { I as Icon } from './index-10f46069.js';
|
|
60
59
|
import { Close, Plus } from '@hhgtech/icons/core';
|
|
61
|
-
import { M as Modal } from './index-
|
|
60
|
+
import { M as Modal } from './index-8345f710.js';
|
|
62
61
|
import Cookies from 'js-cookie';
|
|
63
62
|
import flatten from 'lodash/flatten';
|
|
64
63
|
import uniqBy from 'lodash/uniqBy';
|
|
65
|
-
import { g as getCookie } from './cookieHelper-
|
|
66
|
-
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-
|
|
64
|
+
import { g as getCookie } from './cookieHelper-bdcae9e9.js';
|
|
65
|
+
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-98886668.js';
|
|
67
66
|
|
|
68
67
|
var styles$7 = {"alert":"CHw-fZZ","content":"_03U6VRS","close":"EO828Vv"};
|
|
69
68
|
|
|
@@ -3297,7 +3296,7 @@ const DueDateFormLastPeriod = ({ locale, onClick, siteType, pageUrl, }) => {
|
|
|
3297
3296
|
React__default.createElement(Button$1, { dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: pageUrl, className: "due-date-calculate-button", size: "lg", variant: siteType === 'marryBaby' ? 'secondary' : 'primary', onClick: () => onClick(getDueDateLastPeriod(lastPeriodDate, periodLength), `${QUERY_HEALTH_TOOL.type}=0&${QUERY_HEALTH_TOOL.startDate}=${format(lastPeriodDate, API_DATE_FORMAT)}&${QUERY_HEALTH_TOOL.additional}=${periodLength}`), role: "button" }, t('dueDatePage.lastPeriod.calculate'))));
|
|
3298
3297
|
};
|
|
3299
3298
|
|
|
3300
|
-
|
|
3299
|
+
styled.div `
|
|
3301
3300
|
&[data-is-side='true'] {
|
|
3302
3301
|
width: 100%;
|
|
3303
3302
|
margin-bottom: 0;
|
|
@@ -3341,7 +3340,7 @@ styled.div `
|
|
|
3341
3340
|
}
|
|
3342
3341
|
}
|
|
3343
3342
|
`;
|
|
3344
|
-
|
|
3343
|
+
styled.div `
|
|
3345
3344
|
width: 100%;
|
|
3346
3345
|
display: flex;
|
|
3347
3346
|
justify-content: center;
|
|
@@ -3387,7 +3386,7 @@ const StyledInputWrapper = styled.div `
|
|
|
3387
3386
|
}
|
|
3388
3387
|
}
|
|
3389
3388
|
`;
|
|
3390
|
-
|
|
3389
|
+
styled.div `
|
|
3391
3390
|
position: relative;
|
|
3392
3391
|
width: calc(50% - 8px);
|
|
3393
3392
|
|
|
@@ -3879,7 +3878,7 @@ styled.div `
|
|
|
3879
3878
|
content: '';
|
|
3880
3879
|
}
|
|
3881
3880
|
`;
|
|
3882
|
-
|
|
3881
|
+
styled(RadioGroup) `
|
|
3883
3882
|
&[data-direction='horizontal'] div[data-type='circle'] {
|
|
3884
3883
|
margin-right: 8px;
|
|
3885
3884
|
}
|
|
@@ -3904,7 +3903,7 @@ const DueDateCardEmbed = ({ locale, onSubmitDueDate, dueDatePageInfo, expertUrl,
|
|
|
3904
3903
|
|
|
3905
3904
|
const BmiFormContext = createContext({});
|
|
3906
3905
|
|
|
3907
|
-
const DefaultForm$
|
|
3906
|
+
const DefaultForm$2 = (props) => {
|
|
3908
3907
|
var _a, _b, _c, _d;
|
|
3909
3908
|
const { t, locale } = useTranslations();
|
|
3910
3909
|
const { control, bmiGenerated, isTouched, linkTool, submitProps } = useContext(BmiFormContext);
|
|
@@ -3939,7 +3938,7 @@ const DefaultForm$1 = (props) => {
|
|
|
3939
3938
|
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ className: "bmi-btn bmi--btn-submit", dataEventCategory: "Health Tool", dataEventAction: "BMI", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}`, type: "submit" }, submitProps), t('bmi.submit'))));
|
|
3940
3939
|
};
|
|
3941
3940
|
|
|
3942
|
-
const InlineForm$
|
|
3941
|
+
const InlineForm$2 = (props) => {
|
|
3943
3942
|
var _a, _b, _c, _d;
|
|
3944
3943
|
const { t, locale } = useTranslations();
|
|
3945
3944
|
const { control, bmiGenerated, isTouched, linkTool, submitProps } = useContext(BmiFormContext);
|
|
@@ -4031,7 +4030,7 @@ const BmiForm = (_a) => {
|
|
|
4031
4030
|
isTouched,
|
|
4032
4031
|
linkTool,
|
|
4033
4032
|
submitProps,
|
|
4034
|
-
} }, formLayout === 'inline' ? (React__default.createElement(InlineForm$
|
|
4033
|
+
} }, formLayout === 'inline' ? (React__default.createElement(InlineForm$2, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm$2, Object.assign({}, commonProps)))));
|
|
4035
4034
|
};
|
|
4036
4035
|
|
|
4037
4036
|
const BMICardEmbed = (_a) => {
|
|
@@ -4094,12 +4093,24 @@ var useStyles$1 = createStyles((theme, { hasOnClickFn }) => {
|
|
|
4094
4093
|
};
|
|
4095
4094
|
});
|
|
4096
4095
|
|
|
4097
|
-
const
|
|
4098
|
-
var { babyPoopPage, onClickFindOut, currentUrl, sponsorLogo, btnProps } = _a, props = __rest(_a, ["babyPoopPage", "onClickFindOut", "currentUrl", "sponsorLogo", "btnProps"]);
|
|
4096
|
+
const BabyPoopForm = (_a) => {
|
|
4097
|
+
var { babyPoopPage, onClickFindOut, currentUrl, sponsorLogo, btnProps, styles, classNames } = _a, props = __rest(_a, ["babyPoopPage", "onClickFindOut", "currentUrl", "sponsorLogo", "btnProps", "styles", "classNames"]);
|
|
4099
4098
|
const { t } = useTranslations();
|
|
4100
4099
|
const _theme = useMantineTheme();
|
|
4101
4100
|
const isMarryBaby = _theme.other.template === 'mb';
|
|
4102
|
-
const { classes } = useStyles$1({ hasOnClickFn: Boolean(onClickFindOut) }, { name: '
|
|
4101
|
+
const { classes } = useStyles$1({ hasOnClickFn: Boolean(onClickFindOut) }, { name: 'BabyPoopForm', styles, classNames });
|
|
4102
|
+
return (React__default.createElement(Box, Object.assign({ className: classes.root }, props),
|
|
4103
|
+
sponsorLogo && (React__default.createElement(Box, { className: classes.sponsorBox },
|
|
4104
|
+
React__default.createElement(Text, { size: "p4" }, t('common.sponsoredBy')),
|
|
4105
|
+
React__default.createElement("img", { loading: "lazy", src: sponsorLogo, alt: "sponsor", className: classes.sponsorLogo }))),
|
|
4106
|
+
React__default.createElement(Text, { size: "p3", className: "description" }, babyPoopPage.description),
|
|
4107
|
+
React__default.createElement(Button$1, Object.assign({ className: classes.btn, size: isMarryBaby ? 'lg' : 'md', variant: isMarryBaby ? 'secondary' : 'primary', onClick: onClickFindOut, dataEventCategory: "Health Tool", dataEventAction: "Baby Stool Inquiry", dataEventLabel: currentUrl }, btnProps), t('babyPoop.findOut'))));
|
|
4108
|
+
};
|
|
4109
|
+
|
|
4110
|
+
const BabyPoopEmbed = (_a) => {
|
|
4111
|
+
var { babyPoopPage, formProps } = _a, props = __rest(_a, ["babyPoopPage", "formProps"]);
|
|
4112
|
+
const theme = useMantineTheme();
|
|
4113
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
4103
4114
|
const { reviewedBy, reviewedDate } = babyPoopPage || {};
|
|
4104
4115
|
return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
|
|
4105
4116
|
React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: isMarryBaby
|
|
@@ -4110,17 +4121,12 @@ const BabyPoopEmbed = (_a) => {
|
|
|
4110
4121
|
date: reviewedDate,
|
|
4111
4122
|
} }),
|
|
4112
4123
|
React__default.createElement(HealthToolCardWrapper.Body, null,
|
|
4113
|
-
React__default.createElement(
|
|
4114
|
-
sponsorLogo && (React__default.createElement(Box, { className: classes.sponsorBox },
|
|
4115
|
-
React__default.createElement(Text, { size: "p4" }, t('common.sponsoredBy')),
|
|
4116
|
-
React__default.createElement("img", { loading: "lazy", src: sponsorLogo, alt: "sponsor", className: classes.sponsorLogo }))),
|
|
4117
|
-
React__default.createElement(Text, { size: "p3", className: "description" }, babyPoopPage.description),
|
|
4118
|
-
React__default.createElement(Button$1, Object.assign({ className: classes.btn, size: isMarryBaby ? 'lg' : 'md', variant: isMarryBaby ? 'secondary' : 'primary', onClick: onClickFindOut, dataEventCategory: "Health Tool", dataEventAction: "Baby Stool Inquiry", dataEventLabel: currentUrl }, btnProps), t('babyPoop.findOut'))))));
|
|
4124
|
+
React__default.createElement(BabyPoopForm, Object.assign({ babyPoopPage: babyPoopPage }, formProps)))));
|
|
4119
4125
|
};
|
|
4120
4126
|
|
|
4121
4127
|
const ThrFormContext = createContext({});
|
|
4122
4128
|
|
|
4123
|
-
const DefaultForm = (_a) => {
|
|
4129
|
+
const DefaultForm$1 = (_a) => {
|
|
4124
4130
|
var _b;
|
|
4125
4131
|
var props = __rest(_a, []);
|
|
4126
4132
|
const { t, locale } = useTranslations();
|
|
@@ -4150,7 +4156,7 @@ const DefaultForm = (_a) => {
|
|
|
4150
4156
|
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "THR", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}` }, submitProps), t('bmi.submit'))));
|
|
4151
4157
|
};
|
|
4152
4158
|
|
|
4153
|
-
const InlineForm = (_a) => {
|
|
4159
|
+
const InlineForm$1 = (_a) => {
|
|
4154
4160
|
var _b;
|
|
4155
4161
|
var props = __rest(_a, []);
|
|
4156
4162
|
const { t, locale } = useTranslations();
|
|
@@ -4325,7 +4331,7 @@ const ThrForm = (_a) => {
|
|
|
4325
4331
|
linkTool,
|
|
4326
4332
|
form,
|
|
4327
4333
|
submitProps,
|
|
4328
|
-
} }, formLayout === 'inline' ? (React__default.createElement(InlineForm, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm, Object.assign({}, commonProps)))));
|
|
4334
|
+
} }, formLayout === 'inline' ? (React__default.createElement(InlineForm$1, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm$1, Object.assign({}, commonProps)))));
|
|
4329
4335
|
};
|
|
4330
4336
|
|
|
4331
4337
|
const THRCardEmbed = (_a) => {
|
|
@@ -4483,175 +4489,138 @@ const OvulationCardEmbed = ({ onSubmitOvulation, locale, ovulationPageInfo, expe
|
|
|
4483
4489
|
React__default.createElement(OvulationCalculator, { siteType: siteType, locale: locale, onSubmitOvulation: onSubmitOvulation, isSide: isSide }))));
|
|
4484
4490
|
};
|
|
4485
4491
|
|
|
4486
|
-
const
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
const
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
cb(s);
|
|
4502
|
-
}
|
|
4503
|
-
};
|
|
4504
|
-
const onWeightBeforeChanged = (weightBefore) => {
|
|
4505
|
-
checkValidInputIsANumber(weightBefore, (a) => {
|
|
4506
|
-
setIsEdit((value) => (Object.assign(Object.assign({}, value), { weightBefore: true })));
|
|
4507
|
-
const newInfo = Object.assign(Object.assign({}, info), { weightBefore: a });
|
|
4508
|
-
onChange && onChange(newInfo);
|
|
4509
|
-
});
|
|
4510
|
-
};
|
|
4511
|
-
const onHeightChanged = (height) => {
|
|
4512
|
-
checkValidInputIsANumber(height, (h) => {
|
|
4513
|
-
setIsEdit((value) => (Object.assign(Object.assign({}, value), { height: true })));
|
|
4514
|
-
const newInfo = Object.assign(Object.assign({}, info), { height: h });
|
|
4515
|
-
onChange && onChange(newInfo);
|
|
4516
|
-
});
|
|
4517
|
-
};
|
|
4518
|
-
const onWeightChanged = (weight) => {
|
|
4519
|
-
checkValidInputIsANumber(weight, (w) => {
|
|
4520
|
-
setIsEdit((value) => (Object.assign(Object.assign({}, value), { weight: true })));
|
|
4521
|
-
const newInfo = Object.assign(Object.assign({}, info), { weight: w });
|
|
4522
|
-
onChange && onChange(newInfo);
|
|
4523
|
-
});
|
|
4524
|
-
};
|
|
4525
|
-
useEffect(() => {
|
|
4526
|
-
onChange &&
|
|
4527
|
-
onChange(Object.assign({}, info));
|
|
4528
|
-
}, []);
|
|
4529
|
-
useEffect(() => {
|
|
4530
|
-
setIsEdit({
|
|
4531
|
-
weightBefore: false,
|
|
4532
|
-
height: false,
|
|
4533
|
-
weight: false,
|
|
4534
|
-
});
|
|
4535
|
-
}, [errorMessage]);
|
|
4536
|
-
return siteType === 'marryBaby' ? (React__default.createElement(React__default.Fragment, null,
|
|
4537
|
-
React__default.createElement("div", { className: "input-form-pwg input-section" },
|
|
4538
|
-
React__default.createElement(StyledTextField, { label: t('pregnancyWeightGain.heightInput'), name: "pwg-height", size: "md", value: info === null || info === void 0 ? void 0 : info.height, CustomInput: React__default.createElement(Input, { className: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.height) ? 'error-input' : '', name: "pwg-height", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: info === null || info === void 0 ? void 0 : info.height, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur(), errorMessage: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.height) ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.height : '', showErrorMessage: false, onChange: onHeightChanged }) })),
|
|
4539
|
-
React__default.createElement("div", { className: "input-form-pwg input-section" },
|
|
4540
|
-
React__default.createElement(StyledTextField, { label: t('pregnancyWeightGain.weightBeforeInput'), name: "pwg-weightBefore", size: "md", value: info === null || info === void 0 ? void 0 : info.weightBefore, CustomInput: React__default.createElement(Input, { className: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.weightBefore) ? 'error-input' : '', name: "pwg-weightBefore", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: info === null || info === void 0 ? void 0 : info.weightBefore, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur(), errorMessage: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.weightBefore) ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.height : '', showErrorMessage: false, onChange: onWeightBeforeChanged }) })),
|
|
4541
|
-
React__default.createElement("div", { className: "input-form-pwg input-section" },
|
|
4542
|
-
React__default.createElement(StyledTextField, { label: t('pregnancyWeightGain.weightInput'), name: "pwg-weight", size: "md", value: info === null || info === void 0 ? void 0 : info.weight, CustomInput: React__default.createElement(Input, { className: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.weight) ? 'error-input' : '', name: "pwg-weight", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: info === null || info === void 0 ? void 0 : info.weight, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur(), errorMessage: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.weight) ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.weight : '', showErrorMessage: false, onChange: onWeightChanged }) })))) : (React__default.createElement(React__default.Fragment, null,
|
|
4543
|
-
React__default.createElement("div", { className: "input-form-pwg" },
|
|
4544
|
-
React__default.createElement(PureInput, { placeholder: t('pwg.placeholder.height'), className: "input-section", label: React__default.createElement("span", { style: {
|
|
4545
|
-
color: theme.colors.gray600,
|
|
4546
|
-
fontWeight: 'bold',
|
|
4547
|
-
marginBottom: '9px',
|
|
4548
|
-
}, className: "label-text" },
|
|
4549
|
-
t('pregnancyWeightGain.heightInput'),
|
|
4550
|
-
' ',
|
|
4551
|
-
React__default.createElement("span", { style: {
|
|
4552
|
-
color: `${theme.colors.gray300}`,
|
|
4553
|
-
} }, t('bmi.heightInput.desc'))), errorMessage: !isEdit.height ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.height : '', size: "sm", isNumerousKeyboard: true, name: "pwg-height", value: info === null || info === void 0 ? void 0 : info.height, onChange: onHeightChanged })),
|
|
4554
|
-
React__default.createElement("div", { className: "input-form-pwg" },
|
|
4555
|
-
React__default.createElement(PureInput, { placeholder: t('pwg.placeholder.weight'), className: "input-section", label: React__default.createElement("span", { style: {
|
|
4556
|
-
color: theme.colors.gray600,
|
|
4557
|
-
fontWeight: 'bold',
|
|
4558
|
-
marginBottom: '9px',
|
|
4559
|
-
}, ref: ref, className: "label-text" },
|
|
4560
|
-
t('pregnancyWeightGain.weightBeforeInput'),
|
|
4561
|
-
' ',
|
|
4562
|
-
React__default.createElement("span", { style: {
|
|
4563
|
-
color: `${theme.colors.gray300}`,
|
|
4564
|
-
} }, t('pregnancyWeightGain.weightInput.desc'))), errorMessage: !isEdit.weightBefore ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.weightBefore : '', size: "sm", isNumerousKeyboard: true, name: "pwg-weightBefore", onChange: onWeightBeforeChanged, value: info === null || info === void 0 ? void 0 : info.weightBefore })),
|
|
4565
|
-
React__default.createElement("div", { className: "input-form-pwg" },
|
|
4566
|
-
React__default.createElement(PureInput, { placeholder: t('pwg.placeholder.weight'), className: "input-section", label: React__default.createElement("span", { style: {
|
|
4567
|
-
color: theme.colors.gray600,
|
|
4568
|
-
fontWeight: 'bold',
|
|
4569
|
-
marginBottom: '9px',
|
|
4570
|
-
minHeight: height,
|
|
4571
|
-
}, className: "label-text" },
|
|
4572
|
-
t('pregnancyWeightGain.weightInput'),
|
|
4573
|
-
' ',
|
|
4574
|
-
React__default.createElement("span", { style: {
|
|
4575
|
-
color: `${theme.colors.gray300}`,
|
|
4576
|
-
} }, t('pregnancyWeightGain.weightInput.desc'))), errorMessage: !isEdit.weight ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.weight : '', size: "sm", isNumerousKeyboard: true, name: "pwg-weight", value: info === null || info === void 0 ? void 0 : info.weight, onChange: onWeightChanged }))));
|
|
4492
|
+
const PWGFormContext = createContext({});
|
|
4493
|
+
|
|
4494
|
+
const DefaultForm = (_a) => {
|
|
4495
|
+
var props = __rest(_a, []);
|
|
4496
|
+
const { t, locale } = useTranslations();
|
|
4497
|
+
const { linkTool, form, submitProps } = useContext(PWGFormContext);
|
|
4498
|
+
const theme = useMantineTheme();
|
|
4499
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
4500
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
4501
|
+
React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weekInput'), min: INPUT_RANGE.pregnantWeek.min, max: INPUT_RANGE.pregnantWeek.max, placeholder: `${INPUT_RANGE.pregnantWeek.min} - ${INPUT_RANGE.pregnantWeek.max}` }, form.getInputProps('pregnantWeek'))),
|
|
4502
|
+
React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weightBeforeInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max }, form.getInputProps('lastWeight'))),
|
|
4503
|
+
React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.heightInput'), min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max }, form.getInputProps('height'))),
|
|
4504
|
+
React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weightInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max }, form.getInputProps('weight'))),
|
|
4505
|
+
React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({ label: t('pregnancyWeightGain.havingTwins') }, form.getInputProps('hasTwin'))),
|
|
4506
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "Embedded Pregnancy Weight Gain", dataEventLabel: `https://${domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}/${linkTool}`, className: "due-date-calculate-button" }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
4577
4507
|
};
|
|
4578
4508
|
|
|
4579
|
-
const
|
|
4580
|
-
var _a;
|
|
4581
|
-
const { t } = useTranslations();
|
|
4582
|
-
const
|
|
4583
|
-
const
|
|
4584
|
-
|
|
4585
|
-
|
|
4509
|
+
const InlineForm = (_a) => {
|
|
4510
|
+
var props = __rest(_a, []);
|
|
4511
|
+
const { t, locale } = useTranslations();
|
|
4512
|
+
const { linkTool, form, submitProps } = useContext(PWGFormContext);
|
|
4513
|
+
const theme = useMantineTheme();
|
|
4514
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
4515
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
|
|
4516
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.weekInput') },
|
|
4517
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: INPUT_RANGE.pregnantWeek.min, max: INPUT_RANGE.pregnantWeek.max, placeholder: `${INPUT_RANGE.pregnantWeek.min} - ${INPUT_RANGE.pregnantWeek.max}`, rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('babyGrowth.kg')) }, form.getInputProps('pregnantWeek')))),
|
|
4518
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.weightBeforeInput') },
|
|
4519
|
+
React__default.createElement(Input$1.Number, Object.assign({}, form.getInputProps('lastWeight'), { min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
|
|
4520
|
+
content: '50',
|
|
4521
|
+
}), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, "kg") }))),
|
|
4522
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.heightInput') },
|
|
4523
|
+
React__default.createElement(Input$1.Number, Object.assign({}, form.getInputProps('height'), { min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max, placeholder: t('tools.inputPlaceholder', {
|
|
4524
|
+
content: '160',
|
|
4525
|
+
}), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, "cm") }))),
|
|
4526
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.weightInput') },
|
|
4527
|
+
React__default.createElement(Input$1.Number, Object.assign({}, form.getInputProps('weight'), { min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
|
|
4528
|
+
content: '50',
|
|
4529
|
+
}), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, "kg") }))),
|
|
4530
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.havingTwins'), width: 'none' },
|
|
4531
|
+
React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({}, form.getInputProps('hasTwin')))),
|
|
4532
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "Embedded Pregnancy Weight Gain", dataEventLabel: `https://${domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}/${linkTool}`, className: "due-date-calculate-button" }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
4533
|
+
};
|
|
4534
|
+
|
|
4535
|
+
const MbLayout = (_a) => {
|
|
4536
|
+
var props = __rest(_a, []);
|
|
4537
|
+
const { t, locale } = useTranslations();
|
|
4538
|
+
const { linkTool, form, submitProps } = useContext(PWGFormContext);
|
|
4539
|
+
const theme = useMantineTheme();
|
|
4540
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
4541
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
4542
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4543
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.weekInput'), rightSection: t('pregnancy.week') },
|
|
4544
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: INPUT_RANGE.pregnantWeek.min, max: INPUT_RANGE.pregnantWeek.max, placeholder: `${INPUT_RANGE.pregnantWeek.min} - ${INPUT_RANGE.pregnantWeek.max}` }, form.getInputProps('pregnantWeek'), { error: null }))),
|
|
4545
|
+
form.errors.pregnantWeek && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.pregnantWeek))),
|
|
4546
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4547
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.weightBeforeInput'), rightSection: "kg" },
|
|
4548
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max }, form.getInputProps('lastWeight'), { error: null }))),
|
|
4549
|
+
form.errors.lastWeight && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.lastWeight))),
|
|
4550
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4551
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.heightInput'), rightSection: "cm" },
|
|
4552
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max }, form.getInputProps('height'), { error: null }))),
|
|
4553
|
+
form.errors.height && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.height))),
|
|
4554
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4555
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.weightInput'), rightSection: "kg" },
|
|
4556
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max }, form.getInputProps('weight'), { error: null }))),
|
|
4557
|
+
form.errors.weight && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.weight))),
|
|
4558
|
+
React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({ label: t('pregnancyWeightGain.havingTwins') }, form.getInputProps('hasTwin'))),
|
|
4559
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "Embedded Pregnancy Weight Gain", dataEventLabel: `https://${domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}/${linkTool}`, className: "due-date-calculate-button" }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
4560
|
+
};
|
|
4561
|
+
|
|
4562
|
+
const INPUT_RANGE = {
|
|
4563
|
+
height: {
|
|
4564
|
+
min: 1,
|
|
4565
|
+
max: 300,
|
|
4566
|
+
},
|
|
4567
|
+
weight: {
|
|
4568
|
+
min: 1,
|
|
4569
|
+
max: 200,
|
|
4570
|
+
},
|
|
4571
|
+
pregnantWeek: {
|
|
4572
|
+
min: 1,
|
|
4573
|
+
max: 40,
|
|
4574
|
+
},
|
|
4575
|
+
};
|
|
4576
|
+
const PWGForm = (_a) => {
|
|
4577
|
+
var { formLayout = 'default', submitProps, onSubmit } = _a, rest = __rest(_a, ["formLayout", "submitProps", "onSubmit"]);
|
|
4578
|
+
const { t, locale } = useTranslations();
|
|
4579
|
+
const theme = useMantineTheme();
|
|
4580
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
4581
|
+
const form = useForm$1({
|
|
4582
|
+
validate: {
|
|
4583
|
+
pregnantWeek: isNotEmpty(t('validation.error.requiredField')),
|
|
4584
|
+
height: isNotEmpty(t('validation.error.requiredField')),
|
|
4585
|
+
weight: (value, values) => {
|
|
4586
|
+
return !value
|
|
4587
|
+
? t('validation.error.requiredField')
|
|
4588
|
+
: Number(value) >= Number(values.lastWeight)
|
|
4589
|
+
? null
|
|
4590
|
+
: t('pregnancyWeightGain.weightInput.error');
|
|
4591
|
+
},
|
|
4592
|
+
lastWeight: (value, values) => {
|
|
4593
|
+
return !value
|
|
4594
|
+
? t('validation.error.requiredField')
|
|
4595
|
+
: Number(value) < Number(values.weight)
|
|
4596
|
+
? null
|
|
4597
|
+
: t('pregnancyWeightGain.weightInput.error');
|
|
4598
|
+
},
|
|
4599
|
+
},
|
|
4586
4600
|
});
|
|
4587
|
-
const weekPregnantLengthDropDownOptions = useMemo(() => [...Array(40)].map((_, index) => ({
|
|
4588
|
-
label: `${index + 1}`,
|
|
4589
|
-
value: `${index + 1}`,
|
|
4590
|
-
})), []);
|
|
4591
4601
|
const { getHealthToolLink } = useHealthToolsCache(locale);
|
|
4592
4602
|
const linkTool = useMemo(() => getHealthToolLink(HEALTH_TOOL_TYPE$1.PWG), [getHealthToolLink]);
|
|
4593
|
-
|
|
4594
|
-
|
|
4603
|
+
const commonProps = Object.assign({ onSubmit: form.onSubmit(onSubmit) }, rest);
|
|
4604
|
+
return (React__default.createElement(PWGFormContext.Provider, { value: {
|
|
4605
|
+
linkTool,
|
|
4606
|
+
form,
|
|
4607
|
+
submitProps,
|
|
4608
|
+
} }, isMarryBaby ? (React__default.createElement(MbLayout, Object.assign({}, commonProps))) : formLayout === 'inline' ? (React__default.createElement(InlineForm, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm, Object.assign({}, commonProps)))));
|
|
4609
|
+
};
|
|
4610
|
+
|
|
4611
|
+
const PWGCardEmbed = (_a) => {
|
|
4612
|
+
var _b;
|
|
4613
|
+
var { pwgContent, formProps } = _a, props = __rest(_a, ["pwgContent", "formProps"]);
|
|
4614
|
+
const { t } = useTranslations();
|
|
4615
|
+
return (React__default.createElement(HealthToolCardWrapper, Object.assign({ isPregTool: true }, props),
|
|
4616
|
+
React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.featuredImage) ||
|
|
4595
4617
|
CommonGAssets.getAssetPath('health-tools/pwg-icon.svg'), loading: "lazy" }), heading: t('pregnancyWeightGain.heading'), medicalReview: {
|
|
4596
4618
|
link: formatUserProfileUrl(pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedBy),
|
|
4597
|
-
reviewer: (
|
|
4619
|
+
reviewer: (_b = pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedBy) === null || _b === void 0 ? void 0 : _b.display_name,
|
|
4598
4620
|
date: pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedDate,
|
|
4599
4621
|
} }),
|
|
4600
|
-
React__default.createElement(
|
|
4601
|
-
React__default.createElement(
|
|
4602
|
-
siteType !== 'marryBaby' && (React__default.createElement(StyledTwins, { className: "hide-asking-mobile", "data-is-side": isSide },
|
|
4603
|
-
React__default.createElement(Text, { size: "s4", weight: "semiBold", style: {
|
|
4604
|
-
display: 'block',
|
|
4605
|
-
color: theme.colors.gray600,
|
|
4606
|
-
}, className: "label" }, t('pregnancyWeightGain.havingTwins')),
|
|
4607
|
-
React__default.createElement(StyledRadioGroup, { options: [
|
|
4608
|
-
{
|
|
4609
|
-
value: 'twins',
|
|
4610
|
-
label: t('switchBtn.yes'),
|
|
4611
|
-
},
|
|
4612
|
-
{
|
|
4613
|
-
value: 'notwins',
|
|
4614
|
-
label: t('switchBtn.no'),
|
|
4615
|
-
},
|
|
4616
|
-
], value: isTwins, onChange: (v) => setIsTwins(v), className: "gender-selector", id: "twins-check", direction: "horizontal", size: "small" }))),
|
|
4617
|
-
React__default.createElement(StyledInputWrapper, null,
|
|
4618
|
-
React__default.createElement(StyledFormInput, { className: "input-section input-form-pwg", "data-is-side": isSide }, siteType === 'marryBaby' ? (React__default.createElement(StyledDropDown, { groupedWithLabel: t('pregnancyWeightGain.weekInput'), options: weekPregnantLengthDropDownOptions, placeholder: "28 days", id: "due-date-dropdown", size: "lg", value: cycleValue, onChange: (o) => setCycleValue({
|
|
4619
|
-
label: o.label,
|
|
4620
|
-
value: o.value,
|
|
4621
|
-
}) })) : (React__default.createElement(React__default.Fragment, null,
|
|
4622
|
-
React__default.createElement(Text, { size: "s4", weight: "semiBold", style: {
|
|
4623
|
-
display: 'inline-block',
|
|
4624
|
-
marginBottom: '9px',
|
|
4625
|
-
color: theme.colors.gray600,
|
|
4626
|
-
} }, t('pregnancyWeightGain.weekInput')),
|
|
4627
|
-
React__default.createElement(Dropdown, { options: weekPregnantLengthDropDownOptions, placeholder: String(cycleValue.label), id: "weight-gain-dropdown", size: "md", value: cycleValue, onChange: (o) => setCycleValue({
|
|
4628
|
-
label: o.label,
|
|
4629
|
-
value: o.value,
|
|
4630
|
-
}) })))),
|
|
4631
|
-
React__default.createElement(PWGInputForm, { siteType: siteType, info: info, errorMessage: inputErrorMessage, onChange: onFormChange })),
|
|
4632
|
-
siteType !== 'marryBaby' && (React__default.createElement(StyledTwins, { className: "hide-asking-desk", "data-is-side": isSide },
|
|
4633
|
-
React__default.createElement(Text, { size: "s4", weight: "semiBold", style: {
|
|
4634
|
-
display: 'block',
|
|
4635
|
-
color: theme.colors.gray600,
|
|
4636
|
-
}, className: "label" }, t('pregnancyWeightGain.havingTwins')),
|
|
4637
|
-
React__default.createElement(StyledRadioGroup, { options: [
|
|
4638
|
-
{
|
|
4639
|
-
value: 'twins',
|
|
4640
|
-
label: t('switchBtn.yes'),
|
|
4641
|
-
},
|
|
4642
|
-
{
|
|
4643
|
-
value: 'notwins',
|
|
4644
|
-
label: t('switchBtn.no'),
|
|
4645
|
-
},
|
|
4646
|
-
], value: isTwins, onChange: (v) => setIsTwins(v), className: "gender-selector", id: "twins-check-mobile", direction: "horizontal", size: "small" }))),
|
|
4647
|
-
siteType === 'marryBaby' && (React__default.createElement(Checkbox, { name: "twins", label: t('pregnancyWeightGain.havingTwins'), checked: isTwins === 'twins', siteType: "marryBaby", onChange: () => {
|
|
4648
|
-
if (isTwins === 'twins')
|
|
4649
|
-
setIsTwins('notwins');
|
|
4650
|
-
else
|
|
4651
|
-
setIsTwins('twins');
|
|
4652
|
-
}, value: "twins" })),
|
|
4653
|
-
React__default.createElement(StyledSubmitButton, { "data-is-side": isSide, "data-site": siteType },
|
|
4654
|
-
React__default.createElement(Button$1, { dataEventCategory: "Health Tool", dataEventAction: "Embedded Pregnancy Weight Gain", dataEventLabel: `https://${domainLocales[siteType === 'marryBaby' ? 'vi-VN_MB' : locale]}/${linkTool}`, className: "due-date-calculate-button", size: "lg", variant: siteType === 'marryBaby' ? 'secondary' : 'primary', onClick: () => onClick(isTwins, cycleValue.value), role: "button" }, t('dueDatePage.lastPeriod.calculate')))))));
|
|
4622
|
+
React__default.createElement(HealthToolCardWrapper.Body, null,
|
|
4623
|
+
React__default.createElement(PWGForm, Object.assign({}, formProps)))));
|
|
4655
4624
|
};
|
|
4656
4625
|
|
|
4657
4626
|
const StyledCalendarWrapper$1 = styled.div `
|
|
@@ -5860,7 +5829,7 @@ const PnBannerEle = (_a) => {
|
|
|
5860
5829
|
window.location.href = `${getCurrentSsoUrl(locale)}/?returnUrl=${encodeURIComponent(url)}`;
|
|
5861
5830
|
}
|
|
5862
5831
|
});
|
|
5863
|
-
return (React__default.createElement(Container
|
|
5832
|
+
return (React__default.createElement(Container, Object.assign({ mih: { base: 144, md: 160 }, fluid: true, p: 0, sx: {
|
|
5864
5833
|
borderRadius: 4,
|
|
5865
5834
|
cursor: 'pointer',
|
|
5866
5835
|
}, onClick: bannerClick, "data-event-category": "Newsletter", "data-event-action": "Banner Click", "data-event-label": currentUrl, className: "pointer-event-child-none" }, rest),
|
|
@@ -7477,4 +7446,4 @@ const UserProfileNavigation = ({ SSO_URL, UP_BASEPATH = 'user', themeName = 'hel
|
|
|
7477
7446
|
logoutButton))));
|
|
7478
7447
|
};
|
|
7479
7448
|
|
|
7480
|
-
export {
|
|
7449
|
+
export { MAPPING_CATEGORY_PREMIUM_API_TYPE as $, Alert as A, Badge as B, Checkbox as C, DoctorInfo as D, BabyPoopForm as E, FileDropdown as F, Grid as G, THRCardEmbed as H, IconText as I, ThrForm as J, BMRCardEmbed as K, PWGCardEmbed as L, MobileBottomNavigation as M, PWGForm as N, OvulationCardEmbed as O, Pagination as P, DateRangePicker as Q, Radio as R, ScrollList as S, Tag as T, Breadcrumbs as U, ShareContainer as V, ShareDrawer as W, AdBlock as X, FixedBottomAdBlock as Y, SurveyOrPremiumBanner as Z, MAPPING_CATEGORY_PREMIUM_TYPE as _, Avatar as a, SideBannerModal as a0, UserProfileNavigation as a1, NavHeader as a2, UserStats as a3, BorderHeading as b, Toggle as c, RateStars as d, ArticleCard$1 as e, ArticleCard as f, CategoryCard as g, CheckboxGroup as h, ProgressBar as i, RadioGroup as j, index$1 as k, StatisticCard as l, index as m, Tabs as n, SurveyQuestionCard as o, SurveyThankyouCard as p, FloatButtonGroup as q, CookieAcceptConfirm as r, MobileBottomNavigationIcon as s, SeoHead as t, ToolsBannerCard as u, DueDateCardEmbed as v, BMICardEmbed as w, BmiForm as x, BabyGrowthCardEmbed as y, BabyPoopEmbed as z };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-77e4ea0d.js';
|
|
2
2
|
import React__default, { useReducer, useState, useEffect } from 'react';
|
|
3
3
|
import { Stack, Input as Input$1 } from '@mantine/core';
|
|
4
|
-
import { c as Input, S as Select } from './index-
|
|
4
|
+
import { c as Input, S as Select } from './index-e2d45ff6.js';
|
|
5
5
|
import '@mantine/dates';
|
|
6
|
-
import { c as CDN_ADDRESS } from './index-
|
|
7
|
-
import { L as LOCALE } from './index-
|
|
8
|
-
import './index-
|
|
9
|
-
import './useMantineLocale-
|
|
10
|
-
import './index-
|
|
11
|
-
import './theme-
|
|
12
|
-
import { u as useTranslations } from './useTranslations-
|
|
6
|
+
import { c as CDN_ADDRESS } from './index-df7ed505.js';
|
|
7
|
+
import { L as LOCALE } from './index-cc4e3181.js';
|
|
8
|
+
import './index-cb06c57d.js';
|
|
9
|
+
import './useMantineLocale-5341dd85.js';
|
|
10
|
+
import './index-b1db79d0.js';
|
|
11
|
+
import './theme-ad9ae9bc.js';
|
|
12
|
+
import { u as useTranslations } from './useTranslations-5f0ff5be.js';
|
|
13
13
|
import '@mantine/hooks';
|
|
14
|
-
import './utils-
|
|
15
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
14
|
+
import './utils-3501a8c9.js';
|
|
15
|
+
import { M as MAPPED_LOCALE } from './utils-ea3a5a18.js';
|
|
16
16
|
|
|
17
17
|
const generateGetAddressDetail = (locale) => {
|
|
18
18
|
return `${CDN_ADDRESS}/cities-data-${MAPPED_LOCALE[locale]}.json`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { useMantineTheme } from '@mantine/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import { t as theme } from './theme-
|
|
4
|
+
import { t as theme } from './theme-ad9ae9bc.js';
|
|
5
5
|
|
|
6
6
|
const StyledDropdown = styled.div `
|
|
7
7
|
--dropdown-padding: 12px 18px 12px 16px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-77e4ea0d.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { Indicator as Indicator$1 } from '@mantine/core';
|
|
4
|
-
import { t as theme } from './theme-
|
|
4
|
+
import { t as theme } from './theme-ad9ae9bc.js';
|
|
5
5
|
|
|
6
6
|
const Indicator = (_a) => {
|
|
7
7
|
var { styles, color = theme.colors.red700 } = _a, props = __rest(_a, ["styles", "color"]);
|