@hhgtech/hhg-components 1.29.44 → 1.29.46
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-e8724620.js → WhatsApp-4bf1be49.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/atoms/icons/ConceptionDate.d.ts +4 -0
- package/build/components/atoms/icons/IVF.d.ts +4 -0
- package/build/components/molecules/embeddedHeathToolCards/babyVaccine/index.d.ts +8 -0
- package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +5 -2
- package/build/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +3 -17
- package/build/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
- package/build/components/molecules/healthTools/form/babyVaccineForm/context.d.ts +10 -0
- package/build/components/molecules/healthTools/form/babyVaccineForm/defaultLayout.d.ts +3 -0
- package/build/components/molecules/healthTools/form/babyVaccineForm/index.d.ts +18 -0
- package/build/components/molecules/healthTools/form/babyVaccineForm/inlineLayout.d.ts +3 -0
- package/build/components/molecules/healthTools/form/babyVaccineForm/mbLayout.d.ts +3 -0
- package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/context.d.ts +7 -0
- package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/defaultLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/index.d.ts +6 -0
- package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/inlineLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/context.d.ts +20 -0
- package/build/components/molecules/healthTools/form/dueDateForm/formSwitcher.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/index.d.ts +22 -0
- package/build/components/molecules/healthTools/form/dueDateForm/index.styled.d.ts +33 -0
- package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/context.d.ts +11 -0
- package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/defaultLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/index.d.ts +7 -0
- package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/inlineLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/context.d.ts +7 -0
- package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/defaultLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/index.d.ts +7 -0
- package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/inlineLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/utils.d.ts +12 -0
- package/build/components/molecules/healthTools/form/ovulationForm/context.d.ts +7 -1
- package/build/components/molecules/healthTools/form/ovulationForm/index.d.ts +2 -1
- package/build/components/molecules/healthTools/formWrapper/chipGroup/index.d.ts +13 -0
- package/build/{esm/components/molecules/healthTools/form/ovulationForm/calculatorType → components/molecules/healthTools/formWrapper/chipGroup}/index.styles.d.ts +1 -0
- package/build/components/molecules/healthTools/formWrapper/index.d.ts +5 -1
- package/build/components/molecules/index.d.ts +3 -0
- package/build/components.js +61 -60
- package/build/{constants-07a9e6cb.js → constants-113796d0.js} +2 -2
- package/build/{constants-9478163a.js → constants-317df919.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-e503fa42.js → core-57328e8c.js} +2 -2
- package/build/{dataTransform-2f6ca87c.js → dataTransform-66d88eaa.js} +1 -1
- package/build/ecom.js +26 -7
- package/build/esm/{WhatsApp-9dbce6f2.js → WhatsApp-9c19ab07.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/atoms/icons/ConceptionDate.d.ts +4 -0
- package/build/esm/components/atoms/icons/IVF.d.ts +4 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/babyVaccine/index.d.ts +8 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +5 -2
- package/build/esm/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +3 -17
- package/build/esm/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
- package/build/esm/components/molecules/healthTools/form/babyVaccineForm/context.d.ts +10 -0
- package/build/esm/components/molecules/healthTools/form/babyVaccineForm/defaultLayout.d.ts +3 -0
- package/build/esm/components/molecules/healthTools/form/babyVaccineForm/index.d.ts +18 -0
- package/build/esm/components/molecules/healthTools/form/babyVaccineForm/inlineLayout.d.ts +3 -0
- package/build/esm/components/molecules/healthTools/form/babyVaccineForm/mbLayout.d.ts +3 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/context.d.ts +7 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/defaultLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/index.d.ts +6 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/inlineLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/context.d.ts +20 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/formSwitcher.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/index.d.ts +22 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/index.styled.d.ts +33 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/context.d.ts +11 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/defaultLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/index.d.ts +7 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/inlineLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/context.d.ts +7 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/defaultLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/index.d.ts +7 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/inlineLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/utils.d.ts +12 -0
- package/build/esm/components/molecules/healthTools/form/ovulationForm/context.d.ts +7 -1
- package/build/esm/components/molecules/healthTools/form/ovulationForm/index.d.ts +2 -1
- package/build/esm/components/molecules/healthTools/formWrapper/chipGroup/index.d.ts +13 -0
- package/build/{components/molecules/healthTools/form/ovulationForm/calculatorType → esm/components/molecules/healthTools/formWrapper/chipGroup}/index.styles.d.ts +1 -0
- package/build/esm/components/molecules/healthTools/formWrapper/index.d.ts +5 -1
- package/build/esm/components/molecules/index.d.ts +3 -0
- package/build/esm/components.js +58 -60
- package/build/esm/{constants-e3536cb0.js → constants-b05bc757.js} +2 -2
- package/build/esm/{constants-c042f99f.js → constants-c50b825b.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-55c889b2.js → core-49ccf099.js} +2 -2
- package/build/esm/{dataTransform-2a3b1414.js → dataTransform-1ce154e5.js} +1 -1
- package/build/esm/ecom.js +26 -7
- package/build/esm/footer.js +18 -18
- package/build/esm/gAssets.js +4 -4
- package/build/esm/{getDynamicHealthTool-75eac0f0.js → getDynamicHealthTool-0465f7c4.js} +4 -4
- package/build/esm/{getSocialList-cffac849.js → getSocialList-332f3b07.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 +1 -0
- package/build/esm/i18n-values/hi-IN.js +1 -0
- 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 +1 -0
- 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-724596e6.js → index-05f62597.js} +12 -12
- package/build/esm/{index-7aff3435.js → index-0b997c18.js} +2 -2
- package/build/esm/{index-f0ac2d9c.js → index-0d6c85cf.js} +10 -10
- package/build/esm/{index-7ef38b29.js → index-0ea9b42c.js} +32 -32
- package/build/esm/{index-329afe30.js → index-251e9c68.js} +5 -5
- package/build/esm/{index-c0c2dfbe.js → index-34682a6e.js} +2 -2
- package/build/esm/{index-6c8cda18.js → index-353fd37d.js} +6 -6
- package/build/esm/{index-aebda8f4.js → index-45eb8295.js} +3 -3
- package/build/esm/{index-8a31b708.js → index-4d3ff457.js} +4 -4
- package/build/esm/{index-56195940.js → index-576eefff.js} +1 -1
- package/build/esm/{index-da45fa92.js → index-57a7a3e6.js} +11 -11
- package/build/esm/{index-d73390b2.js → index-604a2f74.js} +2 -2
- package/build/esm/{index-c826cac0.js → index-638bd74d.js} +2 -2
- package/build/esm/{index-af5ce53c.js → index-663ce8ad.js} +228 -191
- package/build/esm/{index-4a001eda.js → index-746c355d.js} +2 -2
- package/build/esm/{index-52e1cb2b.js → index-7872ac55.js} +10 -10
- package/build/esm/{index-48fd5f17.js → index-988f9bc7.js} +2 -2
- package/build/esm/{index-f55cc5a7.js → index-b0e0fbe0.js} +2 -2
- package/build/esm/{index-23fa4098.js → index-baff4b23.js} +4 -4
- package/build/esm/{index-f80d4ff8.js → index-cddd0673.js} +515 -849
- package/build/esm/{index-343490b3.js → index-e8cc5934.js} +9 -9
- package/build/esm/{index-db0a1f04.js → index-f53544db.js} +2 -2
- package/build/esm/{index-c8a34381.js → index-f8020b17.js} +4 -4
- package/build/esm/{index-a2cdc317.js → index-ff8c9d5e.js} +2 -2
- package/build/esm/index.js +65 -67
- package/build/esm/{index.styled-e18670ac.js → index.styled-81557262.js} +2 -2
- package/build/esm/{index.styles-59f43d64.js → index.styles-bdadf1c8.js} +6 -6
- package/build/esm/lead/components/close.d.ts +1 -1
- package/build/esm/lead.js +28 -28
- package/build/esm/mantine.js +51 -26
- 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-e49e8c2d.js → routing-b4329fc1.js} +2 -2
- package/build/esm/subot.js +22 -22
- package/build/esm/together.js +34 -34
- package/build/esm/{types-5c146654.js → types-511b9222.js} +13 -13
- package/build/esm/{types-4f36505b.js → types-c75135fe.js} +30 -30
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-0a83368e.js → useCategory-68e4bda3.js} +5 -5
- package/build/esm/{useHealthToolCache-59feafe2.js → useHealthToolCache-c3daa804.js} +2 -2
- package/build/esm/{useMantineLocale-6a509174.js → useMantineLocale-0143b7da.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-3d150f39.js → usePlacesAutocomplete-db17e379.js} +1 -1
- package/build/esm/{useTranslations-3ea1638d.js → useTranslations-1ed73aa5.js} +1 -1
- package/build/esm/{utils-25cc1cc1.js → utils-4ac92073.js} +1 -1
- package/build/esm/{utils-8a09aa51.js → utils-9ad73105.js} +4 -4
- package/build/esm/{utils-101d2ed1.js → utils-b83d7305.js} +6 -6
- package/build/esm/vaccination.js +26 -26
- package/build/footer.js +18 -18
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-d88a5e5c.js → getDynamicHealthTool-b52ab59e.js} +4 -4
- package/build/{getSocialList-473ff63e.js → getSocialList-1196e062.js} +4 -4
- package/build/hooks.js +17 -17
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +1 -0
- package/build/i18n-values/hi-IN.js +1 -0
- 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 +1 -0
- package/build/i18n-values/zh-TW.js +2 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-997a78d5.js → index-0ef5fb7b.js} +5 -5
- package/build/{index-c10c6d1e.js → index-28e41405.js} +2 -2
- package/build/{index-124b40db.js → index-3164239a.js} +2 -2
- package/build/{index-df3a7b3f.js → index-377ec4b5.js} +9 -9
- package/build/{index-fe3c222e.js → index-3ea447ec.js} +2 -2
- package/build/{index-cba1387f.js → index-59a03ee5.js} +2 -2
- package/build/{index-7f262dce.js → index-5abdda03.js} +4 -4
- package/build/{index-c2ac4561.js → index-5dd6ca2b.js} +2 -2
- package/build/{index-ed90d9b2.js → index-5f79500b.js} +2 -2
- package/build/{index-c66838fb.js → index-65a70d84.js} +2 -2
- package/build/{index-cbb000d2.js → index-7344f1c2.js} +2 -2
- package/build/{index-f7e4c060.js → index-7fdcece5.js} +10 -10
- package/build/{index-4a3a9242.js → index-839fc4d7.js} +3 -3
- package/build/{index-700708e8.js → index-862b85ee.js} +214 -183
- package/build/{index-f84d349e.js → index-8fde4d03.js} +12 -12
- package/build/{index-a6b3d160.js → index-a1c28eba.js} +1 -1
- package/build/{index-9c2050b5.js → index-a8450c08.js} +11 -11
- package/build/{index-5cf94c14.js → index-b6163fc1.js} +545 -876
- package/build/{index-1b816464.js → index-c698c565.js} +9 -9
- package/build/{index-acee5b80.js → index-c715aa7e.js} +4 -4
- package/build/{index-3950786c.js → index-cef9f4c3.js} +6 -6
- package/build/{index-0ac8dfc2.js → index-d737b1fb.js} +2 -2
- package/build/{index-915a13a1.js → index-d8d1a000.js} +4 -4
- package/build/{index-738cd2f1.js → index-dfbd3e9f.js} +32 -32
- package/build/index.js +68 -67
- package/build/{index.styled-944d0268.js → index.styled-3d074d06.js} +2 -2
- package/build/{index.styles-e8260d43.js → index.styles-dccb467a.js} +6 -6
- package/build/lead/components/close.d.ts +1 -1
- package/build/lead.js +28 -28
- package/build/mantine.js +46 -21
- 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-d5905665.js → routing-89950c42.js} +2 -2
- package/build/subot.js +22 -22
- package/build/together.js +34 -34
- package/build/{types-77cc40b2.js → types-31c2a9ae.js} +13 -13
- package/build/{types-89c5c272.js → types-3950841d.js} +30 -30
- package/build/types.js +1 -1
- package/build/{useCategory-ccae31bb.js → useCategory-5daa9df5.js} +5 -5
- package/build/{useHealthToolCache-2046236a.js → useHealthToolCache-b077e564.js} +2 -2
- package/build/{useMantineLocale-531aaed6.js → useMantineLocale-36d8cc0e.js} +3 -3
- package/build/{usePlacesAutocomplete-f403c86c.js → usePlacesAutocomplete-bf982b9b.js} +1 -1
- package/build/{useTranslations-3a6844ce.js → useTranslations-88508475.js} +1 -1
- package/build/{utils-d237afdc.js → utils-5fb09c5a.js} +1 -1
- package/build/{utils-6fd64172.js → utils-a06b2158.js} +4 -4
- package/build/{utils-48e7d57a.js → utils-c0969c6d.js} +5 -7
- package/build/vaccination.js +26 -26
- package/package.json +1 -1
- package/build/components/molecules/healthTools/form/ovulationForm/calculatorType/index.d.ts +0 -6
- package/build/esm/components/molecules/healthTools/form/ovulationForm/calculatorType/index.d.ts +0 -6
- package/build/esm/index-57b0dda2.js +0 -32
- package/build/esm/types-58c673f9.js +0 -21
- package/build/index-d74282a1.js +0 -38
- package/build/types-db558dfc.js +0 -24
- /package/build/{BMI_BOYS.percentile.monthly-0210e05b.js → BMI_BOYS.percentile.monthly-ffb08f65.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-baa68483.js → BMI_BOYS.percentile.weekly-ec67979e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-d3ac5e26.js → BMI_BOYS.percentile.yearly-9d273e2f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-af3644b0.js → BMI_BOYS.zscore.monthly-bb7aadce.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-29c97f80.js → BMI_BOYS.zscore.weekly-1b7b882b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-7ecdf6d3.js → BMI_BOYS.zscore.yearly-52d70f25.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-b8d6bb6e.js → BMI_GIRLS.percentile.monthly-9a2eeb52.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-126944ab.js → BMI_GIRLS.percentile.weekly-3860e560.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-0a25b119.js → BMI_GIRLS.percentile.yearly-6bf2ed05.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-4ba1bed0.js → BMI_GIRLS.zscore.monthly-1ee53921.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-d8185726.js → BMI_GIRLS.zscore.weekly-c474d29d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-50d70903.js → BMI_GIRLS.zscore.yearly-d380a8c5.js} +0 -0
- /package/build/{ChevronDown-978d063e.js → ChevronDown-88afe3da.js} +0 -0
- /package/build/{Close-678049d9.js → Close-53d986dd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-d2c0cf1c.js → HEAD CIRCUM_BOYS.percentile.monthly-7eb0b785.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-4969666f.js → HEAD CIRCUM_BOYS.percentile.weekly-11b96f8f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-067ab2dc.js → HEAD CIRCUM_BOYS.percentile.yearly-1b1f8d08.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-519faaa0.js → HEAD CIRCUM_BOYS.zscore.monthly-59e3b087.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-055e35c2.js → HEAD CIRCUM_BOYS.zscore.weekly-ccbb5e5e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-02f3d990.js → HEAD CIRCUM_BOYS.zscore.yearly-365a9c7f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-0c27151b.js → HEAD CIRCUM_GIRLS.percentile.monthly-7fc335ff.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a70dae36.js → HEAD CIRCUM_GIRLS.percentile.weekly-060ac259.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-adc1ad62.js → HEAD CIRCUM_GIRLS.percentile.yearly-d9c8e997.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-d7b091dd.js → HEAD CIRCUM_GIRLS.zscore.monthly-d4b13867.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-4df271df.js → HEAD CIRCUM_GIRLS.zscore.weekly-14112cc3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-84dd2dcd.js → HEAD CIRCUM_GIRLS.zscore.yearly-9e768d23.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-1b5c8bfa.js → HEIGHT_BOYS.percentile.monthly-9a4d2772.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-296f084a.js → HEIGHT_BOYS.percentile.weekly-79f83747.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-37f08533.js → HEIGHT_BOYS.percentile.yearly-8ff7e47f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-6854a9ab.js → HEIGHT_BOYS.zscore.monthly-079ccbfb.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-068c84f6.js → HEIGHT_BOYS.zscore.weekly-952a0515.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-caf5d65a.js → HEIGHT_BOYS.zscore.yearly-a2ba64ad.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-dd4dc1ec.js → HEIGHT_GIRLS.percentile.monthly-a578480c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-6d71cf1d.js → HEIGHT_GIRLS.percentile.weekly-356af15f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-8ada2b39.js → HEIGHT_GIRLS.percentile.yearly-4c3682a1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-667bf3ec.js → HEIGHT_GIRLS.zscore.monthly-c8759031.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-8ee41983.js → HEIGHT_GIRLS.zscore.weekly-4ef46a0b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-748cf945.js → HEIGHT_GIRLS.zscore.yearly-6d7e0a8a.js} +0 -0
- /package/build/{Visible-4165f9e9.js → Visible-ad8392df.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-ea282b83.js → WEIGHT_BOYS.percentile.monthly-daa2efd4.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-e5963dc0.js → WEIGHT_BOYS.percentile.weekly-b5a5b9bb.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-9468dbf0.js → WEIGHT_BOYS.percentile.yearly-f7609843.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e2fb2cfd.js → WEIGHT_BOYS.zscore.monthly-2f750f0e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-42487b42.js → WEIGHT_BOYS.zscore.weekly-c4ff9057.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-d88f8e25.js → WEIGHT_BOYS.zscore.yearly-2588a17d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1cb90ff5.js → WEIGHT_GIRLS.percentile.monthly-b58279ad.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-e73e1270.js → WEIGHT_GIRLS.percentile.weekly-ab2d7852.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-f96d8aac.js → WEIGHT_GIRLS.percentile.yearly-b7ba7e4c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-3c7a63f3.js → WEIGHT_GIRLS.zscore.monthly-b1752d2d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-51f55505.js → WEIGHT_GIRLS.zscore.weekly-8eba155e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-e82813bd.js → WEIGHT_GIRLS.zscore.yearly-a52bebca.js} +0 -0
- /package/build/{animation-1d1642c9.js → animation-6f30cb05.js} +0 -0
- /package/build/{cart-20fba50b.js → cart-4a2718b1.js} +0 -0
- /package/build/{cookieHelper-9a3f8df6.js → cookieHelper-e52ef565.js} +0 -0
- /package/build/{doctor-bd95dbc6.js → doctor-c4e9c3d5.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-f311c5fa.js → BMI_BOYS.percentile.monthly-f9a24f1a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-ca9bcf79.js → BMI_BOYS.percentile.weekly-9b068394.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-5a312b62.js → BMI_BOYS.percentile.yearly-8f9817f8.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-f6856684.js → BMI_BOYS.zscore.monthly-ca5090c9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-cfab8456.js → BMI_BOYS.zscore.weekly-2ac0171a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-24a1dc88.js → BMI_BOYS.zscore.yearly-c8f877f2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-b580780e.js → BMI_GIRLS.percentile.monthly-91bfffa4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-2ed6bff3.js → BMI_GIRLS.percentile.weekly-968bc42c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-5173a209.js → BMI_GIRLS.percentile.yearly-234ad4bd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-bcb8f3af.js → BMI_GIRLS.zscore.monthly-c7684196.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-20f43555.js → BMI_GIRLS.zscore.weekly-fda37cd4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e39e7c4b.js → BMI_GIRLS.zscore.yearly-4a8a2143.js} +0 -0
- /package/build/esm/{ChevronDown-d4489952.js → ChevronDown-40401701.js} +0 -0
- /package/build/esm/{Close-657d46b8.js → Close-7865ad11.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-38021261.js → HEAD CIRCUM_BOYS.percentile.monthly-561fdcd4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-55c66c6e.js → HEAD CIRCUM_BOYS.percentile.weekly-fad738be.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-4b094a19.js → HEAD CIRCUM_BOYS.percentile.yearly-c17a811a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-5dcc303b.js → HEAD CIRCUM_BOYS.zscore.monthly-b088fb23.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8cdc7680.js → HEAD CIRCUM_BOYS.zscore.weekly-c84c5040.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b536abce.js → HEAD CIRCUM_BOYS.zscore.yearly-c07af658.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-c9189721.js → HEAD CIRCUM_GIRLS.percentile.monthly-02f1fe89.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-c6d86ffd.js → HEAD CIRCUM_GIRLS.percentile.weekly-4fb8f592.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-ef95ac84.js → HEAD CIRCUM_GIRLS.percentile.yearly-6f94d285.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-dd0fc8c3.js → HEAD CIRCUM_GIRLS.zscore.monthly-3a39a9ef.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0ba067fa.js → HEAD CIRCUM_GIRLS.zscore.weekly-5598bd91.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-a675e8c8.js → HEAD CIRCUM_GIRLS.zscore.yearly-55d0e1c5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-82109679.js → HEIGHT_BOYS.percentile.monthly-850ec09b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f989e3bb.js → HEIGHT_BOYS.percentile.weekly-ff524192.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-dd80031f.js → HEIGHT_BOYS.percentile.yearly-a1192bc6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5b996782.js → HEIGHT_BOYS.zscore.monthly-6d6118bd.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-25932154.js → HEIGHT_BOYS.zscore.weekly-080f7d2b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-b6d2489a.js → HEIGHT_BOYS.zscore.yearly-4ae02176.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-7149bb81.js → HEIGHT_GIRLS.percentile.monthly-9e7c1213.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c56405c5.js → HEIGHT_GIRLS.percentile.weekly-7ee03e8c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-7732850d.js → HEIGHT_GIRLS.percentile.yearly-d6056508.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-53c6dd61.js → HEIGHT_GIRLS.zscore.monthly-ae5b73cc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-a0efce21.js → HEIGHT_GIRLS.zscore.weekly-cbdb7ea1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-fa254281.js → HEIGHT_GIRLS.zscore.yearly-f90bb72a.js} +0 -0
- /package/build/esm/{Visible-06d5ecea.js → Visible-b3c0ac79.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-a59a623f.js → WEIGHT_BOYS.percentile.monthly-5860cd35.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-75d3a2a9.js → WEIGHT_BOYS.percentile.weekly-51f39ba4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-5e42a69a.js → WEIGHT_BOYS.percentile.yearly-8af6da0b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-be6dbbb5.js → WEIGHT_BOYS.zscore.monthly-0e3e59eb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7297b525.js → WEIGHT_BOYS.zscore.weekly-a43864fd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-efb3f378.js → WEIGHT_BOYS.zscore.yearly-2fd4a6c2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-8e5b7d12.js → WEIGHT_GIRLS.percentile.monthly-7a30cec6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b2616c0d.js → WEIGHT_GIRLS.percentile.weekly-72814fe3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-42960ad7.js → WEIGHT_GIRLS.percentile.yearly-3618eb8f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b028967c.js → WEIGHT_GIRLS.zscore.monthly-e0729681.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-c53b2d36.js → WEIGHT_GIRLS.zscore.weekly-70dac28a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-00cf3ec5.js → WEIGHT_GIRLS.zscore.yearly-51010d29.js} +0 -0
- /package/build/esm/{animation-c85ef1aa.js → animation-846a3492.js} +0 -0
- /package/build/esm/{cart-a09f93df.js → cart-7fd7d530.js} +0 -0
- /package/build/esm/{cookieHelper-4166d977.js → cookieHelper-bc14538c.js} +0 -0
- /package/build/esm/{doctor-9918e324.js → doctor-5502d454.js} +0 -0
- /package/build/esm/{index-3e04178f.js → index-893ee6c2.js} +0 -0
- /package/build/esm/{index-be8d21e4.js → index-aa5d9b56.js} +0 -0
- /package/build/esm/{index-5b97be17.js → index-c621a102.js} +0 -0
- /package/build/esm/{index-b63d88c2.js → index-fb359845.js} +0 -0
- /package/build/esm/{isProduction-8ddd1c09.js → isProduction-8b94b2e8.js} +0 -0
- /package/build/esm/{localizeNumberFormat-567af8b4.js → localizeNumberFormat-c4cb7a3d.js} +0 -0
- /package/build/esm/{normalizeLink-00141ab9.js → normalizeLink-8ec944ea.js} +0 -0
- /package/build/esm/{number-f58f7319.js → number-a62f57cd.js} +0 -0
- /package/build/esm/{paths-6c0107cc.js → paths-5635c7aa.js} +0 -0
- /package/build/esm/{theme-7c208c30.js → theme-4a099635.js} +0 -0
- /package/build/esm/{translationsContext-9021710e.js → translationsContext-d6309014.js} +0 -0
- /package/build/esm/{tslib.es6-2c23b4a0.js → tslib.es6-059585f8.js} +0 -0
- /package/build/esm/{useIsInit-c7f70254.js → useIsInit-1795ce28.js} +0 -0
- /package/build/esm/{useOutsideClick-4a5bba56.js → useOutsideClick-0b2f39ea.js} +0 -0
- /package/build/esm/{useScrollbarSize-718c8d7c.js → useScrollbarSize-2691a669.js} +0 -0
- /package/build/esm/{useUniqueId-ce0a21e6.js → useUniqueId-19a128f0.js} +0 -0
- /package/build/esm/{utils-72d20560.js → utils-36a2e88c.js} +0 -0
- /package/build/{index-da4e36c3.js → index-438cd223.js} +0 -0
- /package/build/{index-896edc0e.js → index-a42fdce3.js} +0 -0
- /package/build/{index-6e65f064.js → index-e124055f.js} +0 -0
- /package/build/{index-d2b208bb.js → index-eef67236.js} +0 -0
- /package/build/{isProduction-6c46b850.js → isProduction-e5d35ff7.js} +0 -0
- /package/build/{localizeNumberFormat-b9ffbd83.js → localizeNumberFormat-89cf3c66.js} +0 -0
- /package/build/{normalizeLink-05857ba2.js → normalizeLink-ec8d5cd0.js} +0 -0
- /package/build/{number-3ee7ee9e.js → number-fe5b817c.js} +0 -0
- /package/build/{paths-d1a45b42.js → paths-ecacd73d.js} +0 -0
- /package/build/{theme-de064836.js → theme-3d64c4bb.js} +0 -0
- /package/build/{translationsContext-073aabc8.js → translationsContext-c38c15c8.js} +0 -0
- /package/build/{tslib.es6-a3b945ae.js → tslib.es6-e9ceb687.js} +0 -0
- /package/build/{useIsInit-24b144df.js → useIsInit-02f88206.js} +0 -0
- /package/build/{useOutsideClick-03608b1c.js → useOutsideClick-18d6bbd9.js} +0 -0
- /package/build/{useScrollbarSize-709e0dea.js → useScrollbarSize-d5111bfe.js} +0 -0
- /package/build/{useUniqueId-d3ce4826.js → useUniqueId-fa63e86f.js} +0 -0
- /package/build/{utils-c6a0ba99.js → utils-19821978.js} +0 -0
|
@@ -1,68 +1,64 @@
|
|
|
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,
|
|
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-0b997c18.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-bdadf1c8.js';
|
|
4
|
+
import { f as formatUrlWithPageParam, M as MediaQueries } from './utils-36a2e88c.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, c as Input$1, B as Button$1, S as Select, d as Checkbox$1, e as ChipButton } from './index-0d6c85cf.js';
|
|
6
|
+
import { T as Text$1 } from './index-7872ac55.js';
|
|
7
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-059585f8.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,
|
|
9
|
+
import { C as CommonGAssets } from './index-ff8c9d5e.js';
|
|
10
|
+
import { H as Heading } from './index-b0e0fbe0.js';
|
|
11
|
+
import { t as theme } from './theme-4a099635.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, A as API_DATE_FORMAT$1, R as RISK_SCREENER_NAME, a as RISK_SCREENER_SLUG, G as GA_TOKEN_COOKIE } from './index-604a2f74.js';
|
|
16
|
+
import { L as LOCALE } from './index-893ee6c2.js';
|
|
17
|
+
import './useMantineLocale-0143b7da.js';
|
|
18
|
+
import './translationsContext-d6309014.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-0ea9b42c.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-
|
|
27
|
-
import { keyframes
|
|
24
|
+
import { L as Logo } from './index-baff4b23.js';
|
|
25
|
+
import { B as Button } from './index-746c355d.js';
|
|
26
|
+
import { I as Input } from './index-f53544db.js';
|
|
27
|
+
import { keyframes } from '@emotion/react';
|
|
28
28
|
import parse from 'html-react-parser';
|
|
29
|
-
import { i as isProduction } from './isProduction-
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { format, isBefore, startOfMonth, addMonths, subMonths, getDaysInMonth, isToday, isSameDay, isWithinInterval, isAfter, isPast } from 'date-fns';
|
|
29
|
+
import { i as isProduction } from './isProduction-8b94b2e8.js';
|
|
30
|
+
import { u as useTranslations } from './useTranslations-1ed73aa5.js';
|
|
31
|
+
import { H as HealthToolFormWrapper, a as DueDateCalculatorType$1, G as GenderOptionControl, B as BabyGrowthForm, D as Drawer } from './index-663ce8ad.js';
|
|
32
|
+
import { useForm, isNotEmpty } from '@mantine/form';
|
|
34
33
|
import dayjs from 'dayjs';
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
34
|
+
import { D as DatePicker } from './index-251e9c68.js';
|
|
35
|
+
import { format, isBefore, startOfMonth, addMonths, subMonths, getDaysInMonth, isToday, isSameDay, isWithinInterval, isAfter, isPast } from 'date-fns';
|
|
36
|
+
import { f as formatUserProfileUrl } from './index-f8020b17.js';
|
|
37
|
+
import { u as useHealthToolsCache } from './useHealthToolCache-c3daa804.js';
|
|
38
|
+
import { s as setDefaultClass, H as HEALTH_TOOL_TYPE$1, b as callApiWithAuth, g as getApiPath, P as PATHS$2, T as TogetherComponentGlobalContext, d as getPremiumApiPath, e as getWebsiteUrlApi, f as getSsoApiPath } from './utils-b83d7305.js';
|
|
39
|
+
import { Controller, useForm as useForm$1 } from 'react-hook-form';
|
|
40
|
+
import './constants-b05bc757.js';
|
|
41
|
+
import './utils-9ad73105.js';
|
|
42
|
+
import './WhatsApp-9c19ab07.js';
|
|
43
|
+
import './index.styled-81557262.js';
|
|
44
|
+
import './index-aa5d9b56.js';
|
|
45
|
+
import { a as useOutsideClick } from './useOutsideClick-0b2f39ea.js';
|
|
46
46
|
import enUS from 'date-fns/locale/en-US';
|
|
47
47
|
import id from 'date-fns/locale/id';
|
|
48
48
|
import vi from 'date-fns/locale/vi';
|
|
49
49
|
import zhTW from 'date-fns/locale/zh-TW';
|
|
50
|
-
import {
|
|
50
|
+
import { D as Dropdown } from './index-576eefff.js';
|
|
51
|
+
import { g as getSocialList } from './getSocialList-332f3b07.js';
|
|
51
52
|
import { v4 } from 'uuid';
|
|
52
|
-
import './
|
|
53
|
-
import './
|
|
54
|
-
import './WhatsApp-9dbce6f2.js';
|
|
55
|
-
import './index.styled-e18670ac.js';
|
|
56
|
-
import './index-be8d21e4.js';
|
|
57
|
-
import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-e49e8c2d.js';
|
|
58
|
-
import { I as Icon } from './index-8a31b708.js';
|
|
53
|
+
import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-b4329fc1.js';
|
|
54
|
+
import { I as Icon } from './index-4d3ff457.js';
|
|
59
55
|
import { Close, Plus } from '@hhgtech/icons/core';
|
|
60
|
-
import { M as Modal } from './index-
|
|
56
|
+
import { M as Modal } from './index-988f9bc7.js';
|
|
61
57
|
import Cookies from 'js-cookie';
|
|
62
58
|
import flatten from 'lodash/flatten';
|
|
63
59
|
import uniqBy from 'lodash/uniqBy';
|
|
64
|
-
import { g as getCookie } from './cookieHelper-
|
|
65
|
-
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-
|
|
60
|
+
import { g as getCookie } from './cookieHelper-bc14538c.js';
|
|
61
|
+
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-8ec944ea.js';
|
|
66
62
|
|
|
67
63
|
var styles$7 = {"alert":"CHw-fZZ","content":"_03U6VRS","close":"EO828Vv"};
|
|
68
64
|
|
|
@@ -449,7 +445,7 @@ const _Horizontal = (_a) => {
|
|
|
449
445
|
|
|
450
446
|
// MyComponent.styles.ts
|
|
451
447
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
452
|
-
var useStyles$
|
|
448
|
+
var useStyles$6 = createStyles((_theme, {}) => ({
|
|
453
449
|
// add all styles as usual
|
|
454
450
|
root: {},
|
|
455
451
|
image: {},
|
|
@@ -469,7 +465,7 @@ const _Vertical = (_a) => {
|
|
|
469
465
|
// size = 'lg',
|
|
470
466
|
classNames, styles, unstyled, className } = _a, rest = __rest(_a, ["article", "author", "authorAvatar", "badge", "bannerImageWrapProps", "hideDescription", "isBookmarked", "onBookmark", "time", "tracking", "classNames", "styles", "unstyled", "className"]);
|
|
471
467
|
const { isMobile } = useScreenSize();
|
|
472
|
-
const { classes, cx } = useStyles$
|
|
468
|
+
const { classes, cx } = useStyles$6(
|
|
473
469
|
// First argument of useStyles is styles params
|
|
474
470
|
{},
|
|
475
471
|
// Second argument is responsible for styles api integration
|
|
@@ -1688,7 +1684,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
1688
1684
|
Body: Body$1
|
|
1689
1685
|
});
|
|
1690
1686
|
|
|
1691
|
-
var useStyles$
|
|
1687
|
+
var useStyles$5 = createStyles((theme) => {
|
|
1692
1688
|
const itemLabelRef = getStylesRef('itemLabel');
|
|
1693
1689
|
return {
|
|
1694
1690
|
root: {
|
|
@@ -1740,7 +1736,7 @@ var useStyles$6 = createStyles((theme) => {
|
|
|
1740
1736
|
* @deprecated Consider to use mantine
|
|
1741
1737
|
*/
|
|
1742
1738
|
const Tabs = ({ style, initialTab, tabContent, onChange, className, dataEventCategory, dataEventAction, dataEventLabel, id, styles, }) => {
|
|
1743
|
-
const { classes, cx, theme } = useStyles$
|
|
1739
|
+
const { classes, cx, theme } = useStyles$5(undefined, { name: 'Tabs', styles });
|
|
1744
1740
|
const [activeTab, setActiveTab] = useState(initialTab || 0);
|
|
1745
1741
|
useEffect(() => {
|
|
1746
1742
|
setActiveTab(initialTab);
|
|
@@ -3068,8 +3064,8 @@ const ToolsBannerCard = ({ className, heading, bannerColor, medicalReview = {
|
|
|
3068
3064
|
React__default.createElement(Heading, { tag: "h5", as: headingAs }, heading),
|
|
3069
3065
|
medicalReview && (React__default.createElement(Text, { size: "n1", as: "div" }, medicalReviewEle))),
|
|
3070
3066
|
isMarryBaby ? (React__default.createElement(StyledIcon, null, icon)) : (React__default.createElement(Flex, { justify: 'center', align: 'center', sx: (theme) => ({
|
|
3071
|
-
width: rem(
|
|
3072
|
-
height: rem(
|
|
3067
|
+
width: rem(84),
|
|
3068
|
+
height: rem(84),
|
|
3073
3069
|
borderRadius: '50%',
|
|
3074
3070
|
backgroundColor: '#fff',
|
|
3075
3071
|
flexShrink: 0,
|
|
@@ -3088,423 +3084,338 @@ const ToolsBannerCard = ({ className, heading, bannerColor, medicalReview = {
|
|
|
3088
3084
|
}) }, icon))))));
|
|
3089
3085
|
};
|
|
3090
3086
|
|
|
3091
|
-
const
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
${(props) => props.groupedWithLabel &&
|
|
3108
|
-
css `
|
|
3109
|
-
& > div:first-child {
|
|
3110
|
-
color: ${theme.mbColors.midGray};
|
|
3111
|
-
font-size: 12px;
|
|
3112
|
-
}
|
|
3113
|
-
`}
|
|
3087
|
+
const ConceptionDate = (_a) => {
|
|
3088
|
+
var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
|
|
3089
|
+
const props = Object.assign({ width: size, height: size }, rest);
|
|
3090
|
+
return isMarryBaby ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3091
|
+
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.5 27.1333C17.7981 27.1333 19.0961 26.9841 20.3682 26.6857C23.751 25.8922 26.3923 23.2509 27.1858 19.8681C27.7826 17.3239 27.7826 14.676 27.1858 12.1318C26.3923 8.74902 23.751 6.10773 20.3682 5.31424C17.824 4.71744 15.1761 4.71744 12.6319 5.31424C9.24909 6.10773 6.60779 8.74902 5.8143 12.1318C5.5159 13.4039 5.36669 14.702 5.3667 16C5.3667 16.4787 4.97868 16.8667 4.50003 16.8667C4.02139 16.8667 3.63336 16.4787 3.63336 16C3.63336 14.5691 3.79783 13.1383 4.12677 11.736C5.0706 7.71226 8.21233 4.57054 12.236 3.62671C15.0406 2.96884 17.9594 2.96884 20.764 3.62671C24.7877 4.57054 27.9295 7.71226 28.8733 11.736C29.5312 14.5406 29.5312 17.4594 28.8733 20.264C27.9295 24.2877 24.7877 27.4294 20.764 28.3732C19.3617 28.7022 17.9309 28.8666 16.5 28.8666C16.0214 28.8666 15.6334 28.4786 15.6334 28C15.6334 27.5213 16.0214 27.1333 16.5 27.1333Z", fill: "#3E3F58" }),
|
|
3092
|
+
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.6333 16C11.6333 13.3122 13.8122 11.1334 16.5 11.1334C19.1878 11.1334 21.3666 13.3122 21.3666 16C21.3666 18.6878 19.1878 20.8667 16.5 20.8667C13.8122 20.8667 11.6333 18.6878 11.6333 16ZM16.5 12.8667C14.7695 12.8667 13.3666 14.2695 13.3666 16C13.3666 17.7305 14.7695 19.1334 16.5 19.1334C18.2305 19.1334 19.6333 17.7305 19.6333 16C19.6333 14.2695 18.2305 12.8667 16.5 12.8667Z", fill: "#E85388" }),
|
|
3093
|
+
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.8335 25.3333C11.3063 25.3333 12.5002 24.1394 12.5002 22.6667C12.5002 21.1939 11.3063 20 9.8335 20C8.36074 20 7.16683 21.1939 7.16683 22.6667C7.16683 23.1612 7.30147 23.6244 7.5361 24.0214L7.45222 24.1053C6.84272 24.7148 6.50031 25.5414 6.50031 26.4034C6.50031 27.1294 6.09013 27.7931 5.44079 28.1177L4.20217 28.737C3.87285 28.9017 3.73936 29.3022 3.90402 29.6315C4.06868 29.9608 4.46913 30.0943 4.79845 29.9296L6.03707 29.3103C7.13813 28.7598 7.83364 27.6344 7.83364 26.4034C7.83364 25.8951 8.03558 25.4075 8.39503 25.0481L8.47894 24.9642C8.87593 25.1987 9.33899 25.3333 9.8335 25.3333Z", fill: "#3E3F58" }))) : (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3094
|
+
React__default.createElement("circle", { cx: "12", cy: "9", r: "9", fill: "#91CAFF" }),
|
|
3095
|
+
React__default.createElement("circle", { cx: "11.9998", cy: "9.00005", r: "7.2", fill: "#2D87F3" }),
|
|
3096
|
+
React__default.createElement("path", { d: "M2.38545 16.2676C2.21688 16.2676 2.07389 16.138 2.06016 15.9671C2.04565 15.7872 2.17971 15.6296 2.35957 15.6152C2.45675 15.607 4.75195 15.3916 4.70769 13.4751C4.68957 12.6916 4.90708 12.0649 5.35412 11.6126C6.05287 10.9056 7.05177 10.9083 7.0944 10.9093C7.27482 10.9113 7.41944 11.0592 7.41738 11.2397C7.41532 11.4188 7.26945 11.5627 7.09075 11.5627C7.08985 11.5627 7.08895 11.5627 7.08805 11.5627C7.07388 11.5627 6.31301 11.5681 5.81498 12.076C5.49994 12.3973 5.34721 12.8629 5.36099 13.4601C5.38541 14.5175 4.87205 15.3412 3.87642 15.842C3.15903 16.2029 2.4422 16.2641 2.41207 16.2665C2.40314 16.2672 2.39425 16.2676 2.38545 16.2676Z", fill: "#D2D6DC" }),
|
|
3097
|
+
React__default.createElement("path", { d: "M1.00099 23.6985C0.987043 23.5186 1.12157 23.3615 1.30148 23.3475C1.39819 23.3396 3.68287 23.1323 3.6329 21.2243C3.61242 20.4424 3.8277 19.8176 4.27268 19.3674C4.96813 18.6638 5.96552 18.6693 6.00746 18.6705C6.18788 18.6731 6.33203 18.8215 6.32941 19.0019C6.32684 19.182 6.18063 19.3273 5.99913 19.3239C5.99909 19.3239 5.99901 19.3239 5.99892 19.3239C5.979 19.3239 5.22556 19.3289 4.73358 19.8307C4.42112 20.1493 4.27057 20.6124 4.28615 21.2072C4.31376 22.2625 3.80383 23.083 2.81146 23.58C2.09691 23.9377 1.38201 23.9966 1.35196 23.999C1.17111 24.0129 1.01486 23.8776 1.00099 23.6985Z", fill: "#D2D6DC" }),
|
|
3098
|
+
React__default.createElement("path", { d: "M11.5451 6.7139C10.7962 5.96501 8.93796 6.60903 7.94739 7.59956C7.4039 8.14305 7.10028 8.81271 7.06006 9.43029V9.59646L8.58738 11.143L8.82863 11.1989C9.44621 11.1587 10.1159 10.8551 10.6594 10.3116C11.6499 9.321 12.294 7.4628 11.5451 6.7139Z", fill: "#E3F2FF" }),
|
|
3099
|
+
React__default.createElement("path", { d: "M7.06034 9.43042L6.67147 10.4309C6.56604 10.702 6.63082 11.0099 6.83652 11.2156L7.04381 11.4229C7.14802 11.5271 7.27846 11.5948 7.41706 11.6228C7.55198 11.65 7.69458 11.6398 7.82826 11.5879L8.8287 11.199L7.06034 9.43042Z", fill: "#91CAFF" }),
|
|
3100
|
+
React__default.createElement("path", { d: "M10.7978 15.144C10.7633 14.8665 10.6648 14.6249 10.4865 14.4466C9.73757 13.6977 7.87937 14.3417 6.8888 15.3322C6.34531 15.8757 6.04169 16.5454 6.00146 17.163V17.3291L7.52904 18.8756L7.77029 18.9315C8.38787 18.8913 9.05752 18.5877 9.60101 18.0442C10.3555 17.2896 10.908 16.0316 10.7978 15.144Z", fill: "#E3F2FF" }),
|
|
3101
|
+
React__default.createElement("path", { d: "M6.00125 17.1628L5.61238 18.1633C5.50696 18.4345 5.57173 18.7423 5.77744 18.948L5.98473 19.1553C6.08894 19.2595 6.21938 19.3273 6.35798 19.3552C6.4929 19.3824 6.6355 19.3722 6.76917 19.3203L7.76962 18.9314L6.00125 17.1628Z", fill: "#91CAFF" })));
|
|
3102
|
+
};
|
|
3114
3103
|
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3104
|
+
const IVF = (_a) => {
|
|
3105
|
+
var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
|
|
3106
|
+
const props = Object.assign({ width: size, height: size }, rest);
|
|
3107
|
+
return isMarryBaby ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3108
|
+
React__default.createElement("g", { clipPath: "url(#clip0_1964_4257)" },
|
|
3109
|
+
React__default.createElement("path", { d: "M15.804 28.2784C14.0306 28.2863 12.5961 26.8463 12.6234 25.07L12.7524 4.76372L19.1575 4.77241L19.0285 25.0787C19.0173 26.8359 17.5774 28.2704 15.804 28.2784Z", fill: "white" }),
|
|
3110
|
+
React__default.createElement("path", { d: "M12.7202 10.2661L12.6038 25.0539C12.5927 26.8112 14.0272 28.2512 15.7844 28.2623C17.5578 28.2544 18.9978 26.8199 19.009 25.0626L19.009 10.2661", fill: "#FFEAF1" }),
|
|
3111
|
+
React__default.createElement("ellipse", { cx: "14.6618", cy: "19.0267", rx: "1.01227", ry: "1.01227", transform: "rotate(-49.8303 14.6618 19.0267)", fill: "#3E3F58" }),
|
|
3112
|
+
React__default.createElement("circle", { cx: "16.3264", cy: "13.4263", r: "1.01227", transform: "rotate(-49.8304 16.3264 13.4263)", fill: "#3E3F58" }),
|
|
3113
|
+
React__default.createElement("path", { d: "M14.6624 19.0264L14.7487 20.0481C14.7706 20.3073 14.8946 20.5471 15.0933 20.7149V20.7149C15.3772 20.9545 15.5013 21.3339 15.4139 21.6949L15.2902 22.2058", stroke: "#3E3F58", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3114
|
+
React__default.createElement("path", { d: "M16.3264 13.426L16.4128 14.4477C16.4347 14.7069 16.5586 14.9467 16.7574 15.1145V15.1145C17.0412 15.3541 17.1653 15.7335 17.0779 16.0945L16.9543 16.6054", stroke: "#3E3F58", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3115
|
+
React__default.createElement("path", { d: "M18.8331 27.5966C18.1075 28.4563 17.0188 29.0096 15.8121 29.0051C14.7653 29.0048 13.7725 28.592 13.0185 27.8574C12.2806 27.1037 11.8772 26.1088 11.8775 25.0621L11.9857 4.50923C11.9852 4.0835 12.3298 3.75278 12.7394 3.77139C13.1651 3.7709 13.4959 4.1155 13.4772 4.52511L13.3691 25.078C13.3713 25.7342 13.6171 26.3343 14.0655 26.8109C14.5299 27.2684 15.1365 27.5187 15.7927 27.5165C17.1404 27.5091 18.2548 26.4214 18.2635 25.0546L18.3717 4.50179C18.3712 4.07606 18.7158 3.74535 19.1254 3.76396C19.5512 3.76346 19.8819 4.10807 19.8633 4.51768L19.7551 25.0705C19.765 26.0277 19.4137 26.9089 18.8331 27.5966Z", fill: "#202135" }),
|
|
3116
|
+
React__default.createElement("path", { d: "M20.7531 4.97475C20.608 5.14669 20.4026 5.23501 20.1721 5.23675L11.4592 5.21019C11.0334 5.21068 10.7027 4.86608 10.7213 4.45647C10.7208 4.03073 11.0654 3.70002 11.475 3.71863L20.188 3.74519C20.6137 3.74469 20.9444 4.0893 20.9258 4.4989C20.9407 4.67505 20.866 4.84103 20.7531 4.97475Z", fill: "#202135" })),
|
|
3117
|
+
React__default.createElement("defs", null,
|
|
3118
|
+
React__default.createElement("clipPath", { id: "clip0_1964_4257" },
|
|
3119
|
+
React__default.createElement("rect", { width: "32", height: "32", fill: "white", transform: "translate(0.5)" }))))) : (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3120
|
+
React__default.createElement("path", { d: "M13.0643 5.79419C13.9204 4.07823 15.0484 2.51196 16.4044 1.15601L20.6649 4.03713C19.3441 5.35823 18.2395 6.87888 17.3918 8.54367L16.3123 10.6633C16.2496 10.7867 16.2278 10.9268 16.25 11.0634C16.2722 11.1999 16.3373 11.3259 16.4357 11.4231C17.7354 12.7124 18.5471 14.413 18.7321 16.2344C18.759 16.499 17.5907 22.231 9.35566 21.8066C7.76866 21.7248 3.63212 20.538 3.2358 18.9467C3.06028 18.2403 2.9821 17.5131 3.00343 16.7855C3.12655 12.6207 6.72084 9.1378 10.8875 9.13895C10.9199 9.13895 10.9523 9.13916 10.9846 9.13959C11.107 9.14108 11.2273 9.10805 11.3317 9.04427C11.4361 8.9805 11.5205 8.88857 11.575 8.77903L13.0643 5.79419Z", fill: "#BCDEFF" }),
|
|
3121
|
+
React__default.createElement("path", { d: "M20.7506 3.23392L16.6954 0.495902C16.2898 0.222023 15.7389 0.32883 15.465 0.734461L15.465 0.734509C15.1911 1.14014 15.2979 1.69099 15.7036 1.96487L19.7587 4.70289C20.1644 4.97677 20.7152 4.86996 20.9891 4.46433L20.9891 4.46428C21.263 4.05865 21.1562 3.5078 20.7506 3.23392Z", fill: "#E3F2FF" }),
|
|
3122
|
+
React__default.createElement("path", { d: "M18.7713 17.0243C18.7729 18.1506 18.5326 19.2641 18.0668 20.2895C17.6009 21.3149 16.9203 22.2283 16.071 22.968C15.3028 23.6355 14.3188 24.0022 13.301 24H8.47346C7.45615 24.0019 6.47248 23.6358 5.70406 22.9691C4.49011 21.9116 3.62881 20.5079 3.23584 18.9466C4.16013 19.4148 5.42706 19.7523 7.15757 19.7523C8.30012 19.7523 9.16854 19.4062 9.93273 18.9178C10.1493 18.779 10.3577 18.6287 10.5616 18.4721C12.5346 16.9558 14.0865 14.8043 18.7322 16.2342C18.7583 16.494 18.7713 16.7573 18.7713 17.0243Z", fill: "#2D87F3" }),
|
|
3123
|
+
React__default.createElement("path", { d: "M11.8579 15.4993C10.0789 15.8485 8.76231 13.8918 9.72398 12.379C9.91415 12.0799 10.1801 11.8313 10.498 11.6629C10.7259 11.5422 10.9804 11.4625 11.2528 11.4349C11.4544 11.4146 11.652 11.424 11.8414 11.4597C11.9436 11.479 12.0464 11.4361 12.1091 11.3531C12.3908 10.9798 12.8464 10.7795 13.3088 10.7143C13.5329 10.6828 13.6826 10.4737 13.6879 10.2734C13.709 9.47973 14.3454 8.96277 14.9758 9.03966C15.1593 9.06204 15.1995 9.31062 15.0339 9.39073C15.0302 9.39252 15.0262 9.39441 15.0221 9.39642C14.9573 9.42744 14.8374 9.48494 14.7427 9.59188C14.5292 9.8547 14.5548 9.99906 14.5891 10.1922C14.6186 10.3586 14.6546 10.5613 14.5493 10.9073C14.454 11.1895 14.2831 11.4265 14.0448 11.6076C13.7899 11.7963 13.6003 11.8374 13.4528 11.8695C13.3654 11.8885 13.2928 11.9042 13.2301 11.9456C13.0966 12.0337 13.0787 12.2046 13.1605 12.3247C13.3443 12.5945 13.4663 12.912 13.504 13.2589C13.6194 14.3211 12.8939 15.2958 11.8579 15.4993Z", fill: "white" }),
|
|
3124
|
+
React__default.createElement("ellipse", { cx: "10", cy: "20.5", rx: "3", ry: "2.5", fill: "#FF6F4D" })));
|
|
3125
|
+
};
|
|
3119
3126
|
|
|
3120
|
-
const
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3127
|
+
const LastPeriod = (_a) => {
|
|
3128
|
+
var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
|
|
3129
|
+
const props = Object.assign({ width: size, height: size }, rest);
|
|
3130
|
+
return isMarryBaby ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3131
|
+
React__default.createElement("path", { d: "M26.9536 27.3696H8.18104C6.89043 27.3696 5.83447 26.3137 5.83447 25.0231V8.59706C5.83447 7.30645 6.89043 6.25049 8.18104 6.25049L19.9843 8.59706L26.9536 6.25049C28.2442 6.25049 29.3002 7.30645 29.3002 8.59706V25.0231C29.3002 26.3137 28.2442 27.3696 26.9536 27.3696Z", fill: "#E0E9FB" }),
|
|
3132
|
+
React__default.createElement("path", { d: "M22.7061 22.6765H6.25666C4.91911 22.6765 4.02742 21.3389 4.5202 20.0953L5.83428 16.8101V8.59706C5.83428 7.30645 6.89023 6.25049 8.18085 6.25049H24.6069C25.8975 6.25049 26.9534 7.30645 26.9534 8.59706V16.8101L25.3108 20.9166C24.8884 21.9725 23.856 22.6765 22.7061 22.6765Z", fill: "#FFE9F1" }),
|
|
3133
|
+
React__default.createElement("path", { d: "M24.6069 28.0736H8.18091C6.49138 28.0736 5.13037 26.7126 5.13037 25.0231C5.13037 24.6242 5.43543 24.3191 5.83434 24.3191C6.23326 24.3191 6.53831 24.6242 6.53831 25.0231C6.53831 25.9382 7.26575 26.6657 8.18091 26.6657H24.6069C25.5221 26.6657 26.2495 25.9382 26.2495 25.0231V22.6765C26.2495 22.2776 26.5546 21.9725 26.9535 21.9725C27.3524 21.9725 27.6575 22.2776 27.6575 22.6765V25.0231C27.6575 26.7126 26.2964 28.0736 24.6069 28.0736Z", fill: "#202135" }),
|
|
3134
|
+
React__default.createElement("path", { d: "M24.607 5.54652H24.1377V5.07721C24.1377 4.04472 23.2929 3.19995 22.2604 3.19995C21.2279 3.19995 20.3831 4.04472 20.3831 5.07721V7.42378C20.3831 8.45627 21.2279 9.30104 22.2604 9.30104C22.6593 9.30104 22.9644 8.99598 22.9644 8.59707C22.9644 8.19815 22.6593 7.8931 22.2604 7.8931C22.0023 7.8931 21.7911 7.6819 21.7911 7.42378V5.07721C21.7911 4.81909 22.0023 4.60789 22.2604 4.60789C22.5185 4.60789 22.7297 4.81909 22.7297 5.07721V6.25049C22.7297 6.64941 23.0348 6.95447 23.4337 6.95447H24.607C25.5221 6.95447 26.2496 7.6819 26.2496 8.59707V15.0032C26.2496 16.1061 26.0384 17.209 25.6395 18.218L24.6774 20.635C24.3488 21.4328 23.5745 21.9725 22.7062 21.9725H6.25677C5.85786 21.9725 5.50587 21.7848 5.29468 21.4563C5.08349 21.1278 5.03656 20.7288 5.17735 20.3534L5.83439 18.7343C6.30371 17.5375 6.56183 16.2704 6.56183 14.9797V8.59707C6.56183 7.6819 7.28927 6.95447 8.20443 6.95447H9.37771C9.77663 6.95447 10.0817 6.64941 10.0817 6.25049C10.0817 5.85158 9.77663 5.54652 9.37771 5.54652H8.20443C6.5149 5.54652 5.15389 6.90753 5.15389 8.59707V15.0032C5.15389 16.1061 4.94269 17.209 4.54378 18.218L3.88674 19.8371C3.55822 20.635 3.67554 21.5267 4.14486 22.2541C4.61417 22.9581 5.43547 23.3805 6.28024 23.3805H22.7297C24.1846 23.3805 25.4517 22.5122 25.9914 21.1747L26.9535 18.7577C27.4229 17.561 27.681 16.2938 27.681 15.0032V8.59707C27.6575 6.90753 26.2965 5.54652 24.607 5.54652Z", fill: "#202135" }),
|
|
3135
|
+
React__default.createElement("path", { d: "M12.8743 9.30104C13.2732 9.30104 13.5783 8.99598 13.5783 8.59707C13.5783 8.19815 13.2732 7.8931 12.8743 7.8931C12.6162 7.8931 12.405 7.6819 12.405 7.42378V5.07721C12.405 4.81909 12.6162 4.60789 12.8743 4.60789C13.1325 4.60789 13.3436 4.81909 13.3436 5.07721V6.25049C13.3436 6.64941 13.6487 6.95447 14.0476 6.95447H18.7408C19.1397 6.95447 19.4447 6.64941 19.4447 6.25049C19.4447 5.85158 19.1397 5.54652 18.7408 5.54652H14.7516V5.07721C14.7516 4.04472 13.9068 3.19995 12.8743 3.19995C11.8418 3.19995 10.9971 4.04472 10.9971 5.07721V7.42378C10.9971 8.45627 11.8418 9.30104 12.8743 9.30104Z", fill: "#202135" }),
|
|
3136
|
+
React__default.createElement("path", { d: "M21.0873 16.8101C20.4303 16.8101 19.9141 16.2938 19.9141 15.6368C19.9141 14.9797 20.4303 14.4635 21.0873 14.4635C21.7444 14.4635 22.2606 14.9797 22.2606 15.6368C22.2606 16.2938 21.7444 16.8101 21.0873 16.8101Z", fill: "#E85388" }),
|
|
3137
|
+
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7009 13.2902C11.0438 13.2902 10.5276 12.7739 10.5276 12.1169C10.5276 11.4598 11.0438 10.9436 11.7009 10.9436C12.3579 10.9436 12.8742 11.4598 12.8742 12.1169C12.8742 12.7739 12.3579 13.2902 11.7009 13.2902ZM16.394 13.2902C15.737 13.2902 15.2207 12.7739 15.2207 12.1169C15.2207 11.4598 15.737 10.9436 16.394 10.9436C17.0511 10.9436 17.5673 11.4598 17.5673 12.1169C17.5673 12.7739 17.0511 13.2902 16.394 13.2902ZM21.0872 13.2902C20.4301 13.2902 19.9139 12.7739 19.9139 12.1169C19.9139 11.4598 20.4301 10.9436 21.0872 10.9436C21.7442 10.9436 22.2605 11.4598 22.2605 12.1169C22.2605 12.7739 21.7442 13.2902 21.0872 13.2902ZM11.7009 16.81C11.0438 16.81 10.5276 16.2938 10.5276 15.6367C10.5276 14.9797 11.0438 14.4635 11.7009 14.4635C12.3579 14.4635 12.8742 14.9797 12.8742 15.6367C12.8742 16.2938 12.3579 16.81 11.7009 16.81ZM16.394 16.81C15.737 16.81 15.2207 16.2938 15.2207 15.6367C15.2207 14.9797 15.737 14.4635 16.394 14.4635C17.0511 14.4635 17.5673 14.9797 17.5673 15.6367C17.5673 16.2938 17.0511 16.81 16.394 16.81ZM20.1721 20.2126C19.5151 20.2126 19.0927 19.7432 19.21 19.1566C19.3274 18.57 19.9375 18.1006 20.5945 18.1006C21.2515 18.1006 21.6739 18.57 21.5566 19.1566C21.4393 19.7432 20.8292 20.2126 20.1721 20.2126ZM15.479 20.2126C14.8219 20.2126 14.3996 19.7432 14.5169 19.1566C14.6342 18.57 15.2443 18.1006 15.9014 18.1006C16.5584 18.1006 16.9808 18.57 16.8635 19.1566C16.7461 19.7432 16.136 20.2126 15.479 20.2126ZM9.82374 19.1566C9.70641 19.7432 10.1288 20.2126 10.7858 20.2126C11.4429 20.2126 12.053 19.7432 12.1703 19.1566C12.2876 18.57 11.8653 18.1006 11.2082 18.1006C10.5512 18.1006 9.94107 18.57 9.82374 19.1566Z", fill: "#9898A9" }))) : (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
3138
|
+
React__default.createElement("rect", { y: "2.23462", width: "22.0504", height: "17.1503", rx: "2", fill: "#E3F2FF" }),
|
|
3139
|
+
React__default.createElement("path", { d: "M0 4.23462C0 3.13005 0.895431 2.23462 2 2.23462H20.0504C21.155 2.23462 22.0504 3.13005 22.0504 4.23462V5.90969H0V4.23462Z", fill: "#2D87F3" }),
|
|
3140
|
+
React__default.createElement("path", { d: "M17.1351 1H17.0853C16.532 1 16.0835 1.44854 16.0835 2.00185V3.63855C16.0835 4.19186 16.532 4.6404 17.0853 4.6404H17.1351C17.6884 4.6404 18.1369 4.19186 18.1369 3.63855V2.00185C18.1369 1.44854 17.6884 1 17.1351 1Z", fill: "#284A75" }),
|
|
3141
|
+
React__default.createElement("path", { d: "M4.2751 4.64038H4.32481C4.87812 4.64038 5.32666 4.19184 5.32666 3.63853V2.00183C5.32666 1.44853 4.87812 0.99998 4.32481 0.99998H4.2751C3.72179 0.99998 3.27325 1.44853 3.27325 2.00183V3.63853C3.27325 4.19184 3.72179 4.64038 4.2751 4.64038Z", fill: "#284A75" }),
|
|
3142
|
+
React__default.createElement("path", { d: "M4.7172 9.75171H3.95994C3.61369 9.75171 3.33301 10.0324 3.33301 10.3786V11.2727C3.33301 11.6189 3.61369 11.8996 3.95994 11.8996H4.7172C5.06344 11.8996 5.34413 11.6189 5.34413 11.2727V10.3786C5.34413 10.0324 5.06344 9.75171 4.7172 9.75171Z", fill: "#2B62CD" }),
|
|
3143
|
+
React__default.createElement("path", { d: "M8.88663 9.75171H8.12937C7.78313 9.75171 7.50244 10.0324 7.50244 10.3786V11.2727C7.50244 11.6189 7.78313 11.8996 8.12937 11.8996H8.88663C9.23288 11.8996 9.51356 11.6189 9.51356 11.2727V10.3786C9.51356 10.0324 9.23288 9.75171 8.88663 9.75171Z", fill: "#2B62CD" }),
|
|
3144
|
+
React__default.createElement("path", { d: "M13.0551 9.75171H12.2978C11.9516 9.75171 11.6709 10.0324 11.6709 10.3786V11.2727C11.6709 11.6189 11.9516 11.8996 12.2978 11.8996H13.0551C13.4013 11.8996 13.682 11.6189 13.682 11.2727V10.3786C13.682 10.0324 13.4013 9.75171 13.0551 9.75171Z", fill: "#2B62CD" }),
|
|
3145
|
+
React__default.createElement("path", { d: "M17.4887 9.75171H16.7314C16.3852 9.75171 16.1045 10.0324 16.1045 10.3786V11.2727C16.1045 11.6189 16.3852 11.8996 16.7314 11.8996H17.4887C17.8349 11.8996 18.1156 11.6189 18.1156 11.2727V10.3786C18.1156 10.0324 17.8349 9.75171 17.4887 9.75171Z", fill: "#2B62CD" }),
|
|
3146
|
+
React__default.createElement("path", { d: "M4.67521 13.635H3.91795C3.5717 13.635 3.29102 13.9157 3.29102 14.2619V15.156C3.29102 15.5022 3.5717 15.7829 3.91795 15.7829H4.67521C5.02145 15.7829 5.30214 15.5022 5.30214 15.156V14.2619C5.30214 13.9157 5.02145 13.635 4.67521 13.635Z", fill: "#2B62CD" }),
|
|
3147
|
+
React__default.createElement("path", { d: "M8.84415 13.635H8.08689C7.74065 13.635 7.45996 13.9157 7.45996 14.2619V15.156C7.45996 15.5022 7.74065 15.7829 8.08689 15.7829H8.84415C9.1904 15.7829 9.47108 15.5022 9.47108 15.156V14.2619C9.47108 13.9157 9.1904 13.635 8.84415 13.635Z", fill: "#2B62CD" }),
|
|
3148
|
+
React__default.createElement("path", { d: "M13.0131 13.635H12.2558C11.9096 13.635 11.6289 13.9157 11.6289 14.2619V15.156C11.6289 15.5022 11.9096 15.7829 12.2558 15.7829H13.0131C13.3593 15.7829 13.64 15.5022 13.64 15.156V14.2619C13.64 13.9157 13.3593 13.635 13.0131 13.635Z", fill: "#2B62CD" }),
|
|
3149
|
+
React__default.createElement("path", { d: "M17.4472 13.635H16.6899C16.3437 13.635 16.063 13.9157 16.063 14.2619V15.156C16.063 15.5022 16.3437 15.7829 16.6899 15.7829H17.4472C17.7934 15.7829 18.0741 15.5022 18.0741 15.156V14.2619C18.0741 13.9157 17.7934 13.635 17.4472 13.635Z", fill: "#2B62CD" }),
|
|
3150
|
+
React__default.createElement("path", { d: "M20.3599 13.8356C19.6257 13.7546 19.4799 15.2799 18.4553 16.4962C17.8548 17.2093 17.0672 18.4098 16.9656 19.4741C16.8683 20.4944 17.1508 22.9817 20.1944 23.1776C20.5411 23.1981 20.889 23.1859 21.2335 23.1414C24.2599 22.5785 24.1522 19.7982 23.8637 18.815C23.5624 17.7891 22.5906 16.7217 21.9843 16.1555C20.8625 15.1096 21.0477 13.9115 20.3599 13.8356Z", fill: "#FF6F4D" }),
|
|
3151
|
+
React__default.createElement("path", { d: "M22.1395 17.3998C22.1973 17.6137 21.9178 17.7927 21.7534 17.4586C21.6138 17.1746 21.6738 17.0792 21.7817 17.0551C21.896 17.0293 22.0915 17.2227 22.1395 17.3998Z", fill: "white" })));
|
|
3152
|
+
};
|
|
3129
3153
|
|
|
3130
|
-
|
|
3131
|
-
font-size: 14px;
|
|
3132
|
-
}
|
|
3133
|
-
${MediaQueries.tdUp} {
|
|
3134
|
-
font-size: 16px;
|
|
3135
|
-
&[data-is-side='true'] {
|
|
3136
|
-
font-size: 14px;
|
|
3137
|
-
}
|
|
3138
|
-
}
|
|
3139
|
-
color: ${theme.colors.gray800};
|
|
3140
|
-
> div {
|
|
3141
|
-
white-space: nowrap;
|
|
3142
|
-
overflow: hidden;
|
|
3143
|
-
text-overflow: ellipsis;
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
display: flex;
|
|
3147
|
-
width: 100%;
|
|
3148
|
-
justify-content: space-between;
|
|
3149
|
-
`;
|
|
3150
|
-
const StyledLastPeriodFormContainer = styled(StyledMethodContainer) `
|
|
3151
|
-
.due-date-input {
|
|
3152
|
-
width: 100%;
|
|
3153
|
-
min-width: unset;
|
|
3154
|
-
max-width: unset;
|
|
3155
|
-
color: ${theme.colors.gray800};
|
|
3156
|
-
}
|
|
3157
|
-
.due-date-calculate-button {
|
|
3158
|
-
margin-right: auto;
|
|
3159
|
-
margin-left: auto;
|
|
3160
|
-
}
|
|
3161
|
-
input {
|
|
3162
|
-
&[data-is-side='true'] {
|
|
3163
|
-
${MediaQueries.tdUp} {
|
|
3164
|
-
font-size: 14px;
|
|
3165
|
-
}
|
|
3166
|
-
}
|
|
3167
|
-
${MediaQueries.mbDown} {
|
|
3168
|
-
font-size: 14px;
|
|
3169
|
-
}
|
|
3170
|
-
${MediaQueries.tdUp} {
|
|
3171
|
-
font-size: 16px;
|
|
3172
|
-
}
|
|
3173
|
-
}
|
|
3174
|
-
`;
|
|
3175
|
-
styled.div `
|
|
3176
|
-
display: flex;
|
|
3177
|
-
align-items: right;
|
|
3154
|
+
const DueDateFormContext = createContext({});
|
|
3178
3155
|
|
|
3179
|
-
|
|
3180
|
-
display: inline-block;
|
|
3181
|
-
border-bottom: solid 1px ${theme.colors.primaryBase};
|
|
3182
|
-
margin-bottom: 24px;
|
|
3183
|
-
margin-left: auto;
|
|
3184
|
-
color: ${theme.colors.primaryBase};
|
|
3185
|
-
cursor: pointer;
|
|
3186
|
-
font-size: 11px;
|
|
3187
|
-
line-height: 16px;
|
|
3188
|
-
text-align: right;
|
|
3189
|
-
}
|
|
3190
|
-
`;
|
|
3191
|
-
const StyledImageIcon = styled.img `
|
|
3192
|
-
img& {
|
|
3193
|
-
width: 16px;
|
|
3194
|
-
height: 16px;
|
|
3195
|
-
}
|
|
3196
|
-
`;
|
|
3197
|
-
styled(StyledImageIcon) `
|
|
3198
|
-
margin-right: 4px;
|
|
3199
|
-
`;
|
|
3156
|
+
const ConceptionFormContext = createContext({});
|
|
3200
3157
|
|
|
3201
|
-
const
|
|
3158
|
+
const DefaultLayout$4 = () => {
|
|
3202
3159
|
const { t } = useTranslations();
|
|
3203
|
-
const
|
|
3160
|
+
const { form } = useContext(ConceptionFormContext);
|
|
3204
3161
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3205
|
-
React__default.createElement(
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
before: new Date(new Date().getTime() - 40 * 7 * 24 * 3600000),
|
|
3209
|
-
}, customInput: (props) => {
|
|
3210
|
-
return (React__default.createElement(Input, Object.assign({ className: "due-date-input", name: "birthday", size: "md" }, props, { value: conceptionDate &&
|
|
3211
|
-
dayjs(conceptionDate).format(DUE_DATE_FORMAT) })));
|
|
3212
|
-
} }), actionIcon: React__default.createElement(CalendarMB, { size: 32 }) })) : (React__default.createElement(Input, { label: React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray600, style: { marginBottom: '9px', flex: '1' } }, t('dueDatePage.conceptionDate')), value: DateToInputValue(conceptionDate), name: "date", size: "md",
|
|
3213
|
-
// type={'date' as 'text'}
|
|
3214
|
-
className: "due-date-input",
|
|
3215
|
-
// onChange={(value) => {
|
|
3216
|
-
// setConceptionDate(new Date(value))
|
|
3217
|
-
// }}
|
|
3218
|
-
CustomInput: React__default.createElement(DatePicker, { customInput: (props) => (React__default.createElement("input", Object.assign({ type: "date", className: "due-date-input" }, props, { value: DateToInputValue(conceptionDate) }))), disabledDays: {
|
|
3219
|
-
before: new Date(new Date().getTime() - 40 * 7 * 24 * 3600000),
|
|
3220
|
-
}, locale: locale, pickedDate: conceptionDate, displayDateFormat: DATE_FORMAT, onChange: (date) => {
|
|
3221
|
-
setConceptionDate(date);
|
|
3222
|
-
}, placeholder: "placeholder" }) }))),
|
|
3223
|
-
React__default.createElement(Button$1, { className: "due-date-calculate-button", size: "lg", variant: siteType === 'marryBaby' ? 'secondary' : 'primary', dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: pageUrl, onClick: () => {
|
|
3224
|
-
onClick(getDueDateConception(conceptionDate), `${QUERY_HEALTH_TOOL.type}=1&sd=${format(conceptionDate, API_DATE_FORMAT)}&${QUERY_HEALTH_TOOL.additional}= `);
|
|
3225
|
-
}, role: "button" }, t('dueDatePage.lastPeriod.calculate'))));
|
|
3162
|
+
React__default.createElement(DatePicker, Object.assign({ label: t('dueDatePage.lastPeriod.lastPeriodLabel') }, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
3163
|
+
withinPortal: true,
|
|
3164
|
+
}, maxDate: new Date() }))));
|
|
3226
3165
|
};
|
|
3227
3166
|
|
|
3228
|
-
const
|
|
3167
|
+
const InlineLayout$4 = () => {
|
|
3229
3168
|
const { t } = useTranslations();
|
|
3230
|
-
const
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
},
|
|
3236
|
-
|
|
3237
|
-
}, customInput: (props) => {
|
|
3238
|
-
return (React__default.createElement(Input, Object.assign({ className: "due-date-input", name: "birthday", size: "md" }, props, { value: IVFDate && dayjs(IVFDate).format(DUE_DATE_FORMAT) })));
|
|
3239
|
-
} }), actionIcon: React__default.createElement(CalendarMB, { size: 32 }) })) : (React__default.createElement(Input, { label: React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray700, style: { marginBottom: '9px', flex: '1' } }, t('dueDatePage.ivf.transferDate')), value: DateToInputValue(IVFDate), name: "date", size: "md",
|
|
3240
|
-
// type={'date' as 'text'}
|
|
3241
|
-
className: "due-date-input",
|
|
3242
|
-
// onChange={(value) => {
|
|
3243
|
-
// setIVFDate(new Date(value))
|
|
3244
|
-
// }}
|
|
3245
|
-
CustomInput: React__default.createElement(DatePicker, { customInput: (props) => (React__default.createElement("input", Object.assign({ type: "date", className: "due-date-input" }, props, { value: DateToInputValue(IVFDate) }))), disabledDays: {
|
|
3246
|
-
before: new Date(new Date().getTime() - 40 * 7 * 24 * 3600000),
|
|
3247
|
-
}, locale: locale, pickedDate: IVFDate, displayDateFormat: DATE_FORMAT, onChange: (date) => {
|
|
3248
|
-
setIVFDate(date);
|
|
3249
|
-
}, placeholder: "placeholder" }) }))),
|
|
3250
|
-
React__default.createElement("div", { style: {
|
|
3251
|
-
width: '100%',
|
|
3252
|
-
} },
|
|
3253
|
-
React__default.createElement(RadioGroup, { id: "radio-transfer-date", direction: "vertical", size: "small", value: dayTransfer, onChange: (val) => setDayTransfer(val), options: [
|
|
3254
|
-
{
|
|
3255
|
-
value: '3',
|
|
3256
|
-
label: t('dueDatePage.ivf.transferDateRadio', {
|
|
3257
|
-
number: 3,
|
|
3258
|
-
}),
|
|
3259
|
-
},
|
|
3260
|
-
{
|
|
3261
|
-
value: '5',
|
|
3262
|
-
label: t('dueDatePage.ivf.transferDateRadio', {
|
|
3263
|
-
number: 5,
|
|
3264
|
-
}),
|
|
3265
|
-
},
|
|
3266
|
-
] })),
|
|
3267
|
-
React__default.createElement(Button$1, { className: "due-date-calculate-button", size: "lg", variant: siteType === 'marryBaby' ? 'secondary' : 'primary', dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: pageUrl, onClick: () => {
|
|
3268
|
-
onClick(getDueDateIVF(IVFDate, Number(dayTransfer)), `${QUERY_HEALTH_TOOL.type}=2&${QUERY_HEALTH_TOOL.startDate}=${format(IVFDate, API_DATE_FORMAT)}&${QUERY_HEALTH_TOOL.additional}=${dayTransfer}`);
|
|
3269
|
-
}, role: "button" }, t('dueDatePage.lastPeriod.calculate'))));
|
|
3169
|
+
const { form } = useContext(ConceptionFormContext);
|
|
3170
|
+
return (React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
3171
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel') },
|
|
3172
|
+
React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
3173
|
+
withinPortal: true,
|
|
3174
|
+
}, maxDate: new Date(), error: null }))),
|
|
3175
|
+
form.errors.lastPeriodDate && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.lastPeriodDate))));
|
|
3270
3176
|
};
|
|
3271
3177
|
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3178
|
+
var DueDateCalculatorType;
|
|
3179
|
+
(function (DueDateCalculatorType) {
|
|
3180
|
+
DueDateCalculatorType[DueDateCalculatorType["lastPeriod"] = 0] = "lastPeriod";
|
|
3181
|
+
DueDateCalculatorType[DueDateCalculatorType["conception"] = 1] = "conception";
|
|
3182
|
+
DueDateCalculatorType[DueDateCalculatorType["IVF"] = 2] = "IVF";
|
|
3183
|
+
})(DueDateCalculatorType || (DueDateCalculatorType = {}));
|
|
3184
|
+
const API_DATE_FORMAT = 'yyyy-MM-dd';
|
|
3185
|
+
const getDueDateLastPeriod = (lastPeriodDate, periodLength) => {
|
|
3186
|
+
const pregnancyLength = 272 + (periodLength - 21);
|
|
3187
|
+
const dueDate = new Date(lastPeriodDate);
|
|
3188
|
+
dueDate.setDate(dueDate.getDate() + pregnancyLength);
|
|
3189
|
+
return {
|
|
3190
|
+
startDate: lastPeriodDate,
|
|
3191
|
+
dueDate,
|
|
3192
|
+
otherInfo: {
|
|
3193
|
+
method: DueDateCalculatorType.lastPeriod + 1,
|
|
3194
|
+
first_day: format(lastPeriodDate, API_DATE_FORMAT),
|
|
3195
|
+
cycle_length_days: periodLength,
|
|
3196
|
+
conception_date: null,
|
|
3197
|
+
ivf_transfer_date: null,
|
|
3198
|
+
days_transfer: null,
|
|
3199
|
+
},
|
|
3200
|
+
};
|
|
3201
|
+
};
|
|
3202
|
+
const getDueDateConception = (conceptionDate) => {
|
|
3203
|
+
const dueDate = new Date(conceptionDate);
|
|
3204
|
+
dueDate.setDate(dueDate.getDate() + 265);
|
|
3205
|
+
return {
|
|
3206
|
+
startDate: conceptionDate,
|
|
3207
|
+
dueDate,
|
|
3208
|
+
otherInfo: {
|
|
3209
|
+
method: DueDateCalculatorType.conception + 1,
|
|
3210
|
+
conception_date: format(conceptionDate, API_DATE_FORMAT),
|
|
3211
|
+
first_day: null,
|
|
3212
|
+
cycle_length_days: null,
|
|
3213
|
+
ivf_transfer_date: null,
|
|
3214
|
+
days_transfer: null,
|
|
3215
|
+
},
|
|
3216
|
+
};
|
|
3217
|
+
};
|
|
3218
|
+
const getDueDateIVF = (IVFDate, numDayTransfer) => {
|
|
3219
|
+
const dueDate = new Date(IVFDate);
|
|
3220
|
+
dueDate.setDate(dueDate.getDate() + 265 - numDayTransfer);
|
|
3221
|
+
return {
|
|
3222
|
+
startDate: IVFDate,
|
|
3223
|
+
dueDate,
|
|
3224
|
+
otherInfo: {
|
|
3225
|
+
method: DueDateCalculatorType.IVF + 1,
|
|
3226
|
+
ivf_transfer_date: format(IVFDate, API_DATE_FORMAT),
|
|
3227
|
+
days_transfer: numDayTransfer,
|
|
3228
|
+
conception_date: null,
|
|
3229
|
+
first_day: null,
|
|
3230
|
+
cycle_length_days: null,
|
|
3231
|
+
},
|
|
3232
|
+
};
|
|
3297
3233
|
};
|
|
3298
3234
|
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
|
-
& > div {
|
|
3321
|
-
width: calc(50% - 8px);
|
|
3322
|
-
|
|
3323
|
-
${MediaQueries.mbUp} {
|
|
3324
|
-
max-width: 186px;
|
|
3325
|
-
justify-self: left;
|
|
3326
|
-
}
|
|
3327
|
-
}
|
|
3328
|
-
}
|
|
3329
|
-
`;
|
|
3330
|
-
styled.div `
|
|
3331
|
-
margin-bottom: 20px;
|
|
3332
|
-
width: 100%;
|
|
3333
|
-
|
|
3334
|
-
& > :not(:last-child) {
|
|
3335
|
-
margin-bottom: 8px;
|
|
3336
|
-
}
|
|
3337
|
-
.gender-selector {
|
|
3338
|
-
& > div {
|
|
3339
|
-
width: calc(50% - 8px);
|
|
3340
|
-
}
|
|
3341
|
-
}
|
|
3342
|
-
`;
|
|
3343
|
-
styled.div `
|
|
3344
|
-
width: 100%;
|
|
3345
|
-
display: flex;
|
|
3346
|
-
justify-content: center;
|
|
3347
|
-
${MediaQueries.mbUp} {
|
|
3348
|
-
padding: 0 16px;
|
|
3349
|
-
&[data-is-side='true'] {
|
|
3350
|
-
margin-top: 24px;
|
|
3351
|
-
}
|
|
3352
|
-
}
|
|
3353
|
-
|
|
3354
|
-
${MediaQueries.mbDown} {
|
|
3355
|
-
margin-top: 24px;
|
|
3356
|
-
&[data-site='marryBaby'] {
|
|
3357
|
-
margin-top: 12px;
|
|
3358
|
-
}
|
|
3359
|
-
}
|
|
3360
|
-
& > :not(:last-child) {
|
|
3361
|
-
margin-bottom: 8px;
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
|
-
button {
|
|
3365
|
-
width: 100%;
|
|
3366
|
-
margin: auto;
|
|
3367
|
-
${MediaQueries.mbUp} {
|
|
3368
|
-
max-width: 200px;
|
|
3369
|
-
}
|
|
3370
|
-
}
|
|
3371
|
-
`;
|
|
3372
|
-
const StyledInputWrapper = styled.div `
|
|
3373
|
-
width: 100%;
|
|
3374
|
-
display: flex;
|
|
3375
|
-
flex-wrap: wrap;
|
|
3376
|
-
justify-content: space-between;
|
|
3377
|
-
.input-section {
|
|
3378
|
-
display: flex;
|
|
3379
|
-
flex-direction: column;
|
|
3380
|
-
}
|
|
3235
|
+
const ConceptionForm = ({}) => {
|
|
3236
|
+
const { formLayout, onSubmit, currentUrl, submitProps } = useContext(DueDateFormContext);
|
|
3237
|
+
const { t } = useTranslations();
|
|
3238
|
+
const form = useForm({
|
|
3239
|
+
initialValues: {
|
|
3240
|
+
lastPeriodDate: new Date(),
|
|
3241
|
+
},
|
|
3242
|
+
});
|
|
3243
|
+
const formProps = {
|
|
3244
|
+
onSubmit: form.onSubmit((values) => {
|
|
3245
|
+
const { lastPeriodDate } = values;
|
|
3246
|
+
onSubmit(getDueDateConception(lastPeriodDate), `${QUERY_HEALTH_TOOL.type}=1&sd=${dayjs(lastPeriodDate).format(API_DATE_FORMAT$1)}&${QUERY_HEALTH_TOOL.additional}= `);
|
|
3247
|
+
}),
|
|
3248
|
+
};
|
|
3249
|
+
return (React__default.createElement(ConceptionFormContext.Provider, { value: { form } },
|
|
3250
|
+
React__default.createElement(HealthToolFormWrapper, Object.assign({}, formProps),
|
|
3251
|
+
formLayout === 'default' ? React__default.createElement(DefaultLayout$4, null) : React__default.createElement(InlineLayout$4, null),
|
|
3252
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: currentUrl, className: "due-date-calculate-button", type: "submit" }, submitProps), t('dueDatePage.lastPeriod.calculate')))));
|
|
3253
|
+
};
|
|
3381
3254
|
|
|
3382
|
-
|
|
3383
|
-
flex-direction: column;
|
|
3384
|
-
.input-section {
|
|
3385
|
-
width: 100%;
|
|
3386
|
-
}
|
|
3387
|
-
}
|
|
3388
|
-
`;
|
|
3389
|
-
styled.div `
|
|
3390
|
-
position: relative;
|
|
3391
|
-
width: calc(50% - 8px);
|
|
3255
|
+
const IVFFormContext = createContext({});
|
|
3392
3256
|
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
margin-bottom: 24px;
|
|
3404
|
-
#weight-gain-dropdown {
|
|
3405
|
-
z-index: 9;
|
|
3406
|
-
width: 100%;
|
|
3407
|
-
min-width: unset;
|
|
3408
|
-
max-width: unset;
|
|
3409
|
-
color: ${theme.colors.gray800};
|
|
3410
|
-
& > ul {
|
|
3411
|
-
z-index: 1;
|
|
3412
|
-
max-height: 300px;
|
|
3413
|
-
overflow-y: scroll;
|
|
3414
|
-
}
|
|
3415
|
-
}
|
|
3416
|
-
`;
|
|
3417
|
-
styled.div `
|
|
3418
|
-
margin-bottom: 24px;
|
|
3419
|
-
width: 100%;
|
|
3257
|
+
const DefaultLayout$3 = () => {
|
|
3258
|
+
const { t } = useTranslations();
|
|
3259
|
+
const { form, transferDateOptions } = useContext(IVFFormContext);
|
|
3260
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
3261
|
+
React__default.createElement(DatePicker, Object.assign({ label: t('dueDatePage.ivf.transferDate') }, form.getInputProps('IVFDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
3262
|
+
withinPortal: true,
|
|
3263
|
+
}, maxDate: new Date() })),
|
|
3264
|
+
React__default.createElement(Radio$1.Group, Object.assign({}, form.getInputProps('dayTransfer')),
|
|
3265
|
+
React__default.createElement(Group, null, transferDateOptions.map((i, idx) => (React__default.createElement(Radio$1, { key: idx, value: i.value, label: i.label })))))));
|
|
3266
|
+
};
|
|
3420
3267
|
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3268
|
+
const InlineLayout$3 = () => {
|
|
3269
|
+
const { t } = useTranslations();
|
|
3270
|
+
const { form, transferDateOptions } = useContext(IVFFormContext);
|
|
3271
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
3272
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.ivf.transferDate') },
|
|
3273
|
+
React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('IVFDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
3274
|
+
withinPortal: true,
|
|
3275
|
+
}, maxDate: new Date() }))),
|
|
3276
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { width: 'none' },
|
|
3277
|
+
React__default.createElement(Radio$1.Group, Object.assign({}, form.getInputProps('dayTransfer')),
|
|
3278
|
+
React__default.createElement(Group, null, transferDateOptions.map((i, idx) => (React__default.createElement(Radio$1, { key: idx, value: i.value, label: i.label }))))))));
|
|
3279
|
+
};
|
|
3428
3280
|
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
}
|
|
3281
|
+
const IVFForm = ({}) => {
|
|
3282
|
+
var _a;
|
|
3283
|
+
const { formLayout, onSubmit, currentUrl, submitProps } = useContext(DueDateFormContext);
|
|
3284
|
+
const { t } = useTranslations();
|
|
3285
|
+
const transferDateOptions = [
|
|
3286
|
+
{
|
|
3287
|
+
value: '3',
|
|
3288
|
+
label: t('dueDatePage.ivf.transferDateRadio', {
|
|
3289
|
+
number: 3,
|
|
3290
|
+
}),
|
|
3291
|
+
},
|
|
3292
|
+
{
|
|
3293
|
+
value: '5',
|
|
3294
|
+
label: t('dueDatePage.ivf.transferDateRadio', {
|
|
3295
|
+
number: 5,
|
|
3296
|
+
}),
|
|
3297
|
+
},
|
|
3298
|
+
];
|
|
3299
|
+
const form = useForm({
|
|
3300
|
+
initialValues: {
|
|
3301
|
+
IVFDate: new Date(),
|
|
3302
|
+
dayTransfer: (_a = transferDateOptions === null || transferDateOptions === void 0 ? void 0 : transferDateOptions[0]) === null || _a === void 0 ? void 0 : _a.value,
|
|
3303
|
+
},
|
|
3304
|
+
});
|
|
3305
|
+
const formProps = {
|
|
3306
|
+
onSubmit: form.onSubmit((values) => {
|
|
3307
|
+
const { IVFDate } = values;
|
|
3308
|
+
const dayTransfer = Number(values.dayTransfer);
|
|
3309
|
+
onSubmit(getDueDateIVF(IVFDate, Number(dayTransfer)), `${QUERY_HEALTH_TOOL.type}=2&${QUERY_HEALTH_TOOL.startDate}=${dayjs(IVFDate).format(API_DATE_FORMAT$1)}&${QUERY_HEALTH_TOOL.additional}=${dayTransfer}`);
|
|
3310
|
+
}),
|
|
3311
|
+
};
|
|
3312
|
+
return (React__default.createElement(IVFFormContext.Provider, { value: { form, transferDateOptions } },
|
|
3313
|
+
React__default.createElement(HealthToolFormWrapper, Object.assign({}, formProps),
|
|
3314
|
+
formLayout === 'default' ? React__default.createElement(DefaultLayout$3, null) : React__default.createElement(InlineLayout$3, null),
|
|
3315
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: currentUrl, className: "due-date-calculate-button", type: "submit" }, submitProps), t('dueDatePage.lastPeriod.calculate')))));
|
|
3316
|
+
};
|
|
3432
3317
|
|
|
3433
|
-
|
|
3434
|
-
row-gap: 12px;
|
|
3318
|
+
const LastPeriodFormContext = createContext({});
|
|
3435
3319
|
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3320
|
+
const DefaultLayout$2 = () => {
|
|
3321
|
+
const { t } = useTranslations();
|
|
3322
|
+
const { form } = useContext(LastPeriodFormContext);
|
|
3323
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
3324
|
+
React__default.createElement(DatePicker, Object.assign({ label: t('dueDatePage.lastPeriod.lastPeriodLabel') }, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
3325
|
+
withinPortal: true,
|
|
3326
|
+
}, maxDate: new Date() })),
|
|
3327
|
+
React__default.createElement(Input$1.Wrapper, { label: t('dueDatePage.lastPeriod.periodLengthLabel') },
|
|
3328
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: 20, max: 40, placeholder: t('tools.inputPlaceholder', {
|
|
3329
|
+
content: '30',
|
|
3330
|
+
}) }, form.getInputProps('periodLength'))))));
|
|
3331
|
+
};
|
|
3439
3332
|
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3333
|
+
const InlineLayout$2 = () => {
|
|
3334
|
+
const { t } = useTranslations();
|
|
3335
|
+
const { form } = useContext(LastPeriodFormContext);
|
|
3336
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
3337
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel') },
|
|
3338
|
+
React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
3339
|
+
withinPortal: true,
|
|
3340
|
+
}, maxDate: new Date() }))),
|
|
3341
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.periodLengthLabel') },
|
|
3342
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: 20, max: 40, placeholder: t('tools.inputPlaceholder', {
|
|
3343
|
+
content: '30',
|
|
3344
|
+
}) }, form.getInputProps('periodLength'))))));
|
|
3345
|
+
};
|
|
3446
3346
|
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3347
|
+
const LastPeriodForm = ({}) => {
|
|
3348
|
+
const { formLayout, onSubmit, currentUrl, submitProps } = useContext(DueDateFormContext);
|
|
3349
|
+
const { t } = useTranslations();
|
|
3350
|
+
const form = useForm({
|
|
3351
|
+
initialValues: {
|
|
3352
|
+
lastPeriodDate: new Date(),
|
|
3353
|
+
},
|
|
3354
|
+
validate: {
|
|
3355
|
+
periodLength: isNotEmpty(t('validation.error.requiredField')),
|
|
3356
|
+
},
|
|
3357
|
+
});
|
|
3358
|
+
const formProps = {
|
|
3359
|
+
onSubmit: form.onSubmit((values) => {
|
|
3360
|
+
const { periodLength, lastPeriodDate } = values;
|
|
3361
|
+
onSubmit(getDueDateLastPeriod(lastPeriodDate, periodLength), `${QUERY_HEALTH_TOOL.type}=0&${QUERY_HEALTH_TOOL.startDate}=${dayjs(lastPeriodDate).format(API_DATE_FORMAT$1)}&${QUERY_HEALTH_TOOL.additional}=${periodLength}`);
|
|
3362
|
+
}),
|
|
3363
|
+
};
|
|
3364
|
+
return (React__default.createElement(LastPeriodFormContext.Provider, { value: { form } },
|
|
3365
|
+
React__default.createElement(HealthToolFormWrapper, Object.assign({}, formProps),
|
|
3366
|
+
formLayout === 'default' ? React__default.createElement(DefaultLayout$2, null) : React__default.createElement(InlineLayout$2, null),
|
|
3367
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: currentUrl, className: "due-date-calculate-button", type: "submit" }, submitProps), t('dueDatePage.lastPeriod.calculate')))));
|
|
3368
|
+
};
|
|
3454
3369
|
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
}
|
|
3460
|
-
}
|
|
3461
|
-
.note {
|
|
3462
|
-
display: flex;
|
|
3463
|
-
align-items: center;
|
|
3464
|
-
padding-top: 8px;
|
|
3465
|
-
padding-bottom: 16px;
|
|
3466
|
-
}
|
|
3467
|
-
`;
|
|
3370
|
+
const FormSwitcher = () => {
|
|
3371
|
+
const { calculatorType } = useContext(DueDateFormContext);
|
|
3372
|
+
return calculatorType === DueDateCalculatorType.lastPeriod ? (React__default.createElement(LastPeriodForm, null)) : calculatorType === DueDateCalculatorType.conception ? (React__default.createElement(ConceptionForm, null)) : calculatorType === DueDateCalculatorType.IVF ? (React__default.createElement(IVFForm, null)) : null;
|
|
3373
|
+
};
|
|
3468
3374
|
|
|
3469
|
-
|
|
3375
|
+
var OvulationCalculatorType$2;
|
|
3376
|
+
(function (OvulationCalculatorType) {
|
|
3377
|
+
OvulationCalculatorType[OvulationCalculatorType["trackPeriod"] = 0] = "trackPeriod";
|
|
3378
|
+
OvulationCalculatorType[OvulationCalculatorType["conceive"] = 1] = "conceive";
|
|
3379
|
+
OvulationCalculatorType[OvulationCalculatorType["avoidPregnancy"] = 2] = "avoidPregnancy";
|
|
3380
|
+
})(OvulationCalculatorType$2 || (OvulationCalculatorType$2 = {}));
|
|
3381
|
+
const DueDateForm = (_a) => {
|
|
3382
|
+
var { formLayout = 'default', submitProps, currentUrl, isMobile, onSubmit } = _a, props = __rest(_a, ["formLayout", "submitProps", "currentUrl", "isMobile", "onSubmit"]);
|
|
3470
3383
|
const { t } = useTranslations();
|
|
3471
|
-
const [calculatorType, setCalculatorType] = useState(DueDateCalculatorType.lastPeriod);
|
|
3384
|
+
const [calculatorType, setCalculatorType] = useState(DueDateCalculatorType$1.lastPeriod);
|
|
3472
3385
|
const calculatingMethods = [
|
|
3473
3386
|
{
|
|
3474
|
-
value: DueDateCalculatorType.lastPeriod,
|
|
3387
|
+
value: DueDateCalculatorType$1.lastPeriod,
|
|
3475
3388
|
label: t('dueDatePage.lastPeriod'),
|
|
3389
|
+
icon: React__default.createElement(LastPeriod, null),
|
|
3476
3390
|
},
|
|
3477
3391
|
{
|
|
3478
|
-
value: DueDateCalculatorType.conception,
|
|
3392
|
+
value: DueDateCalculatorType$1.conception,
|
|
3479
3393
|
label: t('dueDatePage.conceptionDate'),
|
|
3394
|
+
icon: React__default.createElement(ConceptionDate, null),
|
|
3480
3395
|
},
|
|
3481
3396
|
{
|
|
3482
|
-
value: DueDateCalculatorType.IVF,
|
|
3397
|
+
value: DueDateCalculatorType$1.IVF,
|
|
3483
3398
|
label: t('dueDatePage.ivf'),
|
|
3399
|
+
icon: React__default.createElement(IVF, null),
|
|
3484
3400
|
},
|
|
3485
3401
|
];
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
React__default.createElement(
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
setCalculatorType(o.value);
|
|
3501
|
-
} }))))),
|
|
3502
|
-
calculatorType === DueDateCalculatorType.lastPeriod ? (React__default.createElement(DueDateFormLastPeriod, { locale: locale, onClick: onSubmitDueDate, isSide: isSide, siteType: siteType, pageUrl: currentUrl })) : null,
|
|
3503
|
-
calculatorType === DueDateCalculatorType.conception ? (React__default.createElement(DueDateFormConception, { locale: locale, onClick: onSubmitDueDate, isSide: isSide, siteType: siteType, pageUrl: currentUrl })) : null,
|
|
3504
|
-
calculatorType === DueDateCalculatorType.IVF ? (React__default.createElement(DueDateFormIVF, { locale: locale, onClick: onSubmitDueDate, isSide: isSide, siteType: siteType, pageUrl: currentUrl })) : null));
|
|
3402
|
+
return (React__default.createElement(DueDateFormContext.Provider, { value: {
|
|
3403
|
+
calculatingMethods,
|
|
3404
|
+
submitProps,
|
|
3405
|
+
currentUrl,
|
|
3406
|
+
isMobile,
|
|
3407
|
+
formLayout,
|
|
3408
|
+
onSubmit,
|
|
3409
|
+
calculatorType,
|
|
3410
|
+
setCalculatorType,
|
|
3411
|
+
} },
|
|
3412
|
+
React__default.createElement(HealthToolFormWrapper, Object.assign({ component: "div", formLayout: "default" }, props),
|
|
3413
|
+
React__default.createElement(Input$1.Wrapper, { label: t('dueDatePage.calculationMethod') },
|
|
3414
|
+
React__default.createElement(HealthToolFormWrapper.ChipGroup, { isMobile: isMobile, data: calculatingMethods, defaultValue: String(DueDateCalculatorType$1.lastPeriod), onChange: (v) => setCalculatorType(Number(v)) })),
|
|
3415
|
+
React__default.createElement(FormSwitcher, null))));
|
|
3505
3416
|
};
|
|
3506
3417
|
|
|
3507
|
-
var useStyles$
|
|
3418
|
+
var useStyles$4 = createStyles(() => {
|
|
3508
3419
|
return {
|
|
3509
3420
|
root: {
|
|
3510
3421
|
borderTopLeftRadius: 'inherit',
|
|
@@ -3517,7 +3428,7 @@ const CardWrapperContext = createContext({});
|
|
|
3517
3428
|
|
|
3518
3429
|
const Banner = (_a) => {
|
|
3519
3430
|
var { styles, classNames, className } = _a, rest = __rest(_a, ["styles", "classNames", "className"]);
|
|
3520
|
-
const { classes, cx } = useStyles$
|
|
3431
|
+
const { classes, cx } = useStyles$4(undefined, {
|
|
3521
3432
|
name: 'HealthToolCardWrapper__Banner',
|
|
3522
3433
|
styles,
|
|
3523
3434
|
classNames,
|
|
@@ -3526,7 +3437,7 @@ const Banner = (_a) => {
|
|
|
3526
3437
|
return (React__default.createElement(ToolsBannerCard, Object.assign({ isPregTool: isPregTool, className: cx(className, classes.root) }, rest)));
|
|
3527
3438
|
};
|
|
3528
3439
|
|
|
3529
|
-
var useStyles$
|
|
3440
|
+
var useStyles$3 = createStyles(() => {
|
|
3530
3441
|
return {
|
|
3531
3442
|
root: {
|
|
3532
3443
|
padding: rem(16),
|
|
@@ -3536,7 +3447,7 @@ var useStyles$4 = createStyles(() => {
|
|
|
3536
3447
|
|
|
3537
3448
|
const Body = (_a) => {
|
|
3538
3449
|
var { children, styles, classNames, className } = _a, rest = __rest(_a, ["children", "styles", "classNames", "className"]);
|
|
3539
|
-
const { classes, cx } = useStyles$
|
|
3450
|
+
const { classes, cx } = useStyles$3(undefined, {
|
|
3540
3451
|
name: 'HealthToolCardWrapper',
|
|
3541
3452
|
styles,
|
|
3542
3453
|
classNames,
|
|
@@ -3544,7 +3455,7 @@ const Body = (_a) => {
|
|
|
3544
3455
|
return (React__default.createElement(Box, Object.assign({ className: cx(className, classes.root) }, rest), children));
|
|
3545
3456
|
};
|
|
3546
3457
|
|
|
3547
|
-
var useStyles$
|
|
3458
|
+
var useStyles$2 = createStyles((theme, { isPregTool }) => {
|
|
3548
3459
|
const isMarryBaby = theme.other.template === 'mb';
|
|
3549
3460
|
return {
|
|
3550
3461
|
root: {
|
|
@@ -3623,7 +3534,7 @@ var useStyles$3 = createStyles((theme, { isPregTool }) => {
|
|
|
3623
3534
|
|
|
3624
3535
|
const _HealthToolCardWrapper = (_a) => {
|
|
3625
3536
|
var { children, styles, classNames, className, isPregTool } = _a, rest = __rest(_a, ["children", "styles", "classNames", "className", "isPregTool"]);
|
|
3626
|
-
const { classes, cx } = useStyles$
|
|
3537
|
+
const { classes, cx } = useStyles$2({ isPregTool }, {
|
|
3627
3538
|
name: 'HealthToolCardWrapper',
|
|
3628
3539
|
styles,
|
|
3629
3540
|
classNames,
|
|
@@ -3637,268 +3548,19 @@ const HealthToolCardWrapper = _HealthToolCardWrapper;
|
|
|
3637
3548
|
HealthToolCardWrapper.Body = Body;
|
|
3638
3549
|
HealthToolCardWrapper.Banner = Banner;
|
|
3639
3550
|
|
|
3640
|
-
const
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
width: 100%;
|
|
3644
|
-
padding: 20px;
|
|
3645
|
-
display: flex;
|
|
3646
|
-
justify-content: space-between;
|
|
3647
|
-
flex-wrap: wrap;
|
|
3648
|
-
}
|
|
3649
|
-
${MediaQueries.mbDown} {
|
|
3650
|
-
padding: 16px;
|
|
3651
|
-
}
|
|
3652
|
-
.due-date-calculate-button {
|
|
3653
|
-
width: 100%;
|
|
3654
|
-
margin: 12px auto 0;
|
|
3655
|
-
${MediaQueries.mbUp} {
|
|
3656
|
-
max-width: 200px;
|
|
3657
|
-
}
|
|
3658
|
-
}
|
|
3659
|
-
&[data-is-side='true'] {
|
|
3660
|
-
${MediaQueries.mbUp} {
|
|
3661
|
-
padding: 24px 40px 0px 40px;
|
|
3662
|
-
}
|
|
3663
|
-
}
|
|
3664
|
-
.input-weight-form {
|
|
3665
|
-
display: flex;
|
|
3666
|
-
flex-wrap: wrap;
|
|
3667
|
-
justify-content: space-between;
|
|
3668
|
-
padding: 0 16px;
|
|
3669
|
-
}
|
|
3670
|
-
.input-form {
|
|
3671
|
-
display: flex;
|
|
3672
|
-
|
|
3673
|
-
${MediaQueries.mbUp} {
|
|
3674
|
-
margin-bottom: 24px;
|
|
3675
|
-
width: calc(50% - 8px);
|
|
3676
|
-
}
|
|
3677
|
-
&[data-is-side='true'] {
|
|
3678
|
-
${MediaQueries.mbUp} {
|
|
3679
|
-
margin-bottom: 8px;
|
|
3680
|
-
width: 100%;
|
|
3681
|
-
}
|
|
3682
|
-
}
|
|
3683
|
-
${MediaQueries.mbDown} {
|
|
3684
|
-
margin-bottom: 8px;
|
|
3685
|
-
}
|
|
3686
|
-
.label-text {
|
|
3687
|
-
overflow: hidden;
|
|
3688
|
-
text-overflow: ellipsis;
|
|
3689
|
-
-webkit-line-clamp: 2;
|
|
3690
|
-
display: -webkit-box;
|
|
3691
|
-
-webkit-box-orient: vertical;
|
|
3692
|
-
}
|
|
3693
|
-
}
|
|
3694
|
-
.input-form-pwg {
|
|
3695
|
-
display: flex;
|
|
3696
|
-
width: calc(50% - 8px);
|
|
3697
|
-
|
|
3698
|
-
${MediaQueries.mbUp} {
|
|
3699
|
-
margin-bottom: 24px;
|
|
3700
|
-
}
|
|
3701
|
-
&[data-is-side='true'] {
|
|
3702
|
-
${MediaQueries.mbUp} {
|
|
3703
|
-
margin-bottom: 8px;
|
|
3704
|
-
}
|
|
3705
|
-
}
|
|
3706
|
-
${MediaQueries.mbDown} {
|
|
3707
|
-
margin-bottom: 8px;
|
|
3708
|
-
width: 100%;
|
|
3709
|
-
}
|
|
3710
|
-
.label-text {
|
|
3711
|
-
overflow: hidden;
|
|
3712
|
-
text-overflow: ellipsis;
|
|
3713
|
-
-webkit-line-clamp: 2;
|
|
3714
|
-
display: -webkit-box;
|
|
3715
|
-
-webkit-box-orient: vertical;
|
|
3716
|
-
}
|
|
3717
|
-
}
|
|
3718
|
-
.day-slider {
|
|
3719
|
-
width: 100%;
|
|
3720
|
-
${MediaQueries.mbUp} {
|
|
3721
|
-
width: calc(50% - 8px);
|
|
3722
|
-
&[data-is-side='true'] {
|
|
3723
|
-
width: 100%;
|
|
3724
|
-
}
|
|
3725
|
-
}
|
|
3726
|
-
}
|
|
3727
|
-
`, 'hhgcomp-embedtoolcard-content');
|
|
3728
|
-
styled.div `
|
|
3729
|
-
padding: 0;
|
|
3730
|
-
background-color: white;
|
|
3731
|
-
border: 1px solid #e4e8ec;
|
|
3732
|
-
border-radius: 4px;
|
|
3733
|
-
|
|
3734
|
-
&[data-site='marryBaby'] {
|
|
3735
|
-
background-color: ${theme.mbColors.green};
|
|
3736
|
-
border-radius: 16px;
|
|
3737
|
-
}
|
|
3738
|
-
.due-date-cal {
|
|
3739
|
-
${StyledContent.classSelector} {
|
|
3740
|
-
${MediaQueries.mbUp} {
|
|
3741
|
-
padding: 24px;
|
|
3742
|
-
}
|
|
3743
|
-
${MediaQueries.mbDown} {
|
|
3744
|
-
padding: 16px;
|
|
3745
|
-
}
|
|
3746
|
-
}
|
|
3747
|
-
display: table;
|
|
3748
|
-
width: 100%;
|
|
3749
|
-
.slider-due-date {
|
|
3750
|
-
margin-bottom: 12px;
|
|
3751
|
-
width: 100%;
|
|
3752
|
-
margin-left: 0px;
|
|
3753
|
-
margin-right: 0px;
|
|
3754
|
-
.slider-outer-wrapper {
|
|
3755
|
-
margin: 2rem -0.5rem 1rem;
|
|
3756
|
-
}
|
|
3757
|
-
&[data-theme='marryBaby'] {
|
|
3758
|
-
padding: 1rem;
|
|
3759
|
-
background: white;
|
|
3760
|
-
border-radius: 1rem;
|
|
3761
|
-
.slider-outer-wrapper {
|
|
3762
|
-
gap: 12px;
|
|
3763
|
-
display: flex;
|
|
3764
|
-
align-items: center;
|
|
3765
|
-
margin: 0.5rem;
|
|
3766
|
-
}
|
|
3767
|
-
}
|
|
3768
|
-
}
|
|
3769
|
-
.input-form {
|
|
3770
|
-
display: flex;
|
|
3771
|
-
${MediaQueries.mbUp} {
|
|
3772
|
-
width: calc(50% - 8px);
|
|
3773
|
-
margin-bottom: 24px;
|
|
3774
|
-
}
|
|
3775
|
-
&[data-is-side='true'] {
|
|
3776
|
-
${MediaQueries.mbUp} {
|
|
3777
|
-
margin-bottom: 12px;
|
|
3778
|
-
width: 100%;
|
|
3779
|
-
}
|
|
3780
|
-
}
|
|
3781
|
-
${MediaQueries.mbDown} {
|
|
3782
|
-
margin-bottom: 8px;
|
|
3783
|
-
}
|
|
3784
|
-
}
|
|
3785
|
-
}
|
|
3786
|
-
.heart-rate-cal {
|
|
3787
|
-
.slider-heart-rate {
|
|
3788
|
-
margin-bottom: 12px;
|
|
3789
|
-
width: 100%;
|
|
3790
|
-
margin-left: 0px;
|
|
3791
|
-
margin-right: 0px;
|
|
3792
|
-
.slider-outer-wrapper {
|
|
3793
|
-
margin: 2rem -0.5rem 1rem;
|
|
3794
|
-
}
|
|
3795
|
-
}
|
|
3796
|
-
}
|
|
3797
|
-
.ovulation-cal {
|
|
3798
|
-
display: flex;
|
|
3799
|
-
/* padding-top: 24px; */
|
|
3800
|
-
justify-content: space-between;
|
|
3801
|
-
flex-wrap: wrap;
|
|
3802
|
-
.slider-ovulation {
|
|
3803
|
-
margin-bottom: 12px;
|
|
3804
|
-
/* width: 100%; */
|
|
3805
|
-
margin-left: 0px;
|
|
3806
|
-
margin-right: 0px;
|
|
3807
|
-
.slider-outer-wrapper {
|
|
3808
|
-
margin: 2rem -0.5rem 1rem;
|
|
3809
|
-
}
|
|
3810
|
-
&[data-theme='marryBaby'] {
|
|
3811
|
-
padding: 1rem;
|
|
3812
|
-
background: white;
|
|
3813
|
-
border-radius: 1rem;
|
|
3814
|
-
.slider-outer-wrapper {
|
|
3815
|
-
gap: 12px;
|
|
3816
|
-
display: flex;
|
|
3817
|
-
align-items: center;
|
|
3818
|
-
margin: 0.5rem;
|
|
3819
|
-
}
|
|
3820
|
-
}
|
|
3821
|
-
}
|
|
3822
|
-
.input-form {
|
|
3823
|
-
display: flex;
|
|
3824
|
-
${MediaQueries.mbUp} {
|
|
3825
|
-
width: calc(50% - 8px);
|
|
3826
|
-
margin-bottom: 24px;
|
|
3827
|
-
&[data-is-side='true'] {
|
|
3828
|
-
margin-bottom: 12px;
|
|
3829
|
-
width: 100%;
|
|
3830
|
-
}
|
|
3831
|
-
}
|
|
3832
|
-
${MediaQueries.mbDown} {
|
|
3833
|
-
margin-bottom: 8px;
|
|
3834
|
-
}
|
|
3835
|
-
}
|
|
3836
|
-
}
|
|
3837
|
-
.pwg-view-mobile {
|
|
3838
|
-
&[data-is-side='true'] {
|
|
3839
|
-
display: flex;
|
|
3840
|
-
flex-wrap: wrap;
|
|
3841
|
-
justify-content: space-between;
|
|
3842
|
-
}
|
|
3843
|
-
${MediaQueries.mbDown} {
|
|
3844
|
-
display: flex;
|
|
3845
|
-
flex-wrap: wrap;
|
|
3846
|
-
justify-content: space-between;
|
|
3847
|
-
padding: 16px 0;
|
|
3848
|
-
}
|
|
3849
|
-
.hide-asking-mobile {
|
|
3850
|
-
gap: 10px;
|
|
3851
|
-
&[data-is-side='true'] {
|
|
3852
|
-
${MediaQueries.mbUp} {
|
|
3853
|
-
display: none;
|
|
3854
|
-
}
|
|
3855
|
-
}
|
|
3856
|
-
${MediaQueries.mbDown} {
|
|
3857
|
-
display: none;
|
|
3858
|
-
}
|
|
3859
|
-
}
|
|
3860
|
-
.hide-asking-desk {
|
|
3861
|
-
gap: 10px;
|
|
3862
|
-
&[data-is-side='true'] {
|
|
3863
|
-
${MediaQueries.mbUp} {
|
|
3864
|
-
display: unset;
|
|
3865
|
-
}
|
|
3866
|
-
}
|
|
3867
|
-
${MediaQueries.mbUp} {
|
|
3868
|
-
display: none;
|
|
3869
|
-
}
|
|
3870
|
-
}
|
|
3871
|
-
}
|
|
3872
|
-
input[type='date']::after {
|
|
3873
|
-
width: 16px;
|
|
3874
|
-
height: 16px;
|
|
3875
|
-
background-image: url('https://hellobacsi.com/svg/calendar.svg');
|
|
3876
|
-
background-repeat: no-repeat;
|
|
3877
|
-
background-size: contain;
|
|
3878
|
-
content: '';
|
|
3879
|
-
}
|
|
3880
|
-
`;
|
|
3881
|
-
styled(RadioGroup) `
|
|
3882
|
-
&[data-direction='horizontal'] div[data-type='circle'] {
|
|
3883
|
-
margin-right: 8px;
|
|
3884
|
-
}
|
|
3885
|
-
label {
|
|
3886
|
-
font-size: 14px;
|
|
3887
|
-
}
|
|
3888
|
-
`;
|
|
3889
|
-
|
|
3890
|
-
const DueDateCardEmbed = ({ locale, onSubmitDueDate, dueDatePageInfo, expertUrl, isSide, siteType, }) => {
|
|
3891
|
-
var _a;
|
|
3551
|
+
const DueDateCardEmbed = (_a) => {
|
|
3552
|
+
var _b;
|
|
3553
|
+
var { dueDatePageInfo, expertUrl, formProps } = _a, props = __rest(_a, ["dueDatePageInfo", "expertUrl", "formProps"]);
|
|
3892
3554
|
const { t } = useTranslations();
|
|
3893
|
-
return (React__default.createElement(HealthToolCardWrapper, { isPregTool: true },
|
|
3894
|
-
React__default.createElement(HealthToolCardWrapper.Banner, {
|
|
3555
|
+
return (React__default.createElement(HealthToolCardWrapper, Object.assign({ isPregTool: true }, props),
|
|
3556
|
+
React__default.createElement(HealthToolCardWrapper.Banner, { color: "pink", icon: React__default.createElement("img", { alt: "health-tool-icon", src: (dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.featured_image) ||
|
|
3895
3557
|
CommonGAssets.getAssetPath('health-tools/due-date-icon.svg'), loading: "lazy" }), heading: t('healthTools.dueDateCalculator'), medicalReview: {
|
|
3896
3558
|
link: expertUrl,
|
|
3897
|
-
reviewer: (
|
|
3559
|
+
reviewer: (_b = dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.reviewed_by) === null || _b === void 0 ? void 0 : _b.display_name,
|
|
3898
3560
|
date: dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.reviewed_date,
|
|
3899
3561
|
} }),
|
|
3900
|
-
React__default.createElement(
|
|
3901
|
-
React__default.createElement(
|
|
3562
|
+
React__default.createElement(HealthToolCardWrapper.Body, null,
|
|
3563
|
+
React__default.createElement(DueDateForm, Object.assign({}, formProps)))));
|
|
3902
3564
|
};
|
|
3903
3565
|
|
|
3904
3566
|
const BmiFormContext = createContext({});
|
|
@@ -3989,7 +3651,7 @@ function getBmi({ weight: weightProps, height: heightProps, }) {
|
|
|
3989
3651
|
const BmiForm = (_a) => {
|
|
3990
3652
|
var { value: valueProps, onChange: onChangeProps, onSubmit: onSubmitProps, bmiGenerated, bmiUnit, formLayout = 'default', submitProps } = _a, rest = __rest(_a, ["value", "onChange", "onSubmit", "bmiGenerated", "bmiUnit", "formLayout", "submitProps"]);
|
|
3991
3653
|
const [isTouched, setIsTouched] = useState(false);
|
|
3992
|
-
const { control, handleSubmit, setValue, watch } = useForm();
|
|
3654
|
+
const { control, handleSubmit, setValue, watch } = useForm$1();
|
|
3993
3655
|
const data = watch();
|
|
3994
3656
|
const { locale } = useTranslations();
|
|
3995
3657
|
const { getHealthToolLink } = useHealthToolsCache(locale);
|
|
@@ -4062,7 +3724,7 @@ const BabyGrowthCardEmbed = (_a) => {
|
|
|
4062
3724
|
React__default.createElement(BabyGrowthForm, Object.assign({ schema: schema, onError: onError }, formProps)))));
|
|
4063
3725
|
};
|
|
4064
3726
|
|
|
4065
|
-
var useStyles$
|
|
3727
|
+
var useStyles$1 = createStyles((theme, { hasOnClickFn }) => {
|
|
4066
3728
|
return {
|
|
4067
3729
|
root: {
|
|
4068
3730
|
position: 'relative',
|
|
@@ -4098,7 +3760,7 @@ const BabyPoopForm = (_a) => {
|
|
|
4098
3760
|
const { t } = useTranslations();
|
|
4099
3761
|
const _theme = useMantineTheme();
|
|
4100
3762
|
const isMarryBaby = _theme.other.template === 'mb';
|
|
4101
|
-
const { classes } = useStyles$
|
|
3763
|
+
const { classes } = useStyles$1({ hasOnClickFn: Boolean(onClickFindOut) }, { name: 'BabyPoopForm', styles, classNames });
|
|
4102
3764
|
return (React__default.createElement(Box, Object.assign({ className: classes.root }, props),
|
|
4103
3765
|
sponsorLogo && (React__default.createElement(Box, { className: classes.sponsorBox },
|
|
4104
3766
|
React__default.createElement(Text, { size: "p4" }, t('common.sponsoredBy')),
|
|
@@ -4133,7 +3795,7 @@ const DefaultForm$1 = (_a) => {
|
|
|
4133
3795
|
const { isAdult, activeValueNote, linkTool, form, submitProps } = useContext(ThrFormContext);
|
|
4134
3796
|
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
4135
3797
|
React__default.createElement(GenderOptionControl, Object.assign({}, form.getInputProps('gender'))),
|
|
4136
|
-
React__default.createElement(DatePicker
|
|
3798
|
+
React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('age'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
4137
3799
|
withinPortal: true,
|
|
4138
3800
|
}, label: t('targetHeartRate.ageInput'), maxDate: new Date() })),
|
|
4139
3801
|
React__default.createElement(Input$1.Number, Object.assign({ label: t('targetHeartRate.heartRateInput'), placeholder: t('tools.inputPlaceholder', {
|
|
@@ -4168,7 +3830,7 @@ const InlineForm$1 = (_a) => {
|
|
|
4168
3830
|
form.errors.gender && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
|
|
4169
3831
|
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4170
3832
|
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('targetHeartRate.ageInput') },
|
|
4171
|
-
React__default.createElement(DatePicker
|
|
3833
|
+
React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('age'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
4172
3834
|
withinPortal: true,
|
|
4173
3835
|
}, error: null, maxDate: new Date() }))),
|
|
4174
3836
|
form.errors.age && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.age))),
|
|
@@ -4201,7 +3863,7 @@ const ThrForm = (_a) => {
|
|
|
4201
3863
|
const { t, locale } = useTranslations();
|
|
4202
3864
|
const minRange = useRef(40);
|
|
4203
3865
|
const { getHealthToolLink } = useHealthToolsCache(locale);
|
|
4204
|
-
const form = useForm
|
|
3866
|
+
const form = useForm({
|
|
4205
3867
|
initialValues: {
|
|
4206
3868
|
heartRate: 60,
|
|
4207
3869
|
activeValue: 'low_intensity',
|
|
@@ -4366,8 +4028,6 @@ const BMRCardEmbed = (_a) => {
|
|
|
4366
4028
|
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' }) })))));
|
|
4367
4029
|
};
|
|
4368
4030
|
|
|
4369
|
-
const OvulationFormContext = createContext({});
|
|
4370
|
-
|
|
4371
4031
|
const AvoidPregnancy = (_a) => {
|
|
4372
4032
|
var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
|
|
4373
4033
|
const props = Object.assign({ width: size, height: size }, rest);
|
|
@@ -4396,33 +4056,6 @@ const AvoidPregnancy = (_a) => {
|
|
|
4396
4056
|
React__default.createElement("rect", { width: "18", height: "18", fill: "white", transform: "translate(0.833984)" })))));
|
|
4397
4057
|
};
|
|
4398
4058
|
|
|
4399
|
-
const LastPeriod = (_a) => {
|
|
4400
|
-
var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
|
|
4401
|
-
const props = Object.assign({ width: size, height: size }, rest);
|
|
4402
|
-
return isMarryBaby ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
4403
|
-
React__default.createElement("path", { d: "M26.9536 27.3696H8.18104C6.89043 27.3696 5.83447 26.3137 5.83447 25.0231V8.59706C5.83447 7.30645 6.89043 6.25049 8.18104 6.25049L19.9843 8.59706L26.9536 6.25049C28.2442 6.25049 29.3002 7.30645 29.3002 8.59706V25.0231C29.3002 26.3137 28.2442 27.3696 26.9536 27.3696Z", fill: "#E0E9FB" }),
|
|
4404
|
-
React__default.createElement("path", { d: "M22.7061 22.6765H6.25666C4.91911 22.6765 4.02742 21.3389 4.5202 20.0953L5.83428 16.8101V8.59706C5.83428 7.30645 6.89023 6.25049 8.18085 6.25049H24.6069C25.8975 6.25049 26.9534 7.30645 26.9534 8.59706V16.8101L25.3108 20.9166C24.8884 21.9725 23.856 22.6765 22.7061 22.6765Z", fill: "#FFE9F1" }),
|
|
4405
|
-
React__default.createElement("path", { d: "M24.6069 28.0736H8.18091C6.49138 28.0736 5.13037 26.7126 5.13037 25.0231C5.13037 24.6242 5.43543 24.3191 5.83434 24.3191C6.23326 24.3191 6.53831 24.6242 6.53831 25.0231C6.53831 25.9382 7.26575 26.6657 8.18091 26.6657H24.6069C25.5221 26.6657 26.2495 25.9382 26.2495 25.0231V22.6765C26.2495 22.2776 26.5546 21.9725 26.9535 21.9725C27.3524 21.9725 27.6575 22.2776 27.6575 22.6765V25.0231C27.6575 26.7126 26.2964 28.0736 24.6069 28.0736Z", fill: "#202135" }),
|
|
4406
|
-
React__default.createElement("path", { d: "M24.607 5.54652H24.1377V5.07721C24.1377 4.04472 23.2929 3.19995 22.2604 3.19995C21.2279 3.19995 20.3831 4.04472 20.3831 5.07721V7.42378C20.3831 8.45627 21.2279 9.30104 22.2604 9.30104C22.6593 9.30104 22.9644 8.99598 22.9644 8.59707C22.9644 8.19815 22.6593 7.8931 22.2604 7.8931C22.0023 7.8931 21.7911 7.6819 21.7911 7.42378V5.07721C21.7911 4.81909 22.0023 4.60789 22.2604 4.60789C22.5185 4.60789 22.7297 4.81909 22.7297 5.07721V6.25049C22.7297 6.64941 23.0348 6.95447 23.4337 6.95447H24.607C25.5221 6.95447 26.2496 7.6819 26.2496 8.59707V15.0032C26.2496 16.1061 26.0384 17.209 25.6395 18.218L24.6774 20.635C24.3488 21.4328 23.5745 21.9725 22.7062 21.9725H6.25677C5.85786 21.9725 5.50587 21.7848 5.29468 21.4563C5.08349 21.1278 5.03656 20.7288 5.17735 20.3534L5.83439 18.7343C6.30371 17.5375 6.56183 16.2704 6.56183 14.9797V8.59707C6.56183 7.6819 7.28927 6.95447 8.20443 6.95447H9.37771C9.77663 6.95447 10.0817 6.64941 10.0817 6.25049C10.0817 5.85158 9.77663 5.54652 9.37771 5.54652H8.20443C6.5149 5.54652 5.15389 6.90753 5.15389 8.59707V15.0032C5.15389 16.1061 4.94269 17.209 4.54378 18.218L3.88674 19.8371C3.55822 20.635 3.67554 21.5267 4.14486 22.2541C4.61417 22.9581 5.43547 23.3805 6.28024 23.3805H22.7297C24.1846 23.3805 25.4517 22.5122 25.9914 21.1747L26.9535 18.7577C27.4229 17.561 27.681 16.2938 27.681 15.0032V8.59707C27.6575 6.90753 26.2965 5.54652 24.607 5.54652Z", fill: "#202135" }),
|
|
4407
|
-
React__default.createElement("path", { d: "M12.8743 9.30104C13.2732 9.30104 13.5783 8.99598 13.5783 8.59707C13.5783 8.19815 13.2732 7.8931 12.8743 7.8931C12.6162 7.8931 12.405 7.6819 12.405 7.42378V5.07721C12.405 4.81909 12.6162 4.60789 12.8743 4.60789C13.1325 4.60789 13.3436 4.81909 13.3436 5.07721V6.25049C13.3436 6.64941 13.6487 6.95447 14.0476 6.95447H18.7408C19.1397 6.95447 19.4447 6.64941 19.4447 6.25049C19.4447 5.85158 19.1397 5.54652 18.7408 5.54652H14.7516V5.07721C14.7516 4.04472 13.9068 3.19995 12.8743 3.19995C11.8418 3.19995 10.9971 4.04472 10.9971 5.07721V7.42378C10.9971 8.45627 11.8418 9.30104 12.8743 9.30104Z", fill: "#202135" }),
|
|
4408
|
-
React__default.createElement("path", { d: "M21.0873 16.8101C20.4303 16.8101 19.9141 16.2938 19.9141 15.6368C19.9141 14.9797 20.4303 14.4635 21.0873 14.4635C21.7444 14.4635 22.2606 14.9797 22.2606 15.6368C22.2606 16.2938 21.7444 16.8101 21.0873 16.8101Z", fill: "#E85388" }),
|
|
4409
|
-
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7009 13.2902C11.0438 13.2902 10.5276 12.7739 10.5276 12.1169C10.5276 11.4598 11.0438 10.9436 11.7009 10.9436C12.3579 10.9436 12.8742 11.4598 12.8742 12.1169C12.8742 12.7739 12.3579 13.2902 11.7009 13.2902ZM16.394 13.2902C15.737 13.2902 15.2207 12.7739 15.2207 12.1169C15.2207 11.4598 15.737 10.9436 16.394 10.9436C17.0511 10.9436 17.5673 11.4598 17.5673 12.1169C17.5673 12.7739 17.0511 13.2902 16.394 13.2902ZM21.0872 13.2902C20.4301 13.2902 19.9139 12.7739 19.9139 12.1169C19.9139 11.4598 20.4301 10.9436 21.0872 10.9436C21.7442 10.9436 22.2605 11.4598 22.2605 12.1169C22.2605 12.7739 21.7442 13.2902 21.0872 13.2902ZM11.7009 16.81C11.0438 16.81 10.5276 16.2938 10.5276 15.6367C10.5276 14.9797 11.0438 14.4635 11.7009 14.4635C12.3579 14.4635 12.8742 14.9797 12.8742 15.6367C12.8742 16.2938 12.3579 16.81 11.7009 16.81ZM16.394 16.81C15.737 16.81 15.2207 16.2938 15.2207 15.6367C15.2207 14.9797 15.737 14.4635 16.394 14.4635C17.0511 14.4635 17.5673 14.9797 17.5673 15.6367C17.5673 16.2938 17.0511 16.81 16.394 16.81ZM20.1721 20.2126C19.5151 20.2126 19.0927 19.7432 19.21 19.1566C19.3274 18.57 19.9375 18.1006 20.5945 18.1006C21.2515 18.1006 21.6739 18.57 21.5566 19.1566C21.4393 19.7432 20.8292 20.2126 20.1721 20.2126ZM15.479 20.2126C14.8219 20.2126 14.3996 19.7432 14.5169 19.1566C14.6342 18.57 15.2443 18.1006 15.9014 18.1006C16.5584 18.1006 16.9808 18.57 16.8635 19.1566C16.7461 19.7432 16.136 20.2126 15.479 20.2126ZM9.82374 19.1566C9.70641 19.7432 10.1288 20.2126 10.7858 20.2126C11.4429 20.2126 12.053 19.7432 12.1703 19.1566C12.2876 18.57 11.8653 18.1006 11.2082 18.1006C10.5512 18.1006 9.94107 18.57 9.82374 19.1566Z", fill: "#9898A9" }))) : (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
4410
|
-
React__default.createElement("rect", { y: "2.23462", width: "22.0504", height: "17.1503", rx: "2", fill: "#E3F2FF" }),
|
|
4411
|
-
React__default.createElement("path", { d: "M0 4.23462C0 3.13005 0.895431 2.23462 2 2.23462H20.0504C21.155 2.23462 22.0504 3.13005 22.0504 4.23462V5.90969H0V4.23462Z", fill: "#2D87F3" }),
|
|
4412
|
-
React__default.createElement("path", { d: "M17.1351 1H17.0853C16.532 1 16.0835 1.44854 16.0835 2.00185V3.63855C16.0835 4.19186 16.532 4.6404 17.0853 4.6404H17.1351C17.6884 4.6404 18.1369 4.19186 18.1369 3.63855V2.00185C18.1369 1.44854 17.6884 1 17.1351 1Z", fill: "#284A75" }),
|
|
4413
|
-
React__default.createElement("path", { d: "M4.2751 4.64038H4.32481C4.87812 4.64038 5.32666 4.19184 5.32666 3.63853V2.00183C5.32666 1.44853 4.87812 0.99998 4.32481 0.99998H4.2751C3.72179 0.99998 3.27325 1.44853 3.27325 2.00183V3.63853C3.27325 4.19184 3.72179 4.64038 4.2751 4.64038Z", fill: "#284A75" }),
|
|
4414
|
-
React__default.createElement("path", { d: "M4.7172 9.75171H3.95994C3.61369 9.75171 3.33301 10.0324 3.33301 10.3786V11.2727C3.33301 11.6189 3.61369 11.8996 3.95994 11.8996H4.7172C5.06344 11.8996 5.34413 11.6189 5.34413 11.2727V10.3786C5.34413 10.0324 5.06344 9.75171 4.7172 9.75171Z", fill: "#2B62CD" }),
|
|
4415
|
-
React__default.createElement("path", { d: "M8.88663 9.75171H8.12937C7.78313 9.75171 7.50244 10.0324 7.50244 10.3786V11.2727C7.50244 11.6189 7.78313 11.8996 8.12937 11.8996H8.88663C9.23288 11.8996 9.51356 11.6189 9.51356 11.2727V10.3786C9.51356 10.0324 9.23288 9.75171 8.88663 9.75171Z", fill: "#2B62CD" }),
|
|
4416
|
-
React__default.createElement("path", { d: "M13.0551 9.75171H12.2978C11.9516 9.75171 11.6709 10.0324 11.6709 10.3786V11.2727C11.6709 11.6189 11.9516 11.8996 12.2978 11.8996H13.0551C13.4013 11.8996 13.682 11.6189 13.682 11.2727V10.3786C13.682 10.0324 13.4013 9.75171 13.0551 9.75171Z", fill: "#2B62CD" }),
|
|
4417
|
-
React__default.createElement("path", { d: "M17.4887 9.75171H16.7314C16.3852 9.75171 16.1045 10.0324 16.1045 10.3786V11.2727C16.1045 11.6189 16.3852 11.8996 16.7314 11.8996H17.4887C17.8349 11.8996 18.1156 11.6189 18.1156 11.2727V10.3786C18.1156 10.0324 17.8349 9.75171 17.4887 9.75171Z", fill: "#2B62CD" }),
|
|
4418
|
-
React__default.createElement("path", { d: "M4.67521 13.635H3.91795C3.5717 13.635 3.29102 13.9157 3.29102 14.2619V15.156C3.29102 15.5022 3.5717 15.7829 3.91795 15.7829H4.67521C5.02145 15.7829 5.30214 15.5022 5.30214 15.156V14.2619C5.30214 13.9157 5.02145 13.635 4.67521 13.635Z", fill: "#2B62CD" }),
|
|
4419
|
-
React__default.createElement("path", { d: "M8.84415 13.635H8.08689C7.74065 13.635 7.45996 13.9157 7.45996 14.2619V15.156C7.45996 15.5022 7.74065 15.7829 8.08689 15.7829H8.84415C9.1904 15.7829 9.47108 15.5022 9.47108 15.156V14.2619C9.47108 13.9157 9.1904 13.635 8.84415 13.635Z", fill: "#2B62CD" }),
|
|
4420
|
-
React__default.createElement("path", { d: "M13.0131 13.635H12.2558C11.9096 13.635 11.6289 13.9157 11.6289 14.2619V15.156C11.6289 15.5022 11.9096 15.7829 12.2558 15.7829H13.0131C13.3593 15.7829 13.64 15.5022 13.64 15.156V14.2619C13.64 13.9157 13.3593 13.635 13.0131 13.635Z", fill: "#2B62CD" }),
|
|
4421
|
-
React__default.createElement("path", { d: "M17.4472 13.635H16.6899C16.3437 13.635 16.063 13.9157 16.063 14.2619V15.156C16.063 15.5022 16.3437 15.7829 16.6899 15.7829H17.4472C17.7934 15.7829 18.0741 15.5022 18.0741 15.156V14.2619C18.0741 13.9157 17.7934 13.635 17.4472 13.635Z", fill: "#2B62CD" }),
|
|
4422
|
-
React__default.createElement("path", { d: "M20.3599 13.8356C19.6257 13.7546 19.4799 15.2799 18.4553 16.4962C17.8548 17.2093 17.0672 18.4098 16.9656 19.4741C16.8683 20.4944 17.1508 22.9817 20.1944 23.1776C20.5411 23.1981 20.889 23.1859 21.2335 23.1414C24.2599 22.5785 24.1522 19.7982 23.8637 18.815C23.5624 17.7891 22.5906 16.7217 21.9843 16.1555C20.8625 15.1096 21.0477 13.9115 20.3599 13.8356Z", fill: "#FF6F4D" }),
|
|
4423
|
-
React__default.createElement("path", { d: "M22.1395 17.3998C22.1973 17.6137 21.9178 17.7927 21.7534 17.4586C21.6138 17.1746 21.6738 17.0792 21.7817 17.0551C21.896 17.0293 22.0915 17.2227 22.1395 17.3998Z", fill: "white" })));
|
|
4424
|
-
};
|
|
4425
|
-
|
|
4426
4059
|
const TryConceive = (_a) => {
|
|
4427
4060
|
var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
|
|
4428
4061
|
const props = Object.assign({ width: size, height: size }, rest);
|
|
@@ -4449,168 +4082,109 @@ const TryConceive = (_a) => {
|
|
|
4449
4082
|
React__default.createElement("path", { d: "M8.998 3.33765C9.04281 3.33757 9.08649 3.35177 9.12269 3.37818C9.15889 3.40459 9.18574 3.44185 9.19935 3.48455C9.21295 3.52724 9.2126 3.57317 9.19835 3.61565C9.18411 3.65814 9.15669 3.69499 9.1201 3.72085C9.11612 3.72366 9.09696 3.73621 9.08012 3.74873C8.9203 3.86717 8.12331 4.50972 8.08903 5.50728C8.06225 6.28631 8.49221 6.63861 8.90346 6.7085C9.26976 6.77097 9.7341 6.61287 9.88812 6.1191C9.96972 5.85758 9.83247 5.67926 9.67683 5.59963C9.54127 5.53024 9.35737 5.52296 9.25218 5.66323C9.23556 5.68539 9.21474 5.70406 9.1909 5.71818C9.16707 5.73229 9.14068 5.74157 9.11326 5.74549C9.08584 5.7494 9.05791 5.74788 9.03108 5.74101C9.00424 5.73413 8.97903 5.72204 8.95687 5.70542C8.93471 5.6888 8.91604 5.66798 8.90192 5.64414C8.88781 5.62031 8.87853 5.59392 8.87461 5.5665C8.87069 5.53908 8.87222 5.51115 8.87909 5.48432C8.88597 5.45749 8.89806 5.43227 8.91468 5.41011C9.12987 5.1232 9.52225 5.04663 9.86903 5.22406C10.1868 5.38662 10.4404 5.76547 10.2909 6.24479C10.0975 6.86519 9.48411 7.23517 8.83284 7.12443C8.27266 7.02919 7.63134 6.54478 7.66748 5.49279C7.71318 4.15886 8.83674 3.39991 8.88905 3.36823C8.92188 3.34826 8.95957 3.33768 8.998 3.33765Z", fill: "#BA8288" })));
|
|
4450
4083
|
};
|
|
4451
4084
|
|
|
4452
|
-
|
|
4453
|
-
return {
|
|
4454
|
-
root: {
|
|
4455
|
-
justifyContent: 'flex-start',
|
|
4456
|
-
},
|
|
4457
|
-
group: {
|
|
4458
|
-
display: 'flex',
|
|
4459
|
-
alignItems: 'stretch',
|
|
4460
|
-
gap: rem(8),
|
|
4461
|
-
},
|
|
4462
|
-
item: {
|
|
4463
|
-
flex: '1 1 0px',
|
|
4464
|
-
},
|
|
4465
|
-
};
|
|
4466
|
-
});
|
|
4467
|
-
|
|
4468
|
-
const CalculatorType = (_a) => {
|
|
4469
|
-
var { label, classNames, styles } = _a, props = __rest(_a, ["label", "classNames", "styles"]);
|
|
4470
|
-
const { t } = useTranslations();
|
|
4471
|
-
const { classes, theme } = useStyles$1(undefined, {
|
|
4472
|
-
name: 'CalculatorType',
|
|
4473
|
-
classNames,
|
|
4474
|
-
styles,
|
|
4475
|
-
});
|
|
4476
|
-
const isMarryBaby = theme.other.template === 'mb';
|
|
4477
|
-
const iconSize = isMarryBaby ? 32 : 18;
|
|
4478
|
-
const calculatingMethods = [
|
|
4479
|
-
{
|
|
4480
|
-
label: t('ovulationPage.trackPeriod'),
|
|
4481
|
-
value: OvulationCalculatorType.trackPeriod,
|
|
4482
|
-
icon: React__default.createElement(LastPeriod, { size: iconSize, isMarryBaby: isMarryBaby }),
|
|
4483
|
-
},
|
|
4484
|
-
{
|
|
4485
|
-
label: t('ovulationPage.conceive'),
|
|
4486
|
-
value: OvulationCalculatorType.conceive,
|
|
4487
|
-
icon: React__default.createElement(TryConceive, { size: iconSize, isMarryBaby: isMarryBaby }),
|
|
4488
|
-
},
|
|
4489
|
-
{
|
|
4490
|
-
label: t('ovulationPage.avoidPregnancy'),
|
|
4491
|
-
value: OvulationCalculatorType.avoidPregnancy,
|
|
4492
|
-
icon: React__default.createElement(AvoidPregnancy, { size: iconSize, isMarryBaby: isMarryBaby }),
|
|
4493
|
-
},
|
|
4494
|
-
];
|
|
4495
|
-
return (React__default.createElement(Box, null,
|
|
4496
|
-
React__default.createElement(Input$2.Wrapper, { label: label },
|
|
4497
|
-
React__default.createElement(Chip.Group, Object.assign({ defaultValue: String(OvulationCalculatorType.trackPeriod) }, props),
|
|
4498
|
-
React__default.createElement(Box, { className: classes.group }, calculatingMethods.map((i, idx) => (React__default.createElement(Chip, { className: classes.item, key: idx, value: String(i.value), styles: {
|
|
4499
|
-
iconWrapper: {
|
|
4500
|
-
display: 'none',
|
|
4501
|
-
},
|
|
4502
|
-
label: {
|
|
4503
|
-
width: '100%',
|
|
4504
|
-
borderRadius: rem(isMarryBaby ? 12 : 8),
|
|
4505
|
-
padding: 0,
|
|
4506
|
-
border: `1px solid ${isMarryBaby ? '#EAEAEC' : theme.colors.neutral[2]}`,
|
|
4507
|
-
height: '100%',
|
|
4508
|
-
'&[data-checked]': {
|
|
4509
|
-
padding: 0,
|
|
4510
|
-
backgroundColor: isMarryBaby
|
|
4511
|
-
? '#FFE9F1'
|
|
4512
|
-
: theme.colors.blue[0],
|
|
4513
|
-
border: `1px solid ${isMarryBaby ? '#F5B4CB' : theme.colors.blue[1]}`,
|
|
4514
|
-
},
|
|
4515
|
-
[theme.fn.smallerThan('sm')]: {
|
|
4516
|
-
alignItems: 'flex-start',
|
|
4517
|
-
},
|
|
4518
|
-
},
|
|
4519
|
-
} },
|
|
4520
|
-
React__default.createElement(Box, { sx: Object.assign(Object.assign({ width: '100%', display: 'flex', gap: rem(isMarryBaby ? 2 : 8), padding: '8px 16px 8px 12px', justifyContent: 'center', alignItems: 'center' }, (isMarryBaby && {
|
|
4521
|
-
flexDirection: 'column',
|
|
4522
|
-
})), { [theme.fn.smallerThan('sm')]: {
|
|
4523
|
-
flexDirection: 'column',
|
|
4524
|
-
padding: rem(8),
|
|
4525
|
-
} }) },
|
|
4526
|
-
i.icon,
|
|
4527
|
-
React__default.createElement(Text, { size: isMarryBaby ? 'p3' : 'p2', styles: {
|
|
4528
|
-
root: Object.assign(Object.assign({}, (isMarryBaby && {
|
|
4529
|
-
textAlign: 'center',
|
|
4530
|
-
})), { [theme.fn.smallerThan('sm')]: {
|
|
4531
|
-
whiteSpace: 'normal',
|
|
4532
|
-
fontSize: rem(12),
|
|
4533
|
-
lineHeight: rem(18),
|
|
4534
|
-
textAlign: 'center',
|
|
4535
|
-
} }),
|
|
4536
|
-
} }, i.label))))))))));
|
|
4537
|
-
};
|
|
4085
|
+
const OvulationFormContext = createContext({});
|
|
4538
4086
|
|
|
4539
|
-
const DefaultLayout = (_a) => {
|
|
4087
|
+
const DefaultLayout$1 = (_a) => {
|
|
4540
4088
|
var props = __rest(_a, []);
|
|
4541
4089
|
const { t } = useTranslations();
|
|
4542
|
-
const { currentUrl, submitProps, form } = useContext(OvulationFormContext);
|
|
4090
|
+
const { currentUrl, submitProps, form, calculatingMethods } = useContext(OvulationFormContext);
|
|
4543
4091
|
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
4544
|
-
React__default.createElement(
|
|
4545
|
-
React__default.createElement(DatePicker
|
|
4092
|
+
React__default.createElement(HealthToolFormWrapper.ChipGroup, Object.assign({ data: calculatingMethods, label: t('dueDatePage.calculationMethod') }, form.getInputProps('calculatorType'))),
|
|
4093
|
+
React__default.createElement(DatePicker, Object.assign({ placeholder: "DD/MM/YYYY", popoverProps: {
|
|
4546
4094
|
withinPortal: true,
|
|
4547
4095
|
}, label: t('dueDatePage.lastPeriod.lastPeriodLabel'), maxDate: new Date() }, form.getInputProps('lastPeriodDate'))),
|
|
4548
|
-
React__default.createElement(Input$1.Number, Object.assign({ label: t('ovulationPage.cycleLength') + ' ' + t('ovulationPage.dayUnit'), min: 21, max: 45 }, form.getInputProps('cycleLength'))),
|
|
4549
|
-
React__default.createElement(Input$1.Number, Object.assign({ label: t('ovulationPage.periodDuration') + ' ' + t('ovulationPage.dayUnit'), min: 1, max: 15 }, form.getInputProps('periodLength'))),
|
|
4096
|
+
React__default.createElement(Input$1.Number, Object.assign({ label: t('ovulationPage.cycleLength') + ' ' + t('ovulationPage.dayUnit'), min: 21, max: 45, defaultValue: 1 }, form.getInputProps('cycleLength'))),
|
|
4097
|
+
React__default.createElement(Input$1.Number, Object.assign({ label: t('ovulationPage.periodDuration') + ' ' + t('ovulationPage.dayUnit'), min: 1, max: 15, defaultValue: 1 }, form.getInputProps('periodLength'))),
|
|
4550
4098
|
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", className: "due-date-calculate-button", dataEventCategory: "Health Tool", dataEventAction: "Ovulation", dataEventLabel: currentUrl }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
4551
4099
|
};
|
|
4552
4100
|
|
|
4553
|
-
const InlineLayout = (_a) => {
|
|
4101
|
+
const InlineLayout$1 = (_a) => {
|
|
4554
4102
|
var props = __rest(_a, []);
|
|
4555
4103
|
const { t } = useTranslations();
|
|
4556
|
-
const { currentUrl, submitProps, form } = useContext(OvulationFormContext);
|
|
4104
|
+
const { currentUrl, submitProps, form, calculatingMethods } = useContext(OvulationFormContext);
|
|
4557
4105
|
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
|
|
4558
4106
|
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.calculationMethod'), direction: "column", width: '100%' },
|
|
4559
|
-
React__default.createElement(
|
|
4107
|
+
React__default.createElement(HealthToolFormWrapper.ChipGroup, Object.assign({ data: calculatingMethods }, form.getInputProps('calculatorType')))),
|
|
4560
4108
|
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel') },
|
|
4561
|
-
React__default.createElement(DatePicker
|
|
4109
|
+
React__default.createElement(DatePicker, Object.assign({ placeholder: "DD/MM/YYYY", popoverProps: {
|
|
4562
4110
|
withinPortal: true,
|
|
4563
4111
|
}, maxDate: new Date() }, form.getInputProps('lastPeriodDate')))),
|
|
4564
|
-
React__default.createElement(HealthToolFormWrapper.
|
|
4565
|
-
React__default.createElement(
|
|
4566
|
-
|
|
4567
|
-
React__default.createElement(
|
|
4112
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4113
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('ovulationPage.cycleLength') + ' ' + t('ovulationPage.dayUnit') },
|
|
4114
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: 21, max: 45, defaultValue: 1 }, form.getInputProps('cycleLength'), { error: null }))),
|
|
4115
|
+
form.errors.cycleLength && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.cycleLength))),
|
|
4116
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4117
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('ovulationPage.periodDuration') + ' ' + t('ovulationPage.dayUnit') },
|
|
4118
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: 1, max: 15, defaultValue: 1 }, form.getInputProps('periodLength'), { error: null }))),
|
|
4119
|
+
form.errors.periodLength && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.periodLength))),
|
|
4568
4120
|
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", className: "due-date-calculate-button", dataEventCategory: "Health Tool", dataEventAction: "Ovulation", dataEventLabel: currentUrl }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
4569
4121
|
};
|
|
4570
4122
|
|
|
4571
|
-
const MbLayout$
|
|
4123
|
+
const MbLayout$2 = (_a) => {
|
|
4572
4124
|
var props = __rest(_a, []);
|
|
4573
4125
|
const { t } = useTranslations();
|
|
4574
|
-
const { currentUrl, submitProps, form } = useContext(OvulationFormContext);
|
|
4126
|
+
const { currentUrl, submitProps, form, calculatingMethods } = useContext(OvulationFormContext);
|
|
4575
4127
|
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
|
|
4576
4128
|
React__default.createElement(Input$1.Wrapper, { label: React__default.createElement(Text, { size: "p4", sx: { fontWeight: 'normal' } }, t('dueDatePage.calculationMethod')) },
|
|
4577
|
-
React__default.createElement(
|
|
4129
|
+
React__default.createElement(HealthToolFormWrapper.ChipGroup, Object.assign({ data: calculatingMethods }, form.getInputProps('calculatorType')))),
|
|
4578
4130
|
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel'), rightSection: React__default.createElement(CalendarMB, { size: 24 }) },
|
|
4579
|
-
React__default.createElement(DatePicker
|
|
4131
|
+
React__default.createElement(DatePicker, Object.assign({ placeholder: "DD/MM/YYYY", popoverProps: {
|
|
4580
4132
|
withinPortal: true,
|
|
4581
4133
|
}, maxDate: new Date(), rightSection: null }, form.getInputProps('lastPeriodDate')))),
|
|
4582
4134
|
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('ovulationPage.cycleLength'), rightSection: t('ovulationPage.dayUnit') },
|
|
4583
|
-
React__default.createElement(Input$1.Number, Object.assign({ min: 21, max: 45 }, form.getInputProps('cycleLength')))),
|
|
4135
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: 21, max: 45, defaultValue: 1 }, form.getInputProps('cycleLength')))),
|
|
4584
4136
|
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('ovulationPage.periodDuration'), rightSection: t('ovulationPage.dayUnit') },
|
|
4585
|
-
React__default.createElement(Input$1.Number, Object.assign({ min: 1, max: 15 }, form.getInputProps('periodLength')))),
|
|
4137
|
+
React__default.createElement(Input$1.Number, Object.assign({ min: 1, max: 15, defaultValue: 1 }, form.getInputProps('periodLength')))),
|
|
4586
4138
|
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", className: "due-date-calculate-button", dataEventCategory: "Health Tool", dataEventAction: "Ovulation", dataEventLabel: currentUrl }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
4587
4139
|
};
|
|
4588
4140
|
|
|
4589
|
-
var OvulationCalculatorType;
|
|
4141
|
+
var OvulationCalculatorType$1;
|
|
4590
4142
|
(function (OvulationCalculatorType) {
|
|
4591
4143
|
OvulationCalculatorType[OvulationCalculatorType["trackPeriod"] = 0] = "trackPeriod";
|
|
4592
4144
|
OvulationCalculatorType[OvulationCalculatorType["conceive"] = 1] = "conceive";
|
|
4593
4145
|
OvulationCalculatorType[OvulationCalculatorType["avoidPregnancy"] = 2] = "avoidPregnancy";
|
|
4594
|
-
})(OvulationCalculatorType || (OvulationCalculatorType = {}));
|
|
4146
|
+
})(OvulationCalculatorType$1 || (OvulationCalculatorType$1 = {}));
|
|
4595
4147
|
const OvulationForm = (_a) => {
|
|
4596
|
-
var { formLayout = 'default', submitProps, currentUrl, onSubmit } = _a, props = __rest(_a, ["formLayout", "submitProps", "currentUrl", "onSubmit"]);
|
|
4148
|
+
var { formLayout = 'default', submitProps, currentUrl, isMobile, onSubmit } = _a, props = __rest(_a, ["formLayout", "submitProps", "currentUrl", "isMobile", "onSubmit"]);
|
|
4597
4149
|
const theme = useMantineTheme();
|
|
4150
|
+
const { t } = useTranslations();
|
|
4598
4151
|
const isMarryBaby = theme.other.template === 'mb';
|
|
4599
|
-
const form = useForm
|
|
4152
|
+
const form = useForm({
|
|
4600
4153
|
initialValues: {
|
|
4601
|
-
calculatorType: String(OvulationCalculatorType.trackPeriod),
|
|
4154
|
+
calculatorType: String(OvulationCalculatorType$1.trackPeriod),
|
|
4602
4155
|
periodLength: 7,
|
|
4603
4156
|
cycleLength: 28,
|
|
4604
4157
|
lastPeriodDate: new Date(),
|
|
4605
4158
|
},
|
|
4159
|
+
validate: {
|
|
4160
|
+
periodLength: isNotEmpty(t('validation.error.requiredField')),
|
|
4161
|
+
cycleLength: isNotEmpty(t('validation.error.requiredField')),
|
|
4162
|
+
},
|
|
4606
4163
|
});
|
|
4607
4164
|
const commonProps = Object.assign({ onSubmit: form.onSubmit(onSubmit) }, props);
|
|
4608
|
-
|
|
4165
|
+
const calculatingMethods = [
|
|
4166
|
+
{
|
|
4167
|
+
label: t('ovulationPage.trackPeriod'),
|
|
4168
|
+
value: OvulationCalculatorType$1.trackPeriod,
|
|
4169
|
+
icon: React__default.createElement(LastPeriod, null),
|
|
4170
|
+
},
|
|
4171
|
+
{
|
|
4172
|
+
label: t('ovulationPage.conceive'),
|
|
4173
|
+
value: OvulationCalculatorType$1.conceive,
|
|
4174
|
+
icon: React__default.createElement(TryConceive, null),
|
|
4175
|
+
},
|
|
4176
|
+
{
|
|
4177
|
+
label: t('ovulationPage.avoidPregnancy'),
|
|
4178
|
+
value: OvulationCalculatorType$1.avoidPregnancy,
|
|
4179
|
+
icon: React__default.createElement(AvoidPregnancy, null),
|
|
4180
|
+
},
|
|
4181
|
+
];
|
|
4182
|
+
return (React__default.createElement(OvulationFormContext.Provider, { value: { submitProps, currentUrl, form, isMobile, calculatingMethods } }, isMarryBaby ? (React__default.createElement(MbLayout$2, Object.assign({}, commonProps))) : formLayout === 'inline' ? (React__default.createElement(InlineLayout$1, Object.assign({}, commonProps))) : (React__default.createElement(DefaultLayout$1, Object.assign({}, commonProps)))));
|
|
4609
4183
|
};
|
|
4610
4184
|
|
|
4611
4185
|
const OvulationCardEmbed = (_a) => {
|
|
4612
4186
|
var _b;
|
|
4613
|
-
var { ovulationPageInfo, expertUrl, formProps } = _a, props = __rest(_a, ["ovulationPageInfo", "expertUrl", "formProps"]);
|
|
4187
|
+
var { ovulationPageInfo, expertUrl, formProps, isMobile } = _a, props = __rest(_a, ["ovulationPageInfo", "expertUrl", "formProps", "isMobile"]);
|
|
4614
4188
|
const { t } = useTranslations();
|
|
4615
4189
|
return (React__default.createElement(HealthToolCardWrapper, Object.assign({ isPregTool: true }, props),
|
|
4616
4190
|
React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.featured_image) ||
|
|
@@ -4620,7 +4194,93 @@ const OvulationCardEmbed = (_a) => {
|
|
|
4620
4194
|
date: ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.reviewed_date,
|
|
4621
4195
|
} }),
|
|
4622
4196
|
React__default.createElement(HealthToolCardWrapper.Body, null,
|
|
4623
|
-
React__default.createElement(OvulationForm, Object.assign({}, formProps)))));
|
|
4197
|
+
React__default.createElement(OvulationForm, Object.assign({ isMobile: isMobile }, formProps)))));
|
|
4198
|
+
};
|
|
4199
|
+
|
|
4200
|
+
const BabyVaccineFormContext = createContext({});
|
|
4201
|
+
|
|
4202
|
+
const DefaultLayout = (_a) => {
|
|
4203
|
+
var props = __rest(_a, []);
|
|
4204
|
+
const { t } = useTranslations();
|
|
4205
|
+
const { currentUrl, submitProps, form } = useContext(BabyVaccineFormContext);
|
|
4206
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
4207
|
+
React__default.createElement(GenderOptionControl, Object.assign({ isBaby: true }, form.getInputProps('gender'))),
|
|
4208
|
+
React__default.createElement(DatePicker, Object.assign({ label: t('babyGrowth.input.birthday'), placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
4209
|
+
withinPortal: true,
|
|
4210
|
+
}, maxDate: new Date() }, form.getInputProps('age'))),
|
|
4211
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", className: "due-date-calculate-button", dataEventCategory: "Health Tool", dataEventAction: "Vaccination Tool", dataEventLabel: currentUrl }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
4212
|
+
};
|
|
4213
|
+
|
|
4214
|
+
const InlineLayout = (_a) => {
|
|
4215
|
+
var props = __rest(_a, []);
|
|
4216
|
+
const { t } = useTranslations();
|
|
4217
|
+
const { currentUrl, submitProps, form } = useContext(BabyVaccineFormContext);
|
|
4218
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
|
|
4219
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4220
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('tools.selectBabyGender'), width: 'none' },
|
|
4221
|
+
React__default.createElement(GenderOptionControl, Object.assign({ isBaby: true, hideLabel: true, type: "radio" }, form.getInputProps('gender')))),
|
|
4222
|
+
form.errors.gender && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
|
|
4223
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4224
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('babyGrowth.input.birthday') },
|
|
4225
|
+
React__default.createElement(DatePicker, Object.assign({ placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
4226
|
+
withinPortal: true,
|
|
4227
|
+
}, maxDate: new Date() }, form.getInputProps('age'), { error: null }))),
|
|
4228
|
+
form.errors.age && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
|
|
4229
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", className: "due-date-calculate-button", dataEventCategory: "Health Tool", dataEventAction: "Vaccination Tool", dataEventLabel: currentUrl }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
4230
|
+
};
|
|
4231
|
+
|
|
4232
|
+
const MbLayout$1 = (_a) => {
|
|
4233
|
+
var props = __rest(_a, []);
|
|
4234
|
+
const { t } = useTranslations();
|
|
4235
|
+
const { currentUrl, submitProps, form } = useContext(BabyVaccineFormContext);
|
|
4236
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
|
|
4237
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4238
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('tools.selectBabyGender'), width: 'none' },
|
|
4239
|
+
React__default.createElement(GenderOptionControl, Object.assign({ isBaby: true, hideLabel: true, type: "radio" }, form.getInputProps('gender')))),
|
|
4240
|
+
form.errors.gender && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
|
|
4241
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
4242
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('babyGrowth.input.birthday') },
|
|
4243
|
+
React__default.createElement(DatePicker, Object.assign({ placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
4244
|
+
withinPortal: true,
|
|
4245
|
+
}, maxDate: new Date() }, form.getInputProps('age'), { error: null }))),
|
|
4246
|
+
form.errors.age && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
|
|
4247
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", className: "due-date-calculate-button", dataEventCategory: "Health Tool", dataEventAction: "Vaccination Tool", dataEventLabel: currentUrl }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
4248
|
+
};
|
|
4249
|
+
|
|
4250
|
+
var OvulationCalculatorType;
|
|
4251
|
+
(function (OvulationCalculatorType) {
|
|
4252
|
+
OvulationCalculatorType[OvulationCalculatorType["trackPeriod"] = 0] = "trackPeriod";
|
|
4253
|
+
OvulationCalculatorType[OvulationCalculatorType["conceive"] = 1] = "conceive";
|
|
4254
|
+
OvulationCalculatorType[OvulationCalculatorType["avoidPregnancy"] = 2] = "avoidPregnancy";
|
|
4255
|
+
})(OvulationCalculatorType || (OvulationCalculatorType = {}));
|
|
4256
|
+
const BabyVaccineForm = (_a) => {
|
|
4257
|
+
var { formLayout = 'default', submitProps, currentUrl, onSubmit } = _a, props = __rest(_a, ["formLayout", "submitProps", "currentUrl", "onSubmit"]);
|
|
4258
|
+
const { t } = useTranslations();
|
|
4259
|
+
const theme = useMantineTheme();
|
|
4260
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
4261
|
+
const form = useForm({
|
|
4262
|
+
validate: {
|
|
4263
|
+
gender: isNotEmpty(t('validation.error.requiredField')),
|
|
4264
|
+
age: isNotEmpty(t('validation.error.requiredField')),
|
|
4265
|
+
},
|
|
4266
|
+
});
|
|
4267
|
+
const commonProps = Object.assign({ onSubmit: form.onSubmit(onSubmit) }, props);
|
|
4268
|
+
return (React__default.createElement(BabyVaccineFormContext.Provider, { value: { submitProps, currentUrl, form } }, isMarryBaby ? (React__default.createElement(MbLayout$1, Object.assign({}, commonProps))) : formLayout === 'inline' ? (React__default.createElement(InlineLayout, Object.assign({}, commonProps))) : (React__default.createElement(DefaultLayout, Object.assign({}, commonProps)))));
|
|
4269
|
+
};
|
|
4270
|
+
|
|
4271
|
+
const BabyVaccineCardEmbed = (_a) => {
|
|
4272
|
+
var _b, _c, _d;
|
|
4273
|
+
var { babyVaccineContent, formProps } = _a, props = __rest(_a, ["babyVaccineContent", "formProps"]);
|
|
4274
|
+
const { t } = useTranslations();
|
|
4275
|
+
return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
|
|
4276
|
+
React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (babyVaccineContent === null || babyVaccineContent === void 0 ? void 0 : babyVaccineContent.featuredImage) ||
|
|
4277
|
+
CommonGAssets.getAssetPath('health-tools/baby-vaccine-icon.svg'), loading: "lazy" }), heading: t('babyVaccineTool.heading'), medicalReview: {
|
|
4278
|
+
link: ((_b = babyVaccineContent === null || babyVaccineContent === void 0 ? void 0 : babyVaccineContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link) || '',
|
|
4279
|
+
reviewer: ((_c = babyVaccineContent === null || babyVaccineContent === void 0 ? void 0 : babyVaccineContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer) || '',
|
|
4280
|
+
date: ((_d = babyVaccineContent === null || babyVaccineContent === void 0 ? void 0 : babyVaccineContent.reviewBy) === null || _d === void 0 ? void 0 : _d.date) || '',
|
|
4281
|
+
} }),
|
|
4282
|
+
React__default.createElement(HealthToolCardWrapper.Body, null,
|
|
4283
|
+
React__default.createElement(BabyVaccineForm, Object.assign({}, formProps)))));
|
|
4624
4284
|
};
|
|
4625
4285
|
|
|
4626
4286
|
const PWGFormContext = createContext({});
|
|
@@ -4633,9 +4293,15 @@ const DefaultForm = (_a) => {
|
|
|
4633
4293
|
const isMarryBaby = theme.other.template === 'mb';
|
|
4634
4294
|
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
4635
4295
|
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'))),
|
|
4636
|
-
React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weightBeforeInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max
|
|
4637
|
-
|
|
4638
|
-
|
|
4296
|
+
React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weightBeforeInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
|
|
4297
|
+
content: '50',
|
|
4298
|
+
}) }, form.getInputProps('lastWeight'))),
|
|
4299
|
+
React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.heightInput'), min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max, placeholder: t('tools.inputPlaceholder', {
|
|
4300
|
+
content: '160',
|
|
4301
|
+
}) }, form.getInputProps('height'))),
|
|
4302
|
+
React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weightInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
|
|
4303
|
+
content: '50',
|
|
4304
|
+
}) }, form.getInputProps('weight'))),
|
|
4639
4305
|
React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({ label: t('pregnancyWeightGain.havingTwins') }, form.getInputProps('hasTwin'))),
|
|
4640
4306
|
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'))));
|
|
4641
4307
|
};
|
|
@@ -4712,7 +4378,7 @@ const PWGForm = (_a) => {
|
|
|
4712
4378
|
const { t, locale } = useTranslations();
|
|
4713
4379
|
const theme = useMantineTheme();
|
|
4714
4380
|
const isMarryBaby = theme.other.template === 'mb';
|
|
4715
|
-
const form = useForm
|
|
4381
|
+
const form = useForm({
|
|
4716
4382
|
validate: {
|
|
4717
4383
|
pregnantWeek: isNotEmpty(t('validation.error.requiredField')),
|
|
4718
4384
|
height: isNotEmpty(t('validation.error.requiredField')),
|
|
@@ -6053,7 +5719,7 @@ const BannerWithOptions = (props) => {
|
|
|
6053
5719
|
? itemsProp.filter((i) => !Boolean(i.isPNBtn)).filter(Boolean)
|
|
6054
5720
|
: itemsProp, [itemsProp]);
|
|
6055
5721
|
const { getHealthToolLink } = useHealthToolsCache(locale);
|
|
6056
|
-
const form = useForm
|
|
5722
|
+
const form = useForm({
|
|
6057
5723
|
initialValues: {
|
|
6058
5724
|
bannerOptions: [],
|
|
6059
5725
|
},
|
|
@@ -6422,7 +6088,7 @@ const MainForm = () => {
|
|
|
6422
6088
|
const isLoggedIn = userInfo === null || userInfo === void 0 ? void 0 : userInfo.id;
|
|
6423
6089
|
const { currentUrl, isMobile, pnSuggestCategory = [], nextStep, formValues, setFormValues, onSubmit: _onSubmit, submitLoading, selectCategory, setCategoryLibs, setSelectCategory, maxSelectCategory, } = useContext(PremiumNewsletterModalContext);
|
|
6424
6090
|
const pnSuggestCategoryIds = pnSuggestCategory.map((i) => i.catId);
|
|
6425
|
-
const form = useForm
|
|
6091
|
+
const form = useForm({
|
|
6426
6092
|
validate: {
|
|
6427
6093
|
name: isNotEmpty(t('healthToolPNModal.mainForm.requireName')),
|
|
6428
6094
|
},
|
|
@@ -7580,4 +7246,4 @@ const UserProfileNavigation = ({ SSO_URL, UP_BASEPATH = 'user', themeName = 'hel
|
|
|
7580
7246
|
logoutButton))));
|
|
7581
7247
|
};
|
|
7582
7248
|
|
|
7583
|
-
export {
|
|
7249
|
+
export { AdBlock as $, Alert as A, Badge as B, Checkbox as C, DoctorInfo as D, BabyPoopEmbed as E, FileDropdown as F, Grid as G, BabyPoopForm as H, IconText as I, THRCardEmbed as J, ThrForm as K, BMRCardEmbed as L, MobileBottomNavigation as M, OvulationForm as N, OvulationCardEmbed as O, Pagination as P, BabyVaccineForm as Q, Radio as R, ScrollList as S, Tag as T, BabyVaccineCardEmbed as U, PWGCardEmbed as V, PWGForm as W, DateRangePicker as X, Breadcrumbs as Y, ShareContainer as Z, ShareDrawer as _, Avatar as a, FixedBottomAdBlock as a0, SurveyOrPremiumBanner as a1, MAPPING_CATEGORY_PREMIUM_TYPE as a2, MAPPING_CATEGORY_PREMIUM_API_TYPE as a3, SideBannerModal as a4, UserProfileNavigation as a5, NavHeader as a6, UserStats as a7, 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, DueDateForm as v, DueDateCardEmbed as w, BMICardEmbed as x, BmiForm as y, BabyGrowthCardEmbed as z };
|