@hhgtech/hhg-components 1.28.53 → 1.28.55
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/Plus-54948d91.js +1 -0
- package/build/WhatsApp-6d901f48.js +1 -0
- package/build/babyGrowth.js +24 -24
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/mantine/button/index.d.ts +1 -0
- package/build/components/mantine/button/index.styles.d.ts +1 -0
- package/build/components.js +1 -1
- package/build/{constants-7d133608.js → constants-152ef105.js} +1 -1
- package/build/{constants-fd5bf3b7.js → constants-a45e9439.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-0b06f761.js → core-335c2da3.js} +1 -1
- package/build/{dataTransform-588be4da.js → dataTransform-a5319404.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/Plus-74f52e6c.js +1 -0
- package/build/esm/WhatsApp-764b872d.js +1 -0
- package/build/esm/babyGrowth.js +16 -16
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/mantine/button/index.d.ts +1 -0
- package/build/esm/components/mantine/button/index.styles.d.ts +1 -0
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-0a031398.js → constants-0683dc31.js} +1 -1
- package/build/esm/{constants-9b92b3c2.js → constants-f4c472e4.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-c56845a5.js → core-93ac9e1f.js} +1 -1
- package/build/esm/{dataTransform-619c2846.js → dataTransform-756179c9.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-0d6da468.js +1 -0
- package/build/esm/{getSocialList-0578856d.js → getSocialList-68fa92f4.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-3d898caa.js → index-05e53bec.js} +1 -1
- package/build/esm/{index-789cb49a.js → index-198068d7.js} +5 -5
- package/build/esm/index-22ebe2d3.js +1 -0
- package/build/esm/index-2444997f.js +1 -0
- package/build/esm/{index-c1871567.js → index-2e200c36.js} +230 -230
- package/build/esm/{index-0fed6a98.js → index-3409f3ca.js} +1 -1
- package/build/esm/index-3d2abc54.js +1 -0
- package/build/esm/{index-69d014d8.js → index-4209d110.js} +1 -1
- package/build/esm/{index-f024488c.js → index-4d4fe4a9.js} +1 -1
- package/build/esm/index-516a950d.js +2748 -0
- package/build/esm/index-58970baf.js +1 -0
- package/build/esm/{index-0dd16ca7.js → index-737f6666.js} +1 -1
- package/build/esm/index-738bc059.js +1 -0
- package/build/esm/{index-cbd121a4.js → index-77800f03.js} +2 -2
- package/build/esm/index-77fd947f.js +1 -0
- package/build/esm/{index-7e673caa.js → index-816d81a1.js} +1 -1
- package/build/esm/{index-d3d480ec.js → index-8e0dc901.js} +6 -6
- package/build/esm/{index-e8b162fc.js → index-b2fd7f71.js} +1 -1
- package/build/esm/{index-36e0acd5.js → index-bd711d1d.js} +1 -1
- package/build/esm/index-d0efc6f7.js +1 -0
- package/build/esm/index-d9f09bce.js +113 -0
- package/build/esm/index-ea30bcd6.js +1 -0
- package/build/esm/index-f296970a.js +1 -0
- package/build/esm/{index-5bb8678e.js → index-fffa276c.js} +3 -3
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-c404ce64.js → index.styled-e7114743.js} +3 -3
- package/build/esm/{index.styles-60db99fe.js → index.styles-607132bf.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +34 -34
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-23cb4998.js → routing-9dc90ff7.js} +1 -1
- package/build/esm/subot.js +8 -8
- package/build/esm/together/components/organisms/cardReply/index.styled.d.ts +1 -1
- package/build/esm/together/components/organisms/sourceList/index.d.ts +2 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-fa2aa453.js → types-aa7b8d46.js} +99 -99
- package/build/esm/{types-bb2e616c.js → types-c4a3cc51.js} +199 -199
- package/build/esm/types.js +1 -1
- package/build/esm/useCategory-53558471.js +1 -0
- package/build/esm/useHealthToolCache-cfeb4f39.js +1 -0
- package/build/esm/{usePlacesAutocomplete-f9ebcd04.js → usePlacesAutocomplete-abfbd1a6.js} +1 -1
- package/build/esm/useTranslations-2bfc2d1a.js +1 -0
- package/build/esm/useUniqueId-9cd4ba87.js +1 -0
- package/build/esm/{utils-f15bf320.js → utils-230293e5.js} +1 -1
- package/build/esm/{utils-b9b2d4ee.js → utils-9cb13935.js} +1 -1
- package/build/esm/{utils-f9c12f09.js → utils-bb7cbdbf.js} +1 -1
- package/build/esm/vaccination.js +40 -40
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-f7738ae3.js +1 -0
- package/build/{getSocialList-cfb9a038.js → getSocialList-816e94c7.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-3e2d91fe.js → index-06c31aa5.js} +90 -90
- package/build/{index-2d178782.js → index-13b06ce7.js} +1 -1
- package/build/index-32c9ce71.js +1 -0
- package/build/index-3453364d.js +1 -0
- package/build/index-34b22040.js +113 -0
- package/build/{index-107f1235.js → index-36d00c1e.js} +137 -137
- package/build/index-3c0325dd.js +1 -0
- package/build/index-4fcc50ac.js +1 -0
- package/build/{index-21af0a75.js → index-6395c71d.js} +1 -1
- package/build/{index-92410ea5.js → index-654c54be.js} +1 -1
- package/build/index-695bcc12.js +1 -0
- package/build/{index-681f87b4.js → index-6fe01704.js} +1 -1
- package/build/index-93072a8a.js +1 -0
- package/build/index-9fed5846.js +1 -0
- package/build/{index-a7f24503.js → index-a0ff0c7c.js} +1 -1
- package/build/{index-25c42837.js → index-a986f5cc.js} +1 -1
- package/build/{index-71370283.js → index-abcb94df.js} +14 -14
- package/build/{index-dcd67fb7.js → index-ac495049.js} +1 -1
- package/build/{index-1f8b7209.js → index-beafcfe0.js} +4 -4
- package/build/{index-57ad8cf3.js → index-e2aa0679.js} +1 -1
- package/build/{index-24019fab.js → index-e9bcd521.js} +1 -1
- package/build/{index-1ca8b7a5.js → index-ed991afc.js} +1 -1
- package/build/index-f04d4a4d.js +1 -0
- package/build/{index-12f4c96b.js → index-f8556ecc.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-c5ae961b.js → index.styled-5c0482ab.js} +1 -1
- package/build/{index.styles-b2e0b5d9.js → index.styles-4e9a4b76.js} +5 -5
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +32 -32
- package/build/pwg.js +1 -1
- package/build/{routing-db0624e7.js → routing-20ad0d2b.js} +1 -1
- package/build/subot.js +91 -91
- package/build/together/components/organisms/cardReply/index.styled.d.ts +1 -1
- package/build/together/components/organisms/sourceList/index.d.ts +2 -1
- package/build/together.js +1 -1
- package/build/{types-50f76edb.js → types-21848dce.js} +109 -109
- package/build/{types-8abb60bb.js → types-8871614c.js} +67 -67
- package/build/types.js +1 -1
- package/build/useCategory-b48bb500.js +1 -0
- package/build/useHealthToolCache-7ab5f9c5.js +1 -0
- package/build/{usePlacesAutocomplete-eb65bc12.js → usePlacesAutocomplete-7fa143b6.js} +1 -1
- package/build/useTranslations-da1647d4.js +1 -0
- package/build/useUniqueId-10e140e3.js +1 -0
- package/build/{utils-87177d9a.js → utils-9389c98f.js} +1 -1
- package/build/utils-c0ee935c.js +1 -0
- package/build/{utils-9e94b29c.js → utils-fd32cb42.js} +2 -2
- package/build/vaccination.js +7 -7
- package/package.json +1 -1
- package/build/esm/getDynamicHealthTool-057875c3.js +0 -1
- package/build/esm/index-0a912c05.js +0 -1
- package/build/esm/index-18dfc227.js +0 -1
- package/build/esm/index-33e09a38.js +0 -1
- package/build/esm/index-76739ec7.js +0 -1
- package/build/esm/index-7939420e.js +0 -1
- package/build/esm/index-acf79819.js +0 -1
- package/build/esm/index-b1d7a64d.js +0 -1
- package/build/esm/index-bc925c3f.js +0 -113
- package/build/esm/index-d32e2867.js +0 -2748
- package/build/esm/index-f4c67fe4.js +0 -1
- package/build/esm/useCategory-9cb0ac4e.js +0 -1
- package/build/esm/useHealthToolCache-0eb5e663.js +0 -1
- package/build/esm/useTranslations-2bc5a07f.js +0 -1
- package/build/getDynamicHealthTool-0502c669.js +0 -1
- package/build/index-0ff56596.js +0 -1
- package/build/index-144bf42a.js +0 -1
- package/build/index-4af7bf88.js +0 -1
- package/build/index-61146c84.js +0 -1
- package/build/index-71744665.js +0 -1
- package/build/index-8ceafed8.js +0 -1
- package/build/index-f326950e.js +0 -113
- package/build/index-ff24ece7.js +0 -1
- package/build/useCategory-fd3d1b53.js +0 -1
- package/build/useHealthToolCache-2cdca558.js +0 -1
- package/build/useTranslations-42c1a71b.js +0 -1
- package/build/utils-ffc6f1f2.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-e235929e.js → BMI_BOYS.percentile.monthly-d3c686ae.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-9b7603ee.js → BMI_BOYS.percentile.weekly-b1684768.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-199d1a08.js → BMI_BOYS.percentile.yearly-0238ac12.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-cb8ad77d.js → BMI_BOYS.zscore.monthly-94cb0748.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-b8a0fcd3.js → BMI_BOYS.zscore.weekly-f50db573.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-c66e2c6c.js → BMI_BOYS.zscore.yearly-a98f3c96.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-048d5b73.js → BMI_GIRLS.percentile.monthly-0b319364.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d96053b8.js → BMI_GIRLS.percentile.weekly-f1518ef8.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-04792048.js → BMI_GIRLS.percentile.yearly-3b178d54.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-f1c3dd5f.js → BMI_GIRLS.zscore.monthly-5e9d2df3.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-335c1ecb.js → BMI_GIRLS.zscore.weekly-d754160f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-b5619a2c.js → BMI_GIRLS.zscore.yearly-8a183bde.js} +0 -0
- /package/build/{ChevronDown-3761180a.js → ChevronDown-15cca681.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-a51cc7f0.js → HEAD CIRCUM_BOYS.percentile.monthly-2c94f81c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-04bbaaac.js → HEAD CIRCUM_BOYS.percentile.weekly-0cae2452.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-57a3dfd8.js → HEAD CIRCUM_BOYS.percentile.yearly-74bd6cff.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f248d812.js → HEAD CIRCUM_BOYS.zscore.monthly-3b47563f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c200fd52.js → HEAD CIRCUM_BOYS.zscore.weekly-b997313c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-207dd9eb.js → HEAD CIRCUM_BOYS.zscore.yearly-06d04ada.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-fd5c48b6.js → HEAD CIRCUM_GIRLS.percentile.monthly-b8241562.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-1ec55d6e.js → HEAD CIRCUM_GIRLS.percentile.weekly-4e9b860d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-06dbef0f.js → HEAD CIRCUM_GIRLS.percentile.yearly-9121c08b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5a4f509e.js → HEAD CIRCUM_GIRLS.zscore.monthly-f0188d6b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e381ddb1.js → HEAD CIRCUM_GIRLS.zscore.weekly-a9911f13.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-fe82d952.js → HEAD CIRCUM_GIRLS.zscore.yearly-f71d641f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-14fb0c06.js → HEIGHT_BOYS.percentile.monthly-d3768455.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-45c31a3c.js → HEIGHT_BOYS.percentile.weekly-96a73428.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-c9c01d1a.js → HEIGHT_BOYS.percentile.yearly-d839fd3b.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-bbfa1555.js → HEIGHT_BOYS.zscore.monthly-64ce2640.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-5b310b11.js → HEIGHT_BOYS.zscore.weekly-312366e4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-51ae9672.js → HEIGHT_BOYS.zscore.yearly-16e829f4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-bf07f71e.js → HEIGHT_GIRLS.percentile.monthly-1c21967d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-9fb04885.js → HEIGHT_GIRLS.percentile.weekly-281fe154.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-ed746de7.js → HEIGHT_GIRLS.percentile.yearly-c6bd690d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-65183a60.js → HEIGHT_GIRLS.zscore.monthly-75de2b7c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-18a779d2.js → HEIGHT_GIRLS.zscore.weekly-0bc77aa6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-9d4550ba.js → HEIGHT_GIRLS.zscore.yearly-ef5ab1a5.js} +0 -0
- /package/build/{Subot-72d97891.js → Subot-75abd57a.js} +0 -0
- /package/build/{Visible-2307e4fe.js → Visible-33f6b1dc.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-5ce99f67.js → WEIGHT_BOYS.percentile.monthly-56ec27d0.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-9fcbd81e.js → WEIGHT_BOYS.percentile.weekly-5b97ff78.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-d4324ef7.js → WEIGHT_BOYS.percentile.yearly-b388b157.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-73ba22ee.js → WEIGHT_BOYS.zscore.monthly-3e16d435.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-5dc2ef1e.js → WEIGHT_BOYS.zscore.weekly-eabb91cd.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-ebae660d.js → WEIGHT_BOYS.zscore.yearly-da2f6096.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-f9f9003b.js → WEIGHT_GIRLS.percentile.monthly-c46836f5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-068509cf.js → WEIGHT_GIRLS.percentile.weekly-4b08038d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-82ea7d8e.js → WEIGHT_GIRLS.percentile.yearly-4cd46ed1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4b8f3df6.js → WEIGHT_GIRLS.zscore.monthly-60b75079.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-14936f43.js → WEIGHT_GIRLS.zscore.weekly-3f61408b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-82a87eac.js → WEIGHT_GIRLS.zscore.yearly-319edc8c.js} +0 -0
- /package/build/{animation-505ab7ab.js → animation-c29cc5bc.js} +0 -0
- /package/build/{cookieHelper-bef66b95.js → cookieHelper-1eaa42d7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-814c52b5.js → BMI_BOYS.percentile.monthly-20892a54.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-58e86534.js → BMI_BOYS.percentile.weekly-5f79e22e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-7bec47c8.js → BMI_BOYS.percentile.yearly-12936223.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-0f9f022f.js → BMI_BOYS.zscore.monthly-60708e68.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-f55af0b2.js → BMI_BOYS.zscore.weekly-c8a613c5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-20be4d08.js → BMI_BOYS.zscore.yearly-a9bd8507.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-890e2a85.js → BMI_GIRLS.percentile.monthly-41dd2d7c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-7ea454ef.js → BMI_GIRLS.percentile.weekly-d067d41b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-1517707b.js → BMI_GIRLS.percentile.yearly-66a2783f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-e43e9ffa.js → BMI_GIRLS.zscore.monthly-c815fa18.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-939898ff.js → BMI_GIRLS.zscore.weekly-7589a0a0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-ef5924bb.js → BMI_GIRLS.zscore.yearly-b7a10a85.js} +0 -0
- /package/build/esm/{ChevronDown-b53abff2.js → ChevronDown-b3e02130.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-7770b53a.js → HEAD CIRCUM_BOYS.percentile.monthly-626ceeeb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-ff7a3dc2.js → HEAD CIRCUM_BOYS.percentile.weekly-a5fdcc13.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-ef8b36bd.js → HEAD CIRCUM_BOYS.percentile.yearly-fd3d54b5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-fb258a36.js → HEAD CIRCUM_BOYS.zscore.monthly-5c54f379.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-616cc3c3.js → HEAD CIRCUM_BOYS.zscore.weekly-c58948a0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b7b7fa60.js → HEAD CIRCUM_BOYS.zscore.yearly-ab4a588a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-60a12758.js → HEAD CIRCUM_GIRLS.percentile.monthly-12b33b8e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-000da76b.js → HEAD CIRCUM_GIRLS.percentile.weekly-a2d59338.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-283d374f.js → HEAD CIRCUM_GIRLS.percentile.yearly-44dbecdb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fe73c068.js → HEAD CIRCUM_GIRLS.zscore.monthly-58a30ace.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-939b7e36.js → HEAD CIRCUM_GIRLS.zscore.weekly-36428056.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c3bdf286.js → HEAD CIRCUM_GIRLS.zscore.yearly-f8600e66.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ec418027.js → HEIGHT_BOYS.percentile.monthly-0ac98831.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e39a4a4d.js → HEIGHT_BOYS.percentile.weekly-83a94654.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f1961284.js → HEIGHT_BOYS.percentile.yearly-3cee73b2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b32a1aa4.js → HEIGHT_BOYS.zscore.monthly-26ec47f8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-1971f014.js → HEIGHT_BOYS.zscore.weekly-b92229c6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-930c129c.js → HEIGHT_BOYS.zscore.yearly-b220649f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ef97754d.js → HEIGHT_GIRLS.percentile.monthly-6b12dbaf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-72638068.js → HEIGHT_GIRLS.percentile.weekly-a565b8f2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-99bc2945.js → HEIGHT_GIRLS.percentile.yearly-22d15b4b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-adba5b3d.js → HEIGHT_GIRLS.zscore.monthly-a98b969a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-846fb103.js → HEIGHT_GIRLS.zscore.weekly-71d38c7d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-7ffff2a5.js → HEIGHT_GIRLS.zscore.yearly-5d6fddfa.js} +0 -0
- /package/build/esm/{Subot-5b04d983.js → Subot-851fd333.js} +0 -0
- /package/build/esm/{Visible-369adf3a.js → Visible-2cdedc33.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-63d5a69d.js → WEIGHT_BOYS.percentile.monthly-607e4448.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-eef6b61e.js → WEIGHT_BOYS.percentile.weekly-253a7a81.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b7379540.js → WEIGHT_BOYS.percentile.yearly-b83e8e14.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-354156ce.js → WEIGHT_BOYS.zscore.monthly-b5a3665a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-57053bc6.js → WEIGHT_BOYS.zscore.weekly-b9548729.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-149add52.js → WEIGHT_BOYS.zscore.yearly-ea749e5d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-5b429487.js → WEIGHT_GIRLS.percentile.monthly-1b99019f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-26d545cd.js → WEIGHT_GIRLS.percentile.weekly-ca6f0a48.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-a921fb7c.js → WEIGHT_GIRLS.percentile.yearly-90000ca0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-7e79e608.js → WEIGHT_GIRLS.zscore.monthly-b398da08.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-02132679.js → WEIGHT_GIRLS.zscore.weekly-14c3c82b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-1f0a9481.js → WEIGHT_GIRLS.zscore.yearly-02ffbc4f.js} +0 -0
- /package/build/esm/{animation-7a514429.js → animation-40bcca6a.js} +0 -0
- /package/build/esm/{cookieHelper-3e2dd83c.js → cookieHelper-0c3dcabd.js} +0 -0
- /package/build/esm/{index-84b32a2c.js → index-5e61790d.js} +0 -0
- /package/build/esm/{index-6b8127b1.js → index-6deb876e.js} +0 -0
- /package/build/esm/{index-a491e779.js → index-df9619b8.js} +0 -0
- /package/build/esm/{isProduction-4d356afc.js → isProduction-d32c9de6.js} +0 -0
- /package/build/esm/{localizeNumberFormat-d600cc85.js → localizeNumberFormat-0d035fa2.js} +0 -0
- /package/build/esm/{normalizeLink-b02efc99.js → normalizeLink-b5dd4ea3.js} +0 -0
- /package/build/esm/{number-a6908286.js → number-b2244c1b.js} +0 -0
- /package/build/esm/{paths-8c55eb7a.js → paths-eaed7507.js} +0 -0
- /package/build/esm/{theme-a46125e9.js → theme-868b0ca0.js} +0 -0
- /package/build/esm/{translationsContext-e64cddb1.js → translationsContext-6c25aedd.js} +0 -0
- /package/build/esm/{tslib.es6-8ed6f2bc.js → tslib.es6-ba9d8cd4.js} +0 -0
- /package/build/esm/{types-a77a7338.js → types-e56d1f3f.js} +0 -0
- /package/build/esm/{useIsInit-0fd92365.js → useIsInit-65eb966d.js} +0 -0
- /package/build/esm/{useOutsideClick-50785e38.js → useOutsideClick-0d9abe5e.js} +0 -0
- /package/build/esm/{useScrollbarSize-8ac89784.js → useScrollbarSize-547afb52.js} +0 -0
- /package/build/esm/{utils-a62a9933.js → utils-16053cd5.js} +0 -0
- /package/build/{index-f3a53fa7.js → index-2e493e48.js} +0 -0
- /package/build/{index-3a31e805.js → index-8f4c566f.js} +0 -0
- /package/build/{index-0162490f.js → index-eebbbb0a.js} +0 -0
- /package/build/{isProduction-26617223.js → isProduction-1b27c7e8.js} +0 -0
- /package/build/{localizeNumberFormat-77a3ca30.js → localizeNumberFormat-3fd4984c.js} +0 -0
- /package/build/{normalizeLink-799ae6be.js → normalizeLink-8d5414b7.js} +0 -0
- /package/build/{number-2634696d.js → number-c8e16fcd.js} +0 -0
- /package/build/{paths-559a164d.js → paths-f4b000d7.js} +0 -0
- /package/build/{theme-38307b0e.js → theme-645eae3b.js} +0 -0
- /package/build/{translationsContext-4e01740c.js → translationsContext-25ed50e4.js} +0 -0
- /package/build/{tslib.es6-b2bdb663.js → tslib.es6-f3854ac2.js} +0 -0
- /package/build/{types-a7525454.js → types-a61d3975.js} +0 -0
- /package/build/{useIsInit-cbceac64.js → useIsInit-0b395431.js} +0 -0
- /package/build/{useOutsideClick-abe89ee9.js → useOutsideClick-ed38ff08.js} +0 -0
- /package/build/{useScrollbarSize-adb34bd6.js → useScrollbarSize-c9cfb1ec.js} +0 -0
- /package/build/{utils-41c0f011.js → utils-ac610998.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-ba9d8cd4.js";import a,{useState as n,useMemo as i,useRef as o,Fragment as l,useEffect as r,memo as s,useContext as c,useCallback as d}from"react";import{Flag as m}from"./index-f296970a.js";import p,{css as g}from"styled-components";import{t as h}from"./theme-868b0ca0.js";import{T as u}from"./Plus-74f52e6c.js";import{C as v}from"./index-b2fd7f71.js";import{C as f,T as b,E as y,b as x,d as E,L as w,S as k}from"./index-bd711d1d.js";import{n as C,a as $}from"./normalizeLink-b5dd4ea3.js";import{a as B,g as P,b as _,c as M,d as N}from"./routing-9dc90ff7.js";import{P as T,U as D,c as L,a as j}from"./index-fffa276c.js";import{L as A}from"./index-737f6666.js";import{u as z}from"./useTranslations-2bfc2d1a.js";import H from"lodash/throttle";import{createStyles as S,rem as U,Box as F,Indicator as O,Portal as R}from"@mantine/core";import{b as I,B as V}from"./index-d9f09bce.js";import"@mantine/dates";import{L as Z}from"./Subot-851fd333.js";import"./translationsContext-6c25aedd.js";import G from"string-format";import"@mantine/hooks";import{g as W,M as Y}from"./utils-16053cd5.js";import{L as q}from"./constants-f4c472e4.js";import{I as K}from"./index-d0efc6f7.js";import{U as Q}from"./WhatsApp-764b872d.js";import{g as J,P as X,H as ee}from"./index.styles-607132bf.js";import{C as te}from"./ChevronDown-b3e02130.js";import{B as ae}from"./index-816d81a1.js";import{w as ne}from"./utils-bb7cbdbf.js";import{a as ie}from"./constants-0683dc31.js";import{I as oe}from"./index-58970baf.js";import{u as le}from"./useIsInit-65eb966d.js";import"./utils-230293e5.js";import"./index.styled-e7114743.js";import"./index-6deb876e.js";import re from"dayjs";import se from"dayjs/plugin/relativeTime";import{C as ce}from"./index-df9619b8.js";import de from"lodash/debounce";import{g as me}from"./core-93ac9e1f.js";const pe=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],ge=(e="")=>pe.some((t=>new URL(e).origin.endsWith(t))),he=p.a`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
position: relative;
|
|
4
4
|
flex-direction: row;
|
|
@@ -6,23 +6,23 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
6
6
|
padding: 7px 11px;
|
|
7
7
|
gap: 2px;
|
|
8
8
|
|
|
9
|
-
background: ${
|
|
10
|
-
border: 1px solid ${
|
|
9
|
+
background: ${h.colors.white};
|
|
10
|
+
border: 1px solid ${h.colors.neutral100};
|
|
11
11
|
border-radius: 20px;
|
|
12
12
|
|
|
13
|
-
color: ${
|
|
13
|
+
color: ${h.colors.gray600};
|
|
14
14
|
font-weight: 600;
|
|
15
15
|
font-size: 12px;
|
|
16
16
|
line-height: 18px;
|
|
17
17
|
text-decoration: none;
|
|
18
18
|
|
|
19
19
|
cursor: pointer;
|
|
20
|
-
`,ue=
|
|
20
|
+
`,ue=p.div`
|
|
21
21
|
position: relative;
|
|
22
22
|
display: inline-block;
|
|
23
|
-
`,ve=
|
|
23
|
+
`,ve=p.div`
|
|
24
24
|
position: relative;
|
|
25
|
-
`,fe=
|
|
25
|
+
`,fe=p.div`
|
|
26
26
|
position: absolute;
|
|
27
27
|
z-index: 21;
|
|
28
28
|
top: 100%;
|
|
@@ -50,14 +50,14 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
50
50
|
filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
`,be=
|
|
53
|
+
`,be=p.div`
|
|
54
54
|
display: flex;
|
|
55
55
|
height: 40px;
|
|
56
56
|
align-items: center;
|
|
57
57
|
justify-content: space-between;
|
|
58
58
|
|
|
59
59
|
padding: 0 16px;
|
|
60
|
-
border-radius: ${
|
|
60
|
+
border-radius: ${h.borderRadius};
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
|
|
63
63
|
.check-icon {
|
|
@@ -65,9 +65,9 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
65
65
|
height: 16px;
|
|
66
66
|
}
|
|
67
67
|
&[data-selected='false'] {
|
|
68
|
-
background-color: ${
|
|
68
|
+
background-color: ${h.colors.gray100};
|
|
69
69
|
}
|
|
70
|
-
`,ye=
|
|
70
|
+
`,ye=p.div`
|
|
71
71
|
position: fixed;
|
|
72
72
|
z-index: 20;
|
|
73
73
|
top: 0;
|
|
@@ -75,9 +75,9 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
75
75
|
width: 100%;
|
|
76
76
|
height: 100%;
|
|
77
77
|
cursor: default;
|
|
78
|
-
`,xe=({options:e,label:t,labelRenderer:i,selected:o,onChange:l,showSelected:r=!0,style:s={},showIndicator:c=!0})=>{const[d,m]=n(!1);return a.createElement(a.Fragment,null,a.createElement(ue,null,a.createElement(ve,{onClick:()=>m((e=>!e))},t||(null==i?void 0:i(d))||null,a.createElement(fe,{"data-is-open":d,style:s,"data-show-indicator":c},e.map(((e,t)=>a.createElement(be,{key:t,"data-selected":r&&o===e.value,onClick:t=>{o!==e.value&&(l(e.value),m((e=>!e))),t.stopPropagation()}},a.createElement(
|
|
78
|
+
`,xe=({options:e,label:t,labelRenderer:i,selected:o,onChange:l,showSelected:r=!0,style:s={},showIndicator:c=!0})=>{const[d,m]=n(!1);return a.createElement(a.Fragment,null,a.createElement(ue,null,a.createElement(ve,{onClick:()=>m((e=>!e))},t||(null==i?void 0:i(d))||null,a.createElement(fe,{"data-is-open":d,style:s,"data-show-indicator":c},e.map(((e,t)=>a.createElement(be,{key:t,"data-selected":r&&o===e.value,onClick:t=>{o!==e.value&&(l(e.value),m((e=>!e))),t.stopPropagation()}},a.createElement(u,{size:"p3"},e.label),r&&o===e.value&&a.createElement("img",{src:v.getAssetPath("check.svg"),alt:"check",className:"check-icon",loading:"lazy"}))))))),d&&a.createElement(ye,{onClick:()=>m(!1)}))},Ee=({languageOptions:e,locale:t})=>{var n,i;const o=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?a.createElement(xe,{options:e,selected:o.value,label:a.createElement(we,{locale:t,label:o.label||(null===(i=null===(n=t.split("-"))||void 0===n?void 0:n[0])||void 0===i?void 0:i.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},we=({locale:e,label:t,href:n})=>{var i,o,l;return a.createElement(he,{href:n},a.createElement(m,{country:null===(o=null===(i=null==e?void 0:e.split("-"))||void 0===i?void 0:i[1])||void 0===o?void 0:o.toUpperCase(),width:16,height:16,rounded:!0,language:null===(l=null==e?void 0:e.split("-"))||void 0===l?void 0:l[0]}),a.createElement("span",null,t))},ke=({path:e,locale:t})=>{var a;return`/shop/${null===(a=q[t||"vi-VN"])||void 0===a?void 0:a[e]}/`};var Ce=S((()=>({root:{textDecoration:"none"},indicatorRoot:{marginRight:U(10)},iconText:{color:"#fff"}})));const $e=t=>{var{count:n,styles:i,className:o,classNames:l,locale:r}=t,s=e(t,["count","styles","className","classNames","locale"]);const{classes:c,cx:d}=Ce(void 0,{name:"CartBadge",styles:i,classNames:l});return void 0!==n?a.createElement(F,Object.assign({component:"a",href:ke({path:"CART",locale:r}),className:d(c.root,o)},s),a.createElement(O,{classNames:{root:c.indicatorRoot},withBorder:!0,color:"red",size:20,disabled:0===n,label:a.createElement(u,{className:c.iconText,size:"s5"},n>99?"99+":n)},a.createElement(K.Cart,{size:24}))):null},Be=p.div`
|
|
79
79
|
${e=>`\n ${0!==e.lowerBound?`@media (max-width: ${e.lowerBound-1}px) { display: none; }`:""}\n ${0!==e.upperBound?`@media (min-width: ${e.upperBound}px) { display: none; }`:""}\n `}
|
|
80
|
-
`,Pe=({forceDisplay:e,mediaQueryKey:t,children:n,className:o,style:l})=>{const[r,s]=i((()=>
|
|
80
|
+
`,Pe=({forceDisplay:e,mediaQueryKey:t,children:n,className:o,style:l})=>{const[r,s]=i((()=>W(t)),[t]);return a.createElement(Be,{lowerBound:e?0:r,upperBound:e?0:s,className:o,style:l},n)},_e=e=>{const{allowBgScroll:t}=e||{},a=o();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},Me="hhgcomp-navprofilebutton-popup",Ne=J(p.div`
|
|
81
81
|
position: absolute;
|
|
82
82
|
right: 0;
|
|
83
83
|
transition: all 0.5s ease-in-out;
|
|
@@ -99,7 +99,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
99
99
|
z-index: 111;
|
|
100
100
|
height: 100%;
|
|
101
101
|
border: 1px solid #0000001a;
|
|
102
|
-
${
|
|
102
|
+
${Y.mbDown} {
|
|
103
103
|
> div {
|
|
104
104
|
border-top-left-radius: 0;
|
|
105
105
|
border-top-right-radius: 0;
|
|
@@ -108,15 +108,15 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/* min-height: 415px; */
|
|
111
|
-
${
|
|
111
|
+
${Y.mbUp} {
|
|
112
112
|
width: 320px;
|
|
113
113
|
}
|
|
114
|
-
${
|
|
114
|
+
${Y.mbDown} {
|
|
115
115
|
position: fixed;
|
|
116
116
|
left: 0;
|
|
117
117
|
width: 100%;
|
|
118
118
|
}
|
|
119
|
-
`,Me),Te="hhgcomp-navprofilebutton-popupwrapper";J(
|
|
119
|
+
`,Me),Te="hhgcomp-navprofilebutton-popupwrapper";J(p.div`
|
|
120
120
|
position: fixed;
|
|
121
121
|
z-index: 150;
|
|
122
122
|
top: var(--header-bottom, 56px);
|
|
@@ -125,7 +125,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
125
125
|
height: 100%;
|
|
126
126
|
align-items: center;
|
|
127
127
|
|
|
128
|
-
${
|
|
128
|
+
${Y.mbUp} {
|
|
129
129
|
background-color: transparent;
|
|
130
130
|
&[data-type='welcome'] {
|
|
131
131
|
background: rgba(38, 38, 38, 0.3);
|
|
@@ -135,7 +135,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
${
|
|
138
|
+
${Y.mbDown} {
|
|
139
139
|
background: rgba(38, 38, 38, 0.3);
|
|
140
140
|
}
|
|
141
141
|
|
|
@@ -146,7 +146,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
146
146
|
&[data-open='false'] {
|
|
147
147
|
display: none;
|
|
148
148
|
}
|
|
149
|
-
`,Te);const De=
|
|
149
|
+
`,Te);const De=p.div`
|
|
150
150
|
width: 40px;
|
|
151
151
|
height: 40px;
|
|
152
152
|
cursor: pointer;
|
|
@@ -165,13 +165,13 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
165
165
|
display: flex;
|
|
166
166
|
align-items: center;
|
|
167
167
|
justify-content: center;
|
|
168
|
-
background-color: ${
|
|
168
|
+
background-color: ${h.colors.secondaryBase};
|
|
169
169
|
border-radius: 50%;
|
|
170
170
|
color: white;
|
|
171
171
|
font-size: 20px;
|
|
172
172
|
font-weight: bold;
|
|
173
173
|
}
|
|
174
|
-
`,Le=
|
|
174
|
+
`,Le=p.div`
|
|
175
175
|
display: inline-flex;
|
|
176
176
|
position: relative;
|
|
177
177
|
width: 40px;
|
|
@@ -199,7 +199,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
199
199
|
opacity: 1;
|
|
200
200
|
visibility: visible;
|
|
201
201
|
display: initial;
|
|
202
|
-
${
|
|
202
|
+
${Y.mbDown} {
|
|
203
203
|
top: 100%;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
@@ -207,29 +207,29 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
207
207
|
display: initial;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
`,
|
|
210
|
+
`,je=p.a`
|
|
211
211
|
display: inline-flex;
|
|
212
212
|
.login-btn[data-color='tertiary'][data-size='md'] {
|
|
213
213
|
padding-left: 12px;
|
|
214
214
|
padding-right: 12px;
|
|
215
215
|
}
|
|
216
216
|
.mobile-only {
|
|
217
|
-
${
|
|
217
|
+
${Y.mbUp} {
|
|
218
218
|
display: none;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
.login-btn {
|
|
222
222
|
display: none;
|
|
223
|
-
${
|
|
223
|
+
${Y.mbUp} {
|
|
224
224
|
display: block;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
`,
|
|
227
|
+
`,Ae=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M2.5 6.5a3.2 3.2 0 0 1 3.2-3.2h7.9a3.2 3.2 0 0 1 3.19 3.2v4.72a3.2 3.2 0 0 1-3.2 3.2H5.7a3.2 3.2 0 0 1-3.19-3.2V6.49Z",fill:"#E3F2FF"}),a.createElement("path",{d:"M2.5 5.68A2.38 2.38 0 0 1 4.88 3.3h9.52a2.38 2.38 0 0 1 2.39 2.38H2.5Z",fill:"#2D87F3"}),a.createElement("path",{d:"M13.6 2.5h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65ZM5.27 4.86h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65Z",fill:"#2743AD"}),a.createElement("path",{d:"M5.56 8.17h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.49a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41Zm-8.3 2.52h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.7 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Z",fill:"#2D87F3"}),a.createElement("path",{d:"M16 16.8a3.17 3.17 0 1 0 0-6.36 3.17 3.17 0 0 0 0 6.35Z",fill:"#FE921D"}),a.createElement("path",{d:"M15.78 13.62v-1.36a.21.21 0 0 1 .42 0v1.26l.48.4a.21.21 0 0 1-.01.33.21.21 0 0 1-.26-.01l-.55-.46-.02-.01a.21.21 0 0 1-.06-.15Z",fill:"#fff"})),ze=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M7.06 4.97h-2.3a3.12 3.12 0 0 0-3.1 3.1v.43a3.12 3.12 0 0 0 3.1 3.1h1.39s1.47 1.11 1.5.97c.03-.22-.23-.99-.23-.99a3.13 3.13 0 0 0 2.72-3.09v-.41a3.12 3.12 0 0 0-3.08-3.11Zm-2.7 3.55a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Zm1.35.4a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .65Zm1.57-.05Z",fill:"#2D87F3"}),a.createElement("path",{d:"M12.88 9.52a3.53 3.53 0 0 0-1.35 6.8s-.23 1.03-.2 1.25c.03.14 1.55-.99 1.55-.99a3.53 3.53 0 0 0 0-7.06Zm-1.33 4.24a.48.48 0 1 1 0-.97.48.48 0 0 1 0 .97Zm1.58.04a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .66Zm1.34-.39a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46Z",fill:"#FFB521"}),a.createElement("path",{d:"M16.45 1.67h-3.87a1.88 1.88 0 0 0-1.88 2.06l.22 2.29a1.88 1.88 0 0 0 1.73 1.7s-.17.94-.14 1.16c.02.14 1.66-1.13 1.66-1.13l1.92-.03a1.88 1.88 0 0 0 1.86-1.59l.36-2.29a1.88 1.88 0 0 0-1.86-2.17ZM13.1 5.23a.48.48 0 1 1 .34-.14c-.1.1-.22.14-.34.14Zm1.57.05a.33.33 0 1 1 .23-.1.33.33 0 0 1-.23.1Zm1.34-.4a.23.23 0 1 1 .1-.01.23.23 0 0 1-.1.02Z",fill:"#91CAFF"})),He=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("rect",{x:"8.33337",y:"8.33325",width:"3.33333",height:"3.33333",rx:"1.66667",fill:"#2D87F3"})),Se=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"m3.18 7.06 1.6 1.6 4.33-4.69a.72.72 0 0 0-.03-.99l-.22-.22a.72.72 0 0 0-.99-.02L3.18 7.06Zm13.64 0-1.6 1.6-4.33-4.69a.72.72 0 0 1 .02-.99l.23-.22a.72.72 0 0 1 .99-.02l4.69 4.32Z",fill:"#2743AD"}),a.createElement("path",{d:"M15.04 16.7H4.9a.78.78 0 0 1-.77-.7l-.7-6.67h13.09l-.7 6.67a.78.78 0 0 1-.78.7Z",fill:"#2D87F3"}),a.createElement("path",{d:"M6.23 15.7a.23.23 0 0 1-.23-.22l-.3-4.46a.23.23 0 1 1 .47-.04l.3 4.47a.23.23 0 0 1-.22.25h-.02Zm2.39 0a.23.23 0 0 1-.23-.23L8.3 11a.23.23 0 1 1 .47 0l.07 4.46a.23.23 0 0 1-.22.24h-.01Zm5.15 0h-.02a.23.23 0 0 1-.2-.16.23.23 0 0 1-.02-.09l.3-4.47a.24.24 0 0 1 .25-.22.23.23 0 0 1 .22.26l-.3 4.46a.23.23 0 0 1-.23.22Zm-2.39 0a.23.23 0 0 1-.23-.23l.07-4.47a.24.24 0 0 1 .24-.23.23.23 0 0 1 .23.23l-.08 4.47a.23.23 0 0 1-.23.23Z",fill:"#2743AD"}),a.createElement("path",{d:"M16.04 18.12a2.01 2.01 0 1 0 0-4.03 2.01 2.01 0 0 0 0 4.03Z",fill:"#FE921D"}),a.createElement("path",{d:"M16.97 15.87h-.7v-.7a.23.23 0 0 0-.46 0v.7h-.7a.23.23 0 1 0 0 .47h.7v.69a.23.23 0 1 0 .47 0v-.7h.69a.23.23 0 1 0 0-.46Z",fill:"#fff"}),a.createElement("path",{d:"M16.58 9.48H3.42a.8.8 0 0 1-.78-.7l-.13-1.1a.8.8 0 0 1 .78-.88h13.42a.8.8 0 0 1 .78.88l-.13 1.1a.8.8 0 0 1-.78.7Z",fill:"#BCDEFF"})),Ue=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 1.667c-4.595 0-8.333 3.738-8.333 8.333 0 4.595 3.738 8.333 8.333 8.333 4.595 0 8.333-3.738 8.333-8.333 0-4.595-3.738-8.333-8.333-8.333Zm0 13.194a.695.695 0 1 1 0-1.39.695.695 0 0 1 0 1.39Zm1.1-4.415a.698.698 0 0 0-.405.631v.312a.694.694 0 1 1-1.39 0v-.312c0-.81.477-1.553 1.213-1.893.707-.326 1.218-1.19 1.218-1.615 0-.956-.778-1.736-1.736-1.736s-1.736.78-1.736 1.736a.694.694 0 1 1-1.389 0A3.129 3.129 0 0 1 10 4.444a3.129 3.129 0 0 1 3.125 3.125c0 .939-.814 2.318-2.026 2.877Z",fill:"#FF6F4D"})),Fe=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M11.116 1.72 5.488.85a1.898 1.898 0 0 0-2.155 1.856v14.588a1.898 1.898 0 0 0 2.158 1.855l5.625-.869a1.865 1.865 0 0 0 1.592-1.855V3.575a1.87 1.87 0 0 0-1.592-1.855",fill:"#2D87F3"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471",fill:"#FF6F4D"}),a.createElement("path",{d:"M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471m-7.603-.908v1.802c0 .124.1.225.224.225h1.257c.124 0 .225-.1.225-.225V8.676c0-.124-.1-.224-.225-.224h-1.257c-.124 0-.224.1-.224.224m-.673 1.809a.224.224 0 0 1-.225.225h-.407a.61.61 0 0 1-.609-.61V9.069a.61.61 0 0 1 .61-.61h.406a.224.224 0 0 1 .225.225z",fill:"#FF6F4D"})),Oe=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M6.114 3.333a4.64 4.64 0 0 1 3.565 1.708.412.412 0 0 0 .642 0 4.64 4.64 0 0 1 3.565-1.708c2.646 0 4.447 2.302 4.447 5.142 0 1.698-.904 4.446-2.675 6.102-2.522 2.358-4.665 2.965-5.392 3.11a1.3 1.3 0 0 1-.53 0c-.728-.146-2.871-.752-5.393-3.11-1.772-1.656-2.676-4.404-2.676-6.102 0-2.84 1.801-5.142 4.447-5.142",fill:"#FF6F4D"}),a.createElement("path",{d:"M13.298 11.226v-.829a1.205 1.205 0 0 0-1.202-1.204h-.208a.26.26 0 0 1-.261-.259v-.208a1.205 1.205 0 0 0-1.201-1.204h-.832A1.205 1.205 0 0 0 8.39 8.726v.205a.26.26 0 0 1-.259.261h-.207a1.2 1.2 0 0 0-1.202 1.202v.834a1.204 1.204 0 0 0 1.202 1.201h.207a.26.26 0 0 1 .259.262v.205A1.205 1.205 0 0 0 9.594 14.1h.832a1.204 1.204 0 0 0 1.201-1.204v-.208a.26.26 0 0 1 .261-.258h.208a1.205 1.205 0 0 0 1.202-1.204",fill:"#fff"})),Re=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M4.767 17.236a1.36 1.36 0 0 0 1.256.188l4.097-1.397a.37.37 0 0 1 .28 0l4.097 1.397q.22.071.45.075c.29.002.573-.09.807-.263a1.43 1.43 0 0 0 .6-1.171V3.935A1.417 1.417 0 0 0 14.946 2.5H5.573a1.416 1.416 0 0 0-1.406 1.434v12.13a1.43 1.43 0 0 0 .6 1.172",fill:"#00CB8A"})),Ie=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M17.339 8.075a2.177 2.177 0 0 1-1.717-2.944 1.02 1.02 0 0 0-.305-1.15 8.2 8.2 0 0 0-2.445-1.417 1.03 1.03 0 0 0-1.16.323 2.173 2.173 0 0 1-3.423 0 1.03 1.03 0 0 0-1.161-.323A8.2 8.2 0 0 0 4.85 3.842a1.03 1.03 0 0 0-.322 1.183 2.167 2.167 0 0 1-1.806 2.978 1.03 1.03 0 0 0-.9.828 8 8 0 0 0-.05 2.861 1.03 1.03 0 0 0 .906.861 2.166 2.166 0 0 1 1.767 3.061 1.01 1.01 0 0 0 .283 1.211A8.2 8.2 0 0 0 7.15 18.22q.17.059.35.061a1.02 1.02 0 0 0 .833-.433 2.15 2.15 0 0 1 1.778-.934 2.18 2.18 0 0 1 1.745.878 1.02 1.02 0 0 0 1.2.339 8.3 8.3 0 0 0 2.222-1.328 1.03 1.03 0 0 0 .3-1.172 2.167 2.167 0 0 1 1.739-2.995 1.03 1.03 0 0 0 .872-.844 8 8 0 0 0 .144-1.405q0-.749-.138-1.484a1.02 1.02 0 0 0-.856-.828m-4.561 2.312a2.778 2.778 0 1 1-5.556 0 2.778 2.778 0 0 1 5.556 0",fill:"#2D87F3"})),Ve=e=>a.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M10 19.167A9.167 9.167 0 1 0 10 .833a9.167 9.167 0 0 0 0 18.334",fill:"#BCDEFF"}),a.createElement("path",{d:"M17.356 15.463a9.188 9.188 0 0 0-14.716-.005 9.155 9.155 0 0 0 14.716.005",fill:"#2D87F3"}),a.createElement("path",{d:"M10 10.591a3.548 3.548 0 1 0 0-7.096 3.548 3.548 0 0 0 0 7.096",fill:"#2D87F3"})),Ze=p.div`
|
|
228
228
|
padding: 16px;
|
|
229
229
|
border-radius: 16px;
|
|
230
230
|
background-color: white;
|
|
231
231
|
hr {
|
|
232
|
-
border-color: ${
|
|
232
|
+
border-color: ${h.colors.neutral100};
|
|
233
233
|
border-bottom-width: 0px;
|
|
234
234
|
border-style: solid;
|
|
235
235
|
}
|
|
@@ -237,14 +237,14 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
237
237
|
background-color: white;
|
|
238
238
|
border-radius: 8px;
|
|
239
239
|
}
|
|
240
|
-
`,Ge=
|
|
240
|
+
`,Ge=p.div`
|
|
241
241
|
display: block;
|
|
242
242
|
border: 1px solid transparent;
|
|
243
243
|
transition: all 300ms linear;
|
|
244
244
|
cursor: pointer;
|
|
245
245
|
position: relative;
|
|
246
246
|
|
|
247
|
-
${e=>e.hasSubmenu&&
|
|
247
|
+
${e=>e.hasSubmenu&&g`
|
|
248
248
|
cursor: pointer;
|
|
249
249
|
`}
|
|
250
250
|
|
|
@@ -261,17 +261,17 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
261
261
|
margin-top: 0;
|
|
262
262
|
}
|
|
263
263
|
.nav-menu-item:last-child {
|
|
264
|
-
border-bottom-color: ${
|
|
264
|
+
border-bottom-color: ${h.colors.neutral100};
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
.nav-menu-item {
|
|
268
|
-
background-color: ${
|
|
268
|
+
background-color: ${h.colors.neutral50};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.nav-menu-item {
|
|
272
272
|
padding-left: 38px;
|
|
273
273
|
}
|
|
274
|
-
`,We=
|
|
274
|
+
`,We=p.div`
|
|
275
275
|
display: flex;
|
|
276
276
|
align-items: center;
|
|
277
277
|
height: 48px;
|
|
@@ -280,23 +280,23 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
280
280
|
border-radius: 8px;
|
|
281
281
|
|
|
282
282
|
&:hover {
|
|
283
|
-
background-color: ${
|
|
283
|
+
background-color: ${h.colors.neutral150};
|
|
284
284
|
}
|
|
285
285
|
&[data-active='true'] {
|
|
286
|
-
background-color: ${
|
|
286
|
+
background-color: ${h.colors.blue50};
|
|
287
287
|
}
|
|
288
|
-
`,Ye=
|
|
288
|
+
`,Ye=p.div`
|
|
289
289
|
margin-left: auto;
|
|
290
290
|
|
|
291
291
|
svg {
|
|
292
|
-
fill: ${
|
|
292
|
+
fill: ${h.colors.gray600};
|
|
293
293
|
transition: transform 300ms;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
&[data-is-open='true'] svg {
|
|
297
297
|
transform: rotate(180deg);
|
|
298
298
|
}
|
|
299
|
-
`,qe=
|
|
299
|
+
`,qe=p.div`
|
|
300
300
|
overflow: hidden;
|
|
301
301
|
max-height: 0;
|
|
302
302
|
transition: max-height 0.3s ease-out;
|
|
@@ -305,17 +305,17 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
305
305
|
max-height: 500px;
|
|
306
306
|
transition-timing-function: ease-in;
|
|
307
307
|
}
|
|
308
|
-
`,Ke={helloSites:{member:()=>
|
|
308
|
+
`,Ke={helloSites:{member:()=>v.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>v.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>v.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>v.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>v.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>v.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>v.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>v.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>v.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>v.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},Qe=({rank:e,siteType:t="helloSites"})=>{const n=i((()=>{var a,n;return(null===(n=null===(a=Ke[t])||void 0===a?void 0:a[e])||void 0===n?void 0:n.call(a))||""}),[e,t]),{t:o}=z();return a.createElement("div",{style:{display:"inline-flex",height:"fit-content",alignItems:"center",padding:"5px 12px",gap:"4px",borderRadius:16,border:`1px solid ${"helloSites"===t?h.colors.blue100:h.colors.mb100}`}},a.createElement("img",{src:n,alt:e,style:{height:16,width:16}}),a.createElement(u,{size:"s5",color:"gray.8",weight:"semiBold"},o(`userProfile.userRank.${e}`)))},Je=({siteType:e="helloSites",userInfo:t})=>(null==t?void 0:t.id)?a.createElement(a.Fragment,null,a.createElement("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"}},a.createElement(I,{src:t.avatar,alt:t.name,size:48,style:{marginBottom:8}}),a.createElement(Qe,{rank:"member",siteType:e})),a.createElement(u,{size:"s3",weight:"semiBold",color:"gray.8",style:{marginBottom:4}},t.name),a.createElement(u,{size:"n1",weight:"regular",color:"helloSites"===e?"hb.6":"mb.6"},"@",t.username),a.createElement("hr",null)):null,Xe=({className:e,activeItem:t,navMenuItems:i,style:o,onLogout:r,siteType:s="helloSites",userInfo:c})=>{const{locale:d}=z(),[m,p]=n(),g="string"==typeof t?t:m,h=C(B(d,"marryBaby"===s)+"/"),u=C(P(d,"marryBaby"===s)+"/"),v=i||[[{key:"userProfile.nav.header.viewProfile",icon:a.createElement(Ve,{width:"24",height:"24"}),value:"profile",tracking:{action:"Profile Click"},link:`${h}user/profile/`},{key:"userProfile.nav.card.myHealth",icon:a.createElement(Oe,{width:"24",height:"24"}),value:"myHealth",tracking:{action:"My Health Click"},link:`${h}user/health/`},{key:"userProfile.nav.card.mySaved",icon:a.createElement(Re,{width:"24",height:"24"}),iconColor:"green_300",value:"saved",tracking:{action:"Bookmarks Click"},link:`${h}user/saved/`},{key:"userProfile.nav.card.myBooking",icon:a.createElement(Ae,{width:"24",height:"24"}),value:"booking",disabled:!f.includes(d),tracking:{action:"Manage Booking Click"},link:`${h}user/booking/`},{key:"userProfile.nav.card.myCommunity",icon:a.createElement(ze,{width:"24",height:"24"}),value:"myCommunities",disabled:!b.includes(d),tracking:{action:"Community Click"},link:`${h}user/my-communities/`}],...y.includes(d)?[[{key:"userProfile.nav.card.eCom",icon:a.createElement(Se,{width:"24",height:"24"}),value:"eCom",disabled:!y.includes(d),subMenu:[{key:"userProfile.nav.card.ecom.manageOrders",value:"eCom-manageOrders",icon:a.createElement(He,{width:"24",height:"24"}),link:`${u}shop/ho-so/quan-li-don-hang/`,tracking:{action:"Order Management Click"}},{key:"userProfile.nav.card.ecom.DeliveryAddress",value:"eCom-manageAddress",icon:a.createElement(He,{width:"24",height:"24"}),link:`${u}shop/ho-so/dia-chi-giao-hang/`,tracking:{action:"Address Management Click"}},{key:"userProfile.nav.card.ecom.voucher",value:"eCom-voucher",icon:a.createElement(He,{width:"24",height:"24"}),link:`${u}shop/ho-so/khuyen-mai/`,tracking:{action:"Voucher Click"}}]}]]:[],[{key:"userProfile.nav.menu.accountSettings",icon:a.createElement(Ie,{width:"24",height:"24"}),subMenu:[{key:"common.profileNavigator.newsletterSubscription",value:"subscription",icon:a.createElement(He,{width:"24",height:"24"}),tracking:{action:"Subscription Click"},link:`${h}user/subscriptions/`,disabled:"vi-VN"!==d},{key:"userProfile.nav.menu.password",value:"password",icon:a.createElement(He,{width:"24",height:"24"}),tracking:{action:"Set Password Click"},link:`${h}user/password/`},{key:"userProfile.nav.menu.disableAccount",value:"disable-account",icon:a.createElement(He,{width:"24",height:"24"}),tracking:{action:"Disable Account Click"},link:`${h}user/disable-account/`}]}],[{key:"userProfile.nav.menu.help",icon:a.createElement(Ue,{width:"24",height:"24"}),value:"help",link:`${h}user/help`,tracking:{action:"Support Click"}},{key:"userProfile.nav.menu.logout",icon:a.createElement(Fe,{width:"24",height:"24"}),value:"logout",tracking:{action:"Sign Out Click"}}]];return a.createElement(Ze,{className:e,style:o},a.createElement(Je,{userInfo:c,siteType:s}),v.map(((e,t)=>a.createElement(l,{key:t},a.createElement("div",{className:"profile-nav-item-group",key:t},e.map((e=>a.createElement(et,{key:e.key,item:e,activeKey:g||"",onLogout:r,onClick:()=>p((t=>t===e.key?void 0:e.key)),siteType:s})))),t!==v.length-1&&a.createElement("hr",null)))))},et=({item:e,activeKey:t,forceOpen:o,onLogout:l,onClick:s,siteType:c="helloSites"})=>{var d,m;const[p,g]=n(!1),h=i((()=>"undefined"!=typeof window?window.location.href:""),[]);if(e.disabled)return null;const{t:v}=z(),f=null===(d=e.subMenu)||void 0===d?void 0:d.some((e=>e.key===t)),b=t===e.key;r((()=>{(f||b)&&g(!0)}),[f,b]);const y="boolean"==typeof o?o:p;return a.createElement(Ge,{as:e.subMenu?void 0:"a","data-is-open":y,key:e.key,hasSubmenu:!!e.subMenu,onClick:()=>{null==s||s(),e.subMenu&&!o?g((e=>!e)):"logout"===e.value?null==l||l():e.link&&(window.location.href=e.link)},"data-event-category":"Ecommerce","data-event-action":(null===(m=null==e?void 0:e.tracking)||void 0===m?void 0:m.action)||"","data-event-label":h},a.createElement(We,{"data-active":b},e.icon,a.createElement(u,{size:"p3",style:{marginLeft:e.icon?24:48,transition:"color 300ms"},color:b?"helloSites"===c?"hb.6":"mb.6":"gray.8"},v(e.key)),e.subMenu&&a.createElement(Ye,{"data-is-open":y},a.createElement(te,{width:14}))),e.subMenu&&a.createElement(qe,null,e.subMenu.map((e=>a.createElement(et,{key:e.key,item:e,activeKey:t,onLogout:l,siteType:c})))))},tt=({isOpen:e,userInfo:t,closePopup:n,siteType:i="helloSites",dispatchLogout:o})=>a.createElement(Ne,{"data-open":e},a.createElement("div",{className:"popup-content"},a.createElement(Xe,{siteType:i,onLogout:()=>{o&&(o(),n())},userInfo:t}))),at=p.div`
|
|
309
309
|
background-color: white;
|
|
310
310
|
text-align: center;
|
|
311
311
|
.cancle-img {
|
|
312
312
|
margin-top: 24px;
|
|
313
|
-
${
|
|
313
|
+
${Y.mbDown} {
|
|
314
314
|
width: 80px;
|
|
315
315
|
height: 80px;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
${
|
|
318
|
+
${Y.mbUp} {
|
|
319
319
|
width: 100px;
|
|
320
320
|
height: 100px;
|
|
321
321
|
}
|
|
@@ -323,15 +323,15 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
323
323
|
|
|
324
324
|
h2 {
|
|
325
325
|
margin-top: 32px;
|
|
326
|
-
color: ${
|
|
326
|
+
color: ${h.colors.gray800};
|
|
327
327
|
font-style: normal;
|
|
328
328
|
font-weight: bold;
|
|
329
|
-
${
|
|
329
|
+
${Y.mbDown} {
|
|
330
330
|
font-size: 24px;
|
|
331
331
|
line-height: 32px;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
${
|
|
334
|
+
${Y.mbUp} {
|
|
335
335
|
font-size: 32px;
|
|
336
336
|
line-height: 42px;
|
|
337
337
|
}
|
|
@@ -339,27 +339,27 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
339
339
|
|
|
340
340
|
p {
|
|
341
341
|
margin-top: 8px;
|
|
342
|
-
color: ${
|
|
342
|
+
color: ${h.colors.gray600};
|
|
343
343
|
font-style: normal;
|
|
344
344
|
font-weight: normal;
|
|
345
|
-
${
|
|
345
|
+
${Y.mbDown} {
|
|
346
346
|
font-size: 16px;
|
|
347
347
|
line-height: 24px;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
${
|
|
350
|
+
${Y.mbUp} {
|
|
351
351
|
font-size: 16px;
|
|
352
352
|
line-height: 24px;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
`,nt=
|
|
355
|
+
`,nt=p.div`
|
|
356
356
|
display: flex;
|
|
357
357
|
|
|
358
|
-
${
|
|
358
|
+
${Y.mbDown} {
|
|
359
359
|
margin-top: 24px;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
${
|
|
362
|
+
${Y.mbUp} {
|
|
363
363
|
margin-top: 32px;
|
|
364
364
|
}
|
|
365
365
|
justify-content: space-around;
|
|
@@ -369,7 +369,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
${e=>"marryBaby"===e.siteType?"\n .cancel-button {\n background-color: #E55C8A;\n }\n .cancel-button:hover {\n background-color: #E55C8A !important;\n }\n .logout-button {\n border-color: #E55C8A;\n color: #E55C8A;\n }\n ":""}
|
|
372
|
-
`,it=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:n,siteType:i="helloSites"})=>{const{t:o}=
|
|
372
|
+
`,it=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:n,siteType:i="helloSites"})=>{const{t:o}=z();return r((()=>{document.body.classList.toggle("noscroll",e)}),[e]),a.createElement(R,null,a.createElement(T,{type:"confirm",isOpen:e,closeIcon:a.createElement("img",{src:v.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon",loading:"lazy"}),onClose:t},a.createElement(at,null,"helloSites"===i&&a.createElement("img",{src:v.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account",loading:"lazy"}),a.createElement("h2",null,o("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),a.createElement("p",null,o("logout.popup.ask2")),a.createElement(nt,{siteType:i},a.createElement(ae,{className:"logout-button",color:"tertiary",size:"lg",onClick:n},o("logout.popup.button.logout")),a.createElement(ae,{className:"cancel-button",color:"primary",size:"lg",onClick:t},o("logout.popup.button.cancel"))))))},ot=({userInfo:e,siteType:i,onLoginClick:o,SSO_URL:l,currentUrl:s,isMinifyLogin:c,onLogout:d,style:m,isLoading:p,locale:g})=>{const{t:f}=z(),[b,y]=n(!1),x=(null==e?void 0:e.name)||(null==e?void 0:e.username),[E,w]=n(!1);r((()=>{w(!0)}),[]);const{containerRef:k,onContainerFocus:$,onContainerBlur:B,onButtonMouseDown:P,onClose:_}=_e();return p?a.createElement(V,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?a.createElement(a.Fragment,null,a.createElement(Le,{ref:k,style:m,tabIndex:0,onBlur:B,onFocus:()=>{var e;$();const t=null===(e=k.current)||void 0===e?void 0:e.querySelector("#desktop-sticky-header .hhgcomp-navprofilebutton-popup");if(t){const e=`calc(100vh - ${t.getBoundingClientRect().top}px)`;t.setAttribute("style",`max-height: ${e};`)}}},a.createElement("div",{onMouseDown:P},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),a.createElement(I,{size:40,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===i?h.mbColors.pink:h.colors.secondaryBase,placeholderText:x&&x.length?x[0].toUpperCase():"A"})),a.createElement(tt,{dispatchLogout:()=>{_(),y(!0)},isOpen:!1,closePopup:_,siteType:i,userInfo:e})),a.createElement(it,{openLogoutPopup:b,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),y(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){y(!1),document.body.classList.toggle("noscroll",!1),yield d()}))})):a.createElement(je,{style:Object.assign({textDecoration:"none"},m),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:E?void 0:C(`${l}?returnUrl=${s}`),"data-site-type":i},c?a.createElement(De,{onClick:o},a.createElement("img",{src:v.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):a.createElement(a.Fragment,null,"helloSites"===i&&(g===Z.Indonesia||g===Z.PhilippinesTagalog||g===Z.PhilippinesEnglish?a.createElement("img",{className:"mobile-only",src:v.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:o}):a.createElement(V,{className:"mobile-only",size:"sm",onClick:o,leftIcon:a.createElement(Q,{useCurrentColor:!0,isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"}},f("navigation.loginJoin"))),"marryBaby"===i&&a.createElement("div",{className:"mobile-only",onClick:o,style:{paddingLeft:16}},a.createElement(u,{size:"p3",color:h.mbColors.pink},f("navigation.loginJoin"))),a.createElement(V,{className:"login-btn",size:"md",onClick:o,leftIcon:a.createElement(Q,{useCurrentColor:!0,isSolid:!0,size:22})},f("navigation.loginJoin"))))};var lt="spdlGfq",rt="vgS16jX";const st=({onCareHeaderClick:e,currentUrl:t,careUrlFe:n,btnName:i})=>e?a.createElement(ae,{className:lt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},i):a.createElement("a",{href:n,className:`${rt} care-button no-replace-click`},a.createElement(ae,{className:lt,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},i));var ct="y5VJdvw",dt="oVhOSCy",mt="pX8OXTM";const pt=a.createContext({}),gt=t=>{var{children:n}=t,o=e(t,["children"]);const[l,s]=a.useState((()=>o.currentUrl||`https://${"marryBaby"===o.siteType?ne[o.locale||"en-PH"]:E[o.locale||"en-PH"]}${"together"===o.projectType?"/community":"ecom"===o.projectType?"/ecom":"care"===o.projectType?"/care":""}/`));r((()=>{const e=()=>{s(window.location.href)};return window.addEventListener("popstate",e),e(),()=>{window.removeEventListener("popstate",e)}}),[]);const c=(({locale:e,projectType:t,isMobile:a,siteType:n,enableBookingBtn:o})=>i((()=>{const i=!(!a&&"profile"===t),l="discover"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===n,r="marryBaby"!==n&&"marryBaby"!==t&&f.includes(e),s=o&&"marryBaby"!==t&&"discover"===t&&"marryBaby"!==n&&x.includes(e),c="marryBaby"===t||b.includes(e),d="marryBaby"!==n&&y.includes(e),m="marryBaby"!==n&&y.includes(e);let p=P(e,"marryBaby"===n);"undefined"!=typeof window&&(p.includes("//id.")&&(p=p.replace("id.","")),p.includes("//staging-id.")&&(p=p.replace("staging-id.","discover.")));return{enableProfileNavigatorMenu:i,enableSearchBar:l,enableNavCare:r,enableNavCareBooking:s,enableNavTogether:c,enableNavEcom:d,enableProfileEcom:m,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:{HOME_PAGE_URL:p,CARE_URL_FE:`${p}/care`,TOGETHER_URL_FE:`${p}/community`,SSO_URL:B(e,"marryBaby"===n),TOGETHER_API:_(),DISCOVER_API:M(e)}}}),[e,t,a]))({locale:o.locale,projectType:o.projectType,isMobile:o.isMobile,siteType:o.siteType,enableBookingBtn:o.enableBookingBtn});return a.createElement(pt.Provider,{value:Object.assign(Object.assign({},o),{configs:Object.assign(Object.assign({},c),o.configs),currentUrl:o.currentUrl||l})},n)};function ht({className:e}){return a.createElement("div",null,a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:e},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function ut({siteType:e,enableSearch:t,className:n}){return"helloSites"===e?a.createElement("div",null,a.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:t?v.getAssetPath("hamburgerMenuNewWithSearch.svg"):v.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:"home",className:n,loading:"lazy"})):a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:n},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const vt=p.div`
|
|
373
373
|
position: fixed;
|
|
374
374
|
z-index: 201;
|
|
375
375
|
top: calc(100% + 1px);
|
|
@@ -385,7 +385,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
385
385
|
.hhgcomp-navigation-popupwrapper-menuwrapper {
|
|
386
386
|
position: unset;
|
|
387
387
|
}
|
|
388
|
-
`,ft=
|
|
388
|
+
`,ft=p.div`
|
|
389
389
|
padding: 16px;
|
|
390
390
|
padding-bottom: 12px;
|
|
391
391
|
.fake-search-input {
|
|
@@ -398,12 +398,12 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
398
398
|
}
|
|
399
399
|
&[data-theme='marryBaby'] {
|
|
400
400
|
input {
|
|
401
|
-
background: ${
|
|
401
|
+
background: ${h.mbColors.lightGray};
|
|
402
402
|
border-radius: 16px;
|
|
403
403
|
border: none;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
`,bt=
|
|
406
|
+
`,bt=p.div`
|
|
407
407
|
display: block;
|
|
408
408
|
overflow-y: auto;
|
|
409
409
|
flex: 1;
|
|
@@ -412,22 +412,22 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
412
412
|
width: 0;
|
|
413
413
|
display: none;
|
|
414
414
|
}
|
|
415
|
-
`,yt=s((()=>a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9683 19.7465 14.8938 19.0204 16.4118 17.8061L20.3169 21.7112C20.702 22.0963 21.3262 22.0963 21.7112 21.7112C22.0963 21.3262 22.0963 20.702 21.7112 20.3169L17.8061 16.4118C19.0204 14.8938 19.7465 12.9683 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#8C8C8C"})))),xt=({id:e})=>{const{locale:t,configs:{statics:n},siteType:i}=c(pt),{t:o}=
|
|
415
|
+
`,yt=s((()=>a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9683 19.7465 14.8938 19.0204 16.4118 17.8061L20.3169 21.7112C20.702 22.0963 21.3262 22.0963 21.7112 21.7112C22.0963 21.3262 22.0963 20.702 21.7112 20.3169L17.8061 16.4118C19.0204 14.8938 19.7465 12.9683 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#8C8C8C"})))),xt=({id:e})=>{const{locale:t,configs:{statics:n},siteType:i}=c(pt),{t:o}=z();return a.createElement(X,{className:"fake-search-input",name:"search-input-menu-service"+e,size:"md",placeholder:"marryBaby"===i?o("navigation.search.input.placeholder"):o("home.search",{site:w[t||"en-PH"]?w[t||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${n.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:a.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},a.createElement(yt,null))})},Et=p.div`
|
|
416
416
|
padding-right: 1rem;
|
|
417
417
|
margin-top: 10px;
|
|
418
418
|
background: #ffffff;
|
|
419
419
|
padding: 5px 15px;
|
|
420
|
-
${
|
|
420
|
+
${Y.mbUp} {
|
|
421
421
|
border-right: 1px solid #e4e8ec;
|
|
422
422
|
}
|
|
423
|
-
`,wt=
|
|
423
|
+
`,wt=p.a`
|
|
424
424
|
padding: 10px 0;
|
|
425
425
|
position: relative;
|
|
426
426
|
|
|
427
427
|
display: flex;
|
|
428
428
|
align-items: center;
|
|
429
429
|
text-decoration: none;
|
|
430
|
-
color: ${
|
|
430
|
+
color: ${h.colors.gray800};
|
|
431
431
|
* {
|
|
432
432
|
pointer-events: none;
|
|
433
433
|
}
|
|
@@ -440,16 +440,16 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
440
440
|
&[data-theme='marryBaby']:hover,
|
|
441
441
|
&[data-theme='marryBaby'][data-active='true'] {
|
|
442
442
|
p {
|
|
443
|
-
color: ${
|
|
443
|
+
color: ${h.mbColors.pink};
|
|
444
444
|
}
|
|
445
445
|
.icon {
|
|
446
|
-
background-color: ${
|
|
446
|
+
background-color: ${h.mbColors.lightPink};
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
&[data-theme='helloSites']:hover,
|
|
450
450
|
&[data-theme='helloSites'][data-active='true'] {
|
|
451
451
|
p {
|
|
452
|
-
color: ${
|
|
452
|
+
color: ${h.colors.primaryActive};
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
a {
|
|
@@ -464,30 +464,30 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
464
464
|
width: 100%;
|
|
465
465
|
height: 40px;
|
|
466
466
|
border-radius: 50%;
|
|
467
|
-
background-color: ${
|
|
467
|
+
background-color: ${h.mbColors.lightGray};
|
|
468
468
|
img {
|
|
469
469
|
border-radius: 50%;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
`,kt=
|
|
473
|
+
`,kt=p.div`
|
|
474
474
|
margin: 15px 0;
|
|
475
|
-
${
|
|
475
|
+
${Y.mbDown} {
|
|
476
476
|
display: none;
|
|
477
477
|
}
|
|
478
|
-
`,Ct=
|
|
478
|
+
`,Ct=p.div`
|
|
479
479
|
display: flex;
|
|
480
480
|
position: absolute;
|
|
481
481
|
right: 0;
|
|
482
|
-
${
|
|
482
|
+
${Y.mbUp} {
|
|
483
483
|
display: none;
|
|
484
484
|
}
|
|
485
|
-
`,$t=
|
|
485
|
+
`,$t=p.div`
|
|
486
486
|
display: flex;
|
|
487
487
|
align-items: center;
|
|
488
|
-
color: ${
|
|
489
|
-
font-size: ${
|
|
490
|
-
font-weight: ${
|
|
488
|
+
color: ${h.colors.primaryBase};
|
|
489
|
+
font-size: ${h.sizes.fsParagraph4};
|
|
490
|
+
font-weight: ${h.sizes.fwBold};
|
|
491
491
|
line-height: 24px;
|
|
492
492
|
font-size: 14px;
|
|
493
493
|
font-weight: 600;
|
|
@@ -495,19 +495,19 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
495
495
|
pointer-events: none;
|
|
496
496
|
}
|
|
497
497
|
&[data-theme='marryBaby'] {
|
|
498
|
-
color: ${
|
|
498
|
+
color: ${h.mbColors.pink};
|
|
499
499
|
}
|
|
500
|
-
`,Bt=
|
|
500
|
+
`,Bt=p.div`
|
|
501
501
|
display: flex;
|
|
502
502
|
align-items: center;
|
|
503
503
|
margin-left: 10px;
|
|
504
|
-
`,Pt=
|
|
505
|
-
border: 1px solid ${
|
|
504
|
+
`,Pt=p.a`
|
|
505
|
+
border: 1px solid ${h.colors.primaryBase};
|
|
506
506
|
&[data-theme='marryBaby'] {
|
|
507
|
-
border: 1px solid ${
|
|
507
|
+
border: 1px solid ${h.mbColors.pink};
|
|
508
508
|
|
|
509
509
|
svg path {
|
|
510
|
-
stroke: ${
|
|
510
|
+
stroke: ${h.mbColors.pink};
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
position: relative;
|
|
@@ -517,19 +517,19 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
517
517
|
padding: 6px;
|
|
518
518
|
border-radius: 5px;
|
|
519
519
|
margin-top: 20px;
|
|
520
|
-
${
|
|
520
|
+
${Y.mbDown} {
|
|
521
521
|
display: none;
|
|
522
522
|
}
|
|
523
|
-
`;var _t="wnUb-dV",Mt="cjbOxWe",Nt="gB4rp89";const Tt=({item:e,menu:t})=>{const{containerRef:n,onContainerFocus:i,onContainerBlur:o,onButtonMouseDown:l,onClose:r}=_e({allowBgScroll:!0}),s=le();return!e.popupType&&e.link?a.createElement(Dt,{isNew:e.isNew},a.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${s?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:Mt},"care"===e.id&&a.createElement("div",{className:Nt},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name))):a.createElement(Dt,{isNew:e.isNew},a.createElement("div",{ref:n,className:`hhgcomp-navigation-itemnav-headeritem ${s?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:o,onFocus:i,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:l,className:Mt},"care"===e.id&&a.createElement("a",{className:Nt,href:
|
|
523
|
+
`;var _t="wnUb-dV",Mt="cjbOxWe",Nt="gB4rp89";const Tt=({item:e,menu:t})=>{const{containerRef:n,onContainerFocus:i,onContainerBlur:o,onButtonMouseDown:l,onClose:r}=_e({allowBgScroll:!0}),s=le();return!e.popupType&&e.link?a.createElement(Dt,{isNew:e.isNew},a.createElement("a",{className:`hhgcomp-navigation-itemnav-headeritem ${s?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:Mt},"care"===e.id&&a.createElement("div",{className:Nt},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name))):a.createElement(Dt,{isNew:e.isNew},a.createElement("div",{ref:n,className:`hhgcomp-navigation-itemnav-headeritem ${s?"":`menu-handler-${e.id}`} ${"care"===e.id?"force-focus":""}`,tabIndex:0,key:e.id,onBlur:o,onFocus:i,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},a.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:l,className:Mt},"care"===e.id&&a.createElement("a",{className:Nt,href:C(e.link+"/")},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M13.4751 21.5C11.8084 21.5 10.3918 20.9167 9.2251 19.75C8.05843 18.5833 7.4751 17.1667 7.4751 15.5V14.95C6.1251 14.7833 4.9961 14.1833 4.0881 13.15C3.17943 12.1167 2.7251 10.9 2.7251 9.5V4.65C2.7251 4.4 2.81243 4.18733 2.9871 4.012C3.16243 3.83733 3.3751 3.75 3.6251 3.75H5.7251V3.5C5.7251 3.28333 5.7961 3.104 5.9381 2.962C6.07943 2.82067 6.25843 2.75 6.4751 2.75C6.69176 2.75 6.8711 2.82067 7.0131 2.962C7.15443 3.104 7.2251 3.28333 7.2251 3.5V5.5C7.2251 5.71667 7.15443 5.89567 7.0131 6.037C6.8711 6.179 6.69176 6.25 6.4751 6.25C6.25843 6.25 6.07943 6.179 5.9381 6.037C5.7961 5.89567 5.7251 5.71667 5.7251 5.5V5.25H4.2251V9.5C4.2251 10.6 4.61676 11.5417 5.4001 12.325C6.18343 13.1083 7.1251 13.5 8.2251 13.5C9.3251 13.5 10.2668 13.1083 11.0501 12.325C11.8334 11.5417 12.2251 10.6 12.2251 9.5V5.25H10.7251V5.5C10.7251 5.71667 10.6544 5.89567 10.5131 6.037C10.3711 6.179 10.1918 6.25 9.9751 6.25C9.75843 6.25 9.57943 6.179 9.4381 6.037C9.2961 5.89567 9.2251 5.71667 9.2251 5.5V3.5C9.2251 3.28333 9.2961 3.104 9.4381 2.962C9.57943 2.82067 9.75843 2.75 9.9751 2.75C10.1918 2.75 10.3711 2.82067 10.5131 2.962C10.6544 3.104 10.7251 3.28333 10.7251 3.5V3.75H12.8251C13.0751 3.75 13.2878 3.83733 13.4631 4.012C13.6378 4.18733 13.7251 4.4 13.7251 4.65V9.5C13.7251 10.9 13.2711 12.1167 12.3631 13.15C11.4544 14.1833 10.3251 14.7833 8.9751 14.95V15.5C8.9751 16.75 9.41276 17.8127 10.2881 18.688C11.1628 19.5627 12.2251 20 13.4751 20C14.7251 20 15.7878 19.5627 16.6631 18.688C17.5378 17.8127 17.9751 16.75 17.9751 15.5V13.875C17.4584 13.7083 17.0294 13.404 16.6881 12.962C16.3461 12.5207 16.1751 12.0167 16.1751 11.45C16.1751 10.7333 16.4251 10.125 16.9251 9.625C17.4251 9.125 18.0251 8.875 18.7251 8.875C19.4418 8.875 20.0501 9.125 20.5501 9.625C21.0501 10.125 21.3001 10.7333 21.3001 11.45C21.3001 12.0167 21.1294 12.5207 20.7881 12.962C20.4461 13.404 20.0084 13.7083 19.4751 13.875V15.5C19.4751 17.1667 18.8918 18.5833 17.7251 19.75C16.5584 20.9167 15.1418 21.5 13.4751 21.5Z",fill:"#2D87F3",strokeWidth:0}))),e.name,e.popupType&&a.createElement("div",{className:_t},a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},a.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),a.isValidElement(t)?a.cloneElement(t,{onClose:r}):null))},Dt=({isNew:e,children:t})=>{const{t:n}=z();return e?a.createElement(oe,{color:"green",label:n("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):a.createElement(a.Fragment,null,t)},Lt=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:n,onClosePopup:i,menuItems:o,headingTitle:l,activeItem:r})=>{const{siteType:s}=c(pt);return a.createElement(Et,null,a.createElement(kt,null,a.createElement(ee,{tag:"marryBaby"===s?"h5":"h6",as:"p",fontWeight:"semibold"},l)),null==o?void 0:o.slice(0,6).map(((e,t)=>{const o=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${n}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return a.createElement(wt,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":o,"data-is-heading-category":!1,"data-active":e.id&&e.id===r,href:o},!ge(o)&&{target:"_blank"},{"data-theme":s,key:t,onClick:i}),a.createElement("div",{className:"icon"},a.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),a.createElement(Dt,{isNew:e.isNew},a.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),a.createElement(Ct,null,a.createElement("img",{src:v.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))})),t&&a.createElement(Pt,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},a.createElement($t,{onClick:i,"data-theme":s,"data-is-heading-category":!1},t,a.createElement(Bt,null,a.createElement("img",{className:"svg",src:"marryBaby"===s?v.getAssetPath("chevronRightPink.svg"):v.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"})))))},jt=p.div`
|
|
524
524
|
display: grid;
|
|
525
525
|
|
|
526
526
|
grid-template-columns: repeat(3, 1fr);
|
|
527
527
|
gap: 24px;
|
|
528
528
|
margin-bottom: 3.5rem;
|
|
529
|
-
${
|
|
529
|
+
${Y.tdDown} {
|
|
530
530
|
grid-template-columns: repeat(1, 1fr);
|
|
531
531
|
}
|
|
532
|
-
`,
|
|
532
|
+
`,At=p.div`
|
|
533
533
|
height: 152px;
|
|
534
534
|
position: absolute;
|
|
535
535
|
top: 0;
|
|
@@ -550,45 +550,45 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
550
550
|
display: block;
|
|
551
551
|
object-fit: contain;
|
|
552
552
|
}
|
|
553
|
-
${
|
|
553
|
+
${Y.tdDown} {
|
|
554
554
|
margin-bottom: 0;
|
|
555
555
|
padding: 0;
|
|
556
556
|
height: 100%;
|
|
557
557
|
position: unset;
|
|
558
558
|
width: 150px;
|
|
559
559
|
}
|
|
560
|
-
${
|
|
560
|
+
${Y.mbDown} {
|
|
561
561
|
width: 80px;
|
|
562
562
|
}
|
|
563
|
-
`,zt=
|
|
563
|
+
`,zt=p.div`
|
|
564
564
|
background-color: #ffffff;
|
|
565
565
|
border-radius: 4px;
|
|
566
566
|
width: 100%;
|
|
567
567
|
height: 100%;
|
|
568
|
-
`,Ht=
|
|
568
|
+
`,Ht=p.div`
|
|
569
569
|
display: flex;
|
|
570
570
|
margin-top: 1rem;
|
|
571
571
|
align-items: center;
|
|
572
|
-
color: ${
|
|
572
|
+
color: ${h.colors.primaryBase};
|
|
573
573
|
font-weight: 400;
|
|
574
574
|
font-size: 14px;
|
|
575
575
|
text-decoration: none;
|
|
576
|
-
${
|
|
576
|
+
${Y.tdDown} {
|
|
577
577
|
display: none;
|
|
578
578
|
}
|
|
579
|
-
`,St=
|
|
579
|
+
`,St=p.p`
|
|
580
580
|
font-size: 16px;
|
|
581
581
|
font-weight: 600;
|
|
582
582
|
line-height: 1.6;
|
|
583
|
-
color: ${
|
|
584
|
-
${
|
|
583
|
+
color: ${h.colors.gray800};
|
|
584
|
+
${Y.tdDown} {
|
|
585
585
|
padding: 0;
|
|
586
586
|
}
|
|
587
|
-
`,Ut=
|
|
587
|
+
`,Ut=p.p`
|
|
588
588
|
font-size: 14px;
|
|
589
589
|
line-height: 1.6;
|
|
590
590
|
font-weight: 400;
|
|
591
|
-
color: ${
|
|
591
|
+
color: ${h.colors.gray600};
|
|
592
592
|
height: 40px;
|
|
593
593
|
text-overflow: ellipsis;
|
|
594
594
|
overflow: hidden;
|
|
@@ -596,23 +596,23 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
596
596
|
-webkit-line-clamp: 2;
|
|
597
597
|
-webkit-box-orient: vertical;
|
|
598
598
|
margin-bottom: auto;
|
|
599
|
-
${
|
|
599
|
+
${Y.tdDown} {
|
|
600
600
|
height: unset;
|
|
601
601
|
padding: 0;
|
|
602
602
|
}
|
|
603
|
-
`,Ft="hhgcomp-navigation-menucareitem-contentwrapper",Ot=J(
|
|
603
|
+
`,Ft="hhgcomp-navigation-menucareitem-contentwrapper",Ot=J(p.div`
|
|
604
604
|
display: flex;
|
|
605
605
|
flex-direction: column;
|
|
606
606
|
gap: 8px;
|
|
607
607
|
flex: 1;
|
|
608
608
|
z-index: 1;
|
|
609
|
-
${
|
|
609
|
+
${Y.tdDown} {
|
|
610
610
|
gap: 4px;
|
|
611
611
|
}
|
|
612
|
-
`,Ft),Rt=
|
|
612
|
+
`,Ft),Rt=p.a`
|
|
613
613
|
text-decoration: none;
|
|
614
614
|
border-radius: 4px;
|
|
615
|
-
background: ${
|
|
615
|
+
background: ${h.colors.white};
|
|
616
616
|
position: relative;
|
|
617
617
|
overflow: hidden;
|
|
618
618
|
padding: 16px;
|
|
@@ -621,7 +621,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
621
621
|
* {
|
|
622
622
|
pointer-events: none;
|
|
623
623
|
}
|
|
624
|
-
${
|
|
624
|
+
${Y.tdUp} {
|
|
625
625
|
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06),
|
|
626
626
|
0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
627
627
|
gap: 30px;
|
|
@@ -631,7 +631,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
631
631
|
width: 100%;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
${
|
|
634
|
+
${Y.tdDown} {
|
|
635
635
|
padding-top: 16px;
|
|
636
636
|
a {
|
|
637
637
|
display: none;
|
|
@@ -649,7 +649,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
649
649
|
width: 150px;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
${
|
|
652
|
+
${Y.mbDown} {
|
|
653
653
|
box-shadow: 0px 10px 16px rgba(0, 0, 0, 0.04),
|
|
654
654
|
0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
655
655
|
display: flex;
|
|
@@ -659,8 +659,8 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
659
659
|
height: 80px;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
${
|
|
663
|
-
border: 1px solid ${
|
|
662
|
+
${Y.tdOnly} {
|
|
663
|
+
border: 1px solid ${h.colors.neutral100};
|
|
664
664
|
}
|
|
665
665
|
.bg-svg {
|
|
666
666
|
width: 100%;
|
|
@@ -671,7 +671,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
671
671
|
position: absolute;
|
|
672
672
|
display: inline-block;
|
|
673
673
|
}
|
|
674
|
-
`,It=({item:e,index:t=0})=>{var n;const{t:i}=
|
|
674
|
+
`,It=({item:e,index:t=0})=>{var n;const{t:i}=z(),{locale:o,configs:{statics:l}}=c(pt);if(!e)return null;const r=`${l.CARE_URL_FE}/${null===(n=ie[o])||void 0===n?void 0:n.HOSPITAL}/${e.slug}-${e.id}`;return a.createElement(Rt,{key:e.id,href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":r},a.createElement("img",{src:v.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),a.createElement(At,null,a.createElement(zt,null,a.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),a.createElement(Ot,null,a.createElement(St,null,e.name),a.createElement(Ut,null,e.description),a.createElement(Ht,null,i("home.seeMore"),a.createElement("img",{src:v.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))))},Vt=p.div`
|
|
675
675
|
padding: 16px;
|
|
676
676
|
border-radius: 8px;
|
|
677
677
|
position: relative;
|
|
@@ -688,7 +688,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
688
688
|
left: 0;
|
|
689
689
|
z-index: -1;
|
|
690
690
|
}
|
|
691
|
-
${
|
|
691
|
+
${Y.mbDown} {
|
|
692
692
|
display: block;
|
|
693
693
|
.bg-svg {
|
|
694
694
|
right: -24px;
|
|
@@ -698,85 +698,85 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
-
${
|
|
701
|
+
${Y.mbUp} {
|
|
702
702
|
display: grid;
|
|
703
703
|
grid-gap: 10px;
|
|
704
704
|
grid-template-columns: 1fr 3fr;
|
|
705
705
|
}
|
|
706
|
-
`,Zt=
|
|
706
|
+
`,Zt=p.div`
|
|
707
707
|
font-weight: 400;
|
|
708
708
|
font-size: 14px;
|
|
709
709
|
line-height: 24px;
|
|
710
|
-
color: ${
|
|
710
|
+
color: ${h.colors.gray600};
|
|
711
711
|
margin-bottom: 15px;
|
|
712
|
-
`,Gt=
|
|
712
|
+
`,Gt=p.div`
|
|
713
713
|
font-weight: 600;
|
|
714
714
|
font-size: 16px;
|
|
715
715
|
line-height: 26px;
|
|
716
716
|
color: #000000;
|
|
717
717
|
margin-bottom: 4px;
|
|
718
|
-
`,Wt=
|
|
718
|
+
`,Wt=p.div`
|
|
719
719
|
background: #fff;
|
|
720
720
|
padding: 5px;
|
|
721
721
|
display: flex;
|
|
722
722
|
align-items: center;
|
|
723
723
|
justify-content: center;
|
|
724
724
|
border-radius: 50px;
|
|
725
|
-
`,Yt=
|
|
725
|
+
`,Yt=p.div`
|
|
726
726
|
display: flex;
|
|
727
727
|
justify-content: center;
|
|
728
728
|
align-items: center;
|
|
729
729
|
position: relative;
|
|
730
|
-
${
|
|
730
|
+
${Y.mbDown} {
|
|
731
731
|
justify-content: end;
|
|
732
732
|
min-height: 100px;
|
|
733
733
|
}
|
|
734
|
-
`,qt=({title:e,link:t,description:n,cta:i,icon:o})=>{const{siteType:l}=c(pt);return a.createElement(Vt,{"data-theme":l},a.createElement(Yt,null,a.createElement("img",{src:"marryBaby"===l?
|
|
734
|
+
`,qt=({title:e,link:t,description:n,cta:i,icon:o})=>{const{siteType:l}=c(pt);return a.createElement(Vt,{"data-theme":l},a.createElement(Yt,null,a.createElement("img",{src:"marryBaby"===l?v.getAssetPath("navMBSpotlightBgNoData.svg"):v.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(Wt,null,o&&a.createElement("img",{src:o,width:64,height:64,loading:"lazy"}))),a.createElement("div",null,e&&a.createElement(Gt,null,e),n&&a.createElement(Zt,null,n),i&&a.createElement("div",null,a.createElement("a",{href:t},a.createElement(ae,{theme:l,className:"survey-contact-submit",size:"md"},i)))))},Kt=p.div`
|
|
735
735
|
margin-top: 10px;
|
|
736
736
|
background: #ffffff;
|
|
737
737
|
padding: 5px 15px;
|
|
738
738
|
position: relative;
|
|
739
|
-
${
|
|
739
|
+
${Y.mbDown} {
|
|
740
740
|
&:after {
|
|
741
741
|
position: absolute;
|
|
742
742
|
top: 0;
|
|
743
743
|
left: 0;
|
|
744
744
|
width: 100%;
|
|
745
745
|
height: 4px;
|
|
746
|
-
background-color: ${
|
|
746
|
+
background-color: ${h.colors.neutral100};
|
|
747
747
|
content: '';
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
`,Qt=
|
|
750
|
+
`,Qt=p.div`
|
|
751
751
|
margin: 15px 0;
|
|
752
752
|
display: flex;
|
|
753
|
-
`,Jt=
|
|
753
|
+
`,Jt=p.a`
|
|
754
754
|
padding-left: 10px;
|
|
755
755
|
display: flex;
|
|
756
756
|
align-items: center;
|
|
757
757
|
text-decoration: none;
|
|
758
758
|
font-weight: 400;
|
|
759
759
|
font-size: 14px;
|
|
760
|
-
color: ${
|
|
760
|
+
color: ${h.colors.primaryBase};
|
|
761
761
|
&[data-theme='marryBaby'] {
|
|
762
|
-
color: ${
|
|
762
|
+
color: ${h.mbColors.pink};
|
|
763
763
|
}
|
|
764
764
|
img {
|
|
765
765
|
padding-left: 5px;
|
|
766
766
|
}
|
|
767
|
-
${
|
|
767
|
+
${Y.mbDown} {
|
|
768
768
|
margin-left: auto;
|
|
769
769
|
}
|
|
770
|
-
`,Xt=({title:e,viewMore:t,children:n,link:i,dataEventAction:o=""})=>{const{siteType:l}=c(pt);return a.createElement(Kt,null,a.createElement(Qt,null,a.createElement(ee,{tag:"marryBaby"===l?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&a.createElement(Jt,{"data-event-category":"Hamburger Navigation","data-event-action":o,"data-event-label":i,href:i,"data-theme":l},t,a.createElement("img",{src:"marryBaby"===l?
|
|
770
|
+
`,Xt=({title:e,viewMore:t,children:n,link:i,dataEventAction:o=""})=>{const{siteType:l}=c(pt);return a.createElement(Kt,null,a.createElement(Qt,null,a.createElement(ee,{tag:"marryBaby"===l?"h5":"h6",as:"p",fontWeight:"semibold"},e),t&&a.createElement(Jt,{"data-event-category":"Hamburger Navigation","data-event-action":o,"data-event-label":i,href:i,"data-theme":l},t,a.createElement("img",{src:"marryBaby"===l?v.getAssetPath("chevronRightPink.svg"):v.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"},loading:"lazy"}))),n)},ea=({spotlights:e=[],hrefViewMore:t})=>{const{t:n}=z(),{siteType:i}=c(pt);return a.createElement(Xt,{title:n("home.navigator.menu.spotlightHospitals")},0!==e.length?a.createElement(a.Fragment,null,a.createElement(jt,null,null==e?void 0:e.slice(0,3).map(((e,t)=>a.createElement(It,{key:t,index:t,item:e})))),a.createElement("div",{style:{position:"absolute",bottom:"6px",right:"1rem"}},a.createElement("a",{href:t},a.createElement(ae,{theme:i,className:"survey-contact-submit",size:"md"},n("home.navigator.menu.care.homeButton"))))):a.createElement(qt,{title:n("home.navigator.menu.care.noDatas.title"),description:n("home.navigator.menu.care.noDatas.description"),link:t,cta:n("home.navigator.menu.care.homeButton"),icon:v.getAssetPath("community.svg")}))},ta=p.div`
|
|
771
771
|
display: grid;
|
|
772
772
|
|
|
773
773
|
grid-template-columns: repeat(4, 1fr);
|
|
774
774
|
gap: 24px;
|
|
775
|
-
${
|
|
775
|
+
${Y.tdDown} {
|
|
776
776
|
gap: 12px;
|
|
777
777
|
grid-template-columns: 1fr;
|
|
778
778
|
}
|
|
779
|
-
`,aa=
|
|
779
|
+
`,aa=p.a`
|
|
780
780
|
width: 100%;
|
|
781
781
|
display: flex;
|
|
782
782
|
align-items: center;
|
|
@@ -784,7 +784,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
784
784
|
* {
|
|
785
785
|
pointer-events: none;
|
|
786
786
|
}
|
|
787
|
-
`,na=
|
|
787
|
+
`,na=p.div`
|
|
788
788
|
border-radius: 5px;
|
|
789
789
|
display: block;
|
|
790
790
|
overflow: hidden;
|
|
@@ -801,66 +801,66 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
801
801
|
top: 0;
|
|
802
802
|
left: 0;
|
|
803
803
|
}
|
|
804
|
-
${
|
|
804
|
+
${Y.tdDown} {
|
|
805
805
|
width: 72px;
|
|
806
806
|
padding-top: 100px;
|
|
807
807
|
}
|
|
808
|
-
`,ia=
|
|
808
|
+
`,ia=p.p`
|
|
809
809
|
font-size: 16px;
|
|
810
810
|
font-weight: 400;
|
|
811
811
|
padding: 4px 15px;
|
|
812
812
|
line-height: 1.4;
|
|
813
|
-
color: ${
|
|
813
|
+
color: ${h.colors.gray800};
|
|
814
814
|
flex: 1;
|
|
815
|
-
${
|
|
815
|
+
${Y.tdUp} {
|
|
816
816
|
display: none;
|
|
817
817
|
}
|
|
818
|
-
`,oa=({item:e,index:t=0})=>e?a.createElement(aa,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},a.createElement(na,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),a.createElement(ia,null,e.title)):null,la=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:n}=
|
|
818
|
+
`,oa=({item:e,index:t=0})=>e?a.createElement(aa,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},a.createElement(na,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),a.createElement(ia,null,e.title)):null,la=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:n}=z(),{configs:{statics:i}}=c(pt);return a.createElement(Xt,{title:n("home.navigator.menu.spotlights"),viewMore:n("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?a.createElement(ta,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(oa,{key:t,index:t,item:{id:e.id,link:i.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):a.createElement(qt,{title:n("home.navigator.menu.category.noDatas.title"),description:n("home.navigator.menu.category.noDatas.description"),link:t,cta:n("home.navigator.menu.category.noDatas.cta"),icon:v.getAssetPath("Spotlight.svg")}))},ra=p.div`
|
|
819
819
|
display: grid;
|
|
820
820
|
grid-template-columns: repeat(2, 1fr);
|
|
821
821
|
grid-gap: 48px;
|
|
822
|
-
${
|
|
822
|
+
${Y.tdDown} {
|
|
823
823
|
grid-template-columns: 1fr;
|
|
824
824
|
grid-gap: 32px;
|
|
825
825
|
}
|
|
826
|
-
${
|
|
826
|
+
${Y.mbDown} {
|
|
827
827
|
grid-gap: 24px;
|
|
828
828
|
}
|
|
829
|
-
`,sa=
|
|
829
|
+
`,sa=p.div`
|
|
830
830
|
padding: 5px;
|
|
831
831
|
flex: 1;
|
|
832
|
-
`,ca=
|
|
832
|
+
`,ca=p.img`
|
|
833
833
|
width: 88px;
|
|
834
834
|
height: 88px;
|
|
835
835
|
border-radius: 4px;
|
|
836
836
|
object-fit: cover;
|
|
837
|
-
`,da=
|
|
837
|
+
`,da=p.div`
|
|
838
838
|
font-size: 12px;
|
|
839
839
|
font-weight: 600;
|
|
840
|
-
color: ${
|
|
840
|
+
color: ${h.colors.gray800};
|
|
841
841
|
text-decoration: none;
|
|
842
842
|
&[data-theme='marryBaby'] {
|
|
843
843
|
font-weight: 400;
|
|
844
844
|
letter-spacing: -0.2px;
|
|
845
845
|
}
|
|
846
|
-
`,ma=
|
|
846
|
+
`,ma=p.div`
|
|
847
847
|
text-decoration: none;
|
|
848
848
|
font-size: 12px;
|
|
849
849
|
font-weight: 400;
|
|
850
|
-
color: ${
|
|
850
|
+
color: ${h.colors.primaryBase};
|
|
851
851
|
&[data-theme='marryBaby'] {
|
|
852
852
|
font-weight: 400;
|
|
853
853
|
letter-spacing: -0.2px;
|
|
854
854
|
}
|
|
855
|
-
`,pa=
|
|
855
|
+
`,pa=p.div`
|
|
856
856
|
font-size: 12px;
|
|
857
857
|
font-weight: 400;
|
|
858
|
-
color: ${
|
|
859
|
-
`,ga=
|
|
858
|
+
color: ${h.colors.gray600};
|
|
859
|
+
`,ga=p.div`
|
|
860
860
|
font-size: 12px;
|
|
861
861
|
font-weight: 400;
|
|
862
|
-
color: ${
|
|
863
|
-
`,ha=
|
|
862
|
+
color: ${h.colors.gray600};
|
|
863
|
+
`,ha=p.a`
|
|
864
864
|
display: flex;
|
|
865
865
|
gap: 10px;
|
|
866
866
|
text-decoration: none;
|
|
@@ -870,13 +870,13 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
870
870
|
display: block;
|
|
871
871
|
width: 100%;
|
|
872
872
|
height: 1px;
|
|
873
|
-
border-top: 1px dashed ${
|
|
873
|
+
border-top: 1px dashed ${h.colors.neutral100};
|
|
874
874
|
position: absolute;
|
|
875
875
|
bottom: -24px;
|
|
876
|
-
${
|
|
876
|
+
${Y.tdOnly} {
|
|
877
877
|
bottom: -16px;
|
|
878
878
|
}
|
|
879
|
-
${
|
|
879
|
+
${Y.mbDown} {
|
|
880
880
|
bottom: -12px;
|
|
881
881
|
}
|
|
882
882
|
}
|
|
@@ -885,23 +885,23 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
885
885
|
display: none;
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
|
-
${
|
|
888
|
+
${Y.tdUp} {
|
|
889
889
|
&:nth-last-child(2) {
|
|
890
890
|
&::after {
|
|
891
891
|
display: none;
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
`,ua=
|
|
895
|
+
`,ua=p.div`
|
|
896
896
|
display: flex;
|
|
897
897
|
gap: 10px;
|
|
898
898
|
vertical-align: middle;
|
|
899
899
|
align-items: center;
|
|
900
|
-
`,va=
|
|
900
|
+
`,va=p.div`
|
|
901
901
|
margin-top: 8px;
|
|
902
902
|
font-size: 16px;
|
|
903
903
|
font-weight: 600;
|
|
904
|
-
color: ${
|
|
904
|
+
color: ${h.colors.gray800};
|
|
905
905
|
&[data-theme='marryBaby'] {
|
|
906
906
|
margin-top: 12px;
|
|
907
907
|
font-weight: 400;
|
|
@@ -909,41 +909,41 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
909
909
|
line-height: 24px;
|
|
910
910
|
letter-spacing: -0.2px;
|
|
911
911
|
}
|
|
912
|
-
`,fa=
|
|
912
|
+
`,fa=p.div`
|
|
913
913
|
display: flex;
|
|
914
914
|
flex-wrap: wrap;
|
|
915
915
|
align-items: center;
|
|
916
916
|
column-gap: 5px;
|
|
917
|
-
`,ba=
|
|
917
|
+
`,ba=p.div`
|
|
918
918
|
display: flex;
|
|
919
919
|
gap: 4px;
|
|
920
920
|
flex-direction: column;
|
|
921
|
-
`;re.extend(se);const ya=({post:e,index:t=0})=>{var n,i,o,l,r,s,d;const{siteType:m,configs:{statics:p}}=c(pt);if(!e)return null;const g=[p.TOGETHER_URL_FE,null===(n=e.community)||void 0===n?void 0:n.slug].join("/"),h=[g,e.slug].join("/"),u=e.createdAt,v=u?isNaN(new Date(u).getTime())?null:new Date(u):null,f=v?re(v).toNow(!0):u;return a.createElement(ha,{href:h,"data-event-category":"Hamburger Navigation","data-event-action":`Together Click ${t+1}`,"data-event-label":h},a.createElement(sa,null,a.createElement(ua,null,a.createElement(
|
|
921
|
+
`;re.extend(se);const ya=({post:e,index:t=0})=>{var n,i,o,l,r,s,d;const{siteType:m,configs:{statics:p}}=c(pt);if(!e)return null;const g=[p.TOGETHER_URL_FE,null===(n=e.community)||void 0===n?void 0:n.slug].join("/"),h=[g,e.slug].join("/"),u=e.createdAt,v=u?isNaN(new Date(u).getTime())?null:new Date(u):null,f=v?re(v).toNow(!0):u;return a.createElement(ha,{href:h,"data-event-category":"Hamburger Navigation","data-event-action":`Together Click ${t+1}`,"data-event-label":h},a.createElement(sa,null,a.createElement(ua,null,a.createElement(D,{avatar:null===(i=e.author)||void 0===i?void 0:i.avatar,username:(null===(o=e.author)||void 0===o?void 0:o.name)||(null===(l=e.author)||void 0===l?void 0:l.username)}),a.createElement(ba,null,a.createElement(da,{"data-theme":m},null===(r=e.author)||void 0===r?void 0:r.name),a.createElement(fa,null,a.createElement(ma,{"data-event-category":"Hamburger Navigation","data-event-action":`Topic Click ${t+1}`,"data-event-label":g,onClick:e=>{e.preventDefault(),location.href=g},"data-theme":m},null===(s=e.community)||void 0===s?void 0:s.name),a.createElement(ga,null,"•"),a.createElement(pa,{"data-theme":m},f)))),a.createElement(va,null,e.title)),!!(null===(d=e.photos)||void 0===d?void 0:d.length)&&a.createElement(ca,{loading:"lazy",src:e.photos[0]}))},xa=({spotlights:e=[]})=>{const{configs:{statics:t}}=c(pt),{t:n}=z();return a.createElement(Xt,{title:n("home.navigator.menu.trendingPosts"),viewMore:n("home.navigator.menu.trendingPosts.seeMore"),link:$(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?a.createElement(ra,null,null==e?void 0:e.slice(0,4).map(((e,t)=>a.createElement(ya,{index:t,post:e,key:e.id})))):a.createElement(qt,{title:n("home.navigator.menu.together.noPosts.title"),description:n("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:n("home.navigator.menu.together.noPosts.cta"),icon:v.getAssetPath("community.svg")}))},Ea=p.div`
|
|
922
922
|
display: grid;
|
|
923
923
|
|
|
924
924
|
grid-template-columns: repeat(3, 1fr);
|
|
925
925
|
gap: 24px;
|
|
926
926
|
margin-bottom: 3.5rem;
|
|
927
|
-
${
|
|
927
|
+
${Y.tdDown} {
|
|
928
928
|
grid-template-columns: repeat(1, 1fr);
|
|
929
929
|
}
|
|
930
|
-
`,wa=
|
|
930
|
+
`,wa=p.a`
|
|
931
931
|
text-decoration: none;
|
|
932
932
|
display: flex;
|
|
933
933
|
align-items: center;
|
|
934
|
-
`,ka=({item:e,index:t=0})=>e?a.createElement(wa,{href:e.url,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":e.url},a.createElement("img",{loading:"lazy",alt:e.name,src:e.featuredImage||"/images/avatar.jpg",style:{width:"40px",height:"40px"}}),a.createElement(
|
|
934
|
+
`,ka=({item:e,index:t=0})=>e?a.createElement(wa,{href:e.url,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":e.url},a.createElement("img",{loading:"lazy",alt:e.name,src:e.featuredImage||"/images/avatar.jpg",style:{width:"40px",height:"40px"}}),a.createElement(u,{size:"p2",weight:"regular",style:{marginLeft:16}},e.name),a.createElement("img",{src:v.getAssetPath("chevronRightActive.svg"),style:{width:"20px",height:"20px",marginLeft:"auto"},loading:"lazy"})):null,Ca=({helpfulUrls:e=[]})=>{const{t:t}=z();return e.length?a.createElement(Xt,{title:t("home.navigator.menu.spotlightEcom")},0!==e.length?a.createElement(Ea,null,null==e?void 0:e.slice(0,5).map(((e,t)=>a.createElement(ka,{key:t,index:t,item:e})))):a.createElement(a.Fragment,null)):null},$a=p.div`
|
|
935
935
|
display: grid;
|
|
936
936
|
|
|
937
937
|
grid-template-columns: repeat(3, 1fr);
|
|
938
938
|
gap: 24px;
|
|
939
|
-
${
|
|
939
|
+
${Y.tdDown} {
|
|
940
940
|
grid-template-columns: 1fr;
|
|
941
941
|
gap: 12px;
|
|
942
942
|
}
|
|
943
|
-
`,Ba=
|
|
943
|
+
`,Ba=p.a`
|
|
944
944
|
text-decoration: none;
|
|
945
945
|
border-radius: 4px;
|
|
946
|
-
background: ${
|
|
946
|
+
background: ${h.colors.primary50};
|
|
947
947
|
position: relative;
|
|
948
948
|
overflow: hidden;
|
|
949
949
|
display: flex;
|
|
@@ -956,7 +956,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
956
956
|
right: 0;
|
|
957
957
|
height: 100%;
|
|
958
958
|
position: absolute;
|
|
959
|
-
${
|
|
959
|
+
${Y.tdDown} {
|
|
960
960
|
top: calc(51% - 68px);
|
|
961
961
|
right: -8px;
|
|
962
962
|
}
|
|
@@ -966,12 +966,12 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
966
966
|
display: flex;
|
|
967
967
|
width: 100%;
|
|
968
968
|
}
|
|
969
|
-
${
|
|
969
|
+
${Y.tdDown} {
|
|
970
970
|
padding-top: 16px;
|
|
971
971
|
display: flex;
|
|
972
972
|
align-items: center;
|
|
973
973
|
}
|
|
974
|
-
`,Pa=
|
|
974
|
+
`,Pa=p.div`
|
|
975
975
|
width: 64px;
|
|
976
976
|
height: 64px;
|
|
977
977
|
background: white;
|
|
@@ -989,28 +989,28 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
989
989
|
display: block;
|
|
990
990
|
transform: translate(-50%, -50%);
|
|
991
991
|
}
|
|
992
|
-
${
|
|
992
|
+
${Y.tdDown} {
|
|
993
993
|
position: relative;
|
|
994
994
|
top: unset;
|
|
995
995
|
right: unset;
|
|
996
996
|
}
|
|
997
|
-
`,_a=
|
|
997
|
+
`,_a=p.div`
|
|
998
998
|
display: flex;
|
|
999
999
|
align-items: center;
|
|
1000
|
-
color: ${
|
|
1000
|
+
color: ${h.colors.primaryBase};
|
|
1001
1001
|
font-weight: 400;
|
|
1002
1002
|
font-size: 14px;
|
|
1003
1003
|
text-decoration: none;
|
|
1004
|
-
`,Ma=
|
|
1004
|
+
`,Ma=p.p`
|
|
1005
1005
|
font-size: 16px;
|
|
1006
1006
|
font-weight: 600;
|
|
1007
1007
|
line-height: 1.4;
|
|
1008
|
-
color: ${
|
|
1009
|
-
`,Na=
|
|
1008
|
+
color: ${h.colors.gray800};
|
|
1009
|
+
`,Na=p.p`
|
|
1010
1010
|
font-size: 14px;
|
|
1011
1011
|
line-height: 1.4;
|
|
1012
1012
|
font-weight: 400;
|
|
1013
|
-
color: ${
|
|
1013
|
+
color: ${h.colors.gray600};
|
|
1014
1014
|
height: 40px;
|
|
1015
1015
|
text-overflow: ellipsis;
|
|
1016
1016
|
overflow: hidden;
|
|
@@ -1018,22 +1018,22 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1018
1018
|
-webkit-line-clamp: 2;
|
|
1019
1019
|
-webkit-box-orient: vertical;
|
|
1020
1020
|
margin-bottom: auto;
|
|
1021
|
-
${
|
|
1021
|
+
${Y.tdDown} {
|
|
1022
1022
|
display: none;
|
|
1023
1023
|
}
|
|
1024
|
-
`,Ta=
|
|
1024
|
+
`,Ta=p.div`
|
|
1025
1025
|
display: flex;
|
|
1026
1026
|
flex-direction: column;
|
|
1027
1027
|
flex: 1;
|
|
1028
1028
|
z-index: 1;
|
|
1029
|
-
${
|
|
1029
|
+
${Y.tdUp} {
|
|
1030
1030
|
gap: 8px;
|
|
1031
1031
|
}
|
|
1032
|
-
${
|
|
1032
|
+
${Y.tdDown} {
|
|
1033
1033
|
gap: 4px;
|
|
1034
1034
|
flex: 1;
|
|
1035
1035
|
}
|
|
1036
|
-
`,Da=({item:e,index:t=0})=>{const{t:n}=
|
|
1036
|
+
`,Da=({item:e,index:t=0})=>{const{t:n}=z(),{configs:{statics:i}}=c(pt);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0;return a.createElement(Ba,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o},a.createElement("img",{src:v.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(Ta,null,a.createElement(Ma,null,e.title),a.createElement(Na,null,e.subtitle),a.createElement(_a,null,n("home.seeMore"),a.createElement("img",{src:v.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"},loading:"lazy"}))),a.createElement(Pa,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},La=p.a`
|
|
1037
1037
|
text-decoration: none;
|
|
1038
1038
|
border-radius: 12px;
|
|
1039
1039
|
|
|
@@ -1059,21 +1059,21 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
1061
|
&[data-color='pink'] {
|
|
1062
|
-
background: ${
|
|
1062
|
+
background: ${h.mbColors.tonePink};
|
|
1063
1063
|
.bg-svg {
|
|
1064
|
-
fill: ${
|
|
1064
|
+
fill: ${h.mbColors.peach};
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
&[data-color='orange'] {
|
|
1068
|
-
background: ${
|
|
1068
|
+
background: ${h.mbColors.toneYellow};
|
|
1069
1069
|
.bg-svg {
|
|
1070
|
-
fill: ${
|
|
1070
|
+
fill: ${h.mbColors.orange};
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
&[data-color='green'] {
|
|
1074
|
-
background: ${
|
|
1074
|
+
background: ${h.mbColors.toneGreen};
|
|
1075
1075
|
.bg-svg {
|
|
1076
|
-
fill: ${
|
|
1076
|
+
fill: ${h.mbColors.mint};
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
@@ -1082,13 +1082,13 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1082
1082
|
display: flex;
|
|
1083
1083
|
width: 100%;
|
|
1084
1084
|
}
|
|
1085
|
-
${
|
|
1085
|
+
${Y.tdDown} {
|
|
1086
1086
|
padding-top: 16px;
|
|
1087
1087
|
display: flex;
|
|
1088
1088
|
align-items: flex-start;
|
|
1089
1089
|
justify-content: flex-start;
|
|
1090
1090
|
}
|
|
1091
|
-
${
|
|
1091
|
+
${Y.mbDown} {
|
|
1092
1092
|
padding-top: 0;
|
|
1093
1093
|
padding-left: 80px;
|
|
1094
1094
|
height: 96px;
|
|
@@ -1100,20 +1100,20 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1100
1100
|
left: 16px;
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
|
-
${
|
|
1103
|
+
${Y.tdUp} {
|
|
1104
1104
|
min-height: 296px;
|
|
1105
1105
|
}
|
|
1106
1106
|
.mobile-only {
|
|
1107
|
-
${
|
|
1107
|
+
${Y.tdUp} {
|
|
1108
1108
|
display: none;
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
.desktop-only {
|
|
1112
|
-
${
|
|
1112
|
+
${Y.tdDown} {
|
|
1113
1113
|
display: none;
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
|
-
`,
|
|
1116
|
+
`,ja=p.div`
|
|
1117
1117
|
width: 48px;
|
|
1118
1118
|
height: 48px;
|
|
1119
1119
|
background: white;
|
|
@@ -1131,17 +1131,17 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1131
1131
|
display: block;
|
|
1132
1132
|
transform: translate(-50%, -50%);
|
|
1133
1133
|
}
|
|
1134
|
-
${
|
|
1134
|
+
${Y.tdDown} {
|
|
1135
1135
|
position: relative;
|
|
1136
1136
|
top: unset;
|
|
1137
1137
|
right: unset;
|
|
1138
1138
|
}
|
|
1139
|
-
${
|
|
1139
|
+
${Y.mbDown} {
|
|
1140
1140
|
position: absolute;
|
|
1141
1141
|
left: 32px;
|
|
1142
1142
|
top: 28px;
|
|
1143
1143
|
}
|
|
1144
|
-
`,
|
|
1144
|
+
`,Aa=p.div`
|
|
1145
1145
|
display: flex;
|
|
1146
1146
|
align-items: center;
|
|
1147
1147
|
background: white;
|
|
@@ -1153,30 +1153,30 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1153
1153
|
height: 20px;
|
|
1154
1154
|
|
|
1155
1155
|
svg path {
|
|
1156
|
-
fill: ${
|
|
1156
|
+
fill: ${h.mbColors.gray};
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
|
-
${
|
|
1159
|
+
${Y.tdDown} {
|
|
1160
1160
|
background: none;
|
|
1161
1161
|
width: 100%;
|
|
1162
1162
|
font-weight: 400;
|
|
1163
1163
|
font-size: 12px;
|
|
1164
1164
|
line-height: 18px;
|
|
1165
|
-
color: ${
|
|
1165
|
+
color: ${h.mbColors.pink};
|
|
1166
1166
|
padding-left: 16px;
|
|
1167
1167
|
}
|
|
1168
|
-
`,za=
|
|
1168
|
+
`,za=p.p`
|
|
1169
1169
|
font-weight: 600;
|
|
1170
1170
|
font-size: 14px;
|
|
1171
1171
|
line-height: 24px;
|
|
1172
1172
|
letter-spacing: -0.2px;
|
|
1173
|
-
color: ${
|
|
1174
|
-
`,Ha=
|
|
1173
|
+
color: ${h.colors.gray800};
|
|
1174
|
+
`,Ha=p.p`
|
|
1175
1175
|
font-weight: 400;
|
|
1176
1176
|
font-size: 12px;
|
|
1177
1177
|
line-height: 18px;
|
|
1178
1178
|
letter-spacing: -0.2px;
|
|
1179
|
-
color: ${
|
|
1179
|
+
color: ${h.colors.gray600};
|
|
1180
1180
|
height: 54px;
|
|
1181
1181
|
text-overflow: ellipsis;
|
|
1182
1182
|
overflow: hidden;
|
|
@@ -1184,78 +1184,78 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1184
1184
|
-webkit-line-clamp: 3;
|
|
1185
1185
|
-webkit-box-orient: vertical;
|
|
1186
1186
|
margin-bottom: auto;
|
|
1187
|
-
${
|
|
1187
|
+
${Y.tdDown} {
|
|
1188
1188
|
display: none;
|
|
1189
1189
|
}
|
|
1190
|
-
`,Sa=
|
|
1190
|
+
`,Sa=p.div`
|
|
1191
1191
|
display: flex;
|
|
1192
1192
|
flex: 1;
|
|
1193
1193
|
z-index: 1;
|
|
1194
1194
|
align-items: flex-end;
|
|
1195
1195
|
justify-content: flex-end;
|
|
1196
|
-
${
|
|
1196
|
+
${Y.tdUp} {
|
|
1197
1197
|
gap: 8px;
|
|
1198
1198
|
flex-direction: row;
|
|
1199
1199
|
}
|
|
1200
1200
|
|
|
1201
|
-
${
|
|
1201
|
+
${Y.tdDown} {
|
|
1202
1202
|
align-items: flex-start;
|
|
1203
1203
|
justify-content: flex-start;
|
|
1204
1204
|
gap: 4px;
|
|
1205
1205
|
}
|
|
1206
|
-
`,Ua=
|
|
1206
|
+
`,Ua=p.div`
|
|
1207
1207
|
display: flex;
|
|
1208
1208
|
flex-direction: column;
|
|
1209
1209
|
flex: 1;
|
|
1210
1210
|
z-index: 1;
|
|
1211
|
-
${
|
|
1211
|
+
${Y.tdUp} {
|
|
1212
1212
|
gap: 8px;
|
|
1213
1213
|
}
|
|
1214
|
-
${
|
|
1214
|
+
${Y.tdDown} {
|
|
1215
1215
|
gap: 4px;
|
|
1216
1216
|
flex: 1;
|
|
1217
1217
|
padding-left: 16px;
|
|
1218
1218
|
}
|
|
1219
|
-
`,Fa=
|
|
1219
|
+
`,Fa=p.div`
|
|
1220
1220
|
display: flex;
|
|
1221
1221
|
flex-direction: row;
|
|
1222
1222
|
flex: 1;
|
|
1223
1223
|
z-index: 1;
|
|
1224
|
-
${
|
|
1224
|
+
${Y.tdUp} {
|
|
1225
1225
|
gap: 8px;
|
|
1226
1226
|
justify-content: flex-end;
|
|
1227
1227
|
align-items: flex-end;
|
|
1228
1228
|
}
|
|
1229
|
-
${
|
|
1229
|
+
${Y.tdDown} {
|
|
1230
1230
|
flex-direction: column;
|
|
1231
1231
|
justify-content: flex-start;
|
|
1232
1232
|
align-items: flex-start;
|
|
1233
1233
|
}
|
|
1234
|
-
`,Oa=({item:e,index:t=0,color:n})=>{const{t:i}=
|
|
1234
|
+
`,Oa=({item:e,index:t=0,color:n})=>{const{t:i}=z(),{configs:{statics:o}}=c(pt);if(!e)return null;const l=e.link?e.link.startsWith("http")?e.link:`${o.HOME_PAGE_URL}${e.link}`:void 0,r=()=>a.createElement(ja,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),s=()=>a.createElement(Fa,null,a.createElement(Ua,null,a.createElement(za,null,e.title),a.createElement(Ha,null,e.subtitle)),a.createElement(Aa,null,a.createElement("div",{className:"mobile-only"},i("home.seeMore")),a.createElement("img",{src:v.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"},loading:"lazy"})));return a.createElement(La,{href:l,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":l,"data-color":n},a.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none"},a.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),a.createElement("img",{src:v.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),a.createElement(Sa,null,a.createElement("div",{className:"mobile-only"},r()),a.createElement("div",{className:"desktop-only"},s())),a.createElement("div",{className:"mobile-only"},s()),a.createElement("div",{className:"desktop-only"},r()))},Ra=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:n}=z(),i=["pink","orange","green"],{siteType:o}=c(pt);return a.createElement(Xt,{title:n("home.navigator.menu.spotlightTools")},0!==t.length&&a.createElement($a,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===o?a.createElement(Oa,{key:t,index:t,item:e,color:i[t]}):a.createElement(Da,{key:t,index:t,item:e})))),0===t.length&&a.createElement(qt,{title:n("home.navigator.menu.healthTools.noDatas.title"),description:n("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:n("home.navigator.menu.healthTools.noDatas.cta"),icon:v.getAssetPath("community.svg")}))},Ia=({closePopup:e,menuItems:t=[]})=>{var n,i;const{siteType:o,ssrMenuContent:{categories:l,healthTools:r,care:s,together:d,ecom:m},activeMenuService:p,configs:{statics:g,enableSearchBar:h},locale:u}=c(pt),{t:v}=z();return a.createElement(vt,{id:"categories-menu"},h?a.createElement(ft,{"data-theme":o,onClick:()=>{window.location.href=`${g.HOME_PAGE_URL}/search`}},a.createElement(xt,{id:"mobile"})):null,a.createElement(bt,null,a.createElement(Lt,{UrlFE:g.HOME_PAGE_URL,titleBtnViewMore:v("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:v("home.navigator.menuItem.healthCategories"),onClosePopup:e,activeItem:p}),"categories"===p&&a.createElement(la,{spotlightsList:(null==l?void 0:l.spotlights)||[],hrefViewMore:`${g.HOME_PAGE_URL}${"tl-PH"===u?"/fil":""}/spotlight/`}),"tools"===p&&a.createElement(Ra,{spotlightHealthTools:null==r?void 0:r.spotlights,hrefViewMore:`${g.HOME_PAGE_URL}${"tl-PH"===u?"/fil":""}${(null===(n=k[u])||void 0===n?void 0:n.HEALTH_TOOLS)||""}`}),"care"===p&&a.createElement(ea,{spotlights:null==s?void 0:s.spotlights,hrefViewMore:`${g.CARE_URL_FE}/${null===(i=ie[u])||void 0===i?void 0:i.SPECIALTIES}`}),"together"===p&&a.createElement(xa,{spotlights:null==d?void 0:d.spotlights}),"ecom"===p&&a.createElement(Ca,{helpfulUrls:null==m?void 0:m.helpfulUrls})))},Va=({menuItems:e})=>{const{siteType:t,configs:{enableSearchBar:n}}=c(pt),{containerRef:i,onContainerFocus:o,onContainerBlur:l,onButtonMouseDown:r,onClose:s}=_e();return a.createElement(Pe,{mediaQueryKey:"mbDown"},a.createElement("header",{className:ct},a.createElement("div",{className:dt,ref:i,role:"button",tabIndex:0,onBlur:l,onFocus:o},a.createElement("div",{className:mt,onMouseDown:r,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},a.createElement(ht,{className:"mobile-close-icon"}),a.createElement(ut,{siteType:t,enableSearch:n,className:"mobile-hamburger-icon"})),a.createElement(Ia,{menuItems:e,closePopup:s}))))},Za="profile/posts?website_url={websiteUrl}",Ga=p.div`
|
|
1235
1235
|
z-index: 201;
|
|
1236
1236
|
width: 100%;
|
|
1237
1237
|
align-items: center;
|
|
1238
1238
|
|
|
1239
|
-
background-color: ${
|
|
1239
|
+
background-color: ${h.colors.white};
|
|
1240
1240
|
|
|
1241
1241
|
transition: height 0.3s, transform 0.3s;
|
|
1242
1242
|
|
|
1243
1243
|
&[data-site-type='helloSites'] {
|
|
1244
|
-
border-bottom: 1px solid ${
|
|
1244
|
+
border-bottom: 1px solid ${h.colors.neutral100};
|
|
1245
1245
|
}
|
|
1246
1246
|
&[data-sponsored='true'] {
|
|
1247
1247
|
border-bottom: none;
|
|
1248
1248
|
}
|
|
1249
1249
|
&[data-marry-baby-tone='pink'] {
|
|
1250
|
-
background-color: ${
|
|
1250
|
+
background-color: ${h.mbColors.lightPink};
|
|
1251
1251
|
}
|
|
1252
1252
|
|
|
1253
|
-
${
|
|
1253
|
+
${Y.mbUp} {
|
|
1254
1254
|
&[data-sitewide-banner-shown='true'][data-collapsed='true'] {
|
|
1255
1255
|
transform: translateY(-64px);
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
|
-
${
|
|
1258
|
+
${Y.mbDown} {
|
|
1259
1259
|
&[data-site-type='marryBaby'] {
|
|
1260
1260
|
border-bottom: none;
|
|
1261
1261
|
}
|
|
@@ -1294,7 +1294,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1294
1294
|
|
|
1295
1295
|
.marry-baby {
|
|
1296
1296
|
input {
|
|
1297
|
-
background: ${
|
|
1297
|
+
background: ${h.mbColors.lightGray};
|
|
1298
1298
|
border-radius: 16px;
|
|
1299
1299
|
border: none;
|
|
1300
1300
|
}
|
|
@@ -1306,7 +1306,7 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1306
1306
|
right: 16px;
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
-
`,Wa=
|
|
1309
|
+
`,Wa=p.div`
|
|
1310
1310
|
display: flex;
|
|
1311
1311
|
height: 100%;
|
|
1312
1312
|
align-items: center;
|
|
@@ -1314,11 +1314,11 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1314
1314
|
justify-content: space-between;
|
|
1315
1315
|
padding: 0 2rem;
|
|
1316
1316
|
height: 56px;
|
|
1317
|
-
${
|
|
1317
|
+
${Y.pcDown} {
|
|
1318
1318
|
padding: 0 1rem;
|
|
1319
1319
|
}
|
|
1320
1320
|
|
|
1321
|
-
${
|
|
1321
|
+
${Y.mbDown} {
|
|
1322
1322
|
position: relative;
|
|
1323
1323
|
height: 56px;
|
|
1324
1324
|
background: white;
|
|
@@ -1329,50 +1329,50 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1329
1329
|
width: 100%;
|
|
1330
1330
|
margin: 0 auto;
|
|
1331
1331
|
padding: 0 16px;
|
|
1332
|
-
${
|
|
1332
|
+
${Y.tdUp} {
|
|
1333
1333
|
max-width: 1064px;
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
|
-
`,Ya=
|
|
1336
|
+
`,Ya=p.div`
|
|
1337
1337
|
display: flex;
|
|
1338
1338
|
align-items: center;
|
|
1339
1339
|
height: 100%;
|
|
1340
1340
|
gap: 24px;
|
|
1341
|
-
${
|
|
1341
|
+
${Y.pcDown} {
|
|
1342
1342
|
flex-shrink: 0;
|
|
1343
1343
|
gap: 16px;
|
|
1344
1344
|
}
|
|
1345
|
-
${
|
|
1345
|
+
${Y.pcDown} {
|
|
1346
1346
|
gap: 12px;
|
|
1347
1347
|
}
|
|
1348
1348
|
&[data-site-type='marryBaby'] {
|
|
1349
1349
|
gap: 26px;
|
|
1350
1350
|
}
|
|
1351
|
-
`,qa=
|
|
1351
|
+
`,qa=p.div`
|
|
1352
1352
|
display: flex;
|
|
1353
1353
|
align-items: center;
|
|
1354
1354
|
height: 100%;
|
|
1355
1355
|
flex-shrink: 0;
|
|
1356
1356
|
/* gap: 16px; */
|
|
1357
|
-
${
|
|
1357
|
+
${Y.tdDown} {
|
|
1358
1358
|
flex-shrink: 0.6;
|
|
1359
1359
|
}
|
|
1360
1360
|
.hhgcomp-navigation-itemnav-headeritem {
|
|
1361
1361
|
gap: 2px;
|
|
1362
|
-
${
|
|
1362
|
+
${Y.pcUp} {
|
|
1363
1363
|
padding: 0 10px;
|
|
1364
1364
|
}
|
|
1365
|
-
${
|
|
1365
|
+
${Y.pcDown} {
|
|
1366
1366
|
padding: 0 6px;
|
|
1367
1367
|
}
|
|
1368
|
-
${
|
|
1368
|
+
${Y.mbDown} {
|
|
1369
1369
|
display: none;
|
|
1370
1370
|
}
|
|
1371
1371
|
a {
|
|
1372
1372
|
text-decoration: none;
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
`;
|
|
1375
|
+
`;p.div`
|
|
1376
1376
|
.fake-search-input {
|
|
1377
1377
|
pointer-events: none;
|
|
1378
1378
|
input {
|
|
@@ -1381,33 +1381,33 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1381
1381
|
padding-bottom: 10px;
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
|
-
`;const Ka=
|
|
1384
|
+
`;const Ka=p.div`
|
|
1385
1385
|
margin-left: 16px;
|
|
1386
1386
|
display: flex;
|
|
1387
1387
|
gap: 12px;
|
|
1388
1388
|
align-items: center;
|
|
1389
1389
|
flex-shrink: 0;
|
|
1390
|
-
${
|
|
1390
|
+
${Y.pcDown} {
|
|
1391
1391
|
margin-left: 8px;
|
|
1392
1392
|
gap: 8px;
|
|
1393
1393
|
}
|
|
1394
|
-
${
|
|
1394
|
+
${Y.mbDown} {
|
|
1395
1395
|
margin-left: 0;
|
|
1396
1396
|
gap: 10px;
|
|
1397
1397
|
}
|
|
1398
|
-
`,Qa=
|
|
1398
|
+
`,Qa=p.div`
|
|
1399
1399
|
display: flex;
|
|
1400
1400
|
align-items: center;
|
|
1401
1401
|
height: 100%;
|
|
1402
1402
|
&[data-site-type='marryBaby'] {
|
|
1403
1403
|
gap: 26px;
|
|
1404
1404
|
}
|
|
1405
|
-
`,Ja=e=>{var t,a,n,i;return e?{termId:e.term_id||null,sponsor:e.sponsor?(i=e.sponsor,i?{title:i.title,logo:i.logo,link:i.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>Ja(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(n=e.reviewed_by,{postTitle:n.post_title,permalink:n.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},Xa=e=>{var t,a;if(!e)return{};const n=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),i=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),o=e.link?e.link.startsWith("http")||n?e.link:i?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:o,subtitle:e.subtitle,title:e.title}},en=e=>{var t,a,n,i,o;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(n=e.object_id)||void 0===n?void 0:n.name)||"",name:(null===(i=e.object_id)||void 0===i?void 0:i.name)||"",slug:(null===(o=e.object_id)||void 0===o?void 0:o.slug)||""}:{}},tn=e=>{var t,a,n,i,o;return e&&(null==e?void 0:e.object_id)?{id:null===(t=e.object_id)||void 0===t?void 0:t.id,name:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",logo:(null===(n=null==e?void 0:e.object_id)||void 0===n?void 0:n.logo)||"",description:(null===(i=e.object_id)||void 0===i?void 0:i.description)||"",slug:(null===(o=e.object_id)||void 0===o?void 0:o.slug)||""}:{}},an=(e,t,a,n)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+
|
|
1405
|
+
`,Ja=e=>{var t,a,n,i;return e?{termId:e.term_id||null,sponsor:e.sponsor?(i=e.sponsor,i?{title:i.title,logo:i.logo,link:i.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>Ja(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(a=e.cat_parent)||void 0===a?void 0:a.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(n=e.reviewed_by,{postTitle:n.post_title,permalink:n.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},Xa=e=>{var t,a;if(!e)return{};const n=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),i=null===(a=e.link)||void 0===a?void 0:a.startsWith("/fil/"),o=e.link?e.link.startsWith("http")||n?e.link:i?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:o,subtitle:e.subtitle,title:e.title}},en=e=>{var t,a,n,i,o;return e&&(null==e?void 0:e.object_id)?{thumbnail:(null===(t=null==e?void 0:e.object_id)||void 0===t?void 0:t.logo)||"",link:(null===(a=null==e?void 0:e.object_id)||void 0===a?void 0:a.slug)||"",subtitle:(null===(n=e.object_id)||void 0===n?void 0:n.name)||"",name:(null===(i=e.object_id)||void 0===i?void 0:i.name)||"",slug:(null===(o=e.object_id)||void 0===o?void 0:o.slug)||""}:{}},tn=e=>{var t,a,n,i,o;return e&&(null==e?void 0:e.object_id)?{id:null===(t=e.object_id)||void 0===t?void 0:t.id,name:(null===(a=e.object_id)||void 0===a?void 0:a.name)||"",logo:(null===(n=null==e?void 0:e.object_id)||void 0===n?void 0:n.logo)||"",description:(null===(i=e.object_id)||void 0===i?void 0:i.description)||"",slug:(null===(o=e.object_id)||void 0===o?void 0:o.slug)||""}:{}},an=(e,t,a,n)=>(a||"https://together.hellohealthgroup.com/")+"api/v1/"+G(Za,Object.assign(Object.assign({},n),{websiteUrl:t?"https://marrybaby.vn":`https://${E[e]}`})),nn=({type:e,specialtySlug:t,locale:a})=>{var n,i;return`${null===(n=ie[a])||void 0===n?void 0:n.ALL}/${(null===(i=ie[a])||void 0===i?void 0:i[e])||"doctor"}/${null!=t?t:""}`},on=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},ln=e=>{const t=new Date;if(null==e?void 0:e.startDate){const a=new Date(e.startDate);if(t.getTime()<a.getTime())return!1}if(null==e?void 0:e.endDate){const a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0};var rn="q3nL5cp",sn="_2DNf80G",cn="Q-glX-n";const dn=({onClosePopup:e})=>a.createElement("div",{className:`${cn} close-btn`,onClick:e},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),mn=({onClosePopup:e,isDisplay:t,children:n,isNavMenu:i,hideCloseBtn:o})=>a.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!i},a.createElement(ce,null,!o&&a.createElement("div",{className:sn},a.createElement(dn,{onClosePopup:e})),a.createElement(ce,{className:rn},n))),pn=({careSpecialties:e=[],isOpen:t,onClose:n,spotlights:i=[]})=>{var o;const{t:l}=z(),{locale:r,configs:{statics:s}}=c(pt);return a.createElement(mn,{onClosePopup:n,isDisplay:t,isNavMenu:!0},a.createElement(Lt,{headingTitle:l("home.navigator.menuItem.specialties"),hrefViewMore:`${s.CARE_URL_FE}/`,UrlFE:s.CARE_URL_FE,onClosePopup:n,titleBtnViewMore:l("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:nn({type:"DOCTOR",specialtySlug:e.slug,locale:r}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),a.createElement(ea,{spotlights:i,hrefViewMore:`${s.CARE_URL_FE}/${null===(o=ie[r])||void 0===o?void 0:o.SPECIALTIES}/`}))},gn=({categories:e=[],spotlightsList:t=[],onClose:n,isOpen:i})=>{const{t:o}=z(),{locale:l,configs:{statics:r}}=c(pt);return a.createElement(mn,{onClosePopup:n,isDisplay:i,isNavMenu:!0},a.createElement(Lt,{hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories/`,UrlFE:r.HOME_PAGE_URL,onClosePopup:n,titleBtnViewMore:o("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:o("home.navigator.menuItem.healthCategories")}),a.createElement(la,{spotlightsList:t,hrefViewMore:`${r.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/spotlight/`}))},hn=({communities:e=[],onClose:t,isOpen:n,spotlights:i=[]})=>{const{t:o}=z(),{configs:{statics:l}}=c(pt);return a.createElement(mn,{onClosePopup:t,isDisplay:n,isNavMenu:!0},a.createElement(Lt,{hrefViewMore:$(l.TOGETHER_URL_FE),UrlFE:C(l.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:o("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:o("home.navigator.menuItem.allCommunitiesheadingTitle")}),a.createElement(xa,{spotlights:i}))},un=({locale:e,onClose:t,isOpen:n,spotlightHealthTools:i=[],healthTools:o=[]})=>{var l;const{t:r}=z(),{configs:{statics:s}}=c(pt),d=`${s.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(l=k[e])||void 0===l?void 0:l.HEALTH_TOOLS)||""}`;return a.createElement(mn,{onClosePopup:t,isDisplay:n,isNavMenu:!0},a.createElement(Lt,{hrefViewMore:d,UrlFE:s.HOME_PAGE_URL,onClosePopup:t,headingTitle:r("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:r("home.navigator.menuItem.allHealthTools"),menuItems:o.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${s.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),a.createElement(Ra,{spotlightHealthTools:i,hrefViewMore:d}))},vn=({onTopBarAppears:e,languageMenu:t,menuItems:i,logoComponent:l})=>{var s;const{siteType:m,isMobile:p=!1,locale:g,sitewideBanner:h,sitewideBannerShown:u=!0,sponsorComponent:f,onBookingClick:b,currentUrl:y,onLoginClick:x,cartNumber:E,configs:{statics:k,enableNavCareBooking:B,enableSearchBar:P},userState:{userInfo:_},onLogout:M,isUserLoading:N}=c(pt),{t:T}=z(),{SSO_URL:D,HOME_PAGE_URL:L}=k,j=!!f,[S,U]=n(!1),F=o(47),O=o(null),R=o(!1),I="helloSites"===m?null===(s=w[g])||void 0===s?void 0:s.LOGO_TYPE:m,V="undefined"!=typeof window,Z=d(H((()=>{if(V){if(!O.current)return;const e=O.current.getBoundingClientRect();e.top<=0&&window.scrollY>F.current&&window.scrollY>e.height+20&&!R.current&&(R.current=!0,U(!0)),window.scrollY<F.current&&R.current&&(R.current=!1,U(!1)),window.scrollY>=0&&(F.current=window.scrollY)}}),200),[]);r((()=>{null==e||e(!S)}),[S]),r((()=>(window.addEventListener("scroll",Z,{passive:!0}),()=>{window.removeEventListener("scroll",Z)})),[]),r((()=>{p&&Z()}),[p]);const G=u&&!!h;return a.createElement(Ga,{"data-site-type":m,"data-sponsored":j,"data-sitewide-banner-shown":G,"data-header-type":"home","data-collapsed":S,"data-is-displayed":!0,id:"site-header",ref:O},h,a.createElement(Wa,{"data-site-type":m},a.createElement(Ya,{"data-site-type":m},a.createElement(Va,{menuItems:i}),l||a.createElement("a",{style:{flexShrink:0},href:L},a.createElement("div",null,a.createElement(A,{style:{display:"flex"},type:I,badge:"id-ID"===g&&a.createElement("img",{src:v.getAssetPath("sehat-badge.png"),width:"56",height:"23",loading:"lazy"}),dateForSeasonal:new Date,locale:g,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===m?a.createElement(bn,{menuItems:i}):P&&a.createElement(fn,{siteType:m})),a.createElement(qa,{"data-site-type":m},"marryBaby"===m?P&&a.createElement(fn,{siteType:m}):a.createElement(bn,{menuItems:i}),a.createElement(Ka,null,a.createElement($e,{"data-event-category":"Ecommerce","data-event-action":"Cart Click","data-event-label":y,count:E,locale:g}),B&&a.createElement(Pe,{mediaQueryKey:"mbUp"},a.createElement(st,{careUrlFe:k.CARE_URL_FE,currentUrl:y,btnName:T("login.booking"),onCareHeaderClick:b})),t,a.createElement(ot,{userInfo:_,siteType:m,onLoginClick:x||(()=>{const e=window.location.href;window.location.href=D?C(`${D}?returnUrl=${e}`):e}),SSO_URL:$(k.SSO_URL),currentUrl:y,onLogout:M,isLoading:N,locale:g})))),f?a.isValidElement(f)?a.cloneElement(f,{isCollapsed:S,locale:g,isMobile:p}):f:null)},fn=({siteType:e})=>a.createElement(Pe,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},a.createElement(xt,{id:"desktop"})),bn=({menuItems:e})=>{const{siteType:t,locale:n,ssrMenuContent:{categories:i,healthTools:o,care:l,together:r}}=c(pt);return a.createElement(Pe,{mediaQueryKey:"mbUp",style:{height:"100%"}},a.createElement(Qa,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>a.createElement(Tt,{key:t,item:e,menu:"categories"===e.popupType?a.createElement(gn,{categories:null==i?void 0:i.items,spotlightsList:null==i?void 0:i.spotlights}):"tools"===e.popupType?a.createElement(un,{locale:n,healthTools:null==o?void 0:o.items,spotlightHealthTools:null==o?void 0:o.spotlights}):"together"===e.popupType?a.createElement(hn,{communities:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):"care"===e.popupType?a.createElement(pn,{careSpecialties:null==l?void 0:l.items,spotlights:null==l?void 0:l.spotlights}):null})))))},yn=p.div`
|
|
1406
1406
|
--header-z-index: 305;
|
|
1407
1407
|
top: 0;
|
|
1408
1408
|
z-index: var(--header-z-index);
|
|
1409
1409
|
|
|
1410
|
-
${
|
|
1410
|
+
${Y.mbDown} {
|
|
1411
1411
|
width: 100vw;
|
|
1412
1412
|
max-width: 100%;
|
|
1413
1413
|
}
|
|
@@ -1427,4 +1427,4 @@ import{_ as e,a as t}from"./tslib.es6-8ed6f2bc.js";import a,{useState as n,useMe
|
|
|
1427
1427
|
> section * {
|
|
1428
1428
|
pointer-events: auto;
|
|
1429
1429
|
}
|
|
1430
|
-
`,xn=e=>{var t,l;const{isMobile:s,locale:m,onTopBarAppears:p,languageOptions:g,sponsorComponent:h,sitewideBanner:u,sitewideBannerShown:
|
|
1430
|
+
`,xn=e=>{var t,l;const{isMobile:s,locale:m,onTopBarAppears:p,languageOptions:g,sponsorComponent:h,sitewideBanner:u,sitewideBannerShown:f,className:b,logoComponent:y}=e,x=(()=>{const{t:e}=z(),{siteType:t,locale:a,configs:{enableNavDiscover:n,enableNavHealthTools:o,enableNavCare:l,enableNavTogether:r,enableNavEcom:s,statics:d}}=c(pt),m="marryBaby"===t;return i((()=>{var t;const i=[];return n&&i.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${d.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}/categories`,niceName:"",thumbnail:m?v.getAssetPath("categories-mb.svg"):v.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),o&&i.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${d.HOME_PAGE_URL}${"tl-PH"===a?"/fil":""}${(null===(t=k[a])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:m?v.getAssetPath("healthtools-mb.svg"):v.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),r&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:C(d.TOGETHER_URL_FE+"/"),thumbnail:m?v.getAssetPath("community-mb.svg"):v.getAssetPath("nav-icons/community.svg"),popupType:"together"}),s&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:C(d.HOME_PAGE_URL+"/shop"),thumbnail:v.getAssetPath("nav-icons/shop.svg"),popupType:null}),l&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:C("ms-MY"===a?d.HOME_PAGE_URL+"/care/current-location/hospital/":d.HOME_PAGE_URL+"/care"),thumbnail:v.getAssetPath("nav-icons/care.svg"),popupType:"id-ID"===a?"care":null}),i}),[a,l,r,s])})();(()=>{const{isFirstLogin:e,userState:t}=c(pt),{userInfo:a}=t;r((()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})}),[])})();const E=f&&!!u,w=!!h,$=!!(null===(l=null===(t=null==h?void 0:h.props)||void 0===t?void 0:t.sponsoredBy)||void 0===l?void 0:l.length),{headerRef:B,defaultHeaderHeight:P,headerHeight:_,headerBottom:M}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:a,isMobile:l})=>{const s=o(null),[c,m]=n(0),[p,g]=n(64),h=d(de((()=>{var e,t,a,n;const i=(null===(e=s.current)||void 0===e?void 0:e.clientHeight)||(null===(a=null===(t=s.current)||void 0===t?void 0:t.children[0])||void 0===a?void 0:a.clientHeight)||0;window.scrollY<=i+200&&(m(i),g((null===(n=s.current)||void 0===n?void 0:n.getBoundingClientRect().bottom)||c))}),200),[]);r((()=>(window.addEventListener("resize",h,{passive:!0}),window.addEventListener("scroll",h,{passive:!0}),h(),()=>{window.removeEventListener("resize",h),window.removeEventListener("scroll",h)})),[]),r((()=>{h()}),[l,a,t,e,s.current]);const u=i((()=>{let n=56;return a&&(n+=64),t&&(n+=40,e&&(n+=57)),n}),[l,a,e,t]);return{defaultHeaderHeight:u,headerHeight:c||u,headerBottom:p,headerRef:s}})({isShowingSiteWideBanner:E,isSponsored:w,hasSponsoredBanners:$,isMobile:s});return a.createElement(yn,{id:"navigation-v2",style:{"--default-header-height":P+"px","--header-height":`calc(${_}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":M+"px"},className:b},a.createElement("section",{ref:B},a.createElement(vn,{menuItems:x,onTopBarAppears:p,logoComponent:y,languageMenu:a.createElement(Ee,{languageOptions:g,locale:m})})))},En=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return a.createElement(gt,Object.assign({},t),a.createElement(xn,Object.assign({},t)))},wn=e=>t(void 0,void 0,void 0,(function*(){var t,a,n,i,o,l,r,s,c,d,m,p,g,h,u,v,y,x,w,k,$,B,P;const T={},D="vi-VN_MB"===e;try{const A="tl-PH"===e?"lang=fil":"";try{const[m,p,g,h]=yield Promise.all([fetch(C(`${M(e)}/wp-json/api/categories${A?"?"+A:""}`)).then((e=>e.json())),fetch(C(`${M(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${A?"&"+A:""}`)).then((e=>e.json())),fetch(C(`${M(e)}/wp-json/api/${D?"health-tools":"healthtools"}${A?"?"+A:""}`)).then((e=>e.json())),fetch(C(`${M(e)}/wp-json/api/${D?"health-tools":"healthtools"}/favorites${A?"?"+A:""}`)).then((e=>e.json()))]);T.categories={items:(null===(a=null===(t=null==m?void 0:m.data)||void 0===t?void 0:t.map)||void 0===a?void 0:a.call(t,Ja))||[],spotlights:(null===(l=null===(o=null===(i=null===(n=null==p?void 0:p.data)||void 0===n?void 0:n.articles)||void 0===i?void 0:i.map)||void 0===o?void 0:o.call(i,on))||void 0===l?void 0:l.filter(ln))||[]},T.healthTools={items:(null===(s=null===(r=null==g?void 0:g.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,Xa))||[],spotlights:(null===(d=null===(c=null==h?void 0:h.data)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,Xa))||[]}}catch(e){}if(D||b.includes(e))try{const[t,a]=yield Promise.all([fetch(C(`${_()}/api/v1/community?website_url=https://${E[e]}`)).then((e=>e.json())),fetch(C(`${_()}/api/v1/options?website_url=https://${E[e]}&meta_key=popular_post`)).then((e=>e.json()))]);T.together={items:(null===(g=null===(p=null===(m=null==t?void 0:t.data)||void 0===m?void 0:m.communities)||void 0===p?void 0:p.map)||void 0===g?void 0:g.call(p,L))||[],spotlights:(null===(v=null===(u=null===(h=null==a?void 0:a.data)||void 0===h?void 0:h.posts)||void 0===u?void 0:u.map)||void 0===v?void 0:v.call(u,j))||[]}}catch(e){}if(f.includes(e))try{const[t,a]=yield Promise.all([fetch(C(N()+`/api/options/setting_menu?site=${E[e]}&type=0`)).then((e=>e.json())),fetch(C(N()+`/api/options/setting_menu?site=${E[e]}&type=1`)).then((e=>e.json()))]);T.care={items:(null===(k=null===(w=null===(x=null===(y=null==t?void 0:t._data)||void 0===y?void 0:y.setting_menu)||void 0===x?void 0:x.menu_specialty)||void 0===w?void 0:w.map)||void 0===k?void 0:k.call(w,en))||[],spotlights:(null===(P=null===(B=null===($=null==a?void 0:a._data.setting_menu)||void 0===$?void 0:$.menu_hospital)||void 0===B?void 0:B.map)||void 0===P?void 0:P.call(B,tn))||[]}}catch(e){}}catch(e){console.error(e)}return T})),kn=e=>t(void 0,void 0,void 0,(function*(){return(yield me("nav-menu-content",(()=>wn(e||"en-PH")),(e=>{var t,a;return!!(null===(a=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===a?void 0:a.length)})))||{}}));export{Ee as L,En as N,Xe as P,kn as a,it as b,ot as c,an as d,wn as g,ge as i};
|