@hhgtech/hhg-components 1.29.82 → 1.29.83
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-79a8acbe.js +29 -0
- package/build/Locale-0b86b849.js +15 -0
- package/build/{WhatsApp-46f4f408.js → WhatsApp-19ca0437.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-79d3ff1b.js} +4 -4
- package/build/constants-e85d7085.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-9f7c0442.js} +4 -4
- package/build/dataTransform-1e0514ef.js +13 -0
- package/build/{dataTransform-e39297c1.js → dataTransform-265f1b67.js} +1 -106
- 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-62287ef2.js +23 -0
- package/build/esm/Locale-c6a90240.js +15 -0
- package/build/esm/{WhatsApp-c599b715.js → WhatsApp-2e6d1d02.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-a5d70cf5.js +16 -0
- package/build/esm/{constants-bb470362.js → constants-e930bc7b.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-36290fcb.js} +2 -2
- package/build/esm/dataTransform-14587328.js +11 -0
- package/build/esm/{dataTransform-623716c3.js → dataTransform-8852461c.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-26b94f6b.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-29908d2c.js → index-03050142.js} +1 -1
- package/build/esm/{index-9b3a8b6d.js → index-03d7200e.js} +12 -10
- package/build/esm/index-21524e86.js +249 -0
- package/build/esm/{index-f660abb7.js → index-288b564e.js} +3 -3
- package/build/esm/index-3060c2dc.js +174 -0
- package/build/esm/{index-10ab6596.js → index-3288f45c.js} +8 -7
- package/build/esm/{index-0ee66974.js → index-343e5b65.js} +2 -2
- package/build/esm/{index-7a1ea734.js → index-345e507e.js} +3 -3
- package/build/esm/{index-189d7601.js → index-38ced379.js} +3 -15
- package/build/esm/{index-6210f454.js → index-39aa0c9f.js} +9 -168
- package/build/esm/{index-0b745f46.js → index-39f24b49.js} +20 -18
- package/build/esm/{index-8eb04f36.js → index-3e2f70fe.js} +11 -11
- package/build/esm/{index-cfedca38.js → index-3e3904ec.js} +2 -2
- package/build/esm/{index-01b5d2e9.js → index-40b6555d.js} +4 -4
- package/build/esm/{index-9f99909b.js → index-41a809d7.js} +3 -3
- package/build/esm/{index-cdc50618.js → index-4d06fffe.js} +1 -1
- package/build/esm/{index-8fcf671c.js → index-506563f6.js} +8 -8
- package/build/esm/{index-bcedec73.js → index-5369d2e2.js} +15 -13
- package/build/esm/index-6125d991.js +370 -0
- package/build/esm/index-64dff9b0.js +233 -0
- package/build/esm/{index-fa67d66e.js → index-6dd92895.js} +21 -19
- package/build/esm/{index-c2584051.js → index-7720a710.js} +4 -4
- package/build/esm/{index-5723381f.js → index-7a1552e9.js} +2 -2
- package/build/esm/index-7c678785.js +259 -0
- package/build/esm/{index-0ca9b175.js → index-88c06a7e.js} +2 -2
- package/build/esm/{index-13d8dd4b.js → index-90d58b18.js} +7 -6
- package/build/esm/{index-7c384ae6.js → index-96a5f239.js} +6 -5
- package/build/esm/index-9a8df805.js +147 -0
- package/build/esm/{index-c013ba1b.js → index-9aee96f2.js} +5 -4
- package/build/esm/index-a1658f07.js +60 -0
- package/build/esm/{constants-fa475b0f.js → index-a1d2c38b.js} +6 -21
- package/build/esm/{index-219e3a35.js → index-a51336b9.js} +11 -11
- package/build/esm/{index-07f3f47e.js → index-a57a5338.js} +2 -2
- package/build/esm/{index-ea63e0d2.js → index-a7f10a58.js} +4 -4
- package/build/esm/{index-f4b938f2.js → index-b123bf27.js} +1 -1
- package/build/esm/{index-01405723.js → index-b1e1f9b4.js} +13 -12
- package/build/esm/{index-f22f6e6e.js → index-b2ea5cc7.js} +9 -8
- package/build/esm/{index-e0b0d6a2.js → index-b5019321.js} +7 -7
- package/build/esm/{index-9471fca1.js → index-b9c4dfcb.js} +2 -2
- package/build/esm/{index-acf8b60e.js → index-bb53d99f.js} +2 -2
- package/build/esm/{index-1d3c6ce7.js → index-bdc3bd61.js} +1 -1
- package/build/esm/{index-02d3f05b.js → index-c41ef517.js} +23 -19
- package/build/esm/{index-0cd3523c.js → index-d462b2bd.js} +35 -31
- package/build/esm/{index-21256394.js → index-d5bcc5cc.js} +1 -1
- package/build/esm/{index-d6a5f5cf.js → index-d9555b0b.js} +17 -260
- package/build/esm/{index-2dc7803d.js → index-e0f8a206.js} +6 -5
- package/build/esm/{index-c430773c.js → index-e6b9c7d8.js} +29 -25
- package/build/esm/index-e9d85fda.js +91 -0
- package/build/esm/{index-046778af.js → index-f0184ea4.js} +2 -2
- package/build/esm/{index-049e0270.js → index-f1025cea.js} +3 -3
- package/build/esm/index-f3903d13.js +101 -0
- package/build/esm/{index-9b9c1499.js → index-f93799fc.js} +2 -2
- package/build/esm/{index-1c9b481b.js → index-fa83ce20.js} +2 -2
- package/build/esm/index-fb8f8203.js +140 -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-e7fa8826.js} +4 -4
- package/build/esm/lead.js +26 -21
- package/build/esm/{logoIcon-3a581efb.js → logoIcon-b0ce60d0.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} +16 -6
- 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-9b439f19.js +102 -0
- package/build/esm/pwg.js +25 -20
- package/build/esm/{routing-9e330438.js → routing-f2e46f96.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-9d482ef8.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-890070aa.js} +18 -16
- package/build/esm/{types-ffcf5fb4.js → types-e21a244d.js} +14 -13
- package/build/esm/types.js +2 -1
- package/build/esm/{useCategory-553bee0b.js → useCategory-45ce6ea8.js} +6 -5
- package/build/esm/{useHealthToolCache-6ce1724e.js → useHealthToolCache-fe7dc697.js} +2 -2
- package/build/esm/{useMantineLocale-453f8013.js → useMantineLocale-faa72172.js} +5 -3
- package/build/esm/{usePlacesAutocomplete-8925d4fb.js → usePlacesAutocomplete-81624098.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +7 -9
- package/build/esm/{useTranslations-b970f667.js → useTranslations-ba901edf.js} +1 -1
- package/build/{utils-15a9772e.js → esm/utils-40533779.js} +1 -114
- package/build/esm/{utils-3b29eb79.js → utils-c730ad5d.js} +16 -163
- package/build/esm/{utils-6d45bdd1.js → utils-dbc80293.js} +2 -1
- package/build/esm/vaccination.js +23 -18
- package/build/{fixedBottomAdBlock-0129a006.js → fixedBottomAdBlock-026650fb.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-1fdf2f01.js → index-036fe55d.js} +4 -4
- package/build/{index-466a2c32.js → index-03da3dbb.js} +48 -46
- package/build/{index-a2664204.js → index-1950777d.js} +7 -7
- package/build/index-1fe1ec7e.js +180 -0
- package/build/{index-405faafa.js → index-251187e5.js} +2 -2
- package/build/{index-ca616373.js → index-2ce6cc83.js} +2 -2
- package/build/{index-a8680a58.js → index-3129e975.js} +6 -6
- package/build/{index-f222ee45.js → index-323d2766.js} +2 -2
- package/build/{index-d9919cd2.js → index-325d93fc.js} +119 -115
- package/build/{index-7ecc69af.js → index-34b1babf.js} +19 -18
- package/build/{index-53e14542.js → index-385f27fb.js} +4 -4
- package/build/index-3db01ab3.js +146 -0
- package/build/{index-4357a324.js → index-48ef94cb.js} +11 -11
- package/build/{index-765ed75d.js → index-4b98362e.js} +6 -6
- package/build/index-4c18e4ba.js +97 -0
- package/build/{index-4bc690c9.js → index-4ef9be86.js} +9 -9
- package/build/index-5fdde636.js +256 -0
- package/build/{index-e3bbd009.js → index-617bff8c.js} +33 -197
- package/build/{index-2fd9063e.js → index-66e789cf.js} +4 -4
- package/build/index-6b23104e.js +108 -0
- package/build/{index-71843eb4.js → index-6bcde89a.js} +5 -5
- package/build/{index-7953fb8e.js → index-6daafc7b.js} +12 -12
- package/build/{index-64d8db08.js → index-6e7aede8.js} +5 -5
- package/build/index-6e85bdbb.js +239 -0
- package/build/{index-16ed0d98.js → index-70a7d73e.js} +12 -11
- package/build/{index-fd3e1d16.js → index-72b989a7.js} +3 -3
- package/build/index-72e5dba6.js +153 -0
- package/build/{constants-f182fc32.js → index-769ecf0d.js} +8 -24
- package/build/{index-9e8877c0.js → index-7b98097c.js} +2 -2
- package/build/{index-b66ae554.js → index-7e89d856.js} +18 -17
- package/build/{index-4b7d4b5b.js → index-7efbe5e3.js} +9 -9
- package/build/{index-3eb666e6.js → index-8cb3f562.js} +1 -1
- package/build/{index-a9bdf889.js → index-92a816de.js} +25 -24
- package/build/{index-206afefb.js → index-99ddd1a4.js} +6 -5
- package/build/{index-ec34e358.js → index-a0659d79.js} +14 -14
- package/build/{index-a9bbb5aa.js → index-a8c1c011.js} +11 -11
- package/build/index-aef8a50c.js +267 -0
- package/build/{index-130e0f35.js → index-b76dcc89.js} +68 -64
- package/build/{index-dd074159.js → index-b99e7941.js} +1 -1
- package/build/{index-077bf48f.js → index-bd0008c0.js} +52 -50
- package/build/{index-10760994.js → index-bd37f7ea.js} +9 -9
- package/build/index-be727078.js +66 -0
- package/build/{index-a6a9855f.js → index-cb1c7190.js} +11 -11
- package/build/{index-1e1d8eb1.js → index-cb4ea8c9.js} +26 -24
- package/build/index-d71aec74.js +377 -0
- package/build/{index-1f3fc2e3.js → index-d91f52cc.js} +3 -15
- package/build/{index-33432b02.js → index-db6d4daf.js} +33 -33
- package/build/{index-dff7ee1b.js → index-df9447b3.js} +41 -39
- package/build/{index-4cdcdbbe.js → index-e239d386.js} +13 -12
- package/build/{index-54aeefca.js → index-eddf350b.js} +2 -2
- package/build/{index-0b727664.js → index-eeb7220e.js} +8 -7
- package/build/{index-2afbeb3d.js → index-f5956cd0.js} +137 -133
- package/build/index-fbfa2310.js +320 -0
- package/build/{index-6aeb5ff5.js → index-fe74a1a3.js} +59 -59
- 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-1905fd49.js} +4 -4
- package/build/lead.js +43 -38
- package/build/{logoIcon-21a16853.js → logoIcon-d9adf505.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} +46 -34
- 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-0edcc417.js +104 -0
- package/build/pwg.js +60 -55
- package/build/{routing-d6c9099a.js → routing-54391665.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-c7e94445.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-dbb4b61e.js} +28 -26
- package/build/{types-8d9c5f21.js → types-ce7323a0.js} +88 -87
- package/build/types.js +6 -5
- package/build/{useCategory-b695fd3a.js → useCategory-04ea2a70.js} +18 -17
- package/build/{useHealthToolCache-048807ea.js → useHealthToolCache-9d59f009.js} +4 -4
- package/build/{useMantineLocale-0d63dfea.js → useMantineLocale-f9195d27.js} +26 -24
- package/build/{usePlacesAutocomplete-9520e525.js → usePlacesAutocomplete-8360abe0.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +8 -10
- package/build/{useTranslations-685f989b.js → useTranslations-80687df4.js} +1 -1
- package/build/{utils-1a00c0f8.js → utils-4849ab04.js} +11 -10
- package/build/{esm/utils-d7bbdb52.js → utils-928b4701.js} +11 -101
- package/build/{utils-169c6a7d.js → utils-e4d5701e.js} +26 -172
- 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-5ba0659a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-61d78e1c.js → BMI_BOYS.percentile.weekly-879f7a42.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-f80e040e.js → BMI_BOYS.percentile.yearly-e4c37a27.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-a6c7c8ff.js → BMI_BOYS.zscore.monthly-fa3d3237.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-742f7028.js → BMI_BOYS.zscore.weekly-71226efa.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-c19cccd5.js → BMI_BOYS.zscore.yearly-92a2f05e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-089d3981.js → BMI_GIRLS.percentile.monthly-cd39f35d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-0cc52cda.js → BMI_GIRLS.percentile.weekly-5cb19fda.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-10bc603f.js → BMI_GIRLS.percentile.yearly-b80f3d32.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-c3fe57f3.js → BMI_GIRLS.zscore.monthly-89248182.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-b83a54db.js → BMI_GIRLS.zscore.weekly-609c3c1f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-5f13cda2.js → BMI_GIRLS.zscore.yearly-f4587218.js} +0 -0
- /package/build/{ChevronDown-2fd86d66.js → ChevronDown-dfb97861.js} +0 -0
- /package/build/{Close-711196b0.js → Close-6296f986.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-03b8d7fb.js → HEAD CIRCUM_BOYS.percentile.monthly-a7e17d51.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9ebd3eb6.js → HEAD CIRCUM_BOYS.percentile.weekly-688e7e30.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-8e97b738.js → HEAD CIRCUM_BOYS.percentile.yearly-5e1b6296.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e7892261.js → HEAD CIRCUM_BOYS.zscore.monthly-e66bc7d4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-47c5af84.js → HEAD CIRCUM_BOYS.zscore.weekly-f1221399.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-9a1bc325.js → HEAD CIRCUM_BOYS.zscore.yearly-c3dea838.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d84491d7.js → HEAD CIRCUM_GIRLS.percentile.monthly-df5b45d4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a6f38c3e.js → HEAD CIRCUM_GIRLS.percentile.weekly-6c4e803a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-5771d277.js → HEAD CIRCUM_GIRLS.percentile.yearly-05ac380c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-e3633bcc.js → HEAD CIRCUM_GIRLS.zscore.monthly-8418b138.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-23b0ab1a.js → HEAD CIRCUM_GIRLS.zscore.weekly-02c9e21d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-20f29cf1.js → HEAD CIRCUM_GIRLS.zscore.yearly-656652b6.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-57cc12ee.js → HEIGHT_BOYS.percentile.monthly-9b3ca406.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-c788506a.js → HEIGHT_BOYS.percentile.weekly-add16dbe.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-ac56c1f2.js → HEIGHT_BOYS.percentile.yearly-a338c8a8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-1bb78253.js → HEIGHT_BOYS.zscore.monthly-7caebf2d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-22737c43.js → HEIGHT_BOYS.zscore.weekly-5962317e.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-90f6cd0a.js → HEIGHT_BOYS.zscore.yearly-b1576fab.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-019f80d2.js → HEIGHT_GIRLS.percentile.monthly-937209f6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-ceed9817.js → HEIGHT_GIRLS.percentile.weekly-c571a906.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-3e5192ac.js → HEIGHT_GIRLS.percentile.yearly-e78281ec.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-f8fca0b6.js → HEIGHT_GIRLS.zscore.monthly-e5212600.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-827b17e8.js → HEIGHT_GIRLS.zscore.weekly-3c269af1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-3cdb483d.js → HEIGHT_GIRLS.zscore.yearly-449bc93d.js} +0 -0
- /package/build/{Visible-515a4eec.js → Visible-16859c31.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-2ecbd498.js → WEIGHT_BOYS.percentile.monthly-85da0f0a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-75c9c25c.js → WEIGHT_BOYS.percentile.weekly-9229beac.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-03e7cea6.js → WEIGHT_BOYS.percentile.yearly-e8a3c476.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-2ff9fb56.js → WEIGHT_BOYS.zscore.monthly-20bef361.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-e9f7fe2d.js → WEIGHT_BOYS.zscore.weekly-0ec853d0.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-4a96f34f.js → WEIGHT_BOYS.zscore.yearly-fccc526c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5bf09e30.js → WEIGHT_GIRLS.percentile.monthly-e7c89bed.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-f737ae23.js → WEIGHT_GIRLS.percentile.weekly-2510046f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-56ebc8eb.js → WEIGHT_GIRLS.percentile.yearly-5046e02b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4697d3b5.js → WEIGHT_GIRLS.zscore.monthly-e6077126.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-3633820e.js → WEIGHT_GIRLS.zscore.weekly-1a145215.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-a9a04790.js → WEIGHT_GIRLS.zscore.yearly-31e42fc2.js} +0 -0
- /package/build/{animation-85d012ee.js → animation-f64d3491.js} +0 -0
- /package/build/{cart-8877bd63.js → cart-1cbf9c06.js} +0 -0
- /package/build/{constants-a78fa8b3.js → constants-1953275e.js} +0 -0
- /package/build/{constants-8743b014.js → constants-2aeb65f2.js} +0 -0
- /package/build/{doctor-2c14fed1.js → doctor-10ee1543.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-42ff2c64.js → BMI_BOYS.percentile.monthly-44bf9bca.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b4a6c521.js → BMI_BOYS.percentile.weekly-14f8edd2.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-d3bc1a77.js → BMI_BOYS.percentile.yearly-609a4150.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-c4506dfa.js → BMI_BOYS.zscore.monthly-5f7b2488.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-ddf3b3f9.js → BMI_BOYS.zscore.weekly-79b9ae06.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-e0e3139e.js → BMI_BOYS.zscore.yearly-08133388.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-96686bcc.js → BMI_GIRLS.percentile.monthly-20e00636.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-c3106a65.js → BMI_GIRLS.percentile.weekly-033dda0b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-b38c1f1f.js → BMI_GIRLS.percentile.yearly-d66fbb80.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-f8a7836f.js → BMI_GIRLS.zscore.monthly-fec8e639.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-4c1fc771.js → BMI_GIRLS.zscore.weekly-7cd36dc2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-dce5e66a.js → BMI_GIRLS.zscore.yearly-9729495b.js} +0 -0
- /package/build/esm/{ChevronDown-31ea3e19.js → ChevronDown-b58f1e76.js} +0 -0
- /package/build/esm/{Close-40d598bc.js → Close-0390b2a2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-34e3fa1c.js → HEAD CIRCUM_BOYS.percentile.monthly-6aa62326.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d3f3568f.js → HEAD CIRCUM_BOYS.percentile.weekly-dccbec56.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-dfae3ad2.js → HEAD CIRCUM_BOYS.percentile.yearly-153e0846.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-95840c2f.js → HEAD CIRCUM_BOYS.zscore.monthly-3fe46c5e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8b198c1c.js → HEAD CIRCUM_BOYS.zscore.weekly-81fa76e0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b7d639ad.js → HEAD CIRCUM_BOYS.zscore.yearly-a5955c3a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-47caa070.js → HEAD CIRCUM_GIRLS.percentile.monthly-16afd7d8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-bae46665.js → HEAD CIRCUM_GIRLS.percentile.weekly-b0258df8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-81989cdd.js → HEAD CIRCUM_GIRLS.percentile.yearly-fbe848aa.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-f2f7d985.js → HEAD CIRCUM_GIRLS.zscore.monthly-7cb222f7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e287ddb7.js → HEAD CIRCUM_GIRLS.zscore.weekly-786f37d5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-8790b62a.js → HEAD CIRCUM_GIRLS.zscore.yearly-546970dc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-5d2b6466.js → HEIGHT_BOYS.percentile.monthly-3fe8dd70.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-a38ad13e.js → HEIGHT_BOYS.percentile.weekly-8ff515f0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-e4841712.js → HEIGHT_BOYS.percentile.yearly-2ed73e3c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-d8e722f8.js → HEIGHT_BOYS.zscore.monthly-f18a337e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-a92ea3ca.js → HEIGHT_BOYS.zscore.weekly-d06e0e09.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3af1adce.js → HEIGHT_BOYS.zscore.yearly-e500b2d1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c5203801.js → HEIGHT_GIRLS.percentile.monthly-2eb2700e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-4c25d07f.js → HEIGHT_GIRLS.percentile.weekly-2f205b6e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f91e2e27.js → HEIGHT_GIRLS.percentile.yearly-0d54472f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b2a60aca.js → HEIGHT_GIRLS.zscore.monthly-d1846835.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0a98c520.js → HEIGHT_GIRLS.zscore.weekly-b9036bc9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-8070d58f.js → HEIGHT_GIRLS.zscore.yearly-8dcf6e2d.js} +0 -0
- /package/build/esm/{Visible-e3e4fb6f.js → Visible-76b05e8e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b262b97d.js → WEIGHT_BOYS.percentile.monthly-85f7b978.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-7e817f9f.js → WEIGHT_BOYS.percentile.weekly-7c206abd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b7f1786a.js → WEIGHT_BOYS.percentile.yearly-52c0957d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-014af835.js → WEIGHT_BOYS.zscore.monthly-f48a971e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-4577f724.js → WEIGHT_BOYS.zscore.weekly-6355c54f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-08fd3f13.js → WEIGHT_BOYS.zscore.yearly-bdb0459b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a6e1aa0d.js → WEIGHT_GIRLS.percentile.monthly-a3b768e9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-4c0b6f94.js → WEIGHT_GIRLS.percentile.weekly-715f5009.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bf689a3a.js → WEIGHT_GIRLS.percentile.yearly-c3a04a7d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-f82fc3c8.js → WEIGHT_GIRLS.zscore.monthly-ea7be69d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-854ce987.js → WEIGHT_GIRLS.zscore.weekly-8b92b792.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-2a3b869a.js → WEIGHT_GIRLS.zscore.yearly-8a06cbf9.js} +0 -0
- /package/build/esm/{animation-85d9a0ed.js → animation-b6d252e4.js} +0 -0
- /package/build/esm/{cart-1ac23ce7.js → cart-043dfe5c.js} +0 -0
- /package/build/esm/{constants-a5827634.js → constants-697503a2.js} +0 -0
- /package/build/esm/{constants-f6b2e49d.js → constants-b3779c5e.js} +0 -0
- /package/build/esm/{doctor-e0c2476d.js → doctor-9f166022.js} +0 -0
- /package/build/esm/{index-8684181f.js → index-36764891.js} +0 -0
- /package/build/esm/{index-ad1c7c38.js → index-44870130.js} +0 -0
- /package/build/esm/{index-266a32ff.js → index-77dc8ed1.js} +0 -0
- /package/build/esm/{index-21bca818.js → index-ee5dec8f.js} +0 -0
- /package/build/esm/{localizeNumberFormat-1f000110.js → localizeNumberFormat-4dd1fd7a.js} +0 -0
- /package/build/esm/{normalizeLink-7a93ebb9.js → normalizeLink-243e6342.js} +0 -0
- /package/build/esm/{number-1d1ba14a.js → number-129aedb0.js} +0 -0
- /package/build/esm/{paths-b83be1a0.js → paths-67ad72a7.js} +0 -0
- /package/build/esm/{translationsContext-42a1fa63.js → translationsContext-68168ff3.js} +0 -0
- /package/build/esm/{tslib.es6-06ba3978.js → tslib.es6-2d738692.js} +0 -0
- /package/build/esm/{types-721e7a66.js → types-7d3a4df2.js} +0 -0
- /package/build/esm/{useIsInit-f4dec279.js → useIsInit-6be72906.js} +0 -0
- /package/build/esm/{useOutsideClick-210c1134.js → useOutsideClick-fd3849ea.js} +0 -0
- /package/build/esm/{useScrollbarSize-909ae7ec.js → useScrollbarSize-77534d1d.js} +0 -0
- /package/build/esm/{useUniqueId-5885911d.js → useUniqueId-e84c90ce.js} +0 -0
- /package/build/{index-2de1eb4a.js → index-0168f1a0.js} +0 -0
- /package/build/{index-82c85f9d.js → index-053ed018.js} +0 -0
- /package/build/{index-bc9e8eae.js → index-90e7e427.js} +0 -0
- /package/build/{index-6fdcd09d.js → index-a73d7cb3.js} +0 -0
- /package/build/{localizeNumberFormat-7ff6bd3a.js → localizeNumberFormat-8ab6a41e.js} +0 -0
- /package/build/{normalizeLink-d307f624.js → normalizeLink-07c90859.js} +0 -0
- /package/build/{number-dddf656c.js → number-5605662c.js} +0 -0
- /package/build/{paths-7da79c64.js → paths-6b0114f1.js} +0 -0
- /package/build/{translationsContext-00fdb62e.js → translationsContext-ade0df93.js} +0 -0
- /package/build/{tslib.es6-bd3f8718.js → tslib.es6-d6fa4ee6.js} +0 -0
- /package/build/{types-b25ffde0.js → types-87a48532.js} +0 -0
- /package/build/{useIsInit-e06b96f5.js → useIsInit-08580a12.js} +0 -0
- /package/build/{useOutsideClick-d95a32b6.js → useOutsideClick-960bf73b.js} +0 -0
- /package/build/{useScrollbarSize-1499b1c3.js → useScrollbarSize-49049c18.js} +0 -0
- /package/build/{useUniqueId-1af8848e.js → useUniqueId-3c52a5c5.js} +0 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-2d738692.js';
|
|
2
|
+
import React__default, { createContext, useContext, useState, useMemo, useEffect } from 'react';
|
|
3
|
+
import { Controller, useForm } from 'react-hook-form';
|
|
4
|
+
import { u as useHealthToolsCache } from './useHealthToolCache-fe7dc697.js';
|
|
5
|
+
import { H as HEALTH_TOOL_TYPE } from './constants-697503a2.js';
|
|
6
|
+
import { G as GenderOptionControl } from './index-3e2f70fe.js';
|
|
7
|
+
import { c as Input } from './index-03d7200e.js';
|
|
8
|
+
import '@mantine/core';
|
|
9
|
+
import '@mantine/dates';
|
|
10
|
+
import './index-39aa0c9f.js';
|
|
11
|
+
import './index-38ced379.js';
|
|
12
|
+
import './index-b9c4dfcb.js';
|
|
13
|
+
import './useMantineLocale-faa72172.js';
|
|
14
|
+
import { T as Text } from './index-7a1552e9.js';
|
|
15
|
+
import './index-bdc3bd61.js';
|
|
16
|
+
import { theme } from './miscTheme.js';
|
|
17
|
+
import { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
18
|
+
import '@mantine/hooks';
|
|
19
|
+
import './utils-40533779.js';
|
|
20
|
+
import './other-9b439f19.js';
|
|
21
|
+
import { H as HealthToolFormWrapper } from './index-a1d2c38b.js';
|
|
22
|
+
import { domainLocales } from './constantsDomainLocales.js';
|
|
23
|
+
import { getBmi } from './embeddedHeathToolCards_helpers.js';
|
|
24
|
+
|
|
25
|
+
const BmiFormContext = createContext({});
|
|
26
|
+
|
|
27
|
+
const DefaultForm = (props) => {
|
|
28
|
+
var _a, _b, _c, _d;
|
|
29
|
+
const { t, locale } = useTranslations();
|
|
30
|
+
const { control, bmiGenerated, isTouched, linkTool, submitProps } = useContext(BmiFormContext);
|
|
31
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
32
|
+
React__default.createElement(Controller, { name: "gender", control: control, rules: (_a = bmiGenerated.gender) === null || _a === void 0 ? void 0 : _a.rule, render: ({ field: { onChange }, fieldState: { error } }) => {
|
|
33
|
+
return (React__default.createElement(GenderOptionControl, { error: isTouched ? error === null || error === void 0 ? void 0 : error.message : '', onChange: onChange }));
|
|
34
|
+
} }),
|
|
35
|
+
React__default.createElement(Controller, { name: "age", control: control, rules: (_b = bmiGenerated.age) === null || _b === void 0 ? void 0 : _b.rule, render: ({ field: { name, value, onChange }, fieldState: { error }, }) => {
|
|
36
|
+
return (React__default.createElement(Input.Number, { label: React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray600 },
|
|
37
|
+
t('bmi.ageInput'),
|
|
38
|
+
' ',
|
|
39
|
+
React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray300, as: "span" }, t('bmi.ageInput.desc'))), placeholder: t('tools.inputPlaceholder', {
|
|
40
|
+
content: '25',
|
|
41
|
+
}), name: name, value: value, onChange: onChange, error: isTouched ? error === null || error === void 0 ? void 0 : error.message : '', min: 0 }));
|
|
42
|
+
} }),
|
|
43
|
+
React__default.createElement(Controller, { name: "height", control: control, rules: (_c = bmiGenerated.height) === null || _c === void 0 ? void 0 : _c.rule, render: ({ field: { name, value, onChange }, fieldState: { error }, }) => {
|
|
44
|
+
return (React__default.createElement(Input.Number, { label: React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray600 },
|
|
45
|
+
t('bmi.heightInput'),
|
|
46
|
+
' ',
|
|
47
|
+
React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray300, as: "span" }, t('bmi.heightInput.desc'))), placeholder: t('tools.inputPlaceholder', {
|
|
48
|
+
content: '170',
|
|
49
|
+
}), name: name, value: value, onChange: onChange, error: isTouched ? error === null || error === void 0 ? void 0 : error.message : '', min: 0 }));
|
|
50
|
+
} }),
|
|
51
|
+
React__default.createElement(Controller, { name: "weight", control: control, rules: (_d = bmiGenerated.weight) === null || _d === void 0 ? void 0 : _d.rule, render: ({ field: { name, value, onChange }, fieldState: { error }, }) => {
|
|
52
|
+
return (React__default.createElement(Input.Number, { label: React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray600 },
|
|
53
|
+
t('bmi.weightInput'),
|
|
54
|
+
' ',
|
|
55
|
+
React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray300, as: "span" }, t('bmi.weightInput.desc'))), placeholder: t('tools.inputPlaceholder', {
|
|
56
|
+
content: '60',
|
|
57
|
+
}), name: name, value: value, onChange: onChange, error: isTouched ? error === null || error === void 0 ? void 0 : error.message : '', precision: 1, min: 0 }));
|
|
58
|
+
} }),
|
|
59
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ className: "bmi-btn bmi--btn-submit", dataEventCategory: "Health Tool", dataEventAction: "BMI", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}`, type: "submit" }, submitProps), t('bmi.submit'))));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const InlineForm = (props) => {
|
|
63
|
+
var _a, _b, _c, _d;
|
|
64
|
+
const { t, locale } = useTranslations();
|
|
65
|
+
const { control, bmiGenerated, isTouched, linkTool, submitProps } = useContext(BmiFormContext);
|
|
66
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
|
|
67
|
+
React__default.createElement(Controller, { name: "gender", control: control, rules: (_a = bmiGenerated.gender) === null || _a === void 0 ? void 0 : _a.rule, render: ({ field: { onChange }, fieldState: { error } }) => {
|
|
68
|
+
return (React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('tools.selectGender'), width: 'none', errorMess: isTouched && (error === null || error === void 0 ? void 0 : error.message) },
|
|
69
|
+
React__default.createElement(GenderOptionControl, { type: "radio", hideLabel: true, error: isTouched ? React__default.createElement(React__default.Fragment, null) : '', onChange: onChange })));
|
|
70
|
+
} }),
|
|
71
|
+
React__default.createElement(Controller, { name: "age", control: control, rules: (_b = bmiGenerated.age) === null || _b === void 0 ? void 0 : _b.rule, render: ({ field: { name, value, onChange }, fieldState: { error }, }) => {
|
|
72
|
+
return (React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('bmi.ageInput'), errorMess: isTouched && (error === null || error === void 0 ? void 0 : error.message) },
|
|
73
|
+
React__default.createElement(Input.Number, { placeholder: t('tools.inputPlaceholder', {
|
|
74
|
+
content: '25',
|
|
75
|
+
}), name: name, value: value, onChange: onChange, error: isTouched && (error === null || error === void 0 ? void 0 : error.message) ? React__default.createElement(React__default.Fragment, null) : '', min: 0, rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('tools.yearsOld')), styles: () => ({
|
|
76
|
+
rightSection: {
|
|
77
|
+
width: 'auto',
|
|
78
|
+
},
|
|
79
|
+
}) })));
|
|
80
|
+
} }),
|
|
81
|
+
React__default.createElement(Controller, { name: "height", control: control, rules: (_c = bmiGenerated.height) === null || _c === void 0 ? void 0 : _c.rule, render: ({ field: { name, value, onChange }, fieldState: { error }, }) => {
|
|
82
|
+
return (React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
83
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('bmi.heightInput') },
|
|
84
|
+
React__default.createElement(Input.Number, { placeholder: t('tools.inputPlaceholder', {
|
|
85
|
+
content: '170',
|
|
86
|
+
}), name: name, value: value, onChange: onChange, min: 0, error: isTouched && (error === null || error === void 0 ? void 0 : error.message) ? React__default.createElement(React__default.Fragment, null) : '', rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('babyGrowth.cm')) })),
|
|
87
|
+
isTouched && (error === null || error === void 0 ? void 0 : error.message) && (React__default.createElement(HealthToolFormWrapper.Error, null, error.message))));
|
|
88
|
+
} }),
|
|
89
|
+
React__default.createElement(Controller, { name: "weight", control: control, rules: (_d = bmiGenerated.weight) === null || _d === void 0 ? void 0 : _d.rule, render: ({ field: { name, value, onChange }, fieldState: { error }, }) => {
|
|
90
|
+
return (React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
91
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('bmi.weightInput') },
|
|
92
|
+
React__default.createElement(Input.Number, { placeholder: t('tools.inputPlaceholder', {
|
|
93
|
+
content: '60',
|
|
94
|
+
}), name: name, value: value, onChange: onChange, error: isTouched && (error === null || error === void 0 ? void 0 : error.message) ? React__default.createElement(React__default.Fragment, null) : '', precision: 1, min: 0, rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('babyGrowth.kg')) })),
|
|
95
|
+
isTouched && (error === null || error === void 0 ? void 0 : error.message) && (React__default.createElement(HealthToolFormWrapper.Error, null, error.message))));
|
|
96
|
+
} }),
|
|
97
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ className: "bmi-btn bmi--btn-submit", dataEventCategory: "Health Tool", dataEventAction: "BMI", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}`, type: "submit" }, submitProps), t('bmi.submit'))));
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const BmiForm = (_a) => {
|
|
101
|
+
var { value: valueProps, onChange: onChangeProps, onSubmit: onSubmitProps, bmiGenerated, bmiUnit, formLayout = 'default', submitProps } = _a, rest = __rest(_a, ["value", "onChange", "onSubmit", "bmiGenerated", "bmiUnit", "formLayout", "submitProps"]);
|
|
102
|
+
const [isTouched, setIsTouched] = useState(false);
|
|
103
|
+
const { control, handleSubmit, setValue, watch } = useForm();
|
|
104
|
+
const data = watch();
|
|
105
|
+
const { locale } = useTranslations();
|
|
106
|
+
const { getHealthToolLink } = useHealthToolsCache(locale);
|
|
107
|
+
const linkTool = useMemo(() => getHealthToolLink(HEALTH_TOOL_TYPE.OVULATION), [getHealthToolLink]);
|
|
108
|
+
const onValid = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
109
|
+
const height = bmiUnit.heightConvert(data.height);
|
|
110
|
+
const weight = bmiUnit.weightConvert(data.weight);
|
|
111
|
+
const submitValue = {
|
|
112
|
+
gender: data.gender,
|
|
113
|
+
age: data.age,
|
|
114
|
+
height,
|
|
115
|
+
weight,
|
|
116
|
+
bmi: getBmi({ height, weight }),
|
|
117
|
+
};
|
|
118
|
+
onInValid();
|
|
119
|
+
onSubmitProps && onSubmitProps(submitValue);
|
|
120
|
+
});
|
|
121
|
+
const onInValid = () => {
|
|
122
|
+
setIsTouched(true);
|
|
123
|
+
};
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
Object.keys(valueProps || {}).forEach((k) => {
|
|
126
|
+
const key = k;
|
|
127
|
+
setValue(key, valueProps === null || valueProps === void 0 ? void 0 : valueProps[key], {
|
|
128
|
+
shouldTouch: false,
|
|
129
|
+
shouldDirty: false,
|
|
130
|
+
shouldValidate: false,
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
}, [valueProps]);
|
|
134
|
+
useEffect(() => {
|
|
135
|
+
onChangeProps && onChangeProps(data);
|
|
136
|
+
}, [data]);
|
|
137
|
+
const commonProps = Object.assign({ onSubmit: handleSubmit(onValid, onInValid) }, rest);
|
|
138
|
+
return (React__default.createElement(BmiFormContext.Provider, { value: {
|
|
139
|
+
control,
|
|
140
|
+
bmiGenerated,
|
|
141
|
+
isTouched,
|
|
142
|
+
linkTool,
|
|
143
|
+
submitProps,
|
|
144
|
+
} }, formLayout === 'inline' ? (React__default.createElement(InlineForm, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm, Object.assign({}, commonProps)))));
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export { BmiForm as B };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { c as cookie } from './index-
|
|
2
|
-
import { B as BEARER_TOKEN_COOKIE
|
|
3
|
-
import { N as NodeIntentType } from './index-
|
|
1
|
+
import { c as cookie } from './index-44870130.js';
|
|
2
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-39aa0c9f.js';
|
|
3
|
+
import { N as NodeIntentType } from './index-38ced379.js';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { v4 } from 'uuid';
|
|
6
|
-
import {
|
|
6
|
+
import { isProduction } from './constantsIsProduction.js';
|
|
7
|
+
import { domainLocales } from './constantsDomainLocales.js';
|
|
7
8
|
|
|
8
9
|
const queryKeysJson = [
|
|
9
10
|
'form_submit_meta',
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-2d738692.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { createStyles, rem, Box } from '@mantine/core';
|
|
4
|
+
import './index-03d7200e.js';
|
|
5
|
+
import '@mantine/dates';
|
|
6
|
+
import './index-39aa0c9f.js';
|
|
7
|
+
import './index-38ced379.js';
|
|
8
|
+
import './index-b9c4dfcb.js';
|
|
9
|
+
import './useMantineLocale-faa72172.js';
|
|
10
|
+
import { T as Text } from './index-7a1552e9.js';
|
|
11
|
+
import { B as Button } from './index-bdc3bd61.js';
|
|
12
|
+
import { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
13
|
+
import '@mantine/hooks';
|
|
14
|
+
import './utils-40533779.js';
|
|
15
|
+
import './other-9b439f19.js';
|
|
16
|
+
|
|
17
|
+
var useStyles = createStyles((theme, { hasOnClickFn }) => {
|
|
18
|
+
return {
|
|
19
|
+
root: {
|
|
20
|
+
position: 'relative',
|
|
21
|
+
display: 'flex',
|
|
22
|
+
flexDirection: 'column',
|
|
23
|
+
gap: rem(16),
|
|
24
|
+
},
|
|
25
|
+
sponsorBox: {
|
|
26
|
+
display: 'flex',
|
|
27
|
+
gap: rem(12),
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
backgroundColor: theme.colors.neutral[0],
|
|
30
|
+
border: `1px solid ${theme.colors.neutral[1]}`,
|
|
31
|
+
borderRadius: rem(4),
|
|
32
|
+
padding: '4px 12px',
|
|
33
|
+
alignSelf: 'flex-start',
|
|
34
|
+
},
|
|
35
|
+
sponsorLogo: {
|
|
36
|
+
maxHeight: rem(32),
|
|
37
|
+
},
|
|
38
|
+
btn: {
|
|
39
|
+
minWidth: rem(180),
|
|
40
|
+
[theme.fn.largerThan('sm')]: {
|
|
41
|
+
alignSelf: 'flex-end',
|
|
42
|
+
},
|
|
43
|
+
visibility: hasOnClickFn ? 'visible' : 'hidden',
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const BabyPoopForm = (_a) => {
|
|
49
|
+
var { babyPoopPage, onClickFindOut, currentUrl, sponsorLogo, btnProps, styles, classNames } = _a, props = __rest(_a, ["babyPoopPage", "onClickFindOut", "currentUrl", "sponsorLogo", "btnProps", "styles", "classNames"]);
|
|
50
|
+
const { t } = useTranslations();
|
|
51
|
+
const { classes } = useStyles({ hasOnClickFn: Boolean(onClickFindOut) }, { name: 'BabyPoopForm', styles, classNames });
|
|
52
|
+
return (React__default.createElement(Box, Object.assign({ className: classes.root }, props),
|
|
53
|
+
sponsorLogo && (React__default.createElement(Box, { className: classes.sponsorBox },
|
|
54
|
+
React__default.createElement(Text, { size: "p4" }, t('common.sponsoredBy')),
|
|
55
|
+
React__default.createElement("img", { loading: "lazy", src: sponsorLogo, alt: "sponsor", className: classes.sponsorLogo }))),
|
|
56
|
+
React__default.createElement(Text, { size: "p3", className: "description" }, babyPoopPage.description),
|
|
57
|
+
React__default.createElement(Button, Object.assign({ className: classes.btn, onClick: onClickFindOut, dataEventCategory: "Health Tool", dataEventAction: "Baby Stool Inquiry", dataEventLabel: currentUrl }, btnProps), t('babyPoop.findOut'))));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { BabyPoopForm as B };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-2d738692.js';
|
|
2
2
|
import React__default, { createContext, useContext } from 'react';
|
|
3
3
|
import { createStyles, rem, Box, Input, Chip, useMantineTheme, Flex, Switch } from '@mantine/core';
|
|
4
|
-
import { T as Text } from './index-
|
|
5
|
-
import { B as Button } from './index-
|
|
6
|
-
import { u as useTranslations } from './useTranslations-
|
|
4
|
+
import { T as Text } from './index-7a1552e9.js';
|
|
5
|
+
import { B as Button } from './index-bdc3bd61.js';
|
|
6
|
+
import { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
7
7
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
8
|
-
import {
|
|
8
|
+
import { theme } from './miscTheme.js';
|
|
9
9
|
|
|
10
10
|
var useStyles$8 = createStyles(() => {
|
|
11
11
|
return {
|
|
@@ -399,19 +399,4 @@ HealthToolFormWrapper.Unit = Unit;
|
|
|
399
399
|
HealthToolFormWrapper.Switching = Switching;
|
|
400
400
|
HealthToolFormWrapper.ChipGroup = ChipGroup;
|
|
401
401
|
|
|
402
|
-
|
|
403
|
-
height: {
|
|
404
|
-
min: 1,
|
|
405
|
-
max: 300,
|
|
406
|
-
},
|
|
407
|
-
weight: {
|
|
408
|
-
min: 1,
|
|
409
|
-
max: 200,
|
|
410
|
-
},
|
|
411
|
-
pregnantWeek: {
|
|
412
|
-
min: 1,
|
|
413
|
-
max: 40,
|
|
414
|
-
},
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
export { HealthToolFormWrapper as H, INPUT_RANGE as I };
|
|
402
|
+
export { HealthToolFormWrapper as H };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-2d738692.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-03d7200e.js';
|
|
4
4
|
import '@mantine/core';
|
|
5
5
|
import '@mantine/dates';
|
|
6
|
-
import './index-
|
|
7
|
-
import './index-
|
|
8
|
-
import './index-
|
|
9
|
-
import './useMantineLocale-
|
|
10
|
-
import { T as Text$1 } from './index-
|
|
11
|
-
import './index-
|
|
12
|
-
import './
|
|
13
|
-
import './translationsContext-42a1fa63.js';
|
|
6
|
+
import './index-39aa0c9f.js';
|
|
7
|
+
import './index-38ced379.js';
|
|
8
|
+
import './index-b9c4dfcb.js';
|
|
9
|
+
import './useMantineLocale-faa72172.js';
|
|
10
|
+
import { T as Text$1 } from './index-7a1552e9.js';
|
|
11
|
+
import './index-bdc3bd61.js';
|
|
12
|
+
import './translationsContext-68168ff3.js';
|
|
14
13
|
import 'string-format';
|
|
15
14
|
import '@mantine/hooks';
|
|
16
|
-
import './utils-
|
|
15
|
+
import './utils-40533779.js';
|
|
16
|
+
import './other-9b439f19.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @deprecated Consider to use import { Text } from '@hhgtech/hhg-components/mantine'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { I as Icon } from './index-
|
|
3
|
-
import { u as useTranslations } from './useTranslations-
|
|
2
|
+
import { I as Icon } from './index-f1025cea.js';
|
|
3
|
+
import { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
4
4
|
|
|
5
5
|
var styles = {"loading":"tliWyii"};
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useState } from 'react';
|
|
2
|
-
import { F as Flag } from './index-
|
|
2
|
+
import { F as Flag } from './index-03d7200e.js';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import {
|
|
5
|
-
import { T as Text } from './index-
|
|
6
|
-
import { C as CommonGAssets } from './index-
|
|
4
|
+
import { theme } from './miscTheme.js';
|
|
5
|
+
import { T as Text } from './index-7a1552e9.js';
|
|
6
|
+
import { C as CommonGAssets } from './index-b9c4dfcb.js';
|
|
7
7
|
|
|
8
8
|
const ALLOW_DOMAIN_URL = [
|
|
9
9
|
'hellobacsi.com',
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-2d738692.js';
|
|
2
2
|
import React__default, { useReducer, useState, useEffect } from 'react';
|
|
3
3
|
import { Stack, Input as Input$1 } from '@mantine/core';
|
|
4
|
-
import { c as Input, S as Select } from './index-
|
|
4
|
+
import { c as Input, S as Select } from './index-03d7200e.js';
|
|
5
5
|
import '@mantine/dates';
|
|
6
|
-
import { C as CDN_ADDRESS } from './index-
|
|
7
|
-
import
|
|
8
|
-
import './index-
|
|
9
|
-
import './useMantineLocale-
|
|
10
|
-
import './index-
|
|
11
|
-
import './index-
|
|
12
|
-
import './
|
|
13
|
-
import { u as useTranslations } from './useTranslations-b970f667.js';
|
|
6
|
+
import { C as CDN_ADDRESS } from './index-39aa0c9f.js';
|
|
7
|
+
import './index-38ced379.js';
|
|
8
|
+
import './index-b9c4dfcb.js';
|
|
9
|
+
import './useMantineLocale-faa72172.js';
|
|
10
|
+
import './index-7a1552e9.js';
|
|
11
|
+
import './index-bdc3bd61.js';
|
|
12
|
+
import { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
14
13
|
import '@mantine/hooks';
|
|
15
|
-
import './utils-
|
|
16
|
-
import
|
|
14
|
+
import './utils-40533779.js';
|
|
15
|
+
import './other-9b439f19.js';
|
|
16
|
+
import { M as MAPPED_LOCALE } from './utils-dbc80293.js';
|
|
17
|
+
import { L as LOCALE } from './Locale-c6a90240.js';
|
|
17
18
|
|
|
18
19
|
const generateGetAddressDetail = (locale) => {
|
|
19
20
|
return `${CDN_ADDRESS}/cities-data-${MAPPED_LOCALE[locale]}.json`;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-2d738692.js';
|
|
2
2
|
import React__default, { useState, useMemo, useCallback } from 'react';
|
|
3
|
-
import { u as useTranslations } from './useTranslations-
|
|
3
|
+
import { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
4
4
|
import { createStyles } from '@mantine/core';
|
|
5
|
-
import { P as PATHS } from './paths-
|
|
6
|
-
import { L as LOCALIZED_SLUGS } from './constants-
|
|
7
|
-
import { B as Button } from './index-
|
|
8
|
-
import
|
|
9
|
-
import { c as callApi, g as getCarePath } from './utils-
|
|
10
|
-
import {
|
|
5
|
+
import { P as PATHS } from './paths-67ad72a7.js';
|
|
6
|
+
import { L as LOCALIZED_SLUGS } from './constants-b3779c5e.js';
|
|
7
|
+
import { B as Button } from './index-bdc3bd61.js';
|
|
8
|
+
import './index-39aa0c9f.js';
|
|
9
|
+
import { c as callApi, g as getCarePath } from './utils-c730ad5d.js';
|
|
10
|
+
import { domainLocales } from './constantsDomainLocales.js';
|
|
11
|
+
import { isProduction } from './constantsIsProduction.js';
|
|
11
12
|
|
|
12
13
|
var useStyles = createStyles((theme) => {
|
|
13
14
|
return {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useMemo, useEffect, Fragment, createContext } from 'react';
|
|
2
|
-
import { T as Text } from './index-
|
|
2
|
+
import { T as Text } from './index-7a1552e9.js';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import {
|
|
5
|
-
import { M as MediaQueries, f as formatUrlWithPageParam } from './utils-
|
|
6
|
-
import { R as Radio$1 } from './index-
|
|
7
|
-
import { T as Text$1 } from './index-
|
|
8
|
-
import {
|
|
9
|
-
import { _ as __rest } from './tslib.es6-
|
|
4
|
+
import { theme } from './miscTheme.js';
|
|
5
|
+
import { M as MediaQueries, f as formatUrlWithPageParam } from './utils-40533779.js';
|
|
6
|
+
import { R as Radio$1 } from './index-03d7200e.js';
|
|
7
|
+
import { T as Text$1 } from './index-a51336b9.js';
|
|
8
|
+
import { setDefaultClass } from './miscDefaultClassWrapper.js';
|
|
9
|
+
import { _ as __rest } from './tslib.es6-2d738692.js';
|
|
10
10
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
11
11
|
|
|
12
12
|
var styles = {"alert":"CHw-fZZ","content":"_03U6VRS","close":"EO828Vv"};
|
|
@@ -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 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-288b564e.js';
|
|
4
|
+
import { theme } from './miscTheme.js';
|
|
5
5
|
|
|
6
6
|
const StyledTextArea = styled.div `
|
|
7
7
|
textarea {
|
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
import React__default, { createContext, useContext, useMemo, useCallback, useState, useEffect, forwardRef, useRef } from 'react';
|
|
2
2
|
import { rem, Container, createStyles, Box, Stack, Flex, AspectRatio, ScrollArea, Chip, Group, Badge, MultiSelect, Stepper } from '@mantine/core';
|
|
3
|
-
import { C as CommonGAssets } from './index-
|
|
4
|
-
import { b as callApiWithAuth, d as getApiPath,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { C as CommonGAssets } from './index-b9c4dfcb.js';
|
|
4
|
+
import { b as callApiWithAuth, d as getApiPath, T as TogetherComponentGlobalContext, e as getPremiumApiPath, f as getWebsiteUrlApi, h as getSsoApiPath } from './utils-c730ad5d.js';
|
|
5
|
+
import { G as GA_TOKEN_COOKIE } from './index-39aa0c9f.js';
|
|
6
|
+
import { RISK_SCREENER_NAME, RISK_SCREENER_SLUG } from './constantsRiskScreener.js';
|
|
7
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-2d738692.js';
|
|
8
|
+
import { I as ImageWrap, e as Checkbox, f as ChipButton, c as Input, t as themeColors, b as AspectRatio$1 } from './index-03d7200e.js';
|
|
9
|
+
import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-f2e46f96.js';
|
|
10
|
+
import { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
10
11
|
import { useForm, isNotEmpty } from '@mantine/form';
|
|
11
12
|
import '@mantine/dates';
|
|
12
|
-
import
|
|
13
|
-
import './useMantineLocale-
|
|
14
|
-
import { T as Text } from './index-
|
|
15
|
-
import { B as Button } from './index-
|
|
16
|
-
import './theme-7dadf4a1.js';
|
|
13
|
+
import './index-38ced379.js';
|
|
14
|
+
import './useMantineLocale-faa72172.js';
|
|
15
|
+
import { T as Text } from './index-7a1552e9.js';
|
|
16
|
+
import { B as Button } from './index-bdc3bd61.js';
|
|
17
17
|
import { useViewportSize } from '@mantine/hooks';
|
|
18
|
-
import './utils-
|
|
19
|
-
import './
|
|
18
|
+
import './utils-40533779.js';
|
|
19
|
+
import './other-9b439f19.js';
|
|
20
|
+
import { PATHS as PATHS$2 } from './togetherApiPaths.js';
|
|
21
|
+
import './translationsContext-68168ff3.js';
|
|
20
22
|
import 'string-format';
|
|
21
|
-
import { H as Heading } from './index-
|
|
22
|
-
import { u as useHealthToolsCache } from './useHealthToolCache-
|
|
23
|
-
import { I as Icon } from './index-
|
|
24
|
-
import {
|
|
23
|
+
import { H as Heading } from './index-f0184ea4.js';
|
|
24
|
+
import { u as useHealthToolsCache } from './useHealthToolCache-fe7dc697.js';
|
|
25
|
+
import { I as Icon } from './index-f1025cea.js';
|
|
26
|
+
import { domainLocales } from './constantsDomainLocales.js';
|
|
27
|
+
import { isProduction } from './constantsIsProduction.js';
|
|
25
28
|
import { Close, Plus } from '@hhgtech/icons/core';
|
|
26
|
-
import { M as Modal } from './index-
|
|
29
|
+
import { M as Modal } from './index-3e3904ec.js';
|
|
27
30
|
import Cookies from 'js-cookie';
|
|
28
31
|
import flatten from 'lodash/flatten';
|
|
29
32
|
import uniqBy from 'lodash/uniqBy';
|
|
33
|
+
import { L as LOCALE } from './Locale-c6a90240.js';
|
|
30
34
|
|
|
31
35
|
const PREFER_TOPICS = [
|
|
32
36
|
{
|
|
@@ -1,45 +1,49 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-2d738692.js';
|
|
2
2
|
import React__default, { useMemo, useRef, useState, Fragment, useEffect, useContext, useCallback } from 'react';
|
|
3
|
-
import { i as isInternalLink, L as LanguageSwitcher } from './index-
|
|
4
|
-
import {
|
|
5
|
-
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-
|
|
6
|
-
import { a as getCurrentSsoUrl, g as getCurrentBaseUrl, b as getTogetherApiDomain, c as getDiscoverApiDomain, d as getCareApiDomain } from './routing-
|
|
7
|
-
import {
|
|
8
|
-
import { L as Logo } from './index-
|
|
9
|
-
import { u as useTranslations } from './useTranslations-
|
|
3
|
+
import { i as isInternalLink, L as LanguageSwitcher } from './index-a7f10a58.js';
|
|
4
|
+
import { a as CARE_LOCALES, T as TOGETHER_LOCALES, E as ECOM_LOCALES, b as CARE_BOOKING_LOCALES, L as LOCALE_SPECS, S as STATIC_PAGES } from './index-39aa0c9f.js';
|
|
5
|
+
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-243e6342.js';
|
|
6
|
+
import { a as getCurrentSsoUrl, g as getCurrentBaseUrl, b as getTogetherApiDomain, c as getDiscoverApiDomain, d as getCareApiDomain } from './routing-f2e46f96.js';
|
|
7
|
+
import { a as formatCommunity, b as formatPost } from './dataTransform-8852461c.js';
|
|
8
|
+
import { L as Logo } from './index-e0f8a206.js';
|
|
9
|
+
import { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
10
10
|
import throttle from 'lodash/throttle';
|
|
11
11
|
import { createStyles, Box, Indicator, Portal, useMantineTheme } from '@mantine/core';
|
|
12
|
-
import { a as Avatar, c as Input } from './index-
|
|
12
|
+
import { a as Avatar, c as Input } from './index-03d7200e.js';
|
|
13
13
|
import '@mantine/dates';
|
|
14
|
-
import
|
|
15
|
-
import { C as CommonGAssets } from './index-
|
|
16
|
-
import './useMantineLocale-
|
|
17
|
-
import { T as Text } from './index-
|
|
18
|
-
import { B as Button$1 } from './index-
|
|
19
|
-
import
|
|
20
|
-
import './translationsContext-42a1fa63.js';
|
|
14
|
+
import './index-38ced379.js';
|
|
15
|
+
import { C as CommonGAssets } from './index-b9c4dfcb.js';
|
|
16
|
+
import './useMantineLocale-faa72172.js';
|
|
17
|
+
import { T as Text } from './index-7a1552e9.js';
|
|
18
|
+
import { B as Button$1 } from './index-bdc3bd61.js';
|
|
19
|
+
import './translationsContext-68168ff3.js';
|
|
21
20
|
import formatString from 'string-format';
|
|
22
21
|
import '@mantine/hooks';
|
|
23
|
-
import { g as getBoundariesFromMediaQueryKey, M as MediaQueries } from './utils-
|
|
24
|
-
import
|
|
22
|
+
import { g as getBoundariesFromMediaQueryKey, M as MediaQueries } from './utils-40533779.js';
|
|
23
|
+
import './other-9b439f19.js';
|
|
24
|
+
import { L as LOCALISED_SLUGS } from './constants-e930bc7b.js';
|
|
25
25
|
import styled from '@emotion/styled';
|
|
26
26
|
import { User } from '@hhgtech/icons/core';
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
27
|
+
import { theme } from './miscTheme.js';
|
|
28
|
+
import { setDefaultClass } from './miscDefaultClassWrapper.js';
|
|
29
|
+
import { C as ChevronDown } from './ChevronDown-b58f1e76.js';
|
|
29
30
|
import { css } from '@emotion/react';
|
|
30
|
-
import { B as Button } from './index-
|
|
31
|
-
import {
|
|
32
|
-
import { L as
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
31
|
+
import { B as Button } from './index-f93799fc.js';
|
|
32
|
+
import { P as Popup } from './index-f3903d13.js';
|
|
33
|
+
import { L as LOCALE } from './Locale-c6a90240.js';
|
|
34
|
+
import { i as domainLocalesMarryBaby } from './utils-c730ad5d.js';
|
|
35
|
+
import { domainLocales } from './constantsDomainLocales.js';
|
|
36
|
+
import { L as LOCALIZED_SLUGS } from './constants-b3779c5e.js';
|
|
37
|
+
import { H as Heading } from './index-f0184ea4.js';
|
|
38
|
+
import { I as Indicator$1 } from './index-88c06a7e.js';
|
|
39
|
+
import { u as useIsInit } from './useIsInit-6be72906.js';
|
|
36
40
|
import dayjs from 'dayjs';
|
|
37
41
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
38
|
-
import { U as UserAvatar } from './index-
|
|
42
|
+
import { U as UserAvatar } from './index-41a809d7.js';
|
|
39
43
|
import { ArrowRight } from '@hhgtech/icons/other';
|
|
40
|
-
import { C as Container } from './index-
|
|
44
|
+
import { C as Container } from './index-77dc8ed1.js';
|
|
41
45
|
import debounce from 'lodash/debounce';
|
|
42
|
-
import { g as getDataWithCache } from './core-
|
|
46
|
+
import { g as getDataWithCache } from './core-36290fcb.js';
|
|
43
47
|
|
|
44
48
|
const getEcomUrl = ({ path, locale, }) => {
|
|
45
49
|
var _a;
|
|
@@ -2833,13 +2837,13 @@ const ItemNavButton = ({ item, color = 'blue' }) => {
|
|
|
2833
2837
|
});
|
|
2834
2838
|
}
|
|
2835
2839
|
if (item.id === 'care') {
|
|
2836
|
-
import('./doctor-
|
|
2840
|
+
import('./doctor-9f166022.js').then((data) => {
|
|
2837
2841
|
if (data === null || data === void 0 ? void 0 : data.default)
|
|
2838
2842
|
setIconJson(() => data.default);
|
|
2839
2843
|
});
|
|
2840
2844
|
}
|
|
2841
2845
|
else if (item.id === 'ecom') {
|
|
2842
|
-
import('./cart-
|
|
2846
|
+
import('./cart-043dfe5c.js').then((data) => {
|
|
2843
2847
|
if (data === null || data === void 0 ? void 0 : data.default)
|
|
2844
2848
|
setIconJson(() => data.default);
|
|
2845
2849
|
});
|
|
@@ -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': [
|