@hhgtech/hhg-components 1.29.41 → 1.29.42
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-b8d7f6ee.js → WhatsApp-c618fc4b.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/babyGrowth/babyGrowthForm/context.d.ts +2 -0
- package/build/components/babyGrowth/babyGrowthForm/index.d.ts +3 -1
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +4 -5
- package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.d.ts +3 -2
- package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.styles.d.ts +5 -13
- package/build/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +12 -4
- package/build/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +11 -8
- package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +1 -2
- package/build/components/molecules/embeddedHeathToolCards/helpers.d.ts +0 -2
- package/build/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +1 -2
- package/build/components/molecules/embeddedHeathToolCards/pwg/pwg.d.ts +1 -2
- package/build/components/molecules/embeddedHeathToolCards/target-heart-rate/index.d.ts +3 -4
- package/build/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
- package/build/components/molecules/healthTools/form/thrForm/context.d.ts +2 -0
- package/build/components/molecules/healthTools/form/thrForm/index.d.ts +3 -1
- package/build/components/molecules/index.d.ts +1 -1
- package/build/components/molecules/toolBannerCard/index.d.ts +1 -6
- package/build/components/molecules/toolBannerCard/index.styled.d.ts +0 -6
- package/build/components.js +58 -58
- package/build/{constants-53af5aff.js → constants-5a0f1f18.js} +2 -2
- package/build/{constants-297a9f32.js → constants-dd84f8e3.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-793d9e69.js → core-b1b3721a.js} +2 -2
- package/build/{dataTransform-c2141784.js → dataTransform-ecb93da7.js} +1 -1
- package/build/ecom.js +6 -6
- package/build/esm/{WhatsApp-3d6500ee.js → WhatsApp-85f73100.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/babyGrowth/babyGrowthForm/context.d.ts +2 -0
- package/build/esm/components/babyGrowth/babyGrowthForm/index.d.ts +3 -1
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +4 -5
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-poop/index.d.ts +3 -2
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-poop/index.styles.d.ts +5 -13
- package/build/esm/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +12 -4
- package/build/esm/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +11 -8
- package/build/esm/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +1 -2
- package/build/esm/components/molecules/embeddedHeathToolCards/helpers.d.ts +0 -2
- package/build/esm/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +1 -2
- package/build/esm/components/molecules/embeddedHeathToolCards/pwg/pwg.d.ts +1 -2
- package/build/esm/components/molecules/embeddedHeathToolCards/target-heart-rate/index.d.ts +3 -4
- package/build/esm/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
- package/build/esm/components/molecules/healthTools/form/thrForm/context.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/thrForm/index.d.ts +3 -1
- package/build/esm/components/molecules/index.d.ts +1 -1
- package/build/esm/components/molecules/toolBannerCard/index.d.ts +1 -6
- package/build/esm/components/molecules/toolBannerCard/index.styled.d.ts +0 -6
- package/build/esm/components.js +58 -58
- package/build/esm/{constants-d0bd18cb.js → constants-0904669a.js} +2 -2
- package/build/esm/{constants-92537faf.js → constants-ee4f30c7.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-29b009ab.js → core-2e0a38ee.js} +2 -2
- package/build/esm/{dataTransform-66705225.js → dataTransform-5e5983b2.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-4e22444f.js → getDynamicHealthTool-bb0c554b.js} +4 -4
- package/build/esm/{getSocialList-41f22902.js → getSocialList-77cc5472.js} +4 -4
- package/build/esm/hooks.js +17 -17
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-907973e2.js → index-031da05c.js} +134 -218
- package/build/esm/{index-76270f83.js → index-0d9866a6.js} +2 -2
- package/build/esm/{index-41775c3c.js → index-13578b4b.js} +3 -3
- package/build/esm/{index-6afcded7.js → index-18250b0b.js} +2 -2
- package/build/esm/{index-f80ec000.js → index-3723a2c1.js} +5 -5
- package/build/esm/{index-a185016f.js → index-3fa61807.js} +4 -4
- package/build/esm/{index-e8c205b6.js → index-48d75d5b.js} +2 -2
- package/build/esm/{index-0a97f332.js → index-4929d9c4.js} +9 -9
- package/build/esm/{index-30a377c9.js → index-4ea3e525.js} +28 -27
- package/build/esm/{index-2b8818a4.js → index-61c6842a.js} +2 -2
- package/build/esm/{index-f628810d.js → index-6201aa22.js} +2 -2
- package/build/esm/{index-5b9987c3.js → index-62e5ab51.js} +2 -2
- package/build/esm/{index-6ee914be.js → index-667832a2.js} +2 -2
- package/build/esm/{index-86903e91.js → index-75658868.js} +6 -6
- package/build/esm/{index-699e76d2.js → index-7d1d6c79.js} +2 -2
- package/build/esm/{index-c5ea2b74.js → index-7edac771.js} +10 -10
- package/build/esm/{index-7b1e8adf.js → index-829fbe6e.js} +2 -2
- package/build/esm/{index-5990d81a.js → index-a367d535.js} +1 -1
- package/build/esm/{index-4bc27031.js → index-a6863224.js} +11 -11
- package/build/esm/{index-14826726.js → index-b03e8e5c.js} +4 -4
- package/build/esm/{index-c21bddb6.js → index-b804ef2f.js} +32 -32
- package/build/esm/{index-4caf11b0.js → index-ba777d71.js} +12 -12
- package/build/esm/{index-56358aaa.js → index-d73121f4.js} +2 -2
- package/build/esm/{index-5881e42a.js → index-f2ac3b3b.js} +12 -12
- package/build/esm/{index-0008f40f.js → index-f2de848c.js} +4 -4
- package/build/esm/index.js +66 -66
- package/build/esm/{index.styled-1d3fb673.js → index.styled-d9fe4f4b.js} +2 -2
- package/build/esm/{index.styles-8f022797.js → index.styles-924b4812.js} +6 -6
- package/build/esm/lead/components/close.d.ts +2 -2
- 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 +31 -31
- package/build/esm/pwg.js +19 -19
- package/build/esm/{routing-ca806d7b.js → routing-e559250d.js} +2 -2
- package/build/esm/subot.js +22 -22
- package/build/esm/together/interfaces/types.d.ts +2 -0
- package/build/esm/together.js +34 -34
- package/build/esm/{types-59acb09c.js → types-20993189.js} +30 -30
- package/build/esm/{types-62afcb43.js → types-29922728.js} +13 -13
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-dffaa16a.js → useCategory-ee4a1988.js} +5 -5
- package/build/esm/{useHealthToolCache-c34387eb.js → useHealthToolCache-807babad.js} +2 -2
- package/build/esm/{useMantineLocale-6399cf90.js → useMantineLocale-deeb986b.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-fb1f8960.js → usePlacesAutocomplete-b0c230b8.js} +1 -1
- package/build/esm/{useTranslations-1b0c4139.js → useTranslations-3a5b70f3.js} +1 -1
- package/build/esm/{utils-71222f0d.js → utils-50c254f2.js} +1 -1
- package/build/esm/{utils-0fedf1d0.js → utils-b0732a5b.js} +5 -5
- package/build/esm/{utils-e177afd9.js → utils-cf5bebf5.js} +4 -4
- package/build/esm/vaccination.js +26 -26
- package/build/footer.js +18 -18
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-52ab6221.js → getDynamicHealthTool-ffb87e2a.js} +4 -4
- package/build/{getSocialList-dd491e96.js → getSocialList-a960f8f9.js} +4 -4
- package/build/hooks.js +17 -17
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-3f571f3c.js → index-026689eb.js} +4 -4
- package/build/{index-a98976ee.js → index-1015b133.js} +2 -2
- package/build/{index-f3704324.js → index-1c6a470a.js} +2 -2
- package/build/{index-f402a723.js → index-360ff7c3.js} +2 -2
- package/build/{index-b1571e39.js → index-409da37e.js} +11 -11
- package/build/{index-16b667e7.js → index-46a403de.js} +10 -10
- package/build/{index-2fbab8b2.js → index-4ec18b8e.js} +2 -2
- package/build/{index-a2d5e81c.js → index-4fbef592.js} +12 -12
- package/build/{index-eb1702e9.js → index-56cf325c.js} +134 -218
- package/build/{index-6cb96761.js → index-577374f5.js} +3 -3
- package/build/{index-23bade93.js → index-89e0a527.js} +9 -9
- package/build/{index-8ce0d3e8.js → index-8b591908.js} +4 -4
- package/build/{index-58614afe.js → index-a11eaf40.js} +4 -4
- package/build/{index-d91d7535.js → index-ac5d1c65.js} +2 -2
- package/build/{index-f58041e0.js → index-b2034af4.js} +2 -2
- package/build/{index-01dcd4ee.js → index-bcb185da.js} +2 -2
- package/build/{index-928a93ba.js → index-c78fbad6.js} +2 -2
- package/build/{index-854624ab.js → index-cdd767e6.js} +12 -12
- package/build/{index-62392773.js → index-d8660e08.js} +6 -6
- package/build/{index-6feeacd9.js → index-e407cc85.js} +1 -1
- package/build/{index-cab2553b.js → index-e42193d1.js} +2 -2
- package/build/{index-37a0998d.js → index-ebdaf69f.js} +5 -5
- package/build/{index-ffdd1117.js → index-f1fec527.js} +2 -2
- package/build/{index-b6806fac.js → index-f49fc384.js} +32 -32
- package/build/{index-39c7a6d0.js → index-ffb39121.js} +28 -27
- package/build/index.js +66 -66
- package/build/{index.styled-6b0a64f1.js → index.styled-47d1a79c.js} +2 -2
- package/build/{index.styles-0c64c7c2.js → index.styles-6fcbfe1c.js} +6 -6
- package/build/lead/components/close.d.ts +2 -2
- 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 +30 -30
- package/build/pwg.js +19 -19
- package/build/{routing-aae03150.js → routing-225709b4.js} +2 -2
- package/build/subot.js +22 -22
- package/build/together/interfaces/types.d.ts +2 -0
- package/build/together.js +34 -34
- package/build/{types-aa13b952.js → types-3b156cb9.js} +13 -13
- package/build/{types-b9672f54.js → types-efe1b34a.js} +30 -30
- package/build/types.js +1 -1
- package/build/{useCategory-75420a33.js → useCategory-1fdb4640.js} +5 -5
- package/build/{useHealthToolCache-1b841c96.js → useHealthToolCache-54b03fea.js} +2 -2
- package/build/{useMantineLocale-11ac1d5d.js → useMantineLocale-741637f6.js} +3 -3
- package/build/{usePlacesAutocomplete-35afad37.js → usePlacesAutocomplete-f8b10801.js} +1 -1
- package/build/{useTranslations-23bd5fea.js → useTranslations-ae9962a2.js} +1 -1
- package/build/{utils-65258a03.js → utils-3559ef16.js} +5 -5
- package/build/{utils-19ca72b5.js → utils-956f04ea.js} +4 -4
- package/build/{utils-9c7a9493.js → utils-bb9fa0c2.js} +1 -1
- package/build/vaccination.js +26 -26
- package/package.json +1 -1
- package/build/components/molecules/bmrForm/index.d.ts +0 -17
- package/build/components/molecules/bmrForm/index.styled.d.ts +0 -20
- package/build/components/molecules/embeddedHeathToolCards/bmi/context.d.ts +0 -17
- package/build/esm/components/molecules/bmrForm/index.d.ts +0 -17
- package/build/esm/components/molecules/bmrForm/index.styled.d.ts +0 -20
- package/build/esm/components/molecules/embeddedHeathToolCards/bmi/context.d.ts +0 -17
- /package/build/{BMI_BOYS.percentile.monthly-f760039b.js → BMI_BOYS.percentile.monthly-5e7ec1d2.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-83d03675.js → BMI_BOYS.percentile.weekly-6e4738a8.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-232a9028.js → BMI_BOYS.percentile.yearly-8d16e5a8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-969c9499.js → BMI_BOYS.zscore.monthly-0840deac.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-f01cc53a.js → BMI_BOYS.zscore.weekly-74429316.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-06cabbd4.js → BMI_BOYS.zscore.yearly-cd2fe266.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-b1dd04b6.js → BMI_GIRLS.percentile.monthly-2bff3efe.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-9b3e738b.js → BMI_GIRLS.percentile.weekly-e6fc6dbe.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-77c1dfa9.js → BMI_GIRLS.percentile.yearly-7f25de61.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-3db44bce.js → BMI_GIRLS.zscore.monthly-0375ac4d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-0e340209.js → BMI_GIRLS.zscore.weekly-91ca1406.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-b3f1aa5f.js → BMI_GIRLS.zscore.yearly-ffd5c54a.js} +0 -0
- /package/build/{ChevronDown-90db784c.js → ChevronDown-d3d4a8c4.js} +0 -0
- /package/build/{Close-34fec37a.js → Close-25846383.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-295c253d.js → HEAD CIRCUM_BOYS.percentile.monthly-1b1d5579.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-8189bde2.js → HEAD CIRCUM_BOYS.percentile.weekly-ca05f7ea.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-bd6edffc.js → HEAD CIRCUM_BOYS.percentile.yearly-00387468.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-957b07b5.js → HEAD CIRCUM_BOYS.zscore.monthly-3e45b7a0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-20b1384b.js → HEAD CIRCUM_BOYS.zscore.weekly-9ae6fb48.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-75c3ffec.js → HEAD CIRCUM_BOYS.zscore.yearly-6f15fb28.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-8e4a06e4.js → HEAD CIRCUM_GIRLS.percentile.monthly-a01b2242.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-984c97e4.js → HEAD CIRCUM_GIRLS.percentile.weekly-cf7c6488.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f979a57e.js → HEAD CIRCUM_GIRLS.percentile.yearly-6634e25d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-2010f7b6.js → HEAD CIRCUM_GIRLS.zscore.monthly-5e2b4919.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-8ac4e71e.js → HEAD CIRCUM_GIRLS.zscore.weekly-05b1b3a6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-72087da1.js → HEAD CIRCUM_GIRLS.zscore.yearly-e9e48412.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-55577194.js → HEIGHT_BOYS.percentile.monthly-49cc8a87.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-d5114a8d.js → HEIGHT_BOYS.percentile.weekly-a325ce62.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-6094b3a8.js → HEIGHT_BOYS.percentile.yearly-03eb805e.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-52722350.js → HEIGHT_BOYS.zscore.monthly-11ef3efb.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-cc4484b7.js → HEIGHT_BOYS.zscore.weekly-9b0fa44a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-1c33d76a.js → HEIGHT_BOYS.zscore.yearly-7bb6502a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-df48b459.js → HEIGHT_GIRLS.percentile.monthly-53ccb921.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-db911200.js → HEIGHT_GIRLS.percentile.weekly-edc585db.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-75d65a5e.js → HEIGHT_GIRLS.percentile.yearly-7ac079d0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-6008c969.js → HEIGHT_GIRLS.zscore.monthly-484f76e8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-b9d844cc.js → HEIGHT_GIRLS.zscore.weekly-722a4648.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-b051ad89.js → HEIGHT_GIRLS.zscore.yearly-97904656.js} +0 -0
- /package/build/{Visible-526254e0.js → Visible-9a919449.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-2ddadf30.js → WEIGHT_BOYS.percentile.monthly-b257074b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-ed55800b.js → WEIGHT_BOYS.percentile.weekly-702503eb.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-8252604b.js → WEIGHT_BOYS.percentile.yearly-ed038d17.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-2b97ede0.js → WEIGHT_BOYS.zscore.monthly-6001e8a8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-65deb362.js → WEIGHT_BOYS.zscore.weekly-ebdb9876.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-6a28599f.js → WEIGHT_BOYS.zscore.yearly-916094ae.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-2d4df0cd.js → WEIGHT_GIRLS.percentile.monthly-6c72b49a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-8fe8dad4.js → WEIGHT_GIRLS.percentile.weekly-9e1d5a4c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-ce1959f7.js → WEIGHT_GIRLS.percentile.yearly-01f08511.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-35b0d1af.js → WEIGHT_GIRLS.zscore.monthly-b55046d5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-e6d63d74.js → WEIGHT_GIRLS.zscore.weekly-8f6a4861.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-e4bddc65.js → WEIGHT_GIRLS.zscore.yearly-d9f26541.js} +0 -0
- /package/build/{animation-e4b5df1b.js → animation-265b0036.js} +0 -0
- /package/build/{cart-4cc6d162.js → cart-16fb26d5.js} +0 -0
- /package/build/{cookieHelper-b0d5e738.js → cookieHelper-d38b57aa.js} +0 -0
- /package/build/{doctor-1f24bfe7.js → doctor-c93787ed.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-31639559.js → BMI_BOYS.percentile.monthly-8b5d47d1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-6563653e.js → BMI_BOYS.percentile.weekly-3e74be5a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-8ce14d1c.js → BMI_BOYS.percentile.yearly-40f6256a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-97de52f7.js → BMI_BOYS.zscore.monthly-ddeeb36e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-6e773dc7.js → BMI_BOYS.zscore.weekly-9d1d7e9c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-c528b4aa.js → BMI_BOYS.zscore.yearly-4865ccc5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-bb721522.js → BMI_GIRLS.percentile.monthly-81b34946.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-a5e87b35.js → BMI_GIRLS.percentile.weekly-065ecf25.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-17a091ab.js → BMI_GIRLS.percentile.yearly-5619f4dd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-d87b26c7.js → BMI_GIRLS.zscore.monthly-e013d9a3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-f4b3ef1a.js → BMI_GIRLS.zscore.weekly-1fb839bf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-0bd23e87.js → BMI_GIRLS.zscore.yearly-54ec7e0e.js} +0 -0
- /package/build/esm/{ChevronDown-c9d15f1e.js → ChevronDown-14cc5d20.js} +0 -0
- /package/build/esm/{Close-663ab262.js → Close-2f1a64cb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-2a6197fd.js → HEAD CIRCUM_BOYS.percentile.monthly-cb28050d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-6f7e9384.js → HEAD CIRCUM_BOYS.percentile.weekly-f0b0e5f8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-a42662ef.js → HEAD CIRCUM_BOYS.percentile.yearly-68cbd39f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-17cd4a9c.js → HEAD CIRCUM_BOYS.zscore.monthly-9d0fc66b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-de072c20.js → HEAD CIRCUM_BOYS.zscore.weekly-c371830b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-5d0b115b.js → HEAD CIRCUM_BOYS.zscore.yearly-ee2e6fd5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b25ec934.js → HEAD CIRCUM_GIRLS.percentile.monthly-9b2337cf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-29197d75.js → HEAD CIRCUM_GIRLS.percentile.weekly-5e7d9efc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-60b8f0b7.js → HEAD CIRCUM_GIRLS.percentile.yearly-9b56ef27.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-04d93c58.js → HEAD CIRCUM_GIRLS.zscore.monthly-fa8e7985.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-cce24a1c.js → HEAD CIRCUM_GIRLS.zscore.weekly-f2e1d774.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-a4205263.js → HEAD CIRCUM_GIRLS.zscore.yearly-aa042b87.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-88b7ba38.js → HEIGHT_BOYS.percentile.monthly-2bca7e36.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-9e929bc2.js → HEIGHT_BOYS.percentile.weekly-04a91167.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-ce0c0291.js → HEIGHT_BOYS.percentile.yearly-16de0b96.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-37dfc928.js → HEIGHT_BOYS.zscore.monthly-6cea9714.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-d912ecf3.js → HEIGHT_BOYS.zscore.weekly-412b184e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-6033af3d.js → HEIGHT_BOYS.zscore.yearly-0f4049ba.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-0f7094a8.js → HEIGHT_GIRLS.percentile.monthly-b2571bcd.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-2b1c3896.js → HEIGHT_GIRLS.percentile.weekly-baeb8c8a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4f6f99b1.js → HEIGHT_GIRLS.percentile.yearly-78f687cc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-59d1a8e4.js → HEIGHT_GIRLS.zscore.monthly-54565652.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-311e9528.js → HEIGHT_GIRLS.zscore.weekly-7afa591c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c22ed88c.js → HEIGHT_GIRLS.zscore.yearly-07696a76.js} +0 -0
- /package/build/esm/{Visible-78023de7.js → Visible-f514e062.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-ad8d9924.js → WEIGHT_BOYS.percentile.monthly-548f4eba.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-479fe164.js → WEIGHT_BOYS.percentile.weekly-e7230863.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-def26126.js → WEIGHT_BOYS.percentile.yearly-a6fd5440.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-5a309ba4.js → WEIGHT_BOYS.zscore.monthly-a4b99987.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-c408110e.js → WEIGHT_BOYS.zscore.weekly-b9a278b2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-9cc4ba3f.js → WEIGHT_BOYS.zscore.yearly-4fc09b9d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-4c34e710.js → WEIGHT_GIRLS.percentile.monthly-6d72e5b5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-621c6b26.js → WEIGHT_GIRLS.percentile.weekly-480b25c8.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bb5e9883.js → WEIGHT_GIRLS.percentile.yearly-3472c514.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-5c8d8a79.js → WEIGHT_GIRLS.zscore.monthly-717db383.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-6b702c1c.js → WEIGHT_GIRLS.zscore.weekly-21fb2418.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-364697f3.js → WEIGHT_GIRLS.zscore.yearly-fd07c8f6.js} +0 -0
- /package/build/esm/{animation-e80f7924.js → animation-8a323af5.js} +0 -0
- /package/build/esm/{cart-b6acc8bf.js → cart-d52f1dec.js} +0 -0
- /package/build/esm/{cookieHelper-774acadd.js → cookieHelper-82442bba.js} +0 -0
- /package/build/esm/{doctor-97cbad21.js → doctor-04938ed4.js} +0 -0
- /package/build/esm/{index-8843aecd.js → index-1aeb952a.js} +0 -0
- /package/build/esm/{index-0473e274.js → index-7dea2608.js} +0 -0
- /package/build/esm/{index-d9bf4439.js → index-d84269ae.js} +0 -0
- /package/build/esm/{index-5f891b02.js → index-eec6203c.js} +0 -0
- /package/build/esm/{isProduction-0ea8dd7c.js → isProduction-d3299694.js} +0 -0
- /package/build/esm/{localizeNumberFormat-20457d95.js → localizeNumberFormat-a3a55f49.js} +0 -0
- /package/build/esm/{normalizeLink-93f71b8d.js → normalizeLink-09b7b732.js} +0 -0
- /package/build/esm/{number-125fff90.js → number-8d86a56c.js} +0 -0
- /package/build/esm/{paths-7c1b020d.js → paths-5ab6cf36.js} +0 -0
- /package/build/esm/{theme-809826c6.js → theme-03d89802.js} +0 -0
- /package/build/esm/{translationsContext-4ccd0db6.js → translationsContext-c2547a40.js} +0 -0
- /package/build/esm/{tslib.es6-009190f5.js → tslib.es6-5160724c.js} +0 -0
- /package/build/esm/{types-afd0ea24.js → types-19e68c3a.js} +0 -0
- /package/build/esm/{useIsInit-19cbbe0a.js → useIsInit-742bfdbc.js} +0 -0
- /package/build/esm/{useOutsideClick-76556248.js → useOutsideClick-371cb137.js} +0 -0
- /package/build/esm/{useScrollbarSize-1a1a2a1c.js → useScrollbarSize-f2dc58f6.js} +0 -0
- /package/build/esm/{useUniqueId-b6678dac.js → useUniqueId-7834dc19.js} +0 -0
- /package/build/esm/{utils-906afdbb.js → utils-21e35369.js} +0 -0
- /package/build/{index-732d0cf6.js → index-261ce38d.js} +0 -0
- /package/build/{index-66d74ff8.js → index-6768d385.js} +0 -0
- /package/build/{index-801d0f8c.js → index-6dd09d0e.js} +0 -0
- /package/build/{index-991e8580.js → index-d5b0e368.js} +0 -0
- /package/build/{isProduction-45b769c5.js → isProduction-a589f8e0.js} +0 -0
- /package/build/{localizeNumberFormat-454257cf.js → localizeNumberFormat-2d08ab00.js} +0 -0
- /package/build/{normalizeLink-0adecbbe.js → normalizeLink-81e44471.js} +0 -0
- /package/build/{number-8c7f489b.js → number-f3955ac1.js} +0 -0
- /package/build/{paths-4aef546c.js → paths-1eedeba0.js} +0 -0
- /package/build/{theme-a6769818.js → theme-0c7de955.js} +0 -0
- /package/build/{translationsContext-e5b47417.js → translationsContext-f0b00799.js} +0 -0
- /package/build/{tslib.es6-7680ee2c.js → tslib.es6-21bc76dd.js} +0 -0
- /package/build/{types-287b750a.js → types-c5c61b1f.js} +0 -0
- /package/build/{useIsInit-8805c830.js → useIsInit-1e1192d3.js} +0 -0
- /package/build/{useOutsideClick-e57e999e.js → useOutsideClick-fb7b0e11.js} +0 -0
- /package/build/{useScrollbarSize-12f586ff.js → useScrollbarSize-02a199f1.js} +0 -0
- /package/build/{useUniqueId-0421e0af.js → useUniqueId-9ee0e545.js} +0 -0
- /package/build/{utils-a423ef09.js → utils-20389cd3.js} +0 -0
|
@@ -1,69 +1,69 @@
|
|
|
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-667832a2.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-924b4812.js';
|
|
4
|
+
import { f as formatUrlWithPageParam, M as MediaQueries } from './utils-21e35369.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-ba777d71.js';
|
|
6
|
+
import { T as Text$1 } from './index-7edac771.js';
|
|
7
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-5160724c.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-
|
|
9
|
+
import { C as CommonGAssets } from './index-61c6842a.js';
|
|
10
|
+
import { H as Heading } from './index-48d75d5b.js';
|
|
11
|
+
import { t as theme } from './theme-03d89802.js';
|
|
12
12
|
import { Card, Group, Box, Flex, createStyles, Stack, getStylesRef, useMantineTheme, rem, Container as Container$1, 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-62e5ab51.js';
|
|
16
|
+
import { L as LOCALE } from './index-7dea2608.js';
|
|
17
|
+
import './useMantineLocale-deeb986b.js';
|
|
18
|
+
import './translationsContext-c2547a40.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-b804ef2f.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-3fa61807.js';
|
|
25
|
+
import { B as Button } from './index-0d9866a6.js';
|
|
26
|
+
import { I as Input } from './index-7d1d6c79.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-d3299694.js';
|
|
30
|
+
import { u as useTranslations } from './useTranslations-3a5b70f3.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-4ea3e525.js';
|
|
34
|
+
import { D as DATE_FORMAT } from './types-19e68c3a.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-b0732a5b.js';
|
|
36
|
+
import { D as DatePicker } from './index-13578b4b.js';
|
|
37
|
+
import { M as MarryBabyText } from './index-18250b0b.js';
|
|
38
|
+
import { S as Slider } from './index-d73121f4.js';
|
|
39
|
+
import { D as Dropdown } from './index-a367d535.js';
|
|
40
|
+
import { f as formatUserProfileUrl } from './index-b03e8e5c.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-807babad.js';
|
|
43
|
+
import { D as DatePicker$1 } from './index-3723a2c1.js';
|
|
44
44
|
import { Controller, useForm } from 'react-hook-form';
|
|
45
|
-
import './constants-
|
|
46
|
-
import './utils-
|
|
47
|
-
import { C as Container } from './index-
|
|
48
|
-
import './WhatsApp-
|
|
49
|
-
import './index.styled-
|
|
50
|
-
import './index-
|
|
51
|
-
import { a as useOutsideClick } from './useOutsideClick-
|
|
45
|
+
import './constants-0904669a.js';
|
|
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';
|
|
52
52
|
import enUS from 'date-fns/locale/en-US';
|
|
53
53
|
import id from 'date-fns/locale/id';
|
|
54
54
|
import vi from 'date-fns/locale/vi';
|
|
55
55
|
import zhTW from 'date-fns/locale/zh-TW';
|
|
56
|
-
import { g as getSocialList } from './getSocialList-
|
|
56
|
+
import { g as getSocialList } from './getSocialList-77cc5472.js';
|
|
57
57
|
import { v4 } from 'uuid';
|
|
58
|
-
import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-
|
|
59
|
-
import { I as Icon } from './index-
|
|
58
|
+
import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-e559250d.js';
|
|
59
|
+
import { I as Icon } from './index-f2de848c.js';
|
|
60
60
|
import { Close, Plus } from '@hhgtech/icons/core';
|
|
61
|
-
import { M as Modal } from './index-
|
|
61
|
+
import { M as Modal } from './index-6201aa22.js';
|
|
62
62
|
import Cookies from 'js-cookie';
|
|
63
63
|
import flatten from 'lodash/flatten';
|
|
64
64
|
import uniqBy from 'lodash/uniqBy';
|
|
65
|
-
import { g as getCookie } from './cookieHelper-
|
|
66
|
-
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-
|
|
65
|
+
import { g as getCookie } from './cookieHelper-82442bba.js';
|
|
66
|
+
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-09b7b732.js';
|
|
67
67
|
|
|
68
68
|
var styles$7 = {"alert":"CHw-fZZ","content":"_03U6VRS","close":"EO828Vv"};
|
|
69
69
|
|
|
@@ -3035,21 +3035,16 @@ const StyledIcon = styled.div `
|
|
|
3035
3035
|
}
|
|
3036
3036
|
`;
|
|
3037
3037
|
|
|
3038
|
-
const ToolsBannerCard = ({ className, heading,
|
|
3038
|
+
const ToolsBannerCard = ({ className, heading, bannerColor, medicalReview = {
|
|
3039
3039
|
link: '#',
|
|
3040
3040
|
reviewer: '',
|
|
3041
3041
|
date: '',
|
|
3042
|
-
}, icon, style,
|
|
3042
|
+
}, icon, style, isPregTool, }) => {
|
|
3043
3043
|
const { t } = useTranslations();
|
|
3044
3044
|
const theme = useMantineTheme();
|
|
3045
3045
|
const isMarryBaby = theme.other.template === 'mb';
|
|
3046
3046
|
const siteType = isMarryBaby ? 'marryBaby' : 'helloSites';
|
|
3047
3047
|
const headingAs = 'h2';
|
|
3048
|
-
const bannerBgUrl = isMobile
|
|
3049
|
-
? bannerUrl
|
|
3050
|
-
: bannerUrlLarge
|
|
3051
|
-
? bannerUrlLarge
|
|
3052
|
-
: bannerUrl;
|
|
3053
3048
|
const medicalReviewEle = (medicalReview === null || medicalReview === void 0 ? void 0 : medicalReview.reviewer) ? (React__default.createElement(Text, { size: "label2", as: "div", className: "embedded-review", sx: {
|
|
3054
3049
|
a: {
|
|
3055
3050
|
textUnderlineOffset: '2px',
|
|
@@ -3062,13 +3057,13 @@ const ToolsBannerCard = ({ className, heading, isMobile, bannerUrl, bannerUrlLar
|
|
|
3062
3057
|
date: medicalReview.date,
|
|
3063
3058
|
}),
|
|
3064
3059
|
} }))) : null;
|
|
3065
|
-
return (React__default.createElement(StyledContainer, { className: className,
|
|
3060
|
+
return (React__default.createElement(StyledContainer, { className: className, style: style, "data-site": siteType, "data-banner-color": bannerColor ||
|
|
3066
3061
|
(isPregTool
|
|
3067
|
-
? theme.colors.pink[
|
|
3062
|
+
? theme.colors.pink[1]
|
|
3068
3063
|
: isMarryBaby
|
|
3069
3064
|
? theme.colors.mb[2]
|
|
3070
3065
|
: theme.colors.blue[1]) },
|
|
3071
|
-
React__default.createElement(StyledWrapper$1,
|
|
3066
|
+
React__default.createElement(StyledWrapper$1, null,
|
|
3072
3067
|
React__default.createElement(Flex, { gap: rem(24), align: 'center', justify: 'space-between', sx: { padding: rem(16), gap: rem(24) } },
|
|
3073
3068
|
React__default.createElement(Box, null,
|
|
3074
3069
|
React__default.createElement(Heading, { tag: "h5", as: headingAs }, heading),
|
|
@@ -3893,16 +3888,16 @@ const StyledRadioGroup = styled(RadioGroup) `
|
|
|
3893
3888
|
}
|
|
3894
3889
|
`;
|
|
3895
3890
|
|
|
3896
|
-
const DueDateCardEmbed = ({
|
|
3891
|
+
const DueDateCardEmbed = ({ locale, onSubmitDueDate, dueDatePageInfo, expertUrl, isSide, siteType, }) => {
|
|
3897
3892
|
var _a;
|
|
3898
3893
|
const { t } = useTranslations();
|
|
3899
3894
|
return (React__default.createElement(HealthToolCardWrapper, { isPregTool: true },
|
|
3900
|
-
React__default.createElement(HealthToolCardWrapper.Banner, {
|
|
3895
|
+
React__default.createElement(HealthToolCardWrapper.Banner, { bannerColor: siteType === 'marryBaby' && theme.mbColors.mint, color: "pink", icon: React__default.createElement("img", { alt: "health-tool-icon", src: (dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.featured_image) ||
|
|
3901
3896
|
CommonGAssets.getAssetPath('health-tools/due-date-icon.svg'), loading: "lazy" }), heading: t('healthTools.dueDateCalculator'), medicalReview: {
|
|
3902
3897
|
link: expertUrl,
|
|
3903
3898
|
reviewer: (_a = dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.reviewed_by) === null || _a === void 0 ? void 0 : _a.display_name,
|
|
3904
3899
|
date: dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.reviewed_date,
|
|
3905
|
-
}
|
|
3900
|
+
} }),
|
|
3906
3901
|
React__default.createElement(StyledContent, { onSubmit: (e) => e.preventDefault(), className: "due-date-cal", "data-is-side": isSide },
|
|
3907
3902
|
React__default.createElement(DueDateCalculator, { siteType: siteType, locale: locale, onSubmitDueDate: onSubmitDueDate, isSide: isSide }))));
|
|
3908
3903
|
};
|
|
@@ -4039,168 +4034,88 @@ const BmiForm = (_a) => {
|
|
|
4039
4034
|
} }, formLayout === 'inline' ? (React__default.createElement(InlineForm$1, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm$1, Object.assign({}, commonProps)))));
|
|
4040
4035
|
};
|
|
4041
4036
|
|
|
4042
|
-
const BMICardEmbed = (
|
|
4043
|
-
var
|
|
4037
|
+
const BMICardEmbed = (_a) => {
|
|
4038
|
+
var _b, _c, _d;
|
|
4039
|
+
var { bmiContent, bmiGenerated, bmiUnit, formProps } = _a, props = __rest(_a, ["bmiContent", "bmiGenerated", "bmiUnit", "formProps"]);
|
|
4044
4040
|
const { t } = useTranslations();
|
|
4045
|
-
return (React__default.createElement(HealthToolCardWrapper,
|
|
4041
|
+
return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
|
|
4046
4042
|
React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.featured_image) ||
|
|
4047
4043
|
CommonGAssets.getAssetPath('health-tools/bmi.svg'), loading: "lazy" }), heading: t('bmi.heading'), medicalReview: {
|
|
4048
|
-
link: (
|
|
4049
|
-
reviewer: (
|
|
4050
|
-
date: (
|
|
4051
|
-
}
|
|
4044
|
+
link: (_b = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link,
|
|
4045
|
+
reviewer: (_c = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer,
|
|
4046
|
+
date: (_d = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _d === void 0 ? void 0 : _d.date,
|
|
4047
|
+
} }),
|
|
4052
4048
|
React__default.createElement(HealthToolCardWrapper.Body, null,
|
|
4053
|
-
React__default.createElement(BmiForm, {
|
|
4049
|
+
React__default.createElement(BmiForm, Object.assign({ bmiGenerated: bmiGenerated, bmiUnit: bmiUnit }, formProps)))));
|
|
4054
4050
|
};
|
|
4055
4051
|
|
|
4056
|
-
const BabyGrowthCardEmbed = (
|
|
4057
|
-
var
|
|
4058
|
-
|
|
4059
|
-
|
|
4052
|
+
const BabyGrowthCardEmbed = (_a) => {
|
|
4053
|
+
var _b, _c, _d;
|
|
4054
|
+
var { onError, schema, babyGrowthContent, formProps } = _a, props = __rest(_a, ["onError", "schema", "babyGrowthContent", "formProps"]);
|
|
4055
|
+
return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
|
|
4056
|
+
React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { className: "embedded-icon", alt: "health-tool-icon", src: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.featuredImage) ||
|
|
4060
4057
|
CommonGAssets.getAssetPath('health-tools/toolsIconBabyGrowth.svg'), loading: "lazy" }), heading: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.title) || '', medicalReview: {
|
|
4061
|
-
link: (
|
|
4062
|
-
reviewer: (
|
|
4063
|
-
date: (
|
|
4064
|
-
}
|
|
4058
|
+
link: (_b = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link,
|
|
4059
|
+
reviewer: (_c = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer.trim(),
|
|
4060
|
+
date: (_d = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _d === void 0 ? void 0 : _d.date,
|
|
4061
|
+
} }),
|
|
4065
4062
|
React__default.createElement(HealthToolCardWrapper.Body, null,
|
|
4066
|
-
React__default.createElement(BabyGrowthForm, { schema: schema,
|
|
4063
|
+
React__default.createElement(BabyGrowthForm, Object.assign({ schema: schema, onError: onError }, formProps)))));
|
|
4067
4064
|
};
|
|
4068
4065
|
|
|
4069
|
-
var useStyles$1 = createStyles((theme,
|
|
4070
|
-
const { isMarryBaby, isSide, direction } = params;
|
|
4066
|
+
var useStyles$1 = createStyles((theme, { hasOnClickFn }) => {
|
|
4071
4067
|
return {
|
|
4072
|
-
root:
|
|
4073
|
-
|
|
4074
|
-
flexDirection: 'row',
|
|
4075
|
-
}
|
|
4076
|
-
: {
|
|
4077
|
-
flexDirection: direction === 'column' ? 'column-reverse' : 'row',
|
|
4078
|
-
})), { gap: '8px', padding: '16px', borderRadius: isMarryBaby ? '16px' : '8px' }), (!isMarryBaby && {
|
|
4079
|
-
backgroundImage: `url(${CommonGAssets.getAssetPath('bgPattern/baby-poop.svg')})`,
|
|
4080
|
-
backgroundRepeat: 'no-repeat',
|
|
4081
|
-
backgroundSize: 'cover',
|
|
4082
|
-
backgroundPosition: 'center',
|
|
4083
|
-
})), { backgroundColor: isMarryBaby
|
|
4084
|
-
? theme.colors.toneGreen.toString()
|
|
4085
|
-
: theme.colors[theme.primaryColor][0], [theme.fn.smallerThan('sm')]: Object.assign({}, (direction === 'auto'
|
|
4086
|
-
? {
|
|
4087
|
-
flexDirection: 'column-reverse',
|
|
4088
|
-
}
|
|
4089
|
-
: {})), [theme.fn.smallerThan('md')]: {
|
|
4090
|
-
borderRadius: isMarryBaby ? '12px' : '8px',
|
|
4091
|
-
}, [theme.fn.largerThan('md')]: { padding: '32px', gap: '20px' } }),
|
|
4092
|
-
inner: {
|
|
4093
|
-
display: 'flex',
|
|
4094
|
-
gap: '16px',
|
|
4095
|
-
flexDirection: 'column',
|
|
4096
|
-
flex: 1,
|
|
4097
|
-
},
|
|
4098
|
-
content: {
|
|
4068
|
+
root: {
|
|
4069
|
+
position: 'relative',
|
|
4099
4070
|
display: 'flex',
|
|
4100
4071
|
flexDirection: 'column',
|
|
4101
|
-
gap:
|
|
4072
|
+
gap: rem(16),
|
|
4102
4073
|
},
|
|
4103
|
-
|
|
4074
|
+
sponsorBox: {
|
|
4104
4075
|
display: 'flex',
|
|
4105
|
-
gap:
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
},
|
|
4076
|
+
gap: rem(12),
|
|
4077
|
+
alignItems: 'center',
|
|
4078
|
+
backgroundColor: theme.colors.neutral[0],
|
|
4079
|
+
border: `1px solid ${theme.colors.neutral[1]}`,
|
|
4080
|
+
borderRadius: rem(4),
|
|
4081
|
+
padding: '4px 12px',
|
|
4082
|
+
alignSelf: 'flex-start',
|
|
4113
4083
|
},
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
width: '16px',
|
|
4117
|
-
height: '16px',
|
|
4118
|
-
[theme.fn.largerThan('sm')]: { marginTop: '2px' },
|
|
4119
|
-
},
|
|
4120
|
-
thumbnail: Object.assign(Object.assign({ img: {
|
|
4121
|
-
objectFit: 'contain',
|
|
4122
|
-
objectPosition: 'bottom',
|
|
4123
|
-
width: '100%',
|
|
4124
|
-
height: '100%',
|
|
4125
|
-
} }, (direction === 'column'
|
|
4126
|
-
? {
|
|
4127
|
-
width: '80%',
|
|
4128
|
-
alignSelf: 'center',
|
|
4129
|
-
}
|
|
4130
|
-
: direction === 'row'
|
|
4131
|
-
? {
|
|
4132
|
-
width: '40%',
|
|
4133
|
-
}
|
|
4134
|
-
: {})), { [theme.fn.smallerThan('sm')]: Object.assign({}, (direction === 'auto'
|
|
4135
|
-
? {
|
|
4136
|
-
width: '80%',
|
|
4137
|
-
alignSelf: 'center',
|
|
4138
|
-
}
|
|
4139
|
-
: {})), [theme.fn.largerThan('sm')]: Object.assign({}, (direction === 'auto'
|
|
4140
|
-
? {
|
|
4141
|
-
width: '40%',
|
|
4142
|
-
}
|
|
4143
|
-
: {})) }),
|
|
4144
|
-
action: {
|
|
4145
|
-
display: 'flex',
|
|
4146
|
-
justifyContent: isMarryBaby ? 'center' : 'flex-start',
|
|
4084
|
+
sponsorLogo: {
|
|
4085
|
+
maxHeight: rem(32),
|
|
4147
4086
|
},
|
|
4148
4087
|
btn: {
|
|
4149
|
-
minWidth:
|
|
4150
|
-
|
|
4151
|
-
|
|
4088
|
+
minWidth: rem(180),
|
|
4089
|
+
[theme.fn.largerThan('sm')]: {
|
|
4090
|
+
alignSelf: 'flex-end',
|
|
4091
|
+
},
|
|
4092
|
+
visibility: hasOnClickFn ? 'visible' : 'hidden',
|
|
4152
4093
|
},
|
|
4153
|
-
sponsorLogo: Object.assign(Object.assign({ position: 'absolute', top: 0, height: 40, objectFit: 'contain', objectPosition: 'top' }, (direction === 'column'
|
|
4154
|
-
? {
|
|
4155
|
-
left: '16px',
|
|
4156
|
-
height: 40,
|
|
4157
|
-
}
|
|
4158
|
-
: direction === 'row'
|
|
4159
|
-
? {
|
|
4160
|
-
height: 50,
|
|
4161
|
-
right: '40px',
|
|
4162
|
-
}
|
|
4163
|
-
: {
|
|
4164
|
-
left: '16px',
|
|
4165
|
-
height: 40,
|
|
4166
|
-
})), { [theme.fn.largerThan('sm')]: Object.assign({}, (direction === 'auto'
|
|
4167
|
-
? {
|
|
4168
|
-
height: 50,
|
|
4169
|
-
right: '40px',
|
|
4170
|
-
left: 'unset',
|
|
4171
|
-
}
|
|
4172
|
-
: {})) }),
|
|
4173
4094
|
};
|
|
4174
4095
|
});
|
|
4175
4096
|
|
|
4176
|
-
const BabyPoopEmbed = (
|
|
4097
|
+
const BabyPoopEmbed = (_a) => {
|
|
4098
|
+
var { babyPoopPage, onClickFindOut, currentUrl, sponsorLogo, btnProps } = _a, props = __rest(_a, ["babyPoopPage", "onClickFindOut", "currentUrl", "sponsorLogo", "btnProps"]);
|
|
4177
4099
|
const { t } = useTranslations();
|
|
4178
4100
|
const _theme = useMantineTheme();
|
|
4179
4101
|
const isMarryBaby = _theme.other.template === 'mb';
|
|
4180
|
-
const { classes } = useStyles$1({
|
|
4102
|
+
const { classes } = useStyles$1({ hasOnClickFn: Boolean(onClickFindOut) }, { name: 'BabyPoopEmbed' });
|
|
4181
4103
|
const { reviewedBy, reviewedDate } = babyPoopPage || {};
|
|
4182
|
-
return (React__default.createElement(
|
|
4183
|
-
React__default.createElement("
|
|
4184
|
-
React__default.createElement(Heading, { tag: "h3", as: 'h2', color: !isMarryBaby && '#284A75' }, babyPoopPage.title),
|
|
4185
|
-
React__default.createElement("div", { className: classes.content, "data-is-side": isSide },
|
|
4186
|
-
React__default.createElement(Text, { size: "p3", className: "description" }, babyPoopPage.description),
|
|
4187
|
-
!!reviewedBy && (React__default.createElement("div", { className: classes.reviewText },
|
|
4188
|
-
React__default.createElement("img", { src: CommonGAssets.getAssetPath('reviewerCheck.svg'), alt: "check", className: classes.reviewTextIcon, loading: "lazy" }),
|
|
4189
|
-
React__default.createElement(Text, { size: "p4", color: theme.colors.gray600 },
|
|
4190
|
-
t('categoryPage.info.reviewed'),
|
|
4191
|
-
"\u00A0",
|
|
4192
|
-
React__default.createElement("a", { href: reviewedBy.profile_url }, reviewedBy.display_name),
|
|
4193
|
-
"\u00A0",
|
|
4194
|
-
t('categoryPage.onDate', { date: reviewedDate || '' })))),
|
|
4195
|
-
React__default.createElement("div", { className: classes.action },
|
|
4196
|
-
React__default.createElement(Button$1, { className: classes.btn, size: isMarryBaby ? 'lg' : 'md', variant: isMarryBaby ? 'secondary' : 'primary', onClick: onClickFindOut, dataEventCategory: "Health Tool", dataEventAction: "Baby Stool Inquiry", dataEventLabel: currentUrl, style: {
|
|
4197
|
-
visibility: Boolean(onClickFindOut) ? 'visible' : 'hidden',
|
|
4198
|
-
} }, t('babyPoop.findOut'))))),
|
|
4199
|
-
React__default.createElement("div", { className: classes.thumbnail },
|
|
4200
|
-
React__default.createElement("img", { src: isMarryBaby
|
|
4104
|
+
return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
|
|
4105
|
+
React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: isMarryBaby
|
|
4201
4106
|
? CommonGAssets.getAssetPath('baby-poop.svg')
|
|
4202
|
-
: babyPoopPage === null || babyPoopPage === void 0 ? void 0 : babyPoopPage.featuredImage,
|
|
4203
|
-
|
|
4107
|
+
: babyPoopPage === null || babyPoopPage === void 0 ? void 0 : babyPoopPage.featuredImage, loading: "lazy" }), heading: babyPoopPage.title, medicalReview: {
|
|
4108
|
+
link: reviewedBy === null || reviewedBy === void 0 ? void 0 : reviewedBy.profileUrl,
|
|
4109
|
+
reviewer: reviewedBy === null || reviewedBy === void 0 ? void 0 : reviewedBy.displayName,
|
|
4110
|
+
date: reviewedDate,
|
|
4111
|
+
} }),
|
|
4112
|
+
React__default.createElement(HealthToolCardWrapper.Body, null,
|
|
4113
|
+
React__default.createElement(Box, { className: classes.root },
|
|
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'))))));
|
|
4204
4119
|
};
|
|
4205
4120
|
|
|
4206
4121
|
const ThrFormContext = createContext({});
|
|
@@ -4209,7 +4124,7 @@ const DefaultForm = (_a) => {
|
|
|
4209
4124
|
var _b;
|
|
4210
4125
|
var props = __rest(_a, []);
|
|
4211
4126
|
const { t, locale } = useTranslations();
|
|
4212
|
-
const { isAdult, activeValueNote, linkTool, form } = useContext(ThrFormContext);
|
|
4127
|
+
const { isAdult, activeValueNote, linkTool, form, submitProps } = useContext(ThrFormContext);
|
|
4213
4128
|
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
4214
4129
|
React__default.createElement(GenderOptionControl, Object.assign({}, form.getInputProps('gender'))),
|
|
4215
4130
|
React__default.createElement(DatePicker$1, Object.assign({}, form.getInputProps('age'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
@@ -4232,14 +4147,14 @@ const DefaultForm = (_a) => {
|
|
|
4232
4147
|
fontSize: '14px',
|
|
4233
4148
|
},
|
|
4234
4149
|
}, withinPortal: true }, form.getInputProps('activeValue')))),
|
|
4235
|
-
React__default.createElement(HealthToolFormWrapper.Submit, { type: "submit", dataEventCategory: "Health Tool", dataEventAction: "THR", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}` }, t('bmi.submit'))));
|
|
4150
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "THR", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}` }, submitProps), t('bmi.submit'))));
|
|
4236
4151
|
};
|
|
4237
4152
|
|
|
4238
4153
|
const InlineForm = (_a) => {
|
|
4239
4154
|
var _b;
|
|
4240
4155
|
var props = __rest(_a, []);
|
|
4241
4156
|
const { t, locale } = useTranslations();
|
|
4242
|
-
const { isAdult, activeValueNote, linkTool, form } = useContext(ThrFormContext);
|
|
4157
|
+
const { isAdult, activeValueNote, linkTool, form, submitProps } = useContext(ThrFormContext);
|
|
4243
4158
|
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
|
|
4244
4159
|
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4245
4160
|
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('tools.selectGender') },
|
|
@@ -4272,11 +4187,11 @@ const InlineForm = (_a) => {
|
|
|
4272
4187
|
fontSize: '14px',
|
|
4273
4188
|
},
|
|
4274
4189
|
}, withinPortal: true }, form.getInputProps('activeValue'))))),
|
|
4275
|
-
React__default.createElement(HealthToolFormWrapper.Submit, { type: "submit", dataEventCategory: "Health Tool", dataEventAction: "THR", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}` }, t('bmi.submit'))));
|
|
4190
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "THR", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}` }, submitProps), t('bmi.submit'))));
|
|
4276
4191
|
};
|
|
4277
4192
|
|
|
4278
4193
|
const ThrForm = (_a) => {
|
|
4279
|
-
var { formLayout, onSubmit, onError } = _a, rest = __rest(_a, ["formLayout", "onSubmit", "onError"]);
|
|
4194
|
+
var { formLayout, onSubmit, onError, submitProps } = _a, rest = __rest(_a, ["formLayout", "onSubmit", "onError", "submitProps"]);
|
|
4280
4195
|
const { t, locale } = useTranslations();
|
|
4281
4196
|
const minRange = useRef(40);
|
|
4282
4197
|
const { getHealthToolLink } = useHealthToolsCache(locale);
|
|
@@ -4409,39 +4324,40 @@ const ThrForm = (_a) => {
|
|
|
4409
4324
|
activeValueNote,
|
|
4410
4325
|
linkTool,
|
|
4411
4326
|
form,
|
|
4327
|
+
submitProps,
|
|
4412
4328
|
} }, formLayout === 'inline' ? (React__default.createElement(InlineForm, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm, Object.assign({}, commonProps)))));
|
|
4413
4329
|
};
|
|
4414
4330
|
|
|
4415
|
-
const THRCardEmbed = (
|
|
4416
|
-
var
|
|
4331
|
+
const THRCardEmbed = (_a) => {
|
|
4332
|
+
var _b, _c;
|
|
4333
|
+
var { thrContent, formProps } = _a, props = __rest(_a, ["thrContent", "formProps"]);
|
|
4417
4334
|
const { t } = useTranslations();
|
|
4418
|
-
return (React__default.createElement(HealthToolCardWrapper,
|
|
4335
|
+
return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
|
|
4419
4336
|
React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (thrContent === null || thrContent === void 0 ? void 0 : thrContent.featured_image) ||
|
|
4420
|
-
CommonGAssets.getAssetPath('health-tools/target-heart-rate-icon.svg'), loading: "lazy" }), heading: t('targetHearRate.heading'), medicalReview: ((
|
|
4337
|
+
CommonGAssets.getAssetPath('health-tools/target-heart-rate-icon.svg'), loading: "lazy" }), heading: t('targetHearRate.heading'), medicalReview: ((_b = thrContent === null || thrContent === void 0 ? void 0 : thrContent.reviewedBy) === null || _b === void 0 ? void 0 : _b.display_name)
|
|
4421
4338
|
? {
|
|
4422
4339
|
link: formatUserProfileUrl(thrContent === null || thrContent === void 0 ? void 0 : thrContent.reviewedBy),
|
|
4423
|
-
reviewer: (
|
|
4340
|
+
reviewer: (_c = thrContent === null || thrContent === void 0 ? void 0 : thrContent.reviewedBy) === null || _c === void 0 ? void 0 : _c.display_name,
|
|
4424
4341
|
date: thrContent === null || thrContent === void 0 ? void 0 : thrContent.reviewedDate,
|
|
4425
4342
|
}
|
|
4426
|
-
: undefined
|
|
4343
|
+
: undefined }),
|
|
4427
4344
|
React__default.createElement(HealthToolCardWrapper.Body, null,
|
|
4428
|
-
React__default.createElement(ThrForm, {
|
|
4345
|
+
React__default.createElement(ThrForm, Object.assign({}, formProps)))));
|
|
4429
4346
|
};
|
|
4430
4347
|
|
|
4431
|
-
const BMRCardEmbed = (
|
|
4432
|
-
var
|
|
4348
|
+
const BMRCardEmbed = (_a) => {
|
|
4349
|
+
var _b, _c, _d;
|
|
4350
|
+
var { bmrContent, bmiGenerated, bmiUnit, formProps } = _a, props = __rest(_a, ["bmrContent", "bmiGenerated", "bmiUnit", "formProps"]);
|
|
4433
4351
|
const { t } = useTranslations();
|
|
4434
|
-
return (React__default.createElement(HealthToolCardWrapper,
|
|
4352
|
+
return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
|
|
4435
4353
|
React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.featured_image) ||
|
|
4436
4354
|
CommonGAssets.getAssetPath('health-tools/bmr.svg'), loading: "lazy" }), heading: t('bmr.heading'), medicalReview: {
|
|
4437
|
-
link: (
|
|
4438
|
-
reviewer: (
|
|
4439
|
-
date: (
|
|
4440
|
-
}
|
|
4355
|
+
link: (_b = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link,
|
|
4356
|
+
reviewer: (_c = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer,
|
|
4357
|
+
date: (_d = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _d === void 0 ? void 0 : _d.date,
|
|
4358
|
+
} }),
|
|
4441
4359
|
React__default.createElement(HealthToolCardWrapper.Body, null,
|
|
4442
|
-
React__default.createElement(BmiForm, {
|
|
4443
|
-
dataEventAction: 'BMR',
|
|
4444
|
-
} }))));
|
|
4360
|
+
React__default.createElement(BmiForm, Object.assign({ bmiGenerated: bmiGenerated, bmiUnit: bmiUnit }, formProps, { submitProps: Object.assign(Object.assign({}, formProps === null || formProps === void 0 ? void 0 : formProps.submitProps), { dataEventAction: 'BMR' }) })))));
|
|
4445
4361
|
};
|
|
4446
4362
|
|
|
4447
4363
|
const OvulationForm = ({ locale, onSubmit, isSide, siteType }) => {
|
|
@@ -4553,16 +4469,16 @@ const OvulationCalculator = ({ locale, onSubmitOvulation, isSide, siteType, }) =
|
|
|
4553
4469
|
}, isSide: isSide })));
|
|
4554
4470
|
};
|
|
4555
4471
|
|
|
4556
|
-
const OvulationCardEmbed = ({ onSubmitOvulation, locale, ovulationPageInfo, expertUrl, isSide = false, siteType,
|
|
4472
|
+
const OvulationCardEmbed = ({ onSubmitOvulation, locale, ovulationPageInfo, expertUrl, isSide = false, siteType, }) => {
|
|
4557
4473
|
var _a;
|
|
4558
4474
|
const { t } = useTranslations();
|
|
4559
4475
|
return (React__default.createElement(HealthToolCardWrapper, { isPregTool: true },
|
|
4560
|
-
React__default.createElement(HealthToolCardWrapper.Banner, {
|
|
4476
|
+
React__default.createElement(HealthToolCardWrapper.Banner, { color: "pink", icon: React__default.createElement("img", { alt: "health-tool-icon", src: (ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.featured_image) ||
|
|
4561
4477
|
CommonGAssets.getAssetPath('health-tools/ovulation-icon.svg'), loading: "lazy" }), heading: t('healthTools.ovulationCalculator'), medicalReview: {
|
|
4562
4478
|
link: expertUrl,
|
|
4563
4479
|
reviewer: (_a = ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.reviewed_by) === null || _a === void 0 ? void 0 : _a.display_name,
|
|
4564
4480
|
date: ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.reviewed_date,
|
|
4565
|
-
}
|
|
4481
|
+
} }),
|
|
4566
4482
|
React__default.createElement(StyledContent, { onSubmit: (e) => e.preventDefault(), className: "ovulation-cal", "data-is-side": isSide },
|
|
4567
4483
|
React__default.createElement(OvulationCalculator, { siteType: siteType, locale: locale, onSubmitOvulation: onSubmitOvulation, isSide: isSide }))));
|
|
4568
4484
|
};
|
|
@@ -4660,7 +4576,7 @@ const PWGInputForm = ({ siteType, info, onChange, errorMessage = {}, }) => {
|
|
|
4660
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 }))));
|
|
4661
4577
|
};
|
|
4662
4578
|
|
|
4663
|
-
const PWGCardEmbed = ({ locale, onClick, inputErrorMessage, pwgContent, onFormChange, info,
|
|
4579
|
+
const PWGCardEmbed = ({ locale, onClick, inputErrorMessage, pwgContent, onFormChange, info, isSide = false, siteType, }) => {
|
|
4664
4580
|
var _a;
|
|
4665
4581
|
const { t } = useTranslations();
|
|
4666
4582
|
const [isTwins, setIsTwins] = useState('notwins');
|
|
@@ -4675,12 +4591,12 @@ const PWGCardEmbed = ({ locale, onClick, inputErrorMessage, pwgContent, onFormCh
|
|
|
4675
4591
|
const { getHealthToolLink } = useHealthToolsCache(locale);
|
|
4676
4592
|
const linkTool = useMemo(() => getHealthToolLink(HEALTH_TOOL_TYPE$1.PWG), [getHealthToolLink]);
|
|
4677
4593
|
return (React__default.createElement(HealthToolCardWrapper, { isPregTool: true },
|
|
4678
|
-
React__default.createElement(HealthToolCardWrapper.Banner, { bannerColor: siteType === 'marryBaby' && theme.mbColors.mint,
|
|
4594
|
+
React__default.createElement(HealthToolCardWrapper.Banner, { bannerColor: siteType === 'marryBaby' && theme.mbColors.mint, color: "pink", icon: React__default.createElement("img", { alt: "health-tool-icon", src: (pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.featuredImage) ||
|
|
4679
4595
|
CommonGAssets.getAssetPath('health-tools/pwg-icon.svg'), loading: "lazy" }), heading: t('pregnancyWeightGain.heading'), medicalReview: {
|
|
4680
4596
|
link: formatUserProfileUrl(pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedBy),
|
|
4681
4597
|
reviewer: (_a = pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedBy) === null || _a === void 0 ? void 0 : _a.display_name,
|
|
4682
4598
|
date: pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedDate,
|
|
4683
|
-
}
|
|
4599
|
+
} }),
|
|
4684
4600
|
React__default.createElement(Container, null,
|
|
4685
4601
|
React__default.createElement(StyledContent, { onSubmit: (e) => e.preventDefault(), className: "pwg-view-mobile", "data-is-side": isSide },
|
|
4686
4602
|
siteType !== 'marryBaby' && (React__default.createElement(StyledTwins, { className: "hide-asking-mobile", "data-is-side": isSide },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-5160724c.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { B as Button$1 } from './index-
|
|
3
|
+
import { B as Button$1 } from './index-ba777d71.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
2
|
-
import { I as Icon } from './index-
|
|
3
|
-
import { u as useTranslations } from './useTranslations-
|
|
2
|
+
import { I as Icon } from './index-f2de848c.js';
|
|
3
|
+
import { u as useTranslations } from './useTranslations-3a5b70f3.js';
|
|
4
4
|
import { format } from 'date-fns';
|
|
5
5
|
import DayPickerInput from 'react-day-picker/DayPickerInput';
|
|
6
6
|
import styled from '@emotion/styled';
|
|
7
|
-
import { t as theme } from './theme-
|
|
7
|
+
import { t as theme } from './theme-03d89802.js';
|
|
8
8
|
|
|
9
9
|
var styles = {"loading":"tliWyii"};
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-5160724c.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { S as StyledHeading, a as StyledText } from './index.styled-
|
|
3
|
+
import { S as StyledHeading, a as StyledText } from './index.styled-d9fe4f4b.js';
|
|
4
4
|
|
|
5
5
|
const MarryBabyHeading = (_a) => {
|
|
6
6
|
var { type, color, style } = _a, props = __rest(_a, ["type", "color", "style"]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-5160724c.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { useMantineTheme, Image } from '@mantine/core';
|
|
4
4
|
import { DatePickerInput } from '@mantine/dates';
|
|
5
|
-
import { I as ISO_FORMAT } from './index-
|
|
6
|
-
import { L as LOCALE } from './index-
|
|
7
|
-
import { C as CommonGAssets } from './index-
|
|
8
|
-
import { M as MAPPED_LOCALE } from './useMantineLocale-
|
|
5
|
+
import { I as ISO_FORMAT } from './index-62e5ab51.js';
|
|
6
|
+
import { L as LOCALE } from './index-7dea2608.js';
|
|
7
|
+
import { C as CommonGAssets } from './index-61c6842a.js';
|
|
8
|
+
import { M as MAPPED_LOCALE } from './useMantineLocale-deeb986b.js';
|
|
9
9
|
|
|
10
10
|
// Omit<MantineDatePickerInputProps, 'value'>
|
|
11
11
|
const DatePicker = (_a) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
|
-
import { L as LOCALE } from './index-
|
|
3
|
-
import { C as CommonGAssets } from './index-
|
|
4
|
-
import { i as isChristmas, a as LunarNewYearLocale, b as isLunarNewYear, c as isNewYear, d as isRamadan, e as isVNHungKing, f as isVN3004, g as isLabourDay, S as StyledLogo, L as LogoIcon, h as StyledProLogo } from './utils-
|
|
5
|
-
import { I as ImageWrap } from './index-
|
|
2
|
+
import { L as LOCALE } from './index-7dea2608.js';
|
|
3
|
+
import { C as CommonGAssets } from './index-61c6842a.js';
|
|
4
|
+
import { i as isChristmas, a as LunarNewYearLocale, b as isLunarNewYear, c as isNewYear, d as isRamadan, e as isVNHungKing, f as isVN3004, g as isLabourDay, S as StyledLogo, L as LogoIcon, h as StyledProLogo } from './utils-cf5bebf5.js';
|
|
5
|
+
import { I as ImageWrap } from './index-ba777d71.js';
|
|
6
6
|
|
|
7
7
|
const Logo = ({ type, className, style, isLightLogo, customSize, badge, locale, dateForSeasonal, isPro, }) => {
|
|
8
8
|
const [seasonalChecks, setSeasonalChecks] = useState({
|