@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,140 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-2d738692.js';
|
|
2
|
+
import React__default, { createContext, useContext, useMemo } from 'react';
|
|
3
|
+
import { useMantineTheme } from '@mantine/core';
|
|
4
|
+
import { useForm, isNotEmpty } from '@mantine/form';
|
|
5
|
+
import { u as useHealthToolsCache } from './useHealthToolCache-fe7dc697.js';
|
|
6
|
+
import { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
7
|
+
import { H as HEALTH_TOOL_TYPE } from './constants-697503a2.js';
|
|
8
|
+
import { c as Input } from './index-03d7200e.js';
|
|
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 './index-7a1552e9.js';
|
|
15
|
+
import './index-bdc3bd61.js';
|
|
16
|
+
import '@mantine/hooks';
|
|
17
|
+
import './utils-40533779.js';
|
|
18
|
+
import './other-9b439f19.js';
|
|
19
|
+
import { H as HealthToolFormWrapper } from './index-a1d2c38b.js';
|
|
20
|
+
import { I as INPUT_RANGE } from './constants-a5d70cf5.js';
|
|
21
|
+
import { domainLocales } from './constantsDomainLocales.js';
|
|
22
|
+
|
|
23
|
+
const PWGFormContext = createContext({});
|
|
24
|
+
|
|
25
|
+
const DefaultForm = (_a) => {
|
|
26
|
+
var props = __rest(_a, []);
|
|
27
|
+
const { t, locale } = useTranslations();
|
|
28
|
+
const { linkTool, form, submitProps } = useContext(PWGFormContext);
|
|
29
|
+
const theme = useMantineTheme();
|
|
30
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
31
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
|
|
32
|
+
React__default.createElement(Input.Number, Object.assign({ label: t('pregnancyWeightGain.weekInput'), min: INPUT_RANGE.pregnantWeek.min, max: INPUT_RANGE.pregnantWeek.max, placeholder: `${INPUT_RANGE.pregnantWeek.min} - ${INPUT_RANGE.pregnantWeek.max}` }, form.getInputProps('pregnantWeek'))),
|
|
33
|
+
React__default.createElement(Input.Number, Object.assign({ label: t('pregnancyWeightGain.weightBeforeInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
|
|
34
|
+
content: '50',
|
|
35
|
+
}) }, form.getInputProps('lastWeight'))),
|
|
36
|
+
React__default.createElement(Input.Number, Object.assign({ label: t('pregnancyWeightGain.heightInput'), min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max, placeholder: t('tools.inputPlaceholder', {
|
|
37
|
+
content: '160',
|
|
38
|
+
}) }, form.getInputProps('height'))),
|
|
39
|
+
React__default.createElement(Input.Number, Object.assign({ label: t('pregnancyWeightGain.weightInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
|
|
40
|
+
content: '50',
|
|
41
|
+
}) }, form.getInputProps('weight'))),
|
|
42
|
+
React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({ label: t('pregnancyWeightGain.havingTwins') }, form.getInputProps('hasTwin'))),
|
|
43
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "Embedded Pregnancy Weight Gain", dataEventLabel: `https://${domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}/${linkTool}`, className: "due-date-calculate-button" }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const InlineForm = (_a) => {
|
|
47
|
+
var props = __rest(_a, []);
|
|
48
|
+
const { t, locale } = useTranslations();
|
|
49
|
+
const { linkTool, form, submitProps } = useContext(PWGFormContext);
|
|
50
|
+
const theme = useMantineTheme();
|
|
51
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
52
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
|
|
53
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.weekInput') },
|
|
54
|
+
React__default.createElement(Input.Number, Object.assign({ min: INPUT_RANGE.pregnantWeek.min, max: INPUT_RANGE.pregnantWeek.max, placeholder: `${INPUT_RANGE.pregnantWeek.min} - ${INPUT_RANGE.pregnantWeek.max}`, rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('pwgForm.week')) }, form.getInputProps('pregnantWeek')))),
|
|
55
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.weightBeforeInput') },
|
|
56
|
+
React__default.createElement(Input.Number, Object.assign({}, form.getInputProps('lastWeight'), { min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
|
|
57
|
+
content: '50',
|
|
58
|
+
}), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('babyGrowth.kg')) }))),
|
|
59
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.heightInput') },
|
|
60
|
+
React__default.createElement(Input.Number, Object.assign({}, form.getInputProps('height'), { min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max, placeholder: t('tools.inputPlaceholder', {
|
|
61
|
+
content: '160',
|
|
62
|
+
}), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('babyGrowth.cm')) }))),
|
|
63
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.weightInput') },
|
|
64
|
+
React__default.createElement(Input.Number, Object.assign({}, form.getInputProps('weight'), { min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
|
|
65
|
+
content: '50',
|
|
66
|
+
}), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('babyGrowth.kg')) }))),
|
|
67
|
+
React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.havingTwins'), width: 'none' },
|
|
68
|
+
React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({}, form.getInputProps('hasTwin')))),
|
|
69
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "Embedded Pregnancy Weight Gain", dataEventLabel: `https://${domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}/${linkTool}`, className: "due-date-calculate-button" }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const MbLayout = (_a) => {
|
|
73
|
+
var props = __rest(_a, []);
|
|
74
|
+
const { t, locale } = useTranslations();
|
|
75
|
+
const { linkTool, form, submitProps } = useContext(PWGFormContext);
|
|
76
|
+
const theme = useMantineTheme();
|
|
77
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
78
|
+
return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
|
|
79
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
80
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.weekInput'), rightSection: t('pregnancy.week') },
|
|
81
|
+
React__default.createElement(Input.Number, Object.assign({ min: INPUT_RANGE.pregnantWeek.min, max: INPUT_RANGE.pregnantWeek.max, placeholder: `${INPUT_RANGE.pregnantWeek.min} - ${INPUT_RANGE.pregnantWeek.max}` }, form.getInputProps('pregnantWeek')))),
|
|
82
|
+
form.errors.pregnantWeek && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.pregnantWeek))),
|
|
83
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
84
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.weightBeforeInput'), rightSection: "kg" },
|
|
85
|
+
React__default.createElement(Input.Number, Object.assign({ min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max }, form.getInputProps('lastWeight'), { placeholder: t('tools.inputPlaceholder', {
|
|
86
|
+
content: '50',
|
|
87
|
+
}) }))),
|
|
88
|
+
form.errors.lastWeight && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.lastWeight))),
|
|
89
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
90
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.heightInput'), rightSection: "cm" },
|
|
91
|
+
React__default.createElement(Input.Number, Object.assign({ min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max }, form.getInputProps('height'), { placeholder: t('tools.inputPlaceholder', {
|
|
92
|
+
content: '160',
|
|
93
|
+
}) }))),
|
|
94
|
+
form.errors.height && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.height))),
|
|
95
|
+
React__default.createElement(HealthToolFormWrapper.FormRow, null,
|
|
96
|
+
React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.weightInput'), rightSection: "kg" },
|
|
97
|
+
React__default.createElement(Input.Number, Object.assign({ min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max }, form.getInputProps('weight'), { placeholder: t('tools.inputPlaceholder', {
|
|
98
|
+
content: '50',
|
|
99
|
+
}) }))),
|
|
100
|
+
form.errors.weight && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.weight))),
|
|
101
|
+
React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({ label: t('pregnancyWeightGain.havingTwins') }, form.getInputProps('hasTwin'))),
|
|
102
|
+
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "Embedded Pregnancy Weight Gain", dataEventLabel: `https://${domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}/${linkTool}`, className: "due-date-calculate-button" }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const PWGForm = (_a) => {
|
|
106
|
+
var { formLayout = 'default', submitProps, onSubmit } = _a, rest = __rest(_a, ["formLayout", "submitProps", "onSubmit"]);
|
|
107
|
+
const { t, locale } = useTranslations();
|
|
108
|
+
const theme = useMantineTheme();
|
|
109
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
110
|
+
const form = useForm({
|
|
111
|
+
validate: {
|
|
112
|
+
pregnantWeek: isNotEmpty(t('validation.error.requiredField')),
|
|
113
|
+
height: isNotEmpty(t('validation.error.requiredField')),
|
|
114
|
+
weight: (value, values) => {
|
|
115
|
+
return !value
|
|
116
|
+
? t('validation.error.requiredField')
|
|
117
|
+
: Number(value) >= Number(values.lastWeight)
|
|
118
|
+
? null
|
|
119
|
+
: t('pregnancyWeightGain.weightInput.error');
|
|
120
|
+
},
|
|
121
|
+
lastWeight: (value, values) => {
|
|
122
|
+
return !value
|
|
123
|
+
? t('validation.error.requiredField')
|
|
124
|
+
: Number(value) < Number(values.weight)
|
|
125
|
+
? null
|
|
126
|
+
: t('pregnancyWeightGain.weightInput.error');
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
const { getHealthToolLink } = useHealthToolsCache(locale);
|
|
131
|
+
const linkTool = useMemo(() => getHealthToolLink(HEALTH_TOOL_TYPE.PWG), [getHealthToolLink]);
|
|
132
|
+
const commonProps = Object.assign({ onSubmit: form.onSubmit(onSubmit) }, rest);
|
|
133
|
+
return (React__default.createElement(PWGFormContext.Provider, { value: {
|
|
134
|
+
linkTool,
|
|
135
|
+
form,
|
|
136
|
+
submitProps,
|
|
137
|
+
} }, formLayout === 'inline' ? (React__default.createElement(InlineForm, Object.assign({}, commonProps))) : isMarryBaby ? (React__default.createElement(MbLayout, Object.assign({ formLayout: formLayout }, commonProps))) : (React__default.createElement(DefaultForm, Object.assign({}, commonProps)))));
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export { PWGForm as P };
|
package/build/esm/index.js
CHANGED
|
@@ -1,98 +1,121 @@
|
|
|
1
|
-
export { i as Types } from './index-
|
|
2
|
-
export { i as Constants } from './index-
|
|
3
|
-
export { C as CaretDown, F as Flag, I as ImageWrap } from './index-
|
|
1
|
+
export { i as Types } from './index-38ced379.js';
|
|
2
|
+
export { i as Constants } from './index-39aa0c9f.js';
|
|
3
|
+
export { C as CaretDown, F as Flag, I as ImageWrap } from './index-03d7200e.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
export { C as ChevronDown } from './ChevronDown-
|
|
6
|
-
export { C as Close } from './Close-
|
|
7
|
-
export { V as Visible } from './Visible-
|
|
8
|
-
export { A as Alert, B as Badge, a as BorderHeading, F as FileDropdown, G as Grid, P as Pagination, R as Radio, c as RateStars, S as StepRenderer, d as StepRendererContext, T as Tag, b as Toggle } from './index-
|
|
9
|
-
export { A as Avatar } from './index-
|
|
10
|
-
export { B as Button } from './index-
|
|
11
|
-
export { D as Divider } from './index-
|
|
12
|
-
export { H as Heading } from './index-
|
|
13
|
-
export { I as Input, L as Label } from './index-
|
|
14
|
-
export { L as Logo } from './index-
|
|
15
|
-
export { C as Checkbox, P as PureInput } from './index-
|
|
16
|
-
export { T as Text } from './index-
|
|
17
|
-
export { T as TextArea } from './index-
|
|
18
|
-
export { C as Container } from './index-
|
|
19
|
-
export { I as Icon } from './index-
|
|
20
|
-
export { D as Drawer } from './index-
|
|
21
|
-
export { R as RadioImageGroup } from './index-
|
|
22
|
-
export { A as AuthorBadge, B as BookingBtn } from './index-
|
|
23
|
-
export { C as CustomReferenceDot } from './index-
|
|
24
|
-
export { B as BtnChoice } from './index-
|
|
25
|
-
export { L as LogoIcon } from './logoIcon-
|
|
26
|
-
export { G as GenderOptionControl } from './index-
|
|
27
|
-
export { L as Loading } from './index-
|
|
28
|
-
export {
|
|
29
|
-
export { D as DatePicker } from './index-
|
|
30
|
-
export { D as Dropdown } from './index-
|
|
31
|
-
export { P as Popup
|
|
32
|
-
export { M as Modal } from './index-
|
|
33
|
-
export { S as SurveyQuestionCard, a as SurveyThankyouCard } from './surveyThankyouCard-
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
5
|
+
export { C as ChevronDown } from './ChevronDown-b58f1e76.js';
|
|
6
|
+
export { C as Close } from './Close-0390b2a2.js';
|
|
7
|
+
export { V as Visible } from './Visible-76b05e8e.js';
|
|
8
|
+
export { A as Alert, B as Badge, a as BorderHeading, F as FileDropdown, G as Grid, P as Pagination, R as Radio, c as RateStars, S as StepRenderer, d as StepRendererContext, T as Tag, b as Toggle } from './index-b5019321.js';
|
|
9
|
+
export { A as Avatar } from './index-343e5b65.js';
|
|
10
|
+
export { B as Button } from './index-f93799fc.js';
|
|
11
|
+
export { D as Divider } from './index-b123bf27.js';
|
|
12
|
+
export { H as Heading } from './index-f0184ea4.js';
|
|
13
|
+
export { I as Input, L as Label } from './index-288b564e.js';
|
|
14
|
+
export { L as Logo } from './index-e0f8a206.js';
|
|
15
|
+
export { C as Checkbox, P as PureInput } from './index-7720a710.js';
|
|
16
|
+
export { T as Text } from './index-a51336b9.js';
|
|
17
|
+
export { T as TextArea } from './index-bb53d99f.js';
|
|
18
|
+
export { C as Container } from './index-77dc8ed1.js';
|
|
19
|
+
export { I as Icon } from './index-f1025cea.js';
|
|
20
|
+
export { D as Drawer } from './index-40b6555d.js';
|
|
21
|
+
export { R as RadioImageGroup } from './index-345e507e.js';
|
|
22
|
+
export { A as AuthorBadge, B as BookingBtn } from './index-b2ea5cc7.js';
|
|
23
|
+
export { C as CustomReferenceDot } from './index-36764891.js';
|
|
24
|
+
export { B as BtnChoice } from './index-4d06fffe.js';
|
|
25
|
+
export { L as LogoIcon } from './logoIcon-b0ce60d0.js';
|
|
26
|
+
export { G as GenderOptionControl } from './index-3e2f70fe.js';
|
|
27
|
+
export { L as Loading } from './index-a57a5338.js';
|
|
28
|
+
export { l as AdBlock, A as ArticleCard, a as ArticleCardV2, B as Breadcrumbs, C as CategoryCard, b as CheckboxGroup, e as CookieAcceptConfirm, h as DateRangePicker, D as DoctorInfo, m as FixedBottomAdBlock, F as FloatButtonGroup, I as IconText, M as MobileBottomNavigation, f as MobileBottomNavigationIcon, P as ProgressBar, R as RadioGroup, S as ScrollList, g as SeoHead, j as ShareContainer, k as ShareDrawer, i as SideMenu, c as StatisticCard, d as Table, T as Tabs } from './fixedBottomAdBlock-26b94f6b.js';
|
|
29
|
+
export { D as DatePicker } from './index-d5bcc5cc.js';
|
|
30
|
+
export { D as Dropdown } from './index-03050142.js';
|
|
31
|
+
export { P as Popup } from './index-f3903d13.js';
|
|
32
|
+
export { M as Modal } from './index-21524e86.js';
|
|
33
|
+
export { S as SurveyQuestionCard, a as SurveyThankyouCard } from './surveyThankyouCard-9d482ef8.js';
|
|
34
|
+
export { T as ToolsBannerCard } from './index-7c678785.js';
|
|
35
|
+
export { D as DueDateForm } from './index-6125d991.js';
|
|
36
|
+
export { DueDateCardEmbed } from './embeddedHeathToolCards_dueDate_dueDate.js';
|
|
37
|
+
export { BMICardEmbed } from './embeddedHeathToolCards_bmi_bmi.js';
|
|
38
|
+
export { B as BmiForm } from './index-9a8df805.js';
|
|
39
|
+
export { BabyGrowthCardEmbed } from './embeddedHeathToolCards_babyGrowth.js';
|
|
40
|
+
export { BabyPoopEmbed } from './embeddedHeathToolCards_babyPoop.js';
|
|
41
|
+
export { B as BabyPoopForm } from './index-a1658f07.js';
|
|
42
|
+
export { THRCardEmbed } from './embeddedHeathToolCards_targetHeartRate.js';
|
|
43
|
+
export { T as ThrForm } from './index-64dff9b0.js';
|
|
44
|
+
export { BMRCardEmbed } from './embeddedHeathToolCards_bmrBmr.js';
|
|
45
|
+
export { OvulationCardEmbed } from './embeddedHeathToolCards_ovulation_ovulation.js';
|
|
46
|
+
export { O as OvulationForm } from './index-3060c2dc.js';
|
|
47
|
+
export { B as BabyVaccineForm } from './index-e9d85fda.js';
|
|
48
|
+
export { BabyVaccineCardEmbed } from './embeddedHeathToolCards_babyVaccine.js';
|
|
49
|
+
export { PWGCardEmbed } from './embeddedHeathToolCards_pwg_pwg.js';
|
|
50
|
+
export { P as PWGForm } from './index-fb8f8203.js';
|
|
51
|
+
export { L as LanguageSwitcher } from './index-a7f10a58.js';
|
|
52
|
+
export { P as PillCarousel } from './index-90d58b18.js';
|
|
53
|
+
export { A as AddressInput } from './index-b1e1f9b4.js';
|
|
54
|
+
export { a as MAPPING_CATEGORY_PREMIUM_API_TYPE, M as MAPPING_CATEGORY_PREMIUM_TYPE, b as SideBannerModal, S as SurveyOrPremiumBanner } from './index-c41ef517.js';
|
|
55
|
+
export { b as NavigationLogoutPopup, c as NavigationProfileButton, N as NavigationV2, P as ProfileNavigation, g as getNavMenuContent, a as getNavMenuContentWithCache } from './index-d462b2bd.js';
|
|
56
|
+
export { U as UserProfileNavigation, N as UserProfileNavigationHeader, a as UserProfileNavigationStats } from './index-506563f6.js';
|
|
57
|
+
export { F as Footer } from './index-5369d2e2.js';
|
|
58
|
+
export { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
59
|
+
export { M as MEASURE_ELEMENT_CLASS, u as useScrollbarSize } from './useScrollbarSize-77534d1d.js';
|
|
60
|
+
export { M as MAPPED_CATEGORY_SLUGS, P as PREGNANCY_SLUG, c as useCategory, u as useFbDataLayer, a as usePrevious, b as useRafState } from './useCategory-45ce6ea8.js';
|
|
61
|
+
export { u as useHealthToolsCache } from './useHealthToolCache-fe7dc697.js';
|
|
62
|
+
export { u as useIsInit } from './useIsInit-6be72906.js';
|
|
63
|
+
export { i as initSharedOutSideClickListener, a as useOutsideClick, u as useSharedOutsideClick } from './useOutsideClick-fd3849ea.js';
|
|
64
|
+
export { u as useInitialMount, a as useUniqueId } from './useUniqueId-e84c90ce.js';
|
|
49
65
|
export { TogetherAuthConfigContext, TogetherAuthConfigContextProvider, useTogetherAuthRequiredAction } from './useTogetherAuthRequiredAction.js';
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export { C as
|
|
55
|
-
export { L as
|
|
56
|
-
export {
|
|
57
|
-
export { C as
|
|
58
|
-
export { C as
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
69
|
-
export { f as
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
66
|
+
export { d as TogetherDataTransforms } from './dataTransform-8852461c.js';
|
|
67
|
+
export { t as TogetherTypes } from './types-7d3a4df2.js';
|
|
68
|
+
export { c as TogetherConstants } from './constants-697503a2.js';
|
|
69
|
+
export { U as UserAvatar } from './index-41a809d7.js';
|
|
70
|
+
export { C as CardLink, P as PopoverMenu } from './index-3288f45c.js';
|
|
71
|
+
export { C as CardReactions, a as LabelPin, L as LabelSortPin, T as TagTopic } from './treePopoverMenu-890070aa.js';
|
|
72
|
+
export { L as LabelSorting } from './labelSorting-e7fa8826.js';
|
|
73
|
+
export { C as CardAuthor, h as ImagePreviewPopup, I as InputCommentBar, P as PopupDanger, b as PopupDoctor, a as PopupExpert, d as PopupFrame, c as PopupHospital, g as PostContent, j as PostImagePreview, i as PostSingleImageViewPopup, m as ProfileDetail, l as ProfileDetailModal, f as ShareBox, S as SharePopup, k as SocialLinkPreview, e as SubmitReportForm, T as TabNameInProfileDetail } from './index-e6b9c7d8.js';
|
|
74
|
+
export { C as CreateNewPostContent, a as CreatePostDescription, b as CreatePostTitle, S as SkipQuestionOfExpertBtn, T as TopicSelectList } from './index-6dd92895.js';
|
|
75
|
+
export { C as CardPost, a as CardPostPopoverMore, b as CardReply, c as CardReplyPopover, S as SourceList, V as VerifiedTag } from './index-39f24b49.js';
|
|
76
|
+
export { D as DefaultComponentGlobalContextData, G as GlobalData, T as TogetherComponentGlobalContext, a as TogetherComponentGlobalContextProvider } from './utils-c730ad5d.js';
|
|
77
|
+
export { B as BookingSearchBar, a as BookingSearchBarV2, t as CareTypes, T as TextDivider } from './types-e21a244d.js';
|
|
78
|
+
export { c as CareConstants } from './constants-b3779c5e.js';
|
|
79
|
+
export { a as ageGenerate, c as convertLocalizedStringToNumber, l as localizeNumberFormat } from './localizeNumberFormat-4dd1fd7a.js';
|
|
80
|
+
export { h as fadeIn, a as slideInDown, b as slideInLeft, c as slideInRight, s as slideInUp, e as slideOutDown, f as slideOutLeft, g as slideOutRight, d as slideOutUp } from './animation-b6d252e4.js';
|
|
81
|
+
export { deleteCookie, getCookie, setCookie } from './miscCookieHelper.js';
|
|
82
|
+
export { a as abbreviateNumber } from './number-129aedb0.js';
|
|
83
|
+
export { d as getCareApiDomain, g as getCurrentBaseUrl, a as getCurrentSsoUrl, c as getDiscoverApiDomain, b as getTogetherApiDomain } from './routing-f2e46f96.js';
|
|
84
|
+
export { MBTheme, theme } from './miscTheme.js';
|
|
85
|
+
export { B as Breakpoints, M as MediaQueries, f as formatUrlWithPageParam, g as getBoundariesFromMediaQueryKey, a as getPopupWrapperDom, b as getWrapperDomWithSelector, m as makeParams, c as safeEncodeURI, s as startCase, t as toggleNoScroll } from './utils-40533779.js';
|
|
86
|
+
export { formatHealthTool, getDynamicHealthTool, getDynamicHealthToolWithCache } from './miscGetDynamicHealthTool.js';
|
|
87
|
+
export { getSocialList } from './miscGetSocialList.js';
|
|
88
|
+
export { ScreenSizeContext, ScreenSizeContextProvider, getWindowSizeGroups } from './miscScreenSizeContext.js';
|
|
89
|
+
export { f as formatPill } from './dataTransform-14587328.js';
|
|
90
|
+
import './Locale-c6a90240.js';
|
|
72
91
|
import 'date-fns/locale';
|
|
73
|
-
import './
|
|
74
|
-
import './
|
|
92
|
+
import './constantsIsProduction.js';
|
|
93
|
+
import './constantsSite.js';
|
|
94
|
+
import './constantsDomainLocales.js';
|
|
95
|
+
import './constantsRiskScreener.js';
|
|
96
|
+
import './tslib.es6-2d738692.js';
|
|
75
97
|
import '@hhgtech/icons/other';
|
|
76
98
|
import '@mantine/core';
|
|
77
99
|
import '@mantine/hooks';
|
|
78
|
-
import './index-
|
|
100
|
+
import './index-b9c4dfcb.js';
|
|
79
101
|
import '@emotion/styled';
|
|
80
102
|
import '@mantine/carousel';
|
|
81
|
-
import './index-
|
|
82
|
-
import './
|
|
103
|
+
import './index-7a1552e9.js';
|
|
104
|
+
import './other-9b439f19.js';
|
|
105
|
+
import './useMantineLocale-faa72172.js';
|
|
83
106
|
import 'dayjs';
|
|
84
|
-
import './index-
|
|
107
|
+
import './index-bdc3bd61.js';
|
|
85
108
|
import 'classnames';
|
|
86
109
|
import '@hhgtech/icons/core';
|
|
87
|
-
import './
|
|
110
|
+
import './miscDefaultClassWrapper.js';
|
|
88
111
|
import 'react-keyed-flatten-children';
|
|
89
112
|
import '@mantine/dates';
|
|
90
|
-
import './translationsContext-
|
|
113
|
+
import './translationsContext-68168ff3.js';
|
|
91
114
|
import 'string-format';
|
|
92
|
-
import './WhatsApp-
|
|
115
|
+
import './WhatsApp-2e6d1d02.js';
|
|
93
116
|
import '@emotion/react';
|
|
94
|
-
import './index-
|
|
95
|
-
import './paths-
|
|
117
|
+
import './index-fa83ce20.js';
|
|
118
|
+
import './paths-67ad72a7.js';
|
|
96
119
|
import 'innertext';
|
|
97
120
|
import 'lodash/throttle';
|
|
98
121
|
import 'html-react-parser';
|
|
@@ -104,27 +127,32 @@ import 'date-fns/locale/zh-TW';
|
|
|
104
127
|
import 'uuid';
|
|
105
128
|
import 'react-day-picker/DayPickerInput';
|
|
106
129
|
import 'react-dom';
|
|
130
|
+
import './LastPeriod-62287ef2.js';
|
|
107
131
|
import '@mantine/form';
|
|
108
|
-
import './index-
|
|
109
|
-
import './
|
|
132
|
+
import './index-96a5f239.js';
|
|
133
|
+
import './index-a1d2c38b.js';
|
|
110
134
|
import 'react-hook-form';
|
|
111
|
-
import './
|
|
112
|
-
import './index-
|
|
135
|
+
import './embeddedHeathToolCards_helpers.js';
|
|
136
|
+
import './index-d9555b0b.js';
|
|
137
|
+
import './constants-a5d70cf5.js';
|
|
138
|
+
import './utils-dbc80293.js';
|
|
139
|
+
import './togetherApiPaths.js';
|
|
140
|
+
import './index-3e3904ec.js';
|
|
113
141
|
import 'js-cookie';
|
|
114
142
|
import 'lodash/flatten';
|
|
115
143
|
import 'lodash/uniqBy';
|
|
116
|
-
import './normalizeLink-
|
|
117
|
-
import './constants-
|
|
118
|
-
import './index-
|
|
144
|
+
import './normalizeLink-243e6342.js';
|
|
145
|
+
import './constants-e930bc7b.js';
|
|
146
|
+
import './index-88c06a7e.js';
|
|
119
147
|
import 'dayjs/plugin/relativeTime';
|
|
120
148
|
import 'lodash/debounce';
|
|
121
|
-
import './core-
|
|
149
|
+
import './core-36290fcb.js';
|
|
122
150
|
import 'react-contenteditable';
|
|
123
|
-
import './index-
|
|
151
|
+
import './index-44870130.js';
|
|
124
152
|
import 'slugify';
|
|
125
153
|
import 'lodash/shuffle';
|
|
126
154
|
import 'react-loading-skeleton';
|
|
127
|
-
import './index-
|
|
155
|
+
import './index-9aee96f2.js';
|
|
128
156
|
|
|
129
157
|
/* eslint-disable prettier/prettier */
|
|
130
158
|
const CheckCircle = (props) => (React.createElement("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "currentColor" }, props),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const domainLocales: {
|
|
2
|
+
'vi-VN': string;
|
|
3
|
+
'id-ID': string;
|
|
4
|
+
'ms-MY': string;
|
|
5
|
+
'km-KH': string;
|
|
6
|
+
'en-PH': string;
|
|
7
|
+
'th-TH': string;
|
|
8
|
+
'my-MM': string;
|
|
9
|
+
'zh-TW': string;
|
|
10
|
+
'hi-IN': string;
|
|
11
|
+
'tl-PH': string;
|
|
12
|
+
'vi-VN_MB': string;
|
|
13
|
+
};
|
|
14
|
+
export declare const MAP_DOMAIN_BY_LOCALE: {
|
|
15
|
+
"vi-VN": string;
|
|
16
|
+
"id-ID": string;
|
|
17
|
+
"ms-MY": string;
|
|
18
|
+
"km-KH": string;
|
|
19
|
+
"en-PH": string;
|
|
20
|
+
"tl-PH": string;
|
|
21
|
+
"th-TH": string;
|
|
22
|
+
"my-MM": string;
|
|
23
|
+
"zh-TW": string;
|
|
24
|
+
"hi-IN": string;
|
|
25
|
+
};
|
|
@@ -2,31 +2,6 @@ import { LOCALE, LocaleType } from "../types";
|
|
|
2
2
|
export declare const basePath: string;
|
|
3
3
|
export declare const SSO_URL: string;
|
|
4
4
|
export declare const USER_GEOLOCATION_COORDINATES_COOKIE = "userGeoLocationCoordinates";
|
|
5
|
-
export declare const domainLocales: {
|
|
6
|
-
'vi-VN': string;
|
|
7
|
-
'id-ID': string;
|
|
8
|
-
'ms-MY': string;
|
|
9
|
-
'km-KH': string;
|
|
10
|
-
'en-PH': string;
|
|
11
|
-
'th-TH': string;
|
|
12
|
-
'my-MM': string;
|
|
13
|
-
'zh-TW': string;
|
|
14
|
-
'hi-IN': string;
|
|
15
|
-
'tl-PH': string;
|
|
16
|
-
'vi-VN_MB': string;
|
|
17
|
-
};
|
|
18
|
-
export declare const MAP_DOMAIN_BY_LOCALE: {
|
|
19
|
-
"vi-VN": string;
|
|
20
|
-
"id-ID": string;
|
|
21
|
-
"ms-MY": string;
|
|
22
|
-
"km-KH": string;
|
|
23
|
-
"en-PH": string;
|
|
24
|
-
"tl-PH": string;
|
|
25
|
-
"th-TH": string;
|
|
26
|
-
"my-MM": string;
|
|
27
|
-
"zh-TW": string;
|
|
28
|
-
"hi-IN": string;
|
|
29
|
-
};
|
|
30
5
|
export type CategoriesLayout = 'short' | 'long';
|
|
31
6
|
export type LogoType = 'hellobacsi' | 'hellosehat' | 'hellohealth' | 'hellotogether' | 'hellocare' | 'logomark' | 'hellodoctor' | 'hellokrupet' | 'helloswasthya' | 'hellosayarwon' | 'helloyishi' | 'hellokhunmor' | 'hellodoktor' | 'marryBaby';
|
|
32
7
|
export declare const LOCALE_SPECS: {
|
|
@@ -91,6 +66,7 @@ export declare const ISO_FORMAT: {
|
|
|
91
66
|
};
|
|
92
67
|
};
|
|
93
68
|
export * from "./site";
|
|
69
|
+
export * from "./domainLocales";
|
|
94
70
|
export * from "./riskScreener";
|
|
95
71
|
export * from "./isProduction";
|
|
96
72
|
export declare const BEARER_TOKEN_COOKIE = "hhg_user_token";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { T as Text } from './index-
|
|
3
|
-
import './translationsContext-
|
|
2
|
+
import { T as Text } from './index-7a1552e9.js';
|
|
3
|
+
import './translationsContext-68168ff3.js';
|
|
4
4
|
import 'string-format';
|
|
5
|
-
import { T as TogetherComponentGlobalContext } from './utils-
|
|
6
|
-
import { L as LabelSortPin, b as TreePopoverMenu } from './treePopoverMenu-
|
|
5
|
+
import { T as TogetherComponentGlobalContext } from './utils-c730ad5d.js';
|
|
6
|
+
import { L as LabelSortPin, b as TreePopoverMenu } from './treePopoverMenu-890070aa.js';
|
|
7
7
|
|
|
8
8
|
var img$1 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%233E3F58' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m8 14 4 4 4-4M16 10l-4-4-4 4'/%3e%3c/svg%3e";
|
|
9
9
|
var MBSortBy = img$1;
|
package/build/esm/lead.js
CHANGED
|
@@ -1,40 +1,45 @@
|
|
|
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, { createContext, useMemo, useRef, useState, useEffect, useContext } from 'react';
|
|
3
3
|
import debounce from 'lodash/debounce';
|
|
4
4
|
import { createFormContext } from '@mantine/form';
|
|
5
|
-
import { u as useTranslations } from './useTranslations-
|
|
6
|
-
import { T as Text } from './index-
|
|
5
|
+
import { u as useTranslations } from './useTranslations-ba901edf.js';
|
|
6
|
+
import { T as Text } from './index-7a1552e9.js';
|
|
7
7
|
import { createStyles, Box, Portal, Transition, Overlay } from '@mantine/core';
|
|
8
|
-
import { S as Select, e as Checkbox, c as Input, R as Radio, P as Phone, N as NumberInput } from './index-
|
|
9
|
-
import { D as DatePicker } from './index-
|
|
10
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
8
|
+
import { S as Select, e as Checkbox, c as Input, R as Radio, P as Phone, N as NumberInput } from './index-03d7200e.js';
|
|
9
|
+
import { D as DatePicker } from './index-96a5f239.js';
|
|
10
|
+
import { M as MAPPED_LOCALE } from './utils-dbc80293.js';
|
|
11
11
|
import '@mantine/dates';
|
|
12
|
-
import './index-
|
|
13
|
-
import './index-
|
|
14
|
-
import { C as CommonGAssets } from './index-
|
|
15
|
-
import './useMantineLocale-
|
|
16
|
-
import { B as Button$1 } from './index-
|
|
17
|
-
import {
|
|
18
|
-
import { T as TranslationsContext } from './translationsContext-42a1fa63.js';
|
|
12
|
+
import './index-39aa0c9f.js';
|
|
13
|
+
import './index-38ced379.js';
|
|
14
|
+
import { C as CommonGAssets } from './index-b9c4dfcb.js';
|
|
15
|
+
import './useMantineLocale-faa72172.js';
|
|
16
|
+
import { B as Button$1 } from './index-bdc3bd61.js';
|
|
17
|
+
import { T as TranslationsContext } from './translationsContext-68168ff3.js';
|
|
19
18
|
import 'string-format';
|
|
20
19
|
import '@mantine/hooks';
|
|
21
|
-
import { b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
20
|
+
import { b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-40533779.js';
|
|
21
|
+
import './other-9b439f19.js';
|
|
22
|
+
import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY } from './usePlacesAutocomplete-81624098.js';
|
|
23
|
+
import { B as Button } from './index-f93799fc.js';
|
|
24
|
+
import { H as Heading$1 } from './index-f0184ea4.js';
|
|
25
25
|
import { v1 } from 'uuid';
|
|
26
|
+
import { theme } from './miscTheme.js';
|
|
26
27
|
import { createPortal } from 'react-dom';
|
|
27
|
-
import {
|
|
28
|
+
import { getCookie, setCookie } from './miscCookieHelper.js';
|
|
28
29
|
import dayjs from 'dayjs';
|
|
29
|
-
import { C as Close } from './Close-
|
|
30
|
+
import { C as Close } from './Close-0390b2a2.js';
|
|
30
31
|
import '@hhgtech/icons/other';
|
|
31
32
|
import '@emotion/styled';
|
|
32
33
|
import '@mantine/carousel';
|
|
34
|
+
import './Locale-c6a90240.js';
|
|
33
35
|
import 'classnames';
|
|
34
|
-
import './useUniqueId-
|
|
36
|
+
import './useUniqueId-e84c90ce.js';
|
|
37
|
+
import './constantsSite.js';
|
|
35
38
|
import '@hhgtech/icons/core';
|
|
36
39
|
import 'date-fns/locale';
|
|
37
|
-
import './
|
|
40
|
+
import './constantsIsProduction.js';
|
|
41
|
+
import './constantsDomainLocales.js';
|
|
42
|
+
import './constantsRiskScreener.js';
|
|
38
43
|
|
|
39
44
|
const LeadGenComponentContext = createContext({});
|
|
40
45
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { memo, useMemo } from 'react';
|
|
2
|
-
import { C as CommonGAssets } from './index-
|
|
3
|
-
import { I as ImageWrap } from './index-
|
|
2
|
+
import { C as CommonGAssets } from './index-b9c4dfcb.js';
|
|
3
|
+
import { I as ImageWrap } from './index-03d7200e.js';
|
|
4
4
|
|
|
5
5
|
const _LogoIcon = ({ type, width, height }) => {
|
|
6
6
|
const data = useMemo(() => {
|