@hhgtech/hhg-components 1.29.82 → 1.29.84
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/LastPeriod-1f403d10.js +29 -0
- package/build/Locale-9e8a2452.js +15 -0
- package/build/{WhatsApp-46f4f408.js → WhatsApp-959e02b9.js} +1 -1
- package/build/adapters.js +22 -17
- package/build/atoms.js +51 -45
- package/build/babyGrowth.js +169 -162
- package/build/cache.js +3 -3
- package/build/care.js +22 -17
- package/build/components.js +136 -109
- package/build/{constants-223c01fc.js → constants-23f15065.js} +4 -4
- package/build/constants-78b4275f.js +18 -0
- package/build/constants.js +17 -13
- package/build/constantsDomainLocales.js +34 -0
- package/build/{isProduction-20cd663d.js → constantsIsProduction.js} +2 -0
- package/build/constantsRiskScreener.js +21 -0
- package/build/constantsSite.js +134 -0
- package/build/{core-9d69a722.js → core-215586ea.js} +4 -4
- package/build/{dataTransform-e39297c1.js → dataTransform-9de4c42b.js} +1 -106
- package/build/dataTransform-cec9484d.js +13 -0
- package/build/ecom.js +10 -6
- package/build/embeddedHeathToolCards_babyGrowth.js +64 -0
- package/build/embeddedHeathToolCards_babyPoop.js +57 -0
- package/build/embeddedHeathToolCards_babyVaccine.js +64 -0
- package/build/embeddedHeathToolCards_bmi_bmi.js +70 -0
- package/build/embeddedHeathToolCards_bmrBmr.js +70 -0
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +65 -0
- package/build/embeddedHeathToolCards_helpers.js +11 -0
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +64 -0
- package/build/embeddedHeathToolCards_pwg_pwg.js +70 -0
- package/build/embeddedHeathToolCards_targetHeartRate.js +73 -0
- package/build/esm/LastPeriod-6a476391.js +23 -0
- package/build/esm/Locale-50ec684c.js +15 -0
- package/build/esm/{WhatsApp-c599b715.js → WhatsApp-5357afb0.js} +1 -1
- package/build/esm/adapters.js +22 -17
- package/build/esm/atoms.js +51 -45
- package/build/esm/babyGrowth.js +87 -81
- package/build/esm/cache.js +3 -3
- package/build/esm/care.js +22 -17
- package/build/esm/components.js +104 -77
- package/build/esm/constants-7154766a.js +16 -0
- package/build/esm/{constants-bb470362.js → constants-efabd249.js} +2 -2
- package/build/esm/constants.js +7 -3
- package/build/esm/constantsDomainLocales.js +29 -0
- package/build/esm/{isProduction-1937d355.js → constantsIsProduction.js} +1 -1
- package/build/esm/constantsRiskScreener.js +17 -0
- package/build/esm/constantsSite.js +129 -0
- package/build/esm/{core-80bfe8b7.js → core-e76c2318.js} +2 -2
- package/build/esm/dataTransform-1ac3c823.js +11 -0
- package/build/esm/{dataTransform-623716c3.js → dataTransform-8dd2163d.js} +2 -101
- package/build/esm/ecom.js +9 -5
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +56 -0
- package/build/esm/embeddedHeathToolCards_babyPoop.js +49 -0
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +56 -0
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +62 -0
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +62 -0
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +57 -0
- package/build/esm/embeddedHeathToolCards_helpers.js +7 -0
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +56 -0
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +62 -0
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +65 -0
- package/build/esm/{fixedBottomAdBlock-60a5d48f.js → fixedBottomAdBlock-95355cb0.js} +35 -410
- package/build/esm/footer.js +23 -18
- package/build/esm/gAssets.js +4 -5
- package/build/esm/healthToolsCardWrapper.js +33 -0
- package/build/esm/healthToolsForm.js +39 -25
- package/build/esm/hooks.js +21 -17
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-bcedec73.js → index-08e0e4a7.js} +15 -13
- package/build/esm/{index-0ca9b175.js → index-0a17b3c4.js} +2 -2
- package/build/esm/{index-02d3f05b.js → index-0bac9140.js} +23 -19
- package/build/esm/{index-2dc7803d.js → index-0d547073.js} +6 -5
- package/build/esm/{index-d6a5f5cf.js → index-1090bed4.js} +17 -260
- package/build/esm/index-114fe334.js +60 -0
- package/build/esm/{index-e0b0d6a2.js → index-1246c476.js} +7 -7
- package/build/esm/{index-9f99909b.js → index-19fa8adc.js} +3 -3
- package/build/esm/{index-7c384ae6.js → index-1baef0ed.js} +6 -5
- package/build/esm/{index-7a1ea734.js → index-3b3b048f.js} +3 -3
- package/build/esm/{index-6210f454.js → index-3dcece1c.js} +9 -168
- package/build/esm/index-3df7ce17.js +140 -0
- package/build/esm/{index-1c9b481b.js → index-455fad93.js} +2 -2
- package/build/esm/{index-0cd3523c.js → index-4662c50d.js} +35 -31
- package/build/esm/index-492f7199.js +370 -0
- package/build/esm/{index-acf8b60e.js → index-4dcb460d.js} +2 -2
- package/build/esm/{index-9471fca1.js → index-562833a7.js} +2 -2
- package/build/esm/{index-0ee66974.js → index-583f25e2.js} +2 -2
- package/build/esm/index-5caf9237.js +91 -0
- package/build/esm/{index-21256394.js → index-6153901b.js} +1 -1
- package/build/esm/index-6b58602f.js +259 -0
- package/build/esm/{index-046778af.js → index-6d782bf2.js} +2 -2
- package/build/esm/{index-8eb04f36.js → index-7d0b67e7.js} +11 -11
- package/build/esm/{index-10ab6596.js → index-7d620769.js} +8 -7
- package/build/esm/{index-07f3f47e.js → index-8035d37c.js} +2 -2
- package/build/esm/{index-c013ba1b.js → index-805ffb74.js} +5 -4
- package/build/esm/{index-9b3a8b6d.js → index-83cc8492.js} +12 -10
- package/build/esm/{index-5723381f.js → index-88ff7c55.js} +2 -2
- package/build/esm/{index-c2584051.js → index-8c14a956.js} +4 -4
- package/build/esm/{index-f22f6e6e.js → index-95b6e3cc.js} +9 -8
- package/build/esm/{index-189d7601.js → index-99a12287.js} +3 -15
- package/build/esm/{index-8fcf671c.js → index-a5cb4b11.js} +8 -8
- package/build/esm/{index-cfedca38.js → index-a98a28a2.js} +2 -2
- package/build/esm/{index-13d8dd4b.js → index-a99b900d.js} +7 -6
- package/build/esm/{index-ea63e0d2.js → index-ac4b3bc6.js} +4 -4
- package/build/esm/{index-0b745f46.js → index-ae4c20ce.js} +20 -18
- package/build/esm/{index-fa67d66e.js → index-aeb1293f.js} +21 -19
- package/build/esm/index-af808663.js +249 -0
- package/build/esm/{constants-fa475b0f.js → index-b4dc58c1.js} +6 -21
- package/build/esm/{index-f660abb7.js → index-b50d36ad.js} +3 -3
- package/build/esm/{index-c430773c.js → index-b8c2e125.js} +29 -25
- package/build/esm/{index-219e3a35.js → index-c1abf550.js} +11 -11
- package/build/esm/{index-01b5d2e9.js → index-c526c065.js} +4 -4
- package/build/esm/{index-1d3c6ce7.js → index-c7b7301d.js} +1 -1
- package/build/esm/{index-29908d2c.js → index-ca9538ec.js} +1 -1
- package/build/esm/{index-049e0270.js → index-d0b52e26.js} +3 -3
- package/build/esm/{index-cdc50618.js → index-d502b20b.js} +1 -1
- package/build/esm/index-d6cfeea2.js +147 -0
- package/build/esm/index-e91300f9.js +101 -0
- package/build/esm/{index-f4b938f2.js → index-eb03fb5b.js} +1 -1
- package/build/esm/{index-9b9c1499.js → index-f34b4053.js} +2 -2
- package/build/esm/{index-01405723.js → index-f417df8c.js} +13 -12
- package/build/esm/index-f4d8dd94.js +233 -0
- package/build/esm/index-fd485fb3.js +174 -0
- package/build/esm/index.js +118 -90
- package/build/esm/interfaces/constants/domainLocales.d.ts +25 -0
- package/build/esm/interfaces/constants/index.d.ts +1 -25
- package/build/esm/{labelSorting-7351409a.js → labelSorting-b2983be2.js} +4 -4
- package/build/esm/lead.js +26 -21
- package/build/esm/{logoIcon-3a581efb.js → logoIcon-608cfa3e.js} +2 -2
- package/build/esm/mantine.js +28 -23
- package/build/esm/misc.js +27 -21
- package/build/esm/{cookieHelper-6c3b4790.js → miscCookieHelper.js} +1 -1
- package/build/esm/{defaultClassWrapper-00903c00.js → miscDefaultClassWrapper.js} +1 -1
- package/build/esm/{getDynamicHealthTool-82855adc.js → miscGetDynamicHealthTool.js} +13 -5
- package/build/esm/{getSocialList-7d2cf48d.js → miscGetSocialList.js} +20 -10
- package/build/esm/{dataTransform-55f67eed.js → miscScreenSizeContext.js} +2 -12
- package/build/esm/{theme-7dadf4a1.js → miscTheme.js} +1 -1
- package/build/esm/molecules.js +84 -57
- package/build/esm/navigation.js +44 -37
- package/build/esm/onboardingV2.js +30 -25
- package/build/esm/organisms.js +48 -41
- package/build/esm/other-af591390.js +102 -0
- package/build/esm/pwg.js +25 -20
- package/build/esm/{routing-9e330438.js → routing-0e27d82c.js} +3 -2
- package/build/esm/subot.js +35 -29
- package/build/esm/surveyOrPremiumBanner.js +34 -28
- package/build/esm/surveyQuestionCard.js +11 -10
- package/build/esm/{surveyThankyouCard-ec204631.js → surveyThankyouCard-71a1b36a.js} +6 -6
- package/build/esm/together/togetherComponentGlobalContext.d.ts +1 -2
- package/build/esm/together.js +50 -43
- package/build/esm/togetherApiPaths.js +165 -0
- package/build/esm/togetherApiUtils.js +10 -0
- package/build/esm/togetherAtoms.js +34 -28
- package/build/esm/togetherComponentGlobalContext.js +7 -9
- package/build/esm/togetherMolecules.js +41 -34
- package/build/esm/togetherOrganisms.js +45 -38
- package/build/esm/{treePopoverMenu-cb214db6.js → treePopoverMenu-f68aed40.js} +18 -16
- package/build/esm/{types-ffcf5fb4.js → types-e0541daf.js} +14 -13
- package/build/esm/types.js +2 -1
- package/build/esm/{useCategory-553bee0b.js → useCategory-5f3d6d81.js} +6 -5
- package/build/esm/{useHealthToolCache-6ce1724e.js → useHealthToolCache-73e49d74.js} +2 -2
- package/build/esm/{useMantineLocale-453f8013.js → useMantineLocale-845c1956.js} +5 -3
- package/build/esm/{usePlacesAutocomplete-8925d4fb.js → usePlacesAutocomplete-e1da3570.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +7 -9
- package/build/esm/{useTranslations-b970f667.js → useTranslations-32ff6c72.js} +1 -1
- package/build/esm/{utils-3b29eb79.js → utils-71ccce82.js} +16 -163
- package/build/{utils-15a9772e.js → esm/utils-94f8d19f.js} +1 -114
- package/build/esm/{utils-6d45bdd1.js → utils-feb0c914.js} +2 -1
- package/build/esm/vaccination.js +23 -18
- package/build/{fixedBottomAdBlock-0129a006.js → fixedBottomAdBlock-d9fa09d7.js} +155 -540
- package/build/footer.js +23 -18
- package/build/gAssets.js +4 -5
- package/build/healthToolsCardWrapper.js +41 -0
- package/build/healthToolsForm.js +45 -31
- package/build/hooks.js +21 -17
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-b66ae554.js → index-0ae8b4ca.js} +18 -17
- package/build/{index-4bc690c9.js → index-17d80455.js} +9 -9
- package/build/{index-e3bbd009.js → index-1f94d57c.js} +33 -197
- package/build/index-249e3f6f.js +146 -0
- package/build/index-2f6d4fee.js +153 -0
- package/build/index-31c0bdad.js +256 -0
- package/build/{index-3eb666e6.js → index-353ce6f8.js} +1 -1
- package/build/{index-6aeb5ff5.js → index-35ac1158.js} +59 -59
- package/build/{index-a8680a58.js → index-37001a3b.js} +6 -6
- package/build/{index-9e8877c0.js → index-3ae597e3.js} +2 -2
- package/build/{index-1f3fc2e3.js → index-3ae93a30.js} +3 -15
- package/build/{index-765ed75d.js → index-3f9484b9.js} +6 -6
- package/build/{index-1fdf2f01.js → index-4184d8d6.js} +4 -4
- package/build/index-487a1272.js +66 -0
- package/build/{index-10760994.js → index-4ac79663.js} +9 -9
- package/build/{index-53e14542.js → index-4b035057.js} +4 -4
- package/build/{index-1e1d8eb1.js → index-565f76e4.js} +26 -24
- package/build/{index-16ed0d98.js → index-567f7d66.js} +12 -11
- package/build/{index-2fd9063e.js → index-592139a8.js} +4 -4
- package/build/{index-7953fb8e.js → index-672f0358.js} +12 -12
- package/build/{index-71843eb4.js → index-6c5d8ad9.js} +5 -5
- package/build/index-6c91ec06.js +108 -0
- package/build/{index-4cdcdbbe.js → index-71618efb.js} +13 -12
- package/build/{index-ec34e358.js → index-743f391a.js} +14 -14
- package/build/{index-fd3e1d16.js → index-7565806b.js} +3 -3
- package/build/{index-54aeefca.js → index-7efe7581.js} +2 -2
- package/build/{index-f222ee45.js → index-83259c86.js} +2 -2
- package/build/{index-dff7ee1b.js → index-848c257f.js} +41 -39
- package/build/{index-7ecc69af.js → index-89785eb5.js} +19 -18
- package/build/index-8bc74421.js +97 -0
- package/build/index-8e6acb31.js +320 -0
- package/build/{index-a9bbb5aa.js → index-9112bf2c.js} +11 -11
- package/build/{index-dd074159.js → index-98680432.js} +1 -1
- package/build/{index-ca616373.js → index-992f2a88.js} +2 -2
- package/build/{index-33432b02.js → index-9a0317f3.js} +33 -33
- package/build/{index-405faafa.js → index-a3320ed8.js} +2 -2
- package/build/{index-206afefb.js → index-a75603b7.js} +6 -5
- package/build/{index-4b7d4b5b.js → index-b1885310.js} +9 -9
- package/build/{index-077bf48f.js → index-b9fb9f3a.js} +52 -50
- package/build/index-baf2d414.js +267 -0
- package/build/{index-a6a9855f.js → index-c22aa4ef.js} +11 -11
- package/build/index-c2578f13.js +377 -0
- package/build/index-c2fec0fb.js +239 -0
- package/build/{constants-f182fc32.js → index-d1fb44a6.js} +8 -24
- package/build/{index-466a2c32.js → index-d5ba18da.js} +48 -46
- package/build/{index-0b727664.js → index-d97f9371.js} +8 -7
- package/build/{index-a9bdf889.js → index-d99df528.js} +25 -24
- package/build/{index-64d8db08.js → index-e0d59d3e.js} +5 -5
- package/build/{index-130e0f35.js → index-e4bfc43c.js} +68 -64
- package/build/index-e8d0d01b.js +180 -0
- package/build/{index-d9919cd2.js → index-ebfbb401.js} +119 -115
- package/build/{index-2afbeb3d.js → index-f0cd2973.js} +137 -133
- package/build/{index-4357a324.js → index-f31f282c.js} +11 -11
- package/build/{index-a2664204.js → index-fdfaa206.js} +7 -7
- package/build/index.js +195 -167
- package/build/interfaces/constants/domainLocales.d.ts +25 -0
- package/build/interfaces/constants/index.d.ts +1 -25
- package/build/{labelSorting-f86081b7.js → labelSorting-bafa4da1.js} +4 -4
- package/build/lead.js +43 -38
- package/build/{logoIcon-21a16853.js → logoIcon-2eaa3600.js} +2 -2
- package/build/mantine.js +28 -23
- package/build/misc.js +39 -33
- package/build/{cookieHelper-86ae022e.js → miscCookieHelper.js} +2 -0
- package/build/{defaultClassWrapper-b7719693.js → miscDefaultClassWrapper.js} +2 -0
- package/build/{getDynamicHealthTool-f08b5fab.js → miscGetDynamicHealthTool.js} +14 -4
- package/build/{getSocialList-8cc32f7c.js → miscGetSocialList.js} +50 -38
- package/build/{dataTransform-ded2692d.js → miscScreenSizeContext.js} +3 -12
- package/build/{theme-be20929b.js → miscTheme.js} +2 -0
- package/build/molecules.js +106 -79
- package/build/navigation.js +44 -37
- package/build/onboardingV2.js +40 -35
- package/build/organisms.js +48 -41
- package/build/other-b4596d33.js +104 -0
- package/build/pwg.js +60 -55
- package/build/{routing-d6c9099a.js → routing-c7527743.js} +10 -9
- package/build/subot.js +104 -98
- package/build/surveyOrPremiumBanner.js +34 -28
- package/build/surveyQuestionCard.js +11 -10
- package/build/{surveyThankyouCard-5b23b8f6.js → surveyThankyouCard-cef7f501.js} +25 -25
- package/build/together/togetherComponentGlobalContext.d.ts +1 -2
- package/build/together.js +50 -43
- package/build/togetherApiPaths.js +173 -0
- package/build/togetherApiUtils.js +40 -0
- package/build/togetherAtoms.js +34 -28
- package/build/togetherComponentGlobalContext.js +7 -9
- package/build/togetherMolecules.js +41 -34
- package/build/togetherOrganisms.js +45 -38
- package/build/{treePopoverMenu-c0cb395f.js → treePopoverMenu-e1a2f3f8.js} +28 -26
- package/build/{types-8d9c5f21.js → types-b3edd885.js} +88 -87
- package/build/types.js +6 -5
- package/build/{useCategory-b695fd3a.js → useCategory-9e02b690.js} +18 -17
- package/build/{useHealthToolCache-048807ea.js → useHealthToolCache-35767818.js} +4 -4
- package/build/{useMantineLocale-0d63dfea.js → useMantineLocale-30235874.js} +26 -24
- package/build/{usePlacesAutocomplete-9520e525.js → usePlacesAutocomplete-2bb9e98f.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +8 -10
- package/build/{useTranslations-685f989b.js → useTranslations-ec613f5a.js} +1 -1
- package/build/{utils-169c6a7d.js → utils-62afd8c7.js} +26 -172
- package/build/{utils-1a00c0f8.js → utils-63994a00.js} +11 -10
- package/build/{esm/utils-d7bbdb52.js → utils-7effa670.js} +11 -101
- package/build/vaccination.js +72 -67
- package/package.json +1 -1
- package/build/esm/index-ac2a8f95.js +0 -1114
- package/build/index-00a78d81.js +0 -565
- package/build/index-60f6d762.js +0 -1127
- /package/build/{BMI_BOYS.percentile.monthly-1aa95e30.js → BMI_BOYS.percentile.monthly-6ed2e599.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-61d78e1c.js → BMI_BOYS.percentile.weekly-2674d8fd.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-f80e040e.js → BMI_BOYS.percentile.yearly-51aa456a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-a6c7c8ff.js → BMI_BOYS.zscore.monthly-33333b5d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-742f7028.js → BMI_BOYS.zscore.weekly-9fd4527e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-c19cccd5.js → BMI_BOYS.zscore.yearly-9f0a2b65.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-089d3981.js → BMI_GIRLS.percentile.monthly-ff8c7b3d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-0cc52cda.js → BMI_GIRLS.percentile.weekly-6cf39279.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-10bc603f.js → BMI_GIRLS.percentile.yearly-260242f0.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-c3fe57f3.js → BMI_GIRLS.zscore.monthly-2f687534.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-b83a54db.js → BMI_GIRLS.zscore.weekly-777dcea3.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-5f13cda2.js → BMI_GIRLS.zscore.yearly-c7da1557.js} +0 -0
- /package/build/{ChevronDown-2fd86d66.js → ChevronDown-1ef49349.js} +0 -0
- /package/build/{Close-711196b0.js → Close-c5cedb3c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-03b8d7fb.js → HEAD CIRCUM_BOYS.percentile.monthly-9adb51e9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9ebd3eb6.js → HEAD CIRCUM_BOYS.percentile.weekly-2471683f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-8e97b738.js → HEAD CIRCUM_BOYS.percentile.yearly-f3319cb0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e7892261.js → HEAD CIRCUM_BOYS.zscore.monthly-7e3fc029.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-47c5af84.js → HEAD CIRCUM_BOYS.zscore.weekly-b7aa2b50.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-9a1bc325.js → HEAD CIRCUM_BOYS.zscore.yearly-c61c6c1d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d84491d7.js → HEAD CIRCUM_GIRLS.percentile.monthly-b4cc5c65.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a6f38c3e.js → HEAD CIRCUM_GIRLS.percentile.weekly-ad990791.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-5771d277.js → HEAD CIRCUM_GIRLS.percentile.yearly-65fcb09f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-e3633bcc.js → HEAD CIRCUM_GIRLS.zscore.monthly-2402176a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-23b0ab1a.js → HEAD CIRCUM_GIRLS.zscore.weekly-0e327b7e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-20f29cf1.js → HEAD CIRCUM_GIRLS.zscore.yearly-8fbe89c7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-57cc12ee.js → HEIGHT_BOYS.percentile.monthly-85d25944.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-c788506a.js → HEIGHT_BOYS.percentile.weekly-02e026c7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-ac56c1f2.js → HEIGHT_BOYS.percentile.yearly-76c02fee.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-1bb78253.js → HEIGHT_BOYS.zscore.monthly-68dd676e.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-22737c43.js → HEIGHT_BOYS.zscore.weekly-ad16132c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-90f6cd0a.js → HEIGHT_BOYS.zscore.yearly-f6b8dba4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-019f80d2.js → HEIGHT_GIRLS.percentile.monthly-24a8139c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-ceed9817.js → HEIGHT_GIRLS.percentile.weekly-1d08cc73.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-3e5192ac.js → HEIGHT_GIRLS.percentile.yearly-05197713.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-f8fca0b6.js → HEIGHT_GIRLS.zscore.monthly-4aaa565f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-827b17e8.js → HEIGHT_GIRLS.zscore.weekly-454b8b19.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-3cdb483d.js → HEIGHT_GIRLS.zscore.yearly-5762f338.js} +0 -0
- /package/build/{Visible-515a4eec.js → Visible-bec3b78f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-2ecbd498.js → WEIGHT_BOYS.percentile.monthly-34729a7f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-75c9c25c.js → WEIGHT_BOYS.percentile.weekly-b82f3896.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-03e7cea6.js → WEIGHT_BOYS.percentile.yearly-fe16bfbf.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-2ff9fb56.js → WEIGHT_BOYS.zscore.monthly-de612999.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-e9f7fe2d.js → WEIGHT_BOYS.zscore.weekly-8e520e4a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-4a96f34f.js → WEIGHT_BOYS.zscore.yearly-7f87d4e0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5bf09e30.js → WEIGHT_GIRLS.percentile.monthly-d9389ae2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-f737ae23.js → WEIGHT_GIRLS.percentile.weekly-0a4e65a0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-56ebc8eb.js → WEIGHT_GIRLS.percentile.yearly-5039690e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4697d3b5.js → WEIGHT_GIRLS.zscore.monthly-267424de.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-3633820e.js → WEIGHT_GIRLS.zscore.weekly-b82eb126.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-a9a04790.js → WEIGHT_GIRLS.zscore.yearly-743b24fd.js} +0 -0
- /package/build/{animation-85d012ee.js → animation-0a5aba6d.js} +0 -0
- /package/build/{cart-8877bd63.js → cart-a5619079.js} +0 -0
- /package/build/{constants-8743b014.js → constants-5fd6a807.js} +0 -0
- /package/build/{constants-a78fa8b3.js → constants-bea20f60.js} +0 -0
- /package/build/{doctor-2c14fed1.js → doctor-7b7ee55b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-42ff2c64.js → BMI_BOYS.percentile.monthly-bd9229f1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b4a6c521.js → BMI_BOYS.percentile.weekly-b5555772.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-d3bc1a77.js → BMI_BOYS.percentile.yearly-40c77400.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-c4506dfa.js → BMI_BOYS.zscore.monthly-97b686fe.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-ddf3b3f9.js → BMI_BOYS.zscore.weekly-3bfff161.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-e0e3139e.js → BMI_BOYS.zscore.yearly-52ee4b24.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-96686bcc.js → BMI_GIRLS.percentile.monthly-05f18f9d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-c3106a65.js → BMI_GIRLS.percentile.weekly-4a737e44.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-b38c1f1f.js → BMI_GIRLS.percentile.yearly-19ee728c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-f8a7836f.js → BMI_GIRLS.zscore.monthly-45463588.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-4c1fc771.js → BMI_GIRLS.zscore.weekly-a3d0afc1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-dce5e66a.js → BMI_GIRLS.zscore.yearly-0e0db5a8.js} +0 -0
- /package/build/esm/{ChevronDown-31ea3e19.js → ChevronDown-50f453d2.js} +0 -0
- /package/build/esm/{Close-40d598bc.js → Close-80cf7f50.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-34e3fa1c.js → HEAD CIRCUM_BOYS.percentile.monthly-9bf41293.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d3f3568f.js → HEAD CIRCUM_BOYS.percentile.weekly-ca467513.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-dfae3ad2.js → HEAD CIRCUM_BOYS.percentile.yearly-e4d4e872.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-95840c2f.js → HEAD CIRCUM_BOYS.zscore.monthly-0ededd66.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8b198c1c.js → HEAD CIRCUM_BOYS.zscore.weekly-c1535f8c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b7d639ad.js → HEAD CIRCUM_BOYS.zscore.yearly-5e3aa734.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-47caa070.js → HEAD CIRCUM_GIRLS.percentile.monthly-42c62bef.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-bae46665.js → HEAD CIRCUM_GIRLS.percentile.weekly-6c77535b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-81989cdd.js → HEAD CIRCUM_GIRLS.percentile.yearly-80a34830.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-f2f7d985.js → HEAD CIRCUM_GIRLS.zscore.monthly-f2e8d1fd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e287ddb7.js → HEAD CIRCUM_GIRLS.zscore.weekly-4f43a2f9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-8790b62a.js → HEAD CIRCUM_GIRLS.zscore.yearly-4b1cad4f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-5d2b6466.js → HEIGHT_BOYS.percentile.monthly-ce0656e6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-a38ad13e.js → HEIGHT_BOYS.percentile.weekly-87e1937f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-e4841712.js → HEIGHT_BOYS.percentile.yearly-cb63aa0d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-d8e722f8.js → HEIGHT_BOYS.zscore.monthly-4b8fad7d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-a92ea3ca.js → HEIGHT_BOYS.zscore.weekly-833bc599.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3af1adce.js → HEIGHT_BOYS.zscore.yearly-0b9b3217.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c5203801.js → HEIGHT_GIRLS.percentile.monthly-c0444ca0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-4c25d07f.js → HEIGHT_GIRLS.percentile.weekly-0b46d795.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f91e2e27.js → HEIGHT_GIRLS.percentile.yearly-7cecbdb5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b2a60aca.js → HEIGHT_GIRLS.zscore.monthly-9e1aa7b8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0a98c520.js → HEIGHT_GIRLS.zscore.weekly-5120bb53.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-8070d58f.js → HEIGHT_GIRLS.zscore.yearly-ae917e06.js} +0 -0
- /package/build/esm/{Visible-e3e4fb6f.js → Visible-14a649ea.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b262b97d.js → WEIGHT_BOYS.percentile.monthly-9cf37850.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-7e817f9f.js → WEIGHT_BOYS.percentile.weekly-d0ad8b3d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b7f1786a.js → WEIGHT_BOYS.percentile.yearly-f16cc022.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-014af835.js → WEIGHT_BOYS.zscore.monthly-8ec95d81.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-4577f724.js → WEIGHT_BOYS.zscore.weekly-2f2d400c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-08fd3f13.js → WEIGHT_BOYS.zscore.yearly-11a2d414.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a6e1aa0d.js → WEIGHT_GIRLS.percentile.monthly-2bd9a1ad.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-4c0b6f94.js → WEIGHT_GIRLS.percentile.weekly-3b4e05fe.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bf689a3a.js → WEIGHT_GIRLS.percentile.yearly-4b66fe9f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-f82fc3c8.js → WEIGHT_GIRLS.zscore.monthly-e8f771f4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-854ce987.js → WEIGHT_GIRLS.zscore.weekly-6e9fc8ba.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-2a3b869a.js → WEIGHT_GIRLS.zscore.yearly-cc5dc258.js} +0 -0
- /package/build/esm/{animation-85d9a0ed.js → animation-9382bfae.js} +0 -0
- /package/build/esm/{cart-1ac23ce7.js → cart-aa8756c6.js} +0 -0
- /package/build/esm/{constants-a5827634.js → constants-1dda168b.js} +0 -0
- /package/build/esm/{constants-f6b2e49d.js → constants-1efbbe50.js} +0 -0
- /package/build/esm/{doctor-e0c2476d.js → doctor-10572f59.js} +0 -0
- /package/build/esm/{index-8684181f.js → index-48eb9b2f.js} +0 -0
- /package/build/esm/{index-21bca818.js → index-6022a6ab.js} +0 -0
- /package/build/esm/{index-ad1c7c38.js → index-88732e57.js} +0 -0
- /package/build/esm/{index-266a32ff.js → index-9d3d97b0.js} +0 -0
- /package/build/esm/{localizeNumberFormat-1f000110.js → localizeNumberFormat-48342557.js} +0 -0
- /package/build/esm/{normalizeLink-7a93ebb9.js → normalizeLink-3bdaa9c9.js} +0 -0
- /package/build/esm/{number-1d1ba14a.js → number-14e36fe8.js} +0 -0
- /package/build/esm/{paths-b83be1a0.js → paths-e2dcafe3.js} +0 -0
- /package/build/esm/{translationsContext-42a1fa63.js → translationsContext-7876e8f8.js} +0 -0
- /package/build/esm/{tslib.es6-06ba3978.js → tslib.es6-9430520e.js} +0 -0
- /package/build/esm/{types-721e7a66.js → types-fde0b904.js} +0 -0
- /package/build/esm/{useIsInit-f4dec279.js → useIsInit-2f5401d6.js} +0 -0
- /package/build/esm/{useOutsideClick-210c1134.js → useOutsideClick-9111d12b.js} +0 -0
- /package/build/esm/{useScrollbarSize-909ae7ec.js → useScrollbarSize-7525fa88.js} +0 -0
- /package/build/esm/{useUniqueId-5885911d.js → useUniqueId-8320b4d7.js} +0 -0
- /package/build/{index-82c85f9d.js → index-3bac4c49.js} +0 -0
- /package/build/{index-bc9e8eae.js → index-9176f616.js} +0 -0
- /package/build/{index-6fdcd09d.js → index-c61d67cf.js} +0 -0
- /package/build/{index-2de1eb4a.js → index-ce737a83.js} +0 -0
- /package/build/{localizeNumberFormat-7ff6bd3a.js → localizeNumberFormat-4948bf30.js} +0 -0
- /package/build/{normalizeLink-d307f624.js → normalizeLink-bc411d55.js} +0 -0
- /package/build/{number-dddf656c.js → number-dee2b42a.js} +0 -0
- /package/build/{paths-7da79c64.js → paths-353c484a.js} +0 -0
- /package/build/{translationsContext-00fdb62e.js → translationsContext-22b4034f.js} +0 -0
- /package/build/{tslib.es6-bd3f8718.js → tslib.es6-a7663f7d.js} +0 -0
- /package/build/{types-b25ffde0.js → types-435407da.js} +0 -0
- /package/build/{useIsInit-e06b96f5.js → useIsInit-f72899d0.js} +0 -0
- /package/build/{useOutsideClick-d95a32b6.js → useOutsideClick-34fa23d9.js} +0 -0
- /package/build/{useScrollbarSize-1499b1c3.js → useScrollbarSize-f077e15f.js} +0 -0
- /package/build/{useUniqueId-1af8848e.js → useUniqueId-b5967fd3.js} +0 -0
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-9430520e.js';
|
|
2
|
+
import React__default, { createContext, useContext, useState } from 'react';
|
|
3
|
+
import { L as LastPeriod } from './LastPeriod-6a476391.js';
|
|
4
|
+
import { format } from 'date-fns';
|
|
5
|
+
import { useMantineTheme, Group } from '@mantine/core';
|
|
6
|
+
import { useForm, isNotEmpty } from '@mantine/form';
|
|
7
|
+
import dayjs from 'dayjs';
|
|
8
|
+
import { R as Radio, c as Input } from './index-83cc8492.js';
|
|
9
|
+
import { D as DatePicker } from './index-1baef0ed.js';
|
|
10
|
+
import './index-88ff7c55.js';
|
|
11
|
+
import './index-c7b7301d.js';
|
|
12
|
+
import { u as useTranslations } from './useTranslations-32ff6c72.js';
|
|
13
|
+
import '@mantine/hooks';
|
|
14
|
+
import './index-99a12287.js';
|
|
15
|
+
import './index-562833a7.js';
|
|
16
|
+
import './utils-94f8d19f.js';
|
|
17
|
+
import './useMantineLocale-845c1956.js';
|
|
18
|
+
import { Q as QUERY_HEALTH_TOOL, A as API_DATE_FORMAT$1 } from './index-3dcece1c.js';
|
|
19
|
+
import './other-af591390.js';
|
|
20
|
+
import { H as HealthToolFormWrapper } from './index-b4dc58c1.js';
|
|
21
|
+
import { CalendarMB } from '@hhgtech/icons/other';
|
|
22
|
+
|
|
23
|
+
const ConceptionDate = (_a) => {
|
|
24
|
+
var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
|
|
25
|
+
const props = Object.assign({ width: size, height: size }, rest);
|
|
26
|
+
return isMarryBaby ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
27
|
+
React__default.createElement("path", { d: "M16.5 27.133c1.298 0 2.596-.149 3.868-.447a9.15 9.15 0 0 0 6.818-6.818 16.94 16.94 0 0 0 0-7.736 9.15 9.15 0 0 0-6.818-6.818 16.94 16.94 0 0 0-7.736 0 9.15 9.15 0 0 0-6.818 6.818A17 17 0 0 0 5.367 16a.867.867 0 1 1-1.734 0c0-1.43.165-2.862.494-4.264a10.88 10.88 0 0 1 8.109-8.11 18.7 18.7 0 0 1 8.528 0 10.88 10.88 0 0 1 8.11 8.11 18.7 18.7 0 0 1 0 8.528 10.88 10.88 0 0 1-8.11 8.11 18.7 18.7 0 0 1-4.264.493.867.867 0 0 1 0-1.734", fill: "#3E3F58" }),
|
|
28
|
+
React__default.createElement("path", { d: "M11.633 16a4.867 4.867 0 1 1 9.734 0 4.867 4.867 0 0 1-9.734 0m4.867-3.133a3.133 3.133 0 1 0 0 6.266 3.133 3.133 0 0 0 0-6.266", fill: "#E85388" }),
|
|
29
|
+
React__default.createElement("path", { d: "M9.834 25.333a2.667 2.667 0 1 0-2.298-1.312l-.084.084a3.25 3.25 0 0 0-.952 2.298c0 .726-.41 1.39-1.06 1.715l-1.238.619a.667.667 0 0 0 .596 1.193l1.24-.62a3.25 3.25 0 0 0 1.796-2.907c0-.508.202-.995.561-1.355l.084-.084c.397.235.86.37 1.355.37", fill: "#3E3F58" }))) : (React__default.createElement("svg", Object.assign({ width: size, height: size, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
30
|
+
React__default.createElement("circle", { cx: "9", cy: "6.75", fill: "#91CAFF", r: "6.75" }),
|
|
31
|
+
React__default.createElement("circle", { cx: "9", cy: "6.75", fill: "#2D87F3", r: "5.4" }),
|
|
32
|
+
React__default.createElement("path", { d: "M1.789 12.2a.245.245 0 0 1-.02-.489c.073-.006 1.795-.167 1.761-1.605-.013-.587.15-1.057.485-1.397.524-.53 1.273-.528 1.305-.527a.245.245 0 0 1-.002.49h-.002c-.011 0-.582.004-.955.385-.236.24-.351.59-.34 1.038.018.793-.367 1.41-1.114 1.787a3.3 3.3 0 0 1-1.118.319M.75 17.774a.245.245 0 0 1 .226-.263c.073-.006 1.786-.162 1.749-1.593-.016-.586.146-1.055.48-1.392.521-.528 1.27-.524 1.3-.523a.245.245 0 0 1-.006.49c-.015 0-.58.004-.949.38q-.352.362-.335 1.033c.02.791-.362 1.406-1.106 1.78a3.3 3.3 0 0 1-1.095.313.245.245 0 0 1-.263-.225", fill: "#D2D6DC" }),
|
|
33
|
+
React__default.createElement("path", { d: "M8.659 5.035c-.562-.561-1.956-.078-2.699.665-.407.407-.635.91-.665 1.373v.124l1.145 1.16.181.042c.464-.03.966-.258 1.373-.665.743-.743 1.226-2.137.665-2.699", fill: "#E3F2FF" }),
|
|
34
|
+
React__default.createElement("path", { d: "m5.295 7.073-.292.75a.55.55 0 0 0 .124.589l.155.155a.55.55 0 0 0 .589.124l.75-.292z", fill: "#91CAFF" }),
|
|
35
|
+
React__default.createElement("path", { d: "M8.098 11.358a.87.87 0 0 0-.233-.523c-.562-.562-1.956-.079-2.699.664-.407.408-.635.91-.665 1.373v.125l1.146 1.16.18.042c.464-.03.966-.258 1.374-.666.566-.566.98-1.51.897-2.175", fill: "#E3F2FF" }),
|
|
36
|
+
React__default.createElement("path", { d: "m4.5 12.872-.29.75a.55.55 0 0 0 .123.589l.156.155a.55.55 0 0 0 .588.124l.75-.292z", fill: "#91CAFF" })));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const IVF = (_a) => {
|
|
40
|
+
var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
|
|
41
|
+
const props = Object.assign({ width: size, height: size }, rest);
|
|
42
|
+
return isMarryBaby ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
43
|
+
React__default.createElement("path", { d: "M15.804 28.278a3.16 3.16 0 0 1-3.18-3.208l.128-20.306 6.405.008-.128 20.307c-.012 1.757-1.452 3.191-3.225 3.2", fill: "#fff" }),
|
|
44
|
+
React__default.createElement("path", { d: "m12.72 10.266-.116 14.788c-.011 1.757 1.423 3.197 3.18 3.208 1.774-.008 3.214-1.442 3.225-3.2V10.267", fill: "#FFEAF1" }),
|
|
45
|
+
React__default.createElement("circle", { cx: "14.662", cy: "19.027", transform: "rotate(-49.83 14.662 19.027)", fill: "#3E3F58", r: "1.012" }),
|
|
46
|
+
React__default.createElement("circle", { cx: "16.326", cy: "13.426", r: "1.012", transform: "rotate(-49.83 16.326 13.426)", fill: "#3E3F58" }),
|
|
47
|
+
React__default.createElement("path", { d: "m14.662 19.026.087 1.022a.98.98 0 0 0 .344.667.98.98 0 0 1 .32.98l-.123.51m1.036-8.779.087 1.022a.98.98 0 0 0 .344.666.98.98 0 0 1 .32.98l-.123.511", stroke: "#3E3F58" }),
|
|
48
|
+
React__default.createElement("path", { d: "M18.833 27.597a3.94 3.94 0 0 1-3.02 1.408 4 4 0 0 1-2.795-1.148 3.98 3.98 0 0 1-1.14-2.795l.108-20.553c0-.426.344-.756.753-.738.426 0 .757.345.738.754l-.108 20.553c.002.656.248 1.256.697 1.733a2.42 2.42 0 0 0 1.727.706 2.483 2.483 0 0 0 2.47-2.462l.109-20.553c0-.426.344-.757.753-.738.426 0 .757.344.738.754l-.108 20.553a3.85 3.85 0 0 1-.922 2.526", fill: "#202135" }),
|
|
49
|
+
React__default.createElement("path", { d: "M20.753 4.975a.75.75 0 0 1-.58.262l-8.714-.027a.727.727 0 0 1-.738-.754c0-.425.344-.756.754-.737l8.713.026c.426 0 .756.344.738.754a.66.66 0 0 1-.173.476", fill: "#202135" }))) : (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
50
|
+
React__default.createElement("path", { d: "M13.064 5.794a17.8 17.8 0 0 1 3.34-4.638l4.26 2.881a17.8 17.8 0 0 0-3.272 4.507l-1.08 2.12a.65.65 0 0 0 .124.76 7.9 7.9 0 0 1 2.296 4.81c.027.265-1.141 5.997-9.376 5.573-1.587-.082-5.724-1.269-6.12-2.86a8 8 0 0 1-.233-2.161c.124-4.165 3.718-7.648 7.884-7.647h.098a.65.65 0 0 0 .59-.36z", fill: "#BCDEFF" }),
|
|
51
|
+
React__default.createElement("path", { d: "M20.75 3.234 16.696.496a.886.886 0 1 0-.992 1.469l4.056 2.738a.886.886 0 0 0 .992-1.469", fill: "#E3F2FF" }),
|
|
52
|
+
React__default.createElement("path", { d: "M18.771 17.024a7.87 7.87 0 0 1-2.7 5.944A4.2 4.2 0 0 1 13.301 24H8.473a4.2 4.2 0 0 1-2.769-1.03 7.9 7.9 0 0 1-2.468-4.023c.924.468 2.191.805 3.922.805 1.142 0 2.01-.346 2.775-.834q.323-.21.629-.446c1.973-1.516 3.524-3.668 8.17-2.238q.04.39.04.79", fill: "#2D87F3" }),
|
|
53
|
+
React__default.createElement("path", { d: "M11.858 15.5c-1.78.348-3.096-1.608-2.134-3.121a2.06 2.06 0 0 1 1.529-.944q.303-.03.588.025a.27.27 0 0 0 .268-.107c.282-.373.737-.573 1.2-.639.224-.031.374-.24.379-.44.021-.794.657-1.311 1.288-1.234.183.022.223.27.058.35l-.012.006a.9.9 0 0 0-.28.196c-.213.263-.187.407-.153.6.03.167.066.37-.04.715a1.45 1.45 0 0 1-.504.7c-.255.19-.445.23-.592.263-.088.019-.16.034-.223.076a.27.27 0 0 0-.07.379c.184.27.306.587.344.934a2.063 2.063 0 0 1-1.646 2.24", fill: "#fff" }),
|
|
54
|
+
React__default.createElement("ellipse", { cx: "10", cy: "20.5", rx: "3", ry: "2.5", fill: "#FF6F4D" })));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
var DueDateCalculatorType$1;
|
|
58
|
+
(function (DueDateCalculatorType) {
|
|
59
|
+
DueDateCalculatorType[DueDateCalculatorType["lastPeriod"] = 0] = "lastPeriod";
|
|
60
|
+
DueDateCalculatorType[DueDateCalculatorType["conception"] = 1] = "conception";
|
|
61
|
+
DueDateCalculatorType[DueDateCalculatorType["IVF"] = 2] = "IVF";
|
|
62
|
+
})(DueDateCalculatorType$1 || (DueDateCalculatorType$1 = {}));
|
|
63
|
+
|
|
64
|
+
const DueDateFormContext = createContext({});
|
|
65
|
+
|
|
66
|
+
const ConceptionFormContext = createContext({});
|
|
67
|
+
|
|
68
|
+
const DefaultLayout$2 = () => {
|
|
69
|
+
const { t } = useTranslations();
|
|
70
|
+
const { form } = useContext(ConceptionFormContext);
|
|
71
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
72
|
+
React__default.createElement(DatePicker, Object.assign({ label: t('dueDatePage.lastPeriod.lastPeriodLabel') }, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
73
|
+
withinPortal: true,
|
|
74
|
+
}, maxDate: new Date() }))));
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const InlineLayout$2 = () => {
|
|
78
|
+
const { t } = useTranslations();
|
|
79
|
+
const { form } = useContext(ConceptionFormContext);
|
|
80
|
+
return (React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
81
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel') },
|
|
82
|
+
React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
83
|
+
withinPortal: true,
|
|
84
|
+
}, maxDate: new Date(), error: null }))),
|
|
85
|
+
form.errors.lastPeriodDate && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.lastPeriodDate))));
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const MbLayout$2 = () => {
|
|
89
|
+
const { t } = useTranslations();
|
|
90
|
+
const { form } = useContext(ConceptionFormContext);
|
|
91
|
+
return (React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel'), rightSection: React__default.createElement(CalendarMB, null) },
|
|
92
|
+
React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
93
|
+
withinPortal: true,
|
|
94
|
+
}, rightSection: null, maxDate: new Date() }))));
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
var DueDateCalculatorType;
|
|
98
|
+
(function (DueDateCalculatorType) {
|
|
99
|
+
DueDateCalculatorType[DueDateCalculatorType["lastPeriod"] = 0] = "lastPeriod";
|
|
100
|
+
DueDateCalculatorType[DueDateCalculatorType["conception"] = 1] = "conception";
|
|
101
|
+
DueDateCalculatorType[DueDateCalculatorType["IVF"] = 2] = "IVF";
|
|
102
|
+
})(DueDateCalculatorType || (DueDateCalculatorType = {}));
|
|
103
|
+
const API_DATE_FORMAT = 'yyyy-MM-dd';
|
|
104
|
+
const getDueDateLastPeriod = (lastPeriodDate, periodLength) => {
|
|
105
|
+
const pregnancyLength = 272 + (periodLength - 21);
|
|
106
|
+
const dueDate = new Date(lastPeriodDate);
|
|
107
|
+
dueDate.setDate(dueDate.getDate() + pregnancyLength);
|
|
108
|
+
return {
|
|
109
|
+
startDate: lastPeriodDate,
|
|
110
|
+
dueDate,
|
|
111
|
+
otherInfo: {
|
|
112
|
+
method: DueDateCalculatorType.lastPeriod + 1,
|
|
113
|
+
first_day: format(lastPeriodDate, API_DATE_FORMAT),
|
|
114
|
+
cycle_length_days: periodLength,
|
|
115
|
+
conception_date: null,
|
|
116
|
+
ivf_transfer_date: null,
|
|
117
|
+
days_transfer: null,
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
const getDueDateConception = (conceptionDate) => {
|
|
122
|
+
const dueDate = new Date(conceptionDate);
|
|
123
|
+
dueDate.setDate(dueDate.getDate() + 265);
|
|
124
|
+
return {
|
|
125
|
+
startDate: conceptionDate,
|
|
126
|
+
dueDate,
|
|
127
|
+
otherInfo: {
|
|
128
|
+
method: DueDateCalculatorType.conception + 1,
|
|
129
|
+
conception_date: format(conceptionDate, API_DATE_FORMAT),
|
|
130
|
+
first_day: null,
|
|
131
|
+
cycle_length_days: null,
|
|
132
|
+
ivf_transfer_date: null,
|
|
133
|
+
days_transfer: null,
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
const getDueDateIVF = (IVFDate, numDayTransfer) => {
|
|
138
|
+
const dueDate = new Date(IVFDate);
|
|
139
|
+
dueDate.setDate(dueDate.getDate() + 265 - numDayTransfer);
|
|
140
|
+
return {
|
|
141
|
+
startDate: IVFDate,
|
|
142
|
+
dueDate,
|
|
143
|
+
otherInfo: {
|
|
144
|
+
method: DueDateCalculatorType.IVF + 1,
|
|
145
|
+
ivf_transfer_date: format(IVFDate, API_DATE_FORMAT),
|
|
146
|
+
days_transfer: numDayTransfer,
|
|
147
|
+
conception_date: null,
|
|
148
|
+
first_day: null,
|
|
149
|
+
cycle_length_days: null,
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const ConceptionForm = ({}) => {
|
|
155
|
+
const { formLayout, onSubmit, currentUrl, submitProps } = useContext(DueDateFormContext);
|
|
156
|
+
const theme = useMantineTheme();
|
|
157
|
+
const { t } = useTranslations();
|
|
158
|
+
const form = useForm({
|
|
159
|
+
initialValues: {
|
|
160
|
+
lastPeriodDate: new Date(),
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
const formProps = {
|
|
164
|
+
onSubmit: form.onSubmit((values) => {
|
|
165
|
+
const { lastPeriodDate } = values;
|
|
166
|
+
onSubmit(getDueDateConception(lastPeriodDate), `${QUERY_HEALTH_TOOL.type}=1&sd=${dayjs(lastPeriodDate).format(API_DATE_FORMAT$1)}&${QUERY_HEALTH_TOOL.additional}= `);
|
|
167
|
+
}),
|
|
168
|
+
};
|
|
169
|
+
return (React__default.createElement(ConceptionFormContext.Provider, { value: { form } },
|
|
170
|
+
React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: formLayout }, formProps),
|
|
171
|
+
formLayout === 'inline' ? (React__default.createElement(InlineLayout$2, null)) : theme.other.template === 'mb' ? (React__default.createElement(MbLayout$2, null)) : (React__default.createElement(DefaultLayout$2, null)),
|
|
172
|
+
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')))));
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
const IVFFormContext = createContext({});
|
|
176
|
+
|
|
177
|
+
const DefaultLayout$1 = () => {
|
|
178
|
+
const { t } = useTranslations();
|
|
179
|
+
const { form, transferDateOptions } = useContext(IVFFormContext);
|
|
180
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
181
|
+
React__default.createElement(DatePicker, Object.assign({ label: t('dueDatePage.ivf.transferDate') }, form.getInputProps('IVFDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
182
|
+
withinPortal: true,
|
|
183
|
+
}, maxDate: new Date() })),
|
|
184
|
+
React__default.createElement(Radio.Group, Object.assign({}, form.getInputProps('dayTransfer')),
|
|
185
|
+
React__default.createElement(Group, null, transferDateOptions.map((i, idx) => (React__default.createElement(Radio, { key: idx, value: i.value, label: i.label })))))));
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
const InlineLayout$1 = () => {
|
|
189
|
+
const { t } = useTranslations();
|
|
190
|
+
const { form, transferDateOptions } = useContext(IVFFormContext);
|
|
191
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
192
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.ivf.transferDate') },
|
|
193
|
+
React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('IVFDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
194
|
+
withinPortal: true,
|
|
195
|
+
}, maxDate: new Date() }))),
|
|
196
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { width: 'none' },
|
|
197
|
+
React__default.createElement(Radio.Group, Object.assign({}, form.getInputProps('dayTransfer')),
|
|
198
|
+
React__default.createElement(Group, null, transferDateOptions.map((i, idx) => (React__default.createElement(Radio, { key: idx, value: i.value, label: i.label }))))))));
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
const MbLayout$1 = () => {
|
|
202
|
+
const { t } = useTranslations();
|
|
203
|
+
const { form, transferDateOptions } = useContext(IVFFormContext);
|
|
204
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
205
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('dueDatePage.ivf.transferDate'), rightSection: React__default.createElement(CalendarMB, null) },
|
|
206
|
+
React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('IVFDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
207
|
+
withinPortal: true,
|
|
208
|
+
}, maxDate: new Date(), rightSection: null }))),
|
|
209
|
+
React__default.createElement(Radio.Group, Object.assign({}, form.getInputProps('dayTransfer')),
|
|
210
|
+
React__default.createElement(Group, null, transferDateOptions.map((i, idx) => (React__default.createElement(Radio, { key: idx, value: i.value, label: i.label })))))));
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
const IVFForm = ({}) => {
|
|
214
|
+
var _a;
|
|
215
|
+
const { formLayout, onSubmit, currentUrl, submitProps } = useContext(DueDateFormContext);
|
|
216
|
+
const { t } = useTranslations();
|
|
217
|
+
const theme = useMantineTheme();
|
|
218
|
+
const transferDateOptions = [
|
|
219
|
+
{
|
|
220
|
+
value: '3',
|
|
221
|
+
label: t('dueDatePage.ivf.transferDateRadio', {
|
|
222
|
+
number: 3,
|
|
223
|
+
}),
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
value: '5',
|
|
227
|
+
label: t('dueDatePage.ivf.transferDateRadio', {
|
|
228
|
+
number: 5,
|
|
229
|
+
}),
|
|
230
|
+
},
|
|
231
|
+
];
|
|
232
|
+
const form = useForm({
|
|
233
|
+
initialValues: {
|
|
234
|
+
IVFDate: new Date(),
|
|
235
|
+
dayTransfer: (_a = transferDateOptions === null || transferDateOptions === void 0 ? void 0 : transferDateOptions[0]) === null || _a === void 0 ? void 0 : _a.value,
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
const formProps = {
|
|
239
|
+
onSubmit: form.onSubmit((values) => {
|
|
240
|
+
const { IVFDate } = values;
|
|
241
|
+
const dayTransfer = Number(values.dayTransfer);
|
|
242
|
+
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}`);
|
|
243
|
+
}),
|
|
244
|
+
};
|
|
245
|
+
return (React__default.createElement(IVFFormContext.Provider, { value: { form, transferDateOptions } },
|
|
246
|
+
React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: formLayout }, formProps),
|
|
247
|
+
formLayout === 'inline' ? (React__default.createElement(InlineLayout$1, null)) : theme.other.template === 'mb' ? (React__default.createElement(MbLayout$1, null)) : (React__default.createElement(DefaultLayout$1, null)),
|
|
248
|
+
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')))));
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
const LastPeriodFormContext = createContext({});
|
|
252
|
+
|
|
253
|
+
const DefaultLayout = () => {
|
|
254
|
+
const { t } = useTranslations();
|
|
255
|
+
const { form } = useContext(LastPeriodFormContext);
|
|
256
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
257
|
+
React__default.createElement(DatePicker, Object.assign({ label: t('dueDatePage.lastPeriod.lastPeriodLabel') }, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
258
|
+
withinPortal: true,
|
|
259
|
+
}, maxDate: new Date() })),
|
|
260
|
+
React__default.createElement(Input.Wrapper, { label: t('dueDatePage.lastPeriod.periodLengthLabel') },
|
|
261
|
+
React__default.createElement(Input.Number, Object.assign({ min: 20, max: 40, placeholder: t('tools.inputPlaceholder', {
|
|
262
|
+
content: '30',
|
|
263
|
+
}) }, form.getInputProps('periodLength'))))));
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
const InlineLayout = () => {
|
|
267
|
+
const { t } = useTranslations();
|
|
268
|
+
const { form } = useContext(LastPeriodFormContext);
|
|
269
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
270
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel') },
|
|
271
|
+
React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
272
|
+
withinPortal: true,
|
|
273
|
+
}, maxDate: new Date() }))),
|
|
274
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.periodLengthLabel') },
|
|
275
|
+
React__default.createElement(Input.Number, Object.assign({ min: 20, max: 40, placeholder: t('tools.inputPlaceholder', {
|
|
276
|
+
content: '30',
|
|
277
|
+
}) }, form.getInputProps('periodLength'), { error: null }))),
|
|
278
|
+
form.errors.periodLength && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.periodLength))));
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
const MbLayout = () => {
|
|
282
|
+
const { t } = useTranslations();
|
|
283
|
+
const { form } = useContext(LastPeriodFormContext);
|
|
284
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
285
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel'), rightSection: React__default.createElement(CalendarMB, null) },
|
|
286
|
+
React__default.createElement(DatePicker, Object.assign({ rightSection: null }, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
287
|
+
withinPortal: true,
|
|
288
|
+
}, maxDate: new Date() }))),
|
|
289
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('dueDatePage.lastPeriod.periodLengthLabel'), rightSection: t('ovulationPage.dayUnit') },
|
|
290
|
+
React__default.createElement(Input.Number, Object.assign({ min: 20, max: 40, placeholder: t('tools.inputPlaceholder', {
|
|
291
|
+
content: '30',
|
|
292
|
+
}) }, form.getInputProps('periodLength')))),
|
|
293
|
+
form.errors.periodLength && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.periodLength))));
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
const LastPeriodForm = ({}) => {
|
|
297
|
+
const { formLayout, onSubmit, currentUrl, submitProps } = useContext(DueDateFormContext);
|
|
298
|
+
const { t } = useTranslations();
|
|
299
|
+
const theme = useMantineTheme();
|
|
300
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
301
|
+
const form = useForm({
|
|
302
|
+
initialValues: {
|
|
303
|
+
lastPeriodDate: new Date(),
|
|
304
|
+
},
|
|
305
|
+
validate: {
|
|
306
|
+
periodLength: isNotEmpty(t('validation.error.requiredField')),
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
const formProps = {
|
|
310
|
+
onSubmit: form.onSubmit((values) => {
|
|
311
|
+
const { periodLength, lastPeriodDate } = values;
|
|
312
|
+
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}`);
|
|
313
|
+
}),
|
|
314
|
+
};
|
|
315
|
+
return (React__default.createElement(LastPeriodFormContext.Provider, { value: { form } },
|
|
316
|
+
React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: formLayout }, formProps),
|
|
317
|
+
formLayout === 'inline' ? (React__default.createElement(InlineLayout, null)) : isMarryBaby ? (React__default.createElement(MbLayout, null)) : (React__default.createElement(DefaultLayout, null)),
|
|
318
|
+
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')))));
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
const FormSwitcher = () => {
|
|
322
|
+
const { calculatorType } = useContext(DueDateFormContext);
|
|
323
|
+
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;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
var OvulationCalculatorType;
|
|
327
|
+
(function (OvulationCalculatorType) {
|
|
328
|
+
OvulationCalculatorType[OvulationCalculatorType["trackPeriod"] = 0] = "trackPeriod";
|
|
329
|
+
OvulationCalculatorType[OvulationCalculatorType["conceive"] = 1] = "conceive";
|
|
330
|
+
OvulationCalculatorType[OvulationCalculatorType["avoidPregnancy"] = 2] = "avoidPregnancy";
|
|
331
|
+
})(OvulationCalculatorType || (OvulationCalculatorType = {}));
|
|
332
|
+
const DueDateForm = (_a) => {
|
|
333
|
+
var { formLayout = 'default', submitProps, currentUrl, isMobile, onSubmit } = _a, props = __rest(_a, ["formLayout", "submitProps", "currentUrl", "isMobile", "onSubmit"]);
|
|
334
|
+
const { t } = useTranslations();
|
|
335
|
+
const [calculatorType, setCalculatorType] = useState(DueDateCalculatorType$1.lastPeriod);
|
|
336
|
+
const calculatingMethods = [
|
|
337
|
+
{
|
|
338
|
+
value: DueDateCalculatorType$1.lastPeriod,
|
|
339
|
+
label: t('dueDatePage.lastPeriod'),
|
|
340
|
+
icon: React__default.createElement(LastPeriod, null),
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
value: DueDateCalculatorType$1.conception,
|
|
344
|
+
label: t('dueDatePage.conceptionDate'),
|
|
345
|
+
icon: React__default.createElement(ConceptionDate, null),
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
value: DueDateCalculatorType$1.IVF,
|
|
349
|
+
label: t('dueDatePage.ivf'),
|
|
350
|
+
icon: React__default.createElement(IVF, null),
|
|
351
|
+
},
|
|
352
|
+
];
|
|
353
|
+
return (React__default.createElement(DueDateFormContext.Provider, { value: {
|
|
354
|
+
calculatingMethods,
|
|
355
|
+
submitProps,
|
|
356
|
+
currentUrl,
|
|
357
|
+
isMobile,
|
|
358
|
+
formLayout,
|
|
359
|
+
onSubmit,
|
|
360
|
+
calculatorType,
|
|
361
|
+
setCalculatorType,
|
|
362
|
+
} },
|
|
363
|
+
React__default.createElement(HealthToolFormWrapper, Object.assign({ component: "div", formLayout: "default" }, props),
|
|
364
|
+
React__default.createElement(HealthToolFormWrapper.Control, null,
|
|
365
|
+
React__default.createElement(Input.Wrapper, { label: t('dueDatePage.calculationMethod') },
|
|
366
|
+
React__default.createElement(HealthToolFormWrapper.ChipGroup, { isMobile: isMobile, data: calculatingMethods, defaultValue: String(DueDateCalculatorType$1.lastPeriod), onChange: (v) => setCalculatorType(Number(v)) }))),
|
|
367
|
+
React__default.createElement(FormSwitcher, null))));
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
export { DueDateForm as D };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import { L as Label } from './index-
|
|
4
|
-
import {
|
|
3
|
+
import { L as Label } from './index-b50d36ad.js';
|
|
4
|
+
import { theme } from './miscTheme.js';
|
|
5
5
|
|
|
6
6
|
const StyledTextArea = styled.div `
|
|
7
7
|
textarea {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { domainLocales } from './constantsDomainLocales.js';
|
|
2
|
+
import { isProduction } from './constantsIsProduction.js';
|
|
3
3
|
|
|
4
4
|
const isNumeric = (n) => !isNaN(parseFloat(n)) && isFinite(n);
|
|
5
5
|
const defaultDomain = 'hellosehat.com';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import {
|
|
4
|
-
import { I as ImageWrap } from './index-
|
|
3
|
+
import { theme } from './miscTheme.js';
|
|
4
|
+
import { I as ImageWrap } from './index-83cc8492.js';
|
|
5
5
|
|
|
6
6
|
const StyledAvatar = styled.div `
|
|
7
7
|
background-color: var(--background-color, transparent);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-9430520e.js';
|
|
2
|
+
import React__default, { createContext, useContext } from 'react';
|
|
3
|
+
import { useMantineTheme } from '@mantine/core';
|
|
4
|
+
import { useForm, isNotEmpty } from '@mantine/form';
|
|
5
|
+
import './index-83cc8492.js';
|
|
6
|
+
import { D as DatePicker } from './index-1baef0ed.js';
|
|
7
|
+
import './index-88ff7c55.js';
|
|
8
|
+
import './index-c7b7301d.js';
|
|
9
|
+
import { u as useTranslations } from './useTranslations-32ff6c72.js';
|
|
10
|
+
import '@mantine/hooks';
|
|
11
|
+
import './index-99a12287.js';
|
|
12
|
+
import './index-562833a7.js';
|
|
13
|
+
import './utils-94f8d19f.js';
|
|
14
|
+
import './useMantineLocale-845c1956.js';
|
|
15
|
+
import './index-3dcece1c.js';
|
|
16
|
+
import './other-af591390.js';
|
|
17
|
+
import { H as HealthToolFormWrapper } from './index-b4dc58c1.js';
|
|
18
|
+
import { G as GenderOptionControl } from './index-7d0b67e7.js';
|
|
19
|
+
import { CalendarMB } from '@hhgtech/icons/other';
|
|
20
|
+
|
|
21
|
+
const BabyVaccineFormContext = createContext({});
|
|
22
|
+
|
|
23
|
+
const DefaultLayout = (_a) => {
|
|
24
|
+
var props = __rest(_a, []);
|
|
25
|
+
const { t } = useTranslations();
|
|
26
|
+
const { currentUrl, submitProps, form } = useContext(BabyVaccineFormContext);
|
|
27
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
28
|
+
React__default.createElement(GenderOptionControl, Object.assign({ isBaby: true }, form.getInputProps('gender'))),
|
|
29
|
+
React__default.createElement(DatePicker, Object.assign({ label: t('babyGrowth.input.birthday'), placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
30
|
+
withinPortal: true,
|
|
31
|
+
}, maxDate: new Date() }, form.getInputProps('age'))),
|
|
32
|
+
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'))));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const InlineLayout = (_a) => {
|
|
36
|
+
var props = __rest(_a, []);
|
|
37
|
+
const { t } = useTranslations();
|
|
38
|
+
const { currentUrl, submitProps, form } = useContext(BabyVaccineFormContext);
|
|
39
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
|
|
40
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
41
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('tools.selectBabyGender'), width: 'none' },
|
|
42
|
+
React__default.createElement(GenderOptionControl, Object.assign({ isBaby: true, hideLabel: true, type: "radio" }, form.getInputProps('gender')))),
|
|
43
|
+
form.errors.gender && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
|
|
44
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
45
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('babyGrowth.input.birthday') },
|
|
46
|
+
React__default.createElement(DatePicker, Object.assign({ placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
47
|
+
withinPortal: true,
|
|
48
|
+
}, maxDate: new Date() }, form.getInputProps('age'), { error: null }))),
|
|
49
|
+
form.errors.age && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
|
|
50
|
+
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'))));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const MbLayout = (_a) => {
|
|
54
|
+
var props = __rest(_a, []);
|
|
55
|
+
const { t } = useTranslations();
|
|
56
|
+
const { currentUrl, submitProps, form } = useContext(BabyVaccineFormContext);
|
|
57
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
58
|
+
React__default.createElement(HealthToolFormWrapper.Control, null,
|
|
59
|
+
React__default.createElement(GenderOptionControl, Object.assign({ isBaby: true }, form.getInputProps('gender'), { error: null }))),
|
|
60
|
+
form.errors.gender && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender)),
|
|
61
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
62
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('babyGrowth.input.birthday'), rightSection: React__default.createElement(CalendarMB, null) },
|
|
63
|
+
React__default.createElement(DatePicker, Object.assign({ placeholder: 'DD/MM/YYYY', popoverProps: {
|
|
64
|
+
withinPortal: true,
|
|
65
|
+
}, maxDate: new Date(), rightSection: null }, form.getInputProps('age'), { error: null }))),
|
|
66
|
+
form.errors.age && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
|
|
67
|
+
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'))));
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var OvulationCalculatorType;
|
|
71
|
+
(function (OvulationCalculatorType) {
|
|
72
|
+
OvulationCalculatorType[OvulationCalculatorType["trackPeriod"] = 0] = "trackPeriod";
|
|
73
|
+
OvulationCalculatorType[OvulationCalculatorType["conceive"] = 1] = "conceive";
|
|
74
|
+
OvulationCalculatorType[OvulationCalculatorType["avoidPregnancy"] = 2] = "avoidPregnancy";
|
|
75
|
+
})(OvulationCalculatorType || (OvulationCalculatorType = {}));
|
|
76
|
+
const BabyVaccineForm = (_a) => {
|
|
77
|
+
var { formLayout = 'default', submitProps, currentUrl, onSubmit } = _a, props = __rest(_a, ["formLayout", "submitProps", "currentUrl", "onSubmit"]);
|
|
78
|
+
const { t } = useTranslations();
|
|
79
|
+
const theme = useMantineTheme();
|
|
80
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
81
|
+
const form = useForm({
|
|
82
|
+
validate: {
|
|
83
|
+
gender: isNotEmpty(t('validation.error.requiredField')),
|
|
84
|
+
age: isNotEmpty(t('validation.error.requiredField')),
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
const commonProps = Object.assign({ onSubmit: form.onSubmit(onSubmit) }, props);
|
|
88
|
+
return (React__default.createElement(BabyVaccineFormContext.Provider, { value: { submitProps, currentUrl, form } }, formLayout === 'inline' ? (React__default.createElement(InlineLayout, Object.assign({}, commonProps))) : isMarryBaby ? (React__default.createElement(MbLayout, Object.assign({ formLayout: formLayout }, commonProps))) : (React__default.createElement(DefaultLayout, Object.assign({}, commonProps)))));
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export { BabyVaccineForm as B };
|
|
@@ -2,7 +2,7 @@ import React__default, { useRef, useState, useEffect } from 'react';
|
|
|
2
2
|
import { format } from 'date-fns';
|
|
3
3
|
import DayPickerInput from 'react-day-picker/DayPickerInput';
|
|
4
4
|
import styled from '@emotion/styled';
|
|
5
|
-
import {
|
|
5
|
+
import { theme } from './miscTheme.js';
|
|
6
6
|
|
|
7
7
|
const MONTHS_TRANSLATION = {
|
|
8
8
|
'vi-VN': [
|