@hhgtech/hhg-components 1.28.85 → 1.28.88
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-2be9e033.js +5670 -0
- package/build/components/navigationV2/components/atoms/ItemNav/itemNavButton.d.ts +7 -0
- package/build/components.js +55 -55
- package/build/{constants-354f3445.js → constants-982c9f97.js} +2 -2
- package/build/{constants-ec18e5ef.js → constants-c0c992a1.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-8259c6fb.js → core-e467f112.js} +2 -2
- package/build/{dataTransform-7b028aa6.js → dataTransform-82c42255.js} +1 -1
- package/build/doctor-82e8d4bb.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-4e16be64.js +5656 -0
- package/build/esm/components/navigationV2/components/atoms/ItemNav/itemNavButton.d.ts +7 -0
- package/build/esm/components.js +55 -55
- package/build/esm/{constants-b961deb0.js → constants-ace36647.js} +2 -2
- package/build/esm/{constants-cdd4b297.js → constants-f8292adf.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-95daf848.js → core-fcc03613.js} +2 -2
- package/build/esm/{dataTransform-f027a7f5.js → dataTransform-e247d58a.js} +1 -1
- package/build/esm/doctor-36544c6d.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-f8cd8cd5.js → getDynamicHealthTool-15d4af5f.js} +4 -4
- package/build/esm/{getSocialList-111c058e.js → getSocialList-27b8d078.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-fb872e68.js → index-00a959b6.js} +9 -9
- package/build/esm/{index-ede14ff4.js → index-0cfe5ad8.js} +2 -2
- package/build/esm/{index-b2034f97.js → index-154315cf.js} +1 -1
- package/build/esm/{index-3da4c0be.js → index-1e45ef69.js} +126 -63
- package/build/esm/{index-bdf7ea19.js → index-2cd60fdb.js} +3 -3
- package/build/esm/{index-42c23102.js → index-36ead557.js} +3 -3
- package/build/esm/{index-f71b88a3.js → index-4e4492a4.js} +39 -39
- package/build/esm/{index-3c8a8e70.js → index-4ee121ec.js} +4 -4
- package/build/esm/{index-c1b23132.js → index-67bca076.js} +2 -2
- package/build/esm/{index-dca87fd8.js → index-6cecc32b.js} +4 -4
- package/build/esm/{index-ee280d25.js → index-70e7643b.js} +10 -10
- package/build/esm/{index-2903d915.js → index-7f27b71b.js} +9 -9
- package/build/esm/{index-3988b178.js → index-81b7c806.js} +13 -13
- package/build/esm/{index-8fc5b06d.js → index-8e849679.js} +2 -2
- package/build/esm/{index-27da7413.js → index-8ec93e41.js} +9 -9
- package/build/esm/{index-9a38769b.js → index-8f425ae1.js} +1 -1
- package/build/esm/{index-b8009514.js → index-994b7807.js} +4 -4
- package/build/esm/{index-61cad327.js → index-a2ba5e1d.js} +2 -2
- package/build/esm/{index-11d1ee46.js → index-b7131d9b.js} +2 -2
- package/build/esm/{index-2bfb68d7.js → index-bbec24f8.js} +2 -2
- package/build/esm/{index-a8721ad7.js → index-df73ec67.js} +2 -2
- package/build/esm/{index-399b2485.js → index-e9b3f95e.js} +9 -9
- package/build/esm/{index-d7f89bb3.js → index-eafca608.js} +5 -5
- package/build/esm/{index-72b60b60.js → index-f3e5931a.js} +6 -6
- package/build/esm/{index-05c03de9.js → index-fed310aa.js} +2 -2
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +63 -63
- package/build/esm/{index.styled-4b29ede2.js → index.styled-614f8f71.js} +2 -2
- package/build/esm/{index.styles-f9c08c4a.js → index.styles-b360f30e.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-6fa19fce.js → routing-980f9b3e.js} +2 -2
- package/build/esm/subot.js +20 -20
- package/build/esm/together.js +33 -33
- package/build/esm/{types-ab16bb54.js → types-517143a7.js} +13 -13
- package/build/esm/{types-039a0585.js → types-e3446077.js} +29 -29
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-7786a9bc.js → useCategory-891705ef.js} +5 -5
- package/build/esm/{useHealthToolCache-b1deb3ce.js → useHealthToolCache-077fd1b3.js} +2 -2
- package/build/esm/{usePlacesAutocomplete-362aa1e5.js → usePlacesAutocomplete-99c1017f.js} +1 -1
- package/build/esm/{useTranslations-9833e7b4.js → useTranslations-9d582421.js} +1 -1
- package/build/esm/{utils-5fa47bda.js → utils-639f46ce.js} +4 -4
- package/build/esm/{utils-eba8a92c.js → utils-6c17caa4.js} +5 -5
- package/build/esm/{utils-ed45495a.js → utils-caf0c6da.js} +1 -1
- package/build/esm/vaccination.js +24 -24
- package/build/footer.js +19 -19
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-60500fa4.js → getDynamicHealthTool-6d26882b.js} +4 -4
- package/build/{getSocialList-9b9bea2d.js → getSocialList-a90f2b83.js} +2 -2
- package/build/hooks.js +17 -17
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-4a7070c6.js → index-073ea571.js} +2 -2
- package/build/{index-07a48b2d.js → index-0cedd0bc.js} +1 -1
- package/build/{index-c783b92f.js → index-2a5c0dbc.js} +13 -13
- package/build/{index-859e0b6b.js → index-2ac803d3.js} +3 -3
- package/build/{index-c65afd71.js → index-2fea8199.js} +5 -5
- package/build/{index-9847f7f0.js → index-30484291.js} +2 -2
- package/build/{index-83dadc26.js → index-3537e9b0.js} +1 -1
- package/build/{index-14270f3f.js → index-3afec009.js} +2 -2
- package/build/{index-75c5a4ba.js → index-4c767c13.js} +2 -2
- package/build/{index-6cf230ed.js → index-535bb8c6.js} +2 -2
- package/build/{index-f0fc1db2.js → index-650a05bf.js} +3 -3
- package/build/{index-74beced6.js → index-6fc8f283.js} +39 -39
- package/build/{index-ea419ffd.js → index-84b66738.js} +9 -9
- package/build/{index-43f420e7.js → index-a9cfe218.js} +9 -9
- package/build/{index-b0509c6e.js → index-b0180033.js} +10 -10
- package/build/{index-8a1ba3cb.js → index-bbe2b413.js} +2 -2
- package/build/{index-31f88f9b.js → index-c1e43e76.js} +2 -2
- package/build/{index-b71255d5.js → index-c4aee0d2.js} +4 -4
- package/build/{index-43d557bf.js → index-c56debb8.js} +2 -2
- package/build/{index-cae50e26.js → index-e90b3160.js} +4 -4
- package/build/{index-47512461.js → index-ee14b24e.js} +6 -6
- package/build/{index-2f61895d.js → index-ef9d9cc8.js} +4 -4
- package/build/{index-2e442b90.js → index-f3858524.js} +183 -102
- package/build/{index-874a9cc3.js → index-fa6869d4.js} +9 -9
- package/build/{index-0d87a129.js → index-ff8fd10d.js} +9 -9
- package/build/index.css +1 -1
- package/build/index.js +63 -63
- package/build/{index.styled-c425bacb.js → index.styled-63d3ed57.js} +2 -2
- package/build/{index.styles-6ba02ac5.js → index.styles-e2996e8a.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-ef2d19da.js → routing-25ae61f3.js} +2 -2
- package/build/subot.js +20 -20
- package/build/together.js +33 -33
- package/build/{types-1e7f8ecc.js → types-542f5ddf.js} +29 -29
- package/build/{types-814346d7.js → types-ef53d458.js} +13 -13
- package/build/types.js +1 -1
- package/build/{useCategory-3e22aa19.js → useCategory-ba79bf28.js} +5 -5
- package/build/{useHealthToolCache-740185d9.js → useHealthToolCache-f4ca9c5b.js} +2 -2
- package/build/{usePlacesAutocomplete-e296093c.js → usePlacesAutocomplete-65a32177.js} +1 -1
- package/build/{useTranslations-16dd866b.js → useTranslations-0d0f2471.js} +1 -1
- package/build/{utils-7cb9cc27.js → utils-1928fc80.js} +1 -1
- package/build/{utils-5637168d.js → utils-1e306d40.js} +5 -5
- package/build/{utils-03daf893.js → utils-7acaf02d.js} +4 -4
- package/build/vaccination.js +24 -24
- package/package.json +3 -2
- /package/build/{BMI_BOYS.percentile.monthly-cb3c5d1e.js → BMI_BOYS.percentile.monthly-640ddc1a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-c406df86.js → BMI_BOYS.percentile.weekly-782d5d9d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-bafcb421.js → BMI_BOYS.percentile.yearly-c5f9fcc9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-bae95b2a.js → BMI_BOYS.zscore.monthly-a5b5e8fa.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-e9935e55.js → BMI_BOYS.zscore.weekly-dfcdfaf7.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-0a82ff34.js → BMI_BOYS.zscore.yearly-3662e6cb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-3e662427.js → BMI_GIRLS.percentile.monthly-130edd93.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-4f75a32b.js → BMI_GIRLS.percentile.weekly-7d776235.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-cbb0064e.js → BMI_GIRLS.percentile.yearly-85af96aa.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-23bf8340.js → BMI_GIRLS.zscore.monthly-bc62f4dd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-3bf30f13.js → BMI_GIRLS.zscore.weekly-bbce0d26.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-d8e4fcf2.js → BMI_GIRLS.zscore.yearly-29aa1105.js} +0 -0
- /package/build/{ChevronDown-1d2306f2.js → ChevronDown-fb255087.js} +0 -0
- /package/build/{Close-497fe568.js → Close-65581ec9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-edc186d0.js → HEAD CIRCUM_BOYS.percentile.monthly-41b33aa2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-461767e3.js → HEAD CIRCUM_BOYS.percentile.weekly-e593a73e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7a7c2a17.js → HEAD CIRCUM_BOYS.percentile.yearly-15678ada.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-c29fc8bf.js → HEAD CIRCUM_BOYS.zscore.monthly-27464427.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-8382d53b.js → HEAD CIRCUM_BOYS.zscore.weekly-2e16d184.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-bb326160.js → HEAD CIRCUM_BOYS.zscore.yearly-b4ab3335.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-e53f7fbe.js → HEAD CIRCUM_GIRLS.percentile.monthly-b7a4662a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b2e1dbf8.js → HEAD CIRCUM_GIRLS.percentile.weekly-b54803fa.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-7163139a.js → HEAD CIRCUM_GIRLS.percentile.yearly-f108b09a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-c72f5fb5.js → HEAD CIRCUM_GIRLS.zscore.monthly-5b8ff0a4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-3fec4f60.js → HEAD CIRCUM_GIRLS.zscore.weekly-e9cf63c7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-946bef65.js → HEAD CIRCUM_GIRLS.zscore.yearly-27575ebe.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-40bb59eb.js → HEIGHT_BOYS.percentile.monthly-72bb5b2b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-be995d55.js → HEIGHT_BOYS.percentile.weekly-1a0aeac3.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-3df1c268.js → HEIGHT_BOYS.percentile.yearly-5681b9bf.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-914cae4b.js → HEIGHT_BOYS.zscore.monthly-a83a59d0.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-0fc116fe.js → HEIGHT_BOYS.zscore.weekly-c990fd3a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-a3f1e247.js → HEIGHT_BOYS.zscore.yearly-9cb25c70.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-0c211310.js → HEIGHT_GIRLS.percentile.monthly-2f478e8d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-56f6f210.js → HEIGHT_GIRLS.percentile.weekly-7ff80c82.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-f67f1d13.js → HEIGHT_GIRLS.percentile.yearly-e5ed8763.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-c9a108dd.js → HEIGHT_GIRLS.zscore.monthly-37246240.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-582c8d33.js → HEIGHT_GIRLS.zscore.weekly-29158492.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-c825d370.js → HEIGHT_GIRLS.zscore.yearly-c93cd448.js} +0 -0
- /package/build/{Subot-5d83f7f2.js → Subot-5014ec81.js} +0 -0
- /package/build/{Visible-6c370e39.js → Visible-cbb7c133.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-8b7f0496.js → WEIGHT_BOYS.percentile.monthly-c8fa9c6a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-ca87c6e4.js → WEIGHT_BOYS.percentile.weekly-4d5332b8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-4302cbe5.js → WEIGHT_BOYS.percentile.yearly-64464e93.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-66057ab1.js → WEIGHT_BOYS.zscore.monthly-7af9249e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-6d0a4744.js → WEIGHT_BOYS.zscore.weekly-57be01ad.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-a45ddd06.js → WEIGHT_BOYS.zscore.yearly-96ad98e3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-e48d899d.js → WEIGHT_GIRLS.percentile.monthly-eea5a838.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-d511aaa1.js → WEIGHT_GIRLS.percentile.weekly-69ad0b0c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-c2159332.js → WEIGHT_GIRLS.percentile.yearly-1d910823.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-35c9827d.js → WEIGHT_GIRLS.zscore.monthly-43b90adc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-a49ff761.js → WEIGHT_GIRLS.zscore.weekly-26cceaed.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-6d4d680c.js → WEIGHT_GIRLS.zscore.yearly-d212565b.js} +0 -0
- /package/build/{animation-5f3b4fe8.js → animation-30eea7ba.js} +0 -0
- /package/build/{cookieHelper-301e994c.js → cookieHelper-cdf3f982.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-d5b54f18.js → BMI_BOYS.percentile.monthly-509f768e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b5e2526c.js → BMI_BOYS.percentile.weekly-8d83c21a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-1f337789.js → BMI_BOYS.percentile.yearly-130b688b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-42f62455.js → BMI_BOYS.zscore.monthly-ce8c9fc1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-9248bca9.js → BMI_BOYS.zscore.weekly-d439202b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-5278db5a.js → BMI_BOYS.zscore.yearly-49ca6b6a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-ab620527.js → BMI_GIRLS.percentile.monthly-b8758e1e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-5b5dd473.js → BMI_GIRLS.percentile.weekly-6b8ed3b7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-2e4ff211.js → BMI_GIRLS.percentile.yearly-24da6ebc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-b1e39236.js → BMI_GIRLS.zscore.monthly-23de8dbb.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-30283385.js → BMI_GIRLS.zscore.weekly-71350bbf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-3265d89b.js → BMI_GIRLS.zscore.yearly-0e484730.js} +0 -0
- /package/build/esm/{ChevronDown-33f2fa35.js → ChevronDown-7bf58929.js} +0 -0
- /package/build/esm/{Close-6c564025.js → Close-33b31189.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-598de05b.js → HEAD CIRCUM_BOYS.percentile.monthly-a6378c1c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-a809d16b.js → HEAD CIRCUM_BOYS.percentile.weekly-4290cedf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f38fe6e2.js → HEAD CIRCUM_BOYS.percentile.yearly-22e4f6c8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-bd916aa7.js → HEAD CIRCUM_BOYS.zscore.monthly-a5f0c90c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cd0699ce.js → HEAD CIRCUM_BOYS.zscore.weekly-444b0ca4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-4c9d5352.js → HEAD CIRCUM_BOYS.zscore.yearly-eaa82c64.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-fc5e1376.js → HEAD CIRCUM_GIRLS.percentile.monthly-dd6ebe38.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-83d3f0ab.js → HEAD CIRCUM_GIRLS.percentile.weekly-819741a4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-129c5081.js → HEAD CIRCUM_GIRLS.percentile.yearly-051cc000.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-faff89aa.js → HEAD CIRCUM_GIRLS.zscore.monthly-216f83fb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-2a8b22d1.js → HEAD CIRCUM_GIRLS.zscore.weekly-7c37cc85.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-dc3d11be.js → HEAD CIRCUM_GIRLS.zscore.yearly-2795a996.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ae20bf25.js → HEIGHT_BOYS.percentile.monthly-75589a2c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-3118bd06.js → HEIGHT_BOYS.percentile.weekly-19c98fc7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6ab93b19.js → HEIGHT_BOYS.percentile.yearly-35edc697.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a6d31854.js → HEIGHT_BOYS.zscore.monthly-c7ace7fa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-bcfaf0ef.js → HEIGHT_BOYS.zscore.weekly-d530440d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-e85f5c41.js → HEIGHT_BOYS.zscore.yearly-1a8d7a12.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-4a0286a9.js → HEIGHT_GIRLS.percentile.monthly-fe51be5c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5a297dee.js → HEIGHT_GIRLS.percentile.weekly-f0e3dfbf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-459a85d6.js → HEIGHT_GIRLS.percentile.yearly-7ee4ef10.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-7be5cfa6.js → HEIGHT_GIRLS.zscore.monthly-feea90ee.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-5dc912d0.js → HEIGHT_GIRLS.zscore.weekly-a797e49e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-8187521d.js → HEIGHT_GIRLS.zscore.yearly-bd9fa66e.js} +0 -0
- /package/build/esm/{Subot-feea4506.js → Subot-c8f98a6e.js} +0 -0
- /package/build/esm/{Visible-83cc6f9a.js → Visible-f9f6c3e6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-d80578b5.js → WEIGHT_BOYS.percentile.monthly-786b81e0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-8b0ba15f.js → WEIGHT_BOYS.percentile.weekly-2b3687ff.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-3cb7959a.js → WEIGHT_BOYS.percentile.yearly-6e7caaff.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-fd1f2929.js → WEIGHT_BOYS.zscore.monthly-afe6f59b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-34cb9052.js → WEIGHT_BOYS.zscore.weekly-59a37d0a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-c1d1f764.js → WEIGHT_BOYS.zscore.yearly-0ffbea22.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-4ad714ab.js → WEIGHT_GIRLS.percentile.monthly-7f5ed68d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-796038c3.js → WEIGHT_GIRLS.percentile.weekly-8dfd7caf.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-e37f9085.js → WEIGHT_GIRLS.percentile.yearly-7b60da2c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-4a4772b7.js → WEIGHT_GIRLS.zscore.monthly-bed0b367.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-0b7008b5.js → WEIGHT_GIRLS.zscore.weekly-c686288c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-09e6b37a.js → WEIGHT_GIRLS.zscore.yearly-a7048af3.js} +0 -0
- /package/build/esm/{animation-0b77b84e.js → animation-3c69c660.js} +0 -0
- /package/build/esm/{cookieHelper-5326c8e9.js → cookieHelper-5fb925e3.js} +0 -0
- /package/build/esm/{index-3373b23b.js → index-a8d628e8.js} +0 -0
- /package/build/esm/{index-c3556405.js → index-e2948218.js} +0 -0
- /package/build/esm/{index-9d979f77.js → index-f2dfb9b6.js} +0 -0
- /package/build/esm/{isProduction-319a7450.js → isProduction-c1739fd0.js} +0 -0
- /package/build/esm/{localizeNumberFormat-e6b78e50.js → localizeNumberFormat-84e86545.js} +0 -0
- /package/build/esm/{normalizeLink-73f75219.js → normalizeLink-df2d727f.js} +0 -0
- /package/build/esm/{number-b62e5284.js → number-bc062891.js} +0 -0
- /package/build/esm/{paths-9e6df900.js → paths-c94a4e42.js} +0 -0
- /package/build/esm/{theme-a174b0a0.js → theme-2dd612bb.js} +0 -0
- /package/build/esm/{translationsContext-30c9b121.js → translationsContext-498df71c.js} +0 -0
- /package/build/esm/{tslib.es6-22c1d601.js → tslib.es6-06b67847.js} +0 -0
- /package/build/esm/{types-622c24ac.js → types-6aeb2710.js} +0 -0
- /package/build/esm/{useIsInit-da039681.js → useIsInit-d3ce501c.js} +0 -0
- /package/build/esm/{useOutsideClick-bb958dac.js → useOutsideClick-15719c69.js} +0 -0
- /package/build/esm/{useScrollbarSize-d6180af5.js → useScrollbarSize-af45157e.js} +0 -0
- /package/build/esm/{useUniqueId-87d90fb5.js → useUniqueId-56bf6387.js} +0 -0
- /package/build/esm/{utils-582732ef.js → utils-7cd0f51d.js} +0 -0
- /package/build/{index-6ff57b46.js → index-28586667.js} +0 -0
- /package/build/{index-a4b05e4a.js → index-48671b4b.js} +0 -0
- /package/build/{index-8e9ab242.js → index-68a3cf94.js} +0 -0
- /package/build/{isProduction-60647fae.js → isProduction-015cdfc6.js} +0 -0
- /package/build/{localizeNumberFormat-1de5a75c.js → localizeNumberFormat-02ecb46b.js} +0 -0
- /package/build/{normalizeLink-09c616e6.js → normalizeLink-a7164fa6.js} +0 -0
- /package/build/{number-74c71dcb.js → number-701fc413.js} +0 -0
- /package/build/{paths-f9b2d16b.js → paths-d03d1607.js} +0 -0
- /package/build/{theme-b4fa3b5e.js → theme-cb666ff9.js} +0 -0
- /package/build/{translationsContext-990ac2a2.js → translationsContext-3a8ed4d7.js} +0 -0
- /package/build/{tslib.es6-255e10ff.js → tslib.es6-2b72918f.js} +0 -0
- /package/build/{types-811de574.js → types-b943e9f1.js} +0 -0
- /package/build/{useIsInit-8198b00e.js → useIsInit-ffbbd3c3.js} +0 -0
- /package/build/{useOutsideClick-713e2953.js → useOutsideClick-08121b17.js} +0 -0
- /package/build/{useScrollbarSize-d3f07fb3.js → useScrollbarSize-77366956.js} +0 -0
- /package/build/{useUniqueId-67ab9a9f.js → useUniqueId-0060988c.js} +0 -0
- /package/build/{utils-c3d589de.js → utils-2b7966ce.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-2b72918f.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index$2 = require('./index-
|
|
5
|
+
var index$2 = require('./index-84b66738.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-cb666ff9.js');
|
|
8
|
+
var index = require('./index-3537e9b0.js');
|
|
9
|
+
var index$1 = require('./index-073ea571.js');
|
|
10
|
+
var index$3 = require('./index-30484291.js');
|
|
11
|
+
var normalizeLink = require('./normalizeLink-a7164fa6.js');
|
|
12
|
+
var routing = require('./routing-25ae61f3.js');
|
|
13
|
+
var index$4 = require('./index-ef9d9cc8.js');
|
|
14
|
+
var index$9 = require('./index-e90b3160.js');
|
|
15
|
+
var useTranslations = require('./useTranslations-0d0f2471.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-5014ec81.js');
|
|
20
|
+
require('./translationsContext-3a8ed4d7.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-859e0b6b.js');
|
|
23
|
+
var utils = require('./utils-2b7966ce.js');
|
|
24
|
+
var constants = require('./constants-982c9f97.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-e2996e8a.js');
|
|
27
|
+
var ChevronDown = require('./ChevronDown-fb255087.js');
|
|
28
|
+
var index$5 = require('./index-535bb8c6.js');
|
|
29
|
+
var utils$1 = require('./utils-1e306d40.js');
|
|
30
|
+
var constants$1 = require('./constants-c0c992a1.js');
|
|
31
|
+
var index$7 = require('./index-bbe2b413.js');
|
|
32
|
+
var index$6 = require('./index-c56debb8.js');
|
|
33
|
+
var useIsInit = require('./useIsInit-ffbbd3c3.js');
|
|
34
|
+
require('./utils-7acaf02d.js');
|
|
35
|
+
require('./index.styled-63d3ed57.js');
|
|
36
|
+
require('./index-28586667.js');
|
|
38
37
|
var dayjs = require('dayjs');
|
|
39
38
|
var relativeTime = require('dayjs/plugin/relativeTime');
|
|
40
|
-
var index$
|
|
39
|
+
var index$8 = require('./index-48671b4b.js');
|
|
41
40
|
var debounce = require('lodash/debounce');
|
|
42
|
-
var core$2 = require('./core-
|
|
41
|
+
var core$2 = require('./core-e467f112.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);
|
|
@@ -221,7 +238,8 @@ const CartBadge = (_a) => {
|
|
|
221
238
|
React__default["default"].createElement(core.Indicator, { classNames: {
|
|
222
239
|
root: classes.indicatorRoot,
|
|
223
240
|
}, 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) },
|
|
224
|
-
React__default["default"].createElement(
|
|
241
|
+
React__default["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
242
|
+
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
243
|
};
|
|
226
244
|
|
|
227
245
|
const StyledDisplayWrapper = styled__default["default"].div `
|
|
@@ -293,12 +311,9 @@ const _StyledPopup = styled__default["default"].div `
|
|
|
293
311
|
z-index: 111;
|
|
294
312
|
height: 100%;
|
|
295
313
|
border: 1px solid #0000001a;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
border-top-right-radius: 0;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
314
|
+
border-radius: 16px;
|
|
315
|
+
border-top-left-radius: 0;
|
|
316
|
+
border-top-right-radius: 0;
|
|
302
317
|
}
|
|
303
318
|
|
|
304
319
|
/* min-height: 415px; */
|
|
@@ -347,8 +362,8 @@ const _StyledPopupWrapper = styled__default["default"].div `
|
|
|
347
362
|
const StyledPopupWrapperClass = 'hhgcomp-navprofilebutton-popupwrapper';
|
|
348
363
|
index_styles.getDefaultClassWrapper(_StyledPopupWrapper, StyledPopupWrapperClass);
|
|
349
364
|
const StyledAvatar = styled__default["default"].div `
|
|
350
|
-
width:
|
|
351
|
-
height:
|
|
365
|
+
width: 36px;
|
|
366
|
+
height: 36px;
|
|
352
367
|
cursor: pointer;
|
|
353
368
|
|
|
354
369
|
img {
|
|
@@ -356,8 +371,8 @@ const StyledAvatar = styled__default["default"].div `
|
|
|
356
371
|
}
|
|
357
372
|
|
|
358
373
|
.avatar {
|
|
359
|
-
width:
|
|
360
|
-
height:
|
|
374
|
+
width: 36px;
|
|
375
|
+
height: 36px;
|
|
361
376
|
object-fit: cover;
|
|
362
377
|
}
|
|
363
378
|
|
|
@@ -375,8 +390,8 @@ const StyledAvatar = styled__default["default"].div `
|
|
|
375
390
|
const StyledImageWrapper$1 = styled__default["default"].div `
|
|
376
391
|
display: inline-flex;
|
|
377
392
|
position: relative;
|
|
378
|
-
width:
|
|
379
|
-
height:
|
|
393
|
+
width: 36px;
|
|
394
|
+
height: 36px;
|
|
380
395
|
display: flex;
|
|
381
396
|
align-items: center;
|
|
382
397
|
justify-content: center;
|
|
@@ -657,7 +672,7 @@ const ProfileNavigation = ({ className, activeItem: forceActiveItem, navMenuItem
|
|
|
657
672
|
key: 'userProfile.nav.card.myBooking',
|
|
658
673
|
icon: React__default["default"].createElement(NavBookingIcon, { width: "24", height: "24" }),
|
|
659
674
|
value: 'booking',
|
|
660
|
-
disabled: !index$
|
|
675
|
+
disabled: !index$3.CARE_LOCALES.includes(locale),
|
|
661
676
|
tracking: {
|
|
662
677
|
action: 'Manage Booking Click',
|
|
663
678
|
},
|
|
@@ -667,21 +682,21 @@ const ProfileNavigation = ({ className, activeItem: forceActiveItem, navMenuItem
|
|
|
667
682
|
key: 'userProfile.nav.card.myCommunity',
|
|
668
683
|
icon: React__default["default"].createElement(NavCommunityIcon, { width: "24", height: "24" }),
|
|
669
684
|
value: 'myCommunities',
|
|
670
|
-
disabled: !index$
|
|
685
|
+
disabled: !index$3.TOGETHER_LOCALES.includes(locale),
|
|
671
686
|
tracking: {
|
|
672
687
|
action: 'Community Click',
|
|
673
688
|
},
|
|
674
689
|
link: `${SSO_URL}user/my-communities/`,
|
|
675
690
|
},
|
|
676
691
|
],
|
|
677
|
-
...(index$
|
|
692
|
+
...(index$3.ECOM_LOCALES.includes(locale)
|
|
678
693
|
? [
|
|
679
694
|
[
|
|
680
695
|
{
|
|
681
696
|
key: 'userProfile.nav.card.eCom',
|
|
682
697
|
icon: React__default["default"].createElement(NavEshopIcon, { width: "24", height: "24" }),
|
|
683
698
|
value: 'eCom',
|
|
684
|
-
disabled: !index$
|
|
699
|
+
disabled: !index$3.ECOM_LOCALES.includes(locale),
|
|
685
700
|
subMenu: [
|
|
686
701
|
{
|
|
687
702
|
key: 'userProfile.nav.card.ecom.manageOrders',
|
|
@@ -928,7 +943,7 @@ const NavigationLogoutPopup = ({ openLogoutPopup, onCloseHandler, onLogoutHandle
|
|
|
928
943
|
document.body.classList.toggle('noscroll', openLogoutPopup);
|
|
929
944
|
}, [openLogoutPopup]);
|
|
930
945
|
return (React__default["default"].createElement(core.Portal, null,
|
|
931
|
-
React__default["default"].createElement(index$
|
|
946
|
+
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
947
|
React__default["default"].createElement(StyledPopup, null,
|
|
933
948
|
siteType === 'helloSites' && (React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('arrowDoor.svg'), className: "cancle-img", alt: "close-account", loading: "lazy" })),
|
|
934
949
|
React__default["default"].createElement("h2", null, t(siteType === 'helloSites'
|
|
@@ -936,8 +951,8 @@ const NavigationLogoutPopup = ({ openLogoutPopup, onCloseHandler, onLogoutHandle
|
|
|
936
951
|
: 'logout.popup.ask.mb')),
|
|
937
952
|
React__default["default"].createElement("p", null, t('logout.popup.ask2')),
|
|
938
953
|
React__default["default"].createElement(StyledButtonGroup, { siteType: siteType },
|
|
939
|
-
React__default["default"].createElement(index$
|
|
940
|
-
React__default["default"].createElement(index$
|
|
954
|
+
React__default["default"].createElement(index$5.Button, { className: "logout-button", color: "tertiary", size: "lg", onClick: onLogoutHandler }, t('logout.popup.button.logout')),
|
|
955
|
+
React__default["default"].createElement(index$5.Button, { className: "cancel-button", color: "primary", size: "lg", onClick: onCloseHandler }, t('logout.popup.button.cancel')))))));
|
|
941
956
|
};
|
|
942
957
|
|
|
943
958
|
const NavigationProfileButton = ({ userInfo, siteType, onLoginClick, SSO_URL, currentUrl, isMinifyLogin, onLogout, style, isLoading, locale, }) => {
|
|
@@ -966,7 +981,7 @@ const NavigationProfileButton = ({ userInfo, siteType, onLoginClick, SSO_URL, cu
|
|
|
966
981
|
React__default["default"].createElement("div", { onMouseDown: onButtonMouseDown },
|
|
967
982
|
React__default["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className: "user-close-icon" },
|
|
968
983
|
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:
|
|
984
|
+
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
985
|
? theme.theme.mbColors.pink
|
|
971
986
|
: theme.theme.colors.secondaryBase, placeholderText: name && name.length ? name[0].toUpperCase() : 'A' })),
|
|
972
987
|
React__default["default"].createElement(ProfilePopup, { dispatchLogout: () => {
|
|
@@ -1003,17 +1018,17 @@ const NavigationProfileButton = ({ userInfo, siteType, onLoginClick, SSO_URL, cu
|
|
|
1003
1018
|
paddingLeft: 16,
|
|
1004
1019
|
} },
|
|
1005
1020
|
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'))))));
|
|
1021
|
+
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
1022
|
};
|
|
1008
1023
|
|
|
1009
1024
|
var styles$3 = {"bookingButton":"spdlGfq","bookingButtonAnchor":"vgS16jX"};
|
|
1010
1025
|
|
|
1011
1026
|
const BookingButton = ({ onCareHeaderClick, currentUrl, careUrlFe, btnName, }) => {
|
|
1012
|
-
return onCareHeaderClick ? (React__default["default"].createElement(index$
|
|
1027
|
+
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
1028
|
paddingLeft: 10,
|
|
1014
1029
|
paddingRight: 10,
|
|
1015
1030
|
} }, btnName)) : (React__default["default"].createElement("a", { href: careUrlFe, className: `${styles$3.bookingButtonAnchor} care-button no-replace-click` },
|
|
1016
|
-
React__default["default"].createElement(index$
|
|
1031
|
+
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
1032
|
};
|
|
1018
1033
|
|
|
1019
1034
|
var styles$2 = {"menuContainer":"y5VJdvw","menuIcon":"oVhOSCy","menuIconWrapper":"pX8OXTM"};
|
|
@@ -1025,18 +1040,18 @@ const useNavConfig = ({ locale, projectType, siteType, enableBookingBtn, }) => {
|
|
|
1025
1040
|
(projectType === 'profile' && siteType === 'marryBaby');
|
|
1026
1041
|
const enableNavCare = siteType !== 'marryBaby' &&
|
|
1027
1042
|
projectType !== 'marryBaby' &&
|
|
1028
|
-
index$
|
|
1043
|
+
index$3.CARE_LOCALES.includes(locale);
|
|
1029
1044
|
const enableNavCareBooking = enableBookingBtn &&
|
|
1030
1045
|
projectType !== 'marryBaby' &&
|
|
1031
1046
|
projectType === 'discover' &&
|
|
1032
1047
|
siteType !== 'marryBaby' &&
|
|
1033
|
-
index$
|
|
1034
|
-
const enableNavTogether = projectType === 'marryBaby' || index$
|
|
1048
|
+
index$3.CARE_BOOKING_LOCALES.includes(locale);
|
|
1049
|
+
const enableNavTogether = projectType === 'marryBaby' || index$3.TOGETHER_LOCALES.includes(locale);
|
|
1035
1050
|
const enableNavDiscover = true;
|
|
1036
1051
|
const enableNavHealthTools = true;
|
|
1037
1052
|
const enableProfileMySaved = true;
|
|
1038
|
-
const enableNavEcom = siteType !== 'marryBaby' && index$
|
|
1039
|
-
const enableProfileEcom = siteType !== 'marryBaby' && index$
|
|
1053
|
+
const enableNavEcom = siteType !== 'marryBaby' && index$3.ECOM_LOCALES.includes(locale);
|
|
1054
|
+
const enableProfileEcom = siteType !== 'marryBaby' && index$3.ECOM_LOCALES.includes(locale);
|
|
1040
1055
|
const enableProfileMyHealth = true;
|
|
1041
1056
|
const baseUrl = routing.getCurrentBaseUrl(locale, siteType === 'marryBaby');
|
|
1042
1057
|
let fixBaseUrl = baseUrl;
|
|
@@ -1081,7 +1096,7 @@ const NavigationProvider = (_a) => {
|
|
|
1081
1096
|
return (props.currentUrl ||
|
|
1082
1097
|
`https://${props.siteType === 'marryBaby'
|
|
1083
1098
|
? utils$1.domainLocalesMarryBaby[props.locale || 'en-PH']
|
|
1084
|
-
: index$
|
|
1099
|
+
: index$3.domainLocales[props.locale || 'en-PH']}${props.projectType === 'together'
|
|
1085
1100
|
? '/community'
|
|
1086
1101
|
: props.projectType === 'ecom'
|
|
1087
1102
|
? '/ecom'
|
|
@@ -1194,8 +1209,8 @@ const SearchInput = ({ id }) => {
|
|
|
1194
1209
|
return (React__default["default"].createElement(index$2.Input, { className: "fake-search-input", name: 'search-input-menu-service' + id, size: "md", placeholder: siteType === 'marryBaby'
|
|
1195
1210
|
? t('navigation.search.input.placeholder')
|
|
1196
1211
|
: t('home.search', {
|
|
1197
|
-
site: index$
|
|
1198
|
-
? index$
|
|
1212
|
+
site: index$3.LOCALE_SPECS[locale || 'en-PH']
|
|
1213
|
+
? index$3.LOCALE_SPECS[locale || 'en-PH'].SITE_NAME
|
|
1199
1214
|
: '',
|
|
1200
1215
|
}), onChange: () => undefined, onKeyDown: (e) => e.key === 'Enter' &&
|
|
1201
1216
|
(window.location.href = `${statics.HOME_PAGE_URL}/search/?s=${e.target.value}`), type: "search", onFocus: (e) => {
|
|
@@ -1323,30 +1338,21 @@ const StyledViewMore$1 = styled__default["default"].a `
|
|
|
1323
1338
|
}
|
|
1324
1339
|
`;
|
|
1325
1340
|
|
|
1326
|
-
var styles$1 = {"menuIconWrapper":"wnUb-dV","menuButton":"cjbOxWe","
|
|
1341
|
+
var styles$1 = {"menuIconWrapper":"wnUb-dV","menuButton":"cjbOxWe","itemNavButton":"-sx0jrx","scale":"EDlp5Zf"};
|
|
1327
1342
|
|
|
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
1343
|
const ItemMenu = ({ item, menu }) => {
|
|
1333
|
-
const { containerRef,
|
|
1344
|
+
const { containerRef, onButtonMouseDown, onClose } = useCSSFocusPopupHelper({
|
|
1334
1345
|
allowBgScroll: true,
|
|
1335
1346
|
});
|
|
1336
1347
|
const isInit = useIsInit.useIsInit();
|
|
1337
1348
|
if (!item.popupType && item.link) {
|
|
1338
1349
|
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))));
|
|
1350
|
+
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 },
|
|
1351
|
+
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
1352
|
}
|
|
1345
1353
|
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}` : ''}
|
|
1354
|
+
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
1355
|
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
1356
|
item.name,
|
|
1351
1357
|
item.popupType && (React__default["default"].createElement("div", { className: styles$1.menuIconWrapper },
|
|
1352
1358
|
React__default["default"].createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
|
|
@@ -1360,7 +1366,7 @@ const ItemMenu = ({ item, menu }) => {
|
|
|
1360
1366
|
const NewWrapper = ({ isNew, children, }) => {
|
|
1361
1367
|
const { t } = useTranslations.useTranslations();
|
|
1362
1368
|
if (isNew) {
|
|
1363
|
-
return (React__default["default"].createElement(index$
|
|
1369
|
+
return (React__default["default"].createElement(index$6.Indicator, { color: "green", label: t('home.navigator.menuItem.new'), size: 20, styles: {
|
|
1364
1370
|
root: {
|
|
1365
1371
|
paddingRight: 10,
|
|
1366
1372
|
},
|
|
@@ -1373,7 +1379,7 @@ const Categories = ({ hrefViewMore, titleBtnViewMore, UrlFE, onClosePopup, menuI
|
|
|
1373
1379
|
const { siteType } = React.useContext(NavigationContext);
|
|
1374
1380
|
return (React__default["default"].createElement(StyledItemGridLeft, null,
|
|
1375
1381
|
React__default["default"].createElement(StyledHeading$1, null,
|
|
1376
|
-
React__default["default"].createElement(index$
|
|
1382
|
+
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
1383
|
menuItems.slice(0, 6).map((item, index) => {
|
|
1378
1384
|
const href = (item === null || item === void 0 ? void 0 : item.link)
|
|
1379
1385
|
? (item === null || item === void 0 ? void 0 : item.link.startsWith('http'))
|
|
@@ -1671,7 +1677,7 @@ const SpotlightNoData = ({ title, link, description, cta, icon }) => {
|
|
|
1671
1677
|
description && React__default["default"].createElement(StyledDescription, null, description),
|
|
1672
1678
|
cta && (React__default["default"].createElement("div", null,
|
|
1673
1679
|
React__default["default"].createElement("a", { href: link },
|
|
1674
|
-
React__default["default"].createElement(index$
|
|
1680
|
+
React__default["default"].createElement(index$5.Button, { theme: siteType, className: "survey-contact-submit", size: "md" }, cta)))))));
|
|
1675
1681
|
};
|
|
1676
1682
|
|
|
1677
1683
|
const StyledItemGridRight = styled__default["default"].div `
|
|
@@ -1718,7 +1724,7 @@ const Spotlights = ({ title, viewMore, children, link, dataEventAction = '', })
|
|
|
1718
1724
|
const { siteType } = React.useContext(NavigationContext);
|
|
1719
1725
|
return (React__default["default"].createElement(StyledItemGridRight, null,
|
|
1720
1726
|
React__default["default"].createElement(StyledHeading, null,
|
|
1721
|
-
React__default["default"].createElement(index$
|
|
1727
|
+
React__default["default"].createElement(index$7.Heading, { tag: siteType === 'marryBaby' ? 'h5' : 'h6', as: "p", fontWeight: "semibold" }, title),
|
|
1722
1728
|
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
1729
|
viewMore,
|
|
1724
1730
|
React__default["default"].createElement("img", { src: siteType === 'marryBaby'
|
|
@@ -1738,7 +1744,7 @@ const CareSpotlights = ({ spotlights = [], hrefViewMore }) => {
|
|
|
1738
1744
|
right: '1rem',
|
|
1739
1745
|
} },
|
|
1740
1746
|
React__default["default"].createElement("a", { href: hrefViewMore },
|
|
1741
|
-
React__default["default"].createElement(index$
|
|
1747
|
+
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
1748
|
};
|
|
1743
1749
|
|
|
1744
1750
|
const StyledContainerItems$3 = styled__default["default"].div `
|
|
@@ -1950,7 +1956,7 @@ const Item$2 = ({ post, index = 0 }) => {
|
|
|
1950
1956
|
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
1957
|
React__default["default"].createElement(StyledContent$1, null,
|
|
1952
1958
|
React__default["default"].createElement(StyledInfoUser, null,
|
|
1953
|
-
React__default["default"].createElement(index$
|
|
1959
|
+
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
1960
|
React__default["default"].createElement(StyledWrapInfo, null,
|
|
1955
1961
|
React__default["default"].createElement(StyledName, { "data-theme": siteType }, (_e = post.author) === null || _e === void 0 ? void 0 : _e.name),
|
|
1956
1962
|
React__default["default"].createElement(StyledInfo, null,
|
|
@@ -2422,7 +2428,7 @@ const MenuServiceList = ({ closePopup, menuItems = [] }) => {
|
|
|
2422
2428
|
React__default["default"].createElement(StyledWrapper, null,
|
|
2423
2429
|
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
2430
|
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$
|
|
2431
|
+
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
2432
|
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
2433
|
activeMenuService === 'together' && (React__default["default"].createElement(CommunitySpotlights, { spotlights: together === null || together === void 0 ? void 0 : together.spotlights })),
|
|
2428
2434
|
activeMenuService === 'ecom' && (React__default["default"].createElement(EcomSpotlights, { helpfulUrls: ecom === null || ecom === void 0 ? void 0 : ecom.helpfulUrls })))));
|
|
@@ -2755,7 +2761,7 @@ const getTogetherUserPostsApiPath = (locale, isMarryBaby, apiDomain, params) =>
|
|
|
2755
2761
|
'api/v1/' +
|
|
2756
2762
|
formatString__default["default"](TOGETHER_PATHS.GET_USER_POSTS, Object.assign(Object.assign({}, params), { websiteUrl: isMarryBaby
|
|
2757
2763
|
? 'https://marrybaby.vn'
|
|
2758
|
-
: `https://${index$
|
|
2764
|
+
: `https://${index$3.domainLocales[locale]}` })));
|
|
2759
2765
|
};
|
|
2760
2766
|
const getCareSearchUrl = ({ type, specialtySlug, locale, }) => {
|
|
2761
2767
|
var _a, _b;
|
|
@@ -2800,10 +2806,10 @@ const BtnClosePopup = ({ onClosePopup }) => {
|
|
|
2800
2806
|
|
|
2801
2807
|
const PopupWrapper = ({ onClosePopup, isDisplay, children, isNavMenu, hideCloseBtn, }) => {
|
|
2802
2808
|
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$
|
|
2809
|
+
React__default["default"].createElement(index$8.Container, null,
|
|
2804
2810
|
!hideCloseBtn && (React__default["default"].createElement("div", { className: styles.container },
|
|
2805
2811
|
React__default["default"].createElement(BtnClosePopup, { onClosePopup: onClosePopup }))),
|
|
2806
|
-
React__default["default"].createElement(index$
|
|
2812
|
+
React__default["default"].createElement(index$8.Container, { className: styles.gridContainer }, children))));
|
|
2807
2813
|
};
|
|
2808
2814
|
|
|
2809
2815
|
const MenuCareList = ({ careSpecialties = [], isOpen, onClose, spotlights = [], }) => {
|
|
@@ -2863,7 +2869,7 @@ const MenuHealthToolsList = ({ locale, onClose, isOpen, spotlightHealthTools = [
|
|
|
2863
2869
|
var _a;
|
|
2864
2870
|
const { t } = useTranslations.useTranslations();
|
|
2865
2871
|
const { configs: { statics }, } = React.useContext(NavigationContext);
|
|
2866
|
-
const hrefViewMore = `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$
|
|
2872
|
+
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
2873
|
return (React__default["default"].createElement(PopupWrapper, { onClosePopup: onClose, isDisplay: isOpen, isNavMenu: true },
|
|
2868
2874
|
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
2875
|
name: t.title,
|
|
@@ -2877,6 +2883,69 @@ const MenuHealthToolsList = ({ locale, onClose, isOpen, spotlightHealthTools = [
|
|
|
2877
2883
|
React__default["default"].createElement(ToolSpotlights, { spotlightHealthTools: spotlightHealthTools, hrefViewMore: hrefViewMore })));
|
|
2878
2884
|
};
|
|
2879
2885
|
|
|
2886
|
+
const ItemNavButton = ({ item, color = 'blue' }) => {
|
|
2887
|
+
const [Lottie, setLottie] = React.useState();
|
|
2888
|
+
const [iconJson, setIconJson] = React.useState();
|
|
2889
|
+
const { locale, ssrMenuContent: { categories, healthTools, care, together }, } = React.useContext(NavigationContext);
|
|
2890
|
+
const { containerRef, onButtonMouseDown, onClose } = useCSSFocusPopupHelper({
|
|
2891
|
+
allowBgScroll: true,
|
|
2892
|
+
});
|
|
2893
|
+
React.useEffect(() => {
|
|
2894
|
+
setTimeout(() => {
|
|
2895
|
+
if (item.id === 'care' || item.id === 'ecom') {
|
|
2896
|
+
Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-lottie')); }).then((lottie) => {
|
|
2897
|
+
setLottie(() => lottie.default);
|
|
2898
|
+
});
|
|
2899
|
+
}
|
|
2900
|
+
if (item.id === 'care') {
|
|
2901
|
+
Promise.resolve().then(function () { return require('./doctor-82e8d4bb.js'); }).then((data) => {
|
|
2902
|
+
if (data === null || data === void 0 ? void 0 : data.default)
|
|
2903
|
+
setIconJson(() => data.default);
|
|
2904
|
+
});
|
|
2905
|
+
}
|
|
2906
|
+
else if (item.id === 'ecom') {
|
|
2907
|
+
Promise.resolve().then(function () { return require('./cart-2be9e033.js'); }).then((data) => {
|
|
2908
|
+
if (data === null || data === void 0 ? void 0 : data.default)
|
|
2909
|
+
setIconJson(() => data.default);
|
|
2910
|
+
});
|
|
2911
|
+
}
|
|
2912
|
+
}, 500);
|
|
2913
|
+
}, [item.id]);
|
|
2914
|
+
const hasIcon = item.id === 'care' || item.id === 'ecom';
|
|
2915
|
+
const linkOnly = !item.popupType && !!item.link;
|
|
2916
|
+
const Tag = linkOnly ? 'a' : 'div';
|
|
2917
|
+
const buttonStyle = color === 'gray'
|
|
2918
|
+
? {
|
|
2919
|
+
border: '1px solid #E4E8EC',
|
|
2920
|
+
background: '#F7F9FC',
|
|
2921
|
+
}
|
|
2922
|
+
: {
|
|
2923
|
+
border: '1px solid #BCDEFF',
|
|
2924
|
+
background: '#E3F2FF',
|
|
2925
|
+
};
|
|
2926
|
+
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 },
|
|
2927
|
+
React__default["default"].createElement(index$2.Button, { variant: "light", leftIcon: Lottie && iconJson ? (linkOnly ? (React__default["default"].createElement(Lottie, { options: {
|
|
2928
|
+
loop: true,
|
|
2929
|
+
autoplay: true,
|
|
2930
|
+
animationData: iconJson,
|
|
2931
|
+
}, height: 28, width: 28 })) : (React__default["default"].createElement("a", { href: normalizeLink.normalizeLinkSlash(item.link + '/') },
|
|
2932
|
+
React__default["default"].createElement(Lottie, { options: {
|
|
2933
|
+
loop: true,
|
|
2934
|
+
autoplay: true,
|
|
2935
|
+
animationData: iconJson,
|
|
2936
|
+
}, height: 28, width: 28 })))) : hasIcon ? (React__default["default"].createElement("div", { style: {
|
|
2937
|
+
width: 28,
|
|
2938
|
+
height: 28,
|
|
2939
|
+
} })) : null, styles: {
|
|
2940
|
+
leftIcon: {
|
|
2941
|
+
marginRight: 4,
|
|
2942
|
+
},
|
|
2943
|
+
}, 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 },
|
|
2944
|
+
React__default["default"].createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
|
|
2945
|
+
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),
|
|
2946
|
+
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));
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2880
2949
|
const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent, }) => {
|
|
2881
2950
|
var _a;
|
|
2882
2951
|
const { siteType, isMobile = false, locale, sitewideBanner, sitewideBannerShown = true, sponsorComponent, onBookingClick, currentUrl, onLoginClick, cartNumber,
|
|
@@ -2904,7 +2973,7 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2904
2973
|
: currentLocation;
|
|
2905
2974
|
};
|
|
2906
2975
|
const logoType = siteType === 'helloSites'
|
|
2907
|
-
? (_a = index$
|
|
2976
|
+
? (_a = index$3.LOCALE_SPECS[locale]) === null || _a === void 0 ? void 0 : _a.LOGO_TYPE
|
|
2908
2977
|
: siteType;
|
|
2909
2978
|
const isBrowser = typeof window !== 'undefined';
|
|
2910
2979
|
const scrolling = React.useCallback(throttle__default["default"](() => {
|
|
@@ -2941,6 +3010,8 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2941
3010
|
scrolling();
|
|
2942
3011
|
}, [isMobile]);
|
|
2943
3012
|
const isShowingSiteWideBanner = sitewideBannerShown && !!sitewideBanner;
|
|
3013
|
+
const ecomNavItem = menuItems.find((m) => m.id === 'ecom');
|
|
3014
|
+
const careNavItem = menuItems.find((m) => m.id === 'care');
|
|
2944
3015
|
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
3016
|
sitewideBanner,
|
|
2946
3017
|
React__default["default"].createElement(StyledHeader, { "data-site-type": siteType },
|
|
@@ -2950,18 +3021,28 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2950
3021
|
flexShrink: 0,
|
|
2951
3022
|
}, href: HOME_PAGE_URL },
|
|
2952
3023
|
React__default["default"].createElement("div", null,
|
|
2953
|
-
React__default["default"].createElement(index$
|
|
3024
|
+
React__default["default"].createElement(index$9.Logo, { style: {
|
|
2954
3025
|
display: 'flex',
|
|
2955
3026
|
}, 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
3027
|
!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
3028
|
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 })))),
|
|
3029
|
+
!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
3030
|
React__default["default"].createElement(StyledProfileNavGroup, null,
|
|
2960
|
-
React__default["default"].createElement(
|
|
2961
|
-
|
|
2962
|
-
React__default["default"].createElement(
|
|
3031
|
+
!isMobile && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
3032
|
+
ecomNavItem ? React__default["default"].createElement(ItemNavButton, { item: ecomNavItem }) : null,
|
|
3033
|
+
careNavItem ? (React__default["default"].createElement(ItemNavButton, { item: careNavItem, color: "gray" })) : null,
|
|
3034
|
+
enableNavCareBooking && (React__default["default"].createElement(DisplayWrapper, { mediaQueryKey: "mbUp" },
|
|
3035
|
+
React__default["default"].createElement(BookingButton, { careUrlFe: statics.CARE_URL_FE, currentUrl: currentUrl, btnName: t('login.booking'), onCareHeaderClick: onBookingClick }))))),
|
|
2963
3036
|
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 })
|
|
3037
|
+
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 }),
|
|
3038
|
+
cartNumber !== undefined && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
3039
|
+
!isMobile && (React__default["default"].createElement("hr", { style: {
|
|
3040
|
+
height: 20,
|
|
3041
|
+
width: 0,
|
|
3042
|
+
border: 'none',
|
|
3043
|
+
borderLeft: '1px solid #E4E8EC',
|
|
3044
|
+
} })),
|
|
3045
|
+
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
3046
|
sponsorComponent
|
|
2966
3047
|
? !React__default["default"].isValidElement(sponsorComponent)
|
|
2967
3048
|
? sponsorComponent
|
|
@@ -3098,7 +3179,7 @@ const useNavServices = () => {
|
|
|
3098
3179
|
_services.push({
|
|
3099
3180
|
name: t('home.navigator.menuItem.healthTools'),
|
|
3100
3181
|
id: 'tools',
|
|
3101
|
-
link: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$
|
|
3182
|
+
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
3183
|
thumbnail: isMarryBaby
|
|
3103
3184
|
? index$1.CommonGAssets.getAssetPath('healthtools-mb.svg')
|
|
3104
3185
|
: index$1.CommonGAssets.getAssetPath('nav-icons/health-tools.svg'),
|
|
@@ -3214,26 +3295,26 @@ const getNavMenuContent = (locale) => tslib_es6.__awaiter(void 0, void 0, void 0
|
|
|
3214
3295
|
};
|
|
3215
3296
|
}
|
|
3216
3297
|
catch (_z) { }
|
|
3217
|
-
if (isMarryBaby || index$
|
|
3298
|
+
if (isMarryBaby || index$3.TOGETHER_LOCALES.includes(locale)) {
|
|
3218
3299
|
try {
|
|
3219
3300
|
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$
|
|
3301
|
+
fetch(normalizeLink.normalizeLinkSlash(`${routing.getTogetherApiDomain()}/api/v1/community?website_url=https://${index$3.domainLocales[locale]}`)).then((res) => res.json()),
|
|
3302
|
+
fetch(normalizeLink.normalizeLinkSlash(`${routing.getTogetherApiDomain()}/api/v1/options?website_url=https://${index$3.domainLocales[locale]}&meta_key=popular_post`)).then((res) => res.json()),
|
|
3222
3303
|
]);
|
|
3223
3304
|
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$
|
|
3305
|
+
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)) || [],
|
|
3306
|
+
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
3307
|
};
|
|
3227
3308
|
}
|
|
3228
3309
|
catch (_0) { }
|
|
3229
3310
|
}
|
|
3230
|
-
if (index$
|
|
3311
|
+
if (index$3.CARE_LOCALES.includes(locale)) {
|
|
3231
3312
|
try {
|
|
3232
3313
|
const [specialties, hospitals] = yield Promise.all([
|
|
3233
3314
|
fetch(normalizeLink.normalizeLinkSlash(routing.getCareApiDomain() +
|
|
3234
|
-
`/api/options/setting_menu?site=${index$
|
|
3315
|
+
`/api/options/setting_menu?site=${index$3.domainLocales[locale]}&type=0`)).then((res) => res.json()),
|
|
3235
3316
|
fetch(normalizeLink.normalizeLinkSlash(routing.getCareApiDomain() +
|
|
3236
|
-
`/api/options/setting_menu?site=${index$
|
|
3317
|
+
`/api/options/setting_menu?site=${index$3.domainLocales[locale]}&type=1`)).then((res) => res.json()),
|
|
3237
3318
|
]);
|
|
3238
3319
|
res.care = {
|
|
3239
3320
|
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)) || [],
|