@hhgtech/hhg-components 1.29.80 → 1.29.82
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/{index-1250dd06.js → WhatsApp-46f4f408.js} +24 -276
- package/build/adapters.js +17 -16
- package/build/atoms.js +102 -0
- package/build/babyGrowth.js +162 -164
- package/build/cache.js +3 -3
- package/build/care.js +17 -17
- package/build/components.js +181 -163
- package/build/{constants-ca71f9e5.js → constants-223c01fc.js} +2 -2
- package/build/{constants-4e7c419e.js → constants-8743b014.js} +0 -136
- package/build/constants-a78fa8b3.js +318 -0
- package/build/constants-f182fc32.js +425 -0
- package/build/constants.js +3 -3
- package/build/{core-bb2587e7.js → core-9d69a722.js} +2 -2
- package/build/{dataTransform-469b75eb.js → dataTransform-ded2692d.js} +1 -1
- package/build/{index-5d9ad07e.js → dataTransform-e39297c1.js} +3 -52
- package/build/defaultClassWrapper-b7719693.js +21 -0
- package/build/ecom.js +5 -5
- package/build/esm/WhatsApp-c599b715.js +46 -0
- package/build/esm/adapters.js +17 -16
- package/build/esm/atoms.js +59 -0
- package/build/esm/babyGrowth.js +87 -89
- package/build/esm/cache.js +3 -3
- package/build/esm/care.js +17 -17
- package/build/esm/components.js +91 -73
- package/build/esm/constants-a5827634.js +307 -0
- package/build/esm/{constants-7661ce64.js → constants-bb470362.js} +2 -2
- package/build/esm/{constants-508ba335.js → constants-f6b2e49d.js} +1 -127
- package/build/esm/constants-fa475b0f.js +417 -0
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-5a22b83e.js → core-80bfe8b7.js} +2 -2
- package/build/esm/{dataTransform-f5db5afb.js → dataTransform-55f67eed.js} +1 -1
- package/build/esm/{index-9b54376f.js → dataTransform-623716c3.js} +5 -53
- package/build/esm/defaultClassWrapper-00903c00.js +15 -0
- package/build/esm/ecom.js +5 -5
- package/build/esm/fixedBottomAdBlock-60a5d48f.js +3474 -0
- package/build/esm/footer.js +18 -18
- package/build/esm/gAssets.js +4 -4
- package/build/esm/{getDynamicHealthTool-09fda8b3.js → getDynamicHealthTool-82855adc.js} +4 -4
- package/build/esm/{getSocialList-96301dbb.js → getSocialList-7d2cf48d.js} +5 -6
- package/build/esm/healthToolsForm.js +40 -0
- package/build/esm/healthToolsForms.d.ts +7 -0
- package/build/esm/hooks.js +17 -17
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-da2b8f22.js → index-01405723.js} +12 -11
- package/build/esm/index-01b5d2e9.js +202 -0
- package/build/esm/index-02d3f05b.js +1681 -0
- package/build/esm/{index-82861dba.js → index-046778af.js} +2 -2
- package/build/esm/{index-df29c4e0.js → index-049e0270.js} +33 -5
- package/build/esm/index-07f3f47e.js +14 -0
- package/build/esm/index-0b745f46.js +1349 -0
- package/build/esm/{index-e68d4285.js → index-0ca9b175.js} +2 -2
- package/build/esm/{index-c4699d44.js → index-0cd3523c.js} +35 -176
- package/build/esm/index-0ee66974.js +95 -0
- package/build/esm/index-10ab6596.js +489 -0
- package/build/esm/{index-5773eb18.js → index-13d8dd4b.js} +6 -6
- package/build/esm/{index.styled-9e147e72.js → index-1c9b481b.js} +21 -3
- package/build/esm/index-1d3c6ce7.js +195 -0
- package/build/esm/{index-474e0ae5.js → index-21256394.js} +2 -13
- package/build/esm/{index-2d47a346.js → index-219e3a35.js} +11 -10
- package/build/esm/{index-679d5383.js → index-29908d2c.js} +1 -1
- package/build/esm/{utils-ff5d88a2.js → index-2dc7803d.js} +71 -105
- package/build/esm/{index-4dcdce19.js → index-5723381f.js} +2 -2
- package/build/esm/{index-c807ef87.js → index-6210f454.js} +3 -3
- package/build/esm/index-7a1ea734.js +100 -0
- package/build/esm/{index-53a86337.js → index-7c384ae6.js} +5 -5
- package/build/esm/index-8eb04f36.js +130 -0
- package/build/esm/index-8fcf671c.js +335 -0
- package/build/esm/{index-80f4d7df.js → index-9471fca1.js} +2 -2
- package/build/esm/{index-92eedeb0.js → index-9b3a8b6d.js} +12 -201
- package/build/esm/{index-3c7f109c.js → index-9b9c1499.js} +2 -2
- package/build/esm/index-9f99909b.js +54 -0
- package/build/esm/index-ac2a8f95.js +1114 -0
- package/build/esm/index-acf8b60e.js +42 -0
- package/build/esm/index-ad1c7c38.js +275 -0
- package/build/esm/{index-bcd13f1d.js → index-bcedec73.js} +13 -12
- package/build/esm/{index-ef855343.js → index-c013ba1b.js} +4 -4
- package/build/esm/index-c2584051.js +262 -0
- package/build/esm/{types-957334f2.js → index-c430773c.js} +559 -3519
- package/build/esm/index-cdc50618.js +25 -0
- package/build/esm/{index-77dddeb9.js → index-cfedca38.js} +2 -2
- package/build/esm/index-d6a5f5cf.js +557 -0
- package/build/esm/index-e0b0d6a2.js +847 -0
- package/build/esm/index-ea63e0d2.js +148 -0
- package/build/esm/{index-32e2b169.js → index-f22f6e6e.js} +65 -28
- package/build/esm/index-f4b938f2.js +18 -0
- package/build/esm/index-f660abb7.js +156 -0
- package/build/esm/index-fa67d66e.js +789 -0
- package/build/esm/index.js +98 -73
- package/build/esm/labelSorting-7351409a.js +47 -0
- package/build/esm/lead.js +23 -33
- package/build/esm/logoIcon-3a581efb.js +104 -0
- package/build/esm/mantine.js +22 -20
- package/build/esm/misc.js +21 -21
- package/build/esm/molecules.js +88 -0
- package/build/esm/navigation.js +37 -37
- package/build/esm/onboardingV2.js +26 -35
- package/build/esm/organisms.js +57 -0
- package/build/esm/pwg.js +19 -19
- package/build/esm/{routing-7bc3e320.js → routing-9e330438.js} +2 -2
- package/build/esm/subot.js +31 -27
- package/build/esm/surveyOrPremiumBanner.js +45 -0
- package/build/esm/surveyQuestionCard.js +13 -0
- package/build/esm/surveyThankyouCard-ec204631.js +446 -0
- package/build/esm/together.js +52 -45
- package/build/esm/togetherAtoms.js +41 -0
- package/build/esm/togetherComponentGlobalContext.js +12 -0
- package/build/esm/togetherMolecules.js +53 -0
- package/build/esm/togetherOrganisms.js +57 -0
- package/build/esm/treePopoverMenu-cb214db6.js +332 -0
- package/build/esm/types-721e7a66.js +5 -0
- package/build/esm/{types-ee1be1e3.js → types-ffcf5fb4.js} +13 -13
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-7e020652.js → useCategory-553bee0b.js} +5 -5
- package/build/esm/{useHealthToolCache-c70e4fd5.js → useHealthToolCache-6ce1724e.js} +2 -2
- package/build/esm/{useMantineLocale-1373e175.js → useMantineLocale-453f8013.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-4bfe976e.js → usePlacesAutocomplete-8925d4fb.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +60 -0
- package/build/esm/{useTranslations-adad3b06.js → useTranslations-b970f667.js} +1 -1
- package/build/esm/{utils-dee27bfd.js → utils-3b29eb79.js} +8 -356
- package/build/esm/{utils-b14c10f9.js → utils-6d45bdd1.js} +1 -1
- package/build/esm/vaccination.js +18 -29
- package/build/fixedBottomAdBlock-0129a006.js +3521 -0
- package/build/footer.js +18 -18
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-357666f7.js → getDynamicHealthTool-f08b5fab.js} +4 -4
- package/build/{getSocialList-c1404aff.js → getSocialList-8cc32f7c.js} +8 -9
- package/build/healthToolsForm.js +54 -0
- package/build/healthToolsForms.d.ts +7 -0
- package/build/hooks.js +17 -17
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/index-00a78d81.js +565 -0
- package/build/index-077bf48f.js +803 -0
- package/build/{index-bf6e5e4e.js → index-0b727664.js} +5 -5
- package/build/{index-917c975c.js → index-10760994.js} +37 -9
- package/build/index-130e0f35.js +1693 -0
- package/build/{index-82a3ba38.js → index-16ed0d98.js} +68 -33
- package/build/{index-040620f6.js → index-1e1d8eb1.js} +13 -12
- package/build/{index-e60c98f8.js → index-1fdf2f01.js} +2 -2
- package/build/{index-61ef343d.js → index-206afefb.js} +4 -4
- package/build/{types-c8956642.js → index-2afbeb3d.js} +761 -3727
- package/build/{index.styled-8aca5145.js → index-2fd9063e.js} +22 -4
- package/build/index-33432b02.js +270 -0
- package/build/index-3eb666e6.js +202 -0
- package/build/{index-94a2b0f9.js → index-405faafa.js} +2 -2
- package/build/index-4357a324.js +136 -0
- package/build/index-466a2c32.js +1362 -0
- package/build/index-4b7d4b5b.js +156 -0
- package/build/{index-5029b5d8.js → index-4bc690c9.js} +1 -1
- package/build/index-4cdcdbbe.js +498 -0
- package/build/index-53e14542.js +102 -0
- package/build/{index-91027d35.js → index-54aeefca.js} +2 -2
- package/build/index-60f6d762.js +1127 -0
- package/build/{index-858f60e0.js → index-64d8db08.js} +2 -2
- package/build/index-6aeb5ff5.js +866 -0
- package/build/index-71843eb4.js +61 -0
- package/build/index-765ed75d.js +209 -0
- package/build/index-7953fb8e.js +167 -0
- package/build/{index-d710511f.js → index-7ecc69af.js} +12 -11
- package/build/index-82c85f9d.js +277 -0
- package/build/index-9e8877c0.js +25 -0
- package/build/index-a2664204.js +107 -0
- package/build/{index-c67602d7.js → index-a6a9855f.js} +1 -13
- package/build/index-a8680a58.js +49 -0
- package/build/{index-ed587907.js → index-a9bbb5aa.js} +11 -10
- package/build/{utils-263a60f7.js → index-a9bdf889.js} +76 -120
- package/build/{index-f0a532c7.js → index-b66ae554.js} +6 -6
- package/build/index-ca616373.js +20 -0
- package/build/{index-b0414701.js → index-d9919cd2.js} +57 -200
- package/build/index-dd074159.js +32 -0
- package/build/{index-94fd9ea6.js → index-dff7ee1b.js} +32 -222
- package/build/{index-3a03bb34.js → index-e3bbd009.js} +2 -2
- package/build/index-ec34e358.js +343 -0
- package/build/{index-8c826f3e.js → index-f222ee45.js} +2 -2
- package/build/{index-2b32b21e.js → index-fd3e1d16.js} +2 -2
- package/build/index.js +251 -226
- package/build/labelSorting-f86081b7.js +53 -0
- package/build/lead.js +29 -39
- package/build/logoIcon-21a16853.js +110 -0
- package/build/mantine.js +24 -23
- package/build/misc.js +21 -21
- package/build/molecules.js +149 -0
- package/build/navigation.js +37 -37
- package/build/onboardingV2.js +45 -54
- package/build/organisms.js +74 -0
- package/build/pwg.js +19 -19
- package/build/{routing-bc8197d8.js → routing-d6c9099a.js} +2 -2
- package/build/subot.js +115 -111
- package/build/surveyOrPremiumBanner.js +53 -0
- package/build/surveyQuestionCard.js +22 -0
- package/build/surveyThankyouCard-5b23b8f6.js +454 -0
- package/build/together.js +100 -93
- package/build/togetherAtoms.js +55 -0
- package/build/togetherComponentGlobalContext.js +26 -0
- package/build/togetherMolecules.js +86 -0
- package/build/togetherOrganisms.js +71 -0
- package/build/treePopoverMenu-c0cb395f.js +343 -0
- package/build/{types-6996fb20.js → types-8d9c5f21.js} +13 -13
- package/build/types-b25ffde0.js +7 -0
- package/build/types.js +1 -1
- package/build/{useCategory-7d1f8a7d.js → useCategory-b695fd3a.js} +5 -5
- package/build/{useHealthToolCache-b7dea4aa.js → useHealthToolCache-048807ea.js} +2 -2
- package/build/{useMantineLocale-b243f628.js → useMantineLocale-0d63dfea.js} +3 -3
- package/build/{usePlacesAutocomplete-08b86d2d.js → usePlacesAutocomplete-9520e525.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +70 -0
- package/build/{useTranslations-d5456a98.js → useTranslations-685f989b.js} +1 -1
- package/build/{utils-9f62698f.js → utils-169c6a7d.js} +16 -375
- package/build/{utils-d421a448.js → utils-1a00c0f8.js} +1 -1
- package/build/vaccination.js +58 -69
- package/package.json +1 -1
- package/build/Instagram-91ba1e26.js +0 -32
- package/build/esm/Instagram-319a8e34.js +0 -26
- package/build/esm/index-13bf84f4.js +0 -298
- package/build/esm/index-1a3f36c3.js +0 -1086
- package/build/esm/index-800b956a.js +0 -7245
- package/build/esm/index-aebf96f3.js +0 -33
- package/build/esm/index-d48b5db6.js +0 -71
- package/build/esm/index-d5b66388.js +0 -23
- package/build/esm/index.styles-0ef0135c.js +0 -1322
- package/build/index-0523771b.js +0 -7324
- package/build/index-20ebc0bd.js +0 -30
- package/build/index-dbf560f2.js +0 -1100
- package/build/index-efcbac97.js +0 -39
- package/build/index-f5103542.js +0 -77
- package/build/index.styles-2bdfde5f.js +0 -1361
- /package/build/{BMI_BOYS.percentile.monthly-c38ce03a.js → BMI_BOYS.percentile.monthly-1aa95e30.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-1eccee42.js → BMI_BOYS.percentile.weekly-61d78e1c.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0e7d5cb6.js → BMI_BOYS.percentile.yearly-f80e040e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-f72f392f.js → BMI_BOYS.zscore.monthly-a6c7c8ff.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-94fd04e6.js → BMI_BOYS.zscore.weekly-742f7028.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-90d5e091.js → BMI_BOYS.zscore.yearly-c19cccd5.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-de3a9a14.js → BMI_GIRLS.percentile.monthly-089d3981.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-1e1ce2b7.js → BMI_GIRLS.percentile.weekly-0cc52cda.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-70a44f31.js → BMI_GIRLS.percentile.yearly-10bc603f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-be4399a5.js → BMI_GIRLS.zscore.monthly-c3fe57f3.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-6121376b.js → BMI_GIRLS.zscore.weekly-b83a54db.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-822e7686.js → BMI_GIRLS.zscore.yearly-5f13cda2.js} +0 -0
- /package/build/{ChevronDown-f9d31306.js → ChevronDown-2fd86d66.js} +0 -0
- /package/build/{Close-27e0dcf1.js → Close-711196b0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-5e094c3e.js → HEAD CIRCUM_BOYS.percentile.monthly-03b8d7fb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-24f827d8.js → HEAD CIRCUM_BOYS.percentile.weekly-9ebd3eb6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-d7478410.js → HEAD CIRCUM_BOYS.percentile.yearly-8e97b738.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1123cad6.js → HEAD CIRCUM_BOYS.zscore.monthly-e7892261.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a5b55615.js → HEAD CIRCUM_BOYS.zscore.weekly-47c5af84.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0d818764.js → HEAD CIRCUM_BOYS.zscore.yearly-9a1bc325.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-dddf5ad9.js → HEAD CIRCUM_GIRLS.percentile.monthly-d84491d7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a80d6989.js → HEAD CIRCUM_GIRLS.percentile.weekly-a6f38c3e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-01850b67.js → HEAD CIRCUM_GIRLS.percentile.yearly-5771d277.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-82890053.js → HEAD CIRCUM_GIRLS.zscore.monthly-e3633bcc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-069f8c8f.js → HEAD CIRCUM_GIRLS.zscore.weekly-23b0ab1a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-ae5ef237.js → HEAD CIRCUM_GIRLS.zscore.yearly-20f29cf1.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-d0da1664.js → HEIGHT_BOYS.percentile.monthly-57cc12ee.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-55446b8a.js → HEIGHT_BOYS.percentile.weekly-c788506a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-f2f5b19f.js → HEIGHT_BOYS.percentile.yearly-ac56c1f2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-e6ed98ef.js → HEIGHT_BOYS.zscore.monthly-1bb78253.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-d0d37479.js → HEIGHT_BOYS.zscore.weekly-22737c43.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-4023b808.js → HEIGHT_BOYS.zscore.yearly-90f6cd0a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-6d9aeadc.js → HEIGHT_GIRLS.percentile.monthly-019f80d2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-2087c9b4.js → HEIGHT_GIRLS.percentile.weekly-ceed9817.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-f98d8b05.js → HEIGHT_GIRLS.percentile.yearly-3e5192ac.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-99d299e3.js → HEIGHT_GIRLS.zscore.monthly-f8fca0b6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-c46ed349.js → HEIGHT_GIRLS.zscore.weekly-827b17e8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-fddefca4.js → HEIGHT_GIRLS.zscore.yearly-3cdb483d.js} +0 -0
- /package/build/{Visible-01dfaec9.js → Visible-515a4eec.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-cead8ece.js → WEIGHT_BOYS.percentile.monthly-2ecbd498.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-a97fa31a.js → WEIGHT_BOYS.percentile.weekly-75c9c25c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-c2c41945.js → WEIGHT_BOYS.percentile.yearly-03e7cea6.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-d8de7dc2.js → WEIGHT_BOYS.zscore.monthly-2ff9fb56.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-41a6f6bf.js → WEIGHT_BOYS.zscore.weekly-e9f7fe2d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-5762fa8a.js → WEIGHT_BOYS.zscore.yearly-4a96f34f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-526fb18a.js → WEIGHT_GIRLS.percentile.monthly-5bf09e30.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-6c63ed2b.js → WEIGHT_GIRLS.percentile.weekly-f737ae23.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-0ecdbd3a.js → WEIGHT_GIRLS.percentile.yearly-56ebc8eb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-0c353536.js → WEIGHT_GIRLS.zscore.monthly-4697d3b5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-97898ff6.js → WEIGHT_GIRLS.zscore.weekly-3633820e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-cbebe807.js → WEIGHT_GIRLS.zscore.yearly-a9a04790.js} +0 -0
- /package/build/{animation-8605b5bb.js → animation-85d012ee.js} +0 -0
- /package/build/{cart-ab5762b8.js → cart-8877bd63.js} +0 -0
- /package/build/{cookieHelper-b2132ffc.js → cookieHelper-86ae022e.js} +0 -0
- /package/build/{doctor-f121fd79.js → doctor-2c14fed1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-e507536d.js → BMI_BOYS.percentile.monthly-42ff2c64.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-3cbf7392.js → BMI_BOYS.percentile.weekly-b4a6c521.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-c7d54bc3.js → BMI_BOYS.percentile.yearly-d3bc1a77.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-4d09aca0.js → BMI_BOYS.zscore.monthly-c4506dfa.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-319b78c5.js → BMI_BOYS.zscore.weekly-ddf3b3f9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-764732c5.js → BMI_BOYS.zscore.yearly-e0e3139e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-5a8e4069.js → BMI_GIRLS.percentile.monthly-96686bcc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-a2fe6df1.js → BMI_GIRLS.percentile.weekly-c3106a65.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-810fe911.js → BMI_GIRLS.percentile.yearly-b38c1f1f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-afab03b0.js → BMI_GIRLS.zscore.monthly-f8a7836f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-8f4e7198.js → BMI_GIRLS.zscore.weekly-4c1fc771.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-7f043621.js → BMI_GIRLS.zscore.yearly-dce5e66a.js} +0 -0
- /package/build/esm/{ChevronDown-d24fd24b.js → ChevronDown-31ea3e19.js} +0 -0
- /package/build/esm/{Close-6243d246.js → Close-40d598bc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-91c12176.js → HEAD CIRCUM_BOYS.percentile.monthly-34e3fa1c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-40e77c68.js → HEAD CIRCUM_BOYS.percentile.weekly-d3f3568f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-1a284ec4.js → HEAD CIRCUM_BOYS.percentile.yearly-dfae3ad2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-16f716a6.js → HEAD CIRCUM_BOYS.zscore.monthly-95840c2f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-07d20112.js → HEAD CIRCUM_BOYS.zscore.weekly-8b198c1c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1201a10a.js → HEAD CIRCUM_BOYS.zscore.yearly-b7d639ad.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a6348baf.js → HEAD CIRCUM_GIRLS.percentile.monthly-47caa070.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-af26363f.js → HEAD CIRCUM_GIRLS.percentile.weekly-bae46665.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e7637928.js → HEAD CIRCUM_GIRLS.percentile.yearly-81989cdd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-9be0e0ca.js → HEAD CIRCUM_GIRLS.zscore.monthly-f2f7d985.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-3ffe9dcd.js → HEAD CIRCUM_GIRLS.zscore.weekly-e287ddb7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d7226db1.js → HEAD CIRCUM_GIRLS.zscore.yearly-8790b62a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-c2e21892.js → HEIGHT_BOYS.percentile.monthly-5d2b6466.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-22018f1e.js → HEIGHT_BOYS.percentile.weekly-a38ad13e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-391cd377.js → HEIGHT_BOYS.percentile.yearly-e4841712.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e11f50f4.js → HEIGHT_BOYS.zscore.monthly-d8e722f8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-8e2c8306.js → HEIGHT_BOYS.zscore.weekly-a92ea3ca.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-78e974bb.js → HEIGHT_BOYS.zscore.yearly-3af1adce.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-0a49ff89.js → HEIGHT_GIRLS.percentile.monthly-c5203801.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5e158a8e.js → HEIGHT_GIRLS.percentile.weekly-4c25d07f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f5544ab2.js → HEIGHT_GIRLS.percentile.yearly-f91e2e27.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-92f67ec2.js → HEIGHT_GIRLS.zscore.monthly-b2a60aca.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f5d11f32.js → HEIGHT_GIRLS.zscore.weekly-0a98c520.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-4fe6aad9.js → HEIGHT_GIRLS.zscore.yearly-8070d58f.js} +0 -0
- /package/build/esm/{Visible-7f408f98.js → Visible-e3e4fb6f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b09ae73a.js → WEIGHT_BOYS.percentile.monthly-b262b97d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-733a24a9.js → WEIGHT_BOYS.percentile.weekly-7e817f9f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-2bfcfc93.js → WEIGHT_BOYS.percentile.yearly-b7f1786a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c0d3a746.js → WEIGHT_BOYS.zscore.monthly-014af835.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b41ff498.js → WEIGHT_BOYS.zscore.weekly-4577f724.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-15bb7570.js → WEIGHT_BOYS.zscore.yearly-08fd3f13.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-5b79dea8.js → WEIGHT_GIRLS.percentile.monthly-a6e1aa0d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-33052637.js → WEIGHT_GIRLS.percentile.weekly-4c0b6f94.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-64382b53.js → WEIGHT_GIRLS.percentile.yearly-bf689a3a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-63f19584.js → WEIGHT_GIRLS.zscore.monthly-f82fc3c8.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-938ebce2.js → WEIGHT_GIRLS.zscore.weekly-854ce987.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-016e1cfc.js → WEIGHT_GIRLS.zscore.yearly-2a3b869a.js} +0 -0
- /package/build/esm/{animation-bf170ee9.js → animation-85d9a0ed.js} +0 -0
- /package/build/esm/{cart-5bdb4fa5.js → cart-1ac23ce7.js} +0 -0
- /package/build/esm/{cookieHelper-ff6c13b4.js → cookieHelper-6c3b4790.js} +0 -0
- /package/build/esm/{doctor-f4cadffb.js → doctor-e0c2476d.js} +0 -0
- /package/build/esm/{index-eeedf0f0.js → index-189d7601.js} +0 -0
- /package/build/esm/{index-b87433a0.js → index-21bca818.js} +0 -0
- /package/build/esm/{index-6c0f560b.js → index-266a32ff.js} +0 -0
- /package/build/esm/{index-528e64f4.js → index-8684181f.js} +0 -0
- /package/build/esm/{isProduction-2838b9ae.js → isProduction-1937d355.js} +0 -0
- /package/build/esm/{localizeNumberFormat-9303c122.js → localizeNumberFormat-1f000110.js} +0 -0
- /package/build/esm/{normalizeLink-38ab69f4.js → normalizeLink-7a93ebb9.js} +0 -0
- /package/build/esm/{number-fcae69c7.js → number-1d1ba14a.js} +0 -0
- /package/build/esm/{paths-d1c61fa8.js → paths-b83be1a0.js} +0 -0
- /package/build/esm/{theme-0af1cc3d.js → theme-7dadf4a1.js} +0 -0
- /package/build/esm/{translationsContext-036458b7.js → translationsContext-42a1fa63.js} +0 -0
- /package/build/esm/{tslib.es6-2673b49d.js → tslib.es6-06ba3978.js} +0 -0
- /package/build/esm/{useIsInit-2c5ff93d.js → useIsInit-f4dec279.js} +0 -0
- /package/build/esm/{useOutsideClick-7023de23.js → useOutsideClick-210c1134.js} +0 -0
- /package/build/esm/{useScrollbarSize-dfdab229.js → useScrollbarSize-909ae7ec.js} +0 -0
- /package/build/esm/{useUniqueId-d4b0bdd3.js → useUniqueId-5885911d.js} +0 -0
- /package/build/esm/{utils-511a24f4.js → utils-d7bbdb52.js} +0 -0
- /package/build/{index-18ddaa1b.js → index-1f3fc2e3.js} +0 -0
- /package/build/{index-5c400e5e.js → index-2de1eb4a.js} +0 -0
- /package/build/{index-bced434a.js → index-6fdcd09d.js} +0 -0
- /package/build/{index-c524c362.js → index-bc9e8eae.js} +0 -0
- /package/build/{isProduction-2e55aee3.js → isProduction-20cd663d.js} +0 -0
- /package/build/{localizeNumberFormat-2befc6e4.js → localizeNumberFormat-7ff6bd3a.js} +0 -0
- /package/build/{normalizeLink-0fd36e61.js → normalizeLink-d307f624.js} +0 -0
- /package/build/{number-92da0262.js → number-dddf656c.js} +0 -0
- /package/build/{paths-350514c4.js → paths-7da79c64.js} +0 -0
- /package/build/{theme-f410baf6.js → theme-be20929b.js} +0 -0
- /package/build/{translationsContext-11cafcfc.js → translationsContext-00fdb62e.js} +0 -0
- /package/build/{tslib.es6-4bc45883.js → tslib.es6-bd3f8718.js} +0 -0
- /package/build/{useIsInit-0f6d1879.js → useIsInit-e06b96f5.js} +0 -0
- /package/build/{useOutsideClick-e067cc79.js → useOutsideClick-d95a32b6.js} +0 -0
- /package/build/{useScrollbarSize-ed50b4a6.js → useScrollbarSize-1499b1c3.js} +0 -0
- /package/build/{useUniqueId-4ce69bff.js → useUniqueId-1af8848e.js} +0 -0
- /package/build/{utils-4849d92a.js → utils-15a9772e.js} +0 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { _ as __rest } from './tslib.es6-06ba3978.js';
|
|
2
|
+
import React__default, { useState, useRef, useMemo, useEffect } from 'react';
|
|
3
|
+
import { BabyBoyMB, BabyGirlMB } from '@hhgtech/icons/other';
|
|
4
|
+
import { createStyles, rem, Box, Flex } from '@mantine/core';
|
|
5
|
+
import { R as Radio } from './index-9b3a8b6d.js';
|
|
6
|
+
import '@mantine/dates';
|
|
7
|
+
import './index-6210f454.js';
|
|
8
|
+
import './index-189d7601.js';
|
|
9
|
+
import { C as CommonGAssets } from './index-9471fca1.js';
|
|
10
|
+
import './useMantineLocale-453f8013.js';
|
|
11
|
+
import { T as Text } from './index-5723381f.js';
|
|
12
|
+
import './index-1d3c6ce7.js';
|
|
13
|
+
import './theme-7dadf4a1.js';
|
|
14
|
+
import { u as useTranslations } from './useTranslations-b970f667.js';
|
|
15
|
+
import '@mantine/hooks';
|
|
16
|
+
import './utils-d7bbdb52.js';
|
|
17
|
+
|
|
18
|
+
var useStyles = createStyles((theme, { type }) => {
|
|
19
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
20
|
+
return {
|
|
21
|
+
root: {},
|
|
22
|
+
wrapper: Object.assign({ gap: rem(8) }, (type === 'radio' && {
|
|
23
|
+
justifyContent: 'flex-end',
|
|
24
|
+
gap: rem(24),
|
|
25
|
+
})),
|
|
26
|
+
groupErr: {
|
|
27
|
+
fontSize: rem(14),
|
|
28
|
+
},
|
|
29
|
+
itemRoot: Object.assign({}, (type === 'button'
|
|
30
|
+
? {
|
|
31
|
+
flexGrow: 1,
|
|
32
|
+
width: '50%',
|
|
33
|
+
'&[data-checked="true"]': {
|
|
34
|
+
'.mantine-Radio-label': {
|
|
35
|
+
borderColor: theme.fn.primaryColor(),
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
: type === 'radio'
|
|
40
|
+
? { padding: `${rem(10)} 0`, margin: 0 }
|
|
41
|
+
: {})),
|
|
42
|
+
itemLabelWrapper: {
|
|
43
|
+
padding: 0,
|
|
44
|
+
width: '100%',
|
|
45
|
+
},
|
|
46
|
+
itemLabel: Object.assign({ whiteSpace: 'nowrap' }, (type === 'button'
|
|
47
|
+
? {
|
|
48
|
+
position: 'relative',
|
|
49
|
+
padding: `${rem(6)} ${rem(16)}`,
|
|
50
|
+
border: `1px solid ${isMarryBaby ? '#EAEAEC' : theme.colors.gray[2]}`,
|
|
51
|
+
borderRadius: rem(isMarryBaby ? 16 : 4),
|
|
52
|
+
cursor: 'pointer',
|
|
53
|
+
'&[data-disabled="true"]': {
|
|
54
|
+
background: theme.colors.gray[1],
|
|
55
|
+
color: `${theme.colors.gray[4]} !important`,
|
|
56
|
+
img: {
|
|
57
|
+
opacity: 0.5,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
img: {
|
|
61
|
+
height: rem(26),
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
: type === 'radio'
|
|
65
|
+
? { fontSize: rem(14) }
|
|
66
|
+
: {})),
|
|
67
|
+
itemInner: Object.assign(Object.assign({}, (type === 'button' && {
|
|
68
|
+
display: 'none',
|
|
69
|
+
})), (type === 'radio' && {
|
|
70
|
+
alignSelf: 'center',
|
|
71
|
+
})),
|
|
72
|
+
itemBody: Object.assign({}, (type === 'radio' && {
|
|
73
|
+
alignItems: 'center',
|
|
74
|
+
})),
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
const GenderOptionControl = (_a) => {
|
|
79
|
+
var { label, availableValue: availableValueInit, styles, isBaby, genderValue = {
|
|
80
|
+
male: 'male',
|
|
81
|
+
female: 'female',
|
|
82
|
+
}, type = 'button', hideLabel } = _a, radioProps = __rest(_a, ["label", "availableValue", "styles", "isBaby", "genderValue", "type", "hideLabel"]);
|
|
83
|
+
const { t } = useTranslations();
|
|
84
|
+
const { classes, cx, theme } = useStyles({ type }, {
|
|
85
|
+
name: 'GenderOptionControl',
|
|
86
|
+
styles,
|
|
87
|
+
});
|
|
88
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
89
|
+
const [availableValue, setAvailableValue] = useState();
|
|
90
|
+
const ref = useRef(null);
|
|
91
|
+
const genderOptions = useMemo(() => [
|
|
92
|
+
{
|
|
93
|
+
value: genderValue.male,
|
|
94
|
+
label: isBaby ? t('gender.boy') : t('gender.male'),
|
|
95
|
+
icon: isBaby ? (isMarryBaby ? (React__default.createElement(BabyBoyMB, null)) : (CommonGAssets.getAssetPath('health-tools/boy-icon.svg'))) : (CommonGAssets.getAssetPath('health-tools/male-icon.svg')),
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
value: genderValue.female,
|
|
99
|
+
label: isBaby ? t('gender.girl') : t('gender.female'),
|
|
100
|
+
icon: isBaby ? (isMarryBaby ? (React__default.createElement(BabyGirlMB, null)) : (CommonGAssets.getAssetPath('health-tools/girl-icon.svg'))) : (CommonGAssets.getAssetPath('health-tools/female-icon.svg')),
|
|
101
|
+
},
|
|
102
|
+
], []);
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
setAvailableValue(availableValueInit);
|
|
105
|
+
}, [availableValueInit]);
|
|
106
|
+
return (React__default.createElement(Box, { ref: ref, className: classes.root },
|
|
107
|
+
React__default.createElement(Radio.Group, Object.assign({ className: "radio-group", label: !hideLabel ? (React__default.createElement(Text, { as: "label", size: "s4", weight: "semiBold" }, label ||
|
|
108
|
+
(isBaby
|
|
109
|
+
? t('tools.selectBabyGender')
|
|
110
|
+
: t('tools.selectGender')))) : undefined, size: "lg" }, radioProps, { classNames: {
|
|
111
|
+
error: classes.groupErr,
|
|
112
|
+
} }, (type === 'radio' && {
|
|
113
|
+
error: null,
|
|
114
|
+
})),
|
|
115
|
+
React__default.createElement(Flex, { className: cx(classes.wrapper) }, genderOptions.map((i) => (React__default.createElement(Radio, Object.assign({ className: "gender-item", size: "sm", classNames: {
|
|
116
|
+
root: classes.itemRoot,
|
|
117
|
+
labelWrapper: classes.itemLabelWrapper,
|
|
118
|
+
label: classes.itemLabel,
|
|
119
|
+
inner: classes.itemInner,
|
|
120
|
+
body: classes.itemBody,
|
|
121
|
+
}, key: i.value, value: i.value }, (availableValue &&
|
|
122
|
+
i.value !== availableValue && {
|
|
123
|
+
disabled: true,
|
|
124
|
+
}), { label: React__default.createElement(Flex, { gap: rem(8), align: 'center', justify: 'center', sx: { zIndex: 0 } },
|
|
125
|
+
type === 'button' &&
|
|
126
|
+
(typeof i.icon === 'string' ? (React__default.createElement("img", { src: i.icon, className: "gender-image", alt: "female", loading: "lazy" })) : (i.icon)),
|
|
127
|
+
React__default.createElement(Text, { size: "p3" }, i.label)) }))))))));
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export { GenderOptionControl as G };
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import React__default, { useMemo, useState, useEffect } from 'react';
|
|
2
|
+
import { u as useTranslations } from './useTranslations-b970f667.js';
|
|
3
|
+
import { g as getCookie } from './cookieHelper-6c3b4790.js';
|
|
4
|
+
import { C as CommonGAssets } from './index-9471fca1.js';
|
|
5
|
+
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-7a93ebb9.js';
|
|
6
|
+
import { t as theme } from './theme-7dadf4a1.js';
|
|
7
|
+
import { A as Avatar } from './index-0ee66974.js';
|
|
8
|
+
import { d as getTogetherUserPostsApiPath } from './index-0cd3523c.js';
|
|
9
|
+
import { B as Button } from './index-9b9c1499.js';
|
|
10
|
+
|
|
11
|
+
const INTERNAL_CARD_URLS = {
|
|
12
|
+
myBooking: 'booking',
|
|
13
|
+
mySaved: 'saved',
|
|
14
|
+
myHealth: 'health',
|
|
15
|
+
myFamily: 'family',
|
|
16
|
+
myCommunity: 'my-communities',
|
|
17
|
+
// TODO: this is hardcoded for VN, need to adapt to dynamic slug depend on locale
|
|
18
|
+
eCom: '/shop/ho-so/quan-li-don-hang/',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var styles$4 = {"navHeader":"uJQBNNg","navAvatar":"TfG3dM5","navHeaderUserInfos":"aMtjFNf","navHeaderUserName":"cSz2RR-","navHeaderMyProfileButton":"GyFm00F"};
|
|
22
|
+
|
|
23
|
+
function NavHeader({ userInfo, onClickMyProfileButton, themeName = 'helloSites', }) {
|
|
24
|
+
const { t } = useTranslations();
|
|
25
|
+
const nameFirstLetter = useMemo(() => {
|
|
26
|
+
const name = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.username);
|
|
27
|
+
if (name && name.length) {
|
|
28
|
+
return name[0].toUpperCase();
|
|
29
|
+
}
|
|
30
|
+
return 'A';
|
|
31
|
+
}, [userInfo === null || userInfo === void 0 ? void 0 : userInfo.username, userInfo === null || userInfo === void 0 ? void 0 : userInfo.name]);
|
|
32
|
+
const handleClickMyProfileButton = () => {
|
|
33
|
+
if (onClickMyProfileButton) {
|
|
34
|
+
onClickMyProfileButton();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return (React__default.createElement("div", { className: styles$4.navHeader, onClick: handleClickMyProfileButton },
|
|
38
|
+
React__default.createElement(Avatar, { className: styles$4.navAvatar, type: "rounded", size: "xl", avatarUrl: userInfo === null || userInfo === void 0 ? void 0 : userInfo.avatar, firstLetter: nameFirstLetter, backgroundColor: themeName === 'marryBaby'
|
|
39
|
+
? theme.mbColors.pink
|
|
40
|
+
: theme.colors.secondaryBase }),
|
|
41
|
+
React__default.createElement("div", { className: styles$4.navHeaderUserInfos },
|
|
42
|
+
React__default.createElement("div", { className: styles$4.navHeaderUserName }, (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.username)),
|
|
43
|
+
React__default.createElement("div", { className: styles$4.navHeaderMyProfileButton, style: {
|
|
44
|
+
'--bg-hellosites': `url(${CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-chevronRight.svg')})`,
|
|
45
|
+
'--bg-marrybaby': `url(${CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-arrowRight.svg')})`,
|
|
46
|
+
} }, t('userProfile.nav.header.viewProfile')))));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
var styles$3 = {"navigationCard":"fVk18fq","navigationCardLabel":"v8TCvUb","navigationCardIconWrapper":"mx7T4V3"};
|
|
50
|
+
|
|
51
|
+
const iconBgColorMap = {
|
|
52
|
+
myHealth: theme.mbColors.toneYellow,
|
|
53
|
+
myCommunity: theme.mbColors.toneBlue,
|
|
54
|
+
mySaved: theme.mbColors.toneGreen,
|
|
55
|
+
};
|
|
56
|
+
// type CardIconUrlMap = IconUrlMap<UserProfileMenuCard>
|
|
57
|
+
const cardIconUrlMap = {
|
|
58
|
+
helloSites: {
|
|
59
|
+
myBooking: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-myBooking.svg'),
|
|
60
|
+
myCommunity: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-myCommunity.svg'),
|
|
61
|
+
myFamily: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-myFamily.svg'),
|
|
62
|
+
myHealth: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-myHealth.svg'),
|
|
63
|
+
mySaved: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-mySaved.svg'),
|
|
64
|
+
eCom: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-eCom.svg'),
|
|
65
|
+
},
|
|
66
|
+
marryBaby: {
|
|
67
|
+
mySaved: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-mySaved.svg'),
|
|
68
|
+
myCommunity: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-myCommunity.svg'),
|
|
69
|
+
myHealth: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-myHealth.svg'),
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
const NavigationCard = ({ type, themeName, className, onClick = () => undefined, }) => {
|
|
73
|
+
const { t } = useTranslations();
|
|
74
|
+
const iconUrl = useMemo(() => {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
return ((_b = (_a = cardIconUrlMap[themeName]) === null || _a === void 0 ? void 0 : _a[type]) === null || _b === void 0 ? void 0 : _b.call(_a)) || '';
|
|
77
|
+
}, [type, themeName]);
|
|
78
|
+
const iconBgColor = useMemo(() => {
|
|
79
|
+
if (themeName !== 'marryBaby') {
|
|
80
|
+
return 'transparent';
|
|
81
|
+
}
|
|
82
|
+
return iconBgColorMap[type];
|
|
83
|
+
}, [type, themeName]);
|
|
84
|
+
function handleCardClick() {
|
|
85
|
+
onClick(type);
|
|
86
|
+
}
|
|
87
|
+
return (React__default.createElement("div", { onClick: handleCardClick, className: `${styles$3.navigationCard} ${className}` },
|
|
88
|
+
React__default.createElement("div", { className: styles$3.navigationCardIconWrapper, style: {
|
|
89
|
+
backgroundColor: iconBgColor,
|
|
90
|
+
backgroundImage: `url("${iconUrl}")`,
|
|
91
|
+
} }),
|
|
92
|
+
React__default.createElement("h3", { className: styles$3.navigationCardLabel }, t(`userProfile.nav.card.${type}`))));
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const navMenuItemsHelloSites = () => [
|
|
96
|
+
{
|
|
97
|
+
key: 'userProfile.nav.menu.accountSettings',
|
|
98
|
+
icon: CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-settingsWheel.svg'),
|
|
99
|
+
subMenu: [
|
|
100
|
+
// {
|
|
101
|
+
// key: 'common.profileNavigator.newsletterSubscription',
|
|
102
|
+
// link: 'subscriptions',
|
|
103
|
+
// disableLocale: [
|
|
104
|
+
// 'id-ID',
|
|
105
|
+
// 'ms-MY',
|
|
106
|
+
// 'km-KH',
|
|
107
|
+
// 'en-PH',
|
|
108
|
+
// 'tl-PH',
|
|
109
|
+
// 'th-TH',
|
|
110
|
+
// 'my-MM',
|
|
111
|
+
// 'zh-TW',
|
|
112
|
+
// 'hi-IN',
|
|
113
|
+
// ],
|
|
114
|
+
// },
|
|
115
|
+
{
|
|
116
|
+
key: 'userProfile.nav.menu.password',
|
|
117
|
+
link: 'password',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
key: 'userProfile.nav.menu.disableAccount',
|
|
121
|
+
link: 'disable-account',
|
|
122
|
+
disableLocale: ['hi-IN'],
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
key: 'userProfile.nav.menu.help',
|
|
128
|
+
icon: CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-helpCircle.svg'),
|
|
129
|
+
link: 'help',
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
const navMenuItemsMarryBaby = () => [
|
|
133
|
+
{
|
|
134
|
+
key: 'userProfile.nav.menu.password',
|
|
135
|
+
icon: CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-lock.svg'),
|
|
136
|
+
link: 'password',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
key: 'userProfile.nav.menu.logout',
|
|
140
|
+
icon: CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-logOut.svg'),
|
|
141
|
+
link: 'logout',
|
|
142
|
+
},
|
|
143
|
+
];
|
|
144
|
+
|
|
145
|
+
var styles$2 = {"navMenu":"gn6HmGG","navMenuItem":"FCx8FEM","navMenuItemContent":"zMiRxaE","navMenuItemIcon":"lZ2Z9MQ","navMenuItemDropdown":"rwm-agG","navFooterSubMenu":"qMOscoq"};
|
|
146
|
+
|
|
147
|
+
const NavMenu = ({ themeName, locale, onClickItem }) => {
|
|
148
|
+
const [openKey, setOpenKey] = useState('');
|
|
149
|
+
const navMenuItems = useMemo(() => themeName === 'marryBaby'
|
|
150
|
+
? navMenuItemsMarryBaby()
|
|
151
|
+
: navMenuItemsHelloSites(), [themeName]);
|
|
152
|
+
function handleParentItemClick(item) {
|
|
153
|
+
if (item.subMenu) {
|
|
154
|
+
setOpenKey((k) => {
|
|
155
|
+
if (k) {
|
|
156
|
+
return '';
|
|
157
|
+
}
|
|
158
|
+
return item.key;
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
else if (onClickItem) {
|
|
162
|
+
onClickItem(item);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return (React__default.createElement("div", { className: styles$2.navMenu }, navMenuItems.map((item) => (React__default.createElement(NavMenuItem, { key: item.key, item: item, openKey: openKey, onClickItem: handleParentItemClick, locale: locale })))));
|
|
166
|
+
};
|
|
167
|
+
const NavMenuItem = ({ item, openKey, onClickItem, locale, }) => {
|
|
168
|
+
var _a;
|
|
169
|
+
const { t } = useTranslations();
|
|
170
|
+
if ((_a = item.disableLocale) === null || _a === void 0 ? void 0 : _a.includes(locale)) {
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
return (React__default.createElement("div", { className: `${styles$2.navMenuItem} nav-menu-item`, "data-is-open": openKey === item.key, key: item.key, "data-has-submenu": !!item.subMenu },
|
|
174
|
+
React__default.createElement("div", { className: styles$2.navMenuItemContent, onClick: () => onClickItem(item) },
|
|
175
|
+
item.icon && (React__default.createElement("div", { className: styles$2.navMenuItemIcon, style: { backgroundImage: `url("${item.icon}")` } })),
|
|
176
|
+
t(item.key),
|
|
177
|
+
item.subMenu && (React__default.createElement("div", { className: styles$2.navMenuItemDropdown, style: {
|
|
178
|
+
'--after-bg': `url(${CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-chevronDown.svg')})`,
|
|
179
|
+
} }))),
|
|
180
|
+
item.subMenu && (React__default.createElement("div", { className: styles$2.navFooterSubMenu }, item.subMenu.map((subItem) => (React__default.createElement(NavMenuItem, { key: subItem.key, item: subItem, openKey: openKey, onClickItem: onClickItem, locale: locale })))))));
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
var styles$1 = {"userNavScreen":"-AZt1au","navigationCardsWrapper":"IvSIfCI","navigationCard":"eahCJov","logoutButton":"XIyViFs"};
|
|
184
|
+
|
|
185
|
+
var styles = {"userStats":"_4y-O0w3","wrapper":"kO8iNgD","header":"a1d4E10","headerIcon":"Tdguxxf","headerTitle":"-mOxsaU","headerPoints":"yPeDBNZ"};
|
|
186
|
+
|
|
187
|
+
const rankIconUrlMap = {
|
|
188
|
+
helloSites: {
|
|
189
|
+
member: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-rank-member.svg'),
|
|
190
|
+
ambassador: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-rank-ambassador.svg'),
|
|
191
|
+
doctor: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-rank-doctor.svg'),
|
|
192
|
+
expert: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-rank-expert.svg'),
|
|
193
|
+
influencer: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-rank-influencer.svg'),
|
|
194
|
+
},
|
|
195
|
+
marryBaby: {
|
|
196
|
+
member: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-rank-member.svg'),
|
|
197
|
+
ambassador: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-rank-ambassador.svg'),
|
|
198
|
+
doctor: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-rank-doctor.svg'),
|
|
199
|
+
expert: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-rank-expert.svg'),
|
|
200
|
+
influencer: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-rank-influencer.svg'),
|
|
201
|
+
},
|
|
202
|
+
};
|
|
203
|
+
const UserStats = ({ themeName, rank = 'member', numberOfPosts = 0, }) => {
|
|
204
|
+
const { t } = useTranslations();
|
|
205
|
+
const iconUrl = useMemo(() => {
|
|
206
|
+
var _a, _b;
|
|
207
|
+
return ((_b = (_a = rankIconUrlMap[themeName]) === null || _a === void 0 ? void 0 : _a[rank]) === null || _b === void 0 ? void 0 : _b.call(_a)) || '';
|
|
208
|
+
}, [rank, themeName]);
|
|
209
|
+
return (React__default.createElement("div", { className: styles.userStats, "data-user-rank": rank },
|
|
210
|
+
React__default.createElement("div", { className: styles.wrapper },
|
|
211
|
+
React__default.createElement("div", { className: styles.header },
|
|
212
|
+
React__default.createElement("div", { className: styles.headerIcon, style: { backgroundImage: `url("${iconUrl}")` } }),
|
|
213
|
+
React__default.createElement("h3", { className: styles.headerTitle }, t(`userProfile.userRank.${rank}`)),
|
|
214
|
+
numberOfPosts > 0 && (React__default.createElement("p", { className: styles.headerPoints },
|
|
215
|
+
numberOfPosts,
|
|
216
|
+
" ",
|
|
217
|
+
t('userProfile.nav.header.count.posts')))))));
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
const UserProfileNavigation = ({ SSO_URL, UP_BASEPATH = 'user', themeName = 'helloSites', cardUrls = INTERNAL_CARD_URLS, enableCare, enableTogether, enableEcom, enableMySaved, userInfo, togetherApiDomain, userPostsNumber, onClickNavigationCard, onClickMyProfileButton, onClickMenuItem, onClickLogout, isUserProfileNavigatorMenuHidden = false, isMyHealthEnabled = false, locale, }) => {
|
|
221
|
+
const { t } = useTranslations();
|
|
222
|
+
const [numberOfPosts, setNumberOfPosts] = useState(userPostsNumber || 0);
|
|
223
|
+
const isMarryBaby = themeName === 'marryBaby';
|
|
224
|
+
useEffect(() => {
|
|
225
|
+
if (userInfo && typeof userPostsNumber === 'undefined') {
|
|
226
|
+
const token = getCookie('hhg_user_token');
|
|
227
|
+
if (!!token) {
|
|
228
|
+
fetch(normalizeLinkSlash(getTogetherUserPostsApiPath(locale, isMarryBaby, togetherApiDomain)), {
|
|
229
|
+
headers: {
|
|
230
|
+
Authorization: `Bearer ${token}`,
|
|
231
|
+
},
|
|
232
|
+
})
|
|
233
|
+
.then((r) => r.json())
|
|
234
|
+
.then((r) => {
|
|
235
|
+
var _a, _b, _c;
|
|
236
|
+
if ((r === null || r === void 0 ? void 0 : r.status) === 1 && ((_a = r === null || r === void 0 ? void 0 : r.data) === null || _a === void 0 ? void 0 : _a.pagination)) {
|
|
237
|
+
setNumberOfPosts(((_c = (_b = r === null || r === void 0 ? void 0 : r.data) === null || _b === void 0 ? void 0 : _b.pagination) === null || _c === void 0 ? void 0 : _c.total_items) || 0);
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
.catch((err) => console.error('Error fetching post number', err));
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}, [
|
|
244
|
+
locale,
|
|
245
|
+
userInfo !== null,
|
|
246
|
+
userPostsNumber,
|
|
247
|
+
togetherApiDomain,
|
|
248
|
+
isMarryBaby,
|
|
249
|
+
]);
|
|
250
|
+
const cards = useMemo(() => {
|
|
251
|
+
let allCards;
|
|
252
|
+
if (isMarryBaby) {
|
|
253
|
+
allCards = ['myHealth', 'myCommunity', 'mySaved'];
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
allCards = ['myHealth', 'mySaved', 'myBooking', 'myCommunity', 'eCom'];
|
|
257
|
+
}
|
|
258
|
+
return allCards.filter((cardType) => {
|
|
259
|
+
if (cardType === 'myBooking') {
|
|
260
|
+
return enableCare;
|
|
261
|
+
}
|
|
262
|
+
else if (cardType === 'myCommunity') {
|
|
263
|
+
return enableTogether;
|
|
264
|
+
}
|
|
265
|
+
else if (cardType === 'myHealth') {
|
|
266
|
+
return isMyHealthEnabled;
|
|
267
|
+
}
|
|
268
|
+
else if (cardType === 'eCom') {
|
|
269
|
+
return enableEcom;
|
|
270
|
+
}
|
|
271
|
+
else if (cardType === 'mySaved') {
|
|
272
|
+
return enableMySaved;
|
|
273
|
+
}
|
|
274
|
+
return true;
|
|
275
|
+
});
|
|
276
|
+
}, [isMarryBaby, isMyHealthEnabled]);
|
|
277
|
+
const logoutButton = useMemo(() => {
|
|
278
|
+
if (themeName === 'marryBaby') {
|
|
279
|
+
return null;
|
|
280
|
+
}
|
|
281
|
+
return (React__default.createElement(Button, { color: "tertiary", icon: React__default.createElement("img", { src: CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-logOut.svg'), width: 15, height: 15, loading: "lazy" }), size: "md", onClick: onClickLogout, className: styles$1.logoutButton }, t('userProfile.nav.menu.logout')));
|
|
282
|
+
}, [themeName]);
|
|
283
|
+
const push = (link) => {
|
|
284
|
+
if (link.startsWith('http') || link.startsWith('/')) {
|
|
285
|
+
// direct to external link
|
|
286
|
+
window.location.href = normalizeLink(link);
|
|
287
|
+
}
|
|
288
|
+
else if (SSO_URL) {
|
|
289
|
+
// relative link go to user profile
|
|
290
|
+
window.location.href = normalizeLink(`${SSO_URL}${UP_BASEPATH}/${link}`);
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
const handleClickMenuItem = (item) => {
|
|
294
|
+
if (item.link === 'logout' && onClickLogout) {
|
|
295
|
+
onClickLogout();
|
|
296
|
+
}
|
|
297
|
+
else if (item.link && !item.subMenu) {
|
|
298
|
+
if (onClickMenuItem) {
|
|
299
|
+
onClickMenuItem(item.link);
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
push(item.link);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
const handleClickCardItem = (item) => {
|
|
307
|
+
const url = cardUrls[item];
|
|
308
|
+
if (onClickNavigationCard) {
|
|
309
|
+
onClickNavigationCard(url);
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
push(url);
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
const handleClickViewProfile = () => {
|
|
316
|
+
if (onClickMyProfileButton) {
|
|
317
|
+
onClickMyProfileButton();
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
push('profile');
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
if (!userInfo) {
|
|
324
|
+
return null;
|
|
325
|
+
}
|
|
326
|
+
return (React__default.createElement("div", { className: styles$1.userNavScreen, "data-theme": themeName },
|
|
327
|
+
React__default.createElement(NavHeader, { userInfo: userInfo, themeName: themeName, onClickMyProfileButton: handleClickViewProfile }),
|
|
328
|
+
React__default.createElement(UserStats, { themeName: themeName, rank: "member", numberOfPosts: numberOfPosts }),
|
|
329
|
+
React__default.createElement("div", { className: styles$1.navigationCardsWrapper }, cards.map((cardType) => (React__default.createElement(NavigationCard, { className: styles$1.navigationCard, key: cardType, themeName: themeName, type: cardType, onClick: handleClickCardItem })))),
|
|
330
|
+
!isUserProfileNavigatorMenuHidden && (React__default.createElement(React__default.Fragment, null,
|
|
331
|
+
React__default.createElement(NavMenu, { themeName: themeName, locale: locale, onClickItem: handleClickMenuItem }),
|
|
332
|
+
logoutButton))));
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
export { NavHeader as N, UserProfileNavigation as U, UserStats as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as domainLocales } from './index-
|
|
2
|
-
import { i as isProduction } from './isProduction-
|
|
1
|
+
import { d as domainLocales } from './index-6210f454.js';
|
|
2
|
+
import { i as isProduction } from './isProduction-1937d355.js';
|
|
3
3
|
|
|
4
4
|
const isNumeric = (n) => !isNaN(parseFloat(n)) && isFinite(n);
|
|
5
5
|
const defaultDomain = 'hellosehat.com';
|