@hhgtech/hhg-components 1.23.88-beta-2 → 1.23.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Locale-62fcc7b0.js +1 -0
- package/build/{Visible-15165ee2.js → Visible-03d4ce8f.js} +1 -1
- package/build/babyGrowth.js +1 -1
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/mantine/index.d.ts +0 -2
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-953f48d7.js → core-e056e729.js} +1 -1
- package/build/dataTransform-57a183ab.js +1 -0
- package/build/dataTransform-db9296d5.js +1 -0
- package/build/{defaultClassWrapper-27713cbf.js → defaultClassWrapper-097330d4.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/Locale-798314ff.js +1 -0
- package/build/esm/{Visible-b98fa6cb.js → Visible-75723a95.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/constants.js +1 -1
- package/build/esm/{core-26229434.js → core-adc4f8a6.js} +1 -1
- package/build/esm/dataTransform-0b0d1946.js +1 -0
- package/build/esm/dataTransform-bb5296a0.js +1 -0
- package/build/esm/{defaultClassWrapper-91419e7c.js → defaultClassWrapper-7dc9cd2b.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-e84e4aaf.js → getDynamicHealthTool-09411931.js} +1 -1
- package/build/esm/{getSocialList-81e8a7e7.js → getSocialList-1c947663.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-00e70e79.js +1 -0
- package/build/esm/{index-234da828.js → index-10220457.js} +1 -1
- package/build/esm/index-186d5df6.js +1 -0
- package/build/esm/{index-1c71a879.js → index-19f7e460.js} +1 -1
- package/build/esm/index-2b6cc745.js +1 -0
- package/build/esm/index-329a1f12.js +1 -0
- package/build/esm/{index-09386d94.js → index-4109ae0a.js} +1 -1
- package/build/esm/index-447735e7.js +1 -0
- package/build/esm/{index-933da36a.js → index-66dbe2be.js} +1 -1
- package/build/esm/index-70884fac.js +1 -0
- package/build/esm/{index-e56af69f.js → index-721608f5.js} +1 -1
- package/build/esm/{index-f2b934b9.js → index-995d8437.js} +1 -1
- package/build/esm/index-a4871952.js +1 -0
- package/build/esm/index-b4b0e2d5.js +1 -0
- package/build/esm/index-bfeb66b9.js +1 -0
- package/build/esm/index-c098c7cf.js +1 -0
- package/build/esm/index-c400371e.js +1 -0
- package/build/esm/index-c411f466.js +1 -0
- package/build/esm/index-cf5fe92c.js +1 -0
- package/build/esm/index-d6cd8d13.js +1 -0
- package/build/esm/index-e0da2e0a.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-07085e44.js +1 -0
- package/build/esm/index.styled-47c3aa95.js +1 -0
- package/build/esm/index.styled-5a566411.js +1 -0
- package/build/esm/index.styled-5bb7613e.js +1 -0
- package/build/esm/index.styled-6e26a107.js +1 -0
- package/build/esm/index.styled-eb17e082.js +1 -0
- 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-83ea2463.js → routing-997dbb74.js} +1 -1
- package/build/esm/screenSizeContext-cec0ddd6.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-6c0e191d.js → translationsProvider-cb55a47c.js} +1 -1
- package/build/esm/{tslib.es6-33285504.js → tslib.es6-f3342f27.js} +1 -1
- package/build/esm/types-10a94346.js +1 -0
- package/build/esm/types-a1bb2a21.js +1 -0
- package/build/esm/types.js +1 -1
- package/build/esm/{useFbDataLayer-ab307c1b.js → useFbDataLayer-eacce85d.js} +1 -1
- package/build/esm/useHealthToolCache-3a8a798b.js +1 -0
- package/build/esm/{useTranslations-4b9465a3.js → useTranslations-7812251e.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-6ca9ebe6.js +1 -0
- package/build/{getSocialList-d1d3bef3.js → getSocialList-96ffa4d7.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-1c8abe00.js → index-05c8108c.js} +1 -1
- package/build/{index-487644f3.js → index-0c219667.js} +1 -1
- package/build/index-230d35b4.js +1 -0
- package/build/index-245477ca.js +1 -0
- package/build/{index-b32bccc2.js → index-2e4836fc.js} +1 -1
- package/build/index-49f85878.js +1 -0
- package/build/index-52e73427.js +1 -0
- package/build/{index-49a8988d.js → index-641a11c5.js} +1 -1
- package/build/index-70d4867e.js +1 -0
- package/build/index-80379dcf.js +1 -0
- package/build/index-88735a00.js +1 -0
- package/build/index-89ce0cfb.js +1 -0
- package/build/{index-8435f537.js → index-93682ab2.js} +1 -1
- package/build/index-9a652a56.js +1 -0
- package/build/index-a60bc4ba.js +1 -0
- package/build/index-a8f420e2.js +1 -0
- package/build/index-c15b9dd4.js +1 -0
- package/build/index-c5153f6a.js +1 -0
- package/build/index-deebd1a0.js +1 -0
- package/build/index-f98f92e4.js +1 -0
- package/build/index-fbf624e9.js +1 -0
- package/build/index.js +1 -1
- package/build/index.styled-04834b72.js +1 -0
- package/build/{index-e6ff8187.js → index.styled-591180f1.js} +1 -1
- package/build/index.styled-9accffbb.js +1 -0
- package/build/index.styled-bf52de3c.js +1 -0
- package/build/index.styled-c355a9a7.js +1 -0
- package/build/index.styled-ebd6d7d6.js +1 -0
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +1 -1
- package/build/routing-10a44c5a.js +1 -0
- package/build/screenSizeContext-2d29f37e.js +1 -0
- package/build/together.js +1 -1
- package/build/{translationsProvider-5013afaa.js → translationsProvider-ce200997.js} +1 -1
- package/build/{types-a42de506.js → types-1ff5bfa8.js} +1 -1
- package/build/types-7b06c55e.js +1 -0
- package/build/types.js +1 -1
- package/build/{useFbDataLayer-d466f5ad.js → useFbDataLayer-7d0a4b15.js} +1 -1
- package/build/{useHealthToolCache-ba110f82.js → useHealthToolCache-9763067a.js} +1 -1
- package/build/{useTranslations-dc5a775a.js → useTranslations-d250add6.js} +1 -1
- package/package.json +2 -6
- package/build/BabyGrowth-d748e1fd.js +0 -1
- package/build/Locale-4ddda4bb.js +0 -1
- package/build/Vietnam-3966b583.js +0 -1
- package/build/animation-541292d3.js +0 -1
- package/build/components/mantine/aspectRatio/index.d.ts +0 -5
- package/build/components/mantine/aspectRatio/index.styled.d.ts +0 -1
- package/build/components/mantine/theme/checkbox.d.ts +0 -11
- package/build/components/mantine/theme/input.d.ts +0 -65
- package/build/components/mantine/theme/radio.d.ts +0 -15
- package/build/components/mantine/theme/shared.d.ts +0 -6
- package/build/componentsAtoms.js +0 -1
- package/build/componentsMolecules.js +0 -1
- package/build/componentsOrganisms.js +0 -1
- package/build/componentsSlider.js +0 -1
- package/build/componentsUi.js +0 -1
- package/build/constants-7338fb08.js +0 -1
- package/build/dataTransform-05837170.js +0 -1
- package/build/dataTransform-e677df88.js +0 -1
- package/build/esm/BabyGrowth-f95abe02.js +0 -1
- package/build/esm/Locale-5b2e2812.js +0 -1
- package/build/esm/Vietnam-764f514e.js +0 -1
- package/build/esm/animation-70b1a99d.js +0 -1
- package/build/esm/componentsAtoms.js +0 -1
- package/build/esm/componentsMolecules.js +0 -1
- package/build/esm/componentsOrganisms.js +0 -1
- package/build/esm/componentsSlider.js +0 -1
- package/build/esm/componentsUi.js +0 -1
- package/build/esm/constants-15976e5c.js +0 -1
- package/build/esm/dataTransform-9a681e9f.js +0 -1
- package/build/esm/dataTransform-fd773ead.js +0 -1
- package/build/esm/index-013a92c0.js +0 -1
- package/build/esm/index-05696d9b.js +0 -1
- package/build/esm/index-0ac44ec0.js +0 -1
- package/build/esm/index-0db2ed40.js +0 -1
- package/build/esm/index-2214433a.js +0 -1
- package/build/esm/index-2a59135f.js +0 -1
- package/build/esm/index-2c815012.js +0 -1
- package/build/esm/index-403f4462.js +0 -1
- package/build/esm/index-41d7c7d3.js +0 -1
- package/build/esm/index-48198c2e.js +0 -1
- package/build/esm/index-4e2cc7a6.js +0 -1
- package/build/esm/index-56c33c15.js +0 -7
- package/build/esm/index-625427c8.js +0 -1
- package/build/esm/index-65da6fbb.js +0 -7
- package/build/esm/index-6de5813c.js +0 -1
- package/build/esm/index-8213f6e6.js +0 -1
- package/build/esm/index-98575685.js +0 -1
- package/build/esm/index-9f0636c6.js +0 -1
- package/build/esm/index-a99d3593.js +0 -1
- package/build/esm/index-bf1a041b.js +0 -1
- package/build/esm/index-c6742a41.js +0 -1
- package/build/esm/index-c9270726.js +0 -1
- package/build/esm/index-d05b1c8c.js +0 -1
- package/build/esm/index-e2e9e415.js +0 -1
- package/build/esm/index-f63107bd.js +0 -1
- package/build/esm/index-f74101a0.js +0 -1
- package/build/esm/index-ffb0d6ff.js +0 -1
- package/build/esm/logoIcon-3f6ccb13.js +0 -1
- package/build/esm/types-956aa052.js +0 -1
- package/build/esm/types-d1b05322.js +0 -1
- package/build/esm/useHealthToolCache-dda7cf05.js +0 -1
- package/build/getDynamicHealthTool-461c9ce1.js +0 -1
- package/build/index-04157b04.js +0 -1
- package/build/index-06e26abd.js +0 -1
- package/build/index-070d0c3c.js +0 -1
- package/build/index-0ad02f79.js +0 -1
- package/build/index-19cf7ab7.js +0 -1
- package/build/index-22f85e6b.js +0 -1
- package/build/index-248b0906.js +0 -1
- package/build/index-34ce7760.js +0 -1
- package/build/index-35e61707.js +0 -1
- package/build/index-5adfd033.js +0 -1
- package/build/index-6b8c2388.js +0 -1
- package/build/index-703c91ae.js +0 -1
- package/build/index-7b2ca3b6.js +0 -1
- package/build/index-83345ca5.js +0 -1
- package/build/index-85c8464f.js +0 -1
- package/build/index-8bb2d5e9.js +0 -1
- package/build/index-944de99d.js +0 -1
- package/build/index-98e3a181.js +0 -1
- package/build/index-9cbd932d.js +0 -1
- package/build/index-a30f5696.js +0 -1
- package/build/index-a8290473.js +0 -7
- package/build/index-aeb9c81a.js +0 -1
- package/build/index-bc2c8507.js +0 -1
- package/build/index-d0c71b4a.js +0 -1
- package/build/index-e1cdfb7d.js +0 -1
- package/build/index-e75c7ef4.js +0 -1
- package/build/index-fe95aecd.js +0 -1
- package/build/logoIcon-e3c9d230.js +0 -1
- package/build/routing-8c09e877.js +0 -1
- package/build/types-0f691a58.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-86b7361d.js → BMI_BOYS.percentile.monthly-dffd9483.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-9f4645af.js → BMI_BOYS.percentile.weekly-94a3eb7a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-5b1f8897.js → BMI_BOYS.percentile.yearly-9d1d31ef.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-6b04f270.js → BMI_BOYS.zscore.monthly-ff8453d5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-d79b9cc6.js → BMI_BOYS.zscore.weekly-8ca8b952.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-f7d97cf8.js → BMI_BOYS.zscore.yearly-73d4b893.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-1005c259.js → BMI_GIRLS.percentile.monthly-7348656f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-c2a8ac0a.js → BMI_GIRLS.percentile.weekly-93874166.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-e782e36d.js → BMI_GIRLS.percentile.yearly-b1eea5a1.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-ad593549.js → BMI_GIRLS.zscore.monthly-b5c171bd.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-c7b0e1a7.js → BMI_GIRLS.zscore.weekly-c6fd0ff5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-8776ec93.js → BMI_GIRLS.zscore.yearly-2643acec.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-c26c6be3.js → HEAD CIRCUM_BOYS.percentile.monthly-583a8795.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c8d9d6ae.js → HEAD CIRCUM_BOYS.percentile.weekly-8c34ec05.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7ef2b52b.js → HEAD CIRCUM_BOYS.percentile.yearly-f668811c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f8e5a721.js → HEAD CIRCUM_BOYS.zscore.monthly-93a9d1e4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-fe18d594.js → HEAD CIRCUM_BOYS.zscore.weekly-4413fc65.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-51ca6568.js → HEAD CIRCUM_BOYS.zscore.yearly-787aea7d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-e2ace4dc.js → HEAD CIRCUM_GIRLS.percentile.monthly-3a8b7ca3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-83e5f2e9.js → HEAD CIRCUM_GIRLS.percentile.weekly-14debf38.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-8c1770f6.js → HEAD CIRCUM_GIRLS.percentile.yearly-c8f06edb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-24bcceda.js → HEAD CIRCUM_GIRLS.zscore.monthly-4ce6e817.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e3ded3d2.js → HEAD CIRCUM_GIRLS.zscore.weekly-117547db.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-d03c7573.js → HEAD CIRCUM_GIRLS.zscore.yearly-197c4b8d.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-3a4d3fdb.js → HEIGHT_BOYS.percentile.monthly-fa6aa3fd.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-94a52e1e.js → HEIGHT_BOYS.percentile.weekly-45343ff5.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-ef6b716d.js → HEIGHT_BOYS.percentile.yearly-16fa410d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-54ea78d2.js → HEIGHT_BOYS.zscore.monthly-b54acac0.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-287ec658.js → HEIGHT_BOYS.zscore.weekly-6b2416a1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-1e5384e5.js → HEIGHT_BOYS.zscore.yearly-c5f4af4f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-3c146c8f.js → HEIGHT_GIRLS.percentile.monthly-224ac457.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-59560ef8.js → HEIGHT_GIRLS.percentile.weekly-a8ca4c91.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-1e49f28f.js → HEIGHT_GIRLS.percentile.yearly-9f026d86.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-a6ad4926.js → HEIGHT_GIRLS.zscore.monthly-3a0886c0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-59d6cd63.js → HEIGHT_GIRLS.zscore.weekly-622e7690.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-d8743b54.js → HEIGHT_GIRLS.zscore.yearly-92bac06e.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-d06d48a0.js → WEIGHT_BOYS.percentile.monthly-a3d4098b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-227e7905.js → WEIGHT_BOYS.percentile.weekly-d665580b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-7723e5e5.js → WEIGHT_BOYS.percentile.yearly-83b92fa6.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-9d1be81e.js → WEIGHT_BOYS.zscore.monthly-b059aeab.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-3cbe8df2.js → WEIGHT_BOYS.zscore.weekly-3a198faa.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-a123285f.js → WEIGHT_BOYS.zscore.yearly-60695151.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1428378f.js → WEIGHT_GIRLS.percentile.monthly-73b66350.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-130cc1a5.js → WEIGHT_GIRLS.percentile.weekly-92fe4ff0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-c2c14fc2.js → WEIGHT_GIRLS.percentile.yearly-026d62f5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-e71fdf0b.js → WEIGHT_GIRLS.zscore.monthly-e61af54a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-97b64c1b.js → WEIGHT_GIRLS.zscore.weekly-9916c5aa.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-76bc8334.js → WEIGHT_GIRLS.zscore.yearly-b6f2bb79.js} +0 -0
- /package/build/components/mantine/{theme/index.d.ts → theme.d.ts} +0 -0
- /package/build/{constants-d7879031.js → constants-4b62d460.js} +0 -0
- /package/build/{cookieHelper-81331e27.js → cookieHelper-3d7cd7a0.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-98cf4818.js → BMI_BOYS.percentile.monthly-e082e20d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-65b07d97.js → BMI_BOYS.percentile.weekly-0ba3efd7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-e749df72.js → BMI_BOYS.percentile.yearly-11613e84.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-d0aa10fd.js → BMI_BOYS.zscore.monthly-8a00fc37.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-f088d8db.js → BMI_BOYS.zscore.weekly-dfc9c646.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-354ee8eb.js → BMI_BOYS.zscore.yearly-5a5847ef.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-1834595f.js → BMI_GIRLS.percentile.monthly-bc6a373e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-104e3feb.js → BMI_GIRLS.percentile.weekly-5920c399.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-092075de.js → BMI_GIRLS.percentile.yearly-2a3e22d3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-5cc91c84.js → BMI_GIRLS.zscore.monthly-708b7445.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-516ce08d.js → BMI_GIRLS.zscore.weekly-bc2b1e37.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-b2ea824f.js → BMI_GIRLS.zscore.yearly-226d1d99.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-cbdc1cd3.js → HEAD CIRCUM_BOYS.percentile.monthly-487dd14c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d783eacd.js → HEAD CIRCUM_BOYS.percentile.weekly-2f9e32e5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e346cc6b.js → HEAD CIRCUM_BOYS.percentile.yearly-3cf19a4e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-65d89b58.js → HEAD CIRCUM_BOYS.zscore.monthly-9d34c617.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8fd4bcf0.js → HEAD CIRCUM_BOYS.zscore.weekly-3598ad1b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-0dd2af95.js → HEAD CIRCUM_BOYS.zscore.yearly-a3d538bf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-f72b19cc.js → HEAD CIRCUM_GIRLS.percentile.monthly-d1b09b73.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-9519d0fb.js → HEAD CIRCUM_GIRLS.percentile.weekly-660ad91e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-c4932baf.js → HEAD CIRCUM_GIRLS.percentile.yearly-3e1aac48.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-c6847c00.js → HEAD CIRCUM_GIRLS.zscore.monthly-29e1a323.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-61aa3a02.js → HEAD CIRCUM_GIRLS.zscore.weekly-8adec3b5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-8476277d.js → HEAD CIRCUM_GIRLS.zscore.yearly-c6a7195c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-197a1779.js → HEIGHT_BOYS.percentile.monthly-621efce7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-6b7f4752.js → HEIGHT_BOYS.percentile.weekly-dc007fe2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-19174104.js → HEIGHT_BOYS.percentile.yearly-11f1c200.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-967cfb74.js → HEIGHT_BOYS.zscore.monthly-a77e9985.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-8c3ca6c5.js → HEIGHT_BOYS.zscore.weekly-5d760aa6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-32bb6baa.js → HEIGHT_BOYS.zscore.yearly-1ce222b1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-a1927ba3.js → HEIGHT_GIRLS.percentile.monthly-d45ec85f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-740409f3.js → HEIGHT_GIRLS.percentile.weekly-0c9d9ea9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ff8ba37e.js → HEIGHT_GIRLS.percentile.yearly-eb353371.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-08c79b42.js → HEIGHT_GIRLS.zscore.monthly-2ce4afe9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-eb3f02cf.js → HEIGHT_GIRLS.zscore.weekly-f41c022c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-224d0275.js → HEIGHT_GIRLS.zscore.yearly-95ecd3a4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-4a39b5b2.js → WEIGHT_BOYS.percentile.monthly-b65139e9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-21421f5b.js → WEIGHT_BOYS.percentile.weekly-4b1f3d75.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-69eb62f9.js → WEIGHT_BOYS.percentile.yearly-d81f032d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-500e2580.js → WEIGHT_BOYS.zscore.monthly-7f734657.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5c737cb6.js → WEIGHT_BOYS.zscore.weekly-793e125c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-fb5901c4.js → WEIGHT_BOYS.zscore.yearly-f5897db9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-9fb4fd61.js → WEIGHT_GIRLS.percentile.monthly-014f529b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-6896abe5.js → WEIGHT_GIRLS.percentile.weekly-d64738fa.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-24a92cff.js → WEIGHT_GIRLS.percentile.yearly-3280a0ce.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-6639cd1b.js → WEIGHT_GIRLS.zscore.monthly-7538ef20.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-676a7623.js → WEIGHT_GIRLS.zscore.weekly-c09bc140.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c553471c.js → WEIGHT_GIRLS.zscore.yearly-402e852b.js} +0 -0
- /package/build/esm/{constants-626b4841.js → constants-3a0e1881.js} +0 -0
- /package/build/esm/{cookieHelper-fdb513d9.js → cookieHelper-2949ded2.js} +0 -0
- /package/build/esm/{isProduction-1fc239e0.js → isProduction-d1de7904.js} +0 -0
- /package/build/esm/{localizeNumberFormat-77e1ec9f.js → localizeNumberFormat-0e258133.js} +0 -0
- /package/build/esm/{theme-29327177.js → theme-a73122f6.js} +0 -0
- /package/build/esm/{translationsContext-efc368b2.js → translationsContext-fd0accb0.js} +0 -0
- /package/build/esm/{types-a607ab55.js → types-84dddfd3.js} +0 -0
- /package/build/esm/{useOutsideClick-8516881b.js → useOutsideClick-aecd0caf.js} +0 -0
- /package/build/esm/{useScrollbarSize-888088a7.js → useScrollbarSize-11eb2d3f.js} +0 -0
- /package/build/esm/{utils-bf11a3c9.js → utils-7418c98d.js} +0 -0
- /package/build/{isProduction-5391d27d.js → isProduction-173ba17c.js} +0 -0
- /package/build/{localizeNumberFormat-5a9bcd2f.js → localizeNumberFormat-458e0901.js} +0 -0
- /package/build/{theme-929496b2.js → theme-a0eb5b5d.js} +0 -0
- /package/build/{translationsContext-be63ee2a.js → translationsContext-5acb0023.js} +0 -0
- /package/build/{tslib.es6-9ca973bc.js → tslib.es6-e23cdb9e.js} +0 -0
- /package/build/{types-01874848.js → types-a1589d2d.js} +0 -0
- /package/build/{useOutsideClick-4e1dd169.js → useOutsideClick-a2f58453.js} +0 -0
- /package/build/{useScrollbarSize-d9fdc260.js → useScrollbarSize-e043784f.js} +0 -0
- /package/build/{utils-ef99dc6d.js → utils-77701b45.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,e as n,_ as t,b as o,c as i}from"./tslib.es6-33285504.js";import a,{useState as r,useCallback as c,useMemo as l,useEffect as s,useRef as u,useReducer as d}from"react";import{I as p,L as h}from"./constants-626b4841.js";import{b as g,d as m}from"./index-09386d94.js";import{g as f,s as C,d as v}from"./cookieHelper-fdb513d9.js";import{u as E}from"./useTranslations-4b9465a3.js";import x from"lodash/debounce";import{I as y}from"./index-ffb0d6ff.js";import b,{createGlobalStyle as w}from"styled-components";import{T as L}from"./index-933da36a.js";import{t as S}from"./theme-29327177.js";import k from"react-loading-skeleton";import{M as T}from"./utils-bf11a3c9.js";import A from"lodash/shuffle";import{u as R}from"./useOutsideClick-8516881b.js";import I from"string-format";var M,_,P,N,V,H,F,z,D,B,O,G,K=b.div(M||(M=e([""],[""]))),Z=b.div(_||(_=e(["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"],["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"]))),j=b.section(P||(P=e([""],[""]))),U=b.input(N||(N=e(["\n position: fixed;\n left: -100%;\n top: -100%;\n"],["\n position: fixed;\n left: -100%;\n top: -100%;\n"]))),Q=b(y)(V||(V=e(["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"],["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"]))),Y=w(H||(H=e(["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"],["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"]))),q=function(e){var n=e.className,t=e.color;return a.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},W=function(e){var n=e.className,t=e.color;return a.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:n},a.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"}))},X=function(e){var n=e.className,t=e.color;return a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:n},a.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:t||"currentColor"}))},J=function(e){var n=e.className,t=e.color;return a.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},$=function(e){var n=e.width,t=e.height;return a.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}))},ee=b.li(F||(F=e(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"])),S.colors.neutral100),ne=b.div(z||(z=e(["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\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 border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"],["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\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 border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"])),T.mbDown),te=b.ul(D||(D=e(["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"],["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"]))),oe=b(W)(B||(B=e(["\n width: 12px;\n height: 18px;\n"],["\n width: 12px;\n height: 18px;\n"]))),ie=b.li(O||(O=e(["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"],["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"])),(function(e){return e.isSelected&&"\n &::after {\n content: ".concat("url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\")",";\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n ")}),S.colors.neutral100,S.colors.neutral50),ae=b((function(e){var t=e.count,o=e.className;return a.createElement(a.Fragment,null,n([],Array(t),!0).map((function(e,n){return a.createElement(ee,{className:o,key:n},a.createElement(k,{count:1,height:32}),a.createElement(k,{count:1,height:24}))})))}))(G||(G=e(["\n &:first-child {\n padding-top: 18px;\n }\n"],["\n &:first-child {\n padding-top: 18px;\n }\n"]))),re=function(e){var n=e.cities,t=e.isLoading,o=e.onLocationClick,i=e.onCurrentLocationClick,r=e.geoLocationPermission,c=void 0===r?"unset":r,l=e.isLocationLoading,s=e.selectedLocation,u=E().t,d="denied"===c,p=function(){return a.createElement(ie,{role:"button",tabIndex:0,onClick:function(e){d||(e.nativeEvent.stopImmediatePropagation(),l||i())},"data-is-denied":d},d?a.createElement(L,{color:"var(--gray600)",size:"md"},"x"):l?a.createElement(k,{height:20,width:20}):a.createElement(X,{color:S.colors.primaryBase}),a.createElement("div",null,d?a.createElement(L,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},u("booking.searchBar.grantLocation")):l?a.createElement(k,{height:20,style:{width:"calc(100% - 16px)"}}):a.createElement(L,{size:"md"},u("booking.searchBar.useCurrentLocation"))))};return a.createElement(ne,{"data-testid":"location-search-results"},a.createElement(te,null,t?a.createElement(ae,{count:5}):!n||n.length<1?a.createElement(a.Fragment,null,p(),a.createElement(ie,{"data-is-denied":"true"},a.createElement(L,{size:"sm",color:"#ccc"},u("booking.searchBar.noResults")))):a.createElement(a.Fragment,null,p(),n.map((function(e){return a.createElement(ie,{key:e.id,onClick:function(n){n.nativeEvent.stopImmediatePropagation(),o&&o(e)},role:"button",tabIndex:0,"aria-label":"Select ".concat(e.name," as location"),isSelected:(null==s?void 0:s.id)===e.id},a.createElement(oe,{color:S.colors.neutral400}),a.createElement(L,{size:"md"},e.name))})))))},ce={TYPE_CHARACTER:"TYPE_CHARACTER",REMOVE_CHARACTER:"REMOVE_CHARACTER",REMOVE_ALL:"REMOVE_ALL",REMOVE_LAST_VISIBLE_NODE:"REMOVE_LAST_VISIBLE_NODE",PAUSE_FOR:"PAUSE_FOR",CHANGE_DELETE_SPEED:"CHANGE_DELETE_SPEED",CHANGE_DELAY:"CHANGE_DELAY",PASTE_STRING:"PASTE_STRING"},le=function(e,n){return Math.floor(Math.random()*(n-e+1))+e},se={TEXT_NODE:"TEXT_NODE"},ue=function(){function e(e){var o=this;this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=function(){return o.state.eventLoopPaused=!1,o.runEventLoop(),o},this.pause=function(){return o.state.eventLoopPaused=!0,o},this.stop=function(){return o.state.eventLoop&&(window.cancelAnimationFrame(o.state.eventLoop),o.state.eventLoop=null),o},this.pauseFor=function(e){return o.addEventToQueue(ce.PAUSE_FOR,{ms:e}),o},this.typeOutAllStrings=function(){return"string"==typeof o.options.strings?(o.typeString(o.options.strings).pauseFor(o.options.pauseFor),o):(o.options.strings.forEach((function(e){o.typeString(e).pauseFor(o.options.pauseFor).deleteAll(o.options.deleteSpeed)})),o)},this.typeString=function(e,n){if(void 0===n&&(n=null),e){var t=(o.options||{}).stringSplitter,i="function"==typeof t?t(e):e.split("");o.typeCharacters(i,n)}return o},this.pasteString=function(e,n){return void 0===n&&(n=null),e&&o.addEventToQueue(ce.PASTE_STRING,{character:e,node:n}),o},this.deleteAll=function(e){return void 0===e&&(e="natural"),o.addEventToQueue(ce.REMOVE_ALL,{speed:e}),o},this.changeDeleteSpeed=function(e){if(!e)throw new Error("Must provide new delete speed");return o.addEventToQueue(ce.CHANGE_DELETE_SPEED,{speed:e}),o},this.changeDelay=function(e){if(!e)throw new Error("Must provide new delay");return o.addEventToQueue(ce.CHANGE_DELAY,{delay:e}),o},this.deleteChars=function(e){if(!e)throw new Error("Must provide amount of characters to delete");for(var n=0;n<e;n++)o.addEventToQueue(ce.REMOVE_CHARACTER);return o},this.typeCharacters=function(e,n){if(void 0===n&&(n=null),!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(e){o.addEventToQueue(ce.TYPE_CHARACTER,{character:e,node:n})})),o},this.removeCharacters=function(e){if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(){o.addEventToQueue(ce.REMOVE_CHARACTER)})),o},this.addEventToQueue=function(e,n,t){return void 0===t&&(t=!1),o.addEventToStateProperty(e,n,t,"eventQueue")},this.addReverseCalledEvent=function(e,n,t){return void 0===t&&(t=!1),o.options.loop?o.addEventToStateProperty(e,n,t,"reverseCalledEvents"):o},this.addEventToStateProperty=function(e,t,i,a){void 0===i&&(i=!1);var r={eventName:e,eventArgs:t||{}};return o.state[a]=i?n([r],o.state[a],!0):n(n([],o.state[a],!0),[r],!1),o},this.runEventLoop=function(){o.state.lastFrameTime||(o.state.lastFrameTime=Date.now());var e=Date.now(),i=e-o.state.lastFrameTime;if(!o.state.eventQueue.length){if(!o.options.loop)return;o.state.eventQueue=n([],o.state.calledEvents,!0),o.state.calledEvents=[],o.options=t({},o.state.initialOptions)}if(o.state.eventLoop=window.requestAnimationFrame(o.runEventLoop),!o.state.eventLoopPaused){if(o.state.pauseUntil){if(e<o.state.pauseUntil)return;o.state.pauseUntil=null}var a=n([],o.state.eventQueue,!0),r=a.shift();if(!(i<=(r.eventName===ce.REMOVE_LAST_VISIBLE_NODE||r.eventName===ce.REMOVE_CHARACTER?"natural"===o.options.deleteSpeed?le(40,80):o.options.deleteSpeed:"natural"===o.options.delay?le(120,160):o.options.delay))){var c=r.eventName,l=r.eventArgs;switch(c){case ce.PASTE_STRING:case ce.TYPE_CHARACTER:var s=l.character,u=document.createTextNode(s),d=u;o.options.onCreateTextNode&&"function"==typeof o.options.onCreateTextNode&&(d=o.options.onCreateTextNode(s,u)),o.state.visibleNodes=n(n([],o.state.visibleNodes,!0),[{type:se.TEXT_NODE,character:s,node:d}],!1);break;case ce.REMOVE_CHARACTER:a.unshift({eventName:ce.REMOVE_LAST_VISIBLE_NODE,eventArgs:{removingCharacterNode:!0}});break;case ce.PAUSE_FOR:var p=r.eventArgs.ms;o.state.pauseUntil=Date.now()+parseInt(p);break;case ce.REMOVE_ALL:var h=o.state.visibleNodes,g=l.speed,m=[];g&&m.push({eventName:ce.CHANGE_DELETE_SPEED,eventArgs:{speed:g,temp:!0}});for(var f=0,C=h.length;f<C;f++)m.push({eventName:ce.REMOVE_LAST_VISIBLE_NODE,eventArgs:{removingCharacterNode:!1}});g&&m.push({eventName:ce.CHANGE_DELETE_SPEED,eventArgs:{speed:o.options.deleteSpeed,temp:!0}}),a.unshift.apply(a,m);break;case ce.REMOVE_LAST_VISIBLE_NODE:if(o.state.visibleNodes.length){var v=o.state.visibleNodes.pop(),E=v.node;s=v.character;o.options.onRemoveNode&&"function"==typeof o.options.onRemoveNode&&o.options.onRemoveNode({node:E,character:s}),E&&E.parentNode.removeChild(E)}break;case ce.CHANGE_DELETE_SPEED:o.options.deleteSpeed=r.eventArgs.speed;break;case ce.CHANGE_DELAY:o.options.delay=r.eventArgs.delay}o.options.loop&&(r.eventName===ce.REMOVE_LAST_VISIBLE_NODE||r.eventArgs&&r.eventArgs.temp||(o.state.calledEvents=n(n([],o.state.calledEvents,!0),[r],!1))),o.state.eventQueue=a,o.state.lastFrameTime=e}}},e&&(this.options=t(t({},this.options),e)),this.state.initialOptions=t({},this.options),this.init()}return e.prototype.init=function(){this.addEventToQueue(ce.REMOVE_ALL,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()},e}();function de(e){var n=e.inputRef,t=e.wrapperRef,o=e.disabled,i=E(),a=i.t,r=i.locale,c=l((function(){if(o)return[];var e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==r&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),A(e).map((function(e){return a(e)}))}),[a,r]);function u(e){var n=p();return n&&(n.placeholder=n.placeholder+e),null}function d(){var e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return n&&n.current?n.current:t&&t.current&&t.current.querySelector("input")||null}s((function(){if(!o){var e=p();e&&(e.placeholder="",new ue({strings:c,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:u,onRemoveNode:d}))}}),[n,t])}var pe,he=b.div(pe||(pe=e(["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"],["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"])));function ge(e){var n=e.focused,o=e.value,i=void 0===o?"":o,r=e.onClick,c=e.trackingAttributes,s=e.inputSearchPlaceholder,d=E().t,p=u(null);de({wrapperRef:p,disabled:!!s});var h=l((function(){return c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}}),[c]);return a.createElement(he,t({onClick:function(){return r&&r()},ref:p},h),a.createElement(Q,{inputClassName:"location"===n?"focused":void 0,name:"booking-search-placeholder",displayIcon:a.createElement(J,{color:S.colors.gray400}),placeholder:d("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}var me,fe,Ce,ve,Ee,xe,ye=b.header(me||(me=e(["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"],["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"]))),be=b.div(fe||(fe=e(["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"],["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"]))),we=b.div(Ce||(Ce=e(["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"]))),Le=b.div(ve||(ve=e(["\n width: 100%;\n margin-left: 24px;\n"],["\n width: 100%;\n margin-left: 24px;\n"]))),Se=b(L)(Ee||(Ee=e(["\n color: ",";\n text-align: start;\n"],["\n color: ",";\n text-align: start;\n"])),S.colors.secondaryDark),ke=function(e){var n=e.className,t=e.onLeftClick,o=e.headingText,i=e.onRightClick,r=e.iconLeft,c=e.textRight;return a.createElement(ye,{className:n},a.createElement(we,{onClick:t},r||a.createElement(q,{color:S.colors.gray800})),a.createElement(Le,null,a.createElement(Se,{size:"md",type:"bold"},o)),a.createElement(be,{onClick:i},c&&a.createElement("p",null,c)))},Te={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0},Ae={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};function Re(e){var n=e.selectedLocation,o=e.searchLocationKeywords;return n&&o!==n.name?t(t({},e),{searchLocationKeywords:n.name}):e}function Ie(e,n){var o;switch(e.isDebug&&console.log("bookingSearchBar",{action:n,state:e}),n.type){case xe.NavigateTo:return t(t({},e),{navigateTo:n.payload,focused:"none",isMobileModalOpened:!1});case xe.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:Re(t(t({},e),{focused:"none"}));case xe.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:t(t({},e),{focused:"none"});case xe.FocusInputLocation:var i=t(t({},e),{focused:"location"});return(null===(o=e.selectedLocation)||void 0===o?void 0:o.id)===p&&(i.searchLocationKeywords=""),i;case xe.FocusInputSearch:var a=t(t({},e),{focused:"search"});return e.isMobile?Re(a):a;case xe.ChangeInputLocation:return t(t({},e),{searchLocationKeywords:n.payload});case xe.ChangeInputSearch:var r=n.payload;return t(t({},e),{searchKeywords:r,isLoadingSearchResults:r.trim().length>Te[e.locale]});case xe.SelectCurrentLocation:return t(t({},e),{focused:"none",selectedLocation:n.payload,searchLocationKeywords:n.payload.name});case xe.ClearInputLocation:return t(t({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case xe.ClearInputSearch:return t(t({},e),{focused:"search",searchKeywords:""});case xe.SelectLocation:return t(t({},e),{focused:"none",selectedLocation:n.payload,searchLocationKeywords:n.payload.name});case xe.SelectSearchResult:return t(t({},e),{searchKeywords:n.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:n.payload.url});case xe.FetchCitiesStart:return t(t({},e),{isLoadingCities:!0});case xe.FetchCitiesFinish:return t(t({},e),{isLoadingCities:!1});case xe.FetchSearchResultsStart:return t(t({},e),{isLoadingSearchResults:!0});case xe.FetchSearchResultsFinish:return t(t({},e),{isLoadingSearchResults:!1});case xe.FetchSearchResultsComplete:var c=t(t({},e),{searchResults:n.payload});return 0===e.initialSearchResults.length&&(c.initialSearchResults=n.payload),c;case xe.FetchCitiesByGeoIpComplete:var l=n.payload.cities,s=n.payload.default;(l=l.filter((function(e){return e.id!==s.id}))).unshift(s),e.initialSelectedCity&&!l.find((function(n){return n.id===e.initialSelectedCity.id}))&&l.unshift(e.initialSelectedCity);var u=t(t({},e),{defaultCity:s,initialCities:l,cities:l});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(u.selectedLocation=s,u.searchLocationKeywords=s.name),u;case xe.FetchCitiesByKeywordComplete:return t(t({},e),{cities:n.payload});case xe.DisplayInitialCities:return t(t({},e),{cities:e.initialCities});case xe.DisplayInitialSearchResults:return t(t({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case xe.GrantGeoLocationPermission:return t(t({},e),{geoLocationPermission:"granted",geoLocationCoordinates:n.payload});case xe.DenyGeoLocationPermission:return t(t({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case xe.OpenMobileModal:return t(t({},e),{isMobileModalOpened:!0});case xe.CloseMobileModal:return t(t({},e),{isMobileModalOpened:!1});case xe.UpdateInitialSearchValue:return t(t({},e),{searchKeywords:n.payload});case xe.SetInputSearchPlaceholder:return t(t({},e),{inputSearchPlaceholder:n.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(xe||(xe={}));var Me,_e,Pe,Ne,Ve,He,Fe,ze=function(){return a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"}))},De=b.button(Me||(Me=e(["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"],["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"])),(function(e){return e.theme.colors.primaryBase}),T.mbDown,(function(e){return e.theme.colors.primaryHover}),(function(e){return e.theme.colors.primaryActive})),Be=b(L)(_e||(_e=e(["\n font-weight: ",";\n"],["\n font-weight: ",";\n"])),(function(e){return e.theme.sizes.fwSemiBold})),Oe=function(e){var n=e.onClick,t=(0,E().t)("booking.searchBar.searchButton");return a.createElement(De,{onClick:n,title:t},a.createElement(ze,null),a.createElement(Be,{size:"s3",color:"white"},t))},Ge=b.div(Pe||(Pe=e(["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"],["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"])),T.mbDown,S.colors.blue50),Ke=b.div(Ne||(Ne=e(["\n position: relative;\n"],["\n position: relative;\n"]))),Ze=b(Ke)(Ve||(Ve=e(["\n flex: 1;\n"],["\n flex: 1;\n"]))),je=b(Ke)(He||(He=e(["\n flex: 2;\n"],["\n flex: 2;\n"]))),Ue=b((function(e){var n=e.className,t=e.color;return a.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:t||"currentColor"}))}))(Fe||(Fe=e(["\n display: none;\n &.shown {\n display: block;\n }\n"],["\n display: none;\n &.shown {\n display: block;\n }\n"])));function Qe(e){var n=e.isMobile,t=e.state,o=e.dispatch,i=e.debouncedFetchCitiesByKeyword,r=e.debouncedFetchSearchResults,s=e.focusLocationInput,d=e.focusSearchInput,h=e.renderLocationResults,g=e.renderSearchResults,m=e.locationTrackingAttributes,f=e.trackingAttributes,C=e.onSearch,v=e.initalSearchValue,x=u(null),y=u(null),b=t.focused,w=t.searchLocationKeywords,L=t.geoLocationPermission,k=t.selectedLocation,T=t.searchKeywords,A=t.inputSearchPlaceholder,I=E().t;de({wrapperRef:y,disabled:!!A}),R(x,(function(){o({type:xe.ClickOutsideInputLocation})})),R(y,(function(){o({type:xe.ClickOutsideInputSearch})}));var M=l((function(){return"granted"===L&&(null==k?void 0:k.id)===p?S.colors.primaryBase:S.colors.gray400}),[L,k]),_=c((function(e){o({type:xe.ChangeInputSearch,payload:e}),"function"!=typeof C&&(e.trim().length>Te[t.locale]||v?r(e.trim(),t):(r.cancel(),o({type:xe.DisplayInitialSearchResults})))}),[o,t]),P=c((function(e){o({type:xe.ChangeInputLocation,payload:e}),e.trim().length>Te[t.locale]?i(e.trim()):(i.cancel(),o({type:xe.DisplayInitialCities}))}),[i,o]);return a.createElement(Ge,null,a.createElement(Ze,{ref:x},a.createElement(Q,{inputClassName:"location"===b?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:a.createElement(W,{className:"location-pin-icon",color:M}),actionIcon:a.createElement(Ue,{color:S.colors.gray300,className:""!==w?"shown":""}),onActionClick:function(){o({type:xe.ClearInputLocation}),i.cancel(),s()},value:w,onChange:P,onFocus:function(){return o({type:xe.FocusInputLocation})},size:"md",trackingAttributes:m}),!n&&h()),a.createElement(je,{ref:y},a.createElement(Q,{placeholder:A||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:a.createElement(Ue,{color:S.colors.gray300,className:""!==T?"shown":""}),onActionClick:function(){o({type:xe.ClearInputSearch}),r.cancel(),r("",t),d()},value:T,onChange:_,onFocus:function(){return o({type:xe.FocusInputSearch})},inputClassName:"search"===b?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:function(e){t.autoCompleteDisabled&&"Enter"===e.key&&C&&C({cityId:t.selectedLocation.id,keyword:T})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!n&&g()),t.autoCompleteDisabled&&!t.isMobile&&a.createElement(Oe,{onClick:function(){C({cityId:t.selectedLocation.id,keyword:T})}}))}var Ye,qe,We,Xe,Je,$e,en,nn,tn,on,an,rn,cn,ln,sn=b.li(Ye||(Ye=e(["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"]))),un=b.div(qe||(qe=e(["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"],["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"])),(function(e){var n=e.type;return n&&"doctors"===n&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}),(function(e){var n=e.type;return n&&"doctors"===n?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}),S.colors.gray600),dn=b(L)(We||(We=e(["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"],["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"])),T.tdUp),pn=b.figure(Xe||(Xe=e(["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"],["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"]))),hn=b.svg(Je||(Je=e(["\n margin: 0 auto;\n display: block;\n"],["\n margin: 0 auto;\n display: block;\n"]))),gn=b.div($e||($e=e(["\n display: grid;\n place-items: center;\n"],["\n display: grid;\n place-items: center;\n"]))),mn={doctors:function(e){var n=e.width,t=e.height;return a.createElement("svg",{width:n||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{clipPath:"url(#clip0_14712_400114)"},a.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),a.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_14712_400114"},a.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"}))))},services:function(e){var n=e.width,t=e.height;return a.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),a.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))}},fn=function(e){var n=e.type,t=e.item,o=e.imageUrl,i=e.onClickItem,r=l((function(){var e=mn[n]||$;return a.createElement(e,{width:32,height:"services"===n?32:24})}),[n]);return a.createElement(sn,{onClick:function(){return i&&i(t)},onKeyDown:function(e){"Enter"!==e.key&&"Space"!==e.key||i&&i(t)},tabIndex:0,role:"button"},a.createElement(pn,null,"hospitals"===n?a.createElement(hn,{width:"12",height:"16",viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):a.createElement(un,{type:n},o?a.createElement("img",{src:o,width:32,height:"services"===n?32:24}):r)),a.createElement(dn,{color:S.colors.gray800,size:"p3"},t.name))},Cn=function(){return a.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},a.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"}))},vn=function(){return a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},a.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"}))},En=function(){return a.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},a.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"}))},xn=function(){return a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},a.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"}))},yn=b.header(en||(en=e(["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"],["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"])),S.colors.neutral50),bn=b.div(nn||(nn=e(["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"],["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"]))),wn=b.p(tn||(tn=e(["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"],["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"])),S.colors.neutral800,S.sizes.fwSemiBold),Ln=b.button(on||(on=e(["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"],["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"]))),Sn=b.section(an||(an=e(["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"],["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"])),T.tdUp),kn=b.ul(rn||(rn=e(["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"],["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"])),T.tdUp,(function(e){return e.isMore&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}),(function(e){return e.isShown&&"\n max-height: 600px;\n "}),T.tdUp),Tn=b(L)(cn||(cn=e(["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"],["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"]))),An=function(e){var n=e.type,t=e.data,o=e.state,i=e.dispatch,c=e.itemsToShow,s=e.itemsToShowDesktop,u=e.isMobile,d=e.isLoading,p=e.keyword,g=r(!1),m=g[0],f=g[1],C=E(),v=C.t,x=C.locale,y=o.selectedLocation,b=o.searchKeywords,w=l((function(){return h[x]}),[x]),T=l((function(){return{doctors:{name:v("booking.searchPopup.doctors"),icon:a.createElement(Cn,null),slug:w.DOCTOR},services:{name:v("booking.searchPopup.services"),icon:a.createElement(vn,null),slug:w.SERVICE},hospitals:{name:v("booking.searchPopup.hospitals"),icon:a.createElement(En,null),slug:w.HOSPITAL},specialties:{name:v("booking.searchPopup.specialties"),icon:a.createElement(xn,null),slug:w.SPECIALTIES}}}),[n,w]),A=l((function(){return T[n].slug}),[T]),R=u?c:s;function I(e){var t="";switch(n){case"specialties":t="/".concat(y.slug,"/").concat(T.doctors.slug,"/").concat(e.slug);break;case"services":t="/".concat(y.slug,"/").concat(A,"/").concat(e.slug);break;case"doctors":case"hospitals":t="/".concat(A,"/").concat(e.slug,"-").concat(e.id)}t&&i({type:xe.SelectSearchResult,payload:{name:e.name,url:t}})}function M(e){return a.createElement(fn,{key:e.id,item:e,type:n,imageUrl:e.logo||e.avatar||e.thumbnail,onClickItem:I})}return a.createElement("section",null,a.createElement(yn,null,a.createElement(bn,null,T[n].icon,a.createElement(wn,null,T[n].name)),p.trim().length<=Te[x]&&a.createElement(Ln,{onClick:function(){var e="";switch(n){case"specialties":e="/".concat(A);break;case"services":case"doctors":case"hospitals":e="/".concat(y.slug,"/").concat(A)}e&&i({type:xe.NavigateTo,payload:e})}},a.createElement(L,{size:"p3",color:S.colors.primaryBase},v("booking.searchPopup.seeAll")))),(d||t&&t.length>0)&&a.createElement(Sn,null,a.createElement(kn,null,d&&Array(2).fill(void 0).map((function(e,t){return a.createElement(sn,{key:n+"loading"+t},a.createElement(pn,null,a.createElement(gn,null,a.createElement(k,{height:14,width:"hospitals"===n?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),a.createElement(k,{width:120,height:24}))})),!d&&t&&t.length>0&&t.slice(0,R).map(M)),a.createElement(kn,{isShown:m,isMore:!0},t.slice(R,-1).map(M)),"specialties"===n&&R<t.length&&!d&&a.createElement("button",{onClick:function(){return f(!m)}},a.createElement(Tn,{size:"p3",color:S.colors.primaryBase},v(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==n&&R<t.length&&!d&&p.trim().length>Te[x]&&a.createElement("button",{onClick:function(){var e=T[n].slug,t="/".concat(y.slug,"/").concat(e,"?q=").concat(b);i({type:xe.NavigateTo,payload:t})}},a.createElement(Tn,{size:"p3",color:S.colors.primaryBase},v("booking.searchPopup.searchIn.".concat(n),{name:p})))),!d&&0===(null==t?void 0:t.length)&&a.createElement(Sn,null,a.createElement(L,{size:"sm",color:S.colors.gray400},v("booking.searchBar.noResults"))))},Rn=b.section(ln||(ln=e(["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\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"],["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\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"])),T.tdUp),In=function(e){var n=e.data,t=e.state,o=e.dispatch,i=e.isMobile,r=e.isLoading,c=e.keyword;return a.createElement(Rn,null,n&&n.map((function(e){return a.createElement(An,{type:e.type,state:t,dispatch:o,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:r,keyword:c})})))},Mn={GET_CITIES_LIST:"api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",GET_CITY:"api/lists/cities?ids={ids}&site={domain}&longitude={longitude}&latitude={latitude}",GET_HOME_SEARCH:"api/search/?_home=1&city_id={city}&keyword={keyword}&site={domain}&latitude={lat}&longitude={lng}",GET_SEARCH_V2:"api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",GET_CITY_BY_IP:"api/geobyip?site={domain}&latitude={lat}&longitude={lng}"},_n=function(e,n,o){return I(e,t(t({},n),{domain:m[o||"en-PH"]}))};var Pn,Nn=function(e){var n=e.isMobile,m=e.careApiDomain,y=e.geoLocationPermission,b=e.geoLocationCoordinates,w=e.initialSelectedCity,L=e.initialSearchValue,S=void 0===L?"":L,k=e.careFrontDomain,T=void 0===k?"/care":k,A=e.isDebug,R=void 0!==A&&A,I=e.askForGeolocationPermission,M=void 0!==I&&I,_=e.gaTrackingSearchBar,P=e.gaTrackingLocationSearch,N=e.autoCompleteDisabled,V=void 0!==N&&N,H=e.inputSearchPlaceholder,F=void 0===H?"":H,z=e.routerPush,D=e.onGeoLocationPermissionChange,B=e.onSearch,O=e.onChangeLocation,G=E(),Q=G.t,q=G.locale,W=u(null),X=u(null),J=r(void 0),$=J[0],ee=J[1],ne=function(){var e=r((function(){if("undefined"==typeof window)return"unset";if(f(g))return"granted";var e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),n=e[0],t=e[1],o=r((function(){if("undefined"==typeof window)return null;var e=f(g);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),i=o[0],a=o[1],s=c((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var n={lat:"".concat(Math.round(1e7*e.coords.latitude)/1e7),lng:"".concat(Math.round(1e7*e.coords.longitude)/1e7)};C(g,JSON.stringify(n),{minutes:15}),a(n),t("granted")}),(function(){v(g),t("denied")}))}),[]);return l((function(){return{geoLocationPermission:n,geoLocationCoordinates:i,requestGeoLocation:s}}),[n,i])}(),te=ne.geoLocationPermission,oe=ne.geoLocationCoordinates,ie=ne.requestGeoLocation,ae=d(Ie,Ae,(function(e){return t(t({},e),{isDebug:R,isMobile:n,geoLocationPermission:y||te||"unset",geoLocationCoordinates:b||oe||null,searchKeywords:S,initialSelectedCity:w||null,selectedLocation:w||e.selectedLocation||null,searchLocationKeywords:(null==w?void 0:w.name)||e.searchLocationKeywords,autoCompleteDisabled:V,inputSearchPlaceholder:F,locale:q})})),ce=ae[0],le=ae[1],se=ce.navigateTo,ue=ce.focused,de=ce.isLoadingCities,pe=ce.cities,he=ce.searchKeywords,me=ce.geoLocationPermission,fe=ce.selectedLocation,Ce=ce.initialSelectedCity,ve=ce.defaultCity,Ee=ce.searchResults,ye=ce.isLoadingSearchResults,be=ce.isMobileModalOpened,we=ce.inputSearchPlaceholder,Le=function(e){var n=e.dispatch,o=e.careApiDomain,i=e.locale,a=void 0===i?"vi-VN":i,r=c((function(e,t){void 0===t&&(t={});var i="".concat(o).concat(e);return n({type:xe.FetchCitiesStart}),fetch(_n(i,t,a),{method:"GET"}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e))})).finally((function(){return n({type:xe.FetchCitiesFinish})}))}),[a]),l=c((function(e){var o=e.coordinates,i={};o&&(i={lat:o.lat,lng:o.lng});var c=[r(Mn.GET_CITY_BY_IP,i)];return"zh-TW"===a&&c.push(r(Mn.GET_CITIES_LIST,{noPaging:1})),Promise.all(c).then((function(e){var o=e[0],i=e[1],a=t({},o);if(i){var r=a.cities.map((function(e){return e.id}));a.cities=a.cities.concat(i.cities.filter((function(e){return!r.includes(e.id)})))}n({type:xe.FetchCitiesByGeoIpComplete,payload:a})})).catch((function(e){return console.error("error loading cities by location",e)}))}),[a,o,n]);return{fetchCitiesByLocation:l,fetchCitiesByKeyword:c((function(e){return r(Mn.GET_CITIES_LIST,{keyword:e}).then((function(e){n({type:xe.FetchCitiesByKeywordComplete,payload:e.cities})})).catch((function(e){return console.error("error loading cities by keyword",e)}))}),[a,o,n]),fetchSearchResults:c((function(e,t){var i="".concat(o).concat(Mn.GET_SEARCH_V2);n({type:xe.FetchSearchResultsStart});var r=t.defaultCity,c=t.selectedLocation,l=t.geoLocationCoordinates,s="";if(c&&r){c.id===p?l||(s=r.id):s=c.id;var u=(null==l?void 0:l.lat)||"",d=(null==l?void 0:l.lng)||"";return fetch(_n(i,{domain:o,searchType:"global",keyword:e.trim().length>Te[a]?e.trim():"",city:s===p?"":s,lat:u,lng:d},a),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e)})).then((function(e){return n({type:xe.FetchSearchResultsComplete,payload:e})})).catch((function(e){console.log("error loading search results",{url:i,error:e})})).finally((function(){return n({type:xe.FetchSearchResultsFinish})}))}n({type:xe.FetchSearchResultsFinish})}),[a,o,n])}}({dispatch:le,locale:q,careApiDomain:m}),Se=Le.fetchCitiesByLocation,Re=Le.fetchCitiesByKeyword,Me=Le.fetchSearchResults,_e=l((function(){var e;return{id:p,name:Q("booking.searchBar.currentLocation"),slug:null===(e=h[q])||void 0===e?void 0:e.CURRENT}}),[Q,q]),Pe=l((function(){return x(Re,400)}),[Re]),Ne=l((function(){return x(Me,400)}),[Me]);s((function(){""!==S&&S!==ce.searchKeywords&&le({type:xe.UpdateInitialSearchValue,payload:S})}),[S]),s((function(){M&&(null==fe?void 0:fe.id)===p&&"unset"===me&&ie()}),[M,fe,me]),s((function(){y||me===te||("granted"===te&&oe?le({type:xe.GrantGeoLocationPermission,payload:oe}):"denied"===te&&le({type:xe.DenyGeoLocationPermission}))}),[me,te,oe,y]),s((function(){se&&(z?z(se):window.location.href="".concat(T).concat(se))}),[se]);var Ve=c((function(){le({type:xe.SelectCurrentLocation,payload:_e})}),[Q,le]);s((function(){"denied"===me||Ce||Ve(),D&&D(me,ce.geoLocationCoordinates),n&&"granted"===me&&fe&&le({type:xe.FocusInputSearch}),Se({coordinates:ce.geoLocationCoordinates})}),[me]),s((function(){fe&&ve&&Me(ce.searchKeywords,ce)}),[fe,ve]),s((function(){F!==we&&le({type:xe.SetInputSearchPlaceholder,payload:F})}),[F,we]),s((function(){be?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[be]);var He=c((function(e){le({type:xe.SelectLocation,payload:e}),De(),O&&O(e)}),[Q,le]);function Fe(){n&&"granted"!==ce.geoLocationPermission?ie():(Ve(),De())}function ze(){var e;W.current&&(null===(e=W.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function De(){var e;W.current&&(null===(e=W.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Be(){le({type:xe.CloseMobileModal})}function Ge(){return"location"!==ue?null:a.createElement(re,{isLoading:de,cities:pe,onLocationClick:He,onCurrentLocationClick:Fe,isLocationLoading:de,geoLocationPermission:me,selectedLocation:fe})}function Ke(){return"search"!==ue?null:ce.autoCompleteDisabled?n?a.createElement(Oe,{onClick:function(){B({cityId:ce.selectedLocation.id,keyword:he}),Be()}}):null:a.createElement(In,{data:Ee,state:ce,dispatch:le,isMobile:!1,keyword:he,isLoading:ye})}function Ze(){return a.createElement(Qe,{isMobile:n,state:ce,dispatch:le,debouncedFetchCitiesByKeyword:Pe,debouncedFetchSearchResults:Ne,focusLocationInput:ze,focusSearchInput:De,renderLocationResults:Ge,renderSearchResults:Ke,trackingAttributes:_,locationTrackingAttributes:P,onSearch:B,initalSearchValue:S})}return s((function(){if(window.visualViewport){var e=function(e){var n=e.target;ee(null==n?void 0:n.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),function(){window.visualViewport.removeEventListener("resize",e)}}}),[ee]),n?a.createElement(a.Fragment,null,a.createElement(Y,null),a.createElement(U,{ref:X}),a.createElement(Z,{id:"booking-search-bar",ref:W,"data-is-modal":n&&be,style:{"--mobile-care-searchbar-height":be&&$?"".concat($,"px"):"100%"}},be?a.createElement(a.Fragment,null,a.createElement(j,null,a.createElement(ke,{headingText:Q("booking.searchBar.searchButton"),onLeftClick:Be}),Ze()),Ge(),Ke()):a.createElement(ge,{onClick:function(){var e;return o(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return X.current&&X.current.focus(),le({type:xe.OpenMobileModal}),[4,Promise.resolve()];case 1:return n.sent(),W.current&&(null===(e=W.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus()),[2]}}))}))},focused:ue,value:he,trackingAttributes:_,inputSearchPlaceholder:F}))):a.createElement(K,{id:"booking-search-bar",ref:W},Ze())};!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Pn||(Pn={}));var Vn=Object.freeze({__proto__:null,get RedirectType(){return Pn}});export{Nn as B,Vn as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as t,c as r}from"./tslib.es6-33285504.js";import{useState as n,useEffect as o,useCallback as a}from"react";import{a as e}from"./getDynamicHealthTool-e84e4aaf.js";var i=function(i){var l=n([]),s=l[0],u=l[1];o((function(){t(void 0,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,e(i)];case 1:return t=r.sent(),u(t),[2]}}))}))}),[e,i]);var c=a((function(t){var r;return(null===(r=s.find((function(r){return r.template===t})))||void 0===r?void 0:r.link)||""}),[s]);return{allTools:s,getHealthToolLink:c}};export{i as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-9ca973bc.js"),e=require("./routing-8c09e877.js"),n=require("./core-953f48d7.js"),r=function(t,e){var n,r;if(!t)return{};var i="tl-PH"===e?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(n=t.link)||void 0===n?void 0:n.startsWith("http"))?t.link:"".concat(i,"/health-tools")+(null===(r=t.link)||void 0===r?void 0:r.replace("".concat(i,"/"),"/")),subtitle:t.subtitle,title:t.title}},i=function(n){return t.__awaiter(void 0,void 0,void 0,(function(){var i,o,a,l,u,c,s;return t.__generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,8,,9]),"undefined"==typeof window?[3,1]:(i=window.fetch,[3,3]);case 1:return[4,require("node-fetch")];case 2:i=t.sent(),t.label=3;case 3:o="tl-PH"===n?"lang=fil":"",a=[],t.label=4;case 4:return t.trys.push([4,6,,7]),[4,i("".concat(e.getDiscoverApiDomain(n),"/wp-json/api/healthtools?ismenu=0").concat(o?"&"+o:"")).then((function(t){return t.json()}))];case 5:return l=t.sent(),a=(null===(s=null===(c=null==l?void 0:l.data)||void 0===c?void 0:c.map)||void 0===s?void 0:s.call(c,(function(t){return r(t,n)})))||[],[3,7];case 6:return t.sent(),[3,7];case 7:return[2,a];case 8:return u=t.sent(),console.error(u),[3,9];case 9:return[2]}}))}))};exports.formatHealthTool=r,exports.getDynamicHealthTool=i,exports.getDynamicHealthToolWithCache=function(e){return t.__awaiter(void 0,void 0,void 0,(function(){return t.__generator(this,(function(t){switch(t.label){case 0:return[4,n.getDataWithCache("all-health-tools",(function(){return i(e||"en-PH")}),(function(t){return!!(null==t?void 0:t.length)}),6e4)];case 1:return[2,t.sent()||[]]}}))}))};
|
package/build/index-04157b04.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var n=require("./tslib.es6-9ca973bc.js"),e=require("react"),t=require("./index-6b8c2388.js"),i=require("./utils-ef99dc6d.js"),a=require("styled-components");function o(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var r=o(e),s=o(a),l=s.default.div(p||(p=n.__makeTemplateObject(["\n position: relative;\n width: 100%;\n\n &[data-has-error] {\n input {\n border-color: ",";\n }\n }\n\n input {\n width: 100%;\n padding: 12px 16px;\n border: solid 1px ",";\n border-radius: 6px;\n\n &:active,\n &:focus,\n &.focused {\n border-color: ",";\n box-shadow: 0px 0px 2px 2px ",";\n }\n\n &:disabled {\n background-color: ",";\n cursor: not-allowed;\n }\n }\n\n &[data-has-action-icon] {\n input {\n padding: 12px 48px 12px 16px;\n }\n }\n &[data-has-display-icon] {\n input {\n padding: 12px 16px 12px 48px;\n }\n }\n\n &[data-has-action-icon][data-has-display-icon] {\n input {\n padding: 12px 48px;\n }\n }\n\n &[data-size='lg'] {\n input {\n font-size: 16px;\n font-weight: ",";\n "," {\n font-size: 22px;\n line-height: 1.2;\n }\n\n "," {\n font-size: 26px;\n line-height: 1.2;\n }\n }\n }\n &[data-size='md'] {\n input {\n font-weight: ",";\n line-height: 22px;\n "," {\n font-size: 14px;\n line-height: 1.2;\n }\n\n "," {\n font-size: 16px;\n line-height: 1.2;\n }\n }\n }\n &[data-size='sm'] {\n input {\n font-weight: ",";\n line-height: 20px;\n "," {\n font-size: 13px;\n line-height: 1.5;\n }\n\n "," {\n font-size: 13px;\n line-height: 1.5;\n }\n }\n }\n"],["\n position: relative;\n width: 100%;\n\n &[data-has-error] {\n input {\n border-color: ",";\n }\n }\n\n input {\n width: 100%;\n padding: 12px 16px;\n border: solid 1px ",";\n border-radius: 6px;\n\n &:active,\n &:focus,\n &.focused {\n border-color: ",";\n box-shadow: 0px 0px 2px 2px ",";\n }\n\n &:disabled {\n background-color: ",";\n cursor: not-allowed;\n }\n }\n\n &[data-has-action-icon] {\n input {\n padding: 12px 48px 12px 16px;\n }\n }\n &[data-has-display-icon] {\n input {\n padding: 12px 16px 12px 48px;\n }\n }\n\n &[data-has-action-icon][data-has-display-icon] {\n input {\n padding: 12px 48px;\n }\n }\n\n &[data-size='lg'] {\n input {\n font-size: 16px;\n font-weight: ",";\n "," {\n font-size: 22px;\n line-height: 1.2;\n }\n\n "," {\n font-size: 26px;\n line-height: 1.2;\n }\n }\n }\n &[data-size='md'] {\n input {\n font-weight: ",";\n line-height: 22px;\n "," {\n font-size: 14px;\n line-height: 1.2;\n }\n\n "," {\n font-size: 16px;\n line-height: 1.2;\n }\n }\n }\n &[data-size='sm'] {\n input {\n font-weight: ",";\n line-height: 20px;\n "," {\n font-size: 13px;\n line-height: 1.5;\n }\n\n "," {\n font-size: 13px;\n line-height: 1.5;\n }\n }\n }\n"])),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.gray100}),(function(n){return n.theme.sizes.fwRegular}),i.MediaQueries.mbDown,i.MediaQueries.mbUp,(function(n){return n.theme.sizes.fwRegular}),i.MediaQueries.mbDown,i.MediaQueries.mbUp,(function(n){return n.theme.sizes.fwRegular}),i.MediaQueries.mbDown,i.MediaQueries.mbUp);s.default.label(d||(d=n.__makeTemplateObject(["\n display: inline-block;\n margin-bottom: 4px;\n color: ",";\n font-weight: ",";\n"],["\n display: inline-block;\n margin-bottom: 4px;\n color: ",";\n font-weight: ",";\n"])),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.sizes.fwBold}));var p,d,u,c,h,f=s.default.label(u||(u=n.__makeTemplateObject(["\n color: ",";\n font-weight: ",";\n"],["\n color: ",";\n font-weight: ",";\n"])),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.sizes.fwRegular})),m=s.default.div(c||(c=n.__makeTemplateObject(["\n position: absolute;\n top: 50%;\n right: 16px;\n cursor: pointer;\n transform: translateY(-50%);\n"],["\n position: absolute;\n top: 50%;\n right: 16px;\n cursor: pointer;\n transform: translateY(-50%);\n"]))),x=s.default.div(h||(h=n.__makeTemplateObject(["\n position: absolute;\n top: 50%;\n left: 16px;\n display: inline-flex;\n cursor: default;\n transform: translateY(-50%);\n"],["\n position: absolute;\n top: 50%;\n left: 16px;\n display: inline-flex;\n cursor: default;\n transform: translateY(-50%);\n"])));exports.Input=function(i){var a=i.name,o=i.value,s=i.errorMessage,p=i.isNumerousKeyboard,d=void 0!==p&&p,u=i.showErrorMessage,c=void 0===u||u,h=i.actionIcon,g=i.displayIcon,b=i.onActionClick,y=i.label,v=i.className,z=i.onChange,w=i.isDisabled,k=i.CustomInput,C=i.size,_=i.style,E=i.autoComplete,M=void 0===E?"off":E,N=i.type,j=void 0===N?"text":N,I=i.inputClassName,Q=i.trackingAttributes,q=i.enterKeyHint,A=n.__rest(i,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]),D=e.useMemo((function(){return Q?{"data-event-category":Q.dataEventCategory,"data-event-action":Q.dataEventAction,"data-event-label":Q.dataEventLabel}:{}}),[Q]);return r.default.createElement(l,{"data-size":C,className:v,"data-has-action-icon":!!h||void 0,"data-has-display-icon":!!g||void 0,"data-has-error":s&&s.length>0||void 0,style:_},y&&r.default.createElement(t.Label,{size:"label2",htmlFor:a,className:"inputLabel"},y),r.default.createElement("div",{style:{position:"relative"}},k||r.default.createElement("input",n.__assign({id:a,name:a,onChange:function(n){return z&&z(n.target.value)},type:j,"aria-label":j,value:o,disabled:w,autoComplete:M,inputMode:d||"number"===j?"numeric":j,pattern:d?"[0-9]*":".*",className:I,enterKeyHint:q},D,A)),g&&r.default.createElement(x,{className:"displayIcon"},g),h&&r.default.createElement(m,{className:"actionIcon",onClick:b},h)),s&&s.length>0&&c&&r.default.createElement(f,{className:"errorLabel"},s))};
|
package/build/index-06e26abd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var n=require("./tslib.es6-9ca973bc.js"),e=require("react"),t=require("styled-components"),o=require("./index-22f85e6b.js"),a=require("./utils-ef99dc6d.js"),i=require("./theme-929496b2.js");function r(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var d,l,s,p,c,u,x,b,g,h,f=r(e),m=r(t),v=m.default.div(d||(d=n.__makeTemplateObject(["\n --dropdown-padding: 12px 18px 12px 16px;\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-disabled='true'],\n :disabled {\n background-color: #f2f2f2;\n cursor: not-allowed;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n }\n &[data-size='md'] {\n font-size: 14px;\n line-height: 21px;\n }\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n }\n\n &[data-has-icons='true'] {\n border: none;\n background: ",";\n\n img,\n svg {\n display: inline-block;\n max-width: 16px;\n margin-right: 6px;\n }\n\n span {\n display: inline-block;\n vertical-align: middle;\n }\n\n &:hover {\n box-shadow: none;\n }\n > div {\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n align-items: center;\n }\n > div::after {\n position: absolute;\n top: 50%;\n right: 12px;\n width: 10px;\n height: 8px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-is-native='true'] {\n padding: var(--dropdown-padding);\n line-height: 24px;\n\n &:focus {\n box-shadow: 0px 0px 2px 2px ",";\n }\n }\n"],["\n --dropdown-padding: 12px 18px 12px 16px;\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-disabled='true'],\n :disabled {\n background-color: #f2f2f2;\n cursor: not-allowed;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n }\n &[data-size='md'] {\n font-size: 14px;\n line-height: 21px;\n }\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n }\n\n &[data-has-icons='true'] {\n border: none;\n background: ",";\n\n img,\n svg {\n display: inline-block;\n max-width: 16px;\n margin-right: 6px;\n }\n\n span {\n display: inline-block;\n vertical-align: middle;\n }\n\n &:hover {\n box-shadow: none;\n }\n > div {\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n align-items: center;\n }\n > div::after {\n position: absolute;\n top: 50%;\n right: 12px;\n width: 10px;\n height: 8px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-is-native='true'] {\n padding: var(--dropdown-padding);\n line-height: 24px;\n\n &:focus {\n box-shadow: 0px 0px 2px 2px ",";\n }\n }\n"])),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.gray100}),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.blue200})),w=m.default.div(l||(l=n.__makeTemplateObject(["\n padding: var(--dropdown-padding);\n cursor: pointer;\n\n &.with-label {\n padding-top: 34px;\n padding-bottom: 12px;\n }\n &[data-dropdown-open] {\n padding: 11px 15px 11px 15px;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n"],["\n padding: var(--dropdown-padding);\n cursor: pointer;\n\n &.with-label {\n padding-top: 34px;\n padding-bottom: 12px;\n }\n &[data-dropdown-open] {\n padding: 11px 15px 11px 15px;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n"])),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.blue200})),k=m.default.ul(s||(s=n.__makeTemplateObject(["\n position: absolute;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001), -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n"],["\n position: absolute;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001), -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200})),y=m.default.li(p||(p=n.__makeTemplateObject(["\n display: flex;\n padding: 12px 18px 12px 16px;\n &[data-disabled='true'] {\n cursor: not-allowed;\n color: #bfbfbf;\n & > * {\n pointer-events: none;\n }\n }\n &:hover,\n :active {\n background: ",";\n }\n"],["\n display: flex;\n padding: 12px 18px 12px 16px;\n &[data-disabled='true'] {\n cursor: not-allowed;\n color: #bfbfbf;\n & > * {\n pointer-events: none;\n }\n }\n &:hover,\n :active {\n background: ",";\n }\n"])),(function(n){return n.theme.colors.gray100})),E=m.default.div(c||(c=n.__makeTemplateObject(["\n max-width: 16px;\n margin-right: 8px;\n"],["\n max-width: 16px;\n margin-right: 8px;\n"]))),C=m.default.div(u||(u=n.__makeTemplateObject(["\n position: absolute;\n top: 12px;\n left: 16px;\n pointer-events: none;\n"],["\n position: absolute;\n top: 12px;\n left: 16px;\n pointer-events: none;\n"]))),_=m.default.ul(x||(x=n.__makeTemplateObject(["\n display: inline-flex;\n max-width: 100%;\n border-bottom: 1px solid\n ",";\n -webkit-overflow-scrolling: touch;\n overflow-x: auto;\n overflow-y: hidden;\n -ms-overflow-style: none; /* for Internet Explorer, Edge */\n scrollbar-width: none; /* for Firefox */\n overflow-y: scroll;\n &::-webkit-scrollbar {\n display: none;\n }\n"],["\n display: inline-flex;\n max-width: 100%;\n border-bottom: 1px solid\n ",";\n -webkit-overflow-scrolling: touch;\n overflow-x: auto;\n overflow-y: hidden;\n -ms-overflow-style: none; /* for Internet Explorer, Edge */\n scrollbar-width: none; /* for Firefox */\n overflow-y: scroll;\n &::-webkit-scrollbar {\n display: none;\n }\n"])),(function(n){return n.theme.colors.neutral100})),z=m.default.li(b||(b=n.__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding-bottom: 4px;\n\n "," {\n height: 37px;\n }\n\n "," {\n height: 35px;\n }\n\n p {\n color: ",";\n white-space: nowrap;\n }\n\n &:not(:last-child) {\n margin-right: 24px;\n }\n\n &[data-is-tab-active] {\n p {\n color: ",";\n }\n border-bottom: 3px solid\n ",";\n bottom: -1px;\n position: relative;\n }\n\n &:not([data-is-tab-active]) {\n cursor: pointer;\n }\n\n &:focus-visible {\n border: 2px solid ",";\n }\n"],["\n display: flex;\n align-items: center;\n padding-bottom: 4px;\n\n "," {\n height: 37px;\n }\n\n "," {\n height: 35px;\n }\n\n p {\n color: ",";\n white-space: nowrap;\n }\n\n &:not(:last-child) {\n margin-right: 24px;\n }\n\n &[data-is-tab-active] {\n p {\n color: ",";\n }\n border-bottom: 3px solid\n ",";\n bottom: -1px;\n position: relative;\n }\n\n &:not([data-is-tab-active]) {\n cursor: pointer;\n }\n\n &:focus-visible {\n border: 2px solid ",";\n }\n"])),a.MediaQueries.mbDown,a.MediaQueries.mbUp,(function(n){return n.theme.colors.gray400}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.gray600})),j=m.default.div(g||(g=n.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),T=m.default.div(h||(h=n.__makeTemplateObject(["\n margin-right: 8px;\n"],["\n margin-right: 8px;\n"])));exports.Dropdown=function(e){var t=e.className,o=e.value,a=e.options,i=e.onChange,r=void 0===i?function(){}:i,d=e.id,l=e.placeholderIcon,s=e.placeholder,p=e.style,c=e.size,u=void 0===c?"lg":c,x=e.groupedWithLabel,b=e.disabled,g=e.dropdownLabelTrackingAttributes,h=void 0===g?{}:g,m=e.isNativeSelect,_=void 0!==m&&m,z=f.default.useState(!1),j=z[0],T=z[1],L=function(){return!b&&T(!j)};return _?f.default.createElement(v,{as:"select","data-is-native":"true",value:(null==o?void 0:o.value)||void 0,disabled:b,onChange:function(n){if("string"==typeof n.target.value){var e=a.find((function(e){return e.value===n.target.value}));e&&r(e)}}},s&&f.default.createElement("option",{value:s,disabled:!0,selected:!0},s),a.map((function(n){return f.default.createElement("option",{key:"".concat(d,"-").concat(n.value),value:n.value,disabled:!!n.disabled&&n.disabled},n.label)}))):f.default.createElement(v,{className:t,"data-dropdown-open":j||void 0,"data-size":u,id:d,"data-has-icons":!!l,style:p,onBlur:function(){return T(!1)},tabIndex:0,"data-disabled":b},!!x&&f.default.createElement(C,null,x),f.default.createElement(w,n.__assign({onClick:L,className:x&&"with-label"},h),l," ",f.default.createElement("span",null,o&&o.value?o.label:s)),j&&f.default.createElement(k,{onClick:L,"data-has-icons":!!l},a.map((function(n){return f.default.createElement(y,{key:"".concat(d,"-").concat(n.value),"data-selected":o&&o.value===n.value||void 0,onClick:function(){return!n.disabled&&!b&&(null==r?void 0:r(n))},"data-disabled":!!n.disabled&&n.disabled},n.icon&&f.default.createElement(E,null,n.icon),n.label)}))))},exports.Tabs=function(n){var t=n.style,a=n.initialTab,r=n.tabContent,d=n.onChange,l=n.className,s=n.dataEventCategory,p=n.dataEventAction,c=n.dataEventLabel,u=n.id,x=e.useState(a||0),b=x[0],g=x[1];return e.useEffect((function(){g(a)}),[a]),f.default.createElement(_,{style:t,className:l,role:"tablist",id:u},r.map((function(n,e){return f.default.createElement(z,{"data-is-tab-active":b===e||void 0,"aria-selected":b===e,role:"tab",onClick:function(){g(e),d&&d(e)},onKeyDown:function(n){"Enter"===n.key&&(g(e),d&&d(e))},key:e,"data-event-category":n.dataEventCategory||s,"data-event-action":n.dataEventAction||p,"data-event-label":n.dataEventLabel||c,tabIndex:0,"data-testid":n.dataTestid},f.default.createElement(j,null,n.icon&&f.default.createElement(T,null,n.icon),f.default.createElement(o.Text,{size:n.textSize||"sm",type:n.textType||"bold",color:n.textColor||i.theme.colors.gray800,dataEventCategory:n.dataEventCategory,dataEventAction:n.dataEventAction,dataEventLabel:n.dataEventLabel},n.name)))})))};
|
package/build/index-070d0c3c.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var n=require("./tslib.es6-9ca973bc.js"),e=require("react"),t=require("./index-d0c71b4a.js"),a=require("./index-b32bccc2.js"),i=require("./routing-8c09e877.js"),o=require("./dataTransform-e677df88.js"),l=require("./index-e75c7ef4.js"),r=require("./useTranslations-dc5a775a.js"),s=require("lodash/throttle"),d=require("./utils-ef99dc6d.js"),p=require("styled-components"),c=require("./index-aeb9c81a.js"),u=require("./index-1c8abe00.js"),m=require("./index-22f85e6b.js"),g=require("./gAssets.js"),f=require("./theme-929496b2.js"),h=require("@mantine/core"),x=require("./defaultClassWrapper-27713cbf.js"),v=require("./cookieHelper-81331e27.js"),b=require("./constants-d7879031.js"),y=require("string-format"),w=require("./index-83345ca5.js"),k=require("./index-944de99d.js"),E=require("./index-5adfd033.js"),_=require("dayjs"),C=require("dayjs/plugin/relativeTime"),T=require("lodash/debounce"),A=require("./core-953f48d7.js");function P(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var M,B,j,N=P(e),O=P(s),L=P(p),S=P(y),z=P(_),D=P(C),H=P(T),U=L.default.div(M||(M=n.__makeTemplateObject(["\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 ")})),G=function(n){var t=n.forceDisplay,a=n.mediaQueryKey,i=n.children,o=n.className,l=n.style,r=e.useMemo((function(){return d.getBoundariesFromMediaQueryKey(a)}),[a]),s=r[0],p=r[1];return N.default.createElement(U,{lowerBound:t?0:s,upperBound:t?0:p,className:o,style:l},i)},R=function(n){var t=(n||{}).allowBgScroll,a=e.useRef();return{containerRef:a,onContainerFocus:function(){t||(document.documentElement.style.overflow="hidden")},onContainerBlur:function(){t||(document.documentElement.style.overflow="")},onButtonMouseDown:function(n){a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),n.preventDefault())},onClose:function(){a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},Q=L.default.div(B||(B=n.__makeTemplateObject(["\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"])),d.MediaQueries.mbDown,d.MediaQueries.mbUp,(function(n){return n.theme.colors.gray800}),d.MediaQueries.mbDown,d.MediaQueries.mbUp,(function(n){return n.theme.colors.gray600}),d.MediaQueries.mbDown,d.MediaQueries.mbUp),I=L.default.div(j||(j=n.__makeTemplateObject(["\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"])),d.MediaQueries.mbDown,d.MediaQueries.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 ":""})),F=function(n){var t=n.openLogoutPopup,a=n.onCloseHandler,i=n.onLogoutHandler,l=n.siteType,s=void 0===l?"helloSites":l,d=r.useTranslations().t;return e.useEffect((function(){document.body.classList.toggle("noscroll",t)}),[t]),N.default.createElement(h.Portal,null,N.default.createElement(o.Popup,{type:"confirm",isOpen:t,closeIcon:N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:a},N.default.createElement(Q,null,"helloSites"===s&&N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),N.default.createElement("h2",null,d("helloSites"===s?"logout.popup.ask1":"logout.popup.ask.mb")),N.default.createElement("p",null,d("logout.popup.ask2")),N.default.createElement(I,{siteType:s},N.default.createElement(u.Button,{className:"logout-button",color:"tertiary",size:"lg",onClick:i},d("logout.popup.button.logout")),N.default.createElement(u.Button,{className:"cancel-button",color:"primary",size:"lg",onClick:a},d("logout.popup.button.cancel"))))))},q=L.default.div(K||(K=n.__makeTemplateObject(["\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}),d.MediaQueries.mbDown,d.MediaQueries.mbUp,d.MediaQueries.mbDown,d.MediaQueries.mbUp,d.MediaQueries.mbDown,d.MediaQueries.mbUp,(function(n){return n.theme.colors.gray200}),d.MediaQueries.mbDown,f.theme.colors.neutral100,d.MediaQueries.mbUp),V="hhgcomp-navprofilebutton-popup",W=x.getDefaultClassWrapper(q,V),Y=L.default.div(J||(J=n.__makeTemplateObject(["\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"])),d.MediaQueries.mbUp,d.MediaQueries.mbDown),Z="hhgcomp-navprofilebutton-popupwrapper";x.getDefaultClassWrapper(Y,Z);var K,J,X,$,nn,en=L.default.div(X||(X=n.__makeTemplateObject(["\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})),tn=L.default.a($||($=n.__makeTemplateObject(["\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"])),V,d.MediaQueries.mbDown,Z),an=L.default.a(nn||(nn=n.__makeTemplateObject(["\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"])),d.MediaQueries.mbUp,d.MediaQueries.mbUp),on="profile/posts?website_url={websiteUrl}",ln=99,rn=300,sn=400,dn=210,pn=function(n){var e,t,a,i;return n?{termId:n.term_id||null,sponsor:n.sponsor?(i=n.sponsor,i?{title:i.title,logo:i.logo,link:i.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 pn(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?(a=n.reviewed_by,{postTitle:a.post_title,permalink:a.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}:{}},cn=function(n){var e,t;if(!n)return{};var a=null===(e=n.link)||void 0===e?void 0:e.includes("/bot/"),i=null===(t=n.link)||void 0===t?void 0:t.startsWith("/fil/"),o=n.link?n.link.startsWith("http")||a?n.link:i?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:o,subtitle:n.subtitle,title:n.title}},un=function(n){return n?{thumbnail:n.thumbnail,link:null==n?void 0:n.slug,subtitle:n.name,name:n.name,slug:n.slug}:{}},mn=function(n){return n?{id:n.id,name:n.name,logo:null==n?void 0:n.logo,description:n.about,slug:n.slug}:{}},gn=function(n){var e,t,a=n.type,i=n.specialtySlug,o=n.locale;return"".concat(null===(e=b.LOCALIZED_SLUGS[o])||void 0===e?void 0:e.ALL,"/").concat((null===(t=b.LOCALIZED_SLUGS[o])||void 0===t?void 0:t[a])||"doctor","/").concat(null!=i?i:"")},fn=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}:{}},hn=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 a=new Date(n.endDate);if(e.getTime()>a.getTime())return!1}return!0},xn={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"},vn={navHeader:"uJQBNNg",navAvatar:"TfG3dM5",navHeaderUserInfos:"aMtjFNf",navHeaderUserName:"cSz2RR-",navHeaderMyProfileButton:"GyFm00F"};function bn(n){var t=n.userInfo,a=n.onClickMyProfileButton,i=n.themeName,o=void 0===i?"helloSites":i,l=r.useTranslations().t,s=e.useMemo((function(){var n=(null==t?void 0:t.name)||(null==t?void 0:t.username);return n&&n.length?n[0].toUpperCase():"A"}),[null==t?void 0:t.username,null==t?void 0:t.name]);return N.default.createElement("div",{className:vn.navHeader,onClick:function(){a&&a()}},N.default.createElement(c.Avatar,{className:vn.navAvatar,type:"rounded",size:"xl",avatarUrl:null==t?void 0:t.avatar,firstLetter:s,backgroundColor:"marryBaby"===o?f.theme.mbColors.pink:f.theme.colors.secondaryBase}),N.default.createElement("div",{className:vn.navHeaderUserInfos},N.default.createElement("div",{className:vn.navHeaderUserName},(null==t?void 0:t.name)||(null==t?void 0:t.username)),N.default.createElement("div",{className:vn.navHeaderMyProfileButton,style:{"--bg-hellosites":"url(".concat(g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg"),")"),"--bg-marrybaby":"url(".concat(g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg"),")")}},l("userProfile.nav.header.viewProfile"))))}var yn,wn,kn,En,_n,Cn,Tn,An,Pn,Mn,Bn,jn,Nn,On,Ln,Sn="fVk18fq",zn="v8TCvUb",Dn="mx7T4V3",Hn={myHealth:f.theme.mbColors.toneYellow,myCommunity:f.theme.mbColors.toneBlue,mySaved:f.theme.mbColors.toneGreen},Un={helloSites:{myBooking:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg")},myCommunity:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg")},myFamily:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg")},myHealth:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg")},mySaved:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg")},eCom:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")}},marryBaby:{mySaved:function(){return g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg")},myCommunity:function(){return g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg")},myHealth:function(){return g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}}},Gn=function(n){var t=n.type,a=n.themeName,i=n.className,o=n.onClick,l=void 0===o?function(){}:o,s=r.useTranslations().t,d=e.useMemo((function(){var n,e;return(null===(e=null===(n=Un[a])||void 0===n?void 0:n[t])||void 0===e?void 0:e.call(n))||""}),[t,a]),p=e.useMemo((function(){return"marryBaby"!==a?"transparent":Hn[t]}),[t,a]);return N.default.createElement("div",{onClick:function(){l(t)},className:"".concat(Sn," ").concat(i)},N.default.createElement("div",{className:Dn,style:{backgroundColor:p,backgroundImage:'url("'.concat(d,'")')}}),N.default.createElement("h3",{className:zn},s("userProfile.nav.card.".concat(t))))},Rn="gn6HmGG",Qn="FCx8FEM",In="zMiRxaE",Fn="lZ2Z9MQ",qn="rwm-agG",Vn="qMOscoq",Wn=function(n){var t=n.themeName,a=n.locale,i=n.onClickItem,o=e.useState(""),l=o[0],r=o[1],s=e.useMemo((function(){return"marryBaby"===t?[{key:"userProfile.nav.menu.password",icon:g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:g.CommonGAssets.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:g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]}),[t]);function d(n){n.subMenu?r((function(e){return e?"":n.key})):i&&i(n)}return N.default.createElement("div",{className:Rn},s.map((function(n){return N.default.createElement(Yn,{key:n.key,item:n,openKey:l,onClickItem:d,locale:a})})))},Yn=function(n){var e,t=n.item,a=n.openKey,i=n.onClickItem,o=n.locale,l=r.useTranslations().t;return(null===(e=t.disableLocale)||void 0===e?void 0:e.includes(o))?null:N.default.createElement("div",{className:"".concat(Qn," nav-menu-item"),"data-is-open":a===t.key,key:t.key,"data-has-submenu":!!t.subMenu},N.default.createElement("div",{className:In,onClick:function(){return i(t)}},t.icon&&N.default.createElement("div",{className:Fn,style:{backgroundImage:'url("'.concat(t.icon,'")')}}),l(t.key),t.subMenu&&N.default.createElement("div",{className:qn,style:{"--after-bg":"url(".concat(g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg"),")")}})),t.subMenu&&N.default.createElement("div",{className:Vn},t.subMenu.map((function(n){return N.default.createElement(Yn,{key:n.key,item:n,openKey:a,onClickItem:i,locale:o})}))))},Zn="-AZt1au",Kn="IvSIfCI",Jn="eahCJov",Xn="XIyViFs",$n="_4y-O0w3",ne="kO8iNgD",ee="a1d4E10",te="Tdguxxf",ae="-mOxsaU",ie="yPeDBNZ",oe={helloSites:{member:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg")},ambassador:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg")},doctor:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg")},expert:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg")},influencer:function(){return g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")}},marryBaby:{member:function(){return g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg")},ambassador:function(){return g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg")},doctor:function(){return g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg")},expert:function(){return g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg")},influencer:function(){return g.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}}},le=function(n){var t=n.themeName,a=n.rank,i=void 0===a?"member":a,o=n.numberOfPosts,l=void 0===o?0:o,s=r.useTranslations().t,d=e.useMemo((function(){var n,e;return(null===(e=null===(n=oe[t])||void 0===n?void 0:n[i])||void 0===e?void 0:e.call(n))||""}),[i,t]);return N.default.createElement("div",{className:$n,"data-user-rank":i},N.default.createElement("div",{className:ne},N.default.createElement("div",{className:ee},N.default.createElement("div",{className:te,style:{backgroundImage:'url("'.concat(d,'")')}}),N.default.createElement("h3",{className:ae},s("userProfile.userRank.".concat(i))),l>0&&N.default.createElement("p",{className:ie},l," ",s("userProfile.nav.header.count.posts")))))},re=function(t){var i=t.SSO_URL,o=t.UP_BASEPATH,l=void 0===o?"user":o,s=t.themeName,d=void 0===s?"helloSites":s,p=t.cardUrls,c=void 0===p?xn:p,m=t.enableCare,f=t.enableTogether,h=t.enableEcom,x=t.userInfo,b=t.togetherApiDomain,y=t.userPostsNumber,w=t.onClickNavigationCard,k=t.onClickMyProfileButton,E=t.onClickMenuItem,_=t.onClickLogout,C=t.isUserProfileNavigatorMenuHidden,T=void 0!==C&&C,A=t.isMyHealthEnabled,P=void 0!==A&&A,M=t.locale,B=r.useTranslations().t,j=e.useState(y||0),O=j[0],L=j[1],z="marryBaby"===d;e.useEffect((function(){if(x&&void 0===y){var e=v.getCookie("hhg_user_token");e&&fetch(function(e,t,i,o){return(i||"https://together.hellohealthgroup.com/")+"api/v1/"+S.default(on,n.__assign(n.__assign({},o),{websiteUrl:t?"https://marrybaby.vn":"https://".concat(a.domainLocales[e])}))}(M,z,b),{headers:{Authorization:"Bearer ".concat(e)}}).then((function(n){return n.json()})).then((function(n){var e,t,a;1===(null==n?void 0:n.status)&&(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.pagination)&&L((null===(a=null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((function(n){return console.error("Error fetching post number",n)}))}}),[M,null!==x,y,b,z]);var D=e.useMemo((function(){return(z?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"]).filter((function(n){return"myBooking"===n?m:"myCommunity"===n?f:"myHealth"===n?P:"eCom"!==n||h}))}),[z,P]),H=e.useMemo((function(){return"marryBaby"===d?null:N.default.createElement(u.Button,{color:"tertiary",icon:N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:_,className:Xn},B("userProfile.nav.menu.logout"))}),[d]),U=function(n){window.location.href="".concat(i).concat(l,"/").concat(n)},G=function(n){var e=c[n];w?w(e):U(e)};return x?N.default.createElement("div",{className:Zn,"data-theme":d},N.default.createElement(bn,{userInfo:x,themeName:d,onClickMyProfileButton:function(){k?k():U("profile")}}),N.default.createElement(le,{themeName:d,rank:"member",numberOfPosts:O}),N.default.createElement("div",{className:Kn},D.map((function(n){return N.default.createElement(Gn,{className:Jn,key:n,themeName:d,type:n,onClick:G})}))),!T&&N.default.createElement(N.default.Fragment,null,N.default.createElement(Wn,{themeName:d,locale:M,onClickItem:function(n){"logout"===n.link&&_?_():n.link&&!n.subMenu&&(E?E(n.link):U(n.link))}}),H)):null},se=function(n){var e=n.type,t=void 0===e?"lead":e,a=n.closeIcon,i=n.isOpen,o=void 0===i||i,l=n.onClose,r=n.children,s=n.enableAnimation,d=void 0===s||s,p=n.targetAvatar,c=n.id,u=n.className;return N.default.createElement(W,{"data-open":o,"data-type":t,"data-animation":d,"data-target":p,id:c,className:u},N.default.createElement("div",{className:"popup-content"},!!a&&N.default.createElement("div",{className:"close-button",onClick:l},a),r))},de=function(n){var e=n.SSO_URL,t=n.UP_BASEPATH,a=n.isOpen,i=n.targetAvatar,o=n.userInfo,l=n.enableCare,r=n.enableTogether,s=n.enableEcom,d=n.closePopup,p=n.siteType,c=void 0===p?"helloSites":p,u=n.dispatchLogout,m=n.userProfileRouterPush,g=n.isUserProfileNavigatorMenuHidden,f=n.isMyHealthEnabled,h=void 0!==f&&f,x=n.togetherApiDomain,v=n.locale,b=function(n){m?m("/".concat(n)):e&&(window.location.href="".concat(e).concat(t,"/").concat(n))},y=function(n){b(n),d()};return N.default.createElement(se,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:i,onClose:d},N.default.createElement(re,{SSO_URL:e,UP_BASEPATH:t,themeName:c,userInfo:o,enableCare:l,enableTogether:r,enableEcom:s,onClickLogout:function(){u&&(u(),d())},onClickMenuItem:y,onClickNavigationCard:y,onClickMyProfileButton:function(){b("profile"),d()},isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:h,togetherApiDomain:x,locale:v}))},pe=function(t){var a=t.userInfo,i=t.siteType,o=t.onLoginClick,l=t.SSO_URL,s=t.currentUrl,d=t.isMinifyLogin,p=t.enableCare,h=t.enableTogether,x=t.enableEcom,v=t.isUserProfileNavigatorMenuHidden,b=t.UP_BASEPATH,y=t.isMyHealthEnabled,w=t.togetherApiDomain,k=t.onLogout,E=t.style,_=t.userProfileRouterPush,C=t.isLoading,T=t.locale,A=r.useTranslations().t,P=e.useState(!1),M=P[0],B=P[1],j=(null==a?void 0:a.name)||(null==a?void 0:a.username),O=e.useState(!1),L=O[0],S=O[1];e.useEffect((function(){S(!0)}),[]);var z=R(),D=z.containerRef,H=z.onContainerFocus,U=z.onContainerBlur,G=z.onButtonMouseDown,Q=z.onClose;return C?N.default.createElement(u.Button,{size:"sm",color:"transparent",isLoading:!0}):(null==a?void 0:a.id)?N.default.createElement(N.default.Fragment,null,N.default.createElement(tn,{ref:D,style:E,tabIndex:0,onBlur:U,onFocus:H},N.default.createElement("div",{onMouseDown:G},N.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},N.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),N.default.createElement(c.Avatar,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==a?void 0:a.avatar,firstLetter:j&&j.length?j[0].toUpperCase():"A",backgroundColor:"marryBaby"===i?f.theme.mbColors.pink:f.theme.colors.secondaryBase})),N.default.createElement(de,{UP_BASEPATH:b,SSO_URL:l,dispatchLogout:function(){Q(),B(!0)},isOpen:!1,isMyHealthEnabled:y,enableCare:p,enableTogether:h,enableEcom:x,closePopup:Q,userInfo:a,siteType:i,isUserProfileNavigatorMenuHidden:v,togetherApiDomain:w,userProfileRouterPush:_,locale:T})),N.default.createElement(F,{openLogoutPopup:M,onCloseHandler:function(){document.body.classList.toggle("noscroll",!1),B(!1)},siteType:i,onLogoutHandler:function(){return n.__awaiter(void 0,void 0,void 0,(function(){return n.__generator(this,(function(n){switch(n.label){case 0:return B(!1),document.body.classList.toggle("noscroll",!1),[4,k()];case 1:return n.sent(),[2]}}))}))}})):N.default.createElement(an,{style:n.__assign({textDecoration:"none"},E),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:L?void 0:"".concat(l,"?returnUrl=").concat(s),"data-site-type":i},d?N.default.createElement(en,{onClick:o},N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):N.default.createElement(N.default.Fragment,null,"helloSites"===i&&N.default.createElement("img",{className:"mobile-only",src:g.CommonGAssets.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:o}),"marryBaby"===i&&N.default.createElement("div",{className:"mobile-only",onClick:o,style:{paddingLeft:16}},N.default.createElement(m.Text,{size:"p3",color:f.theme.mbColors.pink},A("navigation.loginJoin"))),N.default.createElement(u.Button,{className:"login-btn",size:"md",color:"tertiary",onClick:o,icon:N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("login.svg"),width:18,height:18}),theme:i},A("navigation.loginJoin"))))},ce=function(n){return n.replace(/([^:]\/)\/+/g,"$1")},ue=function(n){return ce(function(n){return n.replace(/\/?$/,"/")}(n))},me=N.default.createContext({}),ge=function(t){var o=t.children,l=n.__rest(t,["children"]),r=N.default.useState((function(){return l.currentUrl||"https://".concat("marryBaby"===l.siteType?w.domainLocalesMarryBaby[l.locale||"en-PH"]:a.domainLocales[l.locale||"en-PH"]).concat("together"===l.projectType?"/community":"ecom"===l.projectType?"/ecom":"care"===l.projectType?"/care":"","/")})),s=r[0],d=r[1];e.useEffect((function(){var n=function(){d(window.location.href)};return window.addEventListener("popstate",n),n(),function(){window.removeEventListener("popstate",n)}}),[]);var p=function(n){var t=n.locale,o=n.projectType,l=n.isMobile,r=n.siteType;return e.useMemo((function(){var n=!(!l&&"profile"===o),e="discover"===o||"marryBaby"===o||"profile"===o&&"marryBaby"===r,s="marryBaby"!==r&&"marryBaby"!==o&&a.CARE_LOCALES.includes(t),d="marryBaby"!==o&&"discover"===o&&"marryBaby"!==r&&a.CARE_BOOKING_LOCALES.includes(t),p="marryBaby"===o||a.TOGETHER_LOCALES.includes(t),c="ecom"===o,u="ecom"===o,m=i.getCurrentBaseUrl(t,"marryBaby"===r),g=i.getCurrentSsoUrl(t,"marryBaby"===r);return{enableProfileNavigatorMenu:n,enableSearchBar:e,enableNavCare:s,enableNavCareBooking:d,enableNavTogether:p,enableNavEcom:c,enableProfileEcom:u,enableProfileMyHealth:!0,statics:{HOME_PAGE_URL:m,CARE_URL_FE:"".concat(m,"/care"),TOGETHER_URL_FE:"".concat(m,"/community"),SSO_URL:g,TOGETHER_API:i.getTogetherApiDomain(),DISCOVER_API:i.getDiscoverApiDomain(t)}}}),[t,o,l])}({locale:l.locale,projectType:l.projectType,isMobile:l.isMobile,siteType:l.siteType});return N.default.createElement(me.Provider,{value:n.__assign(n.__assign({},l),{configs:p,currentUrl:l.currentUrl||s})},o)},fe="-XmTq5-",he="V-oxu20",xe=function(n){var t=n.item,a=n.menu,i=R({allowBgScroll:!0}),o=i.containerRef,l=i.onContainerFocus,r=i.onContainerBlur,s=i.onButtonMouseDown,d=i.onClose,p=function(){var n=e.useState(!0),t=n[0],a=n[1];return e.useEffect((function(){a(!1)}),[]),t}();return!t.popupType&&t.link?N.default.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem ".concat(p?"":"menu-handler-".concat(t.id)),tabIndex:0,href:t.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t.link},N.default.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t.link,className:he},t.name)):N.default.createElement("div",{ref:o,className:"hhgcomp-navigation-itemnav-headeritem ".concat(p?"":"menu-handler-".concat(t.id)),tabIndex:0,key:t.id,onBlur:r,onFocus:l,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t.link},N.default.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t.link,onMouseDown:s,className:he},t.name,t.popupType&&N.default.createElement("div",{className:fe},N.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N.default.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),N.default.isValidElement(a)?N.default.cloneElement(a,{onClose:d}):null)},ve=e.memo((function(){return N.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N.default.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"}))})),be=function(){var n=e.useContext(me),t=n.locale,i=n.configs.statics,o=n.siteType,l=r.useTranslations().t;return N.default.createElement(k.PureInput,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===o?l("navigation.search.input.placeholder"):l("home.search",{site:a.LOCALE_SPECS[t||"en-PH"]?a.LOCALE_SPECS[t||"en-PH"].SITE_NAME:""}),onChange:function(){},onKeyDown:function(n){return"Enter"===n.key&&(window.location.href="".concat(i.HOME_PAGE_URL,"/search/?s=").concat(n.target.value))},type:"search",onFocus:function(n){n.preventDefault()},displayIcon:N.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},N.default.createElement(ve,null))})},ye="eJS8-if",we="EuQrB-3",ke="_0JtBh8L",Ee=function(n){var e=n.onClosePopup;return N.default.createElement("div",{className:"".concat(ke," close-btn"),onClick:e},N.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))},_e=function(n){var e=n.onClosePopup,t=n.isDisplay,a=n.children,i=n.isNavMenu,o=n.hideCloseBtn;return N.default.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!i},N.default.createElement(l.Container,null,!o&&N.default.createElement("div",{className:we},N.default.createElement(Ee,{onClosePopup:e})),N.default.createElement(l.Container,{className:ye},a)))},Ce=L.default.div(yn||(yn=n.__makeTemplateObject(["\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"])),d.MediaQueries.mbUp),Te=L.default.a(wn||(wn=n.__makeTemplateObject(["\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})),Ae=L.default.div(kn||(kn=n.__makeTemplateObject(["\n margin: 15px 0;\n "," {\n display: none;\n }\n"],["\n margin: 15px 0;\n "," {\n display: none;\n }\n"])),d.MediaQueries.mbDown),Pe=L.default.div(En||(En=n.__makeTemplateObject(["\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"])),d.MediaQueries.mbUp),Me=L.default.div(_n||(_n=n.__makeTemplateObject(["\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})),Be=L.default.div(Cn||(Cn=n.__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-left: 10px;\n"],["\n display: flex;\n align-items: center;\n margin-left: 10px;\n"]))),je=L.default.a(Tn||(Tn=n.__makeTemplateObject(["\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}),d.MediaQueries.mbDown),Ne=function(n){var t=n.hrefViewMore,a=n.titleBtnViewMore,i=n.UrlFE,o=n.onClosePopup,l=n.menuItems,r=n.headingTitle,s=e.useContext(me).siteType;return N.default.createElement(Ce,null,N.default.createElement(Ae,null,N.default.createElement(E.Heading,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},r)),null==l?void 0:l.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 N.default.createElement(Te,{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},N.default.createElement("div",{className:"icon"},N.default.createElement("img",{loading:"lazy",alt:n.name,src:n.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32}})),N.default.createElement("p",null,n.name),N.default.createElement(Pe,null,N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),a&&N.default.createElement(je,{"data-theme":s,style:{textDecoration:"none"},href:t,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t},N.default.createElement(Me,{onClick:o,"data-theme":s,"data-is-heading-category":!1},a,N.default.createElement(Be,null,N.default.createElement("img",{className:"svg",src:"marryBaby"===s?g.CommonGAssets.getAssetPath("chevronRightPink.svg"):g.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},Oe=L.default.div(An||(An=n.__makeTemplateObject(["\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"])),d.MediaQueries.mbDown,d.MediaQueries.mbUp),Le=L.default.div(Pn||(Pn=n.__makeTemplateObject(["\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})),Se=L.default.div(Mn||(Mn=n.__makeTemplateObject(["\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"]))),ze=L.default.div(Bn||(Bn=n.__makeTemplateObject(["\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"]))),De=L.default.div(jn||(jn=n.__makeTemplateObject(["\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"])),d.MediaQueries.mbDown),He=function(n){var t=n.title,a=n.link,i=n.description,o=n.cta,l=n.icon,r=e.useContext(me).siteType;return N.default.createElement(Oe,{"data-theme":r},N.default.createElement(De,null,N.default.createElement("img",{src:"marryBaby"===r?g.CommonGAssets.getAssetPath("navMBSpotlightBgNoData.svg"):g.CommonGAssets.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),N.default.createElement(ze,null,l&&N.default.createElement("img",{src:l,width:64,height:64}))),N.default.createElement("div",null,t&&N.default.createElement(Se,null,t),i&&N.default.createElement(Le,null,i),o&&N.default.createElement("div",null,N.default.createElement("a",{href:a},N.default.createElement(u.Button,{theme:r,className:"survey-contact-submit",size:"md"},o)))))},Ue=L.default.div(Nn||(Nn=n.__makeTemplateObject(["\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"])),d.MediaQueries.mbDown,(function(n){return n.theme.colors.neutral100})),Ge=L.default.div(On||(On=n.__makeTemplateObject(["\n margin: 15px 0;\n display: flex;\n"],["\n margin: 15px 0;\n display: flex;\n"]))),Re=L.default.a(Ln||(Ln=n.__makeTemplateObject(["\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}),d.MediaQueries.mbDown),Qe=function(n){var t=n.title,a=n.viewMore,i=n.children,o=n.link,l=n.dataEventAction,r=void 0===l?"":l,s=e.useContext(me).siteType;return N.default.createElement(Ue,null,N.default.createElement(Ge,null,N.default.createElement(E.Heading,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},t),a&&N.default.createElement(Re,{"data-event-category":"Hamburger Navigation","data-event-action":r,"data-event-label":o,href:o,"data-theme":s},a,N.default.createElement("img",{src:"marryBaby"===s?g.CommonGAssets.getAssetPath("chevronRightPink.svg"):g.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),i)};L.default.div(Ie||(Ie=n.__makeTemplateObject(["\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 Ie,Fe,qe,Ve,We,Ye,Ze,Ke,Je,Xe=L.default.div(Fe||(Fe=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdDown),$e=L.default.div(qe||(qe=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdDown,d.MediaQueries.mbDown),nt=L.default.div(Ve||(Ve=n.__makeTemplateObject(["\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"]))),et=L.default.div(We||(We=n.__makeTemplateObject(["\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}),d.MediaQueries.tdDown),tt=L.default.p(Ye||(Ye=n.__makeTemplateObject(["\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}),d.MediaQueries.tdDown),at=L.default.p(Ze||(Ze=n.__makeTemplateObject(["\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}),d.MediaQueries.tdDown),it=L.default.div(Ke||(Ke=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdDown),ot="hhgcomp-navigation-menucareitem-contentwrapper",lt=x.getDefaultClassWrapper(it,ot),rt=L.default.a(Je||(Je=n.__makeTemplateObject(["\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"])),f.theme.colors.white,d.MediaQueries.tdUp,d.MediaQueries.tdDown,ot,d.MediaQueries.mbDown,d.MediaQueries.tdOnly,f.theme.colors.neutral100),st=function(n){var t,a=n.item,i=n.index,o=void 0===i?0:i,l=r.useTranslations().t,s=e.useContext(me),d=s.locale,p=s.configs.statics;if(!a)return null;var c="".concat(p.CARE_URL_FE,"/").concat(null===(t=b.LOCALIZED_SLUGS[d])||void 0===t?void 0:t.HOSPITAL,"/").concat(a.slug,"-").concat(a.id);return N.default.createElement(rt,{key:a.id,href:c,"data-event-category":"Hamburger Navigation","data-event-action":"Care Click ".concat(o+1),"data-event-label":c},N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),N.default.createElement($e,null,N.default.createElement(nt,null,N.default.createElement("img",{loading:"lazy",alt:a.name,src:a.logo||"/images/avatar.jpg"}))),N.default.createElement(lt,null,N.default.createElement(tt,null,a.name),N.default.createElement(at,null,a.description),N.default.createElement(et,null,l("home.seeMore"),N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},dt=function(n){var e=n.spotlights,t=void 0===e?[]:e,a=n.hrefViewMore,i=r.useTranslations().t;return N.default.createElement(Qe,{title:i("home.navigator.menu.spotlightHospitals")},0!==t.length?N.default.createElement(Xe,null,null==t?void 0:t.slice(0,3).map((function(n,e){return N.default.createElement(st,{key:e,index:e,item:n})}))):N.default.createElement(He,{title:i("home.navigator.menu.care.noDatas.title"),description:i("home.navigator.menu.care.noDatas.description"),link:a,cta:i("home.navigator.menu.care.noDatas.cta"),icon:g.CommonGAssets.getAssetPath("community.svg")}))},pt=function(n){var t,a=n.careSpecialties,i=void 0===a?[]:a,o=n.isOpen,l=n.onClose,s=n.spotlights,d=void 0===s?[]:s,p=r.useTranslations().t,c=e.useContext(me),u=c.locale,m=c.configs.statics,g="".concat(m.CARE_URL_FE,"/").concat(null===(t=b.LOCALIZED_SLUGS[u])||void 0===t?void 0:t.SPECIALTIES);return N.default.createElement(_e,{onClosePopup:l,isDisplay:o,isNavMenu:!0},N.default.createElement(Ne,{headingTitle:p("home.navigator.menuItem.specialties"),hrefViewMore:g,UrlFE:m.CARE_URL_FE,onClosePopup:l,titleBtnViewMore:p("home.navigator.menuItem.allSpecialties"),menuItems:(null==i?void 0:i.map((function(n){return n?{name:String(n.name)||"",link:gn({type:"DOCTOR",specialtySlug:n.slug,locale:u}),thumbnail:(null==n?void 0:n.thumbnail)||""}:{}})))||[]}),N.default.createElement(dt,{spotlights:d,hrefViewMore:g}))};L.default.div(ct||(ct=n.__makeTemplateObject(["\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"]))),L.default.div(ut||(ut=n.__makeTemplateObject(["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"],["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"])));var ct,ut,mt,gt,ft,ht,xt=L.default.div(mt||(mt=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdDown),vt=L.default.a(gt||(gt=n.__makeTemplateObject(["\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"]))),bt=L.default.div(ft||(ft=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdDown),yt=L.default.p(ht||(ht=n.__makeTemplateObject(["\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}),d.MediaQueries.tdUp),wt=function(n){var e=n.item,t=n.index,a=void 0===t?0:t;return e?N.default.createElement(vt,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Spotlight Click ".concat(a+1),"data-event-label":e.link},N.default.createElement(bt,null,N.default.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),N.default.createElement(yt,null,e.title)):null},kt=function(n){var t=n.spotlightsList,a=void 0===t?[]:t,i=n.hrefViewMore,o=r.useTranslations().t,l=e.useContext(me).configs.statics;return N.default.createElement(Qe,{title:o("home.navigator.menu.spotlights"),viewMore:o("home.navigator.menu.spotlights.seeAll"),link:i,dataEventAction:"Spotlight See More Click"},0!==a.length?N.default.createElement(xt,null,null==a?void 0:a.slice(0,4).map((function(n,e){return N.default.createElement(wt,{key:e,index:e,item:{id:n.id,link:l.HOME_PAGE_URL+n.permalink,title:n.name,banner:n.image}})}))):N.default.createElement(He,{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:g.CommonGAssets.getAssetPath("Spotlight.svg")}))},Et=function(n){var t=n.categories,a=void 0===t?[]:t,i=n.spotlightsList,o=void 0===i?[]:i,l=n.onClose,s=n.isOpen,d=r.useTranslations().t,p=e.useContext(me),c=p.locale,u=p.configs.statics;return N.default.createElement(_e,{onClosePopup:l,isDisplay:s,isNavMenu:!0},N.default.createElement(Ne,{hrefViewMore:"".concat(u.HOME_PAGE_URL).concat("tl-PH"===c?"/fil":"","/categories/"),UrlFE:u.HOME_PAGE_URL,onClosePopup:l,titleBtnViewMore:d("home.navigator.menuItem.allCategories"),menuItems:(null==a?void 0:a.map((function(n){return n?{name:n.displayName||null,link:(null==n?void 0:n.permalink)||"/",thumbnail:n.iconUrl||null}:{}})))||[],headingTitle:d("home.navigator.menuItem.healthCategories")}),N.default.createElement(kt,{spotlightsList:o,hrefViewMore:"".concat(u.HOME_PAGE_URL).concat("tl-PH"===c?"/fil":"","/spotlight/")}))};L.default.div(_t||(_t=n.__makeTemplateObject(["\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})),L.default.div(Ct||(Ct=n.__makeTemplateObject(["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"],["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"])));var _t,Ct,Tt,At,Pt,Mt,Bt,jt,Nt,Ot,Lt,St,zt,Dt,Ht=L.default.div(Tt||(Tt=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdDown,d.MediaQueries.mbDown),Ut=L.default.div(At||(At=n.__makeTemplateObject(["\n padding: 5px;\n flex: 1;\n"],["\n padding: 5px;\n flex: 1;\n"]))),Gt=L.default.img(Pt||(Pt=n.__makeTemplateObject(["\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"]))),Rt=L.default.div(Mt||(Mt=n.__makeTemplateObject(["\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})),Qt=L.default.div(Bt||(Bt=n.__makeTemplateObject(["\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})),It=L.default.div(jt||(jt=n.__makeTemplateObject(["\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})),Ft=L.default.div(Nt||(Nt=n.__makeTemplateObject(["\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})),qt=L.default.a(Ot||(Ot=n.__makeTemplateObject(["\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}),d.MediaQueries.tdOnly,d.MediaQueries.mbDown,d.MediaQueries.tdUp),Vt=L.default.div(Lt||(Lt=n.__makeTemplateObject(["\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"]))),Wt=L.default.div(St||(St=n.__makeTemplateObject(["\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})),Yt=L.default.div(zt||(zt=n.__makeTemplateObject(["\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"]))),Zt=L.default.div(Dt||(Dt=n.__makeTemplateObject(["\n display: flex;\n gap: 4px;\n flex-direction: column;\n"],["\n display: flex;\n gap: 4px;\n flex-direction: column;\n"])));z.default.extend(D.default);var Kt=function(n){var t,a,i,o,l,r,s,d=n.post,p=n.index,c=void 0===p?0:p,u=e.useContext(me),m=u.siteType,g=u.configs.statics;if(!d)return null;var f=[g.TOGETHER_URL_FE,null===(t=d.community)||void 0===t?void 0:t.slug].join("/"),h=[f,d.slug].join("/"),x=d.createdAt,v=x?isNaN(new Date(x).getTime())?null:new Date(x):null,b=v?z.default(v).toNow(!0):x;return N.default.createElement(qt,{href:h,"data-event-category":"Hamburger Navigation","data-event-action":"Together Click ".concat(c+1),"data-event-label":h},N.default.createElement(Ut,null,N.default.createElement(Vt,null,N.default.createElement(w.UserAvatar,{avatar:null===(a=d.author)||void 0===a?void 0:a.avatar,username:(null===(i=d.author)||void 0===i?void 0:i.name)||(null===(o=d.author)||void 0===o?void 0:o.username)}),N.default.createElement(Zt,null,N.default.createElement(Rt,{"data-theme":m},null===(l=d.author)||void 0===l?void 0:l.name),N.default.createElement(Yt,null,N.default.createElement(Qt,{"data-event-category":"Hamburger Navigation","data-event-action":"Topic Click ".concat(c+1),"data-event-label":f,onClick:function(n){n.preventDefault(),location.href=f},"data-theme":m},null===(r=d.community)||void 0===r?void 0:r.name),N.default.createElement(Ft,null,"•"),N.default.createElement(It,{"data-theme":m},b)))),N.default.createElement(Wt,null,d.title)),!!(null===(s=d.photos)||void 0===s?void 0:s.length)&&N.default.createElement(Gt,{loading:"lazy",src:d.photos[0]}))},Jt=function(n){var t=n.spotlights,a=void 0===t?[]:t,i=e.useContext(me).configs.statics,o=r.useTranslations().t;return N.default.createElement(Qe,{title:o("home.navigator.menu.trendingPosts"),viewMore:o("home.navigator.menu.trendingPosts.seeMore"),link:ue(i.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==a.length?N.default.createElement(Ht,null,null==a?void 0:a.slice(0,4).map((function(n,e){return N.default.createElement(Kt,{index:e,post:n,key:n.id})}))):N.default.createElement(He,{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:g.CommonGAssets.getAssetPath("community.svg")}))},Xt=function(n){var t=n.communities,a=void 0===t?[]:t,i=n.onClose,o=n.isOpen,l=n.spotlights,s=void 0===l?[]:l,d=r.useTranslations().t,p=e.useContext(me).configs.statics;return N.default.createElement(_e,{onClosePopup:i,isDisplay:o,isNavMenu:!0},N.default.createElement(Ne,{hrefViewMore:ue(p.TOGETHER_URL_FE),UrlFE:ce(p.TOGETHER_URL_FE),onClosePopup:i,titleBtnViewMore:d("home.navigator.menuItem.allCommunities"),menuItems:(null==a?void 0:a.map((function(n){return n?{name:n.name||"",link:n.slug||"/",thumbnail:n.thumbnail||""}:{}})))||[],headingTitle:d("home.navigator.menuItem.allCommunitiesheadingTitle")}),N.default.createElement(Jt,{spotlights:s}))};L.default.div($t||($t=n.__makeTemplateObject(["\n &[data-is-display='false'] {\n display: none;\n }\n"],["\n &[data-is-display='false'] {\n display: none;\n }\n"])));var $t,na,ea,ta,aa,ia,oa,la,ra,sa,da,pa,ca,ua,ma,ga,fa=L.default.div(na||(na=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdDown),ha=L.default.a(ea||(ea=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdDown,d.MediaQueries.tdDown),xa=L.default.div(ta||(ta=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdDown),va=L.default.div(aa||(aa=n.__makeTemplateObject(["\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})),ba=L.default.p(ia||(ia=n.__makeTemplateObject(["\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})),ya=L.default.p(oa||(oa=n.__makeTemplateObject(["\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}),d.MediaQueries.tdDown),wa=L.default.div(la||(la=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdUp,d.MediaQueries.tdDown),ka=function(n){var t=n.item,a=n.index,i=void 0===a?0:a,o=r.useTranslations().t,l=e.useContext(me).configs.statics;if(!t)return null;var s=t.link?t.link.startsWith("http")?t.link:"".concat(l.HOME_PAGE_URL).concat(t.link):void 0;return N.default.createElement(ha,{href:s,"data-event-category":"Hamburger Navigation","data-event-action":"Engage Click ".concat(i+1),"data-event-label":s},N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),N.default.createElement(wa,null,N.default.createElement(ba,null,t.title),N.default.createElement(ya,null,t.subtitle),N.default.createElement(va,null,o("home.seeMore"),N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),N.default.createElement(xa,null,N.default.createElement("img",{loading:"lazy",alt:t.title,src:t.icon||"/images/avatar.jpg"})))},Ea=L.default.a(ra||(ra=n.__makeTemplateObject(["\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}),d.MediaQueries.tdDown,d.MediaQueries.mbDown,d.MediaQueries.tdUp,d.MediaQueries.tdUp,d.MediaQueries.tdDown),_a=L.default.div(sa||(sa=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdDown,d.MediaQueries.mbDown),Ca=L.default.div(da||(da=n.__makeTemplateObject(["\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}),d.MediaQueries.tdDown,(function(n){return n.theme.mbColors.pink})),Ta=L.default.p(pa||(pa=n.__makeTemplateObject(["\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})),Aa=L.default.p(ca||(ca=n.__makeTemplateObject(["\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}),d.MediaQueries.tdDown),Pa=L.default.div(ua||(ua=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdUp,d.MediaQueries.tdDown),Ma=L.default.div(ma||(ma=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdUp,d.MediaQueries.tdDown),Ba=L.default.div(ga||(ga=n.__makeTemplateObject(["\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"])),d.MediaQueries.tdUp,d.MediaQueries.tdDown),ja=function(n){var t=n.item,a=n.index,i=void 0===a?0:a,o=n.color,l=r.useTranslations().t,s=e.useContext(me).configs.statics;if(!t)return null;var d=t.link?t.link.startsWith("http")?t.link:"".concat(s.HOME_PAGE_URL).concat(t.link):void 0,p=function(){return N.default.createElement(_a,null,N.default.createElement("img",{loading:"lazy",alt:t.title,src:t.icon||"/images/avatar.jpg"}))},c=function(){return N.default.createElement(Ba,null,N.default.createElement(Ma,null,N.default.createElement(Ta,null,t.title),N.default.createElement(Aa,null,t.subtitle)),N.default.createElement(Ca,null,N.default.createElement("div",{className:"mobile-only"},l("home.seeMore")),N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})))};return N.default.createElement(Ea,{href:d,"data-event-category":"Hamburger Navigation","data-event-action":"Engage Click ".concat(i+1),"data-event-label":d,"data-color":o},N.default.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N.default.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"})),N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),N.default.createElement(Pa,null,N.default.createElement("div",{className:"mobile-only"},p()),N.default.createElement("div",{className:"desktop-only"},c())),N.default.createElement("div",{className:"mobile-only"},c()),N.default.createElement("div",{className:"desktop-only"},p()))},Na=function(n){var t=n.hrefViewMore,a=n.spotlightHealthTools,i=void 0===a?[]:a,o=r.useTranslations().t,l=["pink","orange","green"],s=e.useContext(me).siteType;return N.default.createElement(Qe,{title:o("home.navigator.menu.spotlightTools")},0!==i.length&&N.default.createElement(fa,null,null==i?void 0:i.slice(0,3).map((function(n,e){return"marryBaby"===s?N.default.createElement(ja,{key:e,index:e,item:n,color:l[e]}):N.default.createElement(ka,{key:e,index:e,item:n})}))),0===i.length&&N.default.createElement(He,{title:o("home.navigator.menu.healthTools.noDatas.title"),description:o("home.navigator.menu.healthTools.noDatas.description"),link:t,cta:o("home.navigator.menu.healthTools.noDatas.cta"),icon:g.CommonGAssets.getAssetPath("community.svg")}))},Oa=function(n){var t,i=n.locale,o=n.onClose,l=n.isOpen,s=n.spotlightHealthTools,d=void 0===s?[]:s,p=n.healthTools,c=void 0===p?[]:p,u=r.useTranslations().t,m=e.useContext(me).configs.statics,g="".concat(m.HOME_PAGE_URL).concat("tl-PH"===i?"/fil":"").concat((null===(t=a.STATIC_PAGES[i])||void 0===t?void 0:t.HEALTH_TOOLS)||"");return N.default.createElement(_e,{onClosePopup:o,isDisplay:l,isNavMenu:!0},N.default.createElement(Ne,{hrefViewMore:g,UrlFE:m.HOME_PAGE_URL,onClosePopup:o,headingTitle:u("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:u("home.navigator.menuItem.allHealthTools"),menuItems:c.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}}))}),N.default.createElement(Na,{spotlightHealthTools:d,hrefViewMore:g}))},La="_6gGCHV-",Sa="YDzfyQU",za=function(n){var e=n.onCareHeaderClick,t=n.currentUrl,a=n.careUrlFe,i=n.btnName;return e?N.default.createElement(u.Button,{className:La,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:function(n){return e(n)}},i):N.default.createElement("a",{href:a,className:"".concat(Sa," care-button no-replace-click")},N.default.createElement(u.Button,{className:La,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},i))};function Da(n){var e=n.className;return N.default.createElement("div",null,N.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},N.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function Ha(n){var e=n.siteType,t=n.type,a=n.enableSearch,i=n.className;return"helloSites"===e?N.default.createElement("div",null,N.default.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?g.CommonGAssets.getAssetPath("hamburgerMenuNewWithSearch.svg"):g.CommonGAssets.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:i})):N.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i},N.default.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 Ua=L.default.div(Ga||(Ga=n.__makeTemplateObject(["\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"])));L.default.div(Ra||(Ra=n.__makeTemplateObject(["\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"]))),L.default.div(Qa||(Qa=n.__makeTemplateObject(["\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"]))),L.default.div(Ia||(Ia=n.__makeTemplateObject(["\n margin-top: 64px;\n"],["\n margin-top: 64px;\n"]))),L.default.div(Fa||(Fa=n.__makeTemplateObject(["\n padding: 24px 0;\n"],["\n padding: 24px 0;\n"]))),L.default.div(qa||(qa=n.__makeTemplateObject(["\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"]))),L.default.div(Va||(Va=n.__makeTemplateObject(["\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"])),dn,(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.white})),L.default.div(Wa||(Wa=n.__makeTemplateObject(["\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"]))),L.default.div(Ya||(Ya=n.__makeTemplateObject(["\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"]))),L.default.div(Za||(Za=n.__makeTemplateObject(["\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})),L.default.div(Ka||(Ka=n.__makeTemplateObject(["\n display: none;\n"],["\n display: none;\n"]))),L.default.div(Ja||(Ja=n.__makeTemplateObject(["\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})),L.default.div(Xa||(Xa=n.__makeTemplateObject(["\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})),L.default.div($a||($a=n.__makeTemplateObject(["\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"]))),L.default.div(ni||(ni=n.__makeTemplateObject(["\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"]))),L.default.div(ei||(ei=n.__makeTemplateObject(["\n display: block;\n"],["\n display: block;\n"]))),L.default.div(ti||(ti=n.__makeTemplateObject(["\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})),L.default.div(ai||(ai=n.__makeTemplateObject(["\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 Ga,Ra,Qa,Ia,Fa,qa,Va,Wa,Ya,Za,Ka,Ja,Xa,$a,ni,ei,ti,ai,ii,oi,li=L.default.div(ii||(ii=n.__makeTemplateObject(["\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})),ri=L.default.div(oi||(oi=n.__makeTemplateObject(["\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"]))),si=function(n){var t,i,o=n.closePopup,l=n.menuItems,s=void 0===l?[]:l,d=e.useContext(me),p=d.siteType,c=d.ssrMenuContent,u=c.categories,m=c.healthTools,g=c.care,f=c.together,h=d.activeMenuService,x=d.configs,v=x.statics,y=x.enableSearchBar,w=d.locale,k=r.useTranslations().t;return N.default.createElement(Ua,{id:"categories-menu"},y?N.default.createElement(li,{"data-theme":p,onClick:function(){window.location.href="".concat(v.HOME_PAGE_URL,"/search")}},N.default.createElement(be,null)):null,N.default.createElement(ri,null,N.default.createElement(Ne,{UrlFE:v.HOME_PAGE_URL,titleBtnViewMore:k("home.navigator.menuItem.allCategories"),menuItems:s,headingTitle:k("home.navigator.menuItem.healthCategories"),onClosePopup:o}),"categories"===h&&N.default.createElement(kt,{spotlightsList:(null==u?void 0:u.spotlights)||[],hrefViewMore:"".concat(v.HOME_PAGE_URL).concat("tl-PH"===w?"/fil":"","/spotlight/")}),"tools"===h&&N.default.createElement(Na,{spotlightHealthTools:null==m?void 0:m.spotlights,hrefViewMore:"".concat(v.HOME_PAGE_URL).concat("tl-PH"===w?"/fil":"").concat((null===(t=a.STATIC_PAGES[w])||void 0===t?void 0:t.HEALTH_TOOLS)||"")}),"care"===h&&N.default.createElement(dt,{spotlights:null==g?void 0:g.spotlights,hrefViewMore:"".concat(v.CARE_URL_FE,"/").concat(null===(i=b.LOCALIZED_SLUGS[w])||void 0===i?void 0:i.SPECIALTIES)}),"together"===h&&N.default.createElement(Jt,{spotlights:null==f?void 0:f.spotlights})))},di="IQdn7tn",pi="_1jX3mGY",ci="arD755Y",ui=function(n){var t=n.type,a=void 0===t?"home":t,i=n.menuItems,o=e.useContext(me),l=o.siteType,r=o.configs.enableSearchBar,s=R(),d=s.containerRef,p=s.onContainerFocus,c=s.onContainerBlur,u=s.onButtonMouseDown,m=s.onClose;return N.default.createElement(G,{mediaQueryKey:"mbDown"},N.default.createElement("header",{className:di},N.default.createElement("div",{className:pi,ref:d,role:"button",tabIndex:0,onBlur:c,onFocus:p},N.default.createElement("div",{className:ci,onMouseDown:u,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},N.default.createElement(Da,{className:"mobile-close-icon"}),N.default.createElement(Ha,{siteType:l,type:a,enableSearch:r,className:"mobile-hamburger-icon"})),N.default.createElement(si,{menuItems:i,closePopup:m}))))},mi=L.default.div(vi||(vi=n.__makeTemplateObject(["\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}),d.MediaQueries.mbUp,d.MediaQueries.mbDown,ln,rn,sn,(function(n){return n.theme.mbColors.lightGray})),gi=L.default.div(bi||(bi=n.__makeTemplateObject(["\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"])),d.MediaQueries.pcDown,d.MediaQueries.mbDown,d.MediaQueries.tdUp),fi=L.default.div(yi||(yi=n.__makeTemplateObject(["\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"])),d.MediaQueries.pcDown),hi=L.default.div(wi||(wi=n.__makeTemplateObject([""],[""]))),xi=L.default.div(ki||(ki=n.__makeTemplateObject(["\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"])),d.MediaQueries.pcUp,d.MediaQueries.pcDown,d.MediaQueries.mbDown);L.default.div(Ei||(Ei=n.__makeTemplateObject(["\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 vi,bi,yi,wi,ki,Ei,_i,Ci,Ti,Ai,Pi,Mi=L.default.div(_i||(_i=n.__makeTemplateObject(["\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"])),d.MediaQueries.pcDown,d.MediaQueries.mbDown),Bi=L.default.div(Ci||(Ci=n.__makeTemplateObject(["\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"]))),ji=function(n){var t,i=n.onTopBarAppears,o=n.type,s=void 0===o?"home":o,d=n.languageMenu,p=n.menuItems,c=n.setSitewideBannerClosed,u=n.sitewideBannerClosed,m=e.useContext(me),f=m.siteType,h=m.isMobile,x=void 0!==h&&h,v=m.locale,b=m.sitewideBanner,y=m.sitewideBannerShown,w=void 0===y||y,k=m.sponsorComponent,E=m.onBookingClick,_=m.currentUrl,C=m.onLoginClick,T=m.configs,A=T.statics,P=T.enableNavCareBooking,M=T.enableSearchBar,B=T.enableNavCare,j=T.enableProfileMyHealth,L=T.enableNavTogether,S=T.enableProfileEcom,z=T.enableProfileNavigatorMenu,D=m.userState.userInfo,H=m.onLogout,U=m.userProfileRouterPush,R=m.isUserLoading,Q=r.useTranslations().t,I=A.SSO_URL,F=A.HOME_PAGE_URL,q=!!k,V=e.useState(!1),W=V[0],Y=V[1],Z=e.useRef(47),K=e.useRef(null),J=e.useRef(!1),X="helloSites"===f?null===(t=a.LOCALE_SPECS[v])||void 0===t?void 0:t.LOGO_TYPE:f,$="undefined"!=typeof window,nn=e.useCallback(O.default((function(){if("home"===s&&$){if(!K.current)return;var n=K.current.getBoundingClientRect();n.top<=0&&window.scrollY>Z.current&&window.scrollY>n.height+20&&!J.current&&(J.current=!0,Y(!0)),window.scrollY<Z.current&&J.current&&(J.current=!1,Y(!1)),window.scrollY>=0&&(Z.current=window.scrollY)}}),200),[]);e.useEffect((function(){null==i||i(!W)}),[W]),e.useEffect((function(){return window.addEventListener("scroll",nn,{passive:!0}),function(){window.removeEventListener("scroll",nn)}}),[]),e.useEffect((function(){x&&nn()}),[x]);var en=w&&!!b&&!u;return N.default.createElement(mi,{"data-site-type":f,"data-sponsored":q,"data-sitewide-banner-shown":en,"data-header-type":s,"data-collapsed":W,"data-with-search-input":"popup-sub-level"!==s,"data-is-displayed":!0,id:"site-header",ref:K},b?N.default.isValidElement(b)?N.default.cloneElement(b,{isCollapsed:W,setBannerClosed:c,isMobile:x}):b:null,N.default.createElement(gi,{"data-site-type":f},N.default.createElement(fi,{"data-site-type":f},N.default.createElement(ui,{menuItems:p,type:s}),N.default.createElement("a",{href:F},N.default.createElement(hi,null,N.default.createElement(l.Logo,{style:{display:"flex"},type:X,badge:"id-ID"===v&&N.default.createElement("img",{src:g.CommonGAssets.getAssetPath("sehat-badge.png"),width:"56",height:"23"}),dateForSeasonal:new Date,locale:v,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===f?N.default.createElement(Oi,{menuItems:p}):M&&N.default.createElement(Ni,{siteType:f})),N.default.createElement(xi,{"data-site-type":f},"marryBaby"===f?M&&N.default.createElement(Ni,{siteType:f}):N.default.createElement(Oi,{menuItems:p}),N.default.createElement(Mi,null,P&&N.default.createElement(G,{mediaQueryKey:"mbUp"},N.default.createElement(za,{careUrlFe:A.CARE_URL_FE,currentUrl:_,btnName:Q("login.booking"),onCareHeaderClick:E})),d,N.default.createElement(pe,{userInfo:D,siteType:f,onLoginClick:C||function(){var n=window.location.href;window.location.href=I?"".concat(I,"?returnUrl=").concat(n):n},SSO_URL:ue(A.SSO_URL),currentUrl:_,onLogout:H,UP_BASEPATH:a.UP_BASEPATH,isMyHealthEnabled:j,enableCare:B,enableTogether:L,enableEcom:S,togetherApiDomain:ue(A.TOGETHER_API),isUserProfileNavigatorMenuHidden:!z,userProfileRouterPush:U,isLoading:R,locale:v})))),k?N.default.isValidElement(k)?N.default.cloneElement(k,{isCollapsed:W,locale:v,isMobile:x}):k:null)},Ni=function(n){var e=n.siteType;return N.default.createElement(G,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},N.default.createElement(be,null))},Oi=function(n){var t=n.menuItems,a=e.useContext(me),i=a.siteType,o=a.locale,l=a.ssrMenuContent,r=l.categories,s=l.healthTools,d=l.care,p=l.together;return N.default.createElement(G,{mediaQueryKey:"mbUp",style:{height:"100%"}},N.default.createElement(Bi,{"data-site-type":i},null==t?void 0:t.map((function(n,e){return N.default.createElement(xe,{key:e,item:n,menu:"categories"===n.popupType?N.default.createElement(Et,{categories:null==r?void 0:r.items,spotlightsList:null==r?void 0:r.spotlights}):"tools"===n.popupType?N.default.createElement(Oa,{locale:o,healthTools:null==s?void 0:s.items,spotlightHealthTools:null==s?void 0:s.spotlights}):"together"===n.popupType?N.default.createElement(Xt,{communities:null==p?void 0:p.items,spotlights:null==p?void 0:p.spotlights}):"care"===n.popupType?N.default.createElement(pt,{careSpecialties:null==d?void 0:d.items,spotlights:null==d?void 0:d.spotlights}):null})}))))},Li=L.default.div(Ti||(Ti=n.__makeTemplateObject(["\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"])),d.MediaQueries.mbDown);L.default.div(Ai||(Ai=n.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),L.default.a(Pi||(Pi=n.__makeTemplateObject(["\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 Si=function(i){var o,l,s=i.isMobile,d=i.locale,p=i.onTopBarAppears,c=i.languageOptions,u=i.sponsorComponent,m=i.sitewideBanner,f=i.sitewideBannerShown,h=i.className,x=e.useState(!1),v=x[0],b=x[1],y=function(){var n=r.useTranslations().t,t=e.useContext(me),i=t.siteType,o=t.locale,l=t.configs,s=l.enableNavCare,d=l.enableNavTogether,p=l.enableNavEcom,c=l.statics,u="marryBaby"===i,m=e.useMemo((function(){var e,t=[{name:n("home.navigator.menuItem.discover"),id:"categories",link:"".concat(c.HOME_PAGE_URL).concat("tl-PH"===o?"/fil":"","/categories"),niceName:"",thumbnail:u?g.CommonGAssets.getAssetPath("categories-mb.svg"):g.CommonGAssets.getAssetPath("discover.png"),popupType:"categories"},{name:n("home.navigator.menuItem.healthTools"),id:"tools",link:"".concat(c.HOME_PAGE_URL).concat("tl-PH"===o?"/fil":"").concat((null===(e=a.STATIC_PAGES[o])||void 0===e?void 0:e.HEALTH_TOOLS)||""),thumbnail:u?g.CommonGAssets.getAssetPath("healthtools-mb.svg"):g.CommonGAssets.getAssetPath("healthTools.png"),popupType:"tools"}];return s&&t.push({name:n("home.navigator.menuItem.helloCare"),id:"care",link:ce(c.HOME_PAGE_URL+"/care"),thumbnail:g.CommonGAssets.getAssetPath("helloCare-thumbnail.png"),popupType:"zh-TW"===o?null:"care"}),d&&t.push({name:n("home.navigator.menuItem.helloTogether"),id:"together",link:ce(c.TOGETHER_URL_FE+"/"),thumbnail:u?g.CommonGAssets.getAssetPath("community-mb.svg"):g.CommonGAssets.getAssetPath("together.png"),popupType:"together"}),p&&t.push({name:n("home.navigator.menuItem.helloEcom"),id:"ecom",link:ce(c.HOME_PAGE_URL+"/ecom"),thumbnail:g.CommonGAssets.getAssetPath("helloCare-thumbnail.png"),popupType:"shop"}),t}),[o,s,d,p]);return m}();!function(){var t=e.useContext(me),a=t.isFirstLogin,i=t.userState.userInfo;e.useEffect((function(){(null==i?void 0:i.id)&&(a?(null==i?void 0:i.email)&&""!==(null==i?void 0:i.email)?window.insider_object={user:n.__assign({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:n.__assign({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:n.__assign({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:n.__assign({uuid:null==i?void 0:i.id,log_in:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})})}),[])}();var w=function(n){var t=n.hasSponsoredBanners,a=n.isSiteWide,i=n.isSponsored,o=n.isShowingSiteWideBanner,l=n.isMobile,r=e.useRef(null),s=e.useState(0),d=s[0],p=s[1],c=e.useState(64),u=c[0],m=c[1],g=e.useCallback(H.default((function(){var n,e,t,a,i=(null===(n=r.current)||void 0===n?void 0:n.clientHeight)||(null===(t=null===(e=r.current)||void 0===e?void 0:e.children[0])||void 0===t?void 0:t.clientHeight)||0;window.scrollY<=i+200&&(p(i),m((null===(a=r.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||d))}),200),[]);e.useEffect((function(){return window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),function(){window.removeEventListener("resize",g),window.removeEventListener("scroll",g)}}),[]),e.useEffect((function(){g()}),[l,a,o,i,t,r.current]);var f=e.useMemo((function(){var n=l?64:69;return o&&(n+=64),i&&(n+=40,t&&(n+=57)),n}),[l,o,t,i]);return{defaultHeaderHeight:f,headerHeight:d||f,headerBottom:u,headerRef:r}}({isSiteWide:!!m&&!v,isShowingSiteWideBanner:f&&!!m&&!v,isSponsored:!!u,hasSponsoredBanners:!!(null===(l=null===(o=null==u?void 0:u.props)||void 0===o?void 0:o.sponsoredBy)||void 0===l?void 0:l.length),isMobile:s}),k=w.headerRef,E=w.defaultHeaderHeight,_=w.headerHeight,C=w.headerBottom;return N.default.createElement(Li,{id:"navigation-v2",style:{"--default-header-height":E+"px","--header-height":"calc(".concat(_,"px - var(--amp-site-wide-closed), 64px)"),"--header-bottom":C+"px"},className:h},N.default.createElement("section",{ref:k},N.default.createElement(ji,{menuItems:y,type:"home",onTopBarAppears:s?function(n){p&&p(n)}:void 0,languageMenu:N.default.createElement(t.LanguageSwitcher,{languageOptions:c,locale:d}),setSitewideBannerClosed:b,sitewideBannerClosed:v})))},zi=function(e){return n.__awaiter(void 0,void 0,void 0,(function(){var t,l,r,s,d,p,c,u,m,g,f,h,x,v,b,y,w,k,E,_,C,T,A,P,M,B,j,N,O,L,S,z,D,H,U,G;return n.__generator(this,(function(n){switch(n.label){case 0:t={},l="vi-VN_MB"===e,n.label=1;case 1:n.trys.push([1,14,,15]),r="tl-PH"===e?"lang=fil":"",n.label=2;case 2:return n.trys.push([2,4,,5]),[4,Promise.all([fetch("".concat(i.getDiscoverApiDomain(e),"/wp-json/api/categories").concat(r?"?"+r:"")).then((function(n){return n.json()})),fetch("".concat(i.getDiscoverApiDomain(e),"/wp-json/api/spotlights?per_page=10").concat(r?"&"+r:"")).then((function(n){return n.json()})),fetch("".concat(i.getDiscoverApiDomain(e),"/wp-json/api/").concat(l?"health-tools":"healthtools").concat(r?"?"+r:"")).then((function(n){return n.json()})),fetch("".concat(i.getDiscoverApiDomain(e),"/wp-json/api/").concat(l?"health-tools":"healthtools","/favorites").concat(r?"?"+r:"")).then((function(n){return n.json()}))])];case 3:return s=n.sent(),d=s[0],p=s[1],c=s[2],u=s[3],t.categories={items:(null===(w=null===(y=null==d?void 0:d.data)||void 0===y?void 0:y.map)||void 0===w?void 0:w.call(y,pn))||[],spotlights:(null===(C=null===(_=null===(E=null===(k=null==p?void 0:p.data)||void 0===k?void 0:k.articles)||void 0===E?void 0:E.map)||void 0===_?void 0:_.call(E,fn))||void 0===C?void 0:C.filter(hn))||[]},t.healthTools={items:(null===(A=null===(T=null==c?void 0:c.data)||void 0===T?void 0:T.map)||void 0===A?void 0:A.call(T,cn))||[],spotlights:(null===(M=null===(P=null==u?void 0:u.data)||void 0===P?void 0:P.map)||void 0===M?void 0:M.call(P,cn))||[]},[3,5];case 4:return n.sent(),[3,5];case 5:if(!l&&!a.TOGETHER_LOCALES.includes(e))return[3,9];n.label=6;case 6:return n.trys.push([6,8,,9]),[4,Promise.all([fetch("".concat(i.getTogetherApiDomain(),"/api/v1/community?website_url=https://").concat(a.domainLocales[e])).then((function(n){return n.json()})),fetch("".concat(i.getTogetherApiDomain(),"/api/v1/options?website_url=https://").concat(a.domainLocales[e],"&meta_key=popular_post")).then((function(n){return n.json()}))])];case 7:return m=n.sent(),g=m[0],f=m[1],t.together={items:(null===(N=null===(j=null===(B=null==g?void 0:g.data)||void 0===B?void 0:B.communities)||void 0===j?void 0:j.map)||void 0===N?void 0:N.call(j,o.formatCommunity))||[],spotlights:(null===(S=null===(L=null===(O=null==f?void 0:f.data)||void 0===O?void 0:O.posts)||void 0===L?void 0:L.map)||void 0===S?void 0:S.call(L,o.formatPost))||[]},[3,9];case 8:return n.sent(),[3,9];case 9:if(!a.CARE_LOCALES.includes(e))return[3,13];n.label=10;case 10:return n.trys.push([10,12,,13]),[4,Promise.all([fetch(i.getCareApiDomain()+"/api/specialties?_ishome=1&site=".concat(a.domainLocales[e])).then((function(n){return n.json()})),fetch(i.getCareApiDomain()+"/api/search/?site=".concat(a.domainLocales[e],"&type=hospital&order_by=total_doctor")).then((function(n){return n.json()}))])];case 11:return h=n.sent(),x=h[0],v=h[1],t.care={items:(null===(H=null===(D=null===(z=null==x?void 0:x._data)||void 0===z?void 0:z.specialties)||void 0===D?void 0:D.map)||void 0===H?void 0:H.call(D,un))||[],spotlights:(null===(G=null===(U=null==v?void 0:v._data.searches)||void 0===U?void 0:U.map)||void 0===G?void 0:G.call(U,mn))||[]},[3,13];case 12:return n.sent(),[3,13];case 13:return[3,15];case 14:return b=n.sent(),console.error(b),[3,15];case 15:return[2,t]}}))}))};exports.NavHeader=bn,exports.NavigationLogoutPopup=F,exports.NavigationProfileButton=pe,exports.NavigationV2=function(e){var t=n.__assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return N.default.createElement(ge,n.__assign({},t),N.default.createElement(Si,n.__assign({},t)))},exports.ProfilePopup=de,exports.UserProfileNavigation=re,exports.UserStats=le,exports.getNavMenuContent=zi,exports.getNavMenuContentWithCache=function(e){return n.__awaiter(void 0,void 0,void 0,(function(){return n.__generator(this,(function(n){switch(n.label){case 0:return[4,A.getDataWithCache("nav-menu-content",(function(){return zi(e||"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,n.sent()||{}]}}))}))};
|
package/build/index-0ad02f79.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var n=require("./tslib.es6-9ca973bc.js"),e=require("react"),r=require("./theme-929496b2.js"),t=require("styled-components"),i=require("./useTranslations-dc5a775a.js"),o=require("./index-fe95aecd.js"),a=require("./index-04157b04.js"),d=require("./index-e6ff8187.js"),s=require("./index-22f85e6b.js"),l=require("./animation-541292d3.js");function p(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var c,u,f=p(e),b=p(t),x=b.default.div(c||(c=n.__makeTemplateObject(["\n min-width: 212px;\n width: ",";\n background-color: #ffffff;\n border-radius: 6px;\n overflow: hidden;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n ul {\n list-style: none;\n }\n"],["\n min-width: 212px;\n width: ",";\n background-color: #ffffff;\n border-radius: 6px;\n overflow: hidden;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n ul {\n list-style: none;\n }\n"])),(function(n){return n.width+"px"})),h=b.default.li(u||(u=n.__makeTemplateObject(["\n background-color: inherit;\n display: flex;\n align-items: center;\n justify-content: left;\n gap: 10px;\n padding: 10px 16px;\n cursor: pointer;\n transition: background-color 200ms ease-in-out;\n &:hover {\n background-color: ",";\n }\n .icon {\n width: 16px;\n height: 16px;\n }\n"],["\n background-color: inherit;\n display: flex;\n align-items: center;\n justify-content: left;\n gap: 10px;\n padding: 10px 16px;\n cursor: pointer;\n transition: background-color 200ms ease-in-out;\n &:hover {\n background-color: ",";\n }\n .icon {\n width: 16px;\n height: 16px;\n }\n"])),r.theme.colors.neutral50),m=function(e){var r=e.children,t=e.width,i=void 0===t?300:t,o=n.__rest(e,["children","width"]);return f.default.createElement(x,n.__assign({},o,{width:i}),f.default.createElement("ul",null,r))};m.Item=function(e){var r=e.icon,t=e.children,i=n.__rest(e,["icon","children"]);return f.default.createElement(h,n.__assign({},i),r&&f.default.createElement("div",{className:"icon"},r),t)};var g,w="300ms",v=b.default.div(g||(g=n.__makeTemplateObject(["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n .title {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0;\n padding-bottom: 16px;\n border-bottom: none;\n }\n\n &[data-is-mb='true'] {\n background: #ffffff;\n border: 1px solid #e0e9fb;\n border-radius: 16px;\n input {\n border-radius: 16px;\n }\n }\n\n &[data-isActive='true'] {\n border: 1px solid #2661ad;\n }\n\n &[data-is-mb='false'] .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n\n &[data-is-mb='true'] .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 1.3px solid #9495a0;\n border-radius: 10px;\n transition: all "," ease-in-out;\n &.active {\n border: none;\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n padding: 0;\n border-radius: 10px;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n .title {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0;\n padding-bottom: 16px;\n border-bottom: none;\n }\n\n &[data-is-mb='true'] {\n background: #ffffff;\n border: 1px solid #e0e9fb;\n border-radius: 16px;\n input {\n border-radius: 16px;\n }\n }\n\n &[data-isActive='true'] {\n border: 1px solid #2661ad;\n }\n\n &[data-is-mb='false'] .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n\n &[data-is-mb='true'] .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 1.3px solid #9495a0;\n border-radius: 10px;\n transition: all "," ease-in-out;\n &.active {\n border: none;\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n padding: 0;\n border-radius: 10px;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),r.theme.colors.gray50,r.theme.colors.gray600,w,r.theme.colors.primaryBase,r.theme.colors.primaryBase,l.fadeIn,w,w,l.fadeIn,w);exports.Menu=m,exports.NewBabyProfileRadio=function(n){var e=n.isActive,t=n.onChange,l=n.value,p=void 0===l?"":l,c=n.onInputChange,u=n.siteType,b=i.useTranslations().t,x="marryBaby"===u;return f.default.createElement(v,{onClick:function(){return t("new")},"data-is-mb":x,"data-isActive":x&&e},"marryBaby"===u?f.default.createElement("div",{className:"title"},f.default.createElement(d.MarryBabyText,{type:"bodytext-1",color:r.theme.colors.gray800},b("chooseBaby.new")),f.default.createElement("div",{className:e?"radio active":"radio"},e&&f.default.createElement(o.Icon.CheckActiveMB,{size:26}))):f.default.createElement("div",{className:"title"},f.default.createElement(s.Text,{size:"p2",color:r.theme.colors.gray800},b("chooseBaby.new")),f.default.createElement("div",{className:e?"radio active":"radio"})),f.default.createElement(a.Input,{name:"name",value:p,size:"md",placeholder:b("chooseBaby.placeholder"),type:"text",onChange:c}))};
|