@hhgtech/hhg-components 1.23.87 → 1.23.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{Vietnam-2a406da5.js → Vietnam-5382e38c.js} +1 -1
- package/build/{Visible-33ecfd21.js → Visible-26a247cd.js} +1 -1
- package/build/{animation-049cb56e.js → animation-ae08dc85.js} +1 -1
- package/build/babyGrowth.js +1 -1
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/componentsAtoms.js +1 -1
- package/build/componentsMolecules.js +1 -1
- package/build/componentsOrganisms.js +1 -1
- package/build/componentsSlider.js +1 -1
- package/build/componentsUi.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-ac733db4.js → core-973789f6.js} +1 -1
- package/build/{dataTransform-d08c294b.js → dataTransform-60a35793.js} +1 -1
- package/build/{dataTransform-b161ee63.js → dataTransform-ef103273.js} +1 -1
- package/build/{defaultClassWrapper-2ca98655.js → defaultClassWrapper-1546785e.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/{Vietnam-50ea3603.js → Vietnam-276b66b7.js} +1 -1
- package/build/esm/{Visible-870c1168.js → Visible-31388edd.js} +1 -1
- package/build/esm/{animation-cf92c0c1.js → animation-16ef2a19.js} +1 -1
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/componentsAtoms.js +1 -1
- package/build/esm/componentsMolecules.js +1 -1
- package/build/esm/componentsOrganisms.js +1 -1
- package/build/esm/componentsSlider.js +1 -1
- package/build/esm/componentsUi.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-33719909.js → core-14054788.js} +1 -1
- package/build/esm/{dataTransform-eef8b25b.js → dataTransform-58ac3ce5.js} +1 -1
- package/build/esm/dataTransform-885fe0e3.js +1 -0
- package/build/esm/{defaultClassWrapper-ac0cfe19.js → defaultClassWrapper-86053461.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-bd030074.js → getDynamicHealthTool-e66ea9bb.js} +1 -1
- package/build/esm/{getSocialList-d8e1e15c.js → getSocialList-82b3c51d.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-6a047e4f.js → index-01ef8357.js} +1 -1
- package/build/esm/{index-9ab1ac36.js → index-067fbea6.js} +1 -1
- package/build/esm/{index-be64a3dd.js → index-1afec854.js} +1 -1
- package/build/esm/{index-ba90d976.js → index-2317466d.js} +1 -1
- package/build/esm/{index-05d15024.js → index-23c1b7db.js} +1 -1
- package/build/esm/{index-fcd5ec3c.js → index-24235128.js} +1 -1
- package/build/esm/{index-f17bf0f6.js → index-2dbc25e6.js} +1 -1
- package/build/esm/{index-aa8597ed.js → index-4001ddab.js} +1 -1
- package/build/esm/index-513c5730.js +1 -0
- package/build/esm/{index-2d53432e.js → index-5c51c19f.js} +1 -1
- package/build/esm/index-6e945ca0.js +1 -0
- package/build/esm/{index-d3eb3f00.js → index-73e2c0ab.js} +1 -1
- package/build/esm/{index-9a3656b5.js → index-7c5d9e88.js} +1 -1
- package/build/esm/{index-336af84a.js → index-8ade36a0.js} +1 -1
- package/build/esm/{index-ed4a28d4.js → index-9a1e70a2.js} +1 -1
- package/build/esm/index-9c085c54.js +7 -0
- package/build/esm/{index-00d7087f.js → index-9d91d8f7.js} +1 -1
- package/build/esm/{index-b097af3f.js → index-a9bd8a62.js} +1 -1
- package/build/esm/{index-21df55e5.js → index-abc427eb.js} +1 -1
- package/build/esm/{index-c780a03a.js → index-b2d5dda0.js} +1 -1
- package/build/esm/{index-2c35c29f.js → index-b417f035.js} +1 -1
- package/build/esm/{index-4505f43c.js → index-b5205faf.js} +1 -1
- package/build/esm/{index-221ea478.js → index-b5f56aea.js} +1 -1
- package/build/esm/{index-83c711f0.js → index-b8fecdb5.js} +1 -1
- package/build/esm/{index-fd4639dd.js → index-b9739cbd.js} +1 -1
- package/build/esm/{index-6dca5da6.js → index-bcc2cddc.js} +1 -1
- package/build/esm/{index-d84dc3dd.js → index-bfdc725f.js} +1 -1
- package/build/esm/{index-7f3ca6b6.js → index-c047b113.js} +1 -1
- package/build/esm/{index-767d92d1.js → index-d77490c9.js} +1 -1
- package/build/esm/{index-48727878.js → index-ec1c2e79.js} +1 -1
- package/build/esm/{index-673844f1.js → index-f13d4a39.js} +1 -1
- package/build/esm/index-f8471417.js +1 -0
- package/build/esm/index.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/onboarding.js +1 -1
- package/build/esm/pwg.js +1 -1
- package/build/esm/routing-cf42971a.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-c56e39c2.js → translationsProvider-284aaf3b.js} +1 -1
- package/build/esm/{types-fb11067e.js → types-383f4cad.js} +1 -1
- package/build/esm/{types-39404c04.js → types-5ffbdf44.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useFbDataLayer-f5c974a0.js → useFbDataLayer-025865c5.js} +1 -1
- package/build/esm/useHealthToolCache-7d16efa7.js +1 -0
- package/build/esm/{useTranslations-a927a379.js → useTranslations-0253a7a8.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-1e31b333.js → getDynamicHealthTool-9254650e.js} +1 -1
- package/build/{getSocialList-da05262a.js → getSocialList-34b03972.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-a50cdb60.js → index-06e15915.js} +1 -1
- package/build/{index-41403ca0.js → index-0c5ddccf.js} +1 -1
- package/build/{index-55166c89.js → index-11b05d88.js} +1 -1
- package/build/index-14b34aea.js +1 -0
- package/build/{index-f07bc0f5.js → index-1cf2ef50.js} +1 -1
- package/build/{index-d328ce81.js → index-1efc9ade.js} +1 -1
- package/build/{index-e34a018a.js → index-2422588a.js} +1 -1
- package/build/{index-f7102e40.js → index-2aa829d5.js} +1 -1
- package/build/{index-83cec513.js → index-2eeca9de.js} +1 -1
- package/build/{index-20eaced0.js → index-32cfafb1.js} +1 -1
- package/build/{index-61ecad96.js → index-3c31c657.js} +1 -1
- package/build/{index-bbfb976d.js → index-4ad7f4d8.js} +1 -1
- package/build/{index-d39d52ff.js → index-4ebe7de9.js} +1 -1
- package/build/{index-83adab6c.js → index-6251dbea.js} +1 -1
- package/build/{index-df9e9f59.js → index-63d56ee6.js} +1 -1
- package/build/{index-46ca8366.js → index-6eef33c6.js} +1 -1
- package/build/{index-0d5437e9.js → index-70381139.js} +1 -1
- package/build/{index-7ab672c3.js → index-71010f37.js} +2 -2
- package/build/{index-2c89d05b.js → index-742ed5c2.js} +1 -1
- package/build/{index-661a9c14.js → index-76f646e8.js} +1 -1
- package/build/{index-cbd87024.js → index-7bade44d.js} +1 -1
- package/build/{index-7d86ea92.js → index-85ff095f.js} +1 -1
- package/build/{index-01ebfb47.js → index-8f7312d6.js} +1 -1
- package/build/{index-3c5f03d6.js → index-a4aaf706.js} +1 -1
- package/build/{index-2c698b9b.js → index-bbcf372d.js} +1 -1
- package/build/{index-274bc25b.js → index-cad4ce6b.js} +1 -1
- package/build/{index-0966c21d.js → index-d45bda5a.js} +1 -1
- package/build/{index-f99c7219.js → index-e6ef10ac.js} +1 -1
- package/build/{index-de4d4eb3.js → index-f2ea15ca.js} +1 -1
- package/build/{index-95160b22.js → index-f7d9576b.js} +1 -1
- package/build/{index-098908e9.js → index-fb520a32.js} +1 -1
- package/build/{index-cd46e84c.js → index-fd4018d8.js} +1 -1
- package/build/index.js +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc/normalizeLink.d.ts +3 -0
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +1 -1
- package/build/routing-c1890a85.js +1 -0
- package/build/together.js +1 -1
- package/build/{translationsProvider-e3af2e64.js → translationsProvider-b81114e7.js} +1 -1
- package/build/{types-0dd54186.js → types-47354d5e.js} +1 -1
- package/build/{types-0340f120.js → types-7e38c741.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useFbDataLayer-86a7c053.js → useFbDataLayer-cead5d72.js} +1 -1
- package/build/{useHealthToolCache-c936eb98.js → useHealthToolCache-65ce86e5.js} +1 -1
- package/build/useTranslations-1b384b29.js +1 -0
- package/package.json +1 -1
- package/build/esm/dataTransform-a91fc32b.js +0 -1
- package/build/esm/index-2dbc1afc.js +0 -1
- package/build/esm/index-3fbce6ed.js +0 -7
- package/build/esm/index-559b491e.js +0 -1
- package/build/esm/index-983881c1.js +0 -1
- package/build/esm/routing-7fd011ce.js +0 -1
- package/build/esm/useHealthToolCache-8d17b63f.js +0 -1
- package/build/index-0bfec7e5.js +0 -1
- package/build/routing-56a67a1d.js +0 -1
- package/build/useTranslations-a4a79beb.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-274f36d8.js → BMI_BOYS.percentile.monthly-576db812.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-8ed52e92.js → BMI_BOYS.percentile.weekly-27a4ebf6.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-5d6b8c7c.js → BMI_BOYS.percentile.yearly-13483499.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-85efd5b5.js → BMI_BOYS.zscore.monthly-f2cf9e90.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-1c6fcf8c.js → BMI_BOYS.zscore.weekly-ee0323a4.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-7f6e8298.js → BMI_BOYS.zscore.yearly-dc315944.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-785ed4b8.js → BMI_GIRLS.percentile.monthly-b5509ed2.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-23217a25.js → BMI_GIRLS.percentile.weekly-2ad1c3cf.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-f0d1401a.js → BMI_GIRLS.percentile.yearly-1ef80630.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-bc334793.js → BMI_GIRLS.zscore.monthly-ae187a73.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-46d01960.js → BMI_GIRLS.zscore.weekly-a87b5e9b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-811cd53a.js → BMI_GIRLS.zscore.yearly-4c3190ac.js} +0 -0
- /package/build/{BabyGrowth-922556dd.js → BabyGrowth-4a88d026.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-682445c3.js → HEAD CIRCUM_BOYS.percentile.monthly-e96e27fa.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-e4cb7cc8.js → HEAD CIRCUM_BOYS.percentile.weekly-bad25309.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-1c0c1890.js → HEAD CIRCUM_BOYS.percentile.yearly-c9c5ed7b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a019d657.js → HEAD CIRCUM_BOYS.zscore.monthly-1eec77fe.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-301e045f.js → HEAD CIRCUM_BOYS.zscore.weekly-f899c03e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-995f3b04.js → HEAD CIRCUM_BOYS.zscore.yearly-9de5e8f6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-61fa4bb7.js → HEAD CIRCUM_GIRLS.percentile.monthly-3cf9cb40.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-0232e793.js → HEAD CIRCUM_GIRLS.percentile.weekly-f9603825.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-48fa9493.js → HEAD CIRCUM_GIRLS.percentile.yearly-34e5d321.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-3ffb8297.js → HEAD CIRCUM_GIRLS.zscore.monthly-92de4618.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-1aa3ecf7.js → HEAD CIRCUM_GIRLS.zscore.weekly-ec0dc268.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-87fe2057.js → HEAD CIRCUM_GIRLS.zscore.yearly-57ebf0cf.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-d5479365.js → HEIGHT_BOYS.percentile.monthly-081fe087.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-c7df4fc7.js → HEIGHT_BOYS.percentile.weekly-2badaca6.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-e197b396.js → HEIGHT_BOYS.percentile.yearly-cd9d7494.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-a79302e5.js → HEIGHT_BOYS.zscore.monthly-024f2951.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-d7b3b2b0.js → HEIGHT_BOYS.zscore.weekly-8b9e9851.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-4116009b.js → HEIGHT_BOYS.zscore.yearly-accc611c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-51f64b18.js → HEIGHT_GIRLS.percentile.monthly-dfbe1af3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-0438e44e.js → HEIGHT_GIRLS.percentile.weekly-2483f816.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-fc80f292.js → HEIGHT_GIRLS.percentile.yearly-cdfc2c78.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-6766c65f.js → HEIGHT_GIRLS.zscore.monthly-fde2aeda.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-ab02a15e.js → HEIGHT_GIRLS.zscore.weekly-25c0d4d2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-351a4ee1.js → HEIGHT_GIRLS.zscore.yearly-4617d3c6.js} +0 -0
- /package/build/{Locale-fa2dbec1.js → Locale-34e60fe7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-caabfd20.js → WEIGHT_BOYS.percentile.monthly-2d4b570f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-5cbd3ca6.js → WEIGHT_BOYS.percentile.weekly-93ddd72c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-c930fb50.js → WEIGHT_BOYS.percentile.yearly-5e49fc67.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-52d0aeaa.js → WEIGHT_BOYS.zscore.monthly-6a0fe6a3.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-e4a1a6e4.js → WEIGHT_BOYS.zscore.weekly-b48c1764.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-275fa95d.js → WEIGHT_BOYS.zscore.yearly-6f6892dd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-18211ff3.js → WEIGHT_GIRLS.percentile.monthly-06386e0d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-eab05ff6.js → WEIGHT_GIRLS.percentile.weekly-08640871.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-9c605f9c.js → WEIGHT_GIRLS.percentile.yearly-ad1a181f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-5809a0b3.js → WEIGHT_GIRLS.zscore.monthly-1763b4a7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-0d2fd8b0.js → WEIGHT_GIRLS.zscore.weekly-95fa39b7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-1ee9d305.js → WEIGHT_GIRLS.zscore.yearly-0e5bd5f8.js} +0 -0
- /package/build/{constants-534a0900.js → constants-1e509beb.js} +0 -0
- /package/build/{constants-5e71c2e6.js → constants-981115fc.js} +0 -0
- /package/build/{cookieHelper-f58d9f30.js → cookieHelper-e306f959.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-635deeb5.js → BMI_BOYS.percentile.monthly-57cb503f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-f697f2d7.js → BMI_BOYS.percentile.weekly-c7f7cc53.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-41cb867d.js → BMI_BOYS.percentile.yearly-4a3cd267.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-def6f500.js → BMI_BOYS.zscore.monthly-40946d93.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-5c046e33.js → BMI_BOYS.zscore.weekly-bb89f9e6.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-ea5704ce.js → BMI_BOYS.zscore.yearly-a526360c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-f7d92526.js → BMI_GIRLS.percentile.monthly-33a0df92.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-3b0848ee.js → BMI_GIRLS.percentile.weekly-f98fe9e6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-296abffa.js → BMI_GIRLS.percentile.yearly-3135210f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-76523c70.js → BMI_GIRLS.zscore.monthly-c51121c8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-4d03ced0.js → BMI_GIRLS.zscore.weekly-dbcdb38d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-fb0f994a.js → BMI_GIRLS.zscore.yearly-9825e0ac.js} +0 -0
- /package/build/esm/{BabyGrowth-cc375283.js → BabyGrowth-9c6121b7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-697e212e.js → HEAD CIRCUM_BOYS.percentile.monthly-2d41bcd1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2a05c234.js → HEAD CIRCUM_BOYS.percentile.weekly-e7422f9a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-74e65fca.js → HEAD CIRCUM_BOYS.percentile.yearly-3d1e9d09.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-b64626e7.js → HEAD CIRCUM_BOYS.zscore.monthly-dec3dea2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-9f80277b.js → HEAD CIRCUM_BOYS.zscore.weekly-cc9d5be8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-40607cec.js → HEAD CIRCUM_BOYS.zscore.yearly-3bca108a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-80834605.js → HEAD CIRCUM_GIRLS.percentile.monthly-0178ff75.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-51638089.js → HEAD CIRCUM_GIRLS.percentile.weekly-92a33991.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-631c62bb.js → HEAD CIRCUM_GIRLS.percentile.yearly-ec36b33f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-ff051b30.js → HEAD CIRCUM_GIRLS.zscore.monthly-6f488de0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-b29dbb55.js → HEAD CIRCUM_GIRLS.zscore.weekly-0c69887c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-32ae3374.js → HEAD CIRCUM_GIRLS.zscore.yearly-64b4817c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-db226408.js → HEIGHT_BOYS.percentile.monthly-41fb7b2a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f638d39e.js → HEIGHT_BOYS.percentile.weekly-2b426141.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-c6d10156.js → HEIGHT_BOYS.percentile.yearly-cab9538d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-3a6ce7ec.js → HEIGHT_BOYS.zscore.monthly-62c75fe8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-289c267c.js → HEIGHT_BOYS.zscore.weekly-54daa725.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-72faed80.js → HEIGHT_BOYS.zscore.yearly-a720504e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-a2f12d2c.js → HEIGHT_GIRLS.percentile.monthly-20d20c71.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-e0394550.js → HEIGHT_GIRLS.percentile.weekly-9f7d355a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3c6231c1.js → HEIGHT_GIRLS.percentile.yearly-c05d6593.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-88bc5521.js → HEIGHT_GIRLS.zscore.monthly-66b79e5a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-372b67cb.js → HEIGHT_GIRLS.zscore.weekly-d13516f9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-8813168e.js → HEIGHT_GIRLS.zscore.yearly-ac4fd006.js} +0 -0
- /package/build/esm/{Locale-4247ffa0.js → Locale-ea1f656d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-2e9855c7.js → WEIGHT_BOYS.percentile.monthly-87b853c5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-00c35c7d.js → WEIGHT_BOYS.percentile.weekly-e64802b7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-31844dbe.js → WEIGHT_BOYS.percentile.yearly-109d1346.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-48ddea35.js → WEIGHT_BOYS.zscore.monthly-dd5b5b93.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-783857a4.js → WEIGHT_BOYS.zscore.weekly-cb76a90a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-76cd3d93.js → WEIGHT_BOYS.zscore.yearly-30208c42.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-bff0faa5.js → WEIGHT_GIRLS.percentile.monthly-186bc716.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-88ebf364.js → WEIGHT_GIRLS.percentile.weekly-cab80b5e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-71e4286d.js → WEIGHT_GIRLS.percentile.yearly-1b848070.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0ec15fb2.js → WEIGHT_GIRLS.zscore.monthly-be5018c6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-dbe0529f.js → WEIGHT_GIRLS.zscore.weekly-1f9a71bb.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-79767f29.js → WEIGHT_GIRLS.zscore.yearly-ad9945d9.js} +0 -0
- /package/build/esm/{constants-fcd971bd.js → constants-dd699798.js} +0 -0
- /package/build/esm/{constants-9aa00ab6.js → constants-f80ded03.js} +0 -0
- /package/build/esm/{cookieHelper-60faa11b.js → cookieHelper-b11e8976.js} +0 -0
- /package/build/esm/{index-d4a5cb41.js → index-68390e33.js} +0 -0
- /package/build/esm/{isProduction-1521e74e.js → isProduction-d49ace58.js} +0 -0
- /package/build/esm/{localizeNumberFormat-c3bba20c.js → localizeNumberFormat-09138578.js} +0 -0
- /package/build/esm/{logoIcon-f5d56e3a.js → logoIcon-998ff0ad.js} +0 -0
- /package/build/esm/{theme-d34fcb72.js → theme-f92bf7cf.js} +0 -0
- /package/build/esm/{translationsContext-f594de35.js → translationsContext-1ad5435e.js} +0 -0
- /package/build/esm/{tslib.es6-60545877.js → tslib.es6-8afd0786.js} +0 -0
- /package/build/esm/{types-856c5e3e.js → types-8360164f.js} +0 -0
- /package/build/esm/{useOutsideClick-cbafa17c.js → useOutsideClick-65840586.js} +0 -0
- /package/build/esm/{useScrollbarSize-553193f9.js → useScrollbarSize-23355889.js} +0 -0
- /package/build/esm/{utils-848ab47e.js → utils-c4fbd283.js} +0 -0
- /package/build/{index-580fe683.js → index-7527ba42.js} +0 -0
- /package/build/{isProduction-ce149335.js → isProduction-4df9d080.js} +0 -0
- /package/build/{localizeNumberFormat-ac1b6934.js → localizeNumberFormat-b0c4d60d.js} +0 -0
- /package/build/{logoIcon-7c780818.js → logoIcon-cf5fbb3f.js} +0 -0
- /package/build/{theme-5bf80bf7.js → theme-5d1929a2.js} +0 -0
- /package/build/{translationsContext-9a8382af.js → translationsContext-69c95958.js} +0 -0
- /package/build/{tslib.es6-31fb94f1.js → tslib.es6-4e138147.js} +0 -0
- /package/build/{types-97d79c73.js → types-849a4813.js} +0 -0
- /package/build/{useOutsideClick-d250c5d7.js → useOutsideClick-3a6f13d4.js} +0 -0
- /package/build/{useScrollbarSize-8703d0b4.js → useScrollbarSize-46e5352c.js} +0 -0
- /package/build/{utils-be155072.js → utils-bdb48aa7.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n,_ as e,b as t,c as i,d as o}from"./tslib.es6-8afd0786.js";import a,{useMemo as r,useRef as l,useEffect as s,useState as d,memo as p,useContext as c,useCallback as m}from"react";import{L as u}from"./index-f13d4a39.js";import{d as g,C as h,a as f,T as x,L as v,S as y,U as b}from"./index-bcc2cddc.js";import{g as w,a as E,b as k,c as C,d as P}from"./routing-cf42971a.js";import{P as B,c as N,a as _}from"./dataTransform-58ac3ce5.js";import{C as z,L as A}from"./index-24235128.js";import{u as T}from"./useTranslations-0253a7a8.js";import M from"lodash/throttle";import{g as H,M as L}from"./utils-c4fbd283.js";import S from"styled-components";import{A as U}from"./index-bfdc725f.js";import{B as D}from"./index-ec1c2e79.js";import{T as j}from"./index-6e945ca0.js";import{CommonGAssets as R}from"./gAssets.js";import{t as I}from"./theme-f92bf7cf.js";import{Portal as O}from"@mantine/core";import{g as F}from"./defaultClassWrapper-86053461.js";import{g as G}from"./cookieHelper-b11e8976.js";import{L as V}from"./constants-f80ded03.js";import W from"string-format";import{o as Y,U as Z}from"./index-a9bd8a62.js";import{P as Q}from"./index-4001ddab.js";import{H as K}from"./index-f8471417.js";import q from"dayjs";import J from"dayjs/plugin/relativeTime";import X from"lodash/debounce";import{g as $}from"./core-14054788.js";var nn,en,tn,on=S.div(nn||(nn=n(["\n ","\n"],["\n ","\n"])),(function(n){return"\n ".concat(0!==n.lowerBound?"@media (max-width: ".concat(n.lowerBound-1,"px) { display: none; }"):"","\n ").concat(0!==n.upperBound?"@media (min-width: ".concat(n.upperBound,"px) { display: none; }"):"","\n ")})),an=function(n){var e=n.forceDisplay,t=n.mediaQueryKey,i=n.children,o=n.className,l=n.style,s=r((function(){return H(t)}),[t]),d=s[0],p=s[1];return a.createElement(on,{lowerBound:e?0:d,upperBound:e?0:p,className:o,style:l},i)},rn=function(n){var e=(n||{}).allowBgScroll,t=l();return{containerRef:t,onContainerFocus:function(){e||(document.documentElement.style.overflow="hidden")},onContainerBlur:function(){e||(document.documentElement.style.overflow="")},onButtonMouseDown:function(n){t.current&&(document.activeElement===t.current||t.current.contains(document.activeElement))&&(t.current.blur(),document.activeElement.blur(),n.preventDefault())},onClose:function(){t.current&&(document.activeElement===t.current||t.current.contains(document.activeElement))&&(t.current.blur(),document.activeElement.blur())}}},ln=S.div(en||(en=n(["\n background-color: white;\n text-align: center;\n .cancle-img {\n margin-top: 24px;\n "," {\n width: 80px;\n height: 80px;\n }\n\n "," {\n width: 100px;\n height: 100px;\n }\n }\n\n h2 {\n margin-top: 32px;\n color: ",";\n font-style: normal;\n font-weight: bold;\n "," {\n font-size: 24px;\n line-height: 32px;\n }\n\n "," {\n font-size: 32px;\n line-height: 42px;\n }\n }\n\n p {\n margin-top: 8px;\n color: ",";\n font-style: normal;\n font-weight: normal;\n "," {\n font-size: 16px;\n line-height: 24px;\n }\n\n "," {\n font-size: 16px;\n line-height: 24px;\n }\n }\n"],["\n background-color: white;\n text-align: center;\n .cancle-img {\n margin-top: 24px;\n "," {\n width: 80px;\n height: 80px;\n }\n\n "," {\n width: 100px;\n height: 100px;\n }\n }\n\n h2 {\n margin-top: 32px;\n color: ",";\n font-style: normal;\n font-weight: bold;\n "," {\n font-size: 24px;\n line-height: 32px;\n }\n\n "," {\n font-size: 32px;\n line-height: 42px;\n }\n }\n\n p {\n margin-top: 8px;\n color: ",";\n font-style: normal;\n font-weight: normal;\n "," {\n font-size: 16px;\n line-height: 24px;\n }\n\n "," {\n font-size: 16px;\n line-height: 24px;\n }\n }\n"])),L.mbDown,L.mbUp,(function(n){return n.theme.colors.gray800}),L.mbDown,L.mbUp,(function(n){return n.theme.colors.gray600}),L.mbDown,L.mbUp),sn=S.div(tn||(tn=n(["\n display: flex;\n\n "," {\n margin-top: 24px;\n }\n\n "," {\n margin-top: 32px;\n }\n justify-content: space-around;\n button {\n flex: 1;\n margin: 4px;\n }\n\n ","\n"],["\n display: flex;\n\n "," {\n margin-top: 24px;\n }\n\n "," {\n margin-top: 32px;\n }\n justify-content: space-around;\n button {\n flex: 1;\n margin: 4px;\n }\n\n ","\n"])),L.mbDown,L.mbUp,(function(n){return"marryBaby"===n.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 ":""})),dn=function(n){var e=n.openLogoutPopup,t=n.onCloseHandler,i=n.onLogoutHandler,o=n.siteType,r=void 0===o?"helloSites":o,l=T().t;return s((function(){document.body.classList.toggle("noscroll",e)}),[e]),a.createElement(O,null,a.createElement(B,{type:"confirm",isOpen:e,closeIcon:a.createElement("img",{src:R.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:t},a.createElement(ln,null,"helloSites"===r&&a.createElement("img",{src:R.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),a.createElement("h2",null,l("helloSites"===r?"logout.popup.ask1":"logout.popup.ask.mb")),a.createElement("p",null,l("logout.popup.ask2")),a.createElement(sn,{siteType:r},a.createElement(D,{className:"logout-button",color:"tertiary",size:"lg",onClick:i},l("logout.popup.button.logout")),a.createElement(D,{className:"cancel-button",color:"primary",size:"lg",onClick:t},l("logout.popup.button.cancel"))))))},pn="hhgcomp-navprofilebutton-popup",cn=F(S.div(un||(un=n(["\n position: absolute;\n right: 0;\n background-color: ",";\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 120%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n display: none;\n }\n\n &[data-type='lead'] {\n width: 332px;\n height: 460px;\n\n div {\n top: -15px;\n right: -15px;\n }\n }\n\n &[data-type='welcome'] {\n position: fixed;\n "," {\n width: 100%;\n height: 424px;\n bottom: 0;\n top: unset;\n }\n "," {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n min-height: 445px;\n max-width: 407px;\n }\n }\n\n &[data-type='due-date'] {\n position: fixed;\n "," {\n width: 100%;\n height: 100%;\n overflow-y: scroll;\n bottom: 0;\n top: unset;\n }\n "," {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100vw;\n height: 55vw;\n max-height: 598px;\n max-width: 1080px;\n }\n }\n\n .popup-content {\n z-index: 111;\n height: 100%;\n "," {\n max-height: calc(100vh - var(--header-bottom, 64px));\n }\n overflow: auto;\n }\n\n &[data-type='form'] {\n width: 496px;\n height: 548px;\n }\n\n &[data-type='confirm'] {\n width: 380px;\n height: 252px;\n }\n\n &[data-type='profile'] {\n /* min-height: 415px; */\n "," {\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n &:before {\n position: absolute;\n right: 11px;\n bottom: 100%;\n width: 0;\n height: 0;\n border: 0.5rem solid transparent;\n border-top: none;\n border-bottom-color: #fff;\n content: '';\n filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1));\n }\n }\n "," {\n position: fixed;\n left: 0;\n width: 100%;\n border-top: 1px solid ",";\n }\n "," {\n width: 368px;\n }\n }\n\n .close-button {\n position: absolute;\n top: 0;\n right: 0;\n width: 32px;\n height: 32px;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n"],["\n position: absolute;\n right: 0;\n background-color: ",";\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 120%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n display: none;\n }\n\n &[data-type='lead'] {\n width: 332px;\n height: 460px;\n\n div {\n top: -15px;\n right: -15px;\n }\n }\n\n &[data-type='welcome'] {\n position: fixed;\n "," {\n width: 100%;\n height: 424px;\n bottom: 0;\n top: unset;\n }\n "," {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n min-height: 445px;\n max-width: 407px;\n }\n }\n\n &[data-type='due-date'] {\n position: fixed;\n "," {\n width: 100%;\n height: 100%;\n overflow-y: scroll;\n bottom: 0;\n top: unset;\n }\n "," {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100vw;\n height: 55vw;\n max-height: 598px;\n max-width: 1080px;\n }\n }\n\n .popup-content {\n z-index: 111;\n height: 100%;\n "," {\n max-height: calc(100vh - var(--header-bottom, 64px));\n }\n overflow: auto;\n }\n\n &[data-type='form'] {\n width: 496px;\n height: 548px;\n }\n\n &[data-type='confirm'] {\n width: 380px;\n height: 252px;\n }\n\n &[data-type='profile'] {\n /* min-height: 415px; */\n "," {\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n &:before {\n position: absolute;\n right: 11px;\n bottom: 100%;\n width: 0;\n height: 0;\n border: 0.5rem solid transparent;\n border-top: none;\n border-bottom-color: #fff;\n content: '';\n filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1));\n }\n }\n "," {\n position: fixed;\n left: 0;\n width: 100%;\n border-top: 1px solid ",";\n }\n "," {\n width: 368px;\n }\n }\n\n .close-button {\n position: absolute;\n top: 0;\n right: 0;\n width: 32px;\n height: 32px;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n"])),(function(n){return n.theme.colors.white}),L.mbDown,L.mbUp,L.mbDown,L.mbUp,L.mbDown,L.mbUp,(function(n){return n.theme.colors.gray200}),L.mbDown,I.colors.neutral100,L.mbUp),pn),mn="hhgcomp-navprofilebutton-popupwrapper";F(S.div(gn||(gn=n(["\n position: fixed;\n z-index: 150;\n top: var(--header-bottom, 69px);\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n\n "," {\n background-color: transparent;\n &[data-type='welcome'] {\n background: rgba(38, 38, 38, 0.3);\n }\n &[data-type='due-date'] {\n background: rgba(38, 38, 38, 0.3);\n }\n }\n\n "," {\n background: rgba(38, 38, 38, 0.3);\n }\n\n &[data-type='welcome'] {\n top: 0;\n }\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 150;\n top: var(--header-bottom, 69px);\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n\n "," {\n background-color: transparent;\n &[data-type='welcome'] {\n background: rgba(38, 38, 38, 0.3);\n }\n &[data-type='due-date'] {\n background: rgba(38, 38, 38, 0.3);\n }\n }\n\n "," {\n background: rgba(38, 38, 38, 0.3);\n }\n\n &[data-type='welcome'] {\n top: 0;\n }\n\n &[data-open='false'] {\n display: none;\n }\n"])),L.mbUp,L.mbDown),mn);var un,gn,hn,fn,xn,vn=S.div(hn||(hn=n(["\n width: 40px;\n height: 40px;\n cursor: pointer;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 40px;\n height: 40px;\n object-fit: cover;\n }\n\n .avatar-default {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-size: 20px;\n font-weight: bold;\n }\n"],["\n width: 40px;\n height: 40px;\n cursor: pointer;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 40px;\n height: 40px;\n object-fit: cover;\n }\n\n .avatar-default {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-size: 20px;\n font-weight: bold;\n }\n"])),(function(n){return n.theme.colors.secondaryBase})),yn=S.a(fn||(fn=n(["\n display: inline-flex;\n position: relative;\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n flex-shrink: 0;\n\n .user-close-icon {\n display: none;\n }\n &:focus-within {\n .user-close-icon {\n display: block;\n }\n .user-avatar {\n display: none;\n }\n ."," {\n z-index: 200;\n top: 120%;\n opacity: 1;\n visibility: visible;\n display: initial;\n &[data-type='profile'] {\n "," {\n top: 100%;\n }\n }\n }\n ."," {\n display: initial;\n }\n }\n"],["\n display: inline-flex;\n position: relative;\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n flex-shrink: 0;\n\n .user-close-icon {\n display: none;\n }\n &:focus-within {\n .user-close-icon {\n display: block;\n }\n .user-avatar {\n display: none;\n }\n ."," {\n z-index: 200;\n top: 120%;\n opacity: 1;\n visibility: visible;\n display: initial;\n &[data-type='profile'] {\n "," {\n top: 100%;\n }\n }\n }\n ."," {\n display: initial;\n }\n }\n"])),pn,L.mbDown,mn),bn=S.a(xn||(xn=n(["\n display: inline-flex;\n .login-btn[data-color='tertiary'][data-size='md'] {\n padding-left: 12px;\n padding-right: 12px;\n }\n .mobile-only {\n "," {\n display: none;\n }\n }\n .login-btn {\n padding-left: 10px;\n padding-right: 10px;\n display: none;\n "," {\n display: block;\n }\n }\n"],["\n display: inline-flex;\n .login-btn[data-color='tertiary'][data-size='md'] {\n padding-left: 12px;\n padding-right: 12px;\n }\n .mobile-only {\n "," {\n display: none;\n }\n }\n .login-btn {\n padding-left: 10px;\n padding-right: 10px;\n display: none;\n "," {\n display: block;\n }\n }\n"])),L.mbUp,L.mbUp),wn="profile/posts?website_url={websiteUrl}",En=99,kn=300,Cn=400,Pn=210,Bn=function(n){var e,t,i,o;return n?{termId:n.term_id||null,sponsor:n.sponsor?(o=n.sponsor,o?{title:o.title,logo:o.logo,link:o.link}:{}):null,isSponsored:n.is_sponsored||null,categoryName:n.cat_name||n.name||null,name:n.name||null,iconUrl:n.icon||"",slugName:n.category_nicename||null,description:n.description||null,featureImage:n.thumbnail||n.image||null,displayName:n.name||null,parent:n.parent||null,permalink:n.permalink||null,slug:n.slug||null,childCates:(null===(e=n.child_cates)||void 0===e?void 0:e.map((function(n){return Bn(n)})))||[],thumnailColor:n.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:n.color_feature_image||null,imageColor:n.image_color||null,textColor:n.text_color||null,catParent:(null===(t=n.cat_parent)||void 0===t?void 0:t.name)?{name:n.cat_parent.name,permalink:n.cat_parent.permalink}:{},metaTag:n.meta_tag||"",reviewedBy:n.reviewed_by?(i=n.reviewed_by,{postTitle:i.post_title,permalink:i.permalink}):null,reviewedDate:n.reviewed_date||"",faqs:n.faqs?n.faqs.map((function(n){return function(n){return{title:n.title,content:n.content}}(n)})):null}:{}},Nn=function(n){var e,t;if(!n)return{};var i=null===(e=n.link)||void 0===e?void 0:e.includes("/bot/"),o=null===(t=n.link)||void 0===t?void 0:t.startsWith("/fil/"),a=n.link?n.link.startsWith("http")||i?n.link:o?n.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):"/health-tools".concat(n.link.replace("/health-tools/","/")):void 0;return{icon:n.icon,link:a,subtitle:n.subtitle,title:n.title}},_n=function(n){return n?{thumbnail:n.thumbnail,link:null==n?void 0:n.slug,subtitle:n.name,name:n.name,slug:n.slug}:{}},zn=function(n){return n?{id:n.id,name:n.name,logo:null==n?void 0:n.logo,description:n.about,slug:n.slug}:{}},An=function(n){var e,t,i=n.type,o=n.specialtySlug,a=n.locale;return"".concat(null===(e=V[a])||void 0===e?void 0:e.ALL,"/").concat((null===(t=V[a])||void 0===t?void 0:t[i])||"doctor","/").concat(null!=o?o:"")},Tn=function(n){return n?{id:n.ID,name:n.name,permalink:n.permalink,image:(null==n?void 0:n.small_banner)||(null==n?void 0:n.image)||"",imageMedium:(null==n?void 0:n.image_medium)||null,imageThumbnail:(null==n?void 0:n.image_thumbnail)||null,startDate:null==n?void 0:n.start_date,endDate:null==n?void 0:n.end_date}:{}},Mn=function(n){var e=new Date;if(null==n?void 0:n.startDate){var t=new Date(n.startDate);if(e.getTime()<t.getTime())return!1}if(null==n?void 0:n.endDate){var i=new Date(n.endDate);if(e.getTime()>i.getTime())return!1}return!0},Hn={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"},Ln={navHeader:"uJQBNNg",navAvatar:"TfG3dM5",navHeaderUserInfos:"aMtjFNf",navHeaderUserName:"cSz2RR-",navHeaderMyProfileButton:"GyFm00F"};function Sn(n){var e=n.userInfo,t=n.onClickMyProfileButton,i=n.themeName,o=void 0===i?"helloSites":i,l=T().t,s=r((function(){var n=(null==e?void 0:e.name)||(null==e?void 0:e.username);return n&&n.length?n[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return a.createElement("div",{className:Ln.navHeader,onClick:function(){t&&t()}},a.createElement(U,{className:Ln.navAvatar,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:s,backgroundColor:"marryBaby"===o?I.mbColors.pink:I.colors.secondaryBase}),a.createElement("div",{className:Ln.navHeaderUserInfos},a.createElement("div",{className:Ln.navHeaderUserName},(null==e?void 0:e.name)||(null==e?void 0:e.username)),a.createElement("div",{className:Ln.navHeaderMyProfileButton,style:{"--bg-hellosites":"url(".concat(R.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg"),")"),"--bg-marrybaby":"url(".concat(R.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg"),")")}},l("userProfile.nav.header.viewProfile"))))}var Un,Dn,jn,Rn,In,On,Fn,Gn,Vn,Wn,Yn,Zn,Qn,Kn,qn,Jn="fVk18fq",Xn="v8TCvUb",$n="mx7T4V3",ne={myHealth:I.mbColors.toneYellow,myCommunity:I.mbColors.toneBlue,mySaved:I.mbColors.toneGreen},ee={helloSites:{myBooking:function(){return R.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg")},myCommunity:function(){return R.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg")},myFamily:function(){return R.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg")},myHealth:function(){return R.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg")},mySaved:function(){return R.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg")},eCom:function(){return R.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")}},marryBaby:{mySaved:function(){return R.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg")},myCommunity:function(){return R.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg")},myHealth:function(){return R.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}}},te=function(n){var e=n.type,t=n.themeName,i=n.className,o=n.onClick,l=void 0===o?function(){}:o,s=T().t,d=r((function(){var n,i;return(null===(i=null===(n=ee[t])||void 0===n?void 0:n[e])||void 0===i?void 0:i.call(n))||""}),[e,t]),p=r((function(){return"marryBaby"!==t?"transparent":ne[e]}),[e,t]);return a.createElement("div",{onClick:function(){l(e)},className:"".concat(Jn," ").concat(i)},a.createElement("div",{className:$n,style:{backgroundColor:p,backgroundImage:'url("'.concat(d,'")')}}),a.createElement("h3",{className:Xn},s("userProfile.nav.card.".concat(e))))},ie="gn6HmGG",oe="FCx8FEM",ae="zMiRxaE",re="lZ2Z9MQ",le="rwm-agG",se="qMOscoq",de=function(n){var e=n.themeName,t=n.locale,i=n.onClickItem,o=d(""),l=o[0],s=o[1],p=r((function(){return"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:R.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:R.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:R.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:R.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]}),[e]);function c(n){n.subMenu?s((function(e){return e?"":n.key})):i&&i(n)}return a.createElement("div",{className:ie},p.map((function(n){return a.createElement(pe,{key:n.key,item:n,openKey:l,onClickItem:c,locale:t})})))},pe=function(n){var e,t=n.item,i=n.openKey,o=n.onClickItem,r=n.locale,l=T().t;return(null===(e=t.disableLocale)||void 0===e?void 0:e.includes(r))?null:a.createElement("div",{className:"".concat(oe," nav-menu-item"),"data-is-open":i===t.key,key:t.key,"data-has-submenu":!!t.subMenu},a.createElement("div",{className:ae,onClick:function(){return o(t)}},t.icon&&a.createElement("div",{className:re,style:{backgroundImage:'url("'.concat(t.icon,'")')}}),l(t.key),t.subMenu&&a.createElement("div",{className:le,style:{"--after-bg":"url(".concat(R.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg"),")")}})),t.subMenu&&a.createElement("div",{className:se},t.subMenu.map((function(n){return a.createElement(pe,{key:n.key,item:n,openKey:i,onClickItem:o,locale:r})}))))},ce="-AZt1au",me="IvSIfCI",ue="eahCJov",ge="XIyViFs",he="_4y-O0w3",fe="kO8iNgD",xe="a1d4E10",ve="Tdguxxf",ye="-mOxsaU",be="yPeDBNZ",we={helloSites:{member:function(){return R.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg")},ambassador:function(){return R.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg")},doctor:function(){return R.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg")},expert:function(){return R.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg")},influencer:function(){return R.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")}},marryBaby:{member:function(){return R.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg")},ambassador:function(){return R.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg")},doctor:function(){return R.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg")},expert:function(){return R.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg")},influencer:function(){return R.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}}},Ee=function(n){var e=n.themeName,t=n.rank,i=void 0===t?"member":t,o=n.numberOfPosts,l=void 0===o?0:o,s=T().t,d=r((function(){var n,t;return(null===(t=null===(n=we[e])||void 0===n?void 0:n[i])||void 0===t?void 0:t.call(n))||""}),[i,e]);return a.createElement("div",{className:he,"data-user-rank":i},a.createElement("div",{className:fe},a.createElement("div",{className:xe},a.createElement("div",{className:ve,style:{backgroundImage:'url("'.concat(d,'")')}}),a.createElement("h3",{className:ye},s("userProfile.userRank.".concat(i))),l>0&&a.createElement("p",{className:be},l," ",s("userProfile.nav.header.count.posts")))))},ke=function(n){var t=n.SSO_URL,i=n.UP_BASEPATH,o=void 0===i?"user":i,l=n.themeName,p=void 0===l?"helloSites":l,c=n.cardUrls,m=void 0===c?Hn:c,u=n.enableCare,h=n.enableTogether,f=n.enableEcom,x=n.userInfo,v=n.togetherApiDomain,y=n.userPostsNumber,b=n.onClickNavigationCard,w=n.onClickMyProfileButton,E=n.onClickMenuItem,k=n.onClickLogout,C=n.isUserProfileNavigatorMenuHidden,P=void 0!==C&&C,B=n.isMyHealthEnabled,N=void 0!==B&&B,_=n.locale,z=T().t,A=d(y||0),M=A[0],H=A[1],L="marryBaby"===p;s((function(){if(x&&void 0===y){var n=G("hhg_user_token");n&&fetch(function(n,t,i,o){return(i||"https://together.hellohealthgroup.com/")+"api/v1/"+W(wn,e(e({},o),{websiteUrl:t?"https://marrybaby.vn":"https://".concat(g[n])}))}(_,L,v),{headers:{Authorization:"Bearer ".concat(n)}}).then((function(n){return n.json()})).then((function(n){var e,t,i;1===(null==n?void 0:n.status)&&(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.pagination)&&H((null===(i=null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.pagination)||void 0===i?void 0:i.total_items)||0)})).catch((function(n){return console.error("Error fetching post number",n)}))}}),[_,null!==x,y,v,L]);var S=r((function(){return(L?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"]).filter((function(n){return"myBooking"===n?u:"myCommunity"===n?h:"myHealth"===n?N:"eCom"!==n||f}))}),[L,N]),U=r((function(){return"marryBaby"===p?null:a.createElement(D,{color:"tertiary",icon:a.createElement("img",{src:R.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:k,className:ge},z("userProfile.nav.menu.logout"))}),[p]),j=function(n){window.location.href="".concat(t).concat(o,"/").concat(n)},I=function(n){var e=m[n];b?b(e):j(e)};return x?a.createElement("div",{className:ce,"data-theme":p},a.createElement(Sn,{userInfo:x,themeName:p,onClickMyProfileButton:function(){w?w():j("profile")}}),a.createElement(Ee,{themeName:p,rank:"member",numberOfPosts:M}),a.createElement("div",{className:me},S.map((function(n){return a.createElement(te,{className:ue,key:n,themeName:p,type:n,onClick:I})}))),!P&&a.createElement(a.Fragment,null,a.createElement(de,{themeName:p,locale:_,onClickItem:function(n){"logout"===n.link&&k?k():n.link&&!n.subMenu&&(E?E(n.link):j(n.link))}}),U)):null},Ce=function(n){var e=n.type,t=void 0===e?"lead":e,i=n.closeIcon,o=n.isOpen,r=void 0===o||o,l=n.onClose,s=n.children,d=n.enableAnimation,p=void 0===d||d,c=n.targetAvatar,m=n.id,u=n.className;return a.createElement(cn,{"data-open":r,"data-type":t,"data-animation":p,"data-target":c,id:m,className:u},a.createElement("div",{className:"popup-content"},!!i&&a.createElement("div",{className:"close-button",onClick:l},i),s))},Pe=function(n){var e=n.SSO_URL,t=n.UP_BASEPATH,i=n.isOpen,o=n.targetAvatar,r=n.userInfo,l=n.enableCare,s=n.enableTogether,d=n.enableEcom,p=n.closePopup,c=n.siteType,m=void 0===c?"helloSites":c,u=n.dispatchLogout,g=n.userProfileRouterPush,h=n.isUserProfileNavigatorMenuHidden,f=n.isMyHealthEnabled,x=void 0!==f&&f,v=n.togetherApiDomain,y=n.locale,b=function(n){g?g("/".concat(n)):e&&(window.location.href="".concat(e).concat(t,"/").concat(n))},w=function(n){b(n),p()};return a.createElement(Ce,{isOpen:i,type:"profile",enableAnimation:!0,targetAvatar:o,onClose:p},a.createElement(ke,{SSO_URL:e,UP_BASEPATH:t,themeName:m,userInfo:r,enableCare:l,enableTogether:s,enableEcom:d,onClickLogout:function(){u&&(u(),p())},onClickMenuItem:w,onClickNavigationCard:w,onClickMyProfileButton:function(){b("profile"),p()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:x,togetherApiDomain:v,locale:y}))},Be=function(n){var o=n.userInfo,r=n.siteType,l=n.onLoginClick,p=n.SSO_URL,c=n.currentUrl,m=n.isMinifyLogin,u=n.enableCare,g=n.enableTogether,h=n.enableEcom,f=n.isUserProfileNavigatorMenuHidden,x=n.UP_BASEPATH,v=n.isMyHealthEnabled,y=n.togetherApiDomain,b=n.onLogout,w=n.style,E=n.userProfileRouterPush,k=n.isLoading,C=n.locale,P=T().t,B=d(!1),N=B[0],_=B[1],z=(null==o?void 0:o.name)||(null==o?void 0:o.username),A=d(!1),M=A[0],H=A[1];s((function(){H(!0)}),[]);var L=rn(),S=L.containerRef,O=L.onContainerFocus,F=L.onContainerBlur,G=L.onButtonMouseDown,V=L.onClose;return k?a.createElement(D,{size:"sm",color:"transparent",isLoading:!0}):(null==o?void 0:o.id)?a.createElement(a.Fragment,null,a.createElement(yn,{ref:S,style:w,tabIndex:0,onBlur:F,onFocus:O},a.createElement("div",{onMouseDown:G},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),a.createElement(U,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==o?void 0:o.avatar,firstLetter:z&&z.length?z[0].toUpperCase():"A",backgroundColor:"marryBaby"===r?I.mbColors.pink:I.colors.secondaryBase})),a.createElement(Pe,{UP_BASEPATH:x,SSO_URL:p,dispatchLogout:function(){V(),_(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:u,enableTogether:g,enableEcom:h,closePopup:V,userInfo:o,siteType:r,isUserProfileNavigatorMenuHidden:f,togetherApiDomain:y,userProfileRouterPush:E,locale:C})),a.createElement(dn,{openLogoutPopup:N,onCloseHandler:function(){document.body.classList.toggle("noscroll",!1),_(!1)},siteType:r,onLogoutHandler:function(){return t(void 0,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return _(!1),document.body.classList.toggle("noscroll",!1),[4,b()];case 1:return n.sent(),[2]}}))}))}})):a.createElement(bn,{style:e({textDecoration:"none"},w),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":c,href:M?void 0:"".concat(p,"?returnUrl=").concat(c),"data-site-type":r},m?a.createElement(vn,{onClick:l},a.createElement("img",{src:R.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):a.createElement(a.Fragment,null,"helloSites"===r&&a.createElement("img",{className:"mobile-only",src:R.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:l}),"marryBaby"===r&&a.createElement("div",{className:"mobile-only",onClick:l,style:{paddingLeft:16}},a.createElement(j,{size:"p3",color:I.mbColors.pink},P("navigation.loginJoin"))),a.createElement(D,{className:"login-btn",size:"md",color:"tertiary",onClick:l,icon:a.createElement("img",{src:R.getAssetPath("login.svg"),width:18,height:18}),theme:r},P("navigation.loginJoin"))))},Ne=function(n){return n.replace(/([^:]\/)\/+/g,"$1")},_e=function(n){return Ne(function(n){return n.replace(/\/?$/,"/")}(n))},ze=a.createContext({}),Ae=function(n){var t=n.children,i=o(n,["children"]),l=a.useState((function(){return i.currentUrl||"https://".concat("marryBaby"===i.siteType?Y[i.locale||"en-PH"]:g[i.locale||"en-PH"]).concat("together"===i.projectType?"/community":"ecom"===i.projectType?"/ecom":"care"===i.projectType?"/care":"","/")})),d=l[0],p=l[1];s((function(){var n=function(){p(window.location.href)};return window.addEventListener("popstate",n),n(),function(){window.removeEventListener("popstate",n)}}),[]);var c=function(n){var e=n.locale,t=n.projectType,i=n.isMobile,o=n.siteType;return r((function(){var n=!(!i&&"profile"===t),a="discover"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===o,r="marryBaby"!==o&&"marryBaby"!==t&&h.includes(e),l="marryBaby"!==t&&"discover"===t&&"marryBaby"!==o&&f.includes(e),s="marryBaby"===t||x.includes(e),d="ecom"===t,p="ecom"===t,c=w(e,"marryBaby"===o),m=E(e,"marryBaby"===o);return{enableProfileNavigatorMenu:n,enableSearchBar:a,enableNavCare:r,enableNavCareBooking:l,enableNavTogether:s,enableNavEcom:d,enableProfileEcom:p,enableProfileMyHealth:!0,statics:{HOME_PAGE_URL:c,CARE_URL_FE:"".concat(c,"/care"),TOGETHER_URL_FE:"".concat(c,"/community"),SSO_URL:m,TOGETHER_API:k(),DISCOVER_API:C(e)}}}),[e,t,i])}({locale:i.locale,projectType:i.projectType,isMobile:i.isMobile,siteType:i.siteType});return a.createElement(ze.Provider,{value:e(e({},i),{configs:c,currentUrl:i.currentUrl||d})},t)},Te="-XmTq5-",Me="V-oxu20",He=function(n){var e=n.item,t=n.menu,i=rn({allowBgScroll:!0}),o=i.containerRef,r=i.onContainerFocus,l=i.onContainerBlur,p=i.onButtonMouseDown,c=i.onClose,m=function(){var n=d(!0),e=n[0],t=n[1];return s((function(){t(!1)}),[]),e}();return!e.popupType&&e.link?a.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem ".concat(m?"":"menu-handler-".concat(e.id)),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:Me},e.name)):a.createElement("div",{ref:o,className:"hhgcomp-navigation-itemnav-headeritem ".concat(m?"":"menu-handler-".concat(e.id)),tabIndex:0,key:e.id,onBlur:l,onFocus:r,"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:p,className:Me},e.name,e.popupType&&a.createElement("div",{className:Te},a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},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:c}):null)},Le=p((function(){return a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},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"}))})),Se=function(){var n=c(ze),e=n.locale,t=n.configs.statics,i=n.siteType,o=T().t;return a.createElement(Q,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===i?o("navigation.search.input.placeholder"):o("home.search",{site:v[e||"en-PH"]?v[e||"en-PH"].SITE_NAME:""}),onChange:function(){},onKeyDown:function(n){return"Enter"===n.key&&(window.location.href="".concat(t.HOME_PAGE_URL,"/search/?s=").concat(n.target.value))},type:"search",onFocus:function(n){n.preventDefault()},displayIcon:a.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},a.createElement(Le,null))})},Ue="eJS8-if",De="EuQrB-3",je="_0JtBh8L",Re=function(n){var e=n.onClosePopup;return a.createElement("div",{className:"".concat(je," close-btn"),onClick:e},a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))},Ie=function(n){var e=n.onClosePopup,t=n.isDisplay,i=n.children,o=n.isNavMenu,r=n.hideCloseBtn;return a.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!o},a.createElement(z,null,!r&&a.createElement("div",{className:De},a.createElement(Re,{onClosePopup:e})),a.createElement(z,{className:Ue},i)))},Oe=S.div(Un||(Un=n(["\n padding-right: 1rem;\n margin-top: 10px;\n background: #ffffff;\n padding: 5px 15px;\n "," {\n border-right: 1px solid #e4e8ec;\n }\n"],["\n padding-right: 1rem;\n margin-top: 10px;\n background: #ffffff;\n padding: 5px 15px;\n "," {\n border-right: 1px solid #e4e8ec;\n }\n"])),L.mbUp),Fe=S.a(Dn||(Dn=n(["\n padding: 10px 0;\n position: relative;\n\n display: flex;\n align-items: center;\n text-decoration: none;\n color: ",";\n * {\n pointer-events: none;\n }\n p {\n font-size: 16px;\n font-weight: 400;\n padding: 0 0.4rem;\n }\n\n &[data-theme='marryBaby']:hover {\n p {\n color: ",";\n }\n .icon {\n background-color: ",";\n }\n }\n &[data-theme='helloSite']:hover {\n p {\n color: ",";\n }\n }\n a {\n }\n\n &[data-theme='marryBaby'] {\n .icon {\n display: flex;\n align-items: center;\n justify-content: center;\n max-width: 40px;\n width: 100%;\n height: 40px;\n border-radius: 50%;\n background-color: ",";\n img {\n border-radius: 50%;\n }\n }\n }\n"],["\n padding: 10px 0;\n position: relative;\n\n display: flex;\n align-items: center;\n text-decoration: none;\n color: ",";\n * {\n pointer-events: none;\n }\n p {\n font-size: 16px;\n font-weight: 400;\n padding: 0 0.4rem;\n }\n\n &[data-theme='marryBaby']:hover {\n p {\n color: ",";\n }\n .icon {\n background-color: ",";\n }\n }\n &[data-theme='helloSite']:hover {\n p {\n color: ",";\n }\n }\n a {\n }\n\n &[data-theme='marryBaby'] {\n .icon {\n display: flex;\n align-items: center;\n justify-content: center;\n max-width: 40px;\n width: 100%;\n height: 40px;\n border-radius: 50%;\n background-color: ",";\n img {\n border-radius: 50%;\n }\n }\n }\n"])),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.mbColors.pink}),(function(n){return n.theme.mbColors.lightPink}),(function(n){return n.theme.colors.primaryActive}),(function(n){return n.theme.mbColors.lightGray})),Ge=S.div(jn||(jn=n(["\n margin: 15px 0;\n "," {\n display: none;\n }\n"],["\n margin: 15px 0;\n "," {\n display: none;\n }\n"])),L.mbDown),Ve=S.div(Rn||(Rn=n(["\n display: flex;\n position: absolute;\n right: 0;\n "," {\n display: none;\n }\n"],["\n display: flex;\n position: absolute;\n right: 0;\n "," {\n display: none;\n }\n"])),L.mbUp),We=S.div(In||(In=n(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n font-weight: ",";\n line-height: 24px;\n font-size: 14px;\n font-weight: 600;\n &[data-event-category] * {\n pointer-events: none;\n }\n &[data-theme='marryBaby'] {\n color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n font-weight: ",";\n line-height: 24px;\n font-size: 14px;\n font-weight: 600;\n &[data-event-category] * {\n pointer-events: none;\n }\n &[data-theme='marryBaby'] {\n color: ",";\n }\n"])),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.sizes.fsParagraph4}),(function(n){return n.theme.sizes.fwBold}),(function(n){return n.theme.mbColors.pink})),Ye=S.div(On||(On=n(["\n display: flex;\n align-items: center;\n margin-left: 10px;\n"],["\n display: flex;\n align-items: center;\n margin-left: 10px;\n"]))),Ze=S.a(Fn||(Fn=n(["\n border: 1px solid ",";\n &[data-theme='marryBaby'] {\n border: 1px solid ",";\n\n svg path {\n stroke: ",";\n }\n }\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 6px;\n border-radius: 5px;\n margin-top: 20px;\n "," {\n display: none;\n }\n"],["\n border: 1px solid ",";\n &[data-theme='marryBaby'] {\n border: 1px solid ",";\n\n svg path {\n stroke: ",";\n }\n }\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 6px;\n border-radius: 5px;\n margin-top: 20px;\n "," {\n display: none;\n }\n"])),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.mbColors.pink}),(function(n){return n.theme.mbColors.pink}),L.mbDown),Qe=function(n){var e=n.hrefViewMore,t=n.titleBtnViewMore,i=n.UrlFE,o=n.onClosePopup,r=n.menuItems,l=n.headingTitle,s=c(ze).siteType;return a.createElement(Oe,null,a.createElement(Ge,null,a.createElement(K,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},l)),null==r?void 0:r.slice(0,6).map((function(n,e){var t=(null==n?void 0:n.link)?(null==n?void 0:n.link.startsWith("http"))?null==n?void 0:n.link:"".concat(i,"/").concat(null==n?void 0:n.link.split("/").filter(Boolean).join("/"),"/"):"/";return a.createElement(Fe,{className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t,"data-is-heading-category":!1,href:t,"data-theme":s,key:e,onClick:o},a.createElement("div",{className:"icon"},a.createElement("img",{loading:"lazy",alt:n.name,src:n.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32}})),a.createElement("p",null,n.name),a.createElement(Ve,null,a.createElement("img",{src:R.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),t&&a.createElement(Ze,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},a.createElement(We,{onClick:o,"data-theme":s,"data-is-heading-category":!1},t,a.createElement(Ye,null,a.createElement("img",{className:"svg",src:"marryBaby"===s?R.getAssetPath("chevronRightPink.svg"):R.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},Ke=S.div(Gn||(Gn=n(["\n padding: 16px;\n border-radius: 8px;\n position: relative;\n z-index: 1;\n overflow: hidden;\n a {\n text-decoration: none;\n }\n\n .bg-svg {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n z-index: -1;\n }\n "," {\n display: block;\n .bg-svg {\n right: -24px;\n left: unset;\n top: 0;\n transform: rotateY(180deg);\n }\n }\n\n "," {\n display: grid;\n grid-gap: 10px;\n grid-template-columns: 1fr 3fr;\n }\n"],["\n padding: 16px;\n border-radius: 8px;\n position: relative;\n z-index: 1;\n overflow: hidden;\n a {\n text-decoration: none;\n }\n\n .bg-svg {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n z-index: -1;\n }\n "," {\n display: block;\n .bg-svg {\n right: -24px;\n left: unset;\n top: 0;\n transform: rotateY(180deg);\n }\n }\n\n "," {\n display: grid;\n grid-gap: 10px;\n grid-template-columns: 1fr 3fr;\n }\n"])),L.mbDown,L.mbUp),qe=S.div(Vn||(Vn=n(["\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n color: ",";\n margin-bottom: 15px;\n"],["\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n color: ",";\n margin-bottom: 15px;\n"])),(function(n){return n.theme.colors.gray600})),Je=S.div(Wn||(Wn=n(["\n font-weight: 600;\n font-size: 16px;\n line-height: 26px;\n color: #000000;\n margin-bottom: 4px;\n"],["\n font-weight: 600;\n font-size: 16px;\n line-height: 26px;\n color: #000000;\n margin-bottom: 4px;\n"]))),Xe=S.div(Yn||(Yn=n(["\n background: #fff;\n padding: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50px;\n"],["\n background: #fff;\n padding: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50px;\n"]))),$e=S.div(Zn||(Zn=n(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n "," {\n justify-content: end;\n min-height: 100px;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n "," {\n justify-content: end;\n min-height: 100px;\n }\n"])),L.mbDown),nt=function(n){var e=n.title,t=n.link,i=n.description,o=n.cta,r=n.icon,l=c(ze).siteType;return a.createElement(Ke,{"data-theme":l},a.createElement($e,null,a.createElement("img",{src:"marryBaby"===l?R.getAssetPath("navMBSpotlightBgNoData.svg"):R.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(Xe,null,r&&a.createElement("img",{src:r,width:64,height:64}))),a.createElement("div",null,e&&a.createElement(Je,null,e),i&&a.createElement(qe,null,i),o&&a.createElement("div",null,a.createElement("a",{href:t},a.createElement(D,{theme:l,className:"survey-contact-submit",size:"md"},o)))))},et=S.div(Qn||(Qn=n(["\n margin-top: 10px;\n background: #ffffff;\n padding: 5px 15px;\n position: relative;\n "," {\n &:after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 4px;\n background-color: ",";\n content: '';\n }\n }\n"],["\n margin-top: 10px;\n background: #ffffff;\n padding: 5px 15px;\n position: relative;\n "," {\n &:after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 4px;\n background-color: ",";\n content: '';\n }\n }\n"])),L.mbDown,(function(n){return n.theme.colors.neutral100})),tt=S.div(Kn||(Kn=n(["\n margin: 15px 0;\n display: flex;\n"],["\n margin: 15px 0;\n display: flex;\n"]))),it=S.a(qn||(qn=n(["\n padding-left: 10px;\n display: flex;\n align-items: center;\n text-decoration: none;\n font-weight: 400;\n font-size: 14px;\n color: ",";\n &[data-theme='marryBaby'] {\n color: ",";\n }\n img {\n padding-left: 5px;\n }\n "," {\n margin-left: auto;\n }\n"],["\n padding-left: 10px;\n display: flex;\n align-items: center;\n text-decoration: none;\n font-weight: 400;\n font-size: 14px;\n color: ",";\n &[data-theme='marryBaby'] {\n color: ",";\n }\n img {\n padding-left: 5px;\n }\n "," {\n margin-left: auto;\n }\n"])),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.mbColors.pink}),L.mbDown),ot=function(n){var e=n.title,t=n.viewMore,i=n.children,o=n.link,r=n.dataEventAction,l=void 0===r?"":r,s=c(ze).siteType;return a.createElement(et,null,a.createElement(tt,null,a.createElement(K,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},e),t&&a.createElement(it,{"data-event-category":"Hamburger Navigation","data-event-action":l,"data-event-label":o,href:o,"data-theme":s},t,a.createElement("img",{src:"marryBaby"===s?R.getAssetPath("chevronRightPink.svg"):R.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),i)};S.div(at||(at=n(["\n & > a:not(:last-child) > div {\n border-bottom: 1px solid ",";\n }\n\n &[data-category-list-type='sub'] {\n padding-bottom: 72px;\n }\n\n &[data-is-displayed='false'] {\n display: none;\n }\n"],["\n & > a:not(:last-child) > div {\n border-bottom: 1px solid ",";\n }\n\n &[data-category-list-type='sub'] {\n padding-bottom: 72px;\n }\n\n &[data-is-displayed='false'] {\n display: none;\n }\n"])),(function(n){return n.theme.colors.neutral100}));var at,rt,lt,st,dt,pt,ct,mt,ut,gt=S.div(rt||(rt=n(["\n display: grid;\n\n grid-template-columns: repeat(3, 1fr);\n gap: 24px;\n\n "," {\n grid-template-columns: repeat(1, 1fr);\n }\n"],["\n display: grid;\n\n grid-template-columns: repeat(3, 1fr);\n gap: 24px;\n\n "," {\n grid-template-columns: repeat(1, 1fr);\n }\n"])),L.tdDown),ht=S.div(lt||(lt=n(["\n height: 152px; // 120 + 16 * 2\n position: absolute;\n top: 0;\n left: 0;\n z-index: 3;\n overflow: hidden;\n border-radius: 4px;\n padding: 16px;\n width: 100%;\n\n .img-container {\n width: 100%;\n height: 100%;\n }\n img {\n width: 100%;\n height: 100%;\n display: block;\n object-fit: contain;\n }\n "," {\n margin-bottom: 0;\n padding: 0;\n height: 100%;\n position: unset;\n width: 150px;\n }\n "," {\n width: 80px;\n }\n"],["\n height: 152px; // 120 + 16 * 2\n position: absolute;\n top: 0;\n left: 0;\n z-index: 3;\n overflow: hidden;\n border-radius: 4px;\n padding: 16px;\n width: 100%;\n\n .img-container {\n width: 100%;\n height: 100%;\n }\n img {\n width: 100%;\n height: 100%;\n display: block;\n object-fit: contain;\n }\n "," {\n margin-bottom: 0;\n padding: 0;\n height: 100%;\n position: unset;\n width: 150px;\n }\n "," {\n width: 80px;\n }\n"])),L.tdDown,L.mbDown),ft=S.div(st||(st=n(["\n background-color: #ffffff;\n border-radius: 4px;\n width: 100%;\n height: 100%;\n"],["\n background-color: #ffffff;\n border-radius: 4px;\n width: 100%;\n height: 100%;\n"]))),xt=S.div(dt||(dt=n(["\n display: flex;\n margin-top: 1rem;\n align-items: center;\n color: ",";\n font-weight: 400;\n font-size: 14px;\n text-decoration: none;\n "," {\n display: none;\n }\n"],["\n display: flex;\n margin-top: 1rem;\n align-items: center;\n color: ",";\n font-weight: 400;\n font-size: 14px;\n text-decoration: none;\n "," {\n display: none;\n }\n"])),(function(n){return n.theme.colors.primaryBase}),L.tdDown),vt=S.p(pt||(pt=n(["\n font-size: 16px;\n font-weight: 600;\n line-height: 1.6;\n color: ",";\n "," {\n padding: 0;\n }\n"],["\n font-size: 16px;\n font-weight: 600;\n line-height: 1.6;\n color: ",";\n "," {\n padding: 0;\n }\n"])),(function(n){return n.theme.colors.gray800}),L.tdDown),yt=S.p(ct||(ct=n(["\n font-size: 14px;\n line-height: 1.6;\n font-weight: 400;\n color: ",";\n height: 40px;\n text-overflow: ellipsis;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n margin-bottom: auto;\n "," {\n height: unset;\n padding: 0;\n }\n"],["\n font-size: 14px;\n line-height: 1.6;\n font-weight: 400;\n color: ",";\n height: 40px;\n text-overflow: ellipsis;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n margin-bottom: auto;\n "," {\n height: unset;\n padding: 0;\n }\n"])),(function(n){return n.theme.colors.gray600}),L.tdDown),bt="hhgcomp-navigation-menucareitem-contentwrapper",wt=F(S.div(mt||(mt=n(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n flex: 1;\n z-index: 1;\n "," {\n gap: 4px;\n }\n"],["\n display: flex;\n flex-direction: column;\n gap: 8px;\n flex: 1;\n z-index: 1;\n "," {\n gap: 4px;\n }\n"])),L.tdDown),bt),Et=S.a(ut||(ut=n(["\n text-decoration: none;\n border-radius: 4px;\n background: ",";\n position: relative;\n overflow: hidden;\n padding: 16px;\n display: flex;\n padding-top: 166px;\n * {\n pointer-events: none;\n }\n "," {\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);\n gap: 30px;\n flex-direction: column;\n a {\n display: flex;\n width: 100%;\n }\n }\n "," {\n padding-top: 16px;\n a {\n display: none;\n }\n grid-template-columns: 2fr 1fr;\n gap: 10px;\n display: grid;\n max-height: 110px;\n display: flex;\n flex-direction: row-reverse;\n > ."," {\n flex: 1;\n }\n img {\n width: 150px;\n }\n }\n "," {\n box-shadow: 0px 10px 16px rgba(0, 0, 0, 0.04), 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);\n display: flex;\n flex-direction: row-reverse;\n img {\n width: 80px;\n height: 80px;\n }\n }\n "," {\n border: 1px solid ",";\n }\n .bg-svg {\n width: 100%;\n max-width: 245px;\n height: 100%;\n top: 0;\n right: -40px;\n position: absolute;\n display: inline-block;\n }\n"],["\n text-decoration: none;\n border-radius: 4px;\n background: ",";\n position: relative;\n overflow: hidden;\n padding: 16px;\n display: flex;\n padding-top: 166px;\n * {\n pointer-events: none;\n }\n "," {\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);\n gap: 30px;\n flex-direction: column;\n a {\n display: flex;\n width: 100%;\n }\n }\n "," {\n padding-top: 16px;\n a {\n display: none;\n }\n grid-template-columns: 2fr 1fr;\n gap: 10px;\n display: grid;\n max-height: 110px;\n display: flex;\n flex-direction: row-reverse;\n > ."," {\n flex: 1;\n }\n img {\n width: 150px;\n }\n }\n "," {\n box-shadow: 0px 10px 16px rgba(0, 0, 0, 0.04), 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);\n display: flex;\n flex-direction: row-reverse;\n img {\n width: 80px;\n height: 80px;\n }\n }\n "," {\n border: 1px solid ",";\n }\n .bg-svg {\n width: 100%;\n max-width: 245px;\n height: 100%;\n top: 0;\n right: -40px;\n position: absolute;\n display: inline-block;\n }\n"])),I.colors.white,L.tdUp,L.tdDown,bt,L.mbDown,L.tdOnly,I.colors.neutral100),kt=function(n){var e,t=n.item,i=n.index,o=void 0===i?0:i,r=T().t,l=c(ze),s=l.locale,d=l.configs.statics;if(!t)return null;var p="".concat(d.CARE_URL_FE,"/").concat(null===(e=V[s])||void 0===e?void 0:e.HOSPITAL,"/").concat(t.slug,"-").concat(t.id);return a.createElement(Et,{key:t.id,href:p,"data-event-category":"Hamburger Navigation","data-event-action":"Care Click ".concat(o+1),"data-event-label":p},a.createElement("img",{src:R.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),a.createElement(ht,null,a.createElement(ft,null,a.createElement("img",{loading:"lazy",alt:t.name,src:t.logo||"/images/avatar.jpg"}))),a.createElement(wt,null,a.createElement(vt,null,t.name),a.createElement(yt,null,t.description),a.createElement(xt,null,r("home.seeMore"),a.createElement("img",{src:R.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},Ct=function(n){var e=n.spotlights,t=void 0===e?[]:e,i=n.hrefViewMore,o=T().t;return a.createElement(ot,{title:o("home.navigator.menu.spotlightHospitals")},0!==t.length?a.createElement(gt,null,null==t?void 0:t.slice(0,3).map((function(n,e){return a.createElement(kt,{key:e,index:e,item:n})}))):a.createElement(nt,{title:o("home.navigator.menu.care.noDatas.title"),description:o("home.navigator.menu.care.noDatas.description"),link:i,cta:o("home.navigator.menu.care.noDatas.cta"),icon:R.getAssetPath("community.svg")}))},Pt=function(n){var e,t=n.careSpecialties,i=void 0===t?[]:t,o=n.isOpen,r=n.onClose,l=n.spotlights,s=void 0===l?[]:l,d=T().t,p=c(ze),m=p.locale,u=p.configs.statics,g="".concat(u.CARE_URL_FE,"/").concat(null===(e=V[m])||void 0===e?void 0:e.SPECIALTIES);return a.createElement(Ie,{onClosePopup:r,isDisplay:o,isNavMenu:!0},a.createElement(Qe,{headingTitle:d("home.navigator.menuItem.specialties"),hrefViewMore:g,UrlFE:u.CARE_URL_FE,onClosePopup:r,titleBtnViewMore:d("home.navigator.menuItem.allSpecialties"),menuItems:(null==i?void 0:i.map((function(n){return n?{name:String(n.name)||"",link:An({type:"DOCTOR",specialtySlug:n.slug,locale:m}),thumbnail:(null==n?void 0:n.thumbnail)||""}:{}})))||[]}),a.createElement(Ct,{spotlights:s,hrefViewMore:g}))};S.div(Bt||(Bt=n(["\n &[data-category-list-type='sub'] {\n padding-bottom: 72px;\n }\n\n &[data-is-displayed='false'] {\n display: none;\n }\n"],["\n &[data-category-list-type='sub'] {\n padding-bottom: 72px;\n }\n\n &[data-is-displayed='false'] {\n display: none;\n }\n"]))),S.div(Nt||(Nt=n(["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"],["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"])));var Bt,Nt,_t,zt,At,Tt,Mt=S.div(_t||(_t=n(["\n display: grid;\n\n grid-template-columns: repeat(4, 1fr);\n gap: 24px;\n "," {\n gap: 12px;\n grid-template-columns: 1fr;\n }\n"],["\n display: grid;\n\n grid-template-columns: repeat(4, 1fr);\n gap: 24px;\n "," {\n gap: 12px;\n grid-template-columns: 1fr;\n }\n"])),L.tdDown),Ht=S.a(zt||(zt=n(["\n width: 100%;\n display: flex;\n align-items: center;\n text-decoration: none;\n * {\n pointer-events: none;\n }\n"],["\n width: 100%;\n display: flex;\n align-items: center;\n text-decoration: none;\n * {\n pointer-events: none;\n }\n"]))),Lt=S.div(At||(At=n(["\n border-radius: 5px;\n display: block;\n overflow: hidden;\n padding-top: 140%;\n width: 100%;\n position: relative;\n height: 0;\n img {\n position: absolute;\n width: 100%;\n height: 100%;\n display: block;\n object-fit: cover;\n top: 0;\n left: 0;\n }\n "," {\n width: 72px;\n padding-top: 100px;\n }\n"],["\n border-radius: 5px;\n display: block;\n overflow: hidden;\n padding-top: 140%;\n width: 100%;\n position: relative;\n height: 0;\n img {\n position: absolute;\n width: 100%;\n height: 100%;\n display: block;\n object-fit: cover;\n top: 0;\n left: 0;\n }\n "," {\n width: 72px;\n padding-top: 100px;\n }\n"])),L.tdDown),St=S.p(Tt||(Tt=n(["\n font-size: 16px;\n font-weight: 400;\n padding: 4px 15px;\n line-height: 1.4;\n color: ",";\n flex: 1;\n "," {\n display: none;\n }\n"],["\n font-size: 16px;\n font-weight: 400;\n padding: 4px 15px;\n line-height: 1.4;\n color: ",";\n flex: 1;\n "," {\n display: none;\n }\n"])),(function(n){return n.theme.colors.gray800}),L.tdUp),Ut=function(n){var e=n.item,t=n.index,i=void 0===t?0:t;return e?a.createElement(Ht,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Spotlight Click ".concat(i+1),"data-event-label":e.link},a.createElement(Lt,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),a.createElement(St,null,e.title)):null},Dt=function(n){var e=n.spotlightsList,t=void 0===e?[]:e,i=n.hrefViewMore,o=T().t,r=c(ze).configs.statics;return a.createElement(ot,{title:o("home.navigator.menu.spotlights"),viewMore:o("home.navigator.menu.spotlights.seeAll"),link:i,dataEventAction:"Spotlight See More Click"},0!==t.length?a.createElement(Mt,null,null==t?void 0:t.slice(0,4).map((function(n,e){return a.createElement(Ut,{key:e,index:e,item:{id:n.id,link:r.HOME_PAGE_URL+n.permalink,title:n.name,banner:n.image}})}))):a.createElement(nt,{title:o("home.navigator.menu.category.noDatas.title"),description:o("home.navigator.menu.category.noDatas.description"),link:i,cta:o("home.navigator.menu.category.noDatas.cta"),icon:R.getAssetPath("Spotlight.svg")}))},jt=function(n){var e=n.categories,t=void 0===e?[]:e,i=n.spotlightsList,o=void 0===i?[]:i,r=n.onClose,l=n.isOpen,s=T().t,d=c(ze),p=d.locale,m=d.configs.statics;return a.createElement(Ie,{onClosePopup:r,isDisplay:l,isNavMenu:!0},a.createElement(Qe,{hrefViewMore:"".concat(m.HOME_PAGE_URL).concat("tl-PH"===p?"/fil":"","/categories/"),UrlFE:m.HOME_PAGE_URL,onClosePopup:r,titleBtnViewMore:s("home.navigator.menuItem.allCategories"),menuItems:(null==t?void 0:t.map((function(n){return n?{name:n.displayName||null,link:(null==n?void 0:n.permalink)||"/",thumbnail:n.iconUrl||null}:{}})))||[],headingTitle:s("home.navigator.menuItem.healthCategories")}),a.createElement(Dt,{spotlightsList:o,hrefViewMore:"".concat(m.HOME_PAGE_URL).concat("tl-PH"===p?"/fil":"","/spotlight/")}))};S.div(Rt||(Rt=n(["\n & > :not(:last-child) {\n border-bottom: 1px solid ",";\n }\n\n & > div > :not(:last-child) {\n border-bottom: 1px solid ",";\n }\n\n &[data-category-list-type='sub'] {\n padding-bottom: 72px;\n }\n\n &[data-is-displayed='false'] {\n display: none;\n }\n"],["\n & > :not(:last-child) {\n border-bottom: 1px solid ",";\n }\n\n & > div > :not(:last-child) {\n border-bottom: 1px solid ",";\n }\n\n &[data-category-list-type='sub'] {\n padding-bottom: 72px;\n }\n\n &[data-is-displayed='false'] {\n display: none;\n }\n"])),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.neutral100})),S.div(It||(It=n(["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"],["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"])));var Rt,It,Ot,Ft,Gt,Vt,Wt,Yt,Zt,Qt,Kt,qt,Jt,Xt,$t=S.div(Ot||(Ot=n(["\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-gap: 48px;\n "," {\n grid-template-columns: 1fr;\n grid-gap: 32px;\n }\n "," {\n grid-gap: 24px;\n }\n"],["\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-gap: 48px;\n "," {\n grid-template-columns: 1fr;\n grid-gap: 32px;\n }\n "," {\n grid-gap: 24px;\n }\n"])),L.tdDown,L.mbDown),ni=S.div(Ft||(Ft=n(["\n padding: 5px;\n flex: 1;\n"],["\n padding: 5px;\n flex: 1;\n"]))),ei=S.img(Gt||(Gt=n(["\n width: 88px;\n height: 88px;\n border-radius: 4px;\n object-fit: cover;\n"],["\n width: 88px;\n height: 88px;\n border-radius: 4px;\n object-fit: cover;\n"]))),ti=S.div(Vt||(Vt=n(["\n font-size: 12px;\n font-weight: 600;\n color: ",";\n text-decoration: none;\n &[data-theme='marryBaby'] {\n font-weight: 400;\n letter-spacing: -0.2px;\n }\n"],["\n font-size: 12px;\n font-weight: 600;\n color: ",";\n text-decoration: none;\n &[data-theme='marryBaby'] {\n font-weight: 400;\n letter-spacing: -0.2px;\n }\n"])),(function(n){return n.theme.colors.gray800})),ii=S.div(Wt||(Wt=n(["\n text-decoration: none;\n font-size: 12px;\n font-weight: 400;\n color: ",";\n &[data-theme='marryBaby'] {\n font-weight: 400;\n letter-spacing: -0.2px;\n }\n"],["\n text-decoration: none;\n font-size: 12px;\n font-weight: 400;\n color: ",";\n &[data-theme='marryBaby'] {\n font-weight: 400;\n letter-spacing: -0.2px;\n }\n"])),(function(n){return n.theme.colors.primaryBase})),oi=S.div(Yt||(Yt=n(["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n"],["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n"])),(function(n){return n.theme.colors.gray600})),ai=S.div(Zt||(Zt=n(["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n"],["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n"])),(function(n){return n.theme.colors.gray600})),ri=S.a(Qt||(Qt=n(["\n display: flex;\n gap: 10px;\n text-decoration: none;\n position: relative;\n &::after {\n content: '';\n display: block;\n width: 100%;\n height: 1px;\n border-top: 1px dashed ",";\n position: absolute;\n bottom: -24px;\n "," {\n bottom: -16px;\n }\n "," {\n bottom: -12px;\n }\n }\n &:last-child {\n &::after {\n display: none;\n }\n }\n "," {\n &:nth-last-child(2) {\n &::after {\n display: none;\n }\n }\n }\n"],["\n display: flex;\n gap: 10px;\n text-decoration: none;\n position: relative;\n &::after {\n content: '';\n display: block;\n width: 100%;\n height: 1px;\n border-top: 1px dashed ",";\n position: absolute;\n bottom: -24px;\n "," {\n bottom: -16px;\n }\n "," {\n bottom: -12px;\n }\n }\n &:last-child {\n &::after {\n display: none;\n }\n }\n "," {\n &:nth-last-child(2) {\n &::after {\n display: none;\n }\n }\n }\n"])),(function(n){return n.theme.colors.neutral100}),L.tdOnly,L.mbDown,L.tdUp),li=S.div(Kt||(Kt=n(["\n display: flex;\n gap: 10px;\n vertical-align: middle;\n align-items: center;\n"],["\n display: flex;\n gap: 10px;\n vertical-align: middle;\n align-items: center;\n"]))),si=S.div(qt||(qt=n(["\n margin-top: 8px;\n font-size: 16px;\n font-weight: 600;\n color: ",";\n &[data-theme='marryBaby'] {\n margin-top: 12px;\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n letter-spacing: -0.2px;\n }\n"],["\n margin-top: 8px;\n font-size: 16px;\n font-weight: 600;\n color: ",";\n &[data-theme='marryBaby'] {\n margin-top: 12px;\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n letter-spacing: -0.2px;\n }\n"])),(function(n){return n.theme.colors.gray800})),di=S.div(Jt||(Jt=n(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n column-gap: 5px;\n"],["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n column-gap: 5px;\n"]))),pi=S.div(Xt||(Xt=n(["\n display: flex;\n gap: 4px;\n flex-direction: column;\n"],["\n display: flex;\n gap: 4px;\n flex-direction: column;\n"])));q.extend(J);var ci=function(n){var e,t,i,o,r,l,s,d=n.post,p=n.index,m=void 0===p?0:p,u=c(ze),g=u.siteType,h=u.configs.statics;if(!d)return null;var f=[h.TOGETHER_URL_FE,null===(e=d.community)||void 0===e?void 0:e.slug].join("/"),x=[f,d.slug].join("/"),v=d.createdAt,y=v?isNaN(new Date(v).getTime())?null:new Date(v):null,b=y?q(y).toNow(!0):v;return a.createElement(ri,{href:x,"data-event-category":"Hamburger Navigation","data-event-action":"Together Click ".concat(m+1),"data-event-label":x},a.createElement(ni,null,a.createElement(li,null,a.createElement(Z,{avatar:null===(t=d.author)||void 0===t?void 0:t.avatar,username:(null===(i=d.author)||void 0===i?void 0:i.name)||(null===(o=d.author)||void 0===o?void 0:o.username)}),a.createElement(pi,null,a.createElement(ti,{"data-theme":g},null===(r=d.author)||void 0===r?void 0:r.name),a.createElement(di,null,a.createElement(ii,{"data-event-category":"Hamburger Navigation","data-event-action":"Topic Click ".concat(m+1),"data-event-label":f,onClick:function(n){n.preventDefault(),location.href=f},"data-theme":g},null===(l=d.community)||void 0===l?void 0:l.name),a.createElement(ai,null,"•"),a.createElement(oi,{"data-theme":g},b)))),a.createElement(si,null,d.title)),!!(null===(s=d.photos)||void 0===s?void 0:s.length)&&a.createElement(ei,{loading:"lazy",src:d.photos[0]}))},mi=function(n){var e=n.spotlights,t=void 0===e?[]:e,i=c(ze).configs.statics,o=T().t;return a.createElement(ot,{title:o("home.navigator.menu.trendingPosts"),viewMore:o("home.navigator.menu.trendingPosts.seeMore"),link:_e(i.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==t.length?a.createElement($t,null,null==t?void 0:t.slice(0,4).map((function(n,e){return a.createElement(ci,{index:e,post:n,key:n.id})}))):a.createElement(nt,{title:o("home.navigator.menu.together.noPosts.title"),description:o("home.navigator.menu.together.noPosts.description"),link:"".concat(i.HOME_PAGE_URL,"/community/"),cta:o("home.navigator.menu.together.noPosts.cta"),icon:R.getAssetPath("community.svg")}))},ui=function(n){var e=n.communities,t=void 0===e?[]:e,i=n.onClose,o=n.isOpen,r=n.spotlights,l=void 0===r?[]:r,s=T().t,d=c(ze).configs.statics;return a.createElement(Ie,{onClosePopup:i,isDisplay:o,isNavMenu:!0},a.createElement(Qe,{hrefViewMore:_e(d.TOGETHER_URL_FE),UrlFE:Ne(d.TOGETHER_URL_FE),onClosePopup:i,titleBtnViewMore:s("home.navigator.menuItem.allCommunities"),menuItems:(null==t?void 0:t.map((function(n){return n?{name:n.name||"",link:n.slug||"/",thumbnail:n.thumbnail||""}:{}})))||[],headingTitle:s("home.navigator.menuItem.allCommunitiesheadingTitle")}),a.createElement(mi,{spotlights:l}))};S.div(gi||(gi=n(["\n &[data-is-display='false'] {\n display: none;\n }\n"],["\n &[data-is-display='false'] {\n display: none;\n }\n"])));var gi,hi,fi,xi,vi,yi,bi,wi,Ei,ki,Ci,Pi,Bi,Ni,_i,zi,Ai=S.div(hi||(hi=n(["\n display: grid;\n\n grid-template-columns: repeat(3, 1fr);\n gap: 24px;\n "," {\n grid-template-columns: 1fr;\n gap: 12px;\n }\n"],["\n display: grid;\n\n grid-template-columns: repeat(3, 1fr);\n gap: 24px;\n "," {\n grid-template-columns: 1fr;\n gap: 12px;\n }\n"])),L.tdDown),Ti=S.a(fi||(fi=n(["\n text-decoration: none;\n border-radius: 4px;\n background: #e3f2ff;\n position: relative;\n overflow: hidden;\n display: flex;\n * {\n pointer-events: none;\n }\n .bg-svg {\n width: 245px;\n top: 0;\n right: 0;\n height: 100%;\n position: absolute;\n "," {\n top: calc(51% - 68px);\n right: -8px;\n }\n }\n padding: 180px 24px 16px;\n a {\n display: flex;\n width: 100%;\n }\n "," {\n padding-top: 16px;\n display: flex;\n align-items: center;\n }\n"],["\n text-decoration: none;\n border-radius: 4px;\n background: #e3f2ff;\n position: relative;\n overflow: hidden;\n display: flex;\n * {\n pointer-events: none;\n }\n .bg-svg {\n width: 245px;\n top: 0;\n right: 0;\n height: 100%;\n position: absolute;\n "," {\n top: calc(51% - 68px);\n right: -8px;\n }\n }\n padding: 180px 24px 16px;\n a {\n display: flex;\n width: 100%;\n }\n "," {\n padding-top: 16px;\n display: flex;\n align-items: center;\n }\n"])),L.tdDown,L.tdDown),Mi=S.div(xi||(xi=n(["\n width: 64px;\n height: 64px;\n background: white;\n position: absolute;\n right: 25px;\n top: 35px;\n z-index: 3;\n border-radius: 50%;\n img {\n position: absolute;\n width: 64px;\n height: 64px;\n top: 50%;\n left: 50%;\n display: block;\n transform: translate(-50%, -50%);\n }\n "," {\n position: relative;\n top: unset;\n right: unset;\n }\n"],["\n width: 64px;\n height: 64px;\n background: white;\n position: absolute;\n right: 25px;\n top: 35px;\n z-index: 3;\n border-radius: 50%;\n img {\n position: absolute;\n width: 64px;\n height: 64px;\n top: 50%;\n left: 50%;\n display: block;\n transform: translate(-50%, -50%);\n }\n "," {\n position: relative;\n top: unset;\n right: unset;\n }\n"])),L.tdDown),Hi=S.div(vi||(vi=n(["\n display: flex;\n align-items: center;\n color: ",";\n font-weight: 400;\n font-size: 14px;\n text-decoration: none;\n"],["\n display: flex;\n align-items: center;\n color: ",";\n font-weight: 400;\n font-size: 14px;\n text-decoration: none;\n"])),(function(n){return n.theme.colors.primaryBase})),Li=S.p(yi||(yi=n(["\n font-size: 16px;\n font-weight: 600;\n line-height: 1.4;\n color: ",";\n"],["\n font-size: 16px;\n font-weight: 600;\n line-height: 1.4;\n color: ",";\n"])),(function(n){return n.theme.colors.gray800})),Si=S.p(bi||(bi=n(["\n font-size: 14px;\n line-height: 1.4;\n font-weight: 400;\n color: ",";\n height: 40px;\n text-overflow: ellipsis;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n margin-bottom: auto;\n "," {\n display: none;\n }\n"],["\n font-size: 14px;\n line-height: 1.4;\n font-weight: 400;\n color: ",";\n height: 40px;\n text-overflow: ellipsis;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n margin-bottom: auto;\n "," {\n display: none;\n }\n"])),(function(n){return n.theme.colors.gray600}),L.tdDown),Ui=S.div(wi||(wi=n(["\n display: flex;\n flex-direction: column;\n flex: 1;\n z-index: 1;\n "," {\n gap: 8px;\n }\n "," {\n gap: 4px;\n flex: 1;\n }\n"],["\n display: flex;\n flex-direction: column;\n flex: 1;\n z-index: 1;\n "," {\n gap: 8px;\n }\n "," {\n gap: 4px;\n flex: 1;\n }\n"])),L.tdUp,L.tdDown),Di=function(n){var e=n.item,t=n.index,i=void 0===t?0:t,o=T().t,r=c(ze).configs.statics;if(!e)return null;var l=e.link?e.link.startsWith("http")?e.link:"".concat(r.HOME_PAGE_URL).concat(e.link):void 0;return a.createElement(Ti,{href:l,"data-event-category":"Hamburger Navigation","data-event-action":"Engage Click ".concat(i+1),"data-event-label":l},a.createElement("img",{src:R.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),a.createElement(Ui,null,a.createElement(Li,null,e.title),a.createElement(Si,null,e.subtitle),a.createElement(Hi,null,o("home.seeMore"),a.createElement("img",{src:R.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),a.createElement(Mi,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},ji=S.a(Ei||(Ei=n(["\n text-decoration: none;\n border-radius: 12px;\n\n position: relative;\n overflow: hidden;\n display: flex;\n * {\n pointer-events: none;\n }\n .bg-svg {\n top: 0;\n left: 0;\n position: absolute;\n }\n\n .dot-svg {\n width: 40px;\n height: 30px;\n top: 36px;\n left: 16px;\n position: absolute;\n stroke-width: 0;\n }\n\n &[data-color='pink'] {\n background: ",";\n .bg-svg {\n fill: ",";\n }\n }\n &[data-color='orange'] {\n background: ",";\n .bg-svg {\n fill: ",";\n }\n }\n &[data-color='green'] {\n background: ",";\n .bg-svg {\n fill: ",";\n }\n }\n\n padding: 180px 24px 16px;\n a {\n display: flex;\n width: 100%;\n }\n "," {\n padding-top: 16px;\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n }\n "," {\n padding-top: 0;\n padding-left: 80px;\n height: 96px;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n .dot-svg {\n top: 22px;\n left: 16px;\n }\n }\n "," {\n min-height: 296px;\n }\n .mobile-only {\n "," {\n display: none;\n }\n }\n .desktop-only {\n "," {\n display: none;\n }\n }\n"],["\n text-decoration: none;\n border-radius: 12px;\n\n position: relative;\n overflow: hidden;\n display: flex;\n * {\n pointer-events: none;\n }\n .bg-svg {\n top: 0;\n left: 0;\n position: absolute;\n }\n\n .dot-svg {\n width: 40px;\n height: 30px;\n top: 36px;\n left: 16px;\n position: absolute;\n stroke-width: 0;\n }\n\n &[data-color='pink'] {\n background: ",";\n .bg-svg {\n fill: ",";\n }\n }\n &[data-color='orange'] {\n background: ",";\n .bg-svg {\n fill: ",";\n }\n }\n &[data-color='green'] {\n background: ",";\n .bg-svg {\n fill: ",";\n }\n }\n\n padding: 180px 24px 16px;\n a {\n display: flex;\n width: 100%;\n }\n "," {\n padding-top: 16px;\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n }\n "," {\n padding-top: 0;\n padding-left: 80px;\n height: 96px;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n .dot-svg {\n top: 22px;\n left: 16px;\n }\n }\n "," {\n min-height: 296px;\n }\n .mobile-only {\n "," {\n display: none;\n }\n }\n .desktop-only {\n "," {\n display: none;\n }\n }\n"])),(function(n){return n.theme.mbColors.tonePink}),(function(n){return n.theme.mbColors.peach}),(function(n){return n.theme.mbColors.toneYellow}),(function(n){return n.theme.mbColors.orange}),(function(n){return n.theme.mbColors.toneGreen}),(function(n){return n.theme.mbColors.mint}),L.tdDown,L.mbDown,L.tdUp,L.tdUp,L.tdDown),Ri=S.div(ki||(ki=n(["\n width: 48px;\n height: 48px;\n background: white;\n position: absolute;\n right: 25px;\n top: 35px;\n z-index: 3;\n border-radius: 50%;\n img {\n position: absolute;\n width: 36px;\n height: 36px;\n top: 50%;\n left: 50%;\n display: block;\n transform: translate(-50%, -50%);\n }\n "," {\n position: relative;\n top: unset;\n right: unset;\n }\n "," {\n position: absolute;\n left: 32px;\n top: 28px;\n }\n"],["\n width: 48px;\n height: 48px;\n background: white;\n position: absolute;\n right: 25px;\n top: 35px;\n z-index: 3;\n border-radius: 50%;\n img {\n position: absolute;\n width: 36px;\n height: 36px;\n top: 50%;\n left: 50%;\n display: block;\n transform: translate(-50%, -50%);\n }\n "," {\n position: relative;\n top: unset;\n right: unset;\n }\n "," {\n position: absolute;\n left: 32px;\n top: 28px;\n }\n"])),L.tdDown,L.mbDown),Ii=S.div(Ci||(Ci=n(["\n display: flex;\n align-items: center;\n background: white;\n font-weight: 400;\n font-size: 14px;\n text-decoration: none;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n\n svg path {\n fill: ",";\n }\n\n "," {\n background: none;\n width: 100%;\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n color: ",";\n padding-left: 16px;\n }\n"],["\n display: flex;\n align-items: center;\n background: white;\n font-weight: 400;\n font-size: 14px;\n text-decoration: none;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n\n svg path {\n fill: ",";\n }\n\n "," {\n background: none;\n width: 100%;\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n color: ",";\n padding-left: 16px;\n }\n"])),(function(n){return n.theme.mbColors.gray}),L.tdDown,(function(n){return n.theme.mbColors.pink})),Oi=S.p(Pi||(Pi=n(["\n font-weight: 600;\n font-size: 14px;\n line-height: 24px;\n letter-spacing: -0.2px;\n color: ",";\n"],["\n font-weight: 600;\n font-size: 14px;\n line-height: 24px;\n letter-spacing: -0.2px;\n color: ",";\n"])),(function(n){return n.theme.colors.gray800})),Fi=S.p(Bi||(Bi=n(["\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n letter-spacing: -0.2px;\n color: ",";\n height: 54px;\n text-overflow: ellipsis;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n margin-bottom: auto;\n "," {\n display: none;\n }\n"],["\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n letter-spacing: -0.2px;\n color: ",";\n height: 54px;\n text-overflow: ellipsis;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n margin-bottom: auto;\n "," {\n display: none;\n }\n"])),(function(n){return n.theme.colors.gray600}),L.tdDown),Gi=S.div(Ni||(Ni=n(["\n display: flex;\n flex: 1;\n z-index: 1;\n align-items: flex-end;\n justify-content: flex-end;\n "," {\n gap: 8px;\n flex-direction: row;\n }\n\n "," {\n align-items: flex-start;\n justify-content: flex-start;\n gap: 4px;\n }\n"],["\n display: flex;\n flex: 1;\n z-index: 1;\n align-items: flex-end;\n justify-content: flex-end;\n "," {\n gap: 8px;\n flex-direction: row;\n }\n\n "," {\n align-items: flex-start;\n justify-content: flex-start;\n gap: 4px;\n }\n"])),L.tdUp,L.tdDown),Vi=S.div(_i||(_i=n(["\n display: flex;\n flex-direction: column;\n flex: 1;\n z-index: 1;\n "," {\n gap: 8px;\n }\n "," {\n gap: 4px;\n flex: 1;\n padding-left: 16px;\n }\n"],["\n display: flex;\n flex-direction: column;\n flex: 1;\n z-index: 1;\n "," {\n gap: 8px;\n }\n "," {\n gap: 4px;\n flex: 1;\n padding-left: 16px;\n }\n"])),L.tdUp,L.tdDown),Wi=S.div(zi||(zi=n(["\n display: flex;\n flex-direction: row;\n flex: 1;\n z-index: 1;\n "," {\n gap: 8px;\n justify-content: flex-end;\n align-items: flex-end;\n }\n "," {\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n }\n"],["\n display: flex;\n flex-direction: row;\n flex: 1;\n z-index: 1;\n "," {\n gap: 8px;\n justify-content: flex-end;\n align-items: flex-end;\n }\n "," {\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n }\n"])),L.tdUp,L.tdDown),Yi=function(n){var e=n.item,t=n.index,i=void 0===t?0:t,o=n.color,r=T().t,l=c(ze).configs.statics;if(!e)return null;var s=e.link?e.link.startsWith("http")?e.link:"".concat(l.HOME_PAGE_URL).concat(e.link):void 0,d=function(){return a.createElement(Ri,null,a.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"}))},p=function(){return a.createElement(Wi,null,a.createElement(Vi,null,a.createElement(Oi,null,e.title),a.createElement(Fi,null,e.subtitle)),a.createElement(Ii,null,a.createElement("div",{className:"mobile-only"},r("home.seeMore")),a.createElement("img",{src:R.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})))};return a.createElement(ji,{href:s,"data-event-category":"Hamburger Navigation","data-event-action":"Engage Click ".concat(i+1),"data-event-label":s,"data-color":o},a.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},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:R.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),a.createElement(Gi,null,a.createElement("div",{className:"mobile-only"},d()),a.createElement("div",{className:"desktop-only"},p())),a.createElement("div",{className:"mobile-only"},p()),a.createElement("div",{className:"desktop-only"},d()))},Zi=function(n){var e=n.hrefViewMore,t=n.spotlightHealthTools,i=void 0===t?[]:t,o=T().t,r=["pink","orange","green"],l=c(ze).siteType;return a.createElement(ot,{title:o("home.navigator.menu.spotlightTools")},0!==i.length&&a.createElement(Ai,null,null==i?void 0:i.slice(0,3).map((function(n,e){return"marryBaby"===l?a.createElement(Yi,{key:e,index:e,item:n,color:r[e]}):a.createElement(Di,{key:e,index:e,item:n})}))),0===i.length&&a.createElement(nt,{title:o("home.navigator.menu.healthTools.noDatas.title"),description:o("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:o("home.navigator.menu.healthTools.noDatas.cta"),icon:R.getAssetPath("community.svg")}))},Qi=function(n){var e,t=n.locale,i=n.onClose,o=n.isOpen,r=n.spotlightHealthTools,l=void 0===r?[]:r,s=n.healthTools,d=void 0===s?[]:s,p=T().t,m=c(ze).configs.statics,u="".concat(m.HOME_PAGE_URL).concat("tl-PH"===t?"/fil":"").concat((null===(e=y[t])||void 0===e?void 0:e.HEALTH_TOOLS)||"");return a.createElement(Ie,{onClosePopup:i,isDisplay:o,isNavMenu:!0},a.createElement(Qe,{hrefViewMore:u,UrlFE:m.HOME_PAGE_URL,onClosePopup:i,headingTitle:p("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:p("home.navigator.menuItem.allHealthTools"),menuItems:d.map((function(n){return{name:n.title,link:n.link?n.link.startsWith("http")?n.link:"".concat(m.HOME_PAGE_URL).concat(n.link):void 0,thumbnail:n.icon}}))}),a.createElement(Zi,{spotlightHealthTools:l,hrefViewMore:u}))},Ki="_6gGCHV-",qi="YDzfyQU",Ji=function(n){var e=n.onCareHeaderClick,t=n.currentUrl,i=n.careUrlFe,o=n.btnName;return e?a.createElement(D,{className:Ki,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:function(n){return e(n)}},o):a.createElement("a",{href:i,className:"".concat(qi," care-button no-replace-click")},a.createElement(D,{className:Ki,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},o))};function Xi(n){var e=n.className;return a.createElement("div",null,a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},a.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function $i(n){var e=n.siteType,t=n.type,i=n.enableSearch,o=n.className;return"helloSites"===e?a.createElement("div",null,a.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:i?R.getAssetPath("hamburgerMenuNewWithSearch.svg"):R.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:o})):a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o},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"}))}var no=S.div(eo||(eo=n(["\n position: fixed;\n z-index: 201;\n top: calc(100% + 1px); // border 1px\n width: 100%;\n height: calc(100vh - var(--header-bottom));\n overflow-x: hidden;\n overflow-y: auto;\n background: white;\n display: flex;\n flex-direction: column;\n padding-bottom: 0;\n left: 0;\n .hhgcomp-navigation-popupwrapper-menuwrapper {\n position: unset;\n }\n"],["\n position: fixed;\n z-index: 201;\n top: calc(100% + 1px); // border 1px\n width: 100%;\n height: calc(100vh - var(--header-bottom));\n overflow-x: hidden;\n overflow-y: auto;\n background: white;\n display: flex;\n flex-direction: column;\n padding-bottom: 0;\n left: 0;\n .hhgcomp-navigation-popupwrapper-menuwrapper {\n position: unset;\n }\n"])));S.div(to||(to=n(["\n position: fixed;\n bottom: 0;\n left: 0;\n display: flex;\n width: 100%;\n height: 72px;\n align-items: flex-start;\n justify-content: center;\n\n background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);\n\n .button-image {\n stroke-color: blue;\n }\n\n &[data-site-type='marryBaby'] {\n padding: 0 16px;\n .category-button {\n width: 100%;\n height: 48px;\n }\n }\n"],["\n position: fixed;\n bottom: 0;\n left: 0;\n display: flex;\n width: 100%;\n height: 72px;\n align-items: flex-start;\n justify-content: center;\n\n background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);\n\n .button-image {\n stroke-color: blue;\n }\n\n &[data-site-type='marryBaby'] {\n padding: 0 16px;\n .category-button {\n width: 100%;\n height: 48px;\n }\n }\n"]))),S.div(io||(io=n(["\n display: flex;\n\n &[data-card-array-no-margin-style='true'] {\n margin: 8px 0;\n\n & > div {\n width: 0;\n flex: 1;\n margin: 0 -1px;\n }\n }\n\n &[data-card-array-no-margin-style='false'] {\n margin: 8px -4px;\n\n & > div {\n flex: 1;\n margin: 0 4px;\n }\n }\n"],["\n display: flex;\n\n &[data-card-array-no-margin-style='true'] {\n margin: 8px 0;\n\n & > div {\n width: 0;\n flex: 1;\n margin: 0 -1px;\n }\n }\n\n &[data-card-array-no-margin-style='false'] {\n margin: 8px -4px;\n\n & > div {\n flex: 1;\n margin: 0 4px;\n }\n }\n"]))),S.div(oo||(oo=n(["\n margin-top: 64px;\n"],["\n margin-top: 64px;\n"]))),S.div(ao||(ao=n(["\n padding: 24px 0;\n"],["\n padding: 24px 0;\n"]))),S.div(ro||(ro=n(["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n\n & > div:first-child {\n margin-right: 8px;\n }\n"],["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n\n & > div:first-child {\n margin-right: 8px;\n }\n"]))),S.div(lo||(lo=n(["\n z-index: ",";\n align-items: center;\n\n border: 1px solid ",";\n background-color: ",";\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n"],["\n z-index: ",";\n align-items: center;\n\n border: 1px solid ",";\n background-color: ",";\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n"])),Pn,(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.white})),S.div(so||(so=n(["\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n justify-content: flex-start;\n padding: 48px 0;\n"],["\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n justify-content: flex-start;\n padding: 48px 0;\n"]))),S.div(po||(po=n(["\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n justify-content: flex-start;\n &[data-disabled-divider='false'] {\n border-right: 1px solid #e4e8ec;\n }\n"],["\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n justify-content: flex-start;\n &[data-disabled-divider='false'] {\n border-right: 1px solid #e4e8ec;\n }\n"]))),S.div(co||(co=n(["\n width: 20%;\n padding-right: 16px;\n margin-bottom: 12px;\n\n & > a {\n color: ",";\n font-size: ",";\n font-weight: ",";\n line-height: 22px;\n }\n\n & > a:hover {\n color: ",";\n }\n\n .iconMenu {\n display: flex;\n align-items: center;\n\n > .imageContainer {\n display: flex;\n width: 32px;\n min-width: 32px;\n align-items: center;\n margin-right: 16px;\n }\n }\n"],["\n width: 20%;\n padding-right: 16px;\n margin-bottom: 12px;\n\n & > a {\n color: ",";\n font-size: ",";\n font-weight: ",";\n line-height: 22px;\n }\n\n & > a:hover {\n color: ",";\n }\n\n .iconMenu {\n display: flex;\n align-items: center;\n\n > .imageContainer {\n display: flex;\n width: 32px;\n min-width: 32px;\n align-items: center;\n margin-right: 16px;\n }\n }\n"])),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.sizes.fsParagraph4}),(function(n){return n.theme.sizes.fwRegular}),(function(n){return n.theme.colors.primaryBase})),S.div(mo||(mo=n(["\n display: none;\n"],["\n display: none;\n"]))),S.div(uo||(uo=n(["\n width: 33%;\n height: 48px;\n padding-right: 16px;\n margin-bottom: 12px;\n\n & > a {\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n font-weight: ",";\n line-height: 22px;\n\n & > :first-child {\n margin-right: 16px;\n }\n }\n\n & > a > p:hover {\n color: ",";\n }\n"],["\n width: 33%;\n height: 48px;\n padding-right: 16px;\n margin-bottom: 12px;\n\n & > a {\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n font-weight: ",";\n line-height: 22px;\n\n & > :first-child {\n margin-right: 16px;\n }\n }\n\n & > a > p:hover {\n color: ",";\n }\n"])),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.sizes.fsParagraph4}),(function(n){return n.theme.sizes.fwRegular}),(function(n){return n.theme.colors.primaryBase})),S.div(go||(go=n(["\n display: flex;\n align-items: center;\n\n padding-right: 16px;\n margin-bottom: 12px;\n color: ",";\n font-size: ",";\n font-weight: ",";\n line-height: 24px;\n\n &[data-theme='marryBaby'] {\n color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n\n padding-right: 16px;\n margin-bottom: 12px;\n color: ",";\n font-size: ",";\n font-weight: ",";\n line-height: 24px;\n\n &[data-theme='marryBaby'] {\n color: ",";\n }\n"])),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.sizes.fsParagraph4}),(function(n){return n.theme.sizes.fwBold}),(function(n){return n.theme.mbColors.pink})),S.div(ho||(ho=n(["\n display: flex;\n align-items: center;\n\n margin-left: 10px;\n"],["\n display: flex;\n align-items: center;\n\n margin-left: 10px;\n"]))),S.div(fo||(fo=n(["\n position: absolute;\n top: 16px;\n right: 0;\n display: flex;\n align-items: center;\n cursor: pointer;\n"],["\n position: absolute;\n top: 16px;\n right: 0;\n display: flex;\n align-items: center;\n cursor: pointer;\n"]))),S.div(xo||(xo=n(["\n display: block;\n"],["\n display: block;\n"]))),S.div(vo||(vo=n(["\n .categories__spotlight {\n display: grid;\n margin: 16px;\n margin-bottom: 32px;\n grid-gap: 8px;\n grid-template-columns: 1fr 1fr;\n\n a {\n text-decoration: none;\n }\n }\n\n .categoryCard {\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n padding: 16px;\n border-radius: 6px;\n color: ",";\n\n svg {\n margin-bottom: 4px;\n }\n\n &.active {\n background: ",";\n box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06),\n 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);\n color: white;\n }\n\n &:not(.active) {\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n }\n\n .amp__menu-header {\n display: grid;\n grid-template-columns: 1fr 1fr 1fr;\n\n svg {\n margin-left: 16px;\n }\n\n > div {\n align-self: center;\n\n &:nth-child(2) {\n justify-self: center;\n }\n }\n }\n\n .logo {\n margin: 22px 0;\n }\n\n .categories {\n margin: 0 16px;\n\n li {\n display: block;\n width: 100%;\n\n + li {\n border-top: 1px solid\n ",";\n }\n\n a {\n display: block;\n margin: 12px 0;\n color: ",";\n text-decoration: none;\n }\n }\n }\n"],["\n .categories__spotlight {\n display: grid;\n margin: 16px;\n margin-bottom: 32px;\n grid-gap: 8px;\n grid-template-columns: 1fr 1fr;\n\n a {\n text-decoration: none;\n }\n }\n\n .categoryCard {\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n padding: 16px;\n border-radius: 6px;\n color: ",";\n\n svg {\n margin-bottom: 4px;\n }\n\n &.active {\n background: ",";\n box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06),\n 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);\n color: white;\n }\n\n &:not(.active) {\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n }\n\n .amp__menu-header {\n display: grid;\n grid-template-columns: 1fr 1fr 1fr;\n\n svg {\n margin-left: 16px;\n }\n\n > div {\n align-self: center;\n\n &:nth-child(2) {\n justify-self: center;\n }\n }\n }\n\n .logo {\n margin: 22px 0;\n }\n\n .categories {\n margin: 0 16px;\n\n li {\n display: block;\n width: 100%;\n\n + li {\n border-top: 1px solid\n ",";\n }\n\n a {\n display: block;\n margin: 12px 0;\n color: ",";\n text-decoration: none;\n }\n }\n }\n"])),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.gray800})),S.div(yo||(yo=n(["\n width: 20%;\n height: 2px;\n\n background-color: ",";\n border-radius: 2px;\n"],["\n width: 20%;\n height: 2px;\n\n background-color: ",";\n border-radius: 2px;\n"])),(function(n){return n.theme.mbColors.pink}));var eo,to,io,oo,ao,ro,lo,so,po,co,mo,uo,go,ho,fo,xo,vo,yo,bo,wo,Eo=S.div(bo||(bo=n(["\n padding: 16px;\n padding-bottom: 12px;\n .fake-search-input {\n pointer-events: none;\n input {\n line-height: 20px;\n padding-top: 10px;\n padding-bottom: 10px;\n }\n }\n &[data-theme='marryBaby'] {\n input {\n background: ",";\n border-radius: 16px;\n border: none;\n }\n }\n"],["\n padding: 16px;\n padding-bottom: 12px;\n .fake-search-input {\n pointer-events: none;\n input {\n line-height: 20px;\n padding-top: 10px;\n padding-bottom: 10px;\n }\n }\n &[data-theme='marryBaby'] {\n input {\n background: ",";\n border-radius: 16px;\n border: none;\n }\n }\n"])),(function(n){return n.theme.mbColors.lightGray})),ko=S.div(wo||(wo=n(["\n display: block;\n overflow-y: auto;\n flex: 1;\n padding-bottom: 16px;\n &::-webkit-scrollbar {\n width: 0;\n display: none;\n }\n"],["\n display: block;\n overflow-y: auto;\n flex: 1;\n padding-bottom: 16px;\n &::-webkit-scrollbar {\n width: 0;\n display: none;\n }\n"]))),Co=function(n){var e,t,i=n.closePopup,o=n.menuItems,r=void 0===o?[]:o,l=c(ze),s=l.siteType,d=l.ssrMenuContent,p=d.categories,m=d.healthTools,u=d.care,g=d.together,h=l.activeMenuService,f=l.configs,x=f.statics,v=f.enableSearchBar,b=l.locale,w=T().t;return a.createElement(no,{id:"categories-menu"},v?a.createElement(Eo,{"data-theme":s,onClick:function(){window.location.href="".concat(x.HOME_PAGE_URL,"/search")}},a.createElement(Se,null)):null,a.createElement(ko,null,a.createElement(Qe,{UrlFE:x.HOME_PAGE_URL,titleBtnViewMore:w("home.navigator.menuItem.allCategories"),menuItems:r,headingTitle:w("home.navigator.menuItem.healthCategories"),onClosePopup:i}),"categories"===h&&a.createElement(Dt,{spotlightsList:(null==p?void 0:p.spotlights)||[],hrefViewMore:"".concat(x.HOME_PAGE_URL).concat("tl-PH"===b?"/fil":"","/spotlight/")}),"tools"===h&&a.createElement(Zi,{spotlightHealthTools:null==m?void 0:m.spotlights,hrefViewMore:"".concat(x.HOME_PAGE_URL).concat("tl-PH"===b?"/fil":"").concat((null===(e=y[b])||void 0===e?void 0:e.HEALTH_TOOLS)||"")}),"care"===h&&a.createElement(Ct,{spotlights:null==u?void 0:u.spotlights,hrefViewMore:"".concat(x.CARE_URL_FE,"/").concat(null===(t=V[b])||void 0===t?void 0:t.SPECIALTIES)}),"together"===h&&a.createElement(mi,{spotlights:null==g?void 0:g.spotlights})))},Po="IQdn7tn",Bo="_1jX3mGY",No="arD755Y",_o=function(n){var e=n.type,t=void 0===e?"home":e,i=n.menuItems,o=c(ze),r=o.siteType,l=o.configs.enableSearchBar,s=rn(),d=s.containerRef,p=s.onContainerFocus,m=s.onContainerBlur,u=s.onButtonMouseDown,g=s.onClose;return a.createElement(an,{mediaQueryKey:"mbDown"},a.createElement("header",{className:Po},a.createElement("div",{className:Bo,ref:d,role:"button",tabIndex:0,onBlur:m,onFocus:p},a.createElement("div",{className:No,onMouseDown:u,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},a.createElement(Xi,{className:"mobile-close-icon"}),a.createElement($i,{siteType:r,type:t,enableSearch:l,className:"mobile-hamburger-icon"})),a.createElement(Co,{menuItems:i,closePopup:g}))))},zo=S.div(Lo||(Lo=n(["\n z-index: 201;\n width: 100%;\n align-items: center;\n\n background-color: ",";\n\n transition: height 0.3s, transform 0.3s;\n\n &[data-site-type='helloSites'] {\n border-bottom: 1px solid\n ",";\n }\n\n &[data-marry-baby-tone='pink'] {\n background-color: ",";\n }\n\n "," {\n &[data-sitewide-banner-shown='true'][data-collapsed='true'] {\n transform: translateY(-64px);\n }\n }\n "," {\n &[data-site-type='marryBaby'] {\n border-bottom: none;\n }\n\n &[data-fixed-bar='true'] {\n position: fixed;\n transform: translateY(0);\n }\n\n &[data-fixed-bar='false'] {\n position: absolute;\n }\n\n &[data-collapsed='true'] {\n transform: translateY(-100%);\n transition: transform 0.5s;\n }\n &[data-collapsed='false'] {\n transform: translateY(0);\n transition: transform 0.5s;\n }\n\n .top-bar-header {\n line-height: normal;\n }\n\n &[data-header-type='home'] {\n z-index: ",";\n }\n\n &[data-header-type='popup'] {\n position: absolute;\n z-index: ",";\n }\n\n &[data-header-type='popup-sub-level'] {\n position: absolute;\n z-index: ",";\n }\n\n &[data-is-displayed='false'] {\n //display: none;\n visibility: hidden;\n }\n }\n\n .marry-baby {\n input {\n background: ",";\n border-radius: 16px;\n border: none;\n }\n max-width: 172px;\n }\n &[data-site-type='marryBaby'] {\n .close-btn {\n top: 16px;\n right: 16px;\n }\n }\n"],["\n z-index: 201;\n width: 100%;\n align-items: center;\n\n background-color: ",";\n\n transition: height 0.3s, transform 0.3s;\n\n &[data-site-type='helloSites'] {\n border-bottom: 1px solid\n ",";\n }\n\n &[data-marry-baby-tone='pink'] {\n background-color: ",";\n }\n\n "," {\n &[data-sitewide-banner-shown='true'][data-collapsed='true'] {\n transform: translateY(-64px);\n }\n }\n "," {\n &[data-site-type='marryBaby'] {\n border-bottom: none;\n }\n\n &[data-fixed-bar='true'] {\n position: fixed;\n transform: translateY(0);\n }\n\n &[data-fixed-bar='false'] {\n position: absolute;\n }\n\n &[data-collapsed='true'] {\n transform: translateY(-100%);\n transition: transform 0.5s;\n }\n &[data-collapsed='false'] {\n transform: translateY(0);\n transition: transform 0.5s;\n }\n\n .top-bar-header {\n line-height: normal;\n }\n\n &[data-header-type='home'] {\n z-index: ",";\n }\n\n &[data-header-type='popup'] {\n position: absolute;\n z-index: ",";\n }\n\n &[data-header-type='popup-sub-level'] {\n position: absolute;\n z-index: ",";\n }\n\n &[data-is-displayed='false'] {\n //display: none;\n visibility: hidden;\n }\n }\n\n .marry-baby {\n input {\n background: ",";\n border-radius: 16px;\n border: none;\n }\n max-width: 172px;\n }\n &[data-site-type='marryBaby'] {\n .close-btn {\n top: 16px;\n right: 16px;\n }\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.mbColors.lightPink}),L.mbUp,L.mbDown,En,kn,Cn,(function(n){return n.theme.mbColors.lightGray})),Ao=S.div(So||(So=n(["\n display: flex;\n height: 100%;\n align-items: center;\n\n justify-content: space-between;\n padding: 0 2rem;\n height: 69px;\n "," {\n padding: 0 1rem;\n }\n\n "," {\n position: relative;\n height: 64px;\n background: white;\n gap: 1rem;\n }\n\n &[data-site-type='marryBaby'] {\n width: 100%;\n margin: 0 auto;\n padding: 0 16px;\n "," {\n max-width: 1064px;\n }\n }\n"],["\n display: flex;\n height: 100%;\n align-items: center;\n\n justify-content: space-between;\n padding: 0 2rem;\n height: 69px;\n "," {\n padding: 0 1rem;\n }\n\n "," {\n position: relative;\n height: 64px;\n background: white;\n gap: 1rem;\n }\n\n &[data-site-type='marryBaby'] {\n width: 100%;\n margin: 0 auto;\n padding: 0 16px;\n "," {\n max-width: 1064px;\n }\n }\n"])),L.pcDown,L.mbDown,L.tdUp),To=S.div(Uo||(Uo=n(["\n display: flex;\n align-items: center;\n height: 100%;\n gap: 24px;\n "," {\n gap: 16px;\n }\n &[data-site-type='marryBaby'] {\n gap: 26px;\n }\n"],["\n display: flex;\n align-items: center;\n height: 100%;\n gap: 24px;\n "," {\n gap: 16px;\n }\n &[data-site-type='marryBaby'] {\n gap: 26px;\n }\n"])),L.pcDown),Mo=S.div(Do||(Do=n([""],[""]))),Ho=S.div(jo||(jo=n(["\n display: flex;\n align-items: center;\n height: 100%;\n flex-shrink: 0.6;\n .hhgcomp-navigation-itemnav-headeritem {\n gap: 2px;\n "," {\n padding: 0 12px;\n }\n "," {\n padding: 0 6px;\n }\n "," {\n display: none;\n }\n a {\n text-decoration: none;\n }\n }\n &[data-site-type='marryBaby'] {\n gap: 26px;\n }\n"],["\n display: flex;\n align-items: center;\n height: 100%;\n flex-shrink: 0.6;\n .hhgcomp-navigation-itemnav-headeritem {\n gap: 2px;\n "," {\n padding: 0 12px;\n }\n "," {\n padding: 0 6px;\n }\n "," {\n display: none;\n }\n a {\n text-decoration: none;\n }\n }\n &[data-site-type='marryBaby'] {\n gap: 26px;\n }\n"])),L.pcUp,L.pcDown,L.mbDown);S.div(Ro||(Ro=n(["\n .fake-search-input {\n pointer-events: none;\n input {\n line-height: 20px;\n padding-top: 10px;\n padding-bottom: 10px;\n }\n }\n"],["\n .fake-search-input {\n pointer-events: none;\n input {\n line-height: 20px;\n padding-top: 10px;\n padding-bottom: 10px;\n }\n }\n"])));var Lo,So,Uo,Do,jo,Ro,Io,Oo,Fo,Go,Vo,Wo=S.div(Io||(Io=n(["\n margin-left: 16px;\n display: flex;\n gap: 12px;\n align-items: center;\n flex-shrink: 0;\n "," {\n margin-left: 8px;\n gap: 8px;\n }\n "," {\n margin-left: 12px;\n gap: 10px;\n }\n"],["\n margin-left: 16px;\n display: flex;\n gap: 12px;\n align-items: center;\n flex-shrink: 0;\n "," {\n margin-left: 8px;\n gap: 8px;\n }\n "," {\n margin-left: 12px;\n gap: 10px;\n }\n"])),L.pcDown,L.mbDown),Yo=S.div(Oo||(Oo=n(["\n display: flex;\n align-items: center;\n height: 100%;\n &[data-site-type='marryBaby'] {\n gap: 26px;\n }\n"],["\n display: flex;\n align-items: center;\n height: 100%;\n &[data-site-type='marryBaby'] {\n gap: 26px;\n }\n"]))),Zo=function(n){var e,t=n.onTopBarAppears,i=n.type,o=void 0===i?"home":i,r=n.languageMenu,p=n.menuItems,u=n.setSitewideBannerClosed,g=n.sitewideBannerClosed,h=c(ze),f=h.siteType,x=h.isMobile,y=void 0!==x&&x,w=h.locale,E=h.sitewideBanner,k=h.sitewideBannerShown,C=void 0===k||k,P=h.sponsorComponent,B=h.onBookingClick,N=h.currentUrl,_=h.onLoginClick,z=h.configs,H=z.statics,L=z.enableNavCareBooking,S=z.enableSearchBar,U=z.enableNavCare,D=z.enableProfileMyHealth,j=z.enableNavTogether,I=z.enableProfileEcom,O=z.enableProfileNavigatorMenu,F=h.userState.userInfo,G=h.onLogout,V=h.userProfileRouterPush,W=h.isUserLoading,Y=T().t,Z=H.SSO_URL,Q=H.HOME_PAGE_URL,K=!!P,q=d(!1),J=q[0],X=q[1],$=l(47),nn=l(null),en=l(!1),tn="helloSites"===f?null===(e=v[w])||void 0===e?void 0:e.LOGO_TYPE:f,on="undefined"!=typeof window,rn=m(M((function(){if("home"===o&&on){if(!nn.current)return;var n=nn.current.getBoundingClientRect();n.top<=0&&window.scrollY>$.current&&window.scrollY>n.height+20&&!en.current&&(en.current=!0,X(!0)),window.scrollY<$.current&&en.current&&(en.current=!1,X(!1)),window.scrollY>=0&&($.current=window.scrollY)}}),200),[]);s((function(){null==t||t(!J)}),[J]),s((function(){return window.addEventListener("scroll",rn,{passive:!0}),function(){window.removeEventListener("scroll",rn)}}),[]),s((function(){y&&rn()}),[y]);var ln=C&&!!E&&!g;return a.createElement(zo,{"data-site-type":f,"data-sponsored":K,"data-sitewide-banner-shown":ln,"data-header-type":o,"data-collapsed":J,"data-with-search-input":"popup-sub-level"!==o,"data-is-displayed":!0,id:"site-header",ref:nn},E?a.isValidElement(E)?a.cloneElement(E,{isCollapsed:J,setBannerClosed:u,isMobile:y}):E:null,a.createElement(Ao,{"data-site-type":f},a.createElement(To,{"data-site-type":f},a.createElement(_o,{menuItems:p,type:o}),a.createElement("a",{href:Q},a.createElement(Mo,null,a.createElement(A,{style:{display:"flex"},type:tn,badge:"id-ID"===w&&a.createElement("img",{src:R.getAssetPath("sehat-badge.png"),width:"56",height:"23"}),dateForSeasonal:new Date,locale:w,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===f?a.createElement(Ko,{menuItems:p}):S&&a.createElement(Qo,{siteType:f})),a.createElement(Ho,{"data-site-type":f},"marryBaby"===f?S&&a.createElement(Qo,{siteType:f}):a.createElement(Ko,{menuItems:p}),a.createElement(Wo,null,L&&a.createElement(an,{mediaQueryKey:"mbUp"},a.createElement(Ji,{careUrlFe:H.CARE_URL_FE,currentUrl:N,btnName:Y("login.booking"),onCareHeaderClick:B})),r,a.createElement(Be,{userInfo:F,siteType:f,onLoginClick:_||function(){var n=window.location.href;window.location.href=Z?"".concat(Z,"?returnUrl=").concat(n):n},SSO_URL:_e(H.SSO_URL),currentUrl:N,onLogout:G,UP_BASEPATH:b,isMyHealthEnabled:D,enableCare:U,enableTogether:j,enableEcom:I,togetherApiDomain:_e(H.TOGETHER_API),isUserProfileNavigatorMenuHidden:!O,userProfileRouterPush:V,isLoading:W,locale:w})))),P?a.isValidElement(P)?a.cloneElement(P,{isCollapsed:J,locale:w,isMobile:y}):P:null)},Qo=function(n){var e=n.siteType;return a.createElement(an,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},a.createElement(Se,null))},Ko=function(n){var e=n.menuItems,t=c(ze),i=t.siteType,o=t.locale,r=t.ssrMenuContent,l=r.categories,s=r.healthTools,d=r.care,p=r.together;return a.createElement(an,{mediaQueryKey:"mbUp",style:{height:"100%"}},a.createElement(Yo,{"data-site-type":i},null==e?void 0:e.map((function(n,e){return a.createElement(He,{key:e,item:n,menu:"categories"===n.popupType?a.createElement(jt,{categories:null==l?void 0:l.items,spotlightsList:null==l?void 0:l.spotlights}):"tools"===n.popupType?a.createElement(Qi,{locale:o,healthTools:null==s?void 0:s.items,spotlightHealthTools:null==s?void 0:s.spotlights}):"together"===n.popupType?a.createElement(ui,{communities:null==p?void 0:p.items,spotlights:null==p?void 0:p.spotlights}):"care"===n.popupType?a.createElement(Pt,{careSpecialties:null==d?void 0:d.items,spotlights:null==d?void 0:d.spotlights}):null})}))))},qo=S.div(Fo||(Fo=n(["\n --header-z-index: 305;\n top: 0;\n z-index: var(--header-z-index);\n\n "," {\n width: 100vw;\n max-width: 100%;\n }\n --amp-site-wide-closed: 2px;\n\n -webkit-transform: translateZ(0);\n position: sticky;\n\n &.nav-open {\n margin-top: 64px;\n }\n\n &:not(.nav-open) {\n --amp-site-wide-closed: 66px;\n }\n pointer-events: none;\n > section * {\n pointer-events: auto;\n }\n"],["\n --header-z-index: 305;\n top: 0;\n z-index: var(--header-z-index);\n\n "," {\n width: 100vw;\n max-width: 100%;\n }\n --amp-site-wide-closed: 2px;\n\n -webkit-transform: translateZ(0);\n position: sticky;\n\n &.nav-open {\n margin-top: 64px;\n }\n\n &:not(.nav-open) {\n --amp-site-wide-closed: 66px;\n }\n pointer-events: none;\n > section * {\n pointer-events: auto;\n }\n"])),L.mbDown);S.div(Go||(Go=n(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),S.a(Vo||(Vo=n(["\n &[data-is-active='true'] {\n color: unset;\n }\n font-size: 14px;\n font-weight: 700;\n line-height: 22px;\n text-decoration: none;\n"],["\n &[data-is-active='true'] {\n color: unset;\n }\n font-size: 14px;\n font-weight: 700;\n line-height: 22px;\n text-decoration: none;\n"])));var Jo=function(n){var t,i,o=n.isMobile,p=n.locale,g=n.onTopBarAppears,h=n.languageOptions,f=n.sponsorComponent,x=n.sitewideBanner,v=n.sitewideBannerShown,b=n.className,w=d(!1),E=w[0],k=w[1],C=function(){var n=T().t,e=c(ze),t=e.siteType,i=e.locale,o=e.configs,a=o.enableNavCare,l=o.enableNavTogether,s=o.enableNavEcom,d=o.statics,p="marryBaby"===t,m=r((function(){var e,t=[{name:n("home.navigator.menuItem.discover"),id:"categories",link:"".concat(d.HOME_PAGE_URL).concat("tl-PH"===i?"/fil":"","/categories"),niceName:"",thumbnail:p?R.getAssetPath("categories-mb.svg"):R.getAssetPath("discover.png"),popupType:"categories"},{name:n("home.navigator.menuItem.healthTools"),id:"tools",link:"".concat(d.HOME_PAGE_URL).concat("tl-PH"===i?"/fil":"").concat((null===(e=y[i])||void 0===e?void 0:e.HEALTH_TOOLS)||""),thumbnail:p?R.getAssetPath("healthtools-mb.svg"):R.getAssetPath("healthTools.png"),popupType:"tools"}];return a&&t.push({name:n("home.navigator.menuItem.helloCare"),id:"care",link:Ne(d.HOME_PAGE_URL+"/care"),thumbnail:R.getAssetPath("helloCare-thumbnail.png"),popupType:"zh-TW"===i?null:"care"}),l&&t.push({name:n("home.navigator.menuItem.helloTogether"),id:"together",link:Ne(d.TOGETHER_URL_FE+"/"),thumbnail:p?R.getAssetPath("community-mb.svg"):R.getAssetPath("together.png"),popupType:"together"}),s&&t.push({name:n("home.navigator.menuItem.helloEcom"),id:"ecom",link:Ne(d.HOME_PAGE_URL+"/ecom"),thumbnail:R.getAssetPath("helloCare-thumbnail.png"),popupType:"shop"}),t}),[i,a,l,s]);return m}();!function(){var n=c(ze),t=n.isFirstLogin,i=n.userState.userInfo;s((function(){(null==i?void 0:i.id)&&(t?(null==i?void 0:i.email)&&""!==(null==i?void 0:i.email)?window.insider_object={user:e({uuid:null==i?void 0:i.id,email:null==i?void 0:i.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:window.insider_object={user:e({uuid:null==i?void 0:i.id,sign_up:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:(null==i?void 0:i.email)&&""!==(null==i?void 0:i.email)?window.insider_object={user:e({uuid:null==i?void 0:i.id,email:null==i?void 0:i.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:window.insider_object={user:e({uuid:null==i?void 0:i.id,log_in:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})})}),[])}();var P=function(n){var e=n.hasSponsoredBanners,t=n.isSiteWide,i=n.isSponsored,o=n.isShowingSiteWideBanner,a=n.isMobile,p=l(null),c=d(0),u=c[0],g=c[1],h=d(64),f=h[0],x=h[1],v=m(X((function(){var n,e,t,i,o=(null===(n=p.current)||void 0===n?void 0:n.clientHeight)||(null===(t=null===(e=p.current)||void 0===e?void 0:e.children[0])||void 0===t?void 0:t.clientHeight)||0;window.scrollY<=o+200&&(g(o),x((null===(i=p.current)||void 0===i?void 0:i.getBoundingClientRect().bottom)||u))}),200),[]);s((function(){return window.addEventListener("resize",v,{passive:!0}),window.addEventListener("scroll",v,{passive:!0}),v(),function(){window.removeEventListener("resize",v),window.removeEventListener("scroll",v)}}),[]),s((function(){v()}),[a,t,o,i,e,p.current]);var y=r((function(){var n=a?64:69;return o&&(n+=64),i&&(n+=40,e&&(n+=57)),n}),[a,o,e,i]);return{defaultHeaderHeight:y,headerHeight:u||y,headerBottom:f,headerRef:p}}({isSiteWide:!!x&&!E,isShowingSiteWideBanner:v&&!!x&&!E,isSponsored:!!f,hasSponsoredBanners:!!(null===(i=null===(t=null==f?void 0:f.props)||void 0===t?void 0:t.sponsoredBy)||void 0===i?void 0:i.length),isMobile:o}),B=P.headerRef,N=P.defaultHeaderHeight,_=P.headerHeight,z=P.headerBottom;return a.createElement(qo,{id:"navigation-v2",style:{"--default-header-height":N+"px","--header-height":"calc(".concat(_,"px - var(--amp-site-wide-closed), 64px)"),"--header-bottom":z+"px"},className:b},a.createElement("section",{ref:B},a.createElement(Zo,{menuItems:C,type:"home",onTopBarAppears:o?function(n){g&&g(n)}:void 0,languageMenu:a.createElement(u,{languageOptions:h,locale:p}),setSitewideBannerClosed:k,sitewideBannerClosed:E})))},Xo=function(n){var t=e({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},n);return a.createElement(Ae,e({},t),a.createElement(Jo,e({},t)))},$o=function(n){return t(void 0,void 0,void 0,(function(){var e,t,o,a,r,l,s,d,p,c,m,u,f,v,y,b,w,E,B,z,A,T,M,H,L,S,U,D,j,R,I,O,F,G,V,W;return i(this,(function(i){switch(i.label){case 0:e={},t="vi-VN_MB"===n,i.label=1;case 1:i.trys.push([1,14,,15]),o="tl-PH"===n?"lang=fil":"",i.label=2;case 2:return i.trys.push([2,4,,5]),[4,Promise.all([fetch("".concat(C(n),"/wp-json/api/categories").concat(o?"?"+o:"")).then((function(n){return n.json()})),fetch("".concat(C(n),"/wp-json/api/spotlights?per_page=10").concat(o?"&"+o:"")).then((function(n){return n.json()})),fetch("".concat(C(n),"/wp-json/api/").concat(t?"health-tools":"healthtools").concat(o?"?"+o:"")).then((function(n){return n.json()})),fetch("".concat(C(n),"/wp-json/api/").concat(t?"health-tools":"healthtools","/favorites").concat(o?"?"+o:"")).then((function(n){return n.json()}))])];case 3:return a=i.sent(),r=a[0],l=a[1],s=a[2],d=a[3],e.categories={items:(null===(w=null===(b=null==r?void 0:r.data)||void 0===b?void 0:b.map)||void 0===w?void 0:w.call(b,Bn))||[],spotlights:(null===(A=null===(z=null===(B=null===(E=null==l?void 0:l.data)||void 0===E?void 0:E.articles)||void 0===B?void 0:B.map)||void 0===z?void 0:z.call(B,Tn))||void 0===A?void 0:A.filter(Mn))||[]},e.healthTools={items:(null===(M=null===(T=null==s?void 0:s.data)||void 0===T?void 0:T.map)||void 0===M?void 0:M.call(T,Nn))||[],spotlights:(null===(L=null===(H=null==d?void 0:d.data)||void 0===H?void 0:H.map)||void 0===L?void 0:L.call(H,Nn))||[]},[3,5];case 4:return i.sent(),[3,5];case 5:if(!t&&!x.includes(n))return[3,9];i.label=6;case 6:return i.trys.push([6,8,,9]),[4,Promise.all([fetch("".concat(k(),"/api/v1/community?website_url=https://").concat(g[n])).then((function(n){return n.json()})),fetch("".concat(k(),"/api/v1/options?website_url=https://").concat(g[n],"&meta_key=popular_post")).then((function(n){return n.json()}))])];case 7:return p=i.sent(),c=p[0],m=p[1],e.together={items:(null===(D=null===(U=null===(S=null==c?void 0:c.data)||void 0===S?void 0:S.communities)||void 0===U?void 0:U.map)||void 0===D?void 0:D.call(U,N))||[],spotlights:(null===(I=null===(R=null===(j=null==m?void 0:m.data)||void 0===j?void 0:j.posts)||void 0===R?void 0:R.map)||void 0===I?void 0:I.call(R,_))||[]},[3,9];case 8:return i.sent(),[3,9];case 9:if(!h.includes(n))return[3,13];i.label=10;case 10:return i.trys.push([10,12,,13]),[4,Promise.all([fetch(P()+"/api/specialties?_ishome=1&site=".concat(g[n])).then((function(n){return n.json()})),fetch(P()+"/api/search/?site=".concat(g[n],"&type=hospital&order_by=total_doctor")).then((function(n){return n.json()}))])];case 11:return u=i.sent(),f=u[0],v=u[1],e.care={items:(null===(G=null===(F=null===(O=null==f?void 0:f._data)||void 0===O?void 0:O.specialties)||void 0===F?void 0:F.map)||void 0===G?void 0:G.call(F,_n))||[],spotlights:(null===(W=null===(V=null==v?void 0:v._data.searches)||void 0===V?void 0:V.map)||void 0===W?void 0:W.call(V,zn))||[]},[3,13];case 12:return i.sent(),[3,13];case 13:return[3,15];case 14:return y=i.sent(),console.error(y),[3,15];case 15:return[2,e]}}))}))},na=function(n){return t(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,$("nav-menu-content",(function(){return $o(n||"en-PH")}),(function(n){var e,t;return!!(null===(t=null===(e=null==n?void 0:n.categories)||void 0===e?void 0:e.items)||void 0===t?void 0:t.length)}))];case 1:return[2,e.sent()||{}]}}))}))};export{Xo as N,Pe as P,ke as U,na as a,Sn as b,Ee as c,dn as d,Be as e,$o as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,d as n}from"./tslib.es6-
|
|
1
|
+
import{_ as e,d as n}from"./tslib.es6-8afd0786.js";import t,{useState as a,useEffect as o,forwardRef as r}from"react";import{createEmotionCache as i,FileInput as s,NumberInput as l,PasswordInput as u,TextInput as c,Input as m}from"@mantine/core";import{useDebouncedValue as f}from"@mantine/hooks";import{CommonGAssets as d}from"./gAssets.js";var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(e){var n={exports:{}};return e(n,n.exports),n.exports}var v=300,h=i({key:"mantine",prepend:!1}),b=function(r){var i=r.value,s=r.onChange,u=n(r,["value","onChange"]),c=a(i),m=c[0],d=c[1],p=f(m,300)[0];return o((function(){null==s||s(p)}),[p]),o((function(){d(i)}),[i]),t.createElement(l,e({size:"md",stepHoldDelay:500,stepHoldInterval:function(e){return Math.max(1e3/Math.pow(e,2),25)},onChange:d,hideControls:!0,min:0,formatter:function(e){return 0===Number(e)?e:e||""},removeTrailingZeros:!0,value:m},u))},w=d.getAssetPath("EyeVisible.svg"),y=d.getAssetPath("EyeHidden.svg"),C=r((function(a,o){var r=a.size,i=void 0===r?"md":r,s=a.visibilityToggleIcon,l=n(a,["size","visibilityToggleIcon"]),c=s||function(e){var n=e.reveal,a=e.size;return n?t.createElement("img",{src:w,width:a}):t.createElement("img",{src:y,width:a})};return t.createElement(u,e({ref:o,size:i,visibilityToggleIcon:c},l,{className:"input-control ".concat((null==l?void 0:l.className)||"")}))})),I=r((function(r,i){var s=r.value,l=r.onChange,u=r.onChangeRaw,m=n(r,["value","onChange","onChangeRaw"]),d=a(s||""),p=d[0],g=d[1],v=f(p,300)[0];return o((function(){null==l||l(v)}),[v]),o((function(){g(s)}),[s]),t.createElement(c,e({ref:i,size:"md",onChange:function(e){null==u||u(e),g(e.currentTarget.value)},value:p},m,{className:"input-control ".concat((null==m?void 0:m.className)||"")}))}));I.File=function(n){return t.createElement(s,e({size:"md"},n))},I.Password=C,I.Number=b,I.Wrapper=m.Wrapper;export{v as D,I,b as N,C as P,p as a,g as c,h as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as a,_ as e}from"./tslib.es6-8afd0786.js";import t from"react";var r="wIj6fkD",o=function(o){var s=o.size,d=void 0===s?"base":s,c=o.type,n=void 0===c?"regular":c,i=o.className,l=o.style,p=o.children,v=o.color,m=o.dataEventCategory,y=o.dataEventAction,E=o.dataEventLabel,b=o.as,f=void 0===b?"p":b,u=o.wordWrap,w=o.isUppercase,g=a(o,["size","type","className","style","children","color","dataEventCategory","dataEventAction","dataEventLabel","as","wordWrap","isUppercase"]),z=f;return t.createElement(z,e({"data-size":d,"data-type":n,style:e(e({},l),v?{"--custom-color":v}:void 0),className:"".concat(r," ").concat(i||""),"data-event-category":m,"data-event-action":y,"data-event-label":E,"data-word-wrap":u,"data-is-uppercase":w},g),p)};export{o as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e,_ as n}from"./tslib.es6-
|
|
1
|
+
import{d as e,_ as n}from"./tslib.es6-8afd0786.js";import r,{forwardRef as t,useRef as a,useState as u,useCallback as o,useImperativeHandle as c,useEffect as i}from"react";import{Flex as l}from"@mantine/core";import{c as f}from"./index-9c085c54.js";function v(e,n){void 0===n&&(n=6);var r=new Array(n).fill("");if(e){var t=e.toString().split("");r.map((function(e,n){t[n]&&(r[n]=t[n]||"")}))}return r}function p(e){return e.join("")}var s="_2iQs0sk",m="Ia6IojY",d=t((function(t,a){var u=t.maxLength,o=void 0===u?1:u,c=t.placeholder,i=t.className,l=e(t,["maxLength","placeholder","className"]);return r.createElement("input",n({maxLength:o,className:f(m,"otpInput",i),placeholder:c,type:"number"},l,{ref:a}))})),y=t((function(e,n){var t=e.valueLength,m=void 0===t?6:t,y=e.type,k=void 0===y?"number":y,g=e.value,h=e.defaultValue,b=e.onChange,D=e.onBlur,x=a(new Array(m).fill(null)),C=u(h||g),w=C[0],j=C[1],I=u(-1),L=I[0],S=I[1],A=u((function(){return v(w,m)})),N=A[0],B=A[1],E=o((function(){if(-1!==L){var e=x.current[L];if(e){e.value="";var n=N;n[L]="",B(n),j((function(){return p(n)})),null==b||b(p(n))}}}),[L,b,N]),R=o((function(){if(0!==L){var e=x.current[L];e&&e.blur();var n=x.current[L-1];n&&n.focus()}}),[L]),_=o((function(){if(L!==m-1){var e=x.current[L];e&&e.blur();var n=x.current[L+1];n&&n.focus()}}),[L,m]),F=o((function(e){var n=e.target,r=n.value.toString().slice(0,1),t=x.current.findIndex((function(e){return e===n}));if(-1!==t){var a=N;a[t]=r,B(a),j((function(){return p(a)})),null==b||b(p(a))}_()}),[_,b,N]),G=o((function(e){var n=e.target,r=x.current.findIndex((function(e){return e===n}));"number"===k?n.select():n.setSelectionRange(0,n.value.length,"backward"),-1!==r&&S(r)}),[]),K=o((function(e){var n=v(e.clipboardData.getData("text/plain"),m),r=p(n);B(n),j(r),null==b||b(r)}),[b,k,m]),O=o((function(e){8===e.keyCode||"Backspace"===e.key?(e.preventDefault(),E(),R()):46===e.keyCode||"Delete"===e.key?(e.preventDefault(),E()):37===e.keyCode||"ArrowLeft"===e.key?(e.preventDefault(),R()):39===e.keyCode||"ArrowRight"===e.key?(e.preventDefault(),_()):32!==e.keyCode&&" "!==e.key&&"Spacebar"!==e.key&&"Space"!==e.key||e.preventDefault()}),[E,_,R]);return c(n,(function(){return x.current[0]}),[]),i((function(){B((function(){return v(g,m)})),j(g)}),[m,g]),r.createElement(l,{justify:"center",columnGap:8,className:f(s,"otpContainer")},N.map((function(e,n){return r.createElement(d,{ref:function(e){x.current[n]=e},key:""+n,value:e,type:k,onChange:F,onFocus:G,onKeyDown:O,onPaste:K,onBlur:D})})))}));export{y as O};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n,{useState as e,useRef as t,useEffect as o}from"react";import{u as a}from"./useScrollbarSize-
|
|
1
|
+
import n,{useState as e,useRef as t,useEffect as o}from"react";import{u as a}from"./useScrollbarSize-23355889.js";import{createPortal as i}from"react-dom";import{a as r}from"./tslib.es6-8afd0786.js";import{M as d}from"./utils-c4fbd283.js";import{g as l}from"./defaultClassWrapper-86053461.js";import s from"styled-components";import{u as c}from"./useTranslations-0253a7a8.js";import{t as h}from"./theme-f92bf7cf.js";import{I as p}from"./index-9a1e70a2.js";import{a as m}from"./index-b5f56aea.js";import{T as u}from"./index-6e945ca0.js";import{R as g}from"./index-8ade36a0.js";import{G as x}from"./BabyGrowth-9c6121b7.js";var f,y,v,b,w,_="hhgcomp-modal-modal",j=l(s.div(f||(f=r(["\n position: relative;\n z-index: 200;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n &[data-site-type='marryBaby'] {\n border-radius: 16px;\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n\n padding: 24px;\n }\n }\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n .hhg-modal__video {\n position: relative;\n z-index: 111;\n height: 100%;\n background-color: none;\n box-shadow: none;\n }\n"],["\n position: relative;\n z-index: 200;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n &[data-site-type='marryBaby'] {\n border-radius: 16px;\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n\n padding: 24px;\n }\n }\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n .hhg-modal__video {\n position: relative;\n z-index: 111;\n height: 100%;\n background-color: none;\n box-shadow: none;\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200})),_),E=s.div(y||(y=r(["\n position: fixed;\n top: 0;\n left: 0;\n z-index: 201;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n visibility: hidden;\n background-color: rgba(38, 38, 38, 0.3);\n\n .hhg-modal__close {\n position: absolute;\n top: 16px;\n right: 16px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n &[data-type='video'] {\n z-index: 1001;\n }\n &[data-open='true'] {\n visibility: visible;\n }\n\n &.slideTop {\n ."," {\n transform: translate(0, -100vh);\n transition: all 0.5s ease;\n }\n\n &[data-open='true'] {\n ."," {\n transform: translate(0);\n }\n }\n }\n\n &.scaleUp {\n ."," {\n transform: scale(0.9);\n }\n\n &[data-open='true'] {\n ."," {\n transition: all 0.3s ease-out;\n transform: scale(1);\n }\n }\n }\n\n &[data-type='tail'] {\n justify-content: flex-end;\n ."," {\n width: 420px;\n height: 100%;\n border-radius: 0;\n overflow: hidden auto;\n }\n }\n &[data-type='form'] {\n ."," {\n width: 496px;\n height: 548px;\n max-height: 100%;\n overflow-y: auto;\n "," {\n width: 340px;\n }\n }\n }\n &[data-type='video'] {\n ."," {\n height: 100%;\n max-height: 539px;\n "," {\n height: 192px;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n max-height: 192px;\n }\n }\n }\n &[data-type='confirm'] {\n ."," {\n width: 100%;\n max-width: 407px;\n "," {\n width: calc(100% - 32px);\n max-width: calc(100% - 32px);\n }\n }\n }\n"],["\n position: fixed;\n top: 0;\n left: 0;\n z-index: 201;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n visibility: hidden;\n background-color: rgba(38, 38, 38, 0.3);\n\n .hhg-modal__close {\n position: absolute;\n top: 16px;\n right: 16px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n &[data-type='video'] {\n z-index: 1001;\n }\n &[data-open='true'] {\n visibility: visible;\n }\n\n &.slideTop {\n ."," {\n transform: translate(0, -100vh);\n transition: all 0.5s ease;\n }\n\n &[data-open='true'] {\n ."," {\n transform: translate(0);\n }\n }\n }\n\n &.scaleUp {\n ."," {\n transform: scale(0.9);\n }\n\n &[data-open='true'] {\n ."," {\n transition: all 0.3s ease-out;\n transform: scale(1);\n }\n }\n }\n\n &[data-type='tail'] {\n justify-content: flex-end;\n ."," {\n width: 420px;\n height: 100%;\n border-radius: 0;\n overflow: hidden auto;\n }\n }\n &[data-type='form'] {\n ."," {\n width: 496px;\n height: 548px;\n max-height: 100%;\n overflow-y: auto;\n "," {\n width: 340px;\n }\n }\n }\n &[data-type='video'] {\n ."," {\n height: 100%;\n max-height: 539px;\n "," {\n height: 192px;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n max-height: 192px;\n }\n }\n }\n &[data-type='confirm'] {\n ."," {\n width: 100%;\n max-width: 407px;\n "," {\n width: calc(100% - 32px);\n max-width: calc(100% - 32px);\n }\n }\n }\n"])),_,_,_,_,_,_,d.mbDown,_,d.mbDown,_,d.mbDown),k=s.div(v||(v=r(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n align-items: center;\n\n &[data-open='false'] {\n display: none;\n }\n &[data-type='video'] {\n background-color: ",";\n }\n"],["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n align-items: center;\n\n &[data-open='false'] {\n display: none;\n }\n &[data-type='video'] {\n background-color: ",";\n }\n"])),(function(n){return n.theme.colors.secondaryDark})),B="hhg-modals",z=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},C=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},T=function(r){var d=r.type,l=void 0===d?"lead":d,s=r.closeIcon,c=r.isOpen,h=void 0===c||c,p=r.onClose,m=r.children,u=r.className,g=void 0===u?"":u,x=r.animationType,f=void 0===x?"slideTop":x,y=r.isStaticBackdrop,v=void 0!==y&&y,b=r.siteType;r.style;var w=e(!1),_=w[0],T=w[1],G=t(null),N=a().width;if(!G.current&&_&&(G.current=document.createElement("div")),o((function(){return T(!0),function(){T(!1),z(),C()}}),[]),o((function(){if(_){var n=((e=document.getElementById(B))||((e=document.createElement("div")).setAttribute("id",B),document.body.append(e)),e);return n.appendChild(G.current),function(){n.removeChild(G.current)}}var e}),[_]),o((function(){h?document.body.classList.add("hhc-modal-show"):z()}),[h]),o((function(){h?(document.body.style.overflow="hidden",document.body.style.paddingRight=N+"px",document.body.classList.add("hhc-disabled-scroll")):C()}),[h,N]),!_)return null;var S=["hhg-modal__wrapper",g,f].filter((function(n){return n})).join(" ");return i(n.createElement(E,{className:S,"data-open":h,"data-type":l},!v&&n.createElement(k,{"data-open":h,onClick:p,"data-type":l}),!v&&"video"===l&&!!s&&n.createElement("div",{className:"hhg-modal__close",onClick:p},s),n.createElement(j,{className:"hhg-modal","data-open":h,"data-site-type":b},n.createElement("div",{className:"video"===l?"hhg-modal__video":"hhg-modal__content"},!!s&&"video"!==l&&n.createElement("div",{className:"hhg-modal__close",onClick:p},s),m))),G.current)},G=s.div(b||(b=r(["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n justify-self: left;\n }\n }\n }\n"],["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n justify-self: left;\n }\n }\n }\n"])),d.mbUp),N=s(g)(w||(w=r(["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"],["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"]))),S=function(e){var t=e.value,o=e.onChange,a=e.siteType,i=c().t,r="marryBaby"==a;return n.createElement(G,{"data-is-marryBaby":r},r?n.createElement(m,{type:"h4",color:h.mbColors.dark},i("babyVaccineTool.selectGender")):n.createElement(u,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),n.createElement(N,{siteType:a,options:[{value:x.Boy,label:i("gender.male"),content:r?n.createElement(p.BabyBoyMB,null):n.createElement(p.GenderChooseBoy,null)},{value:x.Girl,label:i("gender.female"),content:r?n.createElement(p.BabyGirlMB,null):n.createElement(p.GenderChooseGirl,null)}],value:t,onChange:o,className:"gender-selector"}))};export{S as B,T as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n,{useRef as e,useEffect as t,useState as i}from"react";import{Portal as a}from"@mantine/core";import{t as o}from"./utils-848ab47e.js";import{a as r}from"./tslib.es6-60545877.js";import d,{css as s}from"styled-components";import{T as l}from"./index-2dbc1afc.js";import{t as p}from"./theme-d34fcb72.js";import{s as u,e as x,b as c,f,c as m,g as h,a as b,d as g}from"./animation-cf92c0c1.js";import{M as w}from"./index-221ea478.js";var v,C,y,k,E,O,j,z,L,N,T,B,D,F,M,G,I,P=d.div(v||(v=r(["\n position: fixed;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n background-color: rgba(38, 38, 38, 0.3);\n z-index: 1;\n &[data-open='false'] {\n visibility: hidden;\n pointer-events: none;\n }\n &[data-open='true'] {\n visibility: visible;\n pointer-events: auto;\n }\n"],["\n position: fixed;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n background-color: rgba(38, 38, 38, 0.3);\n z-index: 1;\n &[data-open='false'] {\n visibility: hidden;\n pointer-events: none;\n }\n &[data-open='true'] {\n visibility: visible;\n pointer-events: auto;\n }\n"]))),R=function(e){var t=e.open,i=void 0!==t&&t,a=e.onClickOutside;return n.createElement(P,{"data-open":i,onClick:a})},V="600ms",Z=d.div(B||(B=r(["\n position: fixed;\n inset: 0;\n z-index: ",";\n pointer-events: ",";\n"],["\n position: fixed;\n inset: 0;\n z-index: ",";\n pointer-events: ",";\n"])),p.zIndexes.drawer,(function(n){return n.open?"auto":"none"})),q=d.div(F||(F=r(["\n position: fixed;\n z-index: 300;\n background: #ffffff;\n visibility: ",";\n max-height: calc(100vh - 100px);\n display: flex;\n flex-direction: column;\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px;\n ","\n }\n\n .close-button {\n margin-left: auto;\n }\n\n ","\n"],["\n position: fixed;\n z-index: 300;\n background: #ffffff;\n visibility: ",";\n max-height: calc(100vh - 100px);\n display: flex;\n flex-direction: column;\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px;\n ","\n }\n\n .close-button {\n margin-left: auto;\n }\n\n ","\n"])),(function(n){return n.open?"visible":"hidden"}),(function(n){return n.hasTitle?s(D||(D=r(["\n border-bottom: 1px solid ",";\n "],["\n border-bottom: 1px solid ",";\n "])),p.colors.neutral100):null}),(function(n){return function(n,e){switch(n){case"top":return s(y||(y=r(["\n top: 0;\n width: 100%;\n border-radius: 0px 0px 6px 6px;\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "],["\n top: 0;\n width: 100%;\n border-radius: 0px 0px 6px 6px;\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "])),e?s(C||(C=r(["\n animation: "," "," ease-in-out forwards;\n "],["\n animation: "," "," ease-in-out forwards;\n "])),b,V):null,g,V);case"right":return s(E||(E=r(["\n right: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 6px 0px 0px 6px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "],["\n right: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 6px 0px 0px 6px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "])),e?s(k||(k=r(["\n animation: "," "," ease-in-out forwards;\n "],["\n animation: "," "," ease-in-out forwards;\n "])),m,V):null,h,V);case"bottom":return s(j||(j=r(["\n bottom: 0;\n width: 100%;\n border-radius: 6px 6px 0px 0px;\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "],["\n bottom: 0;\n width: 100%;\n border-radius: 6px 6px 0px 0px;\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "])),e?s(O||(O=r(["\n animation: "," "," ease-in-out forwards;\n "],["\n animation: "," "," ease-in-out forwards;\n "])),u,V):null,x,V);case"left":return s(L||(L=r(["\n left: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 0px 6px 6px 0px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "],["\n left: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 0px 6px 6px 0px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "])),e?s(z||(z=r(["\n animation: "," "," ease-in-out forwards;\n "],["\n animation: "," "," ease-in-out forwards;\n "])),c,V):null,f,V);default:return s(T||(T=r(["\n left: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 0px 6px 6px 0px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "],["\n left: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 0px 6px 6px 0px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "])),e?s(N||(N=r(["\n animation: "," "," ease-in-out forwards;\n "],["\n animation: "," "," ease-in-out forwards;\n "])),u,V):null,x,V)}}(n.placement,n.open)})),A=d.div(M||(M=r(["\n min-height: 200px;\n padding: 16px;\n overflow-y: auto;\n"],["\n min-height: 200px;\n padding: 16px;\n overflow-y: auto;\n"]))),H=function(i){var r=i.children,d=i.title,s=i.onClose,p=i.open,u=void 0!==p&&p,x=i.placement,c=void 0===x?"left":x,f=i.destroyOnClose,m=void 0!==f&&f,h=i.className,b=e();t((function(){return o(u),function(){return o(!1)}}),[u]);var g=function(){b.current.classList.add("slideOut"),setTimeout((function(){s()}),800)};return!u&&m?null:n.createElement(a,null,n.createElement(Z,{className:h,open:u},n.createElement(R,{open:u,onClickOutside:g}),n.createElement(q,{open:u,placement:c,ref:b,hasTitle:Boolean(d)},n.createElement("div",{className:"title"},d&&n.createElement(l,{size:"s2",type:"semiBold"},d),n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:g},n.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),n.createElement(A,{onClick:function(n){return n.stopPropagation()}},r&&(n.isValidElement(r)?r:"function"==typeof r?r({internalClose:g}):null)))))},J=d.div(G||(G=r(["\n display: flex;\n width: 100%;\n\n &[data-direction='vertical'] {\n flex-direction: column;\n }\n\n &[data-direction='horizontal'] {\n flex-wrap: wrap;\n }\n"],["\n display: flex;\n width: 100%;\n\n &[data-direction='vertical'] {\n flex-direction: column;\n }\n\n &[data-direction='horizontal'] {\n flex-wrap: wrap;\n }\n"]))),K=d.div(I||(I=r(["\n display: flex;\n\n padding: 8px;\n\n border-radius: 6px;\n cursor: pointer;\n\n & > div {\n display: flex;\n width: 100%;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n }\n\n &[data-is-mb='false'] {\n &[data-selected='true'] {\n border: 1px solid #2d87f3;\n background: white;\n }\n &[data-selected='false'] {\n border: 1px solid #f2f2f2;\n box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);\n }\n }\n\n &[data-is-mb='true'] {\n border-radius: 16px;\n background: white;\n padding: 16px auto;\n\n &[data-selected='true'] {\n border: 1px solid ",";\n box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);\n }\n &[data-selected='false'] {\n border: none;\n }\n }\n\n &[data-disabled='true'] {\n cursor: auto;\n }\n\n .radio-group-item-heading {\n margin-top: 8px;\n //height: 48px;\n text-align: center;\n }\n\n .gender-image {\n width: 70px;\n height: 70px;\n &[data-is-mobile='true'] {\n width: 40px;\n height: 40px;\n }\n }\n"],["\n display: flex;\n\n padding: 8px;\n\n border-radius: 6px;\n cursor: pointer;\n\n & > div {\n display: flex;\n width: 100%;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n }\n\n &[data-is-mb='false'] {\n &[data-selected='true'] {\n border: 1px solid #2d87f3;\n background: white;\n }\n &[data-selected='false'] {\n border: 1px solid #f2f2f2;\n box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);\n }\n }\n\n &[data-is-mb='true'] {\n border-radius: 16px;\n background: white;\n padding: 16px auto;\n\n &[data-selected='true'] {\n border: 1px solid ",";\n box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);\n }\n &[data-selected='false'] {\n border: none;\n }\n }\n\n &[data-disabled='true'] {\n cursor: auto;\n }\n\n .radio-group-item-heading {\n margin-top: 8px;\n //height: 48px;\n text-align: center;\n }\n\n .gender-image {\n width: 70px;\n height: 70px;\n &[data-is-mobile='true'] {\n width: 40px;\n height: 40px;\n }\n }\n"])),(function(n){return n.theme.mbColors.mint})),Q=function(e){var t=e.value,a=e.options,o=e.className,r=e.direction,d=void 0===r?"horizontal":r,s=e.onChange,u=e.isDisabled,x=e.siteType,c=i(t),f=c[0],m=c[1],h="marryBaby"===x;return n.createElement(J,{className:o,"data-direction":d},a.map((function(e,i){return n.createElement(K,{"data-selected":(t||f)===e.value,"data-is-mb":h,"data-disabled":u,key:i,onClick:function(){var n;n=e.value,u||(m(n),s&&s(n))}},n.createElement("div",null,e.content,e.label&&n.createElement(n.Fragment,null,h?n.createElement(w,{type:"subtitle-2",color:(t||f)===e.value?p.mbColors.dark:p.mbColors.midGray},e.label):n.createElement(l,{type:"bold",color:(t||f)===e.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},e.label))))})))};export{H as D,Q as R};
|
|
1
|
+
import n,{useRef as e,useEffect as t,useState as i}from"react";import{Portal as a}from"@mantine/core";import{t as o}from"./utils-c4fbd283.js";import{a as r}from"./tslib.es6-8afd0786.js";import d,{css as s}from"styled-components";import{T as l}from"./index-6e945ca0.js";import{t as p}from"./theme-f92bf7cf.js";import{s as u,e as x,b as c,f,c as m,g as h,a as b,d as g}from"./animation-16ef2a19.js";import{M as w}from"./index-b5f56aea.js";var v,C,y,k,E,O,j,z,L,N,T,B,D,F,M,G,I,P=d.div(v||(v=r(["\n position: fixed;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n background-color: rgba(38, 38, 38, 0.3);\n z-index: 1;\n &[data-open='false'] {\n visibility: hidden;\n pointer-events: none;\n }\n &[data-open='true'] {\n visibility: visible;\n pointer-events: auto;\n }\n"],["\n position: fixed;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n background-color: rgba(38, 38, 38, 0.3);\n z-index: 1;\n &[data-open='false'] {\n visibility: hidden;\n pointer-events: none;\n }\n &[data-open='true'] {\n visibility: visible;\n pointer-events: auto;\n }\n"]))),R=function(e){var t=e.open,i=void 0!==t&&t,a=e.onClickOutside;return n.createElement(P,{"data-open":i,onClick:a})},V="600ms",Z=d.div(B||(B=r(["\n position: fixed;\n inset: 0;\n z-index: ",";\n pointer-events: ",";\n"],["\n position: fixed;\n inset: 0;\n z-index: ",";\n pointer-events: ",";\n"])),p.zIndexes.drawer,(function(n){return n.open?"auto":"none"})),q=d.div(F||(F=r(["\n position: fixed;\n z-index: 300;\n background: #ffffff;\n visibility: ",";\n max-height: calc(100vh - 100px);\n display: flex;\n flex-direction: column;\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px;\n ","\n }\n\n .close-button {\n margin-left: auto;\n }\n\n ","\n"],["\n position: fixed;\n z-index: 300;\n background: #ffffff;\n visibility: ",";\n max-height: calc(100vh - 100px);\n display: flex;\n flex-direction: column;\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px;\n ","\n }\n\n .close-button {\n margin-left: auto;\n }\n\n ","\n"])),(function(n){return n.open?"visible":"hidden"}),(function(n){return n.hasTitle?s(D||(D=r(["\n border-bottom: 1px solid ",";\n "],["\n border-bottom: 1px solid ",";\n "])),p.colors.neutral100):null}),(function(n){return function(n,e){switch(n){case"top":return s(y||(y=r(["\n top: 0;\n width: 100%;\n border-radius: 0px 0px 6px 6px;\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "],["\n top: 0;\n width: 100%;\n border-radius: 0px 0px 6px 6px;\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "])),e?s(C||(C=r(["\n animation: "," "," ease-in-out forwards;\n "],["\n animation: "," "," ease-in-out forwards;\n "])),b,V):null,g,V);case"right":return s(E||(E=r(["\n right: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 6px 0px 0px 6px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "],["\n right: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 6px 0px 0px 6px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "])),e?s(k||(k=r(["\n animation: "," "," ease-in-out forwards;\n "],["\n animation: "," "," ease-in-out forwards;\n "])),m,V):null,h,V);case"bottom":return s(j||(j=r(["\n bottom: 0;\n width: 100%;\n border-radius: 6px 6px 0px 0px;\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "],["\n bottom: 0;\n width: 100%;\n border-radius: 6px 6px 0px 0px;\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "])),e?s(O||(O=r(["\n animation: "," "," ease-in-out forwards;\n "],["\n animation: "," "," ease-in-out forwards;\n "])),u,V):null,x,V);case"left":return s(L||(L=r(["\n left: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 0px 6px 6px 0px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "],["\n left: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 0px 6px 6px 0px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "])),e?s(z||(z=r(["\n animation: "," "," ease-in-out forwards;\n "],["\n animation: "," "," ease-in-out forwards;\n "])),c,V):null,f,V);default:return s(T||(T=r(["\n left: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 0px 6px 6px 0px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "],["\n left: 0;\n height: 100%;\n min-width: 300px;\n border-radius: 0px 6px 6px 0px;\n\n ","\n\n &.slideOut {\n animation: "," "," ease-in-out forwards;\n }\n "])),e?s(N||(N=r(["\n animation: "," "," ease-in-out forwards;\n "],["\n animation: "," "," ease-in-out forwards;\n "])),u,V):null,x,V)}}(n.placement,n.open)})),A=d.div(M||(M=r(["\n min-height: 200px;\n padding: 16px;\n overflow-y: auto;\n"],["\n min-height: 200px;\n padding: 16px;\n overflow-y: auto;\n"]))),H=function(i){var r=i.children,d=i.title,s=i.onClose,p=i.open,u=void 0!==p&&p,x=i.placement,c=void 0===x?"left":x,f=i.destroyOnClose,m=void 0!==f&&f,h=i.className,b=e();t((function(){return o(u),function(){return o(!1)}}),[u]);var g=function(){b.current.classList.add("slideOut"),setTimeout((function(){s()}),800)};return!u&&m?null:n.createElement(a,null,n.createElement(Z,{className:h,open:u},n.createElement(R,{open:u,onClickOutside:g}),n.createElement(q,{open:u,placement:c,ref:b,hasTitle:Boolean(d)},n.createElement("div",{className:"title"},d&&n.createElement(l,{size:"s2",type:"semiBold"},d),n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:g},n.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),n.createElement(A,{onClick:function(n){return n.stopPropagation()}},r&&(n.isValidElement(r)?r:"function"==typeof r?r({internalClose:g}):null)))))},J=d.div(G||(G=r(["\n display: flex;\n width: 100%;\n\n &[data-direction='vertical'] {\n flex-direction: column;\n }\n\n &[data-direction='horizontal'] {\n flex-wrap: wrap;\n }\n"],["\n display: flex;\n width: 100%;\n\n &[data-direction='vertical'] {\n flex-direction: column;\n }\n\n &[data-direction='horizontal'] {\n flex-wrap: wrap;\n }\n"]))),K=d.div(I||(I=r(["\n display: flex;\n\n padding: 8px;\n\n border-radius: 6px;\n cursor: pointer;\n\n & > div {\n display: flex;\n width: 100%;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n }\n\n &[data-is-mb='false'] {\n &[data-selected='true'] {\n border: 1px solid #2d87f3;\n background: white;\n }\n &[data-selected='false'] {\n border: 1px solid #f2f2f2;\n box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);\n }\n }\n\n &[data-is-mb='true'] {\n border-radius: 16px;\n background: white;\n padding: 16px auto;\n\n &[data-selected='true'] {\n border: 1px solid ",";\n box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);\n }\n &[data-selected='false'] {\n border: none;\n }\n }\n\n &[data-disabled='true'] {\n cursor: auto;\n }\n\n .radio-group-item-heading {\n margin-top: 8px;\n //height: 48px;\n text-align: center;\n }\n\n .gender-image {\n width: 70px;\n height: 70px;\n &[data-is-mobile='true'] {\n width: 40px;\n height: 40px;\n }\n }\n"],["\n display: flex;\n\n padding: 8px;\n\n border-radius: 6px;\n cursor: pointer;\n\n & > div {\n display: flex;\n width: 100%;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n }\n\n &[data-is-mb='false'] {\n &[data-selected='true'] {\n border: 1px solid #2d87f3;\n background: white;\n }\n &[data-selected='false'] {\n border: 1px solid #f2f2f2;\n box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);\n }\n }\n\n &[data-is-mb='true'] {\n border-radius: 16px;\n background: white;\n padding: 16px auto;\n\n &[data-selected='true'] {\n border: 1px solid ",";\n box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);\n }\n &[data-selected='false'] {\n border: none;\n }\n }\n\n &[data-disabled='true'] {\n cursor: auto;\n }\n\n .radio-group-item-heading {\n margin-top: 8px;\n //height: 48px;\n text-align: center;\n }\n\n .gender-image {\n width: 70px;\n height: 70px;\n &[data-is-mobile='true'] {\n width: 40px;\n height: 40px;\n }\n }\n"])),(function(n){return n.theme.mbColors.mint})),Q=function(e){var t=e.value,a=e.options,o=e.className,r=e.direction,d=void 0===r?"horizontal":r,s=e.onChange,u=e.isDisabled,x=e.siteType,c=i(t),f=c[0],m=c[1],h="marryBaby"===x;return n.createElement(J,{className:o,"data-direction":d},a.map((function(e,i){return n.createElement(K,{"data-selected":(t||f)===e.value,"data-is-mb":h,"data-disabled":u,key:i,onClick:function(){var n;n=e.value,u||(m(n),s&&s(n))}},n.createElement("div",null,e.content,e.label&&n.createElement(n.Fragment,null,h?n.createElement(w,{type:"subtitle-2",color:(t||f)===e.value?p.mbColors.dark:p.mbColors.midGray},e.label):n.createElement(l,{type:"bold",color:(t||f)===e.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},e.label))))})))};export{H as D,Q as R};
|