@hhgtech/hhg-components 1.23.45 → 1.23.47-beta-1
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/{FullScreen-b6ba44b4.js → FullScreen-db0f139c.js} +1 -1
- package/build/{Vietnam-9bfd6a5e.js → Vietnam-1b7572c7.js} +1 -1
- package/build/{Visible-96034ee3.js → Visible-41dbaa4c.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/input/index.d.ts +4 -2
- package/build/components/mantine/input/number.d.ts +1 -1
- package/build/components/mantine/phone/index.d.ts +3 -3
- package/build/components/organisms/onboardingModal/components/formSection/index.d.ts +2 -2
- package/build/components/organisms/onboardingModal/components/onboardingForm/index.styled.d.ts +1 -1
- package/build/components/organisms/onboardingModal/components/otpForm/index.d.ts +3 -3
- package/build/components/organisms/onboardingModal/components/otpForm/index.styled.d.ts +1 -1
- package/build/components/organisms/onboardingModal/components/{emailOnboardingForm → personalInfoForm}/index.d.ts +2 -2
- package/build/components/organisms/onboardingModal/index.d.ts +12 -7
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-3ba6f34d.js +1 -0
- package/build/dataTransform-dcbdd3fb.js +1 -0
- package/build/{defaultClassWrapper-8b739b65.js → defaultClassWrapper-1376d771.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/{FullScreen-d051792d.js → FullScreen-fff2b5c7.js} +1 -1
- package/build/esm/{Vietnam-cae68a21.js → Vietnam-ef6f3dc3.js} +1 -1
- package/build/esm/{Visible-d1fa0487.js → Visible-35ffc9cf.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-fb29d458.js +1 -0
- package/build/esm/dataTransform-343f3f01.js +1 -0
- package/build/esm/defaultClassWrapper-b8ee20af.js +1 -0
- 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-8348809b.js → getDynamicHealthTool-5e34abf4.js} +1 -1
- package/build/esm/{getSocialList-426ab78b.js → getSocialList-fd23fb5b.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-02046a3c.js +1 -0
- package/build/esm/index-13b0b28f.js +1 -0
- package/build/esm/index-376ebb4f.js +1 -0
- package/build/esm/{index-5d3db4bb.js → index-43179a20.js} +1 -1
- package/build/esm/{index-f59ba591.js → index-478a6f90.js} +1 -1
- package/build/esm/{index-09ce9f75.js → index-49029227.js} +1 -1
- package/build/esm/{index-b518a665.js → index-52ec000d.js} +1 -1
- package/build/esm/index-63e6d0d4.js +1 -0
- package/build/esm/index-69561db5.js +1 -0
- package/build/esm/index-7191492d.js +1 -0
- package/build/esm/index-725f3f13.js +1 -0
- package/build/esm/{index-dee8321e.js → index-7e331974.js} +1 -1
- package/build/esm/index-83857c3b.js +6 -0
- package/build/esm/index-8f5e3aa7.js +1 -0
- package/build/esm/{index-01ab972d.js → index-a0e90451.js} +1 -1
- package/build/esm/index-b4255462.js +1 -0
- package/build/esm/{index-140d9ce5.js → index-b67896ef.js} +1 -1
- package/build/esm/{index-2d4cef18.js → index-baf5b8c0.js} +1 -1
- package/build/esm/index-c77660e9.js +1 -0
- package/build/esm/index-c83a55bd.js +1 -0
- package/build/esm/{index-0d400fbe.js → index-c8f61247.js} +1 -1
- package/build/esm/index-ff3764cf.js +1 -0
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-a7bdfd43.js → index.styled-0390f270.js} +1 -1
- package/build/esm/index.styled-1372ac2c.js +1 -0
- package/build/esm/index.styled-88cc85a0.js +1 -0
- package/build/esm/{index.styled-ce7de8a7.js → index.styled-befe8471.js} +1 -1
- package/build/esm/index.styled-f5713480.js +1 -0
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/pwg.js +1 -1
- package/build/esm/{routing-7a0eadab.js → routing-3f9ef717.js} +1 -1
- package/build/esm/{screenSizeContext-89bfba96.js → screenSizeContext-e1259009.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-9fad59d9.js → translationsProvider-43a9f682.js} +1 -1
- package/build/esm/{tslib.es6-c135df17.js → tslib.es6-240993d1.js} +1 -1
- package/build/esm/{types-d5c4ba00.js → types-09044d97.js} +1 -1
- package/build/esm/types-b6afea22.js +1 -0
- package/build/esm/types.js +1 -1
- package/build/esm/{useFbDataLayer-26ead4bc.js → useFbDataLayer-821dbcc2.js} +1 -1
- package/build/esm/useHealthToolCache-1042ea64.js +1 -0
- package/build/esm/{useTranslations-07935402.js → useTranslations-817e44f2.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-d6c10a37.js → getDynamicHealthTool-c15b6d1f.js} +1 -1
- package/build/{getSocialList-588f9368.js → getSocialList-dd2d0c27.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-ade20384.js → index-09e86e9e.js} +1 -1
- package/build/{index-f07967db.js → index-100098f4.js} +1 -1
- package/build/{index-97eede1b.js → index-1ab146b3.js} +1 -1
- package/build/{index-5f4f4252.js → index-2605e466.js} +1 -1
- package/build/index-32221155.js +1 -0
- package/build/{index-573109b2.js → index-48a68333.js} +1 -1
- package/build/index-54cc6033.js +1 -0
- package/build/index-56770262.js +1 -0
- package/build/index-57813d03.js +1 -0
- package/build/index-64171f27.js +1 -0
- package/build/{index-41e59708.js → index-7bf33f6e.js} +1 -1
- package/build/{index-a74c9dab.js → index-7d2fc97d.js} +1 -1
- package/build/{index-2ab1cbc7.js → index-8920e408.js} +1 -1
- package/build/{index-edcab27c.js → index-a13b0a68.js} +1 -1
- package/build/index-ad355507.js +1 -0
- package/build/index-bd2c44f0.js +1 -0
- package/build/index-cc29dcf3.js +1 -0
- package/build/index-cffee0dc.js +1 -0
- package/build/{index-7f4c5d0e.js → index-dd5d2e93.js} +1 -1
- package/build/index-e0d0b6de.js +1 -0
- package/build/index-f2d9daa2.js +1 -0
- package/build/index-f922ec82.js +1 -0
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-a31a8bca.js → index.styled-088c5ce9.js} +1 -1
- package/build/{index.styled-338265f7.js → index.styled-08b41a25.js} +1 -1
- package/build/index.styled-30965c2f.js +1 -0
- package/build/index.styled-3a315556.js +1 -0
- package/build/index.styled-b9733d21.js +1 -0
- package/build/lead/campaign.d.ts +4 -2
- package/build/lead/layouts/lightbox/fields/index.d.ts +9 -0
- package/build/lead/layouts/lightbox/formContext.d.ts +12 -0
- package/build/lead/layouts/{lightbox.d.ts → lightbox/index.d.ts} +3 -1
- package/build/lead/newLeadPopup.d.ts +4 -2
- package/build/lead/oldLeadPopup.d.ts +1 -1
- package/build/lead/utils/checkUsedEmailOrPhone.d.ts +11 -0
- package/build/lead.css +1 -1
- 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-5a150471.js +1 -0
- package/build/{screenSizeContext-3120388f.js → screenSizeContext-a42a17c7.js} +1 -1
- package/build/together.js +1 -1
- package/build/{translationsProvider-1c969fd0.js → translationsProvider-54c2a545.js} +1 -1
- package/build/{types-508be29a.js → types-49cf5da3.js} +1 -1
- package/build/types-90bfed52.js +1 -0
- package/build/types.js +1 -1
- package/build/{useFbDataLayer-685c7d96.js → useFbDataLayer-a740a248.js} +1 -1
- package/build/useHealthToolCache-778cf190.js +1 -0
- package/build/{useTranslations-addf22a9.js → useTranslations-e6c8c77c.js} +1 -1
- package/package.json +4 -1
- package/build/core-f219e5f4.js +0 -1
- package/build/esm/core-07d30742.js +0 -1
- package/build/esm/defaultClassWrapper-6948fb9a.js +0 -1
- package/build/esm/index-0742d89b.js +0 -1
- package/build/esm/index-27817aea.js +0 -1
- package/build/esm/index-4da63437.js +0 -1
- package/build/esm/index-7917a923.js +0 -1
- package/build/esm/index-822dfb58.js +0 -1
- package/build/esm/index-9799252f.js +0 -1
- package/build/esm/index-b52faf3d.js +0 -1
- package/build/esm/index-fbef2b75.js +0 -1
- package/build/esm/index-fcfe3b62.js +0 -1
- package/build/esm/types-874b3cf5.js +0 -1
- package/build/esm/useHealthToolCache-6d4cae2c.js +0 -1
- package/build/index-23d70144.js +0 -1
- package/build/index-2f02b924.js +0 -1
- package/build/index-5663e7c1.js +0 -1
- package/build/index-698e3aa4.js +0 -1
- package/build/index-99c57bd4.js +0 -1
- package/build/index-aad8e418.js +0 -1
- package/build/index-d09afddf.js +0 -1
- package/build/index-d9788d2b.js +0 -1
- package/build/lead/hooks/useLogicValidatePhoneAndEmail.d.ts +0 -8
- package/build/routing-496ead81.js +0 -1
- package/build/types-a79b79f8.js +0 -1
- package/build/useHealthToolCache-cd634c51.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-fb7102e5.js → BMI_BOYS.percentile.monthly-bd85310c.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-6fd84b54.js → BMI_BOYS.percentile.weekly-29804153.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-fc0afe8a.js → BMI_BOYS.percentile.yearly-a8d1ba42.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-24af64b2.js → BMI_BOYS.zscore.monthly-f6aaf32f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-1417c761.js → BMI_BOYS.zscore.weekly-0cedf421.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-4bfb6d9b.js → BMI_BOYS.zscore.yearly-cfffb60a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-7e875d5a.js → BMI_GIRLS.percentile.monthly-be727ba3.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-6e21036f.js → BMI_GIRLS.percentile.weekly-368b23c2.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-27a473ea.js → BMI_GIRLS.percentile.yearly-f18926a6.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-748e4501.js → BMI_GIRLS.zscore.monthly-ceb0d8c8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-5d316128.js → BMI_GIRLS.zscore.weekly-a2e5651d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-56776e44.js → BMI_GIRLS.zscore.yearly-6f1b0cdb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7a3ecc1b.js → HEAD CIRCUM_BOYS.percentile.monthly-3a2feaf6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-71970655.js → HEAD CIRCUM_BOYS.percentile.weekly-5988f757.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-5ddb9b3a.js → HEAD CIRCUM_BOYS.percentile.yearly-5d90aa52.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-30816251.js → HEAD CIRCUM_BOYS.zscore.monthly-d91aca7d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-82c9326a.js → HEAD CIRCUM_BOYS.zscore.weekly-da9e7037.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-809e1f43.js → HEAD CIRCUM_BOYS.zscore.yearly-30d5291d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-0dc3437a.js → HEAD CIRCUM_GIRLS.percentile.monthly-c901fd9a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-8b2f4981.js → HEAD CIRCUM_GIRLS.percentile.weekly-da9a0883.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-39ad89f8.js → HEAD CIRCUM_GIRLS.percentile.yearly-17debc86.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-c26f9705.js → HEAD CIRCUM_GIRLS.zscore.monthly-970acee9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-2f657e5f.js → HEAD CIRCUM_GIRLS.zscore.weekly-6a9128b1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-a4afe1bf.js → HEAD CIRCUM_GIRLS.zscore.yearly-663a95fc.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-ffc661c4.js → HEIGHT_BOYS.percentile.monthly-f0724a80.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-654eb828.js → HEIGHT_BOYS.percentile.weekly-d0cb4afe.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-e155a9de.js → HEIGHT_BOYS.percentile.yearly-43feed36.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-ff5d5c80.js → HEIGHT_BOYS.zscore.monthly-291f6f5b.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-5e5cbcee.js → HEIGHT_BOYS.zscore.weekly-6beaf9ec.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-812086d1.js → HEIGHT_BOYS.zscore.yearly-62328ac2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-9fd41232.js → HEIGHT_GIRLS.percentile.monthly-123d6337.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-1e4e9758.js → HEIGHT_GIRLS.percentile.weekly-0da6e7b7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-1b7d76c4.js → HEIGHT_GIRLS.percentile.yearly-39844533.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-dbaa8ad6.js → HEIGHT_GIRLS.zscore.monthly-0c7def31.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-07f7296d.js → HEIGHT_GIRLS.zscore.weekly-dd44396a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-86c5e8a9.js → HEIGHT_GIRLS.zscore.yearly-9023db0c.js} +0 -0
- /package/build/{Locale-7f347677.js → Locale-80bffa37.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-29537bb7.js → WEIGHT_BOYS.percentile.monthly-6237491d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-80a578c4.js → WEIGHT_BOYS.percentile.weekly-18fd3414.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-70b3a393.js → WEIGHT_BOYS.percentile.yearly-a6d775b7.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-3553fff6.js → WEIGHT_BOYS.zscore.monthly-1a1ade54.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-4fa288ba.js → WEIGHT_BOYS.zscore.weekly-211fdee5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-cc00430e.js → WEIGHT_BOYS.zscore.yearly-3d248f25.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-0464be24.js → WEIGHT_GIRLS.percentile.monthly-421b15a2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-292f1fb2.js → WEIGHT_GIRLS.percentile.weekly-a31158c3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-2be26b24.js → WEIGHT_GIRLS.percentile.yearly-e9144f28.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-8f05ec5d.js → WEIGHT_GIRLS.zscore.monthly-90904fac.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-1b1279cd.js → WEIGHT_GIRLS.zscore.weekly-0625c2ec.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-5e81527f.js → WEIGHT_GIRLS.zscore.yearly-d077019e.js} +0 -0
- /package/build/components/organisms/onboardingModal/components/{emailOnboardingForm → personalInfoForm}/index.styled.d.ts +0 -0
- /package/build/{constants-bb7c1bef.js → constants-2e43d414.js} +0 -0
- /package/build/{cookieHelper-a181cb24.js → cookieHelper-a21842dc.js} +0 -0
- /package/build/{dataTransform-06de3ec5.js → dataTransform-ca15fe84.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-2a216ed6.js → BMI_BOYS.percentile.monthly-0559acb3.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-70615588.js → BMI_BOYS.percentile.weekly-eeef4c48.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-a631d796.js → BMI_BOYS.percentile.yearly-a73046bf.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-fe6602eb.js → BMI_BOYS.zscore.monthly-e5616c32.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-20f0a77c.js → BMI_BOYS.zscore.weekly-a636e994.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8d560ffd.js → BMI_BOYS.zscore.yearly-c20a7cd8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-0591c4d4.js → BMI_GIRLS.percentile.monthly-b2e48159.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-7ed76adc.js → BMI_GIRLS.percentile.weekly-48d12ebf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-ad84d358.js → BMI_GIRLS.percentile.yearly-0659c605.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-493581ca.js → BMI_GIRLS.zscore.monthly-105ff13a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-620c93a2.js → BMI_GIRLS.zscore.weekly-498605b2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-3cde5017.js → BMI_GIRLS.zscore.yearly-cac807b2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-26bee5c8.js → HEAD CIRCUM_BOYS.percentile.monthly-87ffcca4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-122e793d.js → HEAD CIRCUM_BOYS.percentile.weekly-b3511605.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e6e465c3.js → HEAD CIRCUM_BOYS.percentile.yearly-66256d0d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-9b9c3dae.js → HEAD CIRCUM_BOYS.zscore.monthly-9423c8d7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-fc39110a.js → HEAD CIRCUM_BOYS.zscore.weekly-83981db3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-bfe81079.js → HEAD CIRCUM_BOYS.zscore.yearly-f8508317.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-e84b9c50.js → HEAD CIRCUM_GIRLS.percentile.monthly-d1035b5c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-365eebdd.js → HEAD CIRCUM_GIRLS.percentile.weekly-e99383ab.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-1b58157a.js → HEAD CIRCUM_GIRLS.percentile.yearly-6db500b0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-c9b2128e.js → HEAD CIRCUM_GIRLS.zscore.monthly-362604be.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a4a3a96e.js → HEAD CIRCUM_GIRLS.zscore.weekly-9c9e04a5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-827c566c.js → HEAD CIRCUM_GIRLS.zscore.yearly-585a50c6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-a3f9ab78.js → HEIGHT_BOYS.percentile.monthly-48894ae6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1011443b.js → HEIGHT_BOYS.percentile.weekly-19534e2d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-cd873608.js → HEIGHT_BOYS.percentile.yearly-3c258d59.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-ccfff734.js → HEIGHT_BOYS.zscore.monthly-78d3a94f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-30fda4ff.js → HEIGHT_BOYS.zscore.weekly-d38685e4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f1769fbd.js → HEIGHT_BOYS.zscore.yearly-6298cf77.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-6493ac4b.js → HEIGHT_GIRLS.percentile.monthly-aee5f4b9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-82f339da.js → HEIGHT_GIRLS.percentile.weekly-03ebd551.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-9f27cf51.js → HEIGHT_GIRLS.percentile.yearly-714f65fe.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-1c7d69d4.js → HEIGHT_GIRLS.zscore.monthly-e51f5900.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-372e6321.js → HEIGHT_GIRLS.zscore.weekly-4106958d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-471f0629.js → HEIGHT_GIRLS.zscore.yearly-c0165003.js} +0 -0
- /package/build/esm/{Locale-3c93490d.js → Locale-037534b2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-4904053b.js → WEIGHT_BOYS.percentile.monthly-118d6093.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-d9532bff.js → WEIGHT_BOYS.percentile.weekly-209d4bd0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-4de97bd7.js → WEIGHT_BOYS.percentile.yearly-ad6814b3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-49582b62.js → WEIGHT_BOYS.zscore.monthly-80a9b284.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-507b7561.js → WEIGHT_BOYS.zscore.weekly-4a008a1e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-79a3e487.js → WEIGHT_BOYS.zscore.yearly-7fd3305b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-2d8c6f16.js → WEIGHT_GIRLS.percentile.monthly-c1ed3cc1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-808a08e0.js → WEIGHT_GIRLS.percentile.weekly-66d569ae.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-e0e15dbd.js → WEIGHT_GIRLS.percentile.yearly-2dfc195c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-7359d042.js → WEIGHT_GIRLS.zscore.monthly-b6daa43e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-fe84089b.js → WEIGHT_GIRLS.zscore.weekly-e80200aa.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-77ef83fd.js → WEIGHT_GIRLS.zscore.yearly-9df0ad73.js} +0 -0
- /package/build/esm/{constants-96f51206.js → constants-0d8a5ba2.js} +0 -0
- /package/build/esm/{cookieHelper-924c57bd.js → cookieHelper-1adbc53a.js} +0 -0
- /package/build/esm/{dataTransform-38db9371.js → dataTransform-1d2790b6.js} +0 -0
- /package/build/esm/{isProduction-fa5523f4.js → isProduction-300eb852.js} +0 -0
- /package/build/esm/{localizeNumberFormat-b45d2b88.js → localizeNumberFormat-c16acd8e.js} +0 -0
- /package/build/esm/{theme-fb55b8fe.js → theme-ecc47489.js} +0 -0
- /package/build/esm/{translationsContext-dd5079f7.js → translationsContext-7877cefd.js} +0 -0
- /package/build/esm/{types-7e2cc2aa.js → types-97c75f7f.js} +0 -0
- /package/build/esm/{useOutsideClick-c5c42722.js → useOutsideClick-5233f2da.js} +0 -0
- /package/build/esm/{useScrollbarSize-58b4f95c.js → useScrollbarSize-f4b74b67.js} +0 -0
- /package/build/esm/{utils-40872161.js → utils-4f9b8a6b.js} +0 -0
- /package/build/{isProduction-1394b531.js → isProduction-ca72e14c.js} +0 -0
- /package/build/{localizeNumberFormat-76e9b15b.js → localizeNumberFormat-0d8f8429.js} +0 -0
- /package/build/{theme-18e1f197.js → theme-f0177d86.js} +0 -0
- /package/build/{translationsContext-df106f64.js → translationsContext-eefc195c.js} +0 -0
- /package/build/{tslib.es6-2b954e9f.js → tslib.es6-b360563b.js} +0 -0
- /package/build/{types-ba3fddef.js → types-e4a95688.js} +0 -0
- /package/build/{useOutsideClick-9a9a31d0.js → useOutsideClick-f5c866ed.js} +0 -0
- /package/build/{useScrollbarSize-1c0fede3.js → useScrollbarSize-58898feb.js} +0 -0
- /package/build/{utils-2f2f3760.js → utils-6c666b6a.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e,a as n,_ as t,d as o,e as i}from"./tslib.es6-c135df17.js";import r,{useState as a,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-96f51206.js";import{b as g,d as m}from"./index-dee8321e.js";import{g as f,s as C,d as v}from"./cookieHelper-924c57bd.js";import{u as E}from"./useTranslations-07935402.js";import x from"lodash/debounce";import{I as y}from"./index-2d4cef18.js";import w,{createGlobalStyle as b}from"styled-components";import{T as L}from"./index-09ce9f75.js";import{t as S}from"./theme-fb55b8fe.js";import k from"react-loading-skeleton";import{M as T}from"./utils-40872161.js";import A from"lodash/shuffle";import{u as R}from"./useOutsideClick-c5c42722.js";import I from"string-format";var M,_,P,N,V,H,F,z,D,B,O,G,K=w.div(M||(M=e([""],[""]))),Z=w.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=w.section(P||(P=e([""],[""]))),U=w.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=w(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=b(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 r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.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 r.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:n},r.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 r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:n},r.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 r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.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"}),r.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 r.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}))},ee=w.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=w.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=w.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=w(W)(B||(B=e(["\n width: 12px;\n height: 18px;\n"],["\n width: 12px;\n height: 18px;\n"]))),ie=w.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),re=w((function(e){var t=e.count,o=e.className;return r.createElement(r.Fragment,null,n([],Array(t),!0).map((function(e,n){return r.createElement(ee,{className:o,key:n},r.createElement(k,{count:1,height:32}),r.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"]))),ae=function(e){var n=e.cities,t=e.isLoading,o=e.onLocationClick,i=e.onCurrentLocationClick,a=e.geoLocationPermission,c=void 0===a?"unset":a,l=e.isLocationLoading,s=e.selectedLocation,u=E().t,d="denied"===c,p=function(){return r.createElement(ie,{role:"button",tabIndex:0,onClick:function(e){d||(e.nativeEvent.stopImmediatePropagation(),l||i())},"data-is-denied":d},d?r.createElement(L,{color:"var(--gray600)",size:"md"},"x"):l?r.createElement(k,{height:20,width:20}):r.createElement(X,{color:S.colors.primaryBase}),r.createElement("div",null,d?r.createElement(L,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},u("booking.searchBar.grantLocation")):l?r.createElement(k,{height:20,style:{width:"calc(100% - 16px)"}}):r.createElement(L,{size:"md"},u("booking.searchBar.useCurrentLocation"))))};return r.createElement(ne,{"data-testid":"location-search-results"},r.createElement(te,null,t?r.createElement(re,{count:5}):!n||n.length<1?r.createElement(r.Fragment,null,p(),r.createElement(ie,{"data-is-denied":"true"},r.createElement(L,{size:"sm",color:"#ccc"},u("booking.searchBar.noResults")))):r.createElement(r.Fragment,null,p(),n.map((function(e){return r.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},r.createElement(oe,{color:S.colors.neutral400}),r.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,r){void 0===i&&(i=!1);var a={eventName:e,eventArgs:t||{}};return o.state[r]=i?n([a],o.state[r],!0):n(n([],o.state[r],!0),[a],!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 r=n([],o.state.eventQueue,!0),a=r.shift();if(!(i<=(a.eventName===ce.REMOVE_LAST_VISIBLE_NODE||a.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=a.eventName,l=a.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:r.unshift({eventName:ce.REMOVE_LAST_VISIBLE_NODE,eventArgs:{removingCharacterNode:!0}});break;case ce.PAUSE_FOR:var p=a.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}}),r.unshift.apply(r,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=a.eventArgs.speed;break;case ce.CHANGE_DELAY:o.options.delay=a.eventArgs.delay}o.options.loop&&(a.eventName===ce.REMOVE_LAST_VISIBLE_NODE||a.eventArgs&&a.eventArgs.temp||(o.state.calledEvents=n(n([],o.state.calledEvents,!0),[a],!1))),o.state.eventQueue=r,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(),r=i.t,a=i.locale,c=l((function(){if(o)return[];var e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==a&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),A(e).map((function(e){return r(e)}))}),[r,a]);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=w.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,a=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 r.createElement(he,t({onClick:function(){return a&&a()},ref:p},h),r.createElement(Q,{inputClassName:"location"===n?"focused":void 0,name:"booking-search-placeholder",displayIcon:r.createElement(J,{color:S.colors.gray400}),placeholder:d("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}var me,fe,Ce,ve,Ee,xe,ye=w.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"]))),we=w.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"]))),be=w.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=w.div(ve||(ve=e(["\n width: 100%;\n margin-left: 24px;\n"],["\n width: 100%;\n margin-left: 24px;\n"]))),Se=w(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,a=e.iconLeft,c=e.textRight;return r.createElement(ye,{className:n},r.createElement(be,{onClick:t},a||r.createElement(q,{color:S.colors.gray800})),r.createElement(Le,null,r.createElement(Se,{size:"md",type:"bold"},o)),r.createElement(we,{onClick:i},c&&r.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 r=t(t({},e),{focused:"search"});return e.isMobile?Re(r):r;case xe.ChangeInputLocation:return t(t({},e),{searchLocationKeywords:n.payload});case xe.ChangeInputSearch:var a=n.payload;return t(t({},e),{searchKeywords:a,isLoadingSearchResults:a.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 r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},r.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=w.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=w(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 r.createElement(De,{onClick:n,title:t},r.createElement(ze,null),r.createElement(Be,{size:"s3",color:"white"},t))},Ge=w.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=w.div(Ne||(Ne=e(["\n position: relative;\n"],["\n position: relative;\n"]))),Ze=w(Ke)(Ve||(Ve=e(["\n flex: 1;\n"],["\n flex: 1;\n"]))),je=w(Ke)(He||(He=e(["\n flex: 2;\n"],["\n flex: 2;\n"]))),Ue=w((function(e){var n=e.className,t=e.color;return r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),r.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,a=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),w=t.focused,b=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?a(e.trim(),t):(a.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 r.createElement(Ge,null,r.createElement(Ze,{ref:x},r.createElement(Q,{inputClassName:"location"===w?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:r.createElement(W,{className:"location-pin-icon",color:M}),actionIcon:r.createElement(Ue,{color:S.colors.gray300,className:""!==b?"shown":""}),onActionClick:function(){o({type:xe.ClearInputLocation}),i.cancel(),s()},value:b,onChange:P,onFocus:function(){return o({type:xe.FocusInputLocation})},size:"md",trackingAttributes:m}),!n&&h()),r.createElement(je,{ref:y},r.createElement(Q,{placeholder:A||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:r.createElement(Ue,{color:S.colors.gray300,className:""!==T?"shown":""}),onActionClick:function(){o({type:xe.ClearInputSearch}),a.cancel(),a("",t),d()},value:T,onChange:_,onFocus:function(){return o({type:xe.FocusInputSearch})},inputClassName:"search"===w?"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&&r.createElement(Oe,{onClick:function(){C({cityId:t.selectedLocation.id,keyword:T})}}))}var Ye,qe,We,Xe,Je,$e,en,nn,tn,on,rn,an,cn,ln,sn=w.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=w.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=w(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=w.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=w.svg(Je||(Je=e(["\n margin: 0 auto;\n display: block;\n"],["\n margin: 0 auto;\n display: block;\n"]))),gn=w.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 r.createElement("svg",{width:n||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{clipPath:"url(#clip0_14712_400114)"},r.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),r.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"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_14712_400114"},r.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"}))))},services:function(e){var n=e.width,t=e.height;return r.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),r.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,a=l((function(){var e=mn[n]||$;return r.createElement(e,{width:32,height:"services"===n?32:24})}),[n]);return r.createElement(sn,{onClick:function(){return i&&i(t)},onKeyDown:function(e){"Enter"!==e.key&&"Space"!==e.key||i&&i(t)},tabIndex:0,role:"button"},r.createElement(pn,null,"hospitals"===n?r.createElement(hn,{width:"12",height:"16",viewBox:"0 0 12 16"},r.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"})):r.createElement(un,{type:n},o?r.createElement("img",{src:o,width:32,height:"services"===n?32:24}):a)),r.createElement(dn,{color:S.colors.gray800,size:"p3"},t.name))},Cn=function(){return r.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},r.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 r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},r.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 r.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},r.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 r.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},r.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=w.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),wn=w.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"]))),bn=w.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=w.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=w.section(rn||(rn=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=w.ul(an||(an=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=w(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=a(!1),m=g[0],f=g[1],C=E(),v=C.t,x=C.locale,y=o.selectedLocation,w=o.searchKeywords,b=l((function(){return h[x]}),[x]),T=l((function(){return{doctors:{name:v("booking.searchPopup.doctors"),icon:r.createElement(Cn,null),slug:b.DOCTOR},services:{name:v("booking.searchPopup.services"),icon:r.createElement(vn,null),slug:b.SERVICE},hospitals:{name:v("booking.searchPopup.hospitals"),icon:r.createElement(En,null),slug:b.HOSPITAL},specialties:{name:v("booking.searchPopup.specialties"),icon:r.createElement(xn,null),slug:b.SPECIALTIES}}}),[n,b]),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 r.createElement(fn,{key:e.id,item:e,type:n,imageUrl:e.logo||e.avatar||e.thumbnail,onClickItem:I})}return r.createElement("section",null,r.createElement(yn,null,r.createElement(wn,null,T[n].icon,r.createElement(bn,null,T[n].name)),p.trim().length<=Te[x]&&r.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})}},r.createElement(L,{size:"p3",color:S.colors.primaryBase},v("booking.searchPopup.seeAll")))),(d||t&&t.length>0)&&r.createElement(Sn,null,r.createElement(kn,null,d&&Array(2).fill(void 0).map((function(e,t){return r.createElement(sn,{key:n+"loading"+t},r.createElement(pn,null,r.createElement(gn,null,r.createElement(k,{height:14,width:"hospitals"===n?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),r.createElement(k,{width:120,height:24}))})),!d&&t&&t.length>0&&t.slice(0,R).map(M)),r.createElement(kn,{isShown:m,isMore:!0},t.slice(R,-1).map(M)),"specialties"===n&&R<t.length&&!d&&r.createElement("button",{onClick:function(){return f(!m)}},r.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]&&r.createElement("button",{onClick:function(){var e=T[n].slug,t="/".concat(y.slug,"/").concat(e,"?q=").concat(w);i({type:xe.NavigateTo,payload:t})}},r.createElement(Tn,{size:"p3",color:S.colors.primaryBase},v("booking.searchPopup.searchIn.".concat(n),{name:p})))),!d&&0===(null==t?void 0:t.length)&&r.createElement(Sn,null,r.createElement(L,{size:"sm",color:S.colors.gray400},v("booking.searchBar.noResults"))))},Rn=w.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,a=e.isLoading,c=e.keyword;return r.createElement(Rn,null,n&&n.map((function(e){return r.createElement(An,{type:e.type,state:t,dispatch:o,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:a,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,w=e.geoLocationCoordinates,b=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=a(void 0),$=J[0],ee=J[1],ne=function(){var e=a((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=a((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],r=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}),r(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,re=d(Ie,Ae,(function(e){return t(t({},e),{isDebug:R,isMobile:n,geoLocationPermission:y||te||"unset",geoLocationCoordinates:w||oe||null,searchKeywords:S,initialSelectedCity:b||null,selectedLocation:b||e.selectedLocation||null,searchLocationKeywords:(null==b?void 0:b.name)||e.searchLocationKeywords,autoCompleteDisabled:V,inputSearchPlaceholder:F,locale:q})})),ce=re[0],le=re[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,we=ce.isMobileModalOpened,be=ce.inputSearchPlaceholder,Le=function(e){var n=e.dispatch,o=e.careApiDomain,i=e.locale,r=void 0===i?"vi-VN":i,a=c((function(e,t){void 0===t&&(t={});var i="".concat(o).concat(e);return n({type:xe.FetchCitiesStart}),fetch(_n(i,t,r),{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})}))}),[r]),l=c((function(e){var o=e.coordinates,i={};o&&(i={lat:o.lat,lng:o.lng});var c=[a(Mn.GET_CITY_BY_IP,i)];return"zh-TW"===r&&c.push(a(Mn.GET_CITIES_LIST,{noPaging:1})),Promise.all(c).then((function(e){var o=e[0],i=e[1],r=t({},o);if(i){var a=r.cities.map((function(e){return e.id}));r.cities=r.cities.concat(i.cities.filter((function(e){return!a.includes(e.id)})))}n({type:xe.FetchCitiesByGeoIpComplete,payload:r})})).catch((function(e){return console.error("error loading cities by location",e)}))}),[r,o,n]);return{fetchCitiesByLocation:l,fetchCitiesByKeyword:c((function(e){return a(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)}))}),[r,o,n]),fetchSearchResults:c((function(e,t){var i="".concat(o).concat(Mn.GET_SEARCH_V2);n({type:xe.FetchSearchResultsStart});var a=t.defaultCity,c=t.selectedLocation,l=t.geoLocationCoordinates,s="";if(c&&a){c.id===p?l||(s=a.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[r]?e.trim():"",city:s===p?"":s,lat:u,lng:d},r),{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})}),[r,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!==be&&le({type:xe.SetInputSearchPlaceholder,payload:F})}),[F,be]),s((function(){we?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[we]);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:r.createElement(ae,{isLoading:de,cities:pe,onLocationClick:He,onCurrentLocationClick:Fe,isLocationLoading:de,geoLocationPermission:me,selectedLocation:fe})}function Ke(){return"search"!==ue?null:ce.autoCompleteDisabled?n?r.createElement(Oe,{onClick:function(){B({cityId:ce.selectedLocation.id,keyword:he}),Be()}}):null:r.createElement(In,{data:Ee,state:ce,dispatch:le,isMobile:!1,keyword:he,isLoading:ye})}function Ze(){return r.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),function(){window.visualViewport.removeEventListener("resize",e)}}}),[ee]),n?r.createElement(r.Fragment,null,r.createElement(Y,null),r.createElement(U,{ref:X}),r.createElement(Z,{id:"booking-search-bar",ref:W,"data-is-modal":n&&we,style:{"--mobile-care-searchbar-height":we&&$?"".concat($,"px"):"100%"}},we?r.createElement(r.Fragment,null,r.createElement(j,null,r.createElement(ke,{headingText:Q("booking.searchBar.searchButton"),onLeftClick:Be}),Ze()),Ge(),Ke()):r.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}))):r.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{d as t,e as r}from"./tslib.es6-c135df17.js";import{useState as n,useEffect as o,useCallback as i}from"react";import{a as e}from"./getDynamicHealthTool-8348809b.js";var a=function(a){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(a)];case 1:return t=r.sent(),u(t),[2]}}))}))}),[e,a]);var c=i((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{a as u};
|
package/build/index-23d70144.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-2b954e9f.js"),n=require("react"),t=require("./core-f219e5f4.js"),a=require("./gAssets.js"),i=require("styled-components"),l=require("./index-41e59708.js"),o=require("./index-97eede1b.js"),r=require("./routing-496ead81.js"),s=require("./index-d9788d2b.js"),d=require("./constants-bb7c1bef.js"),c=require("./useTranslations-addf22a9.js"),u=require("./index.styled-a31a8bca.js"),p=require("./FullScreen-b6ba44b4.js"),m=require("./utils-2f2f3760.js"),f=require("./index-a74c9dab.js"),h=require("./theme-18e1f197.js"),g=require("./defaultClassWrapper-8b739b65.js"),x=require("dayjs"),v=require("dayjs/plugin/relativeTime"),b=require("./index-edcab27c.js"),y=require("lodash/throttle"),w=require("@mantine/core"),E=require("./cookieHelper-a181cb24.js");require("./index.styled-338265f7.js");var k=require("./index-7f4c5d0e.js");require("react-range"),require("./screenSizeContext-3120388f.js"),require("./isProduction-1394b531.js"),require("./Locale-7f347677.js"),require("./index-573109b2.js");var C=require("string-format"),_=require("lodash/debounce");function L(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var M,T,A,P,B,j,H,O,N,S,z,D,U,R,G,Z,I,Q,V,F,q,W=L(n),Y=L(i),K=L(x),J=L(v),X=L(y),$=L(C),ee=L(_),ne=function(n){return W.default.createElement("img",e.__assign({src:a.CommonGAssets.getAssetPath("flags/cambodiaRound.png"),style:e.__assign({borderRadius:"50%"},n.style)},n))},te=function(n){return W.default.createElement("img",e.__assign({src:a.CommonGAssets.getAssetPath("flags/cambodiaSquare.png")},n))},ae=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},n.style)},n),W.default.createElement("g",null,W.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},W.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),W.default.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),W.default.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),W.default.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),W.default.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),W.default.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),W.default.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),W.default.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),W.default.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),W.default.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),W.default.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),W.default.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),W.default.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),W.default.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),W.default.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),W.default.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),W.default.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),W.default.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),W.default.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),W.default.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),W.default.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),W.default.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),W.default.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),W.default.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),W.default.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),W.default.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),W.default.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),W.default.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"})))},ie=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),W.default.createElement("g",null,W.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},W.default.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),W.default.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),W.default.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),W.default.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),W.default.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),W.default.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),W.default.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),W.default.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),W.default.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),W.default.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"})))},le=function(n){return W.default.createElement("img",e.__assign({src:a.CommonGAssets.getAssetPath("flags/indiaRound.png"),style:e.__assign({borderRadius:"50%"},n.style)},n))},oe=function(n){return W.default.createElement("img",e.__assign({src:a.CommonGAssets.getAssetPath("flags/indiaSquare.png")},n))},re=function(t){var a=t.isTesting,i=e.__rest(t,["isTesting"]),l=n.useRef("id-flag-round-mask-"+(a?1:Math.random()));return W.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),W.default.createElement("mask",{id:l.current,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},W.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),W.default.createElement("g",{mask:"url(#".concat(l.current,")")},W.default.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),W.default.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},se=function(t){var a=t.isTesting,i=e.__rest(t,["isTesting"]),l=n.useRef("id-flag-clip-"+(a?1:Math.random()));return W.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),W.default.createElement("g",{clipPath:"url(#".concat(l.current,")")},W.default.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),W.default.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),W.default.createElement("defs",null,W.default.createElement("clipPath",{id:l.current},W.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},de=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},n.style)},n),W.default.createElement("g",null,W.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},W.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),W.default.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),W.default.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),W.default.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"})))},ce=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),W.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),W.default.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),W.default.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),W.default.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),W.default.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),W.default.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),W.default.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),W.default.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),W.default.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),W.default.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),W.default.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),W.default.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),W.default.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"}))},ue=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},n.style)},n),W.default.createElement("g",null,W.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},W.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),W.default.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),W.default.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),W.default.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"})))},pe=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),W.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),W.default.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),W.default.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"}))},me=function(n){return W.default.createElement("img",e.__assign({src:a.CommonGAssets.getAssetPath("flags/philippineRound.png"),style:e.__assign({borderRadius:"50%"},n.style)},n))},fe=function(n){return W.default.createElement("img",e.__assign({src:a.CommonGAssets.getAssetPath("flags/philippineSquare.png")},n))},he=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},n.style)},n),W.default.createElement("g",null,W.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},W.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),W.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),W.default.createElement("g",null,W.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},W.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),W.default.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),W.default.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),W.default.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),W.default.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),W.default.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),W.default.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),W.default.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),W.default.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),W.default.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),W.default.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),W.default.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),W.default.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),W.default.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),W.default.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),W.default.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"}))))},ge=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),W.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),W.default.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),W.default.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),W.default.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),W.default.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),W.default.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),W.default.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),W.default.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),W.default.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),W.default.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),W.default.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),W.default.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),W.default.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),W.default.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),W.default.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"}))},xe=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},n.style)},n),W.default.createElement("g",null,W.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},W.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),W.default.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),W.default.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"})))},ve=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),W.default.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),W.default.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),W.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"}))},be=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},n.style)},n),W.default.createElement("g",null,W.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},W.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),W.default.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),W.default.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"})))},ye=function(n){return W.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),W.default.createElement("g",null,W.default.createElement("clipPath",null,W.default.createElement("rect",{width:"24",height:"16",fill:"white"})),W.default.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),W.default.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})))},we="pfaLGRK",Ee=function(e){var n,t,a=e.country,i=e.language,l=e.rounded,o=e.height,r=e.width,s=e.isTesting;switch(i){case"en":n=W.default.createElement(ie,null),t=W.default.createElement(ae,null);break;case"vi":n=W.default.createElement(ye,null),t=W.default.createElement(be,null);break;case"id":n=W.default.createElement(se,{isTesting:s}),t=W.default.createElement(re,{isTesting:s});break;case"th":n=W.default.createElement(ve,null),t=W.default.createElement(xe,null);break;case"km":n=W.default.createElement(te,null),t=W.default.createElement(ne,null);break;case"ms":n=W.default.createElement(ce,null),t=W.default.createElement(de,null);break;case"my":n=W.default.createElement(pe,null),t=W.default.createElement(ue,null);break;case"tl":n=W.default.createElement(fe,null),t=W.default.createElement(me,null);break;case"hi":n=W.default.createElement(oe,null),t=W.default.createElement(le,null);break;case"zh":n=W.default.createElement(ge,null),t=W.default.createElement(he,null)}if(!n&&!t)switch(a){case"VN":n=W.default.createElement(ye,null),t=W.default.createElement(be,null);break;case"ID":n=W.default.createElement(se,{isTesting:s}),t=W.default.createElement(re,{isTesting:s});break;case"TH":n=W.default.createElement(ve,null),t=W.default.createElement(xe,null);break;case"KH":n=W.default.createElement(te,null),t=W.default.createElement(ne,null);break;case"MY":n=W.default.createElement(ce,null),t=W.default.createElement(de,null);break;case"MM":n=W.default.createElement(pe,null),t=W.default.createElement(ue,null);break;case"PH":n=W.default.createElement(fe,null),t=W.default.createElement(me,null);break;case"IN":n=W.default.createElement(oe,null),t=W.default.createElement(le,null);break;case"TW":n=W.default.createElement(ge,null),t=W.default.createElement(he,null)}return W.default.createElement("div",{className:we,style:{"--width":r||20,"--height":o||20}},l?t:n)},ke=Y.default.a(M||(M=e.__makeTemplateObject(["\n display: inline-flex;\n position: relative;\n flex-direction: row;\n align-items: center;\n padding: 7px 11px;\n gap: 2px;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 20px;\n\n color: ",";\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n text-decoration: none;\n\n cursor: pointer;\n"],["\n display: inline-flex;\n position: relative;\n flex-direction: row;\n align-items: center;\n padding: 7px 11px;\n gap: 2px;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 20px;\n\n color: ",";\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n text-decoration: none;\n\n cursor: pointer;\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.neutral100}),(function(e){return e.theme.colors.gray600})),Ce=Y.default.div(T||(T=e.__makeTemplateObject(["\n position: relative;\n display: inline-block;\n"],["\n position: relative;\n display: inline-block;\n"]))),_e=Y.default.div(A||(A=e.__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"]))),Le=Y.default.div(P||(P=e.__makeTemplateObject(["\n position: absolute;\n z-index: 21;\n top: 100%;\n right: 0;\n width: 327px;\n padding: 8px;\n background: white;\n border-radius: 4px;\n filter: drop-shadow(0px 8px 40px rgba(0, 0, 0, 0.1));\n\n &[data-is-open='false'] {\n display: none;\n }\n &[data-show-indicator='true'] {\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: absolute;\n z-index: 21;\n top: 100%;\n right: 0;\n width: 327px;\n padding: 8px;\n background: white;\n border-radius: 4px;\n filter: drop-shadow(0px 8px 40px rgba(0, 0, 0, 0.1));\n\n &[data-is-open='false'] {\n display: none;\n }\n &[data-show-indicator='true'] {\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"]))),Me=Y.default.div(B||(B=e.__makeTemplateObject(["\n display: flex;\n height: 40px;\n align-items: center;\n justify-content: space-between;\n\n padding: 0 16px;\n border-radius: 6px;\n cursor: pointer;\n\n .check-icon {\n width: 16px;\n height: 16px;\n }\n &[data-selected='false'] {\n background-color: ",";\n }\n"],["\n display: flex;\n height: 40px;\n align-items: center;\n justify-content: space-between;\n\n padding: 0 16px;\n border-radius: 6px;\n cursor: pointer;\n\n .check-icon {\n width: 16px;\n height: 16px;\n }\n &[data-selected='false'] {\n background-color: ",";\n }\n"])),(function(e){return e.theme.colors.gray100})),Te=Y.default.div(j||(j=e.__makeTemplateObject(["\n position: fixed;\n z-index: 20;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: default;\n"],["\n position: fixed;\n z-index: 20;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: default;\n"]))),Ae=function(e){var t=e.options,i=e.label,o=e.labelRenderer,r=e.selected,s=e.onChange,d=e.showSelected,c=void 0===d||d,u=e.style,p=void 0===u?{}:u,m=e.showIndicator,f=void 0===m||m,h=n.useState(!1),g=h[0],x=h[1];return W.default.createElement(W.default.Fragment,null,W.default.createElement(Ce,null,W.default.createElement(_e,{onClick:function(){return x((function(e){return!e}))}},i||(null==o?void 0:o(g))||null,W.default.createElement(Le,{"data-is-open":g,style:p,"data-show-indicator":f},t.map((function(e,n){return W.default.createElement(Me,{key:n,"data-selected":c&&r===e.value,onClick:function(n){r!==e.value&&(s(e.value),x((function(e){return!e}))),n.stopPropagation()}},W.default.createElement(l.Text,{size:"p3"},e.label),c&&r===e.value&&W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))}))))),g&&W.default.createElement(Te,{onClick:function(){return x(!1)}}))},Pe=function(e){var n,t,a=e.languageOptions,i=e.locale,l=null==a?void 0:a.find((function(e){return e.locale===i}));return(null==a?void 0:a.length)?W.default.createElement(Ae,{options:a,selected:l.value,label:W.default.createElement(Be,{locale:i,label:l.label||(null===(t=null===(n=i.split("-"))||void 0===n?void 0:n[0])||void 0===t?void 0:t.toUpperCase())}),onChange:function(e){"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},Be=function(e){var n,t,a,i=e.locale,l=e.label,o=e.href;return W.default.createElement(ke,{href:o},W.default.createElement(Ee,{country:null===(t=null===(n=null==i?void 0:i.split("-"))||void 0===n?void 0:n[1])||void 0===t?void 0:t.toUpperCase(),width:16,height:16,rounded:!0,language:null===(a=null==i?void 0:i.split("-"))||void 0===a?void 0:a[0]}),W.default.createElement("span",null,l))},je=W.default.createContext({}),He=function(t){var a=t.children,i=e.__rest(t,["children"]),l="undefined"!=typeof window?window.location.href:i.currentUrl||"https://".concat("marryBaby"===i.siteType?s.domainLocalesMarryBaby[i.locale||"en-PH"]:o.domainLocales[i.locale||"en-PH"]).concat("together"===i.projectType?"/community":"ecom"===i.projectType?"/ecom":"care"===i.projectType?"/care":"","/"),d=function(e){var t=e.locale,a=e.projectType,i=e.isMobile,l=e.siteType;return n.useMemo((function(){var e=!(!i&&"profile"===a),n="discover"===a||"marryBaby"===a||"profile"===a&&"marryBaby"===l,s="marryBaby"!==l&&"marryBaby"!==a&&o.CARE_LOCALES.includes(t),d="marryBaby"!==a&&"discover"===a&&"marryBaby"!==l&&o.CARE_BOOKING_LOCALES.includes(t),c="marryBaby"===a||o.TOGETHER_LOCALES.includes(t),u="ecom"===a,p="ecom"===a,m=r.getCurrentBaseUrl(t,"marryBaby"===l),f=r.getCurrentSsoUrl(t,"marryBaby"===l);return{enableProfileNavigatorMenu:e,enableSearchBar:n,enableNavCare:s,enableNavCareBooking:d,enableNavTogether:c,enableNavEcom:u,enableProfileEcom:p,enableProfileMyHealth:!0,statics:{HOME_PAGE_URL:m,CARE_URL_FE:"".concat(m,"/care"),TOGETHER_URL_FE:"".concat(m,"/community"),SSO_URL:f,TOGETHER_API:r.getTogetherApiDomain(),DISCOVER_API:r.getDiscoverApiDomain(t)}}}),[t,a,i])}({locale:i.locale,projectType:i.projectType,isMobile:i.isMobile,siteType:i.siteType});return W.default.createElement(je.Provider,{value:e.__assign(e.__assign({},i),{configs:d,currentUrl:l})},a)},Oe=n.memo((function(){return W.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W.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"}))})),Ne=function(){var e=n.useContext(je),t=e.locale,a=e.configs.statics,i=e.siteType,l=c.useTranslations().t;return W.default.createElement(u.PureInput,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===i?l("navigation.search.input.placeholder"):l("home.search",{site:o.LOCALE_SPECS[t||"en-PH"]?o.LOCALE_SPECS[t||"en-PH"].SITE_NAME:""}),onChange:function(){},onKeyDown:function(e){return"Enter"===e.key&&(window.location.href="".concat(a.HOME_PAGE_URL,"/search/?s=").concat(e.target.value))},type:"search",onFocus:function(e){e.preventDefault()},displayIcon:W.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},W.default.createElement(Oe,null))})},Se=Y.default.div(H||(H=e.__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"])),m.MediaQueries.mbUp),ze=Y.default.a(O||(O=e.__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 width: 40px;\n height: 40px;\n border-radius: 50%;\n background-color: ",";\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 width: 40px;\n height: 40px;\n border-radius: 50%;\n background-color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.gray800}),(function(e){return e.theme.mbColors.pink}),(function(e){return e.theme.mbColors.lightPink}),(function(e){return e.theme.colors.primaryActive}),(function(e){return e.theme.mbColors.lightGray})),De=Y.default.div(N||(N=e.__makeTemplateObject(["\n margin: 15px 0;\n "," {\n display: none;\n }\n"],["\n margin: 15px 0;\n "," {\n display: none;\n }\n"])),m.MediaQueries.mbDown),Ue=Y.default.div(S||(S=e.__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"])),m.MediaQueries.mbUp),Re=Y.default.div(z||(z=e.__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(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.sizes.fsParagraph4}),(function(e){return e.theme.sizes.fwBold}),(function(e){return e.theme.mbColors.pink})),Ge=Y.default.div(D||(D=e.__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"]))),Ze=Y.default.a(U||(U=e.__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(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.mbColors.pink}),(function(e){return e.theme.mbColors.pink}),m.MediaQueries.mbDown),Ie=function(e){var t=e.hrefViewMore,i=e.titleBtnViewMore,l=e.UrlFE,o=e.onClosePopup,r=e.menuItems,s=e.headingTitle,d=n.useContext(je).siteType;return W.default.createElement(Se,null,W.default.createElement(De,null,W.default.createElement(p.Heading,{tag:"marryBaby"===d?"h5":"h6",as:"h2",fontWeight:"semibold"},s)),null==r?void 0:r.slice(0,6).map((function(e,n){var t=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:"".concat(l,"/").concat(null==e?void 0:e.link.split("/").filter(Boolean).join("/"),"/"):"/";return W.default.createElement(ze,{className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t,"data-is-heading-category":!1,href:t,"data-theme":d,key:n,onClick:o},W.default.createElement("div",{className:"icon"},W.default.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32}})),W.default.createElement("p",null,e.name),W.default.createElement(Ue,null,W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),i&&W.default.createElement(Ze,{"data-theme":d,style:{textDecoration:"none"},href:t,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t},W.default.createElement(Re,{onClick:o,"data-theme":d,"data-is-heading-category":!1},i,W.default.createElement(Ge,null,W.default.createElement("img",{className:"svg",src:"marryBaby"===d?a.CommonGAssets.getAssetPath("chevronRightPink.svg"):a.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},Qe=Y.default.div(R||(R=e.__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"])),m.MediaQueries.mbDown,m.MediaQueries.mbUp),Ve=Y.default.div(G||(G=e.__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(e){return e.theme.colors.gray600})),Fe=Y.default.div(Z||(Z=e.__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"]))),qe=Y.default.div(I||(I=e.__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"]))),We=Y.default.div(Q||(Q=e.__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"])),m.MediaQueries.mbDown),Ye=function(e){var t=e.title,i=e.link,l=e.description,o=e.cta,r=e.icon,s=n.useContext(je),d=s.siteType,c=s.isAmp;return W.default.createElement(Qe,{"data-theme":d},W.default.createElement(We,null,c?W.default.createElement("img",{src:"marryBaby"===d?a.CommonGAssets.getAssetPath("navMBSpotlightBgNoData.svg"):a.CommonGAssets.getAssetPath("navSpotlightBgNoData.svg"),alt:"",className:"bg-svg"}):W.default.createElement("img",{src:"marryBaby"===d?a.CommonGAssets.getAssetPath("navMBSpotlightBgNoData.svg"):a.CommonGAssets.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),W.default.createElement(qe,null,r&&W.default.createElement("img",{src:r,width:64,height:64}))),W.default.createElement("div",null,t&&W.default.createElement(Fe,null,t),l&&W.default.createElement(Ve,null,l),o&&W.default.createElement("div",null,W.default.createElement("a",{href:i},W.default.createElement(f.Button,{theme:d,className:"survey-contact-submit",size:"md"},o)))))},Ke=Y.default.div(V||(V=e.__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"])),m.MediaQueries.mbDown,(function(e){return e.theme.colors.neutral100})),Je=Y.default.div(F||(F=e.__makeTemplateObject(["\n margin: 15px 0;\n display: flex;\n"],["\n margin: 15px 0;\n display: flex;\n"]))),Xe=Y.default.a(q||(q=e.__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(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.mbColors.pink}),m.MediaQueries.mbDown),$e=function(e){var t=e.title,i=e.viewMore,l=e.children,o=e.link,r=e.dataEventAction,s=void 0===r?"":r,d=n.useContext(je).siteType;return W.default.createElement(Ke,null,W.default.createElement(Je,null,W.default.createElement(p.Heading,{tag:"marryBaby"===d?"h5":"h6",as:"h2",fontWeight:"semibold"},t),i&&W.default.createElement(Xe,{"data-event-category":"Hamburger Navigation","data-event-action":s,"data-event-label":o,href:o,"data-theme":d},i,W.default.createElement("img",{src:"marryBaby"===d?a.CommonGAssets.getAssetPath("chevronRightPink.svg"):a.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),l)};Y.default.div(en||(en=e.__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(e){return e.theme.colors.neutral100}));var en,nn,tn,an,ln,on,rn,sn,dn,cn=Y.default.div(nn||(nn=e.__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"])),m.MediaQueries.tdDown),un=Y.default.div(tn||(tn=e.__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"])),m.MediaQueries.tdDown,m.MediaQueries.mbDown),pn=Y.default.div(an||(an=e.__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"]))),mn=Y.default.div(ln||(ln=e.__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(e){return e.theme.colors.primaryBase}),m.MediaQueries.tdDown),fn=Y.default.p(on||(on=e.__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(e){return e.theme.colors.gray800}),m.MediaQueries.tdDown),hn=Y.default.p(rn||(rn=e.__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(e){return e.theme.colors.gray600}),m.MediaQueries.tdDown),gn=Y.default.div(sn||(sn=e.__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"])),m.MediaQueries.tdDown),xn="hhgcomp-navigation-menucareitem-contentwrapper",vn=g.getDefaultClassWrapper(gn,xn),bn=Y.default.a(dn||(dn=e.__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"])),h.theme.colors.white,m.MediaQueries.tdUp,m.MediaQueries.tdDown,xn,m.MediaQueries.mbDown,m.MediaQueries.tdOnly,h.theme.colors.neutral100),yn=function(e){var t,i=e.item,l=e.index,o=void 0===l?0:l,r=c.useTranslations().t,s=n.useContext(je),u=s.locale,p=s.configs.statics;if(!i)return null;var m="".concat(p.CARE_URL_FE,"/").concat(null===(t=d.LOCALIZED_SLUGS[u])||void 0===t?void 0:t.HOSPITAL,"/").concat(i.slug,"-").concat(i.id);return W.default.createElement(bn,{key:i.id,href:m,"data-event-category":"Hamburger Navigation","data-event-action":"Care Click ".concat(o+1),"data-event-label":m},W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),W.default.createElement(un,null,W.default.createElement(pn,null,W.default.createElement("img",{loading:"lazy",alt:i.name,src:i.logo||"/images/avatar.jpg"}))),W.default.createElement(vn,null,W.default.createElement(fn,null,i.name),W.default.createElement(hn,null,i.description),W.default.createElement(mn,null,r("home.seeMore"),W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},wn=function(e){var n=e.spotlights,t=void 0===n?[]:n,i=e.hrefViewMore,l=c.useTranslations().t;return W.default.createElement($e,{title:l("home.navigator.menu.spotlightHospitals")},0!==t.length?W.default.createElement(cn,null,null==t?void 0:t.slice(0,3).map((function(e,n){return W.default.createElement(yn,{key:n,index:n,item:e})}))):W.default.createElement(Ye,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:i,cta:l("home.navigator.menu.care.noDatas.cta"),icon:a.CommonGAssets.getAssetPath("community.svg")}))};Y.default.div(En||(En=e.__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"]))),Y.default.div(kn||(kn=e.__makeTemplateObject(["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"],["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"])));var En,kn,Cn,_n,Ln,Mn,Tn=Y.default.div(Cn||(Cn=e.__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"])),m.MediaQueries.tdDown),An=Y.default.a(_n||(_n=e.__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"]))),Pn=Y.default.div(Ln||(Ln=e.__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"])),m.MediaQueries.tdDown),Bn=Y.default.p(Mn||(Mn=e.__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(e){return e.theme.colors.gray800}),m.MediaQueries.tdUp),jn=function(e){var n=e.item,t=e.index,a=void 0===t?0:t;return n?W.default.createElement(An,{key:n.id,href:n.link,"data-event-category":"Hamburger Navigation","data-event-action":"Spotlight Click ".concat(a+1),"data-event-label":n.link},W.default.createElement(Pn,null,W.default.createElement("img",{loading:"lazy",alt:n.title,src:n.banner||"/images/notFound-min-small.jpg"})),W.default.createElement(Bn,null,n.title)):null},Hn=function(e){var t=e.spotlightsList,i=void 0===t?[]:t,l=e.hrefViewMore,o=c.useTranslations().t,r=n.useContext(je).configs.statics;return W.default.createElement($e,{title:o("home.navigator.menu.spotlights"),viewMore:o("home.navigator.menu.spotlights.seeAll"),link:l,dataEventAction:"Spotlight See More Click"},0!==i.length?W.default.createElement(Tn,null,null==i?void 0:i.slice(0,4).map((function(e,n){return W.default.createElement(jn,{key:n,index:n,item:{id:e.id,link:r.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})}))):W.default.createElement(Ye,{title:o("home.navigator.menu.category.noDatas.title"),description:o("home.navigator.menu.category.noDatas.description"),link:l,cta:o("home.navigator.menu.category.noDatas.cta"),icon:a.CommonGAssets.getAssetPath("Spotlight.svg")}))};Y.default.div(On||(On=e.__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(e){return e.theme.colors.neutral100}),(function(e){return e.theme.colors.neutral100})),Y.default.div(Nn||(Nn=e.__makeTemplateObject(["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"],["\n & > div {\n width: 100%;\n margin-bottom: 8px;\n }\n"])));var On,Nn,Sn,zn,Dn,Un,Rn,Gn,Zn,In,Qn,Vn,Fn,qn,Wn=Y.default.div(Sn||(Sn=e.__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"])),m.MediaQueries.tdDown,m.MediaQueries.mbDown),Yn=Y.default.div(zn||(zn=e.__makeTemplateObject(["\n padding: 5px;\n flex: 1;\n"],["\n padding: 5px;\n flex: 1;\n"]))),Kn=Y.default.img(Dn||(Dn=e.__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"]))),Jn=Y.default.div(Un||(Un=e.__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(e){return e.theme.colors.gray800})),Xn=Y.default.div(Rn||(Rn=e.__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(e){return e.theme.colors.primaryBase})),$n=Y.default.div(Gn||(Gn=e.__makeTemplateObject(["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n"],["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n"])),(function(e){return e.theme.colors.gray600})),et=Y.default.div(Zn||(Zn=e.__makeTemplateObject(["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n"],["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n"])),(function(e){return e.theme.colors.gray600})),nt=Y.default.a(In||(In=e.__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(e){return e.theme.colors.neutral100}),m.MediaQueries.tdOnly,m.MediaQueries.mbDown,m.MediaQueries.tdUp),tt=Y.default.div(Qn||(Qn=e.__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"]))),at=Y.default.div(Vn||(Vn=e.__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(e){return e.theme.colors.gray800})),it=Y.default.div(Fn||(Fn=e.__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"]))),lt=Y.default.div(qn||(qn=e.__makeTemplateObject(["\n display: flex;\n gap: 4px;\n flex-direction: column;\n"],["\n display: flex;\n gap: 4px;\n flex-direction: column;\n"])));K.default.extend(J.default);var ot=function(e){var t,a,i,l,o,r,d,c=e.post,u=e.index,p=void 0===u?0:u,m=n.useContext(je),f=m.siteType,h=m.configs.statics;if(!c)return null;var g=[h.TOGETHER_URL_FE,null===(t=c.community)||void 0===t?void 0:t.slug].join("/"),x=[g,c.slug].join("/"),v=c.createdAt,b=v?isNaN(new Date(v).getTime())?null:new Date(v):null,y=b?K.default(b).toNow(!0):v;return W.default.createElement(nt,{href:x,"data-event-category":"Hamburger Navigation","data-event-action":"Together Click ".concat(p+1),"data-event-label":x},W.default.createElement(Yn,null,W.default.createElement(tt,null,W.default.createElement(s.UserAvatar,{avatar:null===(a=c.author)||void 0===a?void 0:a.avatar,username:(null===(i=c.author)||void 0===i?void 0:i.name)||(null===(l=c.author)||void 0===l?void 0:l.username)}),W.default.createElement(lt,null,W.default.createElement(Jn,{"data-theme":f},null===(o=c.author)||void 0===o?void 0:o.name),W.default.createElement(it,null,W.default.createElement(Xn,{"data-event-category":"Hamburger Navigation","data-event-action":"Topic Click ".concat(p+1),"data-event-label":g,onClick:function(e){e.preventDefault(),location.href=g},"data-theme":f},null===(r=c.community)||void 0===r?void 0:r.name),W.default.createElement(et,null,"•"),W.default.createElement($n,{"data-theme":f},y)))),W.default.createElement(at,null,c.title)),!!(null===(d=c.photos)||void 0===d?void 0:d.length)&&W.default.createElement(Kn,{loading:"lazy",src:c.photos[0]}))},rt=function(e){var t=e.spotlights,i=void 0===t?[]:t,l=n.useContext(je).configs.statics,o=c.useTranslations().t;return W.default.createElement($e,{title:o("home.navigator.menu.trendingPosts"),viewMore:o("home.navigator.menu.trendingPosts.seeMore"),link:l.TOGETHER_URL_FE+"/",dataEventAction:"Together See More Click"},0!==i.length?W.default.createElement(Wn,null,null==i?void 0:i.slice(0,4).map((function(e,n){return W.default.createElement(ot,{index:n,post:e,key:e.id})}))):W.default.createElement(Ye,{title:o("home.navigator.menu.together.noPosts.title"),description:o("home.navigator.menu.together.noPosts.description"),link:"".concat(l.HOME_PAGE_URL,"/community/"),cta:o("home.navigator.menu.together.noPosts.cta"),icon:a.CommonGAssets.getAssetPath("community.svg")}))};Y.default.div(st||(st=e.__makeTemplateObject(["\n &[data-is-display='false'] {\n display: none;\n }\n"],["\n &[data-is-display='false'] {\n display: none;\n }\n"])));var st,dt,ct,ut,pt,mt,ft,ht,gt,xt,vt,bt,yt,wt,Et,kt,Ct=Y.default.div(dt||(dt=e.__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"])),m.MediaQueries.tdDown),_t=Y.default.a(ct||(ct=e.__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"])),m.MediaQueries.tdDown,m.MediaQueries.tdDown),Lt=Y.default.div(ut||(ut=e.__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"])),m.MediaQueries.tdDown),Mt=Y.default.div(pt||(pt=e.__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(e){return e.theme.colors.primaryBase})),Tt=Y.default.p(mt||(mt=e.__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(e){return e.theme.colors.gray800})),At=Y.default.p(ft||(ft=e.__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(e){return e.theme.colors.gray600}),m.MediaQueries.tdDown),Pt=Y.default.div(ht||(ht=e.__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"])),m.MediaQueries.tdUp,m.MediaQueries.tdDown),Bt=function(e){var t=e.item,i=e.index,l=void 0===i?0:i,o=c.useTranslations().t,r=n.useContext(je).configs.statics;if(!t)return null;var s=t.link?t.link.startsWith("http")?t.link:"".concat(r.HOME_PAGE_URL).concat(t.link):void 0;return W.default.createElement(_t,{href:s,"data-event-category":"Hamburger Navigation","data-event-action":"Engage Click ".concat(l+1),"data-event-label":s},W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),W.default.createElement(Pt,null,W.default.createElement(Tt,null,t.title),W.default.createElement(At,null,t.subtitle),W.default.createElement(Mt,null,o("home.seeMore"),W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),W.default.createElement(Lt,null,W.default.createElement("img",{loading:"lazy",alt:t.title,src:t.icon||"/images/avatar.jpg"})))},jt=Y.default.a(gt||(gt=e.__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(e){return e.theme.mbColors.tonePink}),(function(e){return e.theme.mbColors.peach}),(function(e){return e.theme.mbColors.toneYellow}),(function(e){return e.theme.mbColors.orange}),(function(e){return e.theme.mbColors.toneGreen}),(function(e){return e.theme.mbColors.mint}),m.MediaQueries.tdDown,m.MediaQueries.mbDown,m.MediaQueries.tdUp,m.MediaQueries.tdUp,m.MediaQueries.tdDown),Ht=Y.default.div(xt||(xt=e.__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"])),m.MediaQueries.tdDown,m.MediaQueries.mbDown),Ot=Y.default.div(vt||(vt=e.__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(e){return e.theme.mbColors.gray}),m.MediaQueries.tdDown,(function(e){return e.theme.mbColors.pink})),Nt=Y.default.p(bt||(bt=e.__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(e){return e.theme.colors.gray800})),St=Y.default.p(yt||(yt=e.__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(e){return e.theme.colors.gray600}),m.MediaQueries.tdDown),zt=Y.default.div(wt||(wt=e.__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"])),m.MediaQueries.tdUp,m.MediaQueries.tdDown),Dt=Y.default.div(Et||(Et=e.__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"])),m.MediaQueries.tdUp,m.MediaQueries.tdDown),Ut=Y.default.div(kt||(kt=e.__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"])),m.MediaQueries.tdUp,m.MediaQueries.tdDown),Rt=function(e){var t=e.item,i=e.index,l=void 0===i?0:i,o=e.color,r=c.useTranslations().t,s=n.useContext(je).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,u=function(){return W.default.createElement(Ht,null,W.default.createElement("img",{loading:"lazy",alt:t.title,src:t.icon||"/images/avatar.jpg"}))},p=function(){return W.default.createElement(Ut,null,W.default.createElement(Dt,null,W.default.createElement(Nt,null,t.title),W.default.createElement(St,null,t.subtitle)),W.default.createElement(Ot,null,W.default.createElement("div",{className:"mobile-only"},r("home.seeMore")),W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})))};return W.default.createElement(jt,{href:d,"data-event-category":"Hamburger Navigation","data-event-action":"Engage Click ".concat(l+1),"data-event-label":d,"data-color":o},W.default.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W.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"})),W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),W.default.createElement(zt,null,W.default.createElement("div",{className:"mobile-only"},u()),W.default.createElement("div",{className:"desktop-only"},p())),W.default.createElement("div",{className:"mobile-only"},p()),W.default.createElement("div",{className:"desktop-only"},u()))},Gt=function(e){var t=e.hrefViewMore,i=e.spotlightHealthTools,l=void 0===i?[]:i,o=c.useTranslations().t,r=["pink","orange","green"],s=n.useContext(je).siteType;return W.default.createElement($e,{title:o("home.navigator.menu.spotlightTools")},0!==l.length&&W.default.createElement(Ct,null,null==l?void 0:l.slice(0,3).map((function(e,n){return"marryBaby"===s?W.default.createElement(Rt,{key:n,index:n,item:e,color:r[n]}):W.default.createElement(Bt,{key:n,index:n,item:e})}))),0===l.length&&W.default.createElement(Ye,{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:a.CommonGAssets.getAssetPath("community.svg")}))},Zt="profile/posts?website_url={websiteUrl}",It=99,Qt=300,Vt=400,Ft=210,qt=Y.default.div(Wt||(Wt=e.__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\n &[data-is-amp='true'] {\n top: calc(var(--header-height));\n }\n\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\n &[data-is-amp='true'] {\n top: calc(var(--header-height));\n }\n\n .hhgcomp-navigation-popupwrapper-menuwrapper {\n position: unset;\n }\n"])));Y.default.div(Yt||(Yt=e.__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"]))),Y.default.div(Kt||(Kt=e.__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"]))),Y.default.div(Jt||(Jt=e.__makeTemplateObject(["\n margin-top: 64px;\n"],["\n margin-top: 64px;\n"]))),Y.default.div(Xt||(Xt=e.__makeTemplateObject(["\n padding: 24px 0;\n"],["\n padding: 24px 0;\n"]))),Y.default.div($t||($t=e.__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"]))),Y.default.div(ea||(ea=e.__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"])),Ft,(function(e){return e.theme.colors.neutral50}),(function(e){return e.theme.colors.white})),Y.default.div(na||(na=e.__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"]))),Y.default.div(ta||(ta=e.__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"]))),Y.default.div(aa||(aa=e.__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(e){return e.theme.colors.gray800}),(function(e){return e.theme.sizes.fsParagraph4}),(function(e){return e.theme.sizes.fwRegular}),(function(e){return e.theme.colors.primaryBase})),Y.default.div(ia||(ia=e.__makeTemplateObject(["\n display: none;\n"],["\n display: none;\n"]))),Y.default.div(la||(la=e.__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(e){return e.theme.colors.gray800}),(function(e){return e.theme.sizes.fsParagraph4}),(function(e){return e.theme.sizes.fwRegular}),(function(e){return e.theme.colors.primaryBase})),Y.default.div(oa||(oa=e.__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(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.sizes.fsParagraph4}),(function(e){return e.theme.sizes.fwBold}),(function(e){return e.theme.mbColors.pink})),Y.default.div(ra||(ra=e.__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"]))),Y.default.div(sa||(sa=e.__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"]))),Y.default.div(da||(da=e.__makeTemplateObject(["\n display: block;\n"],["\n display: block;\n"]))),Y.default.div(ca||(ca=e.__makeTemplateObject(["\n .amp-sidebar {\n width: 100vw;\n\n background-color: ",";\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"],["\n .amp-sidebar {\n width: 100vw;\n\n background-color: ",";\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(e){return e.theme.colors.neutral50}),(function(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.colors.neutral100}),(function(e){return e.theme.colors.gray800})),Y.default.div(ua||(ua=e.__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(e){return e.theme.mbColors.pink}));var Wt,Yt,Kt,Jt,Xt,$t,ea,na,ta,aa,ia,la,oa,ra,sa,da,ca,ua,pa,ma,fa,ha,ga,xa=Y.default.div(pa||(pa=e.__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(e){return e.theme.mbColors.lightGray})),va=Y.default.div(ma||(ma=e.__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"]))),ba=function(e){var t,a,i=e.closePopup,l=e.menuItems,r=void 0===l?[]:l,s=n.useContext(je),u=s.siteType,p=s.ssrMenuContent,m=p.categories,f=p.healthTools,h=p.care,g=p.together,x=s.activeMenuService,v=s.configs,b=v.statics,y=v.enableSearchBar,w=s.isAmp,E=s.locale,k=c.useTranslations().t;return W.default.createElement(qt,{id:"categories-menu","data-is-amp":w},y?W.default.createElement(xa,{"data-theme":u,onClick:function(){window.location.href="".concat(b.HOME_PAGE_URL,"/search")}},W.default.createElement(Ne,null)):null,W.default.createElement(va,null,W.default.createElement(Ie,{UrlFE:b.HOME_PAGE_URL,titleBtnViewMore:k("home.navigator.menuItem.allCategories"),menuItems:r,headingTitle:k("home.navigator.menuItem.healthCategories"),onClosePopup:i}),"categories"===x&&W.default.createElement(Hn,{spotlightsList:(null==m?void 0:m.spotlights)||[],hrefViewMore:"".concat(b.HOME_PAGE_URL).concat("tl-PH"===E?"/fil":"","/spotlight/")}),"tools"===x&&W.default.createElement(Gt,{spotlightHealthTools:null==f?void 0:f.spotlights,hrefViewMore:"".concat(b.HOME_PAGE_URL).concat("tl-PH"===E?"/fil":"").concat((null===(t=o.STATIC_PAGES[E])||void 0===t?void 0:t.HEALTH_TOOLS)||"")}),"care"===x&&W.default.createElement(wn,{spotlights:null==h?void 0:h.spotlights,hrefViewMore:"".concat(b.CARE_URL_FE,"/").concat(null===(a=d.LOCALIZED_SLUGS[E])||void 0===a?void 0:a.SPECIALTIES)}),"together"===x&&W.default.createElement(rt,{spotlights:null==g?void 0:g.spotlights})))},ya=Y.default.div(fa||(fa=e.__makeTemplateObject(["\n ","\n"],["\n ","\n"])),(function(e){return"\n ".concat(0!==e.lowerBound?"@media (max-width: ".concat(e.lowerBound-1,"px) { display: none; }"):"","\n ").concat(0!==e.upperBound?"@media (min-width: ".concat(e.upperBound,"px) { display: none; }"):"","\n ")})),wa=function(e){var t=e.forceDisplay,a=e.mediaQueryKey,i=e.children,l=e.className,o=e.style,r=n.useMemo((function(){return m.getBoundariesFromMediaQueryKey(a)}),[a]),s=r[0],d=r[1];return W.default.createElement(ya,{lowerBound:t?0:s,upperBound:t?0:d,className:l,style:o},i)},Ea=function(e){var t=(e||{}).allowBgScroll,a=n.useRef();return{containerRef:a,onContainerFocus:function(){t||(document.documentElement.style.overflow="hidden")},onContainerBlur:function(){t||(document.documentElement.style.overflow="")},onButtonMouseDown:function(e){a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:function(){a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},ka=Y.default.div(ha||(ha=e.__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"])),m.MediaQueries.mbDown,m.MediaQueries.mbUp,(function(e){return e.theme.colors.gray800}),m.MediaQueries.mbDown,m.MediaQueries.mbUp,(function(e){return e.theme.colors.gray600}),m.MediaQueries.mbDown,m.MediaQueries.mbUp),Ca=Y.default.div(ga||(ga=e.__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"])),m.MediaQueries.mbDown,m.MediaQueries.mbUp,(function(e){return"marryBaby"===e.siteType?"\n .cancel-button {\n background-color: #E55C8A;\n }\n .cancel-button:hover {\n background-color: #E55C8A !important;\n }\n .logout-button {\n border-color: #E55C8A;\n color: #E55C8A;\n }\n ":""})),_a=function(e){var t=e.openLogoutPopup,i=e.onCloseHandler,l=e.onLogoutHandler,o=e.siteType,r=void 0===o?"helloSites":o,d=c.useTranslations().t;return n.useEffect((function(){document.body.classList.toggle("noscroll",t)}),[t]),W.default.createElement(w.Portal,null,W.default.createElement(s.Popup,{type:"confirm",isOpen:t,closeIcon:W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:i},W.default.createElement(ka,null,"helloSites"===r&&W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),W.default.createElement("h2",null,d("helloSites"===r?"logout.popup.ask1":"logout.popup.ask.mb")),W.default.createElement("p",null,d("logout.popup.ask2")),W.default.createElement(Ca,{siteType:r},W.default.createElement(f.Button,{className:"logout-button",color:"tertiary",size:"lg",onClick:l},d("logout.popup.button.logout")),W.default.createElement(f.Button,{className:"cancel-button",color:"primary",size:"lg",onClick:i},d("logout.popup.button.cancel"))))))},La=Y.default.div(Ba||(Ba=e.__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(e){return e.theme.colors.white}),m.MediaQueries.mbDown,m.MediaQueries.mbUp,m.MediaQueries.mbDown,m.MediaQueries.mbUp,m.MediaQueries.mbDown,m.MediaQueries.mbUp,(function(e){return e.theme.colors.gray200}),m.MediaQueries.mbDown,h.theme.colors.neutral100,m.MediaQueries.mbUp),Ma="hhgcomp-navprofilebutton-popup",Ta=g.getDefaultClassWrapper(La,Ma),Aa=Y.default.div(ja||(ja=e.__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"])),m.MediaQueries.mbUp,m.MediaQueries.mbDown),Pa="hhgcomp-navprofilebutton-popupwrapper";g.getDefaultClassWrapper(Aa,Pa);var Ba,ja,Ha,Oa,Na,Sa=Y.default.div(Ha||(Ha=e.__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(e){return e.theme.colors.secondaryBase})),za=Y.default.a(Oa||(Oa=e.__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"])),Ma,m.MediaQueries.mbDown,Pa),Da=Y.default.a(Na||(Na=e.__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"])),m.MediaQueries.mbUp,m.MediaQueries.mbUp),Ua=function(e){var n,t,a,i;return e?{termId:e.term_id||null,sponsor:e.sponsor?(i=e.sponsor,i?{title:i.title,logo:i.logo,link:i.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(n=e.child_cates)||void 0===n?void 0:n.map((function(e){return Ua(e)})))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(t=e.cat_parent)||void 0===t?void 0:t.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((function(e){return function(e){return{title:e.title,content:e.content}}(e)})):null}:{}},Ra=function(e){var n,t;if(!e)return{};var a=null===(n=e.link)||void 0===n?void 0:n.includes("/bot/"),i=null===(t=e.link)||void 0===t?void 0:t.startsWith("/fil/"),l=e.link?e.link.startsWith("http")||a?e.link:i?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):"/health-tools".concat(e.link.replace("/health-tools/","/")):void 0;return{icon:e.icon,link:l,subtitle:e.subtitle,title:e.title}},Ga=function(e){return e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{}},Za=function(e){return e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{}},Ia=function(e){var n,t,a=e.type,i=e.specialtySlug,l=e.locale;return"".concat(null===(n=d.LOCALIZED_SLUGS[l])||void 0===n?void 0:n.ALL,"/").concat((null===(t=d.LOCALIZED_SLUGS[l])||void 0===t?void 0:t[a])||"doctor","/").concat(null!=i?i:"")},Qa=function(e){return e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{}},Va=function(e){var n=new Date;if(null==e?void 0:e.startDate){var t=new Date(e.startDate);if(n.getTime()<t.getTime())return!1}if(null==e?void 0:e.endDate){var a=new Date(e.endDate);if(n.getTime()>a.getTime())return!1}return!0},Fa={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"},qa={navHeader:"uJQBNNg",navAvatar:"TfG3dM5",navHeaderUserInfos:"aMtjFNf",navHeaderUserName:"cSz2RR-",navHeaderMyProfileButton:"GyFm00F"};function Wa(e){var t=e.userInfo,i=e.onClickMyProfileButton,l=e.themeName,o=void 0===l?"helloSites":l,r=c.useTranslations().t,d=n.useMemo((function(){var e=(null==t?void 0:t.name)||(null==t?void 0:t.username);return e&&e.length?e[0].toUpperCase():"A"}),[null==t?void 0:t.username,null==t?void 0:t.name]);return W.default.createElement("div",{className:qa.navHeader,onClick:function(){i&&i()}},W.default.createElement(s.Avatar,{className:qa.navAvatar,type:"rounded",size:"xl",avatarUrl:null==t?void 0:t.avatar,firstLetter:d,backgroundColor:"marryBaby"===o?h.theme.mbColors.pink:h.theme.colors.secondaryBase}),W.default.createElement("div",{className:qa.navHeaderUserInfos},W.default.createElement("div",{className:qa.navHeaderUserName},(null==t?void 0:t.name)||(null==t?void 0:t.username)),W.default.createElement("div",{className:qa.navHeaderMyProfileButton,style:{"--bg-hellosites":"url(".concat(a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg"),")"),"--bg-marrybaby":"url(".concat(a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg"),")")}},r("userProfile.nav.header.viewProfile"))))}var Ya="fVk18fq",Ka="v8TCvUb",Ja="mx7T4V3",Xa={myHealth:h.theme.mbColors.toneYellow,myCommunity:h.theme.mbColors.toneBlue,mySaved:h.theme.mbColors.toneGreen},$a={helloSites:{myBooking:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myBooking.svg")},myCommunity:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myCommunity.svg")},myFamily:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myFamily.svg")},myHealth:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-myHealth.svg")},mySaved:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-mySaved.svg")},eCom:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-eCom.svg")}},marryBaby:{mySaved:function(){return a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-mySaved.svg")},myCommunity:function(){return a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-myCommunity.svg")},myHealth:function(){return a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-myHealth.svg")}}},ei=function(e){var t=e.type,a=e.themeName,i=e.className,l=e.onClick,o=void 0===l?function(){}:l,r=c.useTranslations().t,s=n.useMemo((function(){var e,n;return(null===(n=null===(e=$a[a])||void 0===e?void 0:e[t])||void 0===n?void 0:n.call(e))||""}),[t,a]),d=n.useMemo((function(){return"marryBaby"!==a?"transparent":Xa[t]}),[t,a]);return W.default.createElement("div",{onClick:function(){o(t)},className:"".concat(Ya," ").concat(i)},W.default.createElement("div",{className:Ja,style:{backgroundColor:d,backgroundImage:'url("'.concat(s,'")')}}),W.default.createElement("h3",{className:Ka},r("userProfile.nav.card.".concat(t))))},ni="gn6HmGG",ti="FCx8FEM",ai="zMiRxaE",ii="lZ2Z9MQ",li="rwm-agG",oi="qMOscoq",ri=function(e){var t=e.themeName,i=e.locale,l=e.onClickItem,o=n.useState(""),r=o[0],s=o[1],d=n.useMemo((function(){return"marryBaby"===t?[{key:"userProfile.nav.menu.password",icon:a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:a.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:a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]}),[t]);function c(e){e.subMenu?s((function(n){return n?"":e.key})):l&&l(e)}return W.default.createElement("div",{className:ni},d.map((function(e){return W.default.createElement(si,{key:e.key,item:e,openKey:r,onClickItem:c,locale:i})})))},si=function(e){var n,t=e.item,i=e.openKey,l=e.onClickItem,o=e.locale,r=c.useTranslations().t;return(null===(n=t.disableLocale)||void 0===n?void 0:n.includes(o))?null:W.default.createElement("div",{className:"".concat(ti," nav-menu-item"),"data-is-open":i===t.key,key:t.key,"data-has-submenu":!!t.subMenu},W.default.createElement("div",{className:ai,onClick:function(){return l(t)}},t.icon&&W.default.createElement("div",{className:ii,style:{backgroundImage:'url("'.concat(t.icon,'")')}}),r(t.key),t.subMenu&&W.default.createElement("div",{className:li,style:{"--after-bg":"url(".concat(a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg"),")")}})),t.subMenu&&W.default.createElement("div",{className:oi},t.subMenu.map((function(e){return W.default.createElement(si,{key:e.key,item:e,openKey:i,onClickItem:l,locale:o})}))))},di="-AZt1au",ci="IvSIfCI",ui="eahCJov",pi="XIyViFs",mi="_4y-O0w3",fi="kO8iNgD",hi="a1d4E10",gi="Tdguxxf",xi="-mOxsaU",vi="yPeDBNZ",bi={helloSites:{member:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg")},ambassador:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg")},doctor:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg")},expert:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg")},influencer:function(){return a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")}},marryBaby:{member:function(){return a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg")},ambassador:function(){return a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg")},doctor:function(){return a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg")},expert:function(){return a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg")},influencer:function(){return a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}}},yi=function(e){var t=e.themeName,a=e.rank,i=void 0===a?"member":a,l=e.numberOfPosts,o=void 0===l?0:l,r=c.useTranslations().t,s=n.useMemo((function(){var e,n;return(null===(n=null===(e=bi[t])||void 0===e?void 0:e[i])||void 0===n?void 0:n.call(e))||""}),[i,t]);return W.default.createElement("div",{className:mi,"data-user-rank":i},W.default.createElement("div",{className:fi},W.default.createElement("div",{className:hi},W.default.createElement("div",{className:gi,style:{backgroundImage:'url("'.concat(s,'")')}}),W.default.createElement("h3",{className:xi},r("userProfile.userRank.".concat(i))),o>0&&W.default.createElement("p",{className:vi},o," ",r("userProfile.nav.header.count.posts")))))},wi=function(t){var i=t.SSO_URL,l=t.UP_BASEPATH,r=void 0===l?"user":l,s=t.themeName,d=void 0===s?"helloSites":s,u=t.cardUrls,p=void 0===u?Fa:u,m=t.enableCare,h=t.enableTogether,g=t.enableEcom,x=t.userInfo,v=t.togetherApiDomain,b=t.userPostsNumber,y=t.onClickNavigationCard,w=t.onClickMyProfileButton,k=t.onClickMenuItem,C=t.onClickLogout,_=t.isUserProfileNavigatorMenuHidden,L=void 0!==_&&_,M=t.isMyHealthEnabled,T=void 0!==M&&M,A=t.locale,P=c.useTranslations().t,B=n.useState(b||0),j=B[0],H=B[1],O="marryBaby"===d;n.useEffect((function(){if(x&&void 0===b){var n=E.getCookie("hhg_user_token");n&&fetch(function(n,t,a,i){return(a||"https://together.hellohealthgroup.com/")+"api/v1/"+$.default(Zt,e.__assign(e.__assign({},i),{websiteUrl:t?"https://marrybaby.vn":"https://".concat(o.domainLocales[n])}))}(A,O,v),{headers:{Authorization:"Bearer ".concat(n)}}).then((function(e){return e.json()})).then((function(e){var n,t,a;1===(null==e?void 0:e.status)&&(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.pagination)&&H((null===(a=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((function(e){return console.error("Error fetching post number",e)}))}}),[A,null!==x,b,v,O]);var N=n.useMemo((function(){return(O?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"]).filter((function(e){return"myBooking"===e?m:"myCommunity"===e?h:"myHealth"===e?T:"eCom"!==e||g}))}),[O,T]),S=n.useMemo((function(){return"marryBaby"===d?null:W.default.createElement(f.Button,{color:"tertiary",icon:W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:C,className:pi},P("userProfile.nav.menu.logout"))}),[d]),z=function(e){window.location.href="".concat(i).concat(r,"/").concat(e)},D=function(e){var n=p[e];y?y(n):z(n)};return x?W.default.createElement("div",{className:di,"data-theme":d},W.default.createElement(Wa,{userInfo:x,themeName:d,onClickMyProfileButton:function(){w?w():z("profile")}}),W.default.createElement(yi,{themeName:d,rank:"member",numberOfPosts:j}),W.default.createElement("div",{className:ci},N.map((function(e){return W.default.createElement(ei,{className:ui,key:e,themeName:d,type:e,onClick:D})}))),!L&&W.default.createElement(W.default.Fragment,null,W.default.createElement(ri,{themeName:d,locale:A,onClickItem:function(e){"logout"===e.link&&C?C():e.link&&!e.subMenu&&(k?k(e.link):z(e.link))}}),S)):null},Ei=function(e){var n=e.type,t=void 0===n?"lead":n,a=e.closeIcon,i=e.isOpen,l=void 0===i||i,o=e.onClose,r=e.children,s=e.enableAnimation,d=void 0===s||s,c=e.targetAvatar,u=e.id,p=e.className;return W.default.createElement(Ta,{"data-open":l,"data-type":t,"data-animation":d,"data-target":c,id:u,className:p},W.default.createElement("div",{className:"popup-content"},!!a&&W.default.createElement("div",{className:"close-button",onClick:o},a),r))},ki=function(e){var n=e.SSO_URL,t=e.UP_BASEPATH,a=e.isOpen,i=e.targetAvatar,l=e.userInfo,o=e.enableCare,r=e.enableTogether,s=e.enableEcom,d=e.closePopup,c=e.siteType,u=void 0===c?"helloSites":c,p=e.dispatchLogout,m=e.userProfileRouterPush,f=e.isUserProfileNavigatorMenuHidden,h=e.isMyHealthEnabled,g=void 0!==h&&h,x=e.togetherApiDomain,v=e.locale,b=function(e){m?m("/".concat(e)):n&&(window.location.href="".concat(n).concat(t,"/").concat(e))},y=function(e){b(e),d()};return W.default.createElement(Ei,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:i,onClose:d},W.default.createElement(wi,{SSO_URL:n,UP_BASEPATH:t,themeName:u,userInfo:l,enableCare:o,enableTogether:r,enableEcom:s,onClickLogout:function(){p&&(p(),d())},onClickMenuItem:y,onClickNavigationCard:y,onClickMyProfileButton:function(){b("profile"),d()},isUserProfileNavigatorMenuHidden:f,isMyHealthEnabled:g,togetherApiDomain:x,locale:v}))},Ci=function(t){var i=t.userInfo,o=t.siteType,r=t.isAmp,d=t.onLoginClick,u=t.SSO_URL,p=t.currentUrl,m=t.isMinifyLogin,g=t.enableCare,x=t.enableTogether,v=t.enableEcom,b=t.isUserProfileNavigatorMenuHidden,y=t.UP_BASEPATH,w=t.isMyHealthEnabled,E=t.togetherApiDomain,k=t.onLogout,C=t.style,_=t.userProfileRouterPush,L=t.isLoading,M=t.locale,T=c.useTranslations().t,A=n.useState(!1),P=A[0],B=A[1],j=(null==i?void 0:i.name)||(null==i?void 0:i.username),H=n.useState(!1),O=H[0],N=H[1];n.useEffect((function(){N(!0)}),[]);var S=Ea(),z=S.containerRef,D=S.onContainerFocus,U=S.onContainerBlur,R=S.onButtonMouseDown,G=S.onClose;return L&&!r?W.default.createElement(f.Button,{size:"sm",color:"transparent",isLoading:!0}):(null==i?void 0:i.id)?W.default.createElement(W.default.Fragment,null,W.default.createElement(za,{ref:z,href:r?"".concat(u,"user/profile"):void 0,style:C,tabIndex:0,onBlur:U,onFocus:D},W.default.createElement("div",{onMouseDown:R},W.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"},W.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),W.default.createElement(s.Avatar,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==i?void 0:i.avatar,firstLetter:j&&j.length?j[0].toUpperCase():"A",backgroundColor:"marryBaby"===o?h.theme.mbColors.pink:h.theme.colors.secondaryBase,isAmp:r})),!r&&W.default.createElement(ki,{UP_BASEPATH:y,SSO_URL:u,dispatchLogout:function(){G(),B(!0)},isOpen:!1,isMyHealthEnabled:w,enableCare:g,enableTogether:x,enableEcom:v,closePopup:G,userInfo:i,siteType:o,isUserProfileNavigatorMenuHidden:b,togetherApiDomain:E,userProfileRouterPush:_,locale:M})),!r&&W.default.createElement(_a,{openLogoutPopup:P,onCloseHandler:function(){document.body.classList.toggle("noscroll",!1),B(!1)},siteType:o,onLogoutHandler:function(){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return B(!1),document.body.classList.toggle("noscroll",!1),[4,k()];case 1:return e.sent(),[2]}}))}))}})):W.default.createElement(Da,{style:e.__assign({textDecoration:"none"},C),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":p,href:r?"".concat(u,"?returnUrl=").concat(p.replace("?amp=1","")):O?void 0:"".concat(u,"?returnUrl=").concat(p),"data-site-type":o},m?W.default.createElement(Sa,{onClick:d},W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):W.default.createElement(W.default.Fragment,null,"helloSites"===o&&W.default.createElement("img",{className:"mobile-only",src:a.CommonGAssets.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:d}),"marryBaby"===o&&W.default.createElement("div",{className:"mobile-only",onClick:d,style:{paddingLeft:16}},W.default.createElement(l.Text,{size:"p3",color:h.theme.mbColors.pink},T("navigation.loginJoin"))),W.default.createElement(f.Button,{className:"login-btn",size:"md",color:"tertiary",onClick:d,icon:W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("login.svg"),width:18,height:18}),theme:o},T("navigation.loginJoin"))))},_i="-XmTq5-",Li="V-oxu20",Mi=function(e){var t=e.item,a=e.menu,i=Ea({allowBgScroll:!0}),l=i.containerRef,o=i.onContainerFocus,r=i.onContainerBlur,s=i.onButtonMouseDown,d=i.onClose,c=function(){var e=n.useState(!0),t=e[0],a=e[1];return n.useEffect((function(){a(!1)}),[]),t}();return!t.popupType&&t.link?W.default.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem ".concat(c?"":"menu-handler-".concat(t.id)),tabIndex:0,href:t.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t.link},W.default.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t.link,className:Li},t.name)):W.default.createElement("div",{ref:l,className:"hhgcomp-navigation-itemnav-headeritem ".concat(c?"":"menu-handler-".concat(t.id)),tabIndex:0,key:t.id,onBlur:r,onFocus:o,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t.link},W.default.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":t.link,onMouseDown:s,className:Li},t.name,t.popupType&&W.default.createElement("div",{className:_i},W.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W.default.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),W.default.isValidElement(a)?W.default.cloneElement(a,{onClose:d}):null)},Ti="eJS8-if",Ai="EuQrB-3",Pi="_0JtBh8L",Bi=function(e){var n=e.onClosePopup;return W.default.createElement("div",{className:"".concat(Pi," close-btn"),onClick:n},W.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))},ji=function(e){var n=e.onClosePopup,t=e.isDisplay,a=e.children,i=e.isNavMenu,l=e.hideCloseBtn;return W.default.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!i},W.default.createElement(k.Container,null,!l&&W.default.createElement("div",{className:Ai},W.default.createElement(Bi,{onClosePopup:n})),W.default.createElement(k.Container,{className:Ti},a)))},Hi=function(e){var t,a=e.careSpecialties,i=void 0===a?[]:a,l=e.isOpen,o=e.onClose,r=e.spotlights,s=void 0===r?[]:r,u=c.useTranslations().t,p=n.useContext(je),m=p.locale,f=p.configs.statics,h="".concat(f.CARE_URL_FE,"/").concat(null===(t=d.LOCALIZED_SLUGS[m])||void 0===t?void 0:t.SPECIALTIES);return W.default.createElement(ji,{onClosePopup:o,isDisplay:l,isNavMenu:!0},W.default.createElement(Ie,{headingTitle:u("home.navigator.menuItem.specialties"),hrefViewMore:h,UrlFE:f.CARE_URL_FE,onClosePopup:o,titleBtnViewMore:u("home.navigator.menuItem.allSpecialties"),menuItems:(null==i?void 0:i.map((function(e){return e?{name:String(e.name)||"",link:Ia({type:"DOCTOR",specialtySlug:e.slug,locale:m}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{}})))||[]}),W.default.createElement(wn,{spotlights:s,hrefViewMore:h}))},Oi=function(e){var t=e.categories,a=void 0===t?[]:t,i=e.spotlightsList,l=void 0===i?[]:i,o=e.onClose,r=e.isOpen,s=c.useTranslations().t,d=n.useContext(je),u=d.locale,p=d.configs.statics;return W.default.createElement(ji,{onClosePopup:o,isDisplay:r,isNavMenu:!0},W.default.createElement(Ie,{hrefViewMore:"".concat(p.HOME_PAGE_URL).concat("tl-PH"===u?"/fil":"","/categories/"),UrlFE:p.HOME_PAGE_URL,onClosePopup:o,titleBtnViewMore:s("home.navigator.menuItem.allCategories"),menuItems:(null==a?void 0:a.map((function(e){return e?{name:e.displayName||null,link:(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{}})))||[],headingTitle:s("home.navigator.menuItem.healthCategories")}),W.default.createElement(Hn,{spotlightsList:l,hrefViewMore:"".concat(p.HOME_PAGE_URL).concat("tl-PH"===u?"/fil":"","/spotlight/")}))},Ni=function(e){var t=e.communities,a=void 0===t?[]:t,i=e.onClose,l=e.isOpen,o=e.spotlights,r=void 0===o?[]:o,s=c.useTranslations().t,d=n.useContext(je).configs.statics;return W.default.createElement(ji,{onClosePopup:i,isDisplay:l,isNavMenu:!0},W.default.createElement(Ie,{hrefViewMore:d.TOGETHER_URL_FE+"/",UrlFE:d.TOGETHER_URL_FE,onClosePopup:i,titleBtnViewMore:s("home.navigator.menuItem.allCommunities"),menuItems:(null==a?void 0:a.map((function(e){return e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{}})))||[],headingTitle:s("home.navigator.menuItem.allCommunitiesheadingTitle")}),W.default.createElement(rt,{spotlights:r}))},Si=function(e){var t,a=e.locale,i=e.onClose,l=e.isOpen,r=e.spotlightHealthTools,s=void 0===r?[]:r,d=e.healthTools,u=void 0===d?[]:d,p=c.useTranslations().t,m=n.useContext(je).configs.statics,f="".concat(m.HOME_PAGE_URL).concat("tl-PH"===a?"/fil":"").concat((null===(t=o.STATIC_PAGES[a])||void 0===t?void 0:t.HEALTH_TOOLS)||"");return W.default.createElement(ji,{onClosePopup:i,isDisplay:l,isNavMenu:!0},W.default.createElement(Ie,{hrefViewMore:f,UrlFE:m.HOME_PAGE_URL,onClosePopup:i,headingTitle:p("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:p("home.navigator.menuItem.allHealthTools"),menuItems:u.map((function(e){return{name:e.title,link:e.link?e.link.startsWith("http")?e.link:"".concat(m.HOME_PAGE_URL).concat(e.link):void 0,thumbnail:e.icon}}))}),W.default.createElement(Gt,{spotlightHealthTools:s,hrefViewMore:f}))},zi="_6gGCHV-",Di="YDzfyQU",Ui=function(e){var n=e.onCareHeaderClick,t=e.currentUrl,a=e.careUrlFe,i=e.btnName;return n?W.default.createElement(f.Button,{className:zi,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:function(e){return n(e)}},i):W.default.createElement("a",{href:a,className:"".concat(Di," care-button no-replace-click")},W.default.createElement(f.Button,{className:zi,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},i))};function Ri(e){var n=e.className,t=e.ampHidden,a=e.ampBindHiddenCondition;return W.default.createElement("div",{"data-amp-bind-hidden":a,hidden:t},W.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},W.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function Gi(e){var n=e.siteType,t=e.type,i=e.enableSearch,l=e.className,o=e.ampBindHiddenCondition;return"helloSites"===n?W.default.createElement("div",{"data-amp-bind-hidden":o},W.default.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:i?a.CommonGAssets.getAssetPath("hamburgerMenuNewWithSearch.svg"):a.CommonGAssets.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:l})):W.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l},W.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 Zi="IQdn7tn",Ii="_1jX3mGY",Qi="arD755Y",Vi=function(t){var a=t.type,i=void 0===a?"home":a,l=t.menuItems,o=n.useContext(je),r=o.siteType,s=o.isAmp,d=o.configs.enableSearchBar,c=Ea(),u=c.containerRef,p=c.onContainerFocus,m=c.onContainerBlur,f=c.onButtonMouseDown,h=c.onClose;return W.default.createElement(wa,{mediaQueryKey:"mbDown",forceDisplay:!!s||void 0},s&&W.default.createElement("amp-state",{id:"menu"},W.default.createElement("script",{type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify({lightbox:"closed"})}})),W.default.createElement("header",{className:Zi},W.default.createElement("div",e.__assign({className:Ii,ref:u,role:"button",tabIndex:0,onBlur:m,onFocus:p,"data-amp":!!s},{on:"tap:discover-amp-lightbox"}),W.default.createElement("div",{className:Qi,onMouseDown:f,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},W.default.createElement(Ri,{className:"mobile-close-icon",ampHidden:s&&!0,ampBindHiddenCondition:"menu.lightbox == 'closed'"}),W.default.createElement(Gi,{siteType:r,type:i,enableSearch:d,className:"mobile-hamburger-icon",ampBindHiddenCondition:"menu.lightbox == 'open'"})),!s&&W.default.createElement(ba,{menuItems:l,closePopup:h}))))},Fi=Y.default.div(Ji||(Ji=e.__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 &[data-is-amp='true'] {\n position: relative;\n transform: translateY(0);\n transition: transform 0.5s;\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 &[data-is-amp='true'] {\n position: relative;\n transform: translateY(0);\n transition: transform 0.5s;\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 &[data-is-amp='true'] {\n position: relative;\n transform: translateY(0);\n transition: transform 0.5s;\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 &[data-is-amp='true'] {\n position: relative;\n transform: translateY(0);\n transition: transform 0.5s;\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(e){return e.theme.colors.white}),(function(e){return e.theme.colors.neutral100}),(function(e){return e.theme.mbColors.lightPink}),m.MediaQueries.mbUp,m.MediaQueries.mbDown,It,Qt,Vt,(function(e){return e.theme.mbColors.lightGray})),qi=Y.default.div(Xi||(Xi=e.__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"])),m.MediaQueries.pcDown,m.MediaQueries.mbDown,m.MediaQueries.tdUp),Wi=Y.default.div($i||($i=e.__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"])),m.MediaQueries.pcDown),Yi=Y.default.div(el||(el=e.__makeTemplateObject([""],[""]))),Ki=Y.default.div(nl||(nl=e.__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"])),m.MediaQueries.pcUp,m.MediaQueries.pcDown,m.MediaQueries.mbDown);Y.default.div(tl||(tl=e.__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 Ji,Xi,$i,el,nl,tl,al,il,ll,ol,rl,sl,dl=Y.default.div(al||(al=e.__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"])),m.MediaQueries.pcDown,m.MediaQueries.mbDown),cl=Y.default.div(il||(il=e.__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"]))),ul=function(e){var t,i=e.onTopBarAppears,l=e.type,r=void 0===l?"home":l,s=e.languageMenu,d=e.menuItems,u=e.setSitewideBannerClosed,p=e.sitewideBannerClosed,m=n.useContext(je),f=m.siteType,h=m.isAmp,g=m.isMobile,x=void 0!==g&&g,v=m.locale,y=m.sitewideBanner,w=m.sitewideBannerShown,E=void 0===w||w,k=m.sponsorComponent,C=m.onBookingClick,_=m.currentUrl,L=m.onLoginClick,M=m.configs,T=M.statics,A=M.enableNavCareBooking,P=M.enableSearchBar,B=M.enableNavCare,j=M.enableProfileMyHealth,H=M.enableNavTogether,O=M.enableProfileEcom,N=M.enableProfileNavigatorMenu,S=m.userState.userInfo,z=m.onLogout,D=m.userProfileRouterPush,U=m.isUserLoading,R=c.useTranslations().t,G=T.SSO_URL,Z=T.HOME_PAGE_URL,I=!!k,Q=n.useState(!1),V=Q[0],F=Q[1],q=n.useRef(47),Y=n.useRef(null),K=n.useRef(!1),J="helloSites"===f?null===(t=o.LOCALE_SPECS[v])||void 0===t?void 0:t.LOGO_TYPE:f,$="undefined"!=typeof window,ee=n.useCallback(X.default((function(){if("home"===r&&$){if(!Y.current)return;var e=Y.current.getBoundingClientRect();e.top<=0&&window.scrollY>q.current&&window.scrollY>e.height+20&&!K.current&&(K.current=!0,F(!0)),window.scrollY<q.current&&K.current&&(K.current=!1,F(!1)),window.scrollY>=0&&(q.current=window.scrollY)}}),200),[]);n.useEffect((function(){null==i||i(!V)}),[V]),n.useEffect((function(){return window.addEventListener("scroll",ee,{passive:!0}),function(){window.removeEventListener("scroll",ee)}}),[]),n.useEffect((function(){x&&ee()}),[x]);var ne=E&&!!y&&!p;return W.default.createElement(Fi,{"data-site-type":f,"data-sponsored":I,"data-sitewide-banner-shown":ne,"data-header-type":r,"data-collapsed":V,"data-with-search-input":"popup-sub-level"!==r,"data-is-displayed":!0,"data-is-amp":h,id:"site-header",ref:Y},y?W.default.isValidElement(y)?W.default.cloneElement(y,{isCollapsed:V,setBannerClosed:u,isAmp:h,isMobile:x}):y:null,W.default.createElement(qi,{"data-site-type":f},W.default.createElement(Wi,{"data-site-type":f},W.default.createElement(Vi,{menuItems:d,type:r}),W.default.createElement("a",{href:Z},W.default.createElement(Yi,null,W.default.createElement(b.Logo,{style:{display:"flex"},type:J,badge:"id-ID"===v&&(h?W.default.createElement("amp-img",{src:a.CommonGAssets.getAssetPath("sehat-badge.png"),width:"56",height:"23"}):W.default.createElement("img",{src:a.CommonGAssets.getAssetPath("sehat-badge.png"),width:"56",height:"23"})),dateForSeasonal:new Date,locale:v,key:"undefined"!=typeof window?"client":"server"}))),!h&&("marryBaby"===f?W.default.createElement(ml,{menuItems:d}):P&&W.default.createElement(pl,{siteType:f}))),W.default.createElement(Ki,{"data-site-type":f},!h&&("marryBaby"===f?P&&W.default.createElement(pl,{siteType:f}):W.default.createElement(ml,{menuItems:d})),W.default.createElement(dl,null,A&&!h&&W.default.createElement(wa,{mediaQueryKey:"mbUp",forceDisplay:!h&&void 0},W.default.createElement(Ui,{careUrlFe:T.CARE_URL_FE,currentUrl:_,btnName:R("login.booking"),onCareHeaderClick:C})),s,W.default.createElement(Ci,{userInfo:S,siteType:f,isAmp:h,onLoginClick:L||function(){var e=window.location.href;window.location.href=G?"".concat(G,"?returnUrl=").concat(e):e},SSO_URL:T.SSO_URL+"/",currentUrl:_,onLogout:z,UP_BASEPATH:o.UP_BASEPATH,isMyHealthEnabled:j,enableCare:B,enableTogether:H,enableEcom:O,togetherApiDomain:T.TOGETHER_API+"/",isUserProfileNavigatorMenuHidden:!N,userProfileRouterPush:D,isLoading:U,locale:v})))),k?W.default.isValidElement(k)?W.default.cloneElement(k,{isCollapsed:V,locale:v,isMobile:x,isAmp:h}):k:null)},pl=function(e){var n=e.siteType;return W.default.createElement(wa,{mediaQueryKey:"mbUp",className:"marryBaby"===n?"marry-baby":""},W.default.createElement(Ne,null))},ml=function(e){var t=e.menuItems,a=n.useContext(je),i=a.siteType,l=a.locale,o=a.ssrMenuContent,r=o.categories,s=o.healthTools,d=o.care,c=o.together;return W.default.createElement(wa,{mediaQueryKey:"mbUp",style:{height:"100%"}},W.default.createElement(cl,{"data-site-type":i},null==t?void 0:t.map((function(e,n){return W.default.createElement(Mi,{key:n,item:e,menu:"categories"===e.popupType?W.default.createElement(Oi,{categories:null==r?void 0:r.items,spotlightsList:null==r?void 0:r.spotlights}):"tools"===e.popupType?W.default.createElement(Si,{locale:l,healthTools:null==s?void 0:s.items,spotlightHealthTools:null==s?void 0:s.spotlights}):"together"===e.popupType?W.default.createElement(Ni,{communities:null==c?void 0:c.items,spotlights:null==c?void 0:c.spotlights}):"care"===e.popupType?W.default.createElement(Hi,{careSpecialties:null==d?void 0:d.items,spotlights:null==d?void 0:d.spotlights}):null})}))))},fl=Y.default.div(ol||(ol=e.__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 ","\n\n .amp-header {\n position: fixed;\n z-index: var(--header-z-index);\n top: 0;\n left: 0;\n width: 100vw;\n max-width: 100vw;\n\n > [data-site-type] {\n border-bottom: none;\n }\n }\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 > amp-lightbox {\n pointer-events: auto;\n }\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 ","\n\n .amp-header {\n position: fixed;\n z-index: var(--header-z-index);\n top: 0;\n left: 0;\n width: 100vw;\n max-width: 100vw;\n\n > [data-site-type] {\n border-bottom: none;\n }\n }\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 > amp-lightbox {\n pointer-events: auto;\n }\n > section * {\n pointer-events: auto;\n }\n"])),m.MediaQueries.mbDown,(function(n){return!n.isAmp&&i.css(ll||(ll=e.__makeTemplateObject(["\n -webkit-transform: translateZ(0);\n position: sticky;\n "],["\n -webkit-transform: translateZ(0);\n position: sticky;\n "])))}));Y.default.div(rl||(rl=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),Y.default.a(sl||(sl=e.__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 hl=function(t){var i,l,r=t.isMobile,s=t.isAmp,d=void 0!==s&&s,u=t.locale,p=t.onTopBarAppears,m=t.languageOptions,f=t.ampSubBar,h=t.sponsorComponent,g=t.sitewideBanner,x=t.sitewideBannerShown,v=t.className,b=n.useState(!1),y=b[0],w=b[1],E=function(){var e=c.useTranslations().t,t=n.useContext(je),i=t.siteType,l=t.locale,r=t.configs,s=r.enableNavCare,d=r.enableNavTogether,u=r.enableNavEcom,p=r.statics,m="marryBaby"===i,f=n.useMemo((function(){var n,t=[{name:e("home.navigator.menuItem.discover"),id:"categories",link:"".concat(p.HOME_PAGE_URL).concat("tl-PH"===l?"/fil":"","/categories"),niceName:"",thumbnail:m?a.CommonGAssets.getAssetPath("categories-mb.svg"):a.CommonGAssets.getAssetPath("discover.png"),popupType:"categories"},{name:e("home.navigator.menuItem.healthTools"),id:"tools",link:"".concat(p.HOME_PAGE_URL).concat("tl-PH"===l?"/fil":"").concat((null===(n=o.STATIC_PAGES[l])||void 0===n?void 0:n.HEALTH_TOOLS)||""),thumbnail:m?a.CommonGAssets.getAssetPath("healthtools-mb.svg"):a.CommonGAssets.getAssetPath("healthTools.png"),popupType:"tools"}];return s&&t.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:p.HOME_PAGE_URL+"/care",thumbnail:a.CommonGAssets.getAssetPath("helloCare-thumbnail.png"),popupType:"zh-TW"===l?null:"care"}),d&&t.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:p.TOGETHER_URL_FE+"/",thumbnail:m?a.CommonGAssets.getAssetPath("community-mb.svg"):a.CommonGAssets.getAssetPath("together.png"),popupType:"together"}),u&&t.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:p.HOME_PAGE_URL+"/ecom",thumbnail:a.CommonGAssets.getAssetPath("helloCare-thumbnail.png"),popupType:"shop"}),t}),[l,s,d,u]);return f}();!function(){var t=n.useContext(je),a=t.isFirstLogin,i=t.userState.userInfo;n.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:e.__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:e.__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:e.__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:e.__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 k=d&&{"next-page-hide":""},C=function(e){var t=e.hasSponsoredBanners,a=e.isSiteWide,i=e.isSponsored,l=e.isShowingSiteWideBanner,o=e.isMobile,r=e.showAmpSubBar,s=n.useRef(null),d=n.useState(0),c=d[0],u=d[1],p=n.useState(64),m=p[0],f=p[1],h=n.useCallback(ee.default((function(){var e,n,t,a,i=(null===(e=s.current)||void 0===e?void 0:e.clientHeight)||(null===(t=null===(n=s.current)||void 0===n?void 0:n.children[0])||void 0===t?void 0:t.clientHeight)||0;window.scrollY<=i+200&&(u(i),f((null===(a=s.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||c))}),200),[]);n.useEffect((function(){return window.addEventListener("resize",h),window.addEventListener("scroll",h),h(),function(){window.removeEventListener("resize",h),window.removeEventListener("scroll",h)}}),[]),n.useEffect((function(){h()}),[r,o,a,l,i,t,s.current]);var g=n.useMemo((function(){var e=o?64:69;return l&&(e+=64),i&&(e+=40,t&&(e+=57)),r&&(e+=32),e}),[o,l,t,i,r]);return{defaultHeaderHeight:g,headerHeight:c||g,headerBottom:m,headerRef:s}}({isSiteWide:!!g&&!y,isShowingSiteWideBanner:x&&!!g&&!y,isSponsored:!!h,hasSponsoredBanners:!!(null===(l=null===(i=null==h?void 0:h.props)||void 0===i?void 0:i.sponsoredBy)||void 0===l?void 0:l.length),isMobile:r,showAmpSubBar:d&&!!f}),_=C.headerRef,L=C.defaultHeaderHeight,M=C.headerHeight,T=C.headerBottom;return W.default.createElement(fl,{id:"navigation-v2",style:{"--default-header-height":L+"px","--header-height":"calc(".concat(M,"px - var(--amp-site-wide-closed), 64px)"),"--header-bottom":T+"px"},isAmp:d,className:"".concat(d&&x?"nav-open":""," ").concat(v)},W.default.createElement("section",e.__assign({className:d?"amp-header":void 0,"next-page-replace":"hhg-navigator","amp-fx":"float-in-top"},k,{ref:_,style:d?{overflow:"hidden"}:void 0}),W.default.createElement(ul,{menuItems:E,type:"home",onTopBarAppears:r?function(e){p&&p(e)}:void 0,languageMenu:W.default.createElement(Pe,{languageOptions:m,locale:u}),setSitewideBannerClosed:w,sitewideBannerClosed:y}),r&&d&&void 0!==f&&W.default.createElement(W.default.Fragment,null,f)),d&&W.default.createElement("amp-lightbox",{id:"discover-amp-lightbox",layout:"nodisplay",style:{width:"100vw",maxWidth:"100vw"},on:"lightboxOpen:AMP.setState({menu: {lightbox: 'open'}});lightboxClose:AMP.setState({menu: {lightbox: 'closed'}})"},W.default.createElement("div",e.__assign({style:{position:"absolute",width:"100%",height:"100%"},role:"button",tabIndex:1},{on:"tap:discover-amp-lightbox.close"})),W.default.createElement(ba,{menuItems:E})))},gl=function(n){return e.__awaiter(void 0,void 0,void 0,(function(){var t,a,i,l,d,c,u,p,m,f,h,g,x,v,b,y,w,E,k,C,_,L,M,T,A,P,B,j,H,O,N,S,z,D,U,R;return e.__generator(this,(function(e){switch(e.label){case 0:t={},a="vi-VN_MB"===n,e.label=1;case 1:e.trys.push([1,14,,15]),i="tl-PH"===n?"lang=fil":"",e.label=2;case 2:return e.trys.push([2,4,,5]),[4,Promise.all([fetch("".concat(r.getDiscoverApiDomain(n),"/wp-json/api/categories").concat(i?"?"+i:"")).then((function(e){return e.json()})),fetch("".concat(r.getDiscoverApiDomain(n),"/wp-json/api/spotlights?per_page=10").concat(i?"&"+i:"")).then((function(e){return e.json()})),fetch("".concat(r.getDiscoverApiDomain(n),"/wp-json/api/").concat(a?"health-tools":"healthtools").concat(i?"?"+i:"")).then((function(e){return e.json()})),fetch("".concat(r.getDiscoverApiDomain(n),"/wp-json/api/").concat(a?"health-tools":"healthtools","/favorites").concat(i?"?"+i:"")).then((function(e){return e.json()}))])];case 3:return l=e.sent(),d=l[0],c=l[1],u=l[2],p=l[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,Ua))||[],spotlights:(null===(_=null===(C=null===(k=null===(E=null==c?void 0:c.data)||void 0===E?void 0:E.articles)||void 0===k?void 0:k.map)||void 0===C?void 0:C.call(k,Qa))||void 0===_?void 0:_.filter(Va))||[]},t.healthTools={items:(null===(M=null===(L=null==u?void 0:u.data)||void 0===L?void 0:L.map)||void 0===M?void 0:M.call(L,Ra))||[],spotlights:(null===(A=null===(T=null==p?void 0:p.data)||void 0===T?void 0:T.map)||void 0===A?void 0:A.call(T,Ra))||[]},[3,5];case 4:return e.sent(),[3,5];case 5:if(!a&&!o.TOGETHER_LOCALES.includes(n))return[3,9];e.label=6;case 6:return e.trys.push([6,8,,9]),[4,Promise.all([fetch("".concat(r.getTogetherApiDomain(),"/api/v1/community?website_url=https://").concat(o.domainLocales[n])).then((function(e){return e.json()})),fetch("".concat(r.getTogetherApiDomain(),"/api/v1/options?website_url=https://").concat(o.domainLocales[n],"&meta_key=popular_post")).then((function(e){return e.json()}))])];case 7:return m=e.sent(),f=m[0],h=m[1],t.together={items:(null===(j=null===(B=null===(P=null==f?void 0:f.data)||void 0===P?void 0:P.communities)||void 0===B?void 0:B.map)||void 0===j?void 0:j.call(B,s.formatCommunity))||[],spotlights:(null===(N=null===(O=null===(H=null==h?void 0:h.data)||void 0===H?void 0:H.posts)||void 0===O?void 0:O.map)||void 0===N?void 0:N.call(O,s.formatPost))||[]},[3,9];case 8:return e.sent(),[3,9];case 9:if(!o.CARE_LOCALES.includes(n))return[3,13];e.label=10;case 10:return e.trys.push([10,12,,13]),[4,Promise.all([fetch(r.getCareApiDomain()+"/api/specialties?_ishome=1&site=".concat(o.domainLocales[n])).then((function(e){return e.json()})),fetch(r.getCareApiDomain()+"/api/search/?site=".concat(o.domainLocales[n],"&type=hospital&order_by=total_doctor")).then((function(e){return e.json()}))])];case 11:return g=e.sent(),x=g[0],v=g[1],t.care={items:(null===(D=null===(z=null===(S=null==x?void 0:x._data)||void 0===S?void 0:S.specialties)||void 0===z?void 0:z.map)||void 0===D?void 0:D.call(z,Ga))||[],spotlights:(null===(R=null===(U=null==v?void 0:v._data.searches)||void 0===U?void 0:U.map)||void 0===R?void 0:R.call(U,Za))||[]},[3,13];case 12:return e.sent(),[3,13];case 13:return[3,15];case 14:return b=e.sent(),console.error(b),[3,15];case 15:return[2,t]}}))}))};exports.Flag=Ee,exports.LanguageSwitcher=Pe,exports.NavHeader=Wa,exports.NavigationLogoutPopup=_a,exports.NavigationProfileButton=Ci,exports.NavigationV2=function(n){var t=e.__assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},n);return W.default.createElement(He,e.__assign({},t),W.default.createElement(hl,e.__assign({},t)))},exports.ProfilePopup=ki,exports.UserProfileNavigation=wi,exports.UserStats=yi,exports.getNavMenuContent=gl,exports.getNavMenuContentWithCache=function(n){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,t.getDataWithCache("nav-menu-content",(function(){return gl(n||"en-PH")}),(function(e){var n,t;return!!(null===(t=null===(n=null==e?void 0:e.categories)||void 0===n?void 0:n.items)||void 0===t?void 0:t.length)}))];case 1:return[2,e.sent()||{}]}}))}))};
|