@hhgtech/hhg-components 1.28.86 → 1.28.89
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/adapters.js +14 -14
- package/build/babyGrowth.js +77 -77
- package/build/cache.js +3 -3
- package/build/care.js +17 -17
- package/build/cart-f02db1b2.js +5670 -0
- package/build/components/atoms/cartBadge/index.styles.d.ts +0 -1
- package/build/components/navigationV2/components/atoms/ItemNav/itemNavButton.d.ts +7 -0
- package/build/components.js +55 -55
- package/build/{constants-2f8d3168.js → constants-11c0b7fa.js} +2 -2
- package/build/{constants-da291825.js → constants-b2d09f91.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-a7ccec35.js → core-300a990b.js} +2 -2
- package/build/{dataTransform-1f0cebcd.js → dataTransform-baa14c6c.js} +1 -1
- package/build/doctor-339f9942.js +9281 -0
- package/build/ecom.js +6 -6
- package/build/esm/adapters.js +14 -14
- package/build/esm/babyGrowth.js +78 -78
- package/build/esm/cache.js +3 -3
- package/build/esm/care.js +17 -17
- package/build/esm/cart-ea90eef2.js +5656 -0
- package/build/esm/components/atoms/cartBadge/index.styles.d.ts +0 -1
- package/build/esm/components/navigationV2/components/atoms/ItemNav/itemNavButton.d.ts +7 -0
- package/build/esm/components.js +55 -55
- package/build/esm/{constants-c1a4b8e0.js → constants-4c26ce25.js} +2 -2
- package/build/esm/{constants-cdc41777.js → constants-af46fc71.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-624959c3.js → core-82b411c4.js} +2 -2
- package/build/esm/{dataTransform-6f023f54.js → dataTransform-a22cc1dd.js} +1 -1
- package/build/esm/doctor-da03d5ce.js +9268 -0
- package/build/esm/ecom.js +6 -6
- package/build/esm/footer.js +19 -19
- package/build/esm/gAssets.js +4 -4
- package/build/esm/{getDynamicHealthTool-3566b577.js → getDynamicHealthTool-8a492890.js} +4 -4
- package/build/esm/{getSocialList-86b19f8c.js → getSocialList-a4ce6615.js} +2 -2
- 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-106cde5e.js → index-1ec7bbde.js} +2 -2
- package/build/esm/{index-f50705c6.js → index-20e43b42.js} +13 -13
- package/build/esm/{index-2dc99627.js → index-3aed1b80.js} +9 -9
- package/build/esm/{index-892f2b1e.js → index-42adccb5.js} +6 -6
- package/build/esm/{index-46aa9e12.js → index-5876f65d.js} +2 -2
- package/build/esm/{index-2fd5cfa7.js → index-58b24bbc.js} +10 -10
- package/build/esm/{index-ec25e5e8.js → index-5f441340.js} +3 -3
- package/build/esm/{index-332d983d.js → index-60aa94a1.js} +3 -3
- package/build/esm/{index-35d9f1fe.js → index-635ba61a.js} +1 -1
- package/build/esm/{index-e2db9d2f.js → index-74b68904.js} +2 -2
- package/build/esm/{index-bec40ab7.js → index-852fa469.js} +5 -5
- package/build/esm/{index-c6bfa0bc.js → index-9953c742.js} +1 -1
- package/build/esm/{index-5354718e.js → index-9fca458c.js} +8 -8
- package/build/esm/{index-d0888d0f.js → index-a757de1f.js} +128 -70
- package/build/esm/{index-7e86bd11.js → index-b9e2b795.js} +2 -2
- package/build/esm/{index-65421853.js → index-bf3a2f61.js} +4 -4
- package/build/esm/{index-8f5d5ae9.js → index-cf039789.js} +2 -2
- package/build/esm/{index-7268f163.js → index-d8903783.js} +4 -4
- package/build/esm/{index-fe18d67d.js → index-d8f5b856.js} +9 -9
- package/build/esm/{index-fb0bc04e.js → index-db94347c.js} +2 -2
- package/build/esm/{index-132c9dba.js → index-e7d07cb0.js} +4 -4
- package/build/esm/{index-9186594c.js → index-f03549e0.js} +9 -9
- package/build/esm/{index-2eb701e3.js → index-f10977ca.js} +2 -2
- package/build/esm/{index-fa525018.js → index-f26dc08a.js} +2 -2
- package/build/esm/{index-20995a2d.js → index-ffc9e72f.js} +39 -39
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +63 -63
- package/build/esm/{index.styled-37e6a61c.js → index.styled-89514be1.js} +2 -2
- package/build/esm/{index.styles-8fdb4f9b.js → index.styles-1d5bf8b1.js} +5 -5
- package/build/esm/lead.js +26 -26
- package/build/esm/mantine.js +19 -19
- package/build/esm/misc.js +17 -17
- package/build/esm/navigation.js +33 -34
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/pwg.js +18 -18
- package/build/esm/{routing-9e7b6555.js → routing-0a0924df.js} +2 -2
- package/build/esm/subot.js +20 -20
- package/build/esm/together.js +33 -33
- package/build/esm/{types-849956f7.js → types-29f5a87d.js} +29 -29
- package/build/esm/{types-ec79e1b2.js → types-6713a488.js} +13 -13
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-2d519f60.js → useCategory-9028050e.js} +5 -5
- package/build/esm/{useHealthToolCache-2a3b5488.js → useHealthToolCache-c89ebecf.js} +2 -2
- package/build/esm/{usePlacesAutocomplete-8c8009d1.js → usePlacesAutocomplete-cfa578a8.js} +1 -1
- package/build/esm/{useTranslations-fcdf9edd.js → useTranslations-ac93a9ff.js} +1 -1
- package/build/esm/{utils-76a3077b.js → utils-33cd0168.js} +5 -5
- package/build/esm/{utils-2db4145c.js → utils-4c56306b.js} +1 -1
- package/build/esm/{utils-13d20489.js → utils-9bc0b9b8.js} +4 -4
- package/build/esm/vaccination.js +24 -24
- package/build/footer.js +19 -19
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-0ac4e966.js → getDynamicHealthTool-a92e1325.js} +4 -4
- package/build/{getSocialList-3b5e9f1f.js → getSocialList-3bd85f53.js} +2 -2
- package/build/hooks.js +17 -17
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-431d6475.js → index-0971679f.js} +4 -4
- package/build/{index-bf5df813.js → index-0ec3717f.js} +2 -2
- package/build/{index-db59c72b.js → index-1af5c1fe.js} +4 -4
- package/build/{index-9fba170a.js → index-1f381b1c.js} +9 -9
- package/build/{index-48601596.js → index-229ab120.js} +1 -1
- package/build/{index-ac4fef47.js → index-32f38923.js} +3 -3
- package/build/{index-fbf5d34b.js → index-434584c9.js} +2 -2
- package/build/{index-d6995b9a.js → index-473b7314.js} +6 -6
- package/build/{index-f66c8512.js → index-5010ae37.js} +9 -9
- package/build/{index-e1ea381e.js → index-56178953.js} +3 -3
- package/build/{index-e1b7b5ed.js → index-5901de24.js} +39 -39
- package/build/{index-81c35ec0.js → index-6583f005.js} +13 -13
- package/build/{index-3c85ea24.js → index-65e192bf.js} +2 -2
- package/build/{index-c40e92e7.js → index-6faac8f8.js} +1 -1
- package/build/{index-8b63bb2b.js → index-83b2e376.js} +2 -2
- package/build/{index-67ef3c55.js → index-98d2dc5c.js} +2 -2
- package/build/{index-9e19f11c.js → index-9a91fdc3.js} +5 -5
- package/build/{index-76a7cdcf.js → index-a0544a9a.js} +9 -9
- package/build/{index-b84e324a.js → index-b15ab04c.js} +4 -4
- package/build/{index-7402388f.js → index-c1147046.js} +10 -10
- package/build/{index-486edf69.js → index-c3dfb63c.js} +2 -2
- package/build/{index-71b09a48.js → index-d0734e53.js} +2 -2
- package/build/{index-f0dedb1f.js → index-d0fc47fb.js} +2 -2
- package/build/{index-0c13dde8.js → index-e0e0c14c.js} +184 -108
- package/build/{index-77324378.js → index-fbaabe3e.js} +8 -8
- package/build/index.css +1 -1
- package/build/index.js +63 -63
- package/build/{index.styled-0efdf3dd.js → index.styled-6808b836.js} +2 -2
- package/build/{index.styles-30779c66.js → index.styles-ee4abc81.js} +5 -5
- package/build/lead.js +26 -26
- package/build/mantine.js +17 -17
- package/build/misc.js +17 -17
- package/build/navigation.js +33 -34
- package/build/onboardingV2.js +28 -28
- package/build/pwg.js +18 -18
- package/build/{routing-235d1ae2.js → routing-4d1adb59.js} +2 -2
- package/build/subot.js +20 -20
- package/build/together.js +33 -33
- package/build/{types-1ba38e87.js → types-3bcb0126.js} +29 -29
- package/build/{types-038300a5.js → types-c53dc1e6.js} +13 -13
- package/build/types.js +1 -1
- package/build/{useCategory-71068918.js → useCategory-a2a4a5c5.js} +5 -5
- package/build/{useHealthToolCache-ac9baf80.js → useHealthToolCache-75e6bdb3.js} +2 -2
- package/build/{usePlacesAutocomplete-2b5a79e5.js → usePlacesAutocomplete-6cddcb5c.js} +1 -1
- package/build/{useTranslations-5da685bd.js → useTranslations-a09cfd3b.js} +1 -1
- package/build/{utils-0966025a.js → utils-90d10764.js} +4 -4
- package/build/{utils-7d1094ae.js → utils-9277c1d6.js} +1 -1
- package/build/{utils-382019b8.js → utils-c3c00a65.js} +5 -5
- package/build/vaccination.js +24 -24
- package/package.json +3 -2
- /package/build/{BMI_BOYS.percentile.monthly-a7986394.js → BMI_BOYS.percentile.monthly-60437139.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-51c68908.js → BMI_BOYS.percentile.weekly-4cbcae65.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-e2b94c4a.js → BMI_BOYS.percentile.yearly-a28ed8b8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-072fd85b.js → BMI_BOYS.zscore.monthly-3a7d4cf9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-66d525c5.js → BMI_BOYS.zscore.weekly-d65e49e2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-31862985.js → BMI_BOYS.zscore.yearly-3e0887b3.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-49d23caf.js → BMI_GIRLS.percentile.monthly-e1043034.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-08a9c85a.js → BMI_GIRLS.percentile.weekly-28216f2f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-dbe667fc.js → BMI_GIRLS.percentile.yearly-4ea48b9c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-84579442.js → BMI_GIRLS.zscore.monthly-9c1f981a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-50a97496.js → BMI_GIRLS.zscore.weekly-a7ff8cc4.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-6658b4ff.js → BMI_GIRLS.zscore.yearly-2cc8a937.js} +0 -0
- /package/build/{ChevronDown-b53850df.js → ChevronDown-86e4e63a.js} +0 -0
- /package/build/{Close-f7c2b611.js → Close-ef122256.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-f29c5217.js → HEAD CIRCUM_BOYS.percentile.monthly-42a644ca.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-d7aa0785.js → HEAD CIRCUM_BOYS.percentile.weekly-d7f4eb54.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7861d591.js → HEAD CIRCUM_BOYS.percentile.yearly-df9c0535.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a34b1a74.js → HEAD CIRCUM_BOYS.zscore.monthly-10e836ad.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a6eafcd7.js → HEAD CIRCUM_BOYS.zscore.weekly-214fe1ac.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-52430abe.js → HEAD CIRCUM_BOYS.zscore.yearly-6ddf77e5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-0ed1b5bf.js → HEAD CIRCUM_GIRLS.percentile.monthly-bb2b5c99.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-cc941d4c.js → HEAD CIRCUM_GIRLS.percentile.weekly-735eff64.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-6d464c6c.js → HEAD CIRCUM_GIRLS.percentile.yearly-35b9ae28.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-1b3dabbd.js → HEAD CIRCUM_GIRLS.zscore.monthly-e4c86590.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-345635a2.js → HEAD CIRCUM_GIRLS.zscore.weekly-ef18959f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-f78d4287.js → HEAD CIRCUM_GIRLS.zscore.yearly-82fafcf7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-6f7c80fc.js → HEIGHT_BOYS.percentile.monthly-8ca019b1.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-719aface.js → HEIGHT_BOYS.percentile.weekly-700c5ec8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-64fe3a76.js → HEIGHT_BOYS.percentile.yearly-dbbde7a3.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-9e4c0a6c.js → HEIGHT_BOYS.zscore.monthly-c69f2cb0.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-5fa884ad.js → HEIGHT_BOYS.zscore.weekly-f9ad2c8c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-c5aabcb3.js → HEIGHT_BOYS.zscore.yearly-0249b057.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-9e39fd17.js → HEIGHT_GIRLS.percentile.monthly-2deb69cc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-fd625a8f.js → HEIGHT_GIRLS.percentile.weekly-06d68de4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-0cc80a17.js → HEIGHT_GIRLS.percentile.yearly-b7d0d4ce.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-f35f4b41.js → HEIGHT_GIRLS.zscore.monthly-cb31814e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-f72e303f.js → HEIGHT_GIRLS.zscore.weekly-2e4493ca.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-09109f59.js → HEIGHT_GIRLS.zscore.yearly-c913e5d4.js} +0 -0
- /package/build/{Subot-23b8e7fd.js → Subot-0bc49830.js} +0 -0
- /package/build/{Visible-2fe03e04.js → Visible-0560e910.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-b53a9f96.js → WEIGHT_BOYS.percentile.monthly-24addef6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-9419d19f.js → WEIGHT_BOYS.percentile.weekly-0aa2b5ea.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-029e178c.js → WEIGHT_BOYS.percentile.yearly-77908b56.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-2e5da04d.js → WEIGHT_BOYS.zscore.monthly-41aaa813.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-b23bb80c.js → WEIGHT_BOYS.zscore.weekly-8efcefc8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-b1cf7b4f.js → WEIGHT_BOYS.zscore.yearly-faa837ed.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-9ffba0f1.js → WEIGHT_GIRLS.percentile.monthly-3712219d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-9e335686.js → WEIGHT_GIRLS.percentile.weekly-cde73201.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-43b5cf9f.js → WEIGHT_GIRLS.percentile.yearly-e84fa33d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-53abdb2e.js → WEIGHT_GIRLS.zscore.monthly-7b2606c7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-06f5febb.js → WEIGHT_GIRLS.zscore.weekly-aa5ce8db.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-4903980b.js → WEIGHT_GIRLS.zscore.yearly-a8498dc1.js} +0 -0
- /package/build/{animation-4f11a97d.js → animation-c549c0bf.js} +0 -0
- /package/build/{cookieHelper-1a2f2dad.js → cookieHelper-d42f46ae.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-05ce75ad.js → BMI_BOYS.percentile.monthly-d327b6d4.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b8f849bf.js → BMI_BOYS.percentile.weekly-7dc08d88.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-625b2877.js → BMI_BOYS.percentile.yearly-fac3ebfc.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-9064f926.js → BMI_BOYS.zscore.monthly-5b643dc3.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-f48be2c9.js → BMI_BOYS.zscore.weekly-3367720a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-a5003966.js → BMI_BOYS.zscore.yearly-cc88c60b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-f91bba98.js → BMI_GIRLS.percentile.monthly-0683da13.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-aa21691d.js → BMI_GIRLS.percentile.weekly-0b8f9830.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-bf9755e0.js → BMI_GIRLS.percentile.yearly-f0edc914.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-26ca0513.js → BMI_GIRLS.zscore.monthly-11193d42.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-74e542f0.js → BMI_GIRLS.zscore.weekly-5aab0e49.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-15d7cc2e.js → BMI_GIRLS.zscore.yearly-1b91bcf3.js} +0 -0
- /package/build/esm/{ChevronDown-683a4df9.js → ChevronDown-066cf838.js} +0 -0
- /package/build/esm/{Close-07a44268.js → Close-a18f4d79.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c2675584.js → HEAD CIRCUM_BOYS.percentile.monthly-51e34cf2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-344e08ba.js → HEAD CIRCUM_BOYS.percentile.weekly-44cafb9c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-5bd72917.js → HEAD CIRCUM_BOYS.percentile.yearly-800771dd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-5274dc35.js → HEAD CIRCUM_BOYS.zscore.monthly-d9e23412.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-3c63b0c8.js → HEAD CIRCUM_BOYS.zscore.weekly-986be6fa.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-fc8b9350.js → HEAD CIRCUM_BOYS.zscore.yearly-d4090b4a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-733bcce8.js → HEAD CIRCUM_GIRLS.percentile.monthly-b47c77ec.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-3124fd31.js → HEAD CIRCUM_GIRLS.percentile.weekly-9ea8b215.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-1de37675.js → HEAD CIRCUM_GIRLS.percentile.yearly-53038c80.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-9e30f388.js → HEAD CIRCUM_GIRLS.zscore.monthly-418695f3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-2ca05b06.js → HEAD CIRCUM_GIRLS.zscore.weekly-0653aba2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b81b8754.js → HEAD CIRCUM_GIRLS.zscore.yearly-08b19e9a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-d44f4536.js → HEIGHT_BOYS.percentile.monthly-96a66dda.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1b1233ec.js → HEIGHT_BOYS.percentile.weekly-bd4dad1b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-2bd3e207.js → HEIGHT_BOYS.percentile.yearly-841f5bdf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b62258b9.js → HEIGHT_BOYS.zscore.monthly-a7bc2da6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-02ecf1be.js → HEIGHT_BOYS.zscore.weekly-45ef637d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-55e40669.js → HEIGHT_BOYS.zscore.yearly-7ba209da.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-3930a147.js → HEIGHT_GIRLS.percentile.monthly-d5be2c43.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-ee51c11c.js → HEIGHT_GIRLS.percentile.weekly-ccfbde50.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-d0783308.js → HEIGHT_GIRLS.percentile.yearly-566d7cea.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-2f79a167.js → HEIGHT_GIRLS.zscore.monthly-d0a02f85.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-25b89bde.js → HEIGHT_GIRLS.zscore.weekly-8a9d5ffe.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-0fa23cf2.js → HEIGHT_GIRLS.zscore.yearly-06c95dd1.js} +0 -0
- /package/build/esm/{Subot-def34324.js → Subot-db4f37fe.js} +0 -0
- /package/build/esm/{Visible-8429f45c.js → Visible-7e8f11ed.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-7cf4bcdf.js → WEIGHT_BOYS.percentile.monthly-f9b2f12f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-9944ca6a.js → WEIGHT_BOYS.percentile.weekly-9a164ddd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-848fa41b.js → WEIGHT_BOYS.percentile.yearly-4807d13e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4d907458.js → WEIGHT_BOYS.zscore.monthly-f8be145c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5b3a7ba8.js → WEIGHT_BOYS.zscore.weekly-b223d799.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-4bf802fe.js → WEIGHT_BOYS.zscore.yearly-6a8cf1e6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-605cdc63.js → WEIGHT_GIRLS.percentile.monthly-9c3950fc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-cf5fac6e.js → WEIGHT_GIRLS.percentile.weekly-54bc0a60.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-7bdb451b.js → WEIGHT_GIRLS.percentile.yearly-92b22489.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-4b8d797b.js → WEIGHT_GIRLS.zscore.monthly-84fcf1a0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-12682b8c.js → WEIGHT_GIRLS.zscore.weekly-e1a889cf.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-4300a2bd.js → WEIGHT_GIRLS.zscore.yearly-65bda75b.js} +0 -0
- /package/build/esm/{animation-e41985c1.js → animation-1603b11d.js} +0 -0
- /package/build/esm/{cookieHelper-e155c826.js → cookieHelper-aff01920.js} +0 -0
- /package/build/esm/{index-6f2a88ae.js → index-0dfe4172.js} +0 -0
- /package/build/esm/{index-22bf0dcc.js → index-1dccda93.js} +0 -0
- /package/build/esm/{index-f791e727.js → index-9dd212ca.js} +0 -0
- /package/build/esm/{isProduction-0823170a.js → isProduction-23fdd658.js} +0 -0
- /package/build/esm/{localizeNumberFormat-5e4530dc.js → localizeNumberFormat-ec050db2.js} +0 -0
- /package/build/esm/{normalizeLink-119538c0.js → normalizeLink-f549d1bf.js} +0 -0
- /package/build/esm/{number-500ca116.js → number-e4a649fb.js} +0 -0
- /package/build/esm/{paths-2d1d97d3.js → paths-608ec6d6.js} +0 -0
- /package/build/esm/{theme-9446fcad.js → theme-d3fa6e0d.js} +0 -0
- /package/build/esm/{translationsContext-a3cdc7ca.js → translationsContext-1c13c477.js} +0 -0
- /package/build/esm/{tslib.es6-9d8cd796.js → tslib.es6-c6ca5150.js} +0 -0
- /package/build/esm/{types-7cbb7b8e.js → types-deed19fb.js} +0 -0
- /package/build/esm/{useIsInit-6f6be51c.js → useIsInit-af876717.js} +0 -0
- /package/build/esm/{useOutsideClick-2d71c96a.js → useOutsideClick-bde18914.js} +0 -0
- /package/build/esm/{useScrollbarSize-8a841829.js → useScrollbarSize-2761ac0d.js} +0 -0
- /package/build/esm/{useUniqueId-8b014e18.js → useUniqueId-804cfbab.js} +0 -0
- /package/build/esm/{utils-740c9196.js → utils-eefaddcc.js} +0 -0
- /package/build/{index-4770b309.js → index-3ba71733.js} +0 -0
- /package/build/{index-c0d42a4a.js → index-3ed0b5e1.js} +0 -0
- /package/build/{index-7cdbab91.js → index-b255bbf0.js} +0 -0
- /package/build/{isProduction-a101d9fd.js → isProduction-43adda90.js} +0 -0
- /package/build/{localizeNumberFormat-f8bd9688.js → localizeNumberFormat-baf1a103.js} +0 -0
- /package/build/{normalizeLink-22fe20f2.js → normalizeLink-c8e0466f.js} +0 -0
- /package/build/{number-6cf0175b.js → number-d6bf6b33.js} +0 -0
- /package/build/{paths-a9c167de.js → paths-2b8cb049.js} +0 -0
- /package/build/{theme-f35daf01.js → theme-4c9d720c.js} +0 -0
- /package/build/{translationsContext-e480c858.js → translationsContext-24b12e79.js} +0 -0
- /package/build/{tslib.es6-0594822f.js → tslib.es6-f8a6d852.js} +0 -0
- /package/build/{types-17a3be62.js → types-61b2e4d7.js} +0 -0
- /package/build/{useIsInit-42717c75.js → useIsInit-31bc07cf.js} +0 -0
- /package/build/{useOutsideClick-14f34278.js → useOutsideClick-8086495d.js} +0 -0
- /package/build/{useScrollbarSize-852854bf.js → useScrollbarSize-f49ef5bc.js} +0 -0
- /package/build/{useUniqueId-6a847add.js → useUniqueId-1eaa920b.js} +0 -0
- /package/build/{utils-2001405c.js → utils-642deba8.js} +0 -0
|
@@ -1,48 +1,65 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-f8a6d852.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index$2 = require('./index-
|
|
5
|
+
var index$2 = require('./index-fbaabe3e.js');
|
|
6
6
|
var styled = require('styled-components');
|
|
7
|
-
var theme = require('./theme-
|
|
8
|
-
var index = require('./index-
|
|
9
|
-
var index$1 = require('./index-
|
|
10
|
-
var index$
|
|
11
|
-
var normalizeLink = require('./normalizeLink-
|
|
12
|
-
var routing = require('./routing-
|
|
13
|
-
var index$
|
|
14
|
-
var index$
|
|
15
|
-
var useTranslations = require('./useTranslations-
|
|
7
|
+
var theme = require('./theme-4c9d720c.js');
|
|
8
|
+
var index = require('./index-6faac8f8.js');
|
|
9
|
+
var index$1 = require('./index-83b2e376.js');
|
|
10
|
+
var index$3 = require('./index-d0734e53.js');
|
|
11
|
+
var normalizeLink = require('./normalizeLink-c8e0466f.js');
|
|
12
|
+
var routing = require('./routing-4d1adb59.js');
|
|
13
|
+
var index$4 = require('./index-b15ab04c.js');
|
|
14
|
+
var index$9 = require('./index-0971679f.js');
|
|
15
|
+
var useTranslations = require('./useTranslations-a09cfd3b.js');
|
|
16
16
|
var throttle = require('lodash/throttle');
|
|
17
17
|
var core = require('@mantine/core');
|
|
18
18
|
require('@mantine/dates');
|
|
19
|
-
var Subot = require('./Subot-
|
|
20
|
-
require('./translationsContext-
|
|
19
|
+
var Subot = require('./Subot-0bc49830.js');
|
|
20
|
+
require('./translationsContext-24b12e79.js');
|
|
21
21
|
var formatString = require('string-format');
|
|
22
22
|
require('@mantine/hooks');
|
|
23
|
-
var utils = require('./utils-
|
|
24
|
-
var constants = require('./constants-
|
|
25
|
-
var index$3 = require('./index-ac4fef47.js');
|
|
23
|
+
var utils = require('./utils-642deba8.js');
|
|
24
|
+
var constants = require('./constants-11c0b7fa.js');
|
|
26
25
|
var core$1 = require('@hhgtech/icons/core');
|
|
27
|
-
var index_styles = require('./index.styles-
|
|
28
|
-
var ChevronDown = require('./ChevronDown-
|
|
29
|
-
var index$
|
|
30
|
-
var utils$1 = require('./utils-
|
|
31
|
-
var constants$1 = require('./constants-
|
|
32
|
-
var index$
|
|
33
|
-
var index$
|
|
34
|
-
var useIsInit = require('./useIsInit-
|
|
35
|
-
require('./utils-
|
|
36
|
-
require('./index.styled-
|
|
37
|
-
require('./index-
|
|
26
|
+
var index_styles = require('./index.styles-ee4abc81.js');
|
|
27
|
+
var ChevronDown = require('./ChevronDown-86e4e63a.js');
|
|
28
|
+
var index$5 = require('./index-65e192bf.js');
|
|
29
|
+
var utils$1 = require('./utils-c3c00a65.js');
|
|
30
|
+
var constants$1 = require('./constants-b2d09f91.js');
|
|
31
|
+
var index$7 = require('./index-d0fc47fb.js');
|
|
32
|
+
var index$6 = require('./index-0ec3717f.js');
|
|
33
|
+
var useIsInit = require('./useIsInit-31bc07cf.js');
|
|
34
|
+
require('./utils-90d10764.js');
|
|
35
|
+
require('./index.styled-6808b836.js');
|
|
36
|
+
require('./index-3ed0b5e1.js');
|
|
38
37
|
var dayjs = require('dayjs');
|
|
39
38
|
var relativeTime = require('dayjs/plugin/relativeTime');
|
|
40
|
-
var index$
|
|
39
|
+
var index$8 = require('./index-3ba71733.js');
|
|
41
40
|
var debounce = require('lodash/debounce');
|
|
42
|
-
var core$2 = require('./core-
|
|
41
|
+
var core$2 = require('./core-300a990b.js');
|
|
43
42
|
|
|
44
43
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
45
44
|
|
|
45
|
+
function _interopNamespace(e) {
|
|
46
|
+
if (e && e.__esModule) return e;
|
|
47
|
+
var n = Object.create(null);
|
|
48
|
+
if (e) {
|
|
49
|
+
Object.keys(e).forEach(function (k) {
|
|
50
|
+
if (k !== 'default') {
|
|
51
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
52
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return e[k]; }
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
n["default"] = e;
|
|
60
|
+
return Object.freeze(n);
|
|
61
|
+
}
|
|
62
|
+
|
|
46
63
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
47
64
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
48
65
|
var throttle__default = /*#__PURE__*/_interopDefault(throttle);
|
|
@@ -201,9 +218,6 @@ var useStyles = core.createStyles(() => {
|
|
|
201
218
|
root: {
|
|
202
219
|
textDecoration: 'none',
|
|
203
220
|
},
|
|
204
|
-
indicatorRoot: {
|
|
205
|
-
marginRight: core.rem(10),
|
|
206
|
-
},
|
|
207
221
|
iconText: {
|
|
208
222
|
color: '#fff',
|
|
209
223
|
},
|
|
@@ -218,10 +232,9 @@ const CartBadge = (_a) => {
|
|
|
218
232
|
classNames,
|
|
219
233
|
});
|
|
220
234
|
return typeof count !== 'undefined' ? (React__default["default"].createElement(core.Box, Object.assign({ component: "a", href: getEcomUrl({ path: 'CART', locale }), className: cx(classes.root, className) }, boxProps),
|
|
221
|
-
React__default["default"].createElement(core.Indicator, {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
React__default["default"].createElement(index$3.Icon.Cart, { size: 24 })))) : null;
|
|
235
|
+
React__default["default"].createElement(core.Indicator, { withBorder: true, color: 'red', size: 20, disabled: count === 0, label: React__default["default"].createElement(index.Text, { className: classes.iconText, size: "s5" }, count > 99 ? '99+' : count) },
|
|
236
|
+
React__default["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
237
|
+
React__default["default"].createElement("path", { d: "M5.308 21.5q-.748 0-1.278-.53a1.74 1.74 0 0 1-.53-1.278V8.308q0-.75.53-1.278.53-.53 1.278-.53H7.5q0-1.873 1.313-3.187Q10.127 2 12 2t3.187 1.313T16.5 6.5h2.192q.749 0 1.278.53.53.53.53 1.278v11.384q0 .749-.53 1.278-.53.53-1.278.53zm0-1.5h13.384a.3.3 0 0 0 .212-.096.3.3 0 0 0 .096-.212V8.308a.3.3 0 0 0-.096-.212.3.3 0 0 0-.212-.096H5.308a.3.3 0 0 0-.212.096.3.3 0 0 0-.096.212v11.384q0 .116.096.212a.3.3 0 0 0 .212.096M9 6.5h6q0-1.25-.875-2.125A2.9 2.9 0 0 0 12 3.5q-1.25 0-2.125.875A2.9 2.9 0 0 0 9 6.5m2.985 7q1.695 0 3.047-1.148 1.35-1.148 1.335-2.606a.74.74 0 0 0-.207-.528.7.7 0 0 0-.527-.218.7.7 0 0 0-.471.182 1 1 0 0 0-.295.506 2.8 2.8 0 0 1-1.036 1.665 2.9 2.9 0 0 1-1.846.647 2.93 2.93 0 0 1-1.854-.647A2.73 2.73 0 0 1 9.1 9.688q-.086-.34-.278-.514A.66.66 0 0 0 8.367 9a.72.72 0 0 0-.534.218.72.72 0 0 0-.216.528q0 1.457 1.336 2.606 1.335 1.148 3.032 1.148", fill: "#2D87F3" }))))) : null;
|
|
225
238
|
};
|
|
226
239
|
|
|
227
240
|
const StyledDisplayWrapper = styled__default["default"].div `
|
|
@@ -293,12 +306,9 @@ const _StyledPopup = styled__default["default"].div `
|
|
|
293
306
|
z-index: 111;
|
|
294
307
|
height: 100%;
|
|
295
308
|
border: 1px solid #0000001a;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
border-top-right-radius: 0;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
309
|
+
border-radius: 16px;
|
|
310
|
+
border-top-left-radius: 0;
|
|
311
|
+
border-top-right-radius: 0;
|
|
302
312
|
}
|
|
303
313
|
|
|
304
314
|
/* min-height: 415px; */
|
|
@@ -347,8 +357,8 @@ const _StyledPopupWrapper = styled__default["default"].div `
|
|
|
347
357
|
const StyledPopupWrapperClass = 'hhgcomp-navprofilebutton-popupwrapper';
|
|
348
358
|
index_styles.getDefaultClassWrapper(_StyledPopupWrapper, StyledPopupWrapperClass);
|
|
349
359
|
const StyledAvatar = styled__default["default"].div `
|
|
350
|
-
width:
|
|
351
|
-
height:
|
|
360
|
+
width: 36px;
|
|
361
|
+
height: 36px;
|
|
352
362
|
cursor: pointer;
|
|
353
363
|
|
|
354
364
|
img {
|
|
@@ -356,8 +366,8 @@ const StyledAvatar = styled__default["default"].div `
|
|
|
356
366
|
}
|
|
357
367
|
|
|
358
368
|
.avatar {
|
|
359
|
-
width:
|
|
360
|
-
height:
|
|
369
|
+
width: 36px;
|
|
370
|
+
height: 36px;
|
|
361
371
|
object-fit: cover;
|
|
362
372
|
}
|
|
363
373
|
|
|
@@ -375,8 +385,8 @@ const StyledAvatar = styled__default["default"].div `
|
|
|
375
385
|
const StyledImageWrapper$1 = styled__default["default"].div `
|
|
376
386
|
display: inline-flex;
|
|
377
387
|
position: relative;
|
|
378
|
-
width:
|
|
379
|
-
height:
|
|
388
|
+
width: 36px;
|
|
389
|
+
height: 36px;
|
|
380
390
|
display: flex;
|
|
381
391
|
align-items: center;
|
|
382
392
|
justify-content: center;
|
|
@@ -657,7 +667,7 @@ const ProfileNavigation = ({ className, activeItem: forceActiveItem, navMenuItem
|
|
|
657
667
|
key: 'userProfile.nav.card.myBooking',
|
|
658
668
|
icon: React__default["default"].createElement(NavBookingIcon, { width: "24", height: "24" }),
|
|
659
669
|
value: 'booking',
|
|
660
|
-
disabled: !index$
|
|
670
|
+
disabled: !index$3.CARE_LOCALES.includes(locale),
|
|
661
671
|
tracking: {
|
|
662
672
|
action: 'Manage Booking Click',
|
|
663
673
|
},
|
|
@@ -667,21 +677,21 @@ const ProfileNavigation = ({ className, activeItem: forceActiveItem, navMenuItem
|
|
|
667
677
|
key: 'userProfile.nav.card.myCommunity',
|
|
668
678
|
icon: React__default["default"].createElement(NavCommunityIcon, { width: "24", height: "24" }),
|
|
669
679
|
value: 'myCommunities',
|
|
670
|
-
disabled: !index$
|
|
680
|
+
disabled: !index$3.TOGETHER_LOCALES.includes(locale),
|
|
671
681
|
tracking: {
|
|
672
682
|
action: 'Community Click',
|
|
673
683
|
},
|
|
674
684
|
link: `${SSO_URL}user/my-communities/`,
|
|
675
685
|
},
|
|
676
686
|
],
|
|
677
|
-
...(index$
|
|
687
|
+
...(index$3.ECOM_LOCALES.includes(locale)
|
|
678
688
|
? [
|
|
679
689
|
[
|
|
680
690
|
{
|
|
681
691
|
key: 'userProfile.nav.card.eCom',
|
|
682
692
|
icon: React__default["default"].createElement(NavEshopIcon, { width: "24", height: "24" }),
|
|
683
693
|
value: 'eCom',
|
|
684
|
-
disabled: !index$
|
|
694
|
+
disabled: !index$3.ECOM_LOCALES.includes(locale),
|
|
685
695
|
subMenu: [
|
|
686
696
|
{
|
|
687
697
|
key: 'userProfile.nav.card.ecom.manageOrders',
|
|
@@ -928,7 +938,7 @@ const NavigationLogoutPopup = ({ openLogoutPopup, onCloseHandler, onLogoutHandle
|
|
|
928
938
|
document.body.classList.toggle('noscroll', openLogoutPopup);
|
|
929
939
|
}, [openLogoutPopup]);
|
|
930
940
|
return (React__default["default"].createElement(core.Portal, null,
|
|
931
|
-
React__default["default"].createElement(index$
|
|
941
|
+
React__default["default"].createElement(index$4.Popup, { type: "confirm", isOpen: openLogoutPopup, closeIcon: React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('closeLight.svg'), style: { width: 24, height: 24 }, alt: "close-icon", loading: "lazy" }), onClose: onCloseHandler },
|
|
932
942
|
React__default["default"].createElement(StyledPopup, null,
|
|
933
943
|
siteType === 'helloSites' && (React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('arrowDoor.svg'), className: "cancle-img", alt: "close-account", loading: "lazy" })),
|
|
934
944
|
React__default["default"].createElement("h2", null, t(siteType === 'helloSites'
|
|
@@ -936,8 +946,8 @@ const NavigationLogoutPopup = ({ openLogoutPopup, onCloseHandler, onLogoutHandle
|
|
|
936
946
|
: 'logout.popup.ask.mb')),
|
|
937
947
|
React__default["default"].createElement("p", null, t('logout.popup.ask2')),
|
|
938
948
|
React__default["default"].createElement(StyledButtonGroup, { siteType: siteType },
|
|
939
|
-
React__default["default"].createElement(index$
|
|
940
|
-
React__default["default"].createElement(index$
|
|
949
|
+
React__default["default"].createElement(index$5.Button, { className: "logout-button", color: "tertiary", size: "lg", onClick: onLogoutHandler }, t('logout.popup.button.logout')),
|
|
950
|
+
React__default["default"].createElement(index$5.Button, { className: "cancel-button", color: "primary", size: "lg", onClick: onCloseHandler }, t('logout.popup.button.cancel')))))));
|
|
941
951
|
};
|
|
942
952
|
|
|
943
953
|
const NavigationProfileButton = ({ userInfo, siteType, onLoginClick, SSO_URL, currentUrl, isMinifyLogin, onLogout, style, isLoading, locale, }) => {
|
|
@@ -966,7 +976,7 @@ const NavigationProfileButton = ({ userInfo, siteType, onLoginClick, SSO_URL, cu
|
|
|
966
976
|
React__default["default"].createElement("div", { onMouseDown: onButtonMouseDown },
|
|
967
977
|
React__default["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className: "user-close-icon" },
|
|
968
978
|
React__default["default"].createElement("path", { d: "M18 6L6 18M18 18L6 6", stroke: "#3E3F58", strokeWidth: "1.3", strokeLinecap: "round" })),
|
|
969
|
-
React__default["default"].createElement(index$2.Avatar, { size:
|
|
979
|
+
React__default["default"].createElement(index$2.Avatar, { size: 36, className: "user-avatar", src: userInfo === null || userInfo === void 0 ? void 0 : userInfo.avatar, color: siteType === 'marryBaby'
|
|
970
980
|
? theme.theme.mbColors.pink
|
|
971
981
|
: theme.theme.colors.secondaryBase, placeholderText: name && name.length ? name[0].toUpperCase() : 'A' })),
|
|
972
982
|
React__default["default"].createElement(ProfilePopup, { dispatchLogout: () => {
|
|
@@ -1003,17 +1013,17 @@ const NavigationProfileButton = ({ userInfo, siteType, onLoginClick, SSO_URL, cu
|
|
|
1003
1013
|
paddingLeft: 16,
|
|
1004
1014
|
} },
|
|
1005
1015
|
React__default["default"].createElement(index.Text, { size: "p3", color: theme.theme.mbColors.pink }, t('navigation.loginJoin')))),
|
|
1006
|
-
React__default["default"].createElement(index$2.Button, { className: "login-btn", size: "md", onClick: onLoginClick, leftIcon: React__default["default"].createElement(core$1.User, { color: "currentColor", isSolid: true, size: 22 }) }, t('navigation.loginJoin'))))));
|
|
1016
|
+
siteType === 'marryBaby' ? (React__default["default"].createElement(index$2.Button, { className: "login-btn", size: "md", onClick: onLoginClick, leftIcon: React__default["default"].createElement(core$1.User, { color: "currentColor", isSolid: true, size: 22 }) }, t('navigation.loginJoin'))) : (React__default["default"].createElement(index$2.Button, { className: "login-btn", size: "md", onClick: onLoginClick, leftIcon: React__default["default"].createElement(core$1.User, { color: "#595959", isSolid: true, size: 22 }), variant: "ghost", color: "#262626" }, t('navigation.loginJoin')))))));
|
|
1007
1017
|
};
|
|
1008
1018
|
|
|
1009
1019
|
var styles$3 = {"bookingButton":"spdlGfq","bookingButtonAnchor":"vgS16jX"};
|
|
1010
1020
|
|
|
1011
1021
|
const BookingButton = ({ onCareHeaderClick, currentUrl, careUrlFe, btnName, }) => {
|
|
1012
|
-
return onCareHeaderClick ? (React__default["default"].createElement(index$
|
|
1022
|
+
return onCareHeaderClick ? (React__default["default"].createElement(index$5.Button, { className: styles$3.bookingButton, size: "md", color: "primary", dataEventCategory: "Care", dataEventAction: "Navigation Bar Click", dataEventLabel: currentUrl, onClick: (e) => onCareHeaderClick(e), style: {
|
|
1013
1023
|
paddingLeft: 10,
|
|
1014
1024
|
paddingRight: 10,
|
|
1015
1025
|
} }, btnName)) : (React__default["default"].createElement("a", { href: careUrlFe, className: `${styles$3.bookingButtonAnchor} care-button no-replace-click` },
|
|
1016
|
-
React__default["default"].createElement(index$
|
|
1026
|
+
React__default["default"].createElement(index$5.Button, { className: styles$3.bookingButton, size: "md", color: "primary", dataEventCategory: "Care", dataEventAction: "Navigation Bar Click", dataEventLabel: currentUrl }, btnName)));
|
|
1017
1027
|
};
|
|
1018
1028
|
|
|
1019
1029
|
var styles$2 = {"menuContainer":"y5VJdvw","menuIcon":"oVhOSCy","menuIconWrapper":"pX8OXTM"};
|
|
@@ -1025,18 +1035,18 @@ const useNavConfig = ({ locale, projectType, siteType, enableBookingBtn, }) => {
|
|
|
1025
1035
|
(projectType === 'profile' && siteType === 'marryBaby');
|
|
1026
1036
|
const enableNavCare = siteType !== 'marryBaby' &&
|
|
1027
1037
|
projectType !== 'marryBaby' &&
|
|
1028
|
-
index$
|
|
1038
|
+
index$3.CARE_LOCALES.includes(locale);
|
|
1029
1039
|
const enableNavCareBooking = enableBookingBtn &&
|
|
1030
1040
|
projectType !== 'marryBaby' &&
|
|
1031
1041
|
projectType === 'discover' &&
|
|
1032
1042
|
siteType !== 'marryBaby' &&
|
|
1033
|
-
index$
|
|
1034
|
-
const enableNavTogether = projectType === 'marryBaby' || index$
|
|
1043
|
+
index$3.CARE_BOOKING_LOCALES.includes(locale);
|
|
1044
|
+
const enableNavTogether = projectType === 'marryBaby' || index$3.TOGETHER_LOCALES.includes(locale);
|
|
1035
1045
|
const enableNavDiscover = true;
|
|
1036
1046
|
const enableNavHealthTools = true;
|
|
1037
1047
|
const enableProfileMySaved = true;
|
|
1038
|
-
const enableNavEcom = siteType !== 'marryBaby' && index$
|
|
1039
|
-
const enableProfileEcom = siteType !== 'marryBaby' && index$
|
|
1048
|
+
const enableNavEcom = siteType !== 'marryBaby' && index$3.ECOM_LOCALES.includes(locale);
|
|
1049
|
+
const enableProfileEcom = siteType !== 'marryBaby' && index$3.ECOM_LOCALES.includes(locale);
|
|
1040
1050
|
const enableProfileMyHealth = true;
|
|
1041
1051
|
const baseUrl = routing.getCurrentBaseUrl(locale, siteType === 'marryBaby');
|
|
1042
1052
|
let fixBaseUrl = baseUrl;
|
|
@@ -1081,7 +1091,7 @@ const NavigationProvider = (_a) => {
|
|
|
1081
1091
|
return (props.currentUrl ||
|
|
1082
1092
|
`https://${props.siteType === 'marryBaby'
|
|
1083
1093
|
? utils$1.domainLocalesMarryBaby[props.locale || 'en-PH']
|
|
1084
|
-
: index$
|
|
1094
|
+
: index$3.domainLocales[props.locale || 'en-PH']}${props.projectType === 'together'
|
|
1085
1095
|
? '/community'
|
|
1086
1096
|
: props.projectType === 'ecom'
|
|
1087
1097
|
? '/ecom'
|
|
@@ -1194,8 +1204,8 @@ const SearchInput = ({ id }) => {
|
|
|
1194
1204
|
return (React__default["default"].createElement(index$2.Input, { className: "fake-search-input", name: 'search-input-menu-service' + id, size: "md", placeholder: siteType === 'marryBaby'
|
|
1195
1205
|
? t('navigation.search.input.placeholder')
|
|
1196
1206
|
: t('home.search', {
|
|
1197
|
-
site: index$
|
|
1198
|
-
? index$
|
|
1207
|
+
site: index$3.LOCALE_SPECS[locale || 'en-PH']
|
|
1208
|
+
? index$3.LOCALE_SPECS[locale || 'en-PH'].SITE_NAME
|
|
1199
1209
|
: '',
|
|
1200
1210
|
}), onChange: () => undefined, onKeyDown: (e) => e.key === 'Enter' &&
|
|
1201
1211
|
(window.location.href = `${statics.HOME_PAGE_URL}/search/?s=${e.target.value}`), type: "search", onFocus: (e) => {
|
|
@@ -1323,30 +1333,21 @@ const StyledViewMore$1 = styled__default["default"].a `
|
|
|
1323
1333
|
}
|
|
1324
1334
|
`;
|
|
1325
1335
|
|
|
1326
|
-
var styles$1 = {"menuIconWrapper":"wnUb-dV","menuButton":"cjbOxWe","
|
|
1336
|
+
var styles$1 = {"menuIconWrapper":"wnUb-dV","menuButton":"cjbOxWe","itemNavButton":"-sx0jrx","scale":"EDlp5Zf"};
|
|
1327
1337
|
|
|
1328
|
-
const CareIcon = () => {
|
|
1329
|
-
return (React__default["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
1330
|
-
React__default["default"].createElement("path", { d: "M13.475 21.5q-2.5 0-4.25-1.75t-1.75-4.25v-.55q-2.025-.25-3.387-1.8T2.725 9.5V4.65a.87.87 0 0 1 .262-.638.87.87 0 0 1 .638-.262h2.1V3.5a.73.73 0 0 1 .75-.75q.325 0 .538.212a.73.73 0 0 1 .212.538v2a.73.73 0 0 1-.75.75.726.726 0 0 1-.75-.75v-.25h-1.5V9.5q0 1.65 1.175 2.825T8.225 13.5t2.825-1.175T12.225 9.5V5.25h-1.5v.25a.73.73 0 0 1-.75.75.726.726 0 0 1-.75-.75v-2a.73.73 0 0 1 .75-.75q.325 0 .538.212a.73.73 0 0 1 .212.538v.25h2.1a.87.87 0 0 1 .638.262.87.87 0 0 1 .262.638V9.5q0 2.1-1.362 3.65t-3.388 1.8v.55q0 1.875 1.313 3.188Q11.6 20 13.475 20t3.188-1.312q1.312-1.313 1.312-3.188v-1.625a2.6 2.6 0 0 1-1.287-.913 2.4 2.4 0 0 1-.513-1.512q0-1.075.75-1.825t1.8-.75q1.075 0 1.825.75t.75 1.825q0 .85-.512 1.512-.513.663-1.313.913V15.5q0 2.5-1.75 4.25t-4.25 1.75", fill: "#2D87F3", strokeWidth: 0 })));
|
|
1331
|
-
};
|
|
1332
1338
|
const ItemMenu = ({ item, menu }) => {
|
|
1333
|
-
const { containerRef,
|
|
1339
|
+
const { containerRef, onButtonMouseDown, onClose } = useCSSFocusPopupHelper({
|
|
1334
1340
|
allowBgScroll: true,
|
|
1335
1341
|
});
|
|
1336
1342
|
const isInit = useIsInit.useIsInit();
|
|
1337
1343
|
if (!item.popupType && item.link) {
|
|
1338
1344
|
return (React__default["default"].createElement(NewWrapper, { isNew: item.isNew },
|
|
1339
|
-
React__default["default"].createElement("a", { className: `hhgcomp-navigation-itemnav-headeritem ${!isInit ? `menu-handler-${item.id}` : ''}
|
|
1340
|
-
React__default["default"].createElement("div", { "data-event-category": "Hamburger Navigation", "data-event-action": "Click", "data-event-label": item.link, className: styles$1.menuButton },
|
|
1341
|
-
item.id === 'care' && (React__default["default"].createElement("div", { className: styles$1.careIconContainer },
|
|
1342
|
-
React__default["default"].createElement(CareIcon, null))),
|
|
1343
|
-
item.name))));
|
|
1345
|
+
React__default["default"].createElement("a", { className: `hhgcomp-navigation-itemnav-headeritem ${!isInit ? `menu-handler-${item.id}` : ''}`, tabIndex: 0, href: item.link, "data-event-category": "Hamburger Navigation", "data-event-action": "Click", "data-event-label": item.link },
|
|
1346
|
+
React__default["default"].createElement("div", { "data-event-category": "Hamburger Navigation", "data-event-action": "Click", "data-event-label": item.link, className: styles$1.menuButton }, item.name))));
|
|
1344
1347
|
}
|
|
1345
1348
|
return (React__default["default"].createElement(NewWrapper, { isNew: item.isNew },
|
|
1346
|
-
React__default["default"].createElement("div", { ref: containerRef, className: `hhgcomp-navigation-itemnav-headeritem ${!isInit ? `menu-handler-${item.id}` : ''}
|
|
1349
|
+
React__default["default"].createElement("div", { ref: containerRef, className: `hhgcomp-navigation-itemnav-headeritem ${!isInit ? `menu-handler-${item.id}` : ''}`, tabIndex: 0, key: item.id, "data-event-category": "Hamburger Navigation", "data-event-action": "Click", "data-event-label": item.link },
|
|
1347
1350
|
React__default["default"].createElement("div", { "data-event-category": "Hamburger Navigation", "data-event-action": "Click", "data-event-label": item.link, onMouseDown: onButtonMouseDown, className: styles$1.menuButton },
|
|
1348
|
-
item.id === 'care' && (React__default["default"].createElement("a", { className: styles$1.careIconContainer, href: normalizeLink.normalizeLinkSlash(item.link + '/') },
|
|
1349
|
-
React__default["default"].createElement(CareIcon, null))),
|
|
1350
1351
|
item.name,
|
|
1351
1352
|
item.popupType && (React__default["default"].createElement("div", { className: styles$1.menuIconWrapper },
|
|
1352
1353
|
React__default["default"].createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
|
|
@@ -1360,7 +1361,7 @@ const ItemMenu = ({ item, menu }) => {
|
|
|
1360
1361
|
const NewWrapper = ({ isNew, children, }) => {
|
|
1361
1362
|
const { t } = useTranslations.useTranslations();
|
|
1362
1363
|
if (isNew) {
|
|
1363
|
-
return (React__default["default"].createElement(index$
|
|
1364
|
+
return (React__default["default"].createElement(index$6.Indicator, { color: "green", label: t('home.navigator.menuItem.new'), size: 20, styles: {
|
|
1364
1365
|
root: {
|
|
1365
1366
|
paddingRight: 10,
|
|
1366
1367
|
},
|
|
@@ -1373,7 +1374,7 @@ const Categories = ({ hrefViewMore, titleBtnViewMore, UrlFE, onClosePopup, menuI
|
|
|
1373
1374
|
const { siteType } = React.useContext(NavigationContext);
|
|
1374
1375
|
return (React__default["default"].createElement(StyledItemGridLeft, null,
|
|
1375
1376
|
React__default["default"].createElement(StyledHeading$1, null,
|
|
1376
|
-
React__default["default"].createElement(index$
|
|
1377
|
+
React__default["default"].createElement(index$7.Heading, { tag: siteType === 'marryBaby' ? 'h5' : 'h6', as: "p", fontWeight: "semibold" }, headingTitle)), menuItems === null || menuItems === void 0 ? void 0 :
|
|
1377
1378
|
menuItems.slice(0, 6).map((item, index) => {
|
|
1378
1379
|
const href = (item === null || item === void 0 ? void 0 : item.link)
|
|
1379
1380
|
? (item === null || item === void 0 ? void 0 : item.link.startsWith('http'))
|
|
@@ -1671,7 +1672,7 @@ const SpotlightNoData = ({ title, link, description, cta, icon }) => {
|
|
|
1671
1672
|
description && React__default["default"].createElement(StyledDescription, null, description),
|
|
1672
1673
|
cta && (React__default["default"].createElement("div", null,
|
|
1673
1674
|
React__default["default"].createElement("a", { href: link },
|
|
1674
|
-
React__default["default"].createElement(index$
|
|
1675
|
+
React__default["default"].createElement(index$5.Button, { theme: siteType, className: "survey-contact-submit", size: "md" }, cta)))))));
|
|
1675
1676
|
};
|
|
1676
1677
|
|
|
1677
1678
|
const StyledItemGridRight = styled__default["default"].div `
|
|
@@ -1718,7 +1719,7 @@ const Spotlights = ({ title, viewMore, children, link, dataEventAction = '', })
|
|
|
1718
1719
|
const { siteType } = React.useContext(NavigationContext);
|
|
1719
1720
|
return (React__default["default"].createElement(StyledItemGridRight, null,
|
|
1720
1721
|
React__default["default"].createElement(StyledHeading, null,
|
|
1721
|
-
React__default["default"].createElement(index$
|
|
1722
|
+
React__default["default"].createElement(index$7.Heading, { tag: siteType === 'marryBaby' ? 'h5' : 'h6', as: "p", fontWeight: "semibold" }, title),
|
|
1722
1723
|
viewMore && (React__default["default"].createElement(StyledViewMore, { "data-event-category": "Hamburger Navigation", "data-event-action": dataEventAction, "data-event-label": link, href: link, "data-theme": siteType },
|
|
1723
1724
|
viewMore,
|
|
1724
1725
|
React__default["default"].createElement("img", { src: siteType === 'marryBaby'
|
|
@@ -1738,7 +1739,7 @@ const CareSpotlights = ({ spotlights = [], hrefViewMore }) => {
|
|
|
1738
1739
|
right: '1rem',
|
|
1739
1740
|
} },
|
|
1740
1741
|
React__default["default"].createElement("a", { href: hrefViewMore },
|
|
1741
|
-
React__default["default"].createElement(index$
|
|
1742
|
+
React__default["default"].createElement(index$5.Button, { theme: siteType, className: "survey-contact-submit", size: "md" }, t('home.navigator.menu.care.homeButton')))))) : (React__default["default"].createElement(SpotlightNoData, { title: t('home.navigator.menu.care.noDatas.title'), description: t('home.navigator.menu.care.noDatas.description'), link: hrefViewMore, cta: t('home.navigator.menu.care.homeButton'), icon: index$1.CommonGAssets.getAssetPath('community.svg') }))));
|
|
1742
1743
|
};
|
|
1743
1744
|
|
|
1744
1745
|
const StyledContainerItems$3 = styled__default["default"].div `
|
|
@@ -1950,7 +1951,7 @@ const Item$2 = ({ post, index = 0 }) => {
|
|
|
1950
1951
|
return (React__default["default"].createElement(StyledItem$3, { href: postUrl, "data-event-category": "Hamburger Navigation", "data-event-action": `Together Click ${index + 1}`, "data-event-label": postUrl },
|
|
1951
1952
|
React__default["default"].createElement(StyledContent$1, null,
|
|
1952
1953
|
React__default["default"].createElement(StyledInfoUser, null,
|
|
1953
|
-
React__default["default"].createElement(index$
|
|
1954
|
+
React__default["default"].createElement(index$4.UserAvatar, { avatar: (_b = post.author) === null || _b === void 0 ? void 0 : _b.avatar, username: ((_c = post.author) === null || _c === void 0 ? void 0 : _c.name) || ((_d = post.author) === null || _d === void 0 ? void 0 : _d.username) }),
|
|
1954
1955
|
React__default["default"].createElement(StyledWrapInfo, null,
|
|
1955
1956
|
React__default["default"].createElement(StyledName, { "data-theme": siteType }, (_e = post.author) === null || _e === void 0 ? void 0 : _e.name),
|
|
1956
1957
|
React__default["default"].createElement(StyledInfo, null,
|
|
@@ -2422,7 +2423,7 @@ const MenuServiceList = ({ closePopup, menuItems = [] }) => {
|
|
|
2422
2423
|
React__default["default"].createElement(StyledWrapper, null,
|
|
2423
2424
|
React__default["default"].createElement(Categories, { UrlFE: statics.HOME_PAGE_URL, titleBtnViewMore: t('home.navigator.menuItem.allCategories'), menuItems: menuItems, headingTitle: t('home.navigator.menuItem.healthCategories'), onClosePopup: closePopup, activeItem: activeMenuService }),
|
|
2424
2425
|
activeMenuService === 'categories' && (React__default["default"].createElement(CategorySpotlights, { spotlightsList: (categories === null || categories === void 0 ? void 0 : categories.spotlights) || [], hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}/spotlight/` })),
|
|
2425
|
-
activeMenuService === 'tools' && (React__default["default"].createElement(ToolSpotlights, { spotlightHealthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.spotlights, hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$
|
|
2426
|
+
activeMenuService === 'tools' && (React__default["default"].createElement(ToolSpotlights, { spotlightHealthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.spotlights, hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$3.STATIC_PAGES[locale]) === null || _a === void 0 ? void 0 : _a.HEALTH_TOOLS) || ''}` })),
|
|
2426
2427
|
activeMenuService === 'care' && (React__default["default"].createElement(CareSpotlights, { spotlights: care === null || care === void 0 ? void 0 : care.spotlights, hrefViewMore: `${statics.CARE_URL_FE}/${(_b = constants$1.LOCALIZED_SLUGS[locale]) === null || _b === void 0 ? void 0 : _b.SPECIALTIES}` })),
|
|
2427
2428
|
activeMenuService === 'together' && (React__default["default"].createElement(CommunitySpotlights, { spotlights: together === null || together === void 0 ? void 0 : together.spotlights })),
|
|
2428
2429
|
activeMenuService === 'ecom' && (React__default["default"].createElement(EcomSpotlights, { helpfulUrls: ecom === null || ecom === void 0 ? void 0 : ecom.helpfulUrls })))));
|
|
@@ -2755,7 +2756,7 @@ const getTogetherUserPostsApiPath = (locale, isMarryBaby, apiDomain, params) =>
|
|
|
2755
2756
|
'api/v1/' +
|
|
2756
2757
|
formatString__default["default"](TOGETHER_PATHS.GET_USER_POSTS, Object.assign(Object.assign({}, params), { websiteUrl: isMarryBaby
|
|
2757
2758
|
? 'https://marrybaby.vn'
|
|
2758
|
-
: `https://${index$
|
|
2759
|
+
: `https://${index$3.domainLocales[locale]}` })));
|
|
2759
2760
|
};
|
|
2760
2761
|
const getCareSearchUrl = ({ type, specialtySlug, locale, }) => {
|
|
2761
2762
|
var _a, _b;
|
|
@@ -2800,10 +2801,10 @@ const BtnClosePopup = ({ onClosePopup }) => {
|
|
|
2800
2801
|
|
|
2801
2802
|
const PopupWrapper = ({ onClosePopup, isDisplay, children, isNavMenu, hideCloseBtn, }) => {
|
|
2802
2803
|
return (React__default["default"].createElement("div", { className: "hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools", "data-is-display": !!isDisplay, "data-is-nav-menu": !!isNavMenu },
|
|
2803
|
-
React__default["default"].createElement(index$
|
|
2804
|
+
React__default["default"].createElement(index$8.Container, null,
|
|
2804
2805
|
!hideCloseBtn && (React__default["default"].createElement("div", { className: styles.container },
|
|
2805
2806
|
React__default["default"].createElement(BtnClosePopup, { onClosePopup: onClosePopup }))),
|
|
2806
|
-
React__default["default"].createElement(index$
|
|
2807
|
+
React__default["default"].createElement(index$8.Container, { className: styles.gridContainer }, children))));
|
|
2807
2808
|
};
|
|
2808
2809
|
|
|
2809
2810
|
const MenuCareList = ({ careSpecialties = [], isOpen, onClose, spotlights = [], }) => {
|
|
@@ -2863,7 +2864,7 @@ const MenuHealthToolsList = ({ locale, onClose, isOpen, spotlightHealthTools = [
|
|
|
2863
2864
|
var _a;
|
|
2864
2865
|
const { t } = useTranslations.useTranslations();
|
|
2865
2866
|
const { configs: { statics }, } = React.useContext(NavigationContext);
|
|
2866
|
-
const hrefViewMore = `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$
|
|
2867
|
+
const hrefViewMore = `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$3.STATIC_PAGES[locale]) === null || _a === void 0 ? void 0 : _a.HEALTH_TOOLS) || ''}`;
|
|
2867
2868
|
return (React__default["default"].createElement(PopupWrapper, { onClosePopup: onClose, isDisplay: isOpen, isNavMenu: true },
|
|
2868
2869
|
React__default["default"].createElement(Categories, { hrefViewMore: hrefViewMore, UrlFE: statics.HOME_PAGE_URL, onClosePopup: onClose, headingTitle: t('home.navigator.menuItem.healthToolsList'), titleBtnViewMore: t('home.navigator.menuItem.allHealthTools'), menuItems: healthTools.map((t) => ({
|
|
2869
2870
|
name: t.title,
|
|
@@ -2877,6 +2878,69 @@ const MenuHealthToolsList = ({ locale, onClose, isOpen, spotlightHealthTools = [
|
|
|
2877
2878
|
React__default["default"].createElement(ToolSpotlights, { spotlightHealthTools: spotlightHealthTools, hrefViewMore: hrefViewMore })));
|
|
2878
2879
|
};
|
|
2879
2880
|
|
|
2881
|
+
const ItemNavButton = ({ item, color = 'blue' }) => {
|
|
2882
|
+
const [Lottie, setLottie] = React.useState();
|
|
2883
|
+
const [iconJson, setIconJson] = React.useState();
|
|
2884
|
+
const { locale, ssrMenuContent: { categories, healthTools, care, together }, } = React.useContext(NavigationContext);
|
|
2885
|
+
const { containerRef, onButtonMouseDown, onClose } = useCSSFocusPopupHelper({
|
|
2886
|
+
allowBgScroll: true,
|
|
2887
|
+
});
|
|
2888
|
+
React.useEffect(() => {
|
|
2889
|
+
setTimeout(() => {
|
|
2890
|
+
if (item.id === 'care' || item.id === 'ecom') {
|
|
2891
|
+
Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-lottie')); }).then((lottie) => {
|
|
2892
|
+
setLottie(() => lottie.default);
|
|
2893
|
+
});
|
|
2894
|
+
}
|
|
2895
|
+
if (item.id === 'care') {
|
|
2896
|
+
Promise.resolve().then(function () { return require('./doctor-339f9942.js'); }).then((data) => {
|
|
2897
|
+
if (data === null || data === void 0 ? void 0 : data.default)
|
|
2898
|
+
setIconJson(() => data.default);
|
|
2899
|
+
});
|
|
2900
|
+
}
|
|
2901
|
+
else if (item.id === 'ecom') {
|
|
2902
|
+
Promise.resolve().then(function () { return require('./cart-f02db1b2.js'); }).then((data) => {
|
|
2903
|
+
if (data === null || data === void 0 ? void 0 : data.default)
|
|
2904
|
+
setIconJson(() => data.default);
|
|
2905
|
+
});
|
|
2906
|
+
}
|
|
2907
|
+
}, 500);
|
|
2908
|
+
}, [item.id]);
|
|
2909
|
+
const hasIcon = item.id === 'care' || item.id === 'ecom';
|
|
2910
|
+
const linkOnly = !item.popupType && !!item.link;
|
|
2911
|
+
const Tag = linkOnly ? 'a' : 'div';
|
|
2912
|
+
const buttonStyle = color === 'gray'
|
|
2913
|
+
? {
|
|
2914
|
+
border: '1px solid #E4E8EC',
|
|
2915
|
+
background: '#F7F9FC',
|
|
2916
|
+
}
|
|
2917
|
+
: {
|
|
2918
|
+
border: '1px solid #BCDEFF',
|
|
2919
|
+
background: '#E3F2FF',
|
|
2920
|
+
};
|
|
2921
|
+
return (React__default["default"].createElement(Tag, { tabIndex: 0, href: item.link, "data-event-category": "Hamburger Navigation", "data-event-action": "Click", "data-event-label": item.link, className: styles$1.itemNavButton, ref: containerRef, onMouseDown: onButtonMouseDown },
|
|
2922
|
+
React__default["default"].createElement(index$2.Button, { variant: "light", leftIcon: Lottie && iconJson ? (linkOnly ? (React__default["default"].createElement(Lottie, { options: {
|
|
2923
|
+
loop: true,
|
|
2924
|
+
autoplay: true,
|
|
2925
|
+
animationData: iconJson,
|
|
2926
|
+
}, height: 28, width: 28 })) : (React__default["default"].createElement("a", { href: normalizeLink.normalizeLinkSlash(item.link + '/') },
|
|
2927
|
+
React__default["default"].createElement(Lottie, { options: {
|
|
2928
|
+
loop: true,
|
|
2929
|
+
autoplay: true,
|
|
2930
|
+
animationData: iconJson,
|
|
2931
|
+
}, height: 28, width: 28 })))) : hasIcon ? (React__default["default"].createElement("div", { style: {
|
|
2932
|
+
width: 28,
|
|
2933
|
+
height: 28,
|
|
2934
|
+
} })) : null, styles: {
|
|
2935
|
+
leftIcon: {
|
|
2936
|
+
marginRight: 4,
|
|
2937
|
+
},
|
|
2938
|
+
}, style: Object.assign(Object.assign({}, buttonStyle), { padding: '6px 8px 6px 8px', color: '#262626', height: 'unset' }), size: "sm", rightIcon: item.popupType ? (React__default["default"].createElement("div", { className: styles$1.menuIconWrapper },
|
|
2939
|
+
React__default["default"].createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
|
|
2940
|
+
React__default["default"].createElement("path", { d: "M11.5 7.5L9 10L6.5 7.5", stroke: "#202135", strokeWidth: "1.33", strokeLinecap: "round", strokeLinejoin: "round" })))) : (React__default["default"].createElement("div", null)) }, item.name),
|
|
2941
|
+
item.popupType === 'categories' ? (React__default["default"].createElement(MenuCategoriesList, { categories: categories === null || categories === void 0 ? void 0 : categories.items, spotlightsList: categories === null || categories === void 0 ? void 0 : categories.spotlights, onClose: onClose })) : item.popupType === 'tools' ? (React__default["default"].createElement(MenuHealthToolsList, { locale: locale, healthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.items, spotlightHealthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.spotlights, onClose: onClose })) : item.popupType === 'together' ? (React__default["default"].createElement(MenuCommunitiesList, { communities: together === null || together === void 0 ? void 0 : together.items, spotlights: together === null || together === void 0 ? void 0 : together.spotlights, onClose: onClose })) : item.popupType === 'care' ? (React__default["default"].createElement(MenuCareList, { careSpecialties: care === null || care === void 0 ? void 0 : care.items, spotlights: care === null || care === void 0 ? void 0 : care.spotlights, onClose: onClose })) : null));
|
|
2942
|
+
};
|
|
2943
|
+
|
|
2880
2944
|
const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent, }) => {
|
|
2881
2945
|
var _a;
|
|
2882
2946
|
const { siteType, isMobile = false, locale, sitewideBanner, sitewideBannerShown = true, sponsorComponent, onBookingClick, currentUrl, onLoginClick, cartNumber,
|
|
@@ -2904,7 +2968,7 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2904
2968
|
: currentLocation;
|
|
2905
2969
|
};
|
|
2906
2970
|
const logoType = siteType === 'helloSites'
|
|
2907
|
-
? (_a = index$
|
|
2971
|
+
? (_a = index$3.LOCALE_SPECS[locale]) === null || _a === void 0 ? void 0 : _a.LOGO_TYPE
|
|
2908
2972
|
: siteType;
|
|
2909
2973
|
const isBrowser = typeof window !== 'undefined';
|
|
2910
2974
|
const scrolling = React.useCallback(throttle__default["default"](() => {
|
|
@@ -2941,6 +3005,8 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2941
3005
|
scrolling();
|
|
2942
3006
|
}, [isMobile]);
|
|
2943
3007
|
const isShowingSiteWideBanner = sitewideBannerShown && !!sitewideBanner;
|
|
3008
|
+
const ecomNavItem = menuItems.find((m) => m.id === 'ecom');
|
|
3009
|
+
const careNavItem = menuItems.find((m) => m.id === 'care');
|
|
2944
3010
|
return (React__default["default"].createElement(StyledHeaderWrapper, { "data-site-type": siteType, "data-sponsored": isSponsored, "data-sitewide-banner-shown": isShowingSiteWideBanner, "data-header-type": "home", "data-collapsed": isCollapsed, "data-is-displayed": true, id: "site-header", ref: headerRef },
|
|
2945
3011
|
sitewideBanner,
|
|
2946
3012
|
React__default["default"].createElement(StyledHeader, { "data-site-type": siteType },
|
|
@@ -2950,18 +3016,28 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2950
3016
|
flexShrink: 0,
|
|
2951
3017
|
}, href: HOME_PAGE_URL },
|
|
2952
3018
|
React__default["default"].createElement("div", null,
|
|
2953
|
-
React__default["default"].createElement(index$
|
|
3019
|
+
React__default["default"].createElement(index$9.Logo, { style: {
|
|
2954
3020
|
display: 'flex',
|
|
2955
3021
|
}, type: logoType, badge: locale === 'id-ID' && (React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('sehat-badge.png'), width: "56", height: "23", loading: "lazy" })), dateForSeasonal: new Date(), locale: locale, key: typeof window !== 'undefined' ? 'client' : 'server' })))),
|
|
2956
3022
|
!isMobile && (React__default["default"].createElement(React__default["default"].Fragment, null, siteType === 'marryBaby' ? (React__default["default"].createElement(NavigationMenu, { menuItems: menuItems })) : (enableSearchBar && React__default["default"].createElement(NavigtionSearch, { siteType: siteType }))))),
|
|
2957
3023
|
React__default["default"].createElement(StyledRightGroup, { "data-site-type": siteType },
|
|
2958
|
-
!isMobile && (React__default["default"].createElement(React__default["default"].Fragment, null, siteType === 'marryBaby' ? (enableSearchBar && React__default["default"].createElement(NavigtionSearch, { siteType: siteType })) : (React__default["default"].createElement(NavigationMenu, { menuItems: menuItems })))),
|
|
3024
|
+
!isMobile && (React__default["default"].createElement(React__default["default"].Fragment, null, siteType === 'marryBaby' ? (enableSearchBar && React__default["default"].createElement(NavigtionSearch, { siteType: siteType })) : (React__default["default"].createElement(NavigationMenu, { menuItems: menuItems.filter((m) => m.id !== 'ecom' && m.id !== 'care') })))),
|
|
2959
3025
|
React__default["default"].createElement(StyledProfileNavGroup, null,
|
|
2960
|
-
React__default["default"].createElement(
|
|
2961
|
-
|
|
2962
|
-
React__default["default"].createElement(
|
|
3026
|
+
!isMobile && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
3027
|
+
ecomNavItem ? React__default["default"].createElement(ItemNavButton, { item: ecomNavItem }) : null,
|
|
3028
|
+
careNavItem ? (React__default["default"].createElement(ItemNavButton, { item: careNavItem, color: "gray" })) : null,
|
|
3029
|
+
enableNavCareBooking && (React__default["default"].createElement(DisplayWrapper, { mediaQueryKey: "mbUp" },
|
|
3030
|
+
React__default["default"].createElement(BookingButton, { careUrlFe: statics.CARE_URL_FE, currentUrl: currentUrl, btnName: t('login.booking'), onCareHeaderClick: onBookingClick }))))),
|
|
2963
3031
|
languageMenu,
|
|
2964
|
-
React__default["default"].createElement(NavigationProfileButton, { userInfo: userInfo, siteType: siteType, onLoginClick: onLoginClick || goToLogin, SSO_URL: normalizeLink.normalizeLink(statics.SSO_URL), currentUrl: currentUrl, onLogout: onLogout, isLoading: isUserLoading, locale: locale })
|
|
3032
|
+
React__default["default"].createElement(NavigationProfileButton, { userInfo: userInfo, siteType: siteType, onLoginClick: onLoginClick || goToLogin, SSO_URL: normalizeLink.normalizeLink(statics.SSO_URL), currentUrl: currentUrl, onLogout: onLogout, isLoading: isUserLoading, locale: locale }),
|
|
3033
|
+
cartNumber !== undefined && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
3034
|
+
!isMobile && (React__default["default"].createElement("hr", { style: {
|
|
3035
|
+
height: 20,
|
|
3036
|
+
width: 0,
|
|
3037
|
+
border: 'none',
|
|
3038
|
+
borderLeft: '1px solid #E4E8EC',
|
|
3039
|
+
} })),
|
|
3040
|
+
React__default["default"].createElement(CartBadge, { "data-cart-menu": "true", "data-event-category": "Ecommerce", "data-event-action": "Cart Click", "data-event-label": currentUrl, count: cartNumber, locale: locale })))))),
|
|
2965
3041
|
sponsorComponent
|
|
2966
3042
|
? !React__default["default"].isValidElement(sponsorComponent)
|
|
2967
3043
|
? sponsorComponent
|
|
@@ -3098,7 +3174,7 @@ const useNavServices = () => {
|
|
|
3098
3174
|
_services.push({
|
|
3099
3175
|
name: t('home.navigator.menuItem.healthTools'),
|
|
3100
3176
|
id: 'tools',
|
|
3101
|
-
link: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$
|
|
3177
|
+
link: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$3.STATIC_PAGES[locale]) === null || _a === void 0 ? void 0 : _a.HEALTH_TOOLS) || ''}`,
|
|
3102
3178
|
thumbnail: isMarryBaby
|
|
3103
3179
|
? index$1.CommonGAssets.getAssetPath('healthtools-mb.svg')
|
|
3104
3180
|
: index$1.CommonGAssets.getAssetPath('nav-icons/health-tools.svg'),
|
|
@@ -3214,26 +3290,26 @@ const getNavMenuContent = (locale) => tslib_es6.__awaiter(void 0, void 0, void 0
|
|
|
3214
3290
|
};
|
|
3215
3291
|
}
|
|
3216
3292
|
catch (_z) { }
|
|
3217
|
-
if (isMarryBaby || index$
|
|
3293
|
+
if (isMarryBaby || index$3.TOGETHER_LOCALES.includes(locale)) {
|
|
3218
3294
|
try {
|
|
3219
3295
|
const [communities, spotlightPosts] = yield Promise.all([
|
|
3220
|
-
fetch(normalizeLink.normalizeLinkSlash(`${routing.getTogetherApiDomain()}/api/v1/community?website_url=https://${index$
|
|
3221
|
-
fetch(normalizeLink.normalizeLinkSlash(`${routing.getTogetherApiDomain()}/api/v1/options?website_url=https://${index$
|
|
3296
|
+
fetch(normalizeLink.normalizeLinkSlash(`${routing.getTogetherApiDomain()}/api/v1/community?website_url=https://${index$3.domainLocales[locale]}`)).then((res) => res.json()),
|
|
3297
|
+
fetch(normalizeLink.normalizeLinkSlash(`${routing.getTogetherApiDomain()}/api/v1/options?website_url=https://${index$3.domainLocales[locale]}&meta_key=popular_post`)).then((res) => res.json()),
|
|
3222
3298
|
]);
|
|
3223
3299
|
res.together = {
|
|
3224
|
-
items: ((_o = (_m = (_l = communities === null || communities === void 0 ? void 0 : communities.data) === null || _l === void 0 ? void 0 : _l.communities) === null || _m === void 0 ? void 0 : _m.map) === null || _o === void 0 ? void 0 : _o.call(_m, index$
|
|
3225
|
-
spotlights: ((_r = (_q = (_p = spotlightPosts === null || spotlightPosts === void 0 ? void 0 : spotlightPosts.data) === null || _p === void 0 ? void 0 : _p.posts) === null || _q === void 0 ? void 0 : _q.map) === null || _r === void 0 ? void 0 : _r.call(_q, index$
|
|
3300
|
+
items: ((_o = (_m = (_l = communities === null || communities === void 0 ? void 0 : communities.data) === null || _l === void 0 ? void 0 : _l.communities) === null || _m === void 0 ? void 0 : _m.map) === null || _o === void 0 ? void 0 : _o.call(_m, index$4.formatCommunity)) || [],
|
|
3301
|
+
spotlights: ((_r = (_q = (_p = spotlightPosts === null || spotlightPosts === void 0 ? void 0 : spotlightPosts.data) === null || _p === void 0 ? void 0 : _p.posts) === null || _q === void 0 ? void 0 : _q.map) === null || _r === void 0 ? void 0 : _r.call(_q, index$4.formatPost)) || [],
|
|
3226
3302
|
};
|
|
3227
3303
|
}
|
|
3228
3304
|
catch (_0) { }
|
|
3229
3305
|
}
|
|
3230
|
-
if (index$
|
|
3306
|
+
if (index$3.CARE_LOCALES.includes(locale)) {
|
|
3231
3307
|
try {
|
|
3232
3308
|
const [specialties, hospitals] = yield Promise.all([
|
|
3233
3309
|
fetch(normalizeLink.normalizeLinkSlash(routing.getCareApiDomain() +
|
|
3234
|
-
`/api/options/setting_menu?site=${index$
|
|
3310
|
+
`/api/options/setting_menu?site=${index$3.domainLocales[locale]}&type=0`)).then((res) => res.json()),
|
|
3235
3311
|
fetch(normalizeLink.normalizeLinkSlash(routing.getCareApiDomain() +
|
|
3236
|
-
`/api/options/setting_menu?site=${index$
|
|
3312
|
+
`/api/options/setting_menu?site=${index$3.domainLocales[locale]}&type=1`)).then((res) => res.json()),
|
|
3237
3313
|
]);
|
|
3238
3314
|
res.care = {
|
|
3239
3315
|
items: ((_v = (_u = (_t = (_s = specialties === null || specialties === void 0 ? void 0 : specialties._data) === null || _s === void 0 ? void 0 : _s.setting_menu) === null || _t === void 0 ? void 0 : _t.menu_specialty) === null || _u === void 0 ? void 0 : _u.map) === null || _v === void 0 ? void 0 : _v.call(_u, formatSpecialties)) || [],
|