@hhgtech/hhg-components 1.23.47-beta-1 → 1.23.48
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-db0f139c.js → FullScreen-ebdbe8ed.js} +1 -1
- package/build/{Vietnam-1b7572c7.js → Vietnam-b72a9d0e.js} +1 -1
- package/build/{Visible-41dbaa4c.js → Visible-3c092a00.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/helpers.d.ts +0 -7
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-3ba6f34d.js → core-6df15bbb.js} +1 -1
- package/build/{defaultClassWrapper-1376d771.js → defaultClassWrapper-8c177daf.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/{FullScreen-fff2b5c7.js → FullScreen-61fc01b3.js} +1 -1
- package/build/esm/{Vietnam-ef6f3dc3.js → Vietnam-de7cb444.js} +1 -1
- package/build/esm/{Visible-35ffc9cf.js → Visible-6f60cfb1.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-164b929d.js +1 -0
- package/build/esm/defaultClassWrapper-9962ee4b.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-5e34abf4.js → getDynamicHealthTool-f411b69f.js} +1 -1
- package/build/esm/{getSocialList-fd23fb5b.js → getSocialList-59b84dc7.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-0b320744.js +1 -0
- package/build/esm/index-11b31251.js +1 -0
- package/build/esm/index-18a43525.js +1 -0
- package/build/esm/index-2b65fae9.js +1 -0
- package/build/esm/index-3515e823.js +1 -0
- package/build/esm/{index-c8f61247.js → index-4af073aa.js} +1 -1
- package/build/esm/{index-52ec000d.js → index-4f0c97b9.js} +1 -1
- package/build/esm/{index-83857c3b.js → index-4f17b577.js} +2 -2
- package/build/esm/{index-b67896ef.js → index-66b4e5f5.js} +1 -1
- package/build/esm/{index-a0e90451.js → index-a04a9005.js} +1 -1
- package/build/esm/index-a062ede7.js +1 -0
- package/build/esm/index-a8a13ebb.js +1 -0
- package/build/esm/{index-baf5b8c0.js → index-ad52abb5.js} +1 -1
- package/build/esm/{index-43179a20.js → index-c0b0eac7.js} +1 -1
- package/build/esm/{index-49029227.js → index-e61d8f58.js} +1 -1
- package/build/esm/index-eb2e7bb5.js +1 -0
- package/build/esm/{index-478a6f90.js → index-f0c506a8.js} +1 -1
- package/build/esm/index-fde5c9de.js +1 -0
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-0390f270.js → index.styled-1b9ec152.js} +1 -1
- package/build/esm/{index.styled-befe8471.js → index.styled-ec78bbd2.js} +1 -1
- 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-9fe47d5d.js +1 -0
- package/build/esm/{screenSizeContext-e1259009.js → screenSizeContext-a99ceb7e.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-43a9f682.js → translationsProvider-aac15fc0.js} +1 -1
- package/build/esm/{tslib.es6-240993d1.js → tslib.es6-c1e9187a.js} +1 -1
- package/build/esm/{types-09044d97.js → types-6fc6153d.js} +1 -1
- package/build/esm/types-90b66780.js +1 -0
- package/build/esm/types.js +1 -1
- package/build/esm/{useFbDataLayer-821dbcc2.js → useFbDataLayer-3fb7b77f.js} +1 -1
- package/build/esm/useHealthToolCache-443c0fbf.js +1 -0
- package/build/esm/{useTranslations-817e44f2.js → useTranslations-b1d2e3a9.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-c15b6d1f.js → getDynamicHealthTool-961900fd.js} +1 -1
- package/build/{getSocialList-dd2d0c27.js → getSocialList-021a8b04.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-dd5d2e93.js → index-029aa1de.js} +1 -1
- package/build/{index-48a68333.js → index-07128bdd.js} +1 -1
- package/build/index-0999dcda.js +1 -0
- package/build/index-0d8894d0.js +1 -0
- package/build/{index-09e86e9e.js → index-221c8842.js} +1 -1
- package/build/index-2cda1da3.js +1 -0
- package/build/{index-8920e408.js → index-3b84f64d.js} +1 -1
- package/build/{index-100098f4.js → index-3d536ab4.js} +1 -1
- package/build/{index-a13b0a68.js → index-4cfe1da9.js} +1 -1
- package/build/index-4ea0f8d8.js +1 -0
- package/build/index-5896f92a.js +1 -0
- package/build/{index-2605e466.js → index-5d9b961d.js} +1 -1
- package/build/{index-7d2fc97d.js → index-65dee5b0.js} +1 -1
- package/build/index-7abd185b.js +1 -0
- package/build/index-7c2bdab7.js +1 -0
- package/build/index-8569ba0e.js +1 -0
- package/build/{index-ad355507.js → index-bb1f4cad.js} +1 -1
- package/build/index-dfa47ec1.js +1 -0
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-08b41a25.js → index.styled-2c500010.js} +1 -1
- package/build/{index.styled-088c5ce9.js → index.styled-2e7fa0b4.js} +1 -1
- package/build/interfaces/constants/index.d.ts +7 -1
- package/build/lead/campaign.d.ts +2 -4
- package/build/lead/hooks/useLogicValidatePhoneAndEmail.d.ts +8 -0
- package/build/lead/layouts/{lightbox/index.d.ts → lightbox.d.ts} +1 -3
- package/build/lead/newLeadPopup.d.ts +2 -4
- package/build/lead/oldLeadPopup.d.ts +1 -1
- 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 → routing-74a64cb8.js} +1 -1
- package/build/{screenSizeContext-a42a17c7.js → screenSizeContext-73570d5f.js} +1 -1
- package/build/together.js +1 -1
- package/build/{translationsProvider-54c2a545.js → translationsProvider-3a600924.js} +1 -1
- package/build/types-3ebe9a4e.js +1 -0
- package/build/{types-49cf5da3.js → types-87048310.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useFbDataLayer-a740a248.js → useFbDataLayer-3089e0bb.js} +1 -1
- package/build/{useHealthToolCache-778cf190.js → useHealthToolCache-8f397464.js} +1 -1
- package/build/{useTranslations-e6c8c77c.js → useTranslations-deedd9fe.js} +1 -1
- package/package.json +1 -1
- package/build/dataTransform-dcbdd3fb.js +0 -1
- package/build/esm/core-fb29d458.js +0 -1
- package/build/esm/dataTransform-343f3f01.js +0 -1
- package/build/esm/defaultClassWrapper-b8ee20af.js +0 -1
- package/build/esm/index-02046a3c.js +0 -1
- package/build/esm/index-13b0b28f.js +0 -1
- package/build/esm/index-376ebb4f.js +0 -1
- package/build/esm/index-63e6d0d4.js +0 -1
- package/build/esm/index-69561db5.js +0 -1
- package/build/esm/index-7191492d.js +0 -1
- package/build/esm/index-725f3f13.js +0 -1
- package/build/esm/index-7e331974.js +0 -1
- package/build/esm/index-8f5e3aa7.js +0 -1
- package/build/esm/index-b4255462.js +0 -1
- package/build/esm/index-c77660e9.js +0 -1
- package/build/esm/index-c83a55bd.js +0 -1
- package/build/esm/index-ff3764cf.js +0 -1
- package/build/esm/index.styled-1372ac2c.js +0 -1
- package/build/esm/index.styled-88cc85a0.js +0 -1
- package/build/esm/index.styled-f5713480.js +0 -1
- package/build/esm/routing-3f9ef717.js +0 -1
- package/build/esm/types-b6afea22.js +0 -1
- package/build/esm/useHealthToolCache-1042ea64.js +0 -1
- package/build/index-1ab146b3.js +0 -1
- package/build/index-32221155.js +0 -1
- package/build/index-54cc6033.js +0 -1
- package/build/index-56770262.js +0 -1
- package/build/index-57813d03.js +0 -1
- package/build/index-64171f27.js +0 -1
- package/build/index-7bf33f6e.js +0 -1
- package/build/index-bd2c44f0.js +0 -1
- package/build/index-cc29dcf3.js +0 -1
- package/build/index-cffee0dc.js +0 -1
- package/build/index-e0d0b6de.js +0 -1
- package/build/index-f2d9daa2.js +0 -1
- package/build/index-f922ec82.js +0 -1
- package/build/index.styled-30965c2f.js +0 -1
- package/build/index.styled-3a315556.js +0 -1
- package/build/index.styled-b9733d21.js +0 -1
- package/build/lead/layouts/lightbox/fields/index.d.ts +0 -9
- package/build/lead/layouts/lightbox/formContext.d.ts +0 -12
- package/build/lead/utils/checkUsedEmailOrPhone.d.ts +0 -11
- package/build/types-90bfed52.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-bd85310c.js → BMI_BOYS.percentile.monthly-89cc9b23.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-29804153.js → BMI_BOYS.percentile.weekly-69f97e70.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-a8d1ba42.js → BMI_BOYS.percentile.yearly-904e8503.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-f6aaf32f.js → BMI_BOYS.zscore.monthly-56f12ffa.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-0cedf421.js → BMI_BOYS.zscore.weekly-785a36f3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-cfffb60a.js → BMI_BOYS.zscore.yearly-857d4b12.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-be727ba3.js → BMI_GIRLS.percentile.monthly-ea8095e4.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-368b23c2.js → BMI_GIRLS.percentile.weekly-9a3fc05e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-f18926a6.js → BMI_GIRLS.percentile.yearly-4d382437.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-ceb0d8c8.js → BMI_GIRLS.zscore.monthly-123384f5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-a2e5651d.js → BMI_GIRLS.zscore.weekly-641dde7f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-6f1b0cdb.js → BMI_GIRLS.zscore.yearly-cee90e75.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-3a2feaf6.js → HEAD CIRCUM_BOYS.percentile.monthly-11ce32fc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-5988f757.js → HEAD CIRCUM_BOYS.percentile.weekly-f99236ef.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-5d90aa52.js → HEAD CIRCUM_BOYS.percentile.yearly-e1da3452.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-d91aca7d.js → HEAD CIRCUM_BOYS.zscore.monthly-482294cb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-da9e7037.js → HEAD CIRCUM_BOYS.zscore.weekly-f0bda521.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-30d5291d.js → HEAD CIRCUM_BOYS.zscore.yearly-8f5a5327.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-c901fd9a.js → HEAD CIRCUM_GIRLS.percentile.monthly-fcfd87d0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-da9a0883.js → HEAD CIRCUM_GIRLS.percentile.weekly-ea9d633a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-17debc86.js → HEAD CIRCUM_GIRLS.percentile.yearly-58b8ebfb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-970acee9.js → HEAD CIRCUM_GIRLS.zscore.monthly-7870b069.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-6a9128b1.js → HEAD CIRCUM_GIRLS.zscore.weekly-b654e7a1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-663a95fc.js → HEAD CIRCUM_GIRLS.zscore.yearly-9bb3258c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-f0724a80.js → HEIGHT_BOYS.percentile.monthly-900acd9b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-d0cb4afe.js → HEIGHT_BOYS.percentile.weekly-dec5989e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-43feed36.js → HEIGHT_BOYS.percentile.yearly-08c154b4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-291f6f5b.js → HEIGHT_BOYS.zscore.monthly-a3dc97ec.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-6beaf9ec.js → HEIGHT_BOYS.zscore.weekly-264fcefc.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-62328ac2.js → HEIGHT_BOYS.zscore.yearly-41e6bf83.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-123d6337.js → HEIGHT_GIRLS.percentile.monthly-35b1c639.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-0da6e7b7.js → HEIGHT_GIRLS.percentile.weekly-12dd9a33.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-39844533.js → HEIGHT_GIRLS.percentile.yearly-4f0b70bf.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-0c7def31.js → HEIGHT_GIRLS.zscore.monthly-1100ff4c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-dd44396a.js → HEIGHT_GIRLS.zscore.weekly-a3a67168.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-9023db0c.js → HEIGHT_GIRLS.zscore.yearly-da62dec3.js} +0 -0
- /package/build/{Locale-80bffa37.js → Locale-2328c6b1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-6237491d.js → WEIGHT_BOYS.percentile.monthly-30a7a348.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-18fd3414.js → WEIGHT_BOYS.percentile.weekly-661646a6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-a6d775b7.js → WEIGHT_BOYS.percentile.yearly-c2f57a7f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-1a1ade54.js → WEIGHT_BOYS.zscore.monthly-cc3ead27.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-211fdee5.js → WEIGHT_BOYS.zscore.weekly-86e39764.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-3d248f25.js → WEIGHT_BOYS.zscore.yearly-69940dba.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-421b15a2.js → WEIGHT_GIRLS.percentile.monthly-352cc5d7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-a31158c3.js → WEIGHT_GIRLS.percentile.weekly-b144d851.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-e9144f28.js → WEIGHT_GIRLS.percentile.yearly-be5b9850.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-90904fac.js → WEIGHT_GIRLS.zscore.monthly-ba361125.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-0625c2ec.js → WEIGHT_GIRLS.zscore.weekly-61c710a5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-d077019e.js → WEIGHT_GIRLS.zscore.yearly-472fd6a5.js} +0 -0
- /package/build/{constants-2e43d414.js → constants-0d60ba23.js} +0 -0
- /package/build/{cookieHelper-a21842dc.js → cookieHelper-3c85507e.js} +0 -0
- /package/build/{dataTransform-ca15fe84.js → dataTransform-eec7164c.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-0559acb3.js → BMI_BOYS.percentile.monthly-f839a16d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-eeef4c48.js → BMI_BOYS.percentile.weekly-6e81d4cc.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-a73046bf.js → BMI_BOYS.percentile.yearly-af40258d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-e5616c32.js → BMI_BOYS.zscore.monthly-6c1964a3.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-a636e994.js → BMI_BOYS.zscore.weekly-00939280.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-c20a7cd8.js → BMI_BOYS.zscore.yearly-ede1835a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-b2e48159.js → BMI_GIRLS.percentile.monthly-f9c14d3b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-48d12ebf.js → BMI_GIRLS.percentile.weekly-769a86fd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-0659c605.js → BMI_GIRLS.percentile.yearly-5272bd0a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-105ff13a.js → BMI_GIRLS.zscore.monthly-72b99170.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-498605b2.js → BMI_GIRLS.zscore.weekly-0e6aa668.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-cac807b2.js → BMI_GIRLS.zscore.yearly-2673ec22.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-87ffcca4.js → HEAD CIRCUM_BOYS.percentile.monthly-1d362883.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-b3511605.js → HEAD CIRCUM_BOYS.percentile.weekly-b1721758.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-66256d0d.js → HEAD CIRCUM_BOYS.percentile.yearly-239c6855.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-9423c8d7.js → HEAD CIRCUM_BOYS.zscore.monthly-c9b0fc82.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-83981db3.js → HEAD CIRCUM_BOYS.zscore.weekly-30e44e09.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-f8508317.js → HEAD CIRCUM_BOYS.zscore.yearly-6a007218.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-d1035b5c.js → HEAD CIRCUM_GIRLS.percentile.monthly-83c187ff.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e99383ab.js → HEAD CIRCUM_GIRLS.percentile.weekly-9c635291.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-6db500b0.js → HEAD CIRCUM_GIRLS.percentile.yearly-b98032af.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-362604be.js → HEAD CIRCUM_GIRLS.zscore.monthly-92d5aedf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-9c9e04a5.js → HEAD CIRCUM_GIRLS.zscore.weekly-c4947f0d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-585a50c6.js → HEAD CIRCUM_GIRLS.zscore.yearly-924221bd.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-48894ae6.js → HEIGHT_BOYS.percentile.monthly-1c0977a9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-19534e2d.js → HEIGHT_BOYS.percentile.weekly-1f0ae3f1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3c258d59.js → HEIGHT_BOYS.percentile.yearly-b75c5de5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-78d3a94f.js → HEIGHT_BOYS.zscore.monthly-96b2fbff.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-d38685e4.js → HEIGHT_BOYS.zscore.weekly-9acdac46.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-6298cf77.js → HEIGHT_BOYS.zscore.yearly-e50f69a2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-aee5f4b9.js → HEIGHT_GIRLS.percentile.monthly-665d5f3a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-03ebd551.js → HEIGHT_GIRLS.percentile.weekly-f687a83a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-714f65fe.js → HEIGHT_GIRLS.percentile.yearly-70483f1e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-e51f5900.js → HEIGHT_GIRLS.zscore.monthly-a176cfed.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4106958d.js → HEIGHT_GIRLS.zscore.weekly-451b6ad5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c0165003.js → HEIGHT_GIRLS.zscore.yearly-f2f35a14.js} +0 -0
- /package/build/esm/{Locale-037534b2.js → Locale-66fa2f0c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-118d6093.js → WEIGHT_BOYS.percentile.monthly-57b6a794.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-209d4bd0.js → WEIGHT_BOYS.percentile.weekly-2a2c0510.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-ad6814b3.js → WEIGHT_BOYS.percentile.yearly-508345fb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-80a9b284.js → WEIGHT_BOYS.zscore.monthly-e963d14a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-4a008a1e.js → WEIGHT_BOYS.zscore.weekly-f623820f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-7fd3305b.js → WEIGHT_BOYS.zscore.yearly-38633d16.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-c1ed3cc1.js → WEIGHT_GIRLS.percentile.monthly-fc5699c6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-66d569ae.js → WEIGHT_GIRLS.percentile.weekly-3a366691.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-2dfc195c.js → WEIGHT_GIRLS.percentile.yearly-765c8d57.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b6daa43e.js → WEIGHT_GIRLS.zscore.monthly-79f02a38.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-e80200aa.js → WEIGHT_GIRLS.zscore.weekly-39388a5d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9df0ad73.js → WEIGHT_GIRLS.zscore.yearly-b579a41e.js} +0 -0
- /package/build/esm/{constants-0d8a5ba2.js → constants-6eb7b805.js} +0 -0
- /package/build/esm/{cookieHelper-1adbc53a.js → cookieHelper-cd8c5b96.js} +0 -0
- /package/build/esm/{dataTransform-1d2790b6.js → dataTransform-60ae1595.js} +0 -0
- /package/build/esm/{isProduction-300eb852.js → isProduction-12bd9bf3.js} +0 -0
- /package/build/esm/{localizeNumberFormat-c16acd8e.js → localizeNumberFormat-ecb2a868.js} +0 -0
- /package/build/esm/{theme-ecc47489.js → theme-f64ae5bd.js} +0 -0
- /package/build/esm/{translationsContext-7877cefd.js → translationsContext-bd77ae01.js} +0 -0
- /package/build/esm/{types-97c75f7f.js → types-9bc217b6.js} +0 -0
- /package/build/esm/{useOutsideClick-5233f2da.js → useOutsideClick-5ccf4a63.js} +0 -0
- /package/build/esm/{useScrollbarSize-f4b74b67.js → useScrollbarSize-551f8701.js} +0 -0
- /package/build/esm/{utils-4f9b8a6b.js → utils-26407ccb.js} +0 -0
- /package/build/{isProduction-ca72e14c.js → isProduction-31accedd.js} +0 -0
- /package/build/{localizeNumberFormat-0d8f8429.js → localizeNumberFormat-45004c1c.js} +0 -0
- /package/build/{theme-f0177d86.js → theme-678788fb.js} +0 -0
- /package/build/{translationsContext-eefc195c.js → translationsContext-e04f30b8.js} +0 -0
- /package/build/{tslib.es6-b360563b.js → tslib.es6-deb1f62d.js} +0 -0
- /package/build/{types-e4a95688.js → types-11dc2bcb.js} +0 -0
- /package/build/{useOutsideClick-f5c866ed.js → useOutsideClick-83a4947d.js} +0 -0
- /package/build/{useScrollbarSize-58898feb.js → useScrollbarSize-8087d81b.js} +0 -0
- /package/build/{utils-6c666b6a.js → utils-7fcfcee4.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e,a as n,_ as t,d as o,e as i}from"./tslib.es6-c1e9187a.js";import a,{useState as r,useCallback as c,useMemo as l,useEffect as s,useRef as u,useReducer as d}from"react";import{I as p,L as h}from"./constants-6eb7b805.js";import{b as g,d as m}from"./index-3515e823.js";import{g as f,s as C,d as v}from"./cookieHelper-cd8c5b96.js";import{u as E}from"./useTranslations-b1d2e3a9.js";import x from"lodash/debounce";import{I as y}from"./index-ad52abb5.js";import b,{createGlobalStyle as w}from"styled-components";import{T as L}from"./index-e61d8f58.js";import{t as S}from"./theme-f64ae5bd.js";import k from"react-loading-skeleton";import{M as T}from"./utils-26407ccb.js";import A from"lodash/shuffle";import{u as R}from"./useOutsideClick-5ccf4a63.js";import I from"string-format";var M,_,P,N,V,H,F,z,D,B,O,G,K=b.div(M||(M=e([""],[""]))),Z=b.div(_||(_=e(["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"],["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"]))),j=b.section(P||(P=e([""],[""]))),U=b.input(N||(N=e(["\n position: fixed;\n left: -100%;\n top: -100%;\n"],["\n position: fixed;\n left: -100%;\n top: -100%;\n"]))),Q=b(y)(V||(V=e(["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"],["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"]))),Y=w(H||(H=e(["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"],["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"]))),q=function(e){var n=e.className,t=e.color;return a.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},W=function(e){var n=e.className,t=e.color;return a.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:n},a.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"}))},X=function(e){var n=e.className,t=e.color;return a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:n},a.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:t||"currentColor"}))},J=function(e){var n=e.className,t=e.color;return a.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},$=function(e){var n=e.width,t=e.height;return a.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}))},ee=b.li(F||(F=e(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"])),S.colors.neutral100),ne=b.div(z||(z=e(["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"],["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"])),T.mbDown),te=b.ul(D||(D=e(["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"],["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"]))),oe=b(W)(B||(B=e(["\n width: 12px;\n height: 18px;\n"],["\n width: 12px;\n height: 18px;\n"]))),ie=b.li(O||(O=e(["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"],["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"])),(function(e){return e.isSelected&&"\n &::after {\n content: ".concat("url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\")",";\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n ")}),S.colors.neutral100,S.colors.neutral50),ae=b((function(e){var t=e.count,o=e.className;return a.createElement(a.Fragment,null,n([],Array(t),!0).map((function(e,n){return a.createElement(ee,{className:o,key:n},a.createElement(k,{count:1,height:32}),a.createElement(k,{count:1,height:24}))})))}))(G||(G=e(["\n &:first-child {\n padding-top: 18px;\n }\n"],["\n &:first-child {\n padding-top: 18px;\n }\n"]))),re=function(e){var n=e.cities,t=e.isLoading,o=e.onLocationClick,i=e.onCurrentLocationClick,r=e.geoLocationPermission,c=void 0===r?"unset":r,l=e.isLocationLoading,s=e.selectedLocation,u=E().t,d="denied"===c,p=function(){return a.createElement(ie,{role:"button",tabIndex:0,onClick:function(e){d||(e.nativeEvent.stopImmediatePropagation(),l||i())},"data-is-denied":d},d?a.createElement(L,{color:"var(--gray600)",size:"md"},"x"):l?a.createElement(k,{height:20,width:20}):a.createElement(X,{color:S.colors.primaryBase}),a.createElement("div",null,d?a.createElement(L,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},u("booking.searchBar.grantLocation")):l?a.createElement(k,{height:20,style:{width:"calc(100% - 16px)"}}):a.createElement(L,{size:"md"},u("booking.searchBar.useCurrentLocation"))))};return a.createElement(ne,{"data-testid":"location-search-results"},a.createElement(te,null,t?a.createElement(ae,{count:5}):!n||n.length<1?a.createElement(a.Fragment,null,p(),a.createElement(ie,{"data-is-denied":"true"},a.createElement(L,{size:"sm",color:"#ccc"},u("booking.searchBar.noResults")))):a.createElement(a.Fragment,null,p(),n.map((function(e){return a.createElement(ie,{key:e.id,onClick:function(n){n.nativeEvent.stopImmediatePropagation(),o&&o(e)},role:"button",tabIndex:0,"aria-label":"Select ".concat(e.name," as location"),isSelected:(null==s?void 0:s.id)===e.id},a.createElement(oe,{color:S.colors.neutral400}),a.createElement(L,{size:"md"},e.name))})))))},ce={TYPE_CHARACTER:"TYPE_CHARACTER",REMOVE_CHARACTER:"REMOVE_CHARACTER",REMOVE_ALL:"REMOVE_ALL",REMOVE_LAST_VISIBLE_NODE:"REMOVE_LAST_VISIBLE_NODE",PAUSE_FOR:"PAUSE_FOR",CHANGE_DELETE_SPEED:"CHANGE_DELETE_SPEED",CHANGE_DELAY:"CHANGE_DELAY",PASTE_STRING:"PASTE_STRING"},le=function(e,n){return Math.floor(Math.random()*(n-e+1))+e},se={TEXT_NODE:"TEXT_NODE"},ue=function(){function e(e){var o=this;this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=function(){return o.state.eventLoopPaused=!1,o.runEventLoop(),o},this.pause=function(){return o.state.eventLoopPaused=!0,o},this.stop=function(){return o.state.eventLoop&&(window.cancelAnimationFrame(o.state.eventLoop),o.state.eventLoop=null),o},this.pauseFor=function(e){return o.addEventToQueue(ce.PAUSE_FOR,{ms:e}),o},this.typeOutAllStrings=function(){return"string"==typeof o.options.strings?(o.typeString(o.options.strings).pauseFor(o.options.pauseFor),o):(o.options.strings.forEach((function(e){o.typeString(e).pauseFor(o.options.pauseFor).deleteAll(o.options.deleteSpeed)})),o)},this.typeString=function(e,n){if(void 0===n&&(n=null),e){var t=(o.options||{}).stringSplitter,i="function"==typeof t?t(e):e.split("");o.typeCharacters(i,n)}return o},this.pasteString=function(e,n){return void 0===n&&(n=null),e&&o.addEventToQueue(ce.PASTE_STRING,{character:e,node:n}),o},this.deleteAll=function(e){return void 0===e&&(e="natural"),o.addEventToQueue(ce.REMOVE_ALL,{speed:e}),o},this.changeDeleteSpeed=function(e){if(!e)throw new Error("Must provide new delete speed");return o.addEventToQueue(ce.CHANGE_DELETE_SPEED,{speed:e}),o},this.changeDelay=function(e){if(!e)throw new Error("Must provide new delay");return o.addEventToQueue(ce.CHANGE_DELAY,{delay:e}),o},this.deleteChars=function(e){if(!e)throw new Error("Must provide amount of characters to delete");for(var n=0;n<e;n++)o.addEventToQueue(ce.REMOVE_CHARACTER);return o},this.typeCharacters=function(e,n){if(void 0===n&&(n=null),!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(e){o.addEventToQueue(ce.TYPE_CHARACTER,{character:e,node:n})})),o},this.removeCharacters=function(e){if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(){o.addEventToQueue(ce.REMOVE_CHARACTER)})),o},this.addEventToQueue=function(e,n,t){return void 0===t&&(t=!1),o.addEventToStateProperty(e,n,t,"eventQueue")},this.addReverseCalledEvent=function(e,n,t){return void 0===t&&(t=!1),o.options.loop?o.addEventToStateProperty(e,n,t,"reverseCalledEvents"):o},this.addEventToStateProperty=function(e,t,i,a){void 0===i&&(i=!1);var r={eventName:e,eventArgs:t||{}};return o.state[a]=i?n([r],o.state[a],!0):n(n([],o.state[a],!0),[r],!1),o},this.runEventLoop=function(){o.state.lastFrameTime||(o.state.lastFrameTime=Date.now());var e=Date.now(),i=e-o.state.lastFrameTime;if(!o.state.eventQueue.length){if(!o.options.loop)return;o.state.eventQueue=n([],o.state.calledEvents,!0),o.state.calledEvents=[],o.options=t({},o.state.initialOptions)}if(o.state.eventLoop=window.requestAnimationFrame(o.runEventLoop),!o.state.eventLoopPaused){if(o.state.pauseUntil){if(e<o.state.pauseUntil)return;o.state.pauseUntil=null}var a=n([],o.state.eventQueue,!0),r=a.shift();if(!(i<=(r.eventName===ce.REMOVE_LAST_VISIBLE_NODE||r.eventName===ce.REMOVE_CHARACTER?"natural"===o.options.deleteSpeed?le(40,80):o.options.deleteSpeed:"natural"===o.options.delay?le(120,160):o.options.delay))){var c=r.eventName,l=r.eventArgs;switch(c){case ce.PASTE_STRING:case ce.TYPE_CHARACTER:var s=l.character,u=document.createTextNode(s),d=u;o.options.onCreateTextNode&&"function"==typeof o.options.onCreateTextNode&&(d=o.options.onCreateTextNode(s,u)),o.state.visibleNodes=n(n([],o.state.visibleNodes,!0),[{type:se.TEXT_NODE,character:s,node:d}],!1);break;case ce.REMOVE_CHARACTER:a.unshift({eventName:ce.REMOVE_LAST_VISIBLE_NODE,eventArgs:{removingCharacterNode:!0}});break;case ce.PAUSE_FOR:var p=r.eventArgs.ms;o.state.pauseUntil=Date.now()+parseInt(p);break;case ce.REMOVE_ALL:var h=o.state.visibleNodes,g=l.speed,m=[];g&&m.push({eventName:ce.CHANGE_DELETE_SPEED,eventArgs:{speed:g,temp:!0}});for(var f=0,C=h.length;f<C;f++)m.push({eventName:ce.REMOVE_LAST_VISIBLE_NODE,eventArgs:{removingCharacterNode:!1}});g&&m.push({eventName:ce.CHANGE_DELETE_SPEED,eventArgs:{speed:o.options.deleteSpeed,temp:!0}}),a.unshift.apply(a,m);break;case ce.REMOVE_LAST_VISIBLE_NODE:if(o.state.visibleNodes.length){var v=o.state.visibleNodes.pop(),E=v.node;s=v.character;o.options.onRemoveNode&&"function"==typeof o.options.onRemoveNode&&o.options.onRemoveNode({node:E,character:s}),E&&E.parentNode.removeChild(E)}break;case ce.CHANGE_DELETE_SPEED:o.options.deleteSpeed=r.eventArgs.speed;break;case ce.CHANGE_DELAY:o.options.delay=r.eventArgs.delay}o.options.loop&&(r.eventName===ce.REMOVE_LAST_VISIBLE_NODE||r.eventArgs&&r.eventArgs.temp||(o.state.calledEvents=n(n([],o.state.calledEvents,!0),[r],!1))),o.state.eventQueue=a,o.state.lastFrameTime=e}}},e&&(this.options=t(t({},this.options),e)),this.state.initialOptions=t({},this.options),this.init()}return e.prototype.init=function(){this.addEventToQueue(ce.REMOVE_ALL,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()},e}();function de(e){var n=e.inputRef,t=e.wrapperRef,o=e.disabled,i=E(),a=i.t,r=i.locale,c=l((function(){if(o)return[];var e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==r&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),A(e).map((function(e){return a(e)}))}),[a,r]);function u(e){var n=p();return n&&(n.placeholder=n.placeholder+e),null}function d(){var e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return n&&n.current?n.current:t&&t.current&&t.current.querySelector("input")||null}s((function(){if(!o){var e=p();e&&(e.placeholder="",new ue({strings:c,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:u,onRemoveNode:d}))}}),[n,t])}var pe,he=b.div(pe||(pe=e(["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"],["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"])));function ge(e){var n=e.focused,o=e.value,i=void 0===o?"":o,r=e.onClick,c=e.trackingAttributes,s=e.inputSearchPlaceholder,d=E().t,p=u(null);de({wrapperRef:p,disabled:!!s});var h=l((function(){return c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}}),[c]);return a.createElement(he,t({onClick:function(){return r&&r()},ref:p},h),a.createElement(Q,{inputClassName:"location"===n?"focused":void 0,name:"booking-search-placeholder",displayIcon:a.createElement(J,{color:S.colors.gray400}),placeholder:d("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}var me,fe,Ce,ve,Ee,xe,ye=b.header(me||(me=e(["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"],["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"]))),be=b.div(fe||(fe=e(["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"],["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"]))),we=b.div(Ce||(Ce=e(["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"]))),Le=b.div(ve||(ve=e(["\n width: 100%;\n margin-left: 24px;\n"],["\n width: 100%;\n margin-left: 24px;\n"]))),Se=b(L)(Ee||(Ee=e(["\n color: ",";\n text-align: start;\n"],["\n color: ",";\n text-align: start;\n"])),S.colors.secondaryDark),ke=function(e){var n=e.className,t=e.onLeftClick,o=e.headingText,i=e.onRightClick,r=e.iconLeft,c=e.textRight;return a.createElement(ye,{className:n},a.createElement(we,{onClick:t},r||a.createElement(q,{color:S.colors.gray800})),a.createElement(Le,null,a.createElement(Se,{size:"md",type:"bold"},o)),a.createElement(be,{onClick:i},c&&a.createElement("p",null,c)))},Te={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0},Ae={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};function Re(e){var n=e.selectedLocation,o=e.searchLocationKeywords;return n&&o!==n.name?t(t({},e),{searchLocationKeywords:n.name}):e}function Ie(e,n){var o;switch(e.isDebug&&console.log("bookingSearchBar",{action:n,state:e}),n.type){case xe.NavigateTo:return t(t({},e),{navigateTo:n.payload,focused:"none",isMobileModalOpened:!1});case xe.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:Re(t(t({},e),{focused:"none"}));case xe.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:t(t({},e),{focused:"none"});case xe.FocusInputLocation:var i=t(t({},e),{focused:"location"});return(null===(o=e.selectedLocation)||void 0===o?void 0:o.id)===p&&(i.searchLocationKeywords=""),i;case xe.FocusInputSearch:var a=t(t({},e),{focused:"search"});return e.isMobile?Re(a):a;case xe.ChangeInputLocation:return t(t({},e),{searchLocationKeywords:n.payload});case xe.ChangeInputSearch:var r=n.payload;return t(t({},e),{searchKeywords:r,isLoadingSearchResults:r.trim().length>Te[e.locale]});case xe.SelectCurrentLocation:return t(t({},e),{focused:"none",selectedLocation:n.payload,searchLocationKeywords:n.payload.name});case xe.ClearInputLocation:return t(t({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case xe.ClearInputSearch:return t(t({},e),{focused:"search",searchKeywords:""});case xe.SelectLocation:return t(t({},e),{focused:"none",selectedLocation:n.payload,searchLocationKeywords:n.payload.name});case xe.SelectSearchResult:return t(t({},e),{searchKeywords:n.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:n.payload.url});case xe.FetchCitiesStart:return t(t({},e),{isLoadingCities:!0});case xe.FetchCitiesFinish:return t(t({},e),{isLoadingCities:!1});case xe.FetchSearchResultsStart:return t(t({},e),{isLoadingSearchResults:!0});case xe.FetchSearchResultsFinish:return t(t({},e),{isLoadingSearchResults:!1});case xe.FetchSearchResultsComplete:var c=t(t({},e),{searchResults:n.payload});return 0===e.initialSearchResults.length&&(c.initialSearchResults=n.payload),c;case xe.FetchCitiesByGeoIpComplete:var l=n.payload.cities,s=n.payload.default;(l=l.filter((function(e){return e.id!==s.id}))).unshift(s),e.initialSelectedCity&&!l.find((function(n){return n.id===e.initialSelectedCity.id}))&&l.unshift(e.initialSelectedCity);var u=t(t({},e),{defaultCity:s,initialCities:l,cities:l});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(u.selectedLocation=s,u.searchLocationKeywords=s.name),u;case xe.FetchCitiesByKeywordComplete:return t(t({},e),{cities:n.payload});case xe.DisplayInitialCities:return t(t({},e),{cities:e.initialCities});case xe.DisplayInitialSearchResults:return t(t({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case xe.GrantGeoLocationPermission:return t(t({},e),{geoLocationPermission:"granted",geoLocationCoordinates:n.payload});case xe.DenyGeoLocationPermission:return t(t({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case xe.OpenMobileModal:return t(t({},e),{isMobileModalOpened:!0});case xe.CloseMobileModal:return t(t({},e),{isMobileModalOpened:!1});case xe.UpdateInitialSearchValue:return t(t({},e),{searchKeywords:n.payload});case xe.SetInputSearchPlaceholder:return t(t({},e),{inputSearchPlaceholder:n.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(xe||(xe={}));var Me,_e,Pe,Ne,Ve,He,Fe,ze=function(){return a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"}))},De=b.button(Me||(Me=e(["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"],["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"])),(function(e){return e.theme.colors.primaryBase}),T.mbDown,(function(e){return e.theme.colors.primaryHover}),(function(e){return e.theme.colors.primaryActive})),Be=b(L)(_e||(_e=e(["\n font-weight: ",";\n"],["\n font-weight: ",";\n"])),(function(e){return e.theme.sizes.fwSemiBold})),Oe=function(e){var n=e.onClick,t=(0,E().t)("booking.searchBar.searchButton");return a.createElement(De,{onClick:n,title:t},a.createElement(ze,null),a.createElement(Be,{size:"s3",color:"white"},t))},Ge=b.div(Pe||(Pe=e(["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"],["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"])),T.mbDown,S.colors.blue50),Ke=b.div(Ne||(Ne=e(["\n position: relative;\n"],["\n position: relative;\n"]))),Ze=b(Ke)(Ve||(Ve=e(["\n flex: 1;\n"],["\n flex: 1;\n"]))),je=b(Ke)(He||(He=e(["\n flex: 2;\n"],["\n flex: 2;\n"]))),Ue=b((function(e){var n=e.className,t=e.color;return a.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:t||"currentColor"}))}))(Fe||(Fe=e(["\n display: none;\n &.shown {\n display: block;\n }\n"],["\n display: none;\n &.shown {\n display: block;\n }\n"])));function Qe(e){var n=e.isMobile,t=e.state,o=e.dispatch,i=e.debouncedFetchCitiesByKeyword,r=e.debouncedFetchSearchResults,s=e.focusLocationInput,d=e.focusSearchInput,h=e.renderLocationResults,g=e.renderSearchResults,m=e.locationTrackingAttributes,f=e.trackingAttributes,C=e.onSearch,v=e.initalSearchValue,x=u(null),y=u(null),b=t.focused,w=t.searchLocationKeywords,L=t.geoLocationPermission,k=t.selectedLocation,T=t.searchKeywords,A=t.inputSearchPlaceholder,I=E().t;de({wrapperRef:y,disabled:!!A}),R(x,(function(){o({type:xe.ClickOutsideInputLocation})})),R(y,(function(){o({type:xe.ClickOutsideInputSearch})}));var M=l((function(){return"granted"===L&&(null==k?void 0:k.id)===p?S.colors.primaryBase:S.colors.gray400}),[L,k]),_=c((function(e){o({type:xe.ChangeInputSearch,payload:e}),"function"!=typeof C&&(e.trim().length>Te[t.locale]||v?r(e.trim(),t):(r.cancel(),o({type:xe.DisplayInitialSearchResults})))}),[o,t]),P=c((function(e){o({type:xe.ChangeInputLocation,payload:e}),e.trim().length>Te[t.locale]?i(e.trim()):(i.cancel(),o({type:xe.DisplayInitialCities}))}),[i,o]);return a.createElement(Ge,null,a.createElement(Ze,{ref:x},a.createElement(Q,{inputClassName:"location"===b?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:a.createElement(W,{className:"location-pin-icon",color:M}),actionIcon:a.createElement(Ue,{color:S.colors.gray300,className:""!==w?"shown":""}),onActionClick:function(){o({type:xe.ClearInputLocation}),i.cancel(),s()},value:w,onChange:P,onFocus:function(){return o({type:xe.FocusInputLocation})},size:"md",trackingAttributes:m}),!n&&h()),a.createElement(je,{ref:y},a.createElement(Q,{placeholder:A||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:a.createElement(Ue,{color:S.colors.gray300,className:""!==T?"shown":""}),onActionClick:function(){o({type:xe.ClearInputSearch}),r.cancel(),r("",t),d()},value:T,onChange:_,onFocus:function(){return o({type:xe.FocusInputSearch})},inputClassName:"search"===b?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:function(e){t.autoCompleteDisabled&&"Enter"===e.key&&C&&C({cityId:t.selectedLocation.id,keyword:T})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!n&&g()),t.autoCompleteDisabled&&!t.isMobile&&a.createElement(Oe,{onClick:function(){C({cityId:t.selectedLocation.id,keyword:T})}}))}var Ye,qe,We,Xe,Je,$e,en,nn,tn,on,an,rn,cn,ln,sn=b.li(Ye||(Ye=e(["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"]))),un=b.div(qe||(qe=e(["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"],["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"])),(function(e){var n=e.type;return n&&"doctors"===n&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}),(function(e){var n=e.type;return n&&"doctors"===n?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}),S.colors.gray600),dn=b(L)(We||(We=e(["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"],["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"])),T.tdUp),pn=b.figure(Xe||(Xe=e(["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"],["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"]))),hn=b.svg(Je||(Je=e(["\n margin: 0 auto;\n display: block;\n"],["\n margin: 0 auto;\n display: block;\n"]))),gn=b.div($e||($e=e(["\n display: grid;\n place-items: center;\n"],["\n display: grid;\n place-items: center;\n"]))),mn={doctors:function(e){var n=e.width,t=e.height;return a.createElement("svg",{width:n||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{clipPath:"url(#clip0_14712_400114)"},a.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),a.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_14712_400114"},a.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"}))))},services:function(e){var n=e.width,t=e.height;return a.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),a.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))}},fn=function(e){var n=e.type,t=e.item,o=e.imageUrl,i=e.onClickItem,r=l((function(){var e=mn[n]||$;return a.createElement(e,{width:32,height:"services"===n?32:24})}),[n]);return a.createElement(sn,{onClick:function(){return i&&i(t)},onKeyDown:function(e){"Enter"!==e.key&&"Space"!==e.key||i&&i(t)},tabIndex:0,role:"button"},a.createElement(pn,null,"hospitals"===n?a.createElement(hn,{width:"12",height:"16",viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):a.createElement(un,{type:n},o?a.createElement("img",{src:o,width:32,height:"services"===n?32:24}):r)),a.createElement(dn,{color:S.colors.gray800,size:"p3"},t.name))},Cn=function(){return a.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},a.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"}))},vn=function(){return a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},a.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"}))},En=function(){return a.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},a.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"}))},xn=function(){return a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},a.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"}))},yn=b.header(en||(en=e(["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"],["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"])),S.colors.neutral50),bn=b.div(nn||(nn=e(["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"],["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"]))),wn=b.p(tn||(tn=e(["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"],["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"])),S.colors.neutral800,S.sizes.fwSemiBold),Ln=b.button(on||(on=e(["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"],["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"]))),Sn=b.section(an||(an=e(["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"],["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"])),T.tdUp),kn=b.ul(rn||(rn=e(["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"],["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"])),T.tdUp,(function(e){return e.isMore&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}),(function(e){return e.isShown&&"\n max-height: 600px;\n "}),T.tdUp),Tn=b(L)(cn||(cn=e(["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"],["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"]))),An=function(e){var n=e.type,t=e.data,o=e.state,i=e.dispatch,c=e.itemsToShow,s=e.itemsToShowDesktop,u=e.isMobile,d=e.isLoading,p=e.keyword,g=r(!1),m=g[0],f=g[1],C=E(),v=C.t,x=C.locale,y=o.selectedLocation,b=o.searchKeywords,w=l((function(){return h[x]}),[x]),T=l((function(){return{doctors:{name:v("booking.searchPopup.doctors"),icon:a.createElement(Cn,null),slug:w.DOCTOR},services:{name:v("booking.searchPopup.services"),icon:a.createElement(vn,null),slug:w.SERVICE},hospitals:{name:v("booking.searchPopup.hospitals"),icon:a.createElement(En,null),slug:w.HOSPITAL},specialties:{name:v("booking.searchPopup.specialties"),icon:a.createElement(xn,null),slug:w.SPECIALTIES}}}),[n,w]),A=l((function(){return T[n].slug}),[T]),R=u?c:s;function I(e){var t="";switch(n){case"specialties":t="/".concat(y.slug,"/").concat(T.doctors.slug,"/").concat(e.slug);break;case"services":t="/".concat(y.slug,"/").concat(A,"/").concat(e.slug);break;case"doctors":case"hospitals":t="/".concat(A,"/").concat(e.slug,"-").concat(e.id)}t&&i({type:xe.SelectSearchResult,payload:{name:e.name,url:t}})}function M(e){return a.createElement(fn,{key:e.id,item:e,type:n,imageUrl:e.logo||e.avatar||e.thumbnail,onClickItem:I})}return a.createElement("section",null,a.createElement(yn,null,a.createElement(bn,null,T[n].icon,a.createElement(wn,null,T[n].name)),p.trim().length<=Te[x]&&a.createElement(Ln,{onClick:function(){var e="";switch(n){case"specialties":e="/".concat(A);break;case"services":case"doctors":case"hospitals":e="/".concat(y.slug,"/").concat(A)}e&&i({type:xe.NavigateTo,payload:e})}},a.createElement(L,{size:"p3",color:S.colors.primaryBase},v("booking.searchPopup.seeAll")))),(d||t&&t.length>0)&&a.createElement(Sn,null,a.createElement(kn,null,d&&Array(2).fill(void 0).map((function(e,t){return a.createElement(sn,{key:n+"loading"+t},a.createElement(pn,null,a.createElement(gn,null,a.createElement(k,{height:14,width:"hospitals"===n?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),a.createElement(k,{width:120,height:24}))})),!d&&t&&t.length>0&&t.slice(0,R).map(M)),a.createElement(kn,{isShown:m,isMore:!0},t.slice(R,-1).map(M)),"specialties"===n&&R<t.length&&!d&&a.createElement("button",{onClick:function(){return f(!m)}},a.createElement(Tn,{size:"p3",color:S.colors.primaryBase},v(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==n&&R<t.length&&!d&&p.trim().length>Te[x]&&a.createElement("button",{onClick:function(){var e=T[n].slug,t="/".concat(y.slug,"/").concat(e,"?q=").concat(b);i({type:xe.NavigateTo,payload:t})}},a.createElement(Tn,{size:"p3",color:S.colors.primaryBase},v("booking.searchPopup.searchIn.".concat(n),{name:p})))),!d&&0===(null==t?void 0:t.length)&&a.createElement(Sn,null,a.createElement(L,{size:"sm",color:S.colors.gray400},v("booking.searchBar.noResults"))))},Rn=b.section(ln||(ln=e(["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"],["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"])),T.tdUp),In=function(e){var n=e.data,t=e.state,o=e.dispatch,i=e.isMobile,r=e.isLoading,c=e.keyword;return a.createElement(Rn,null,n&&n.map((function(e){return a.createElement(An,{type:e.type,state:t,dispatch:o,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:r,keyword:c})})))},Mn={GET_CITIES_LIST:"api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",GET_CITY:"api/lists/cities?ids={ids}&site={domain}&longitude={longitude}&latitude={latitude}",GET_HOME_SEARCH:"api/search/?_home=1&city_id={city}&keyword={keyword}&site={domain}&latitude={lat}&longitude={lng}",GET_SEARCH_V2:"api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",GET_CITY_BY_IP:"api/geobyip?site={domain}&latitude={lat}&longitude={lng}"},_n=function(e,n,o){return I(e,t(t({},n),{domain:m[o||"en-PH"]}))};var Pn,Nn=function(e){var n=e.isMobile,m=e.careApiDomain,y=e.geoLocationPermission,b=e.geoLocationCoordinates,w=e.initialSelectedCity,L=e.initialSearchValue,S=void 0===L?"":L,k=e.careFrontDomain,T=void 0===k?"/care":k,A=e.isDebug,R=void 0!==A&&A,I=e.askForGeolocationPermission,M=void 0!==I&&I,_=e.gaTrackingSearchBar,P=e.gaTrackingLocationSearch,N=e.autoCompleteDisabled,V=void 0!==N&&N,H=e.inputSearchPlaceholder,F=void 0===H?"":H,z=e.routerPush,D=e.onGeoLocationPermissionChange,B=e.onSearch,O=e.onChangeLocation,G=E(),Q=G.t,q=G.locale,W=u(null),X=u(null),J=r(void 0),$=J[0],ee=J[1],ne=function(){var e=r((function(){if("undefined"==typeof window)return"unset";if(f(g))return"granted";var e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),n=e[0],t=e[1],o=r((function(){if("undefined"==typeof window)return null;var e=f(g);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),i=o[0],a=o[1],s=c((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var n={lat:"".concat(Math.round(1e7*e.coords.latitude)/1e7),lng:"".concat(Math.round(1e7*e.coords.longitude)/1e7)};C(g,JSON.stringify(n),{minutes:15}),a(n),t("granted")}),(function(){v(g),t("denied")}))}),[]);return l((function(){return{geoLocationPermission:n,geoLocationCoordinates:i,requestGeoLocation:s}}),[n,i])}(),te=ne.geoLocationPermission,oe=ne.geoLocationCoordinates,ie=ne.requestGeoLocation,ae=d(Ie,Ae,(function(e){return t(t({},e),{isDebug:R,isMobile:n,geoLocationPermission:y||te||"unset",geoLocationCoordinates:b||oe||null,searchKeywords:S,initialSelectedCity:w||null,selectedLocation:w||e.selectedLocation||null,searchLocationKeywords:(null==w?void 0:w.name)||e.searchLocationKeywords,autoCompleteDisabled:V,inputSearchPlaceholder:F,locale:q})})),ce=ae[0],le=ae[1],se=ce.navigateTo,ue=ce.focused,de=ce.isLoadingCities,pe=ce.cities,he=ce.searchKeywords,me=ce.geoLocationPermission,fe=ce.selectedLocation,Ce=ce.initialSelectedCity,ve=ce.defaultCity,Ee=ce.searchResults,ye=ce.isLoadingSearchResults,be=ce.isMobileModalOpened,we=ce.inputSearchPlaceholder,Le=function(e){var n=e.dispatch,o=e.careApiDomain,i=e.locale,a=void 0===i?"vi-VN":i,r=c((function(e,t){void 0===t&&(t={});var i="".concat(o).concat(e);return n({type:xe.FetchCitiesStart}),fetch(_n(i,t,a),{method:"GET"}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e))})).finally((function(){return n({type:xe.FetchCitiesFinish})}))}),[a]),l=c((function(e){var o=e.coordinates,i={};o&&(i={lat:o.lat,lng:o.lng});var c=[r(Mn.GET_CITY_BY_IP,i)];return"zh-TW"===a&&c.push(r(Mn.GET_CITIES_LIST,{noPaging:1})),Promise.all(c).then((function(e){var o=e[0],i=e[1],a=t({},o);if(i){var r=a.cities.map((function(e){return e.id}));a.cities=a.cities.concat(i.cities.filter((function(e){return!r.includes(e.id)})))}n({type:xe.FetchCitiesByGeoIpComplete,payload:a})})).catch((function(e){return console.error("error loading cities by location",e)}))}),[a,o,n]);return{fetchCitiesByLocation:l,fetchCitiesByKeyword:c((function(e){return r(Mn.GET_CITIES_LIST,{keyword:e}).then((function(e){n({type:xe.FetchCitiesByKeywordComplete,payload:e.cities})})).catch((function(e){return console.error("error loading cities by keyword",e)}))}),[a,o,n]),fetchSearchResults:c((function(e,t){var i="".concat(o).concat(Mn.GET_SEARCH_V2);n({type:xe.FetchSearchResultsStart});var r=t.defaultCity,c=t.selectedLocation,l=t.geoLocationCoordinates,s="";if(c&&r){c.id===p?l||(s=r.id):s=c.id;var u=(null==l?void 0:l.lat)||"",d=(null==l?void 0:l.lng)||"";return fetch(_n(i,{domain:o,searchType:"global",keyword:e.trim().length>Te[a]?e.trim():"",city:s===p?"":s,lat:u,lng:d},a),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e)})).then((function(e){return n({type:xe.FetchSearchResultsComplete,payload:e})})).catch((function(e){console.log("error loading search results",{url:i,error:e})})).finally((function(){return n({type:xe.FetchSearchResultsFinish})}))}n({type:xe.FetchSearchResultsFinish})}),[a,o,n])}}({dispatch:le,locale:q,careApiDomain:m}),Se=Le.fetchCitiesByLocation,Re=Le.fetchCitiesByKeyword,Me=Le.fetchSearchResults,_e=l((function(){var e;return{id:p,name:Q("booking.searchBar.currentLocation"),slug:null===(e=h[q])||void 0===e?void 0:e.CURRENT}}),[Q,q]),Pe=l((function(){return x(Re,400)}),[Re]),Ne=l((function(){return x(Me,400)}),[Me]);s((function(){""!==S&&S!==ce.searchKeywords&&le({type:xe.UpdateInitialSearchValue,payload:S})}),[S]),s((function(){M&&(null==fe?void 0:fe.id)===p&&"unset"===me&&ie()}),[M,fe,me]),s((function(){y||me===te||("granted"===te&&oe?le({type:xe.GrantGeoLocationPermission,payload:oe}):"denied"===te&&le({type:xe.DenyGeoLocationPermission}))}),[me,te,oe,y]),s((function(){se&&(z?z(se):window.location.href="".concat(T).concat(se))}),[se]);var Ve=c((function(){le({type:xe.SelectCurrentLocation,payload:_e})}),[Q,le]);s((function(){"denied"===me||Ce||Ve(),D&&D(me,ce.geoLocationCoordinates),n&&"granted"===me&&fe&&le({type:xe.FocusInputSearch}),Se({coordinates:ce.geoLocationCoordinates})}),[me]),s((function(){fe&&ve&&Me(ce.searchKeywords,ce)}),[fe,ve]),s((function(){F!==we&&le({type:xe.SetInputSearchPlaceholder,payload:F})}),[F,we]),s((function(){be?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[be]);var He=c((function(e){le({type:xe.SelectLocation,payload:e}),De(),O&&O(e)}),[Q,le]);function Fe(){n&&"granted"!==ce.geoLocationPermission?ie():(Ve(),De())}function ze(){var e;W.current&&(null===(e=W.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function De(){var e;W.current&&(null===(e=W.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Be(){le({type:xe.CloseMobileModal})}function Ge(){return"location"!==ue?null:a.createElement(re,{isLoading:de,cities:pe,onLocationClick:He,onCurrentLocationClick:Fe,isLocationLoading:de,geoLocationPermission:me,selectedLocation:fe})}function Ke(){return"search"!==ue?null:ce.autoCompleteDisabled?n?a.createElement(Oe,{onClick:function(){B({cityId:ce.selectedLocation.id,keyword:he}),Be()}}):null:a.createElement(In,{data:Ee,state:ce,dispatch:le,isMobile:!1,keyword:he,isLoading:ye})}function Ze(){return a.createElement(Qe,{isMobile:n,state:ce,dispatch:le,debouncedFetchCitiesByKeyword:Pe,debouncedFetchSearchResults:Ne,focusLocationInput:ze,focusSearchInput:De,renderLocationResults:Ge,renderSearchResults:Ke,trackingAttributes:_,locationTrackingAttributes:P,onSearch:B,initalSearchValue:S})}return s((function(){if(window.visualViewport){var e=function(e){var n=e.target;ee(null==n?void 0:n.height)};return window.visualViewport.addEventListener("resize",e),function(){window.visualViewport.removeEventListener("resize",e)}}}),[ee]),n?a.createElement(a.Fragment,null,a.createElement(Y,null),a.createElement(U,{ref:X}),a.createElement(Z,{id:"booking-search-bar",ref:W,"data-is-modal":n&&be,style:{"--mobile-care-searchbar-height":be&&$?"".concat($,"px"):"100%"}},be?a.createElement(a.Fragment,null,a.createElement(j,null,a.createElement(ke,{headingText:Q("booking.searchBar.searchButton"),onLeftClick:Be}),Ze()),Ge(),Ke()):a.createElement(ge,{onClick:function(){var e;return o(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return X.current&&X.current.focus(),le({type:xe.OpenMobileModal}),[4,Promise.resolve()];case 1:return n.sent(),W.current&&(null===(e=W.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus()),[2]}}))}))},focused:ue,value:he,trackingAttributes:_,inputSearchPlaceholder:F}))):a.createElement(K,{id:"booking-search-bar",ref:W},Ze())};!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Pn||(Pn={}));var Vn=Object.freeze({__proto__:null,get RedirectType(){return Pn}});export{Nn as B,Vn as t};
|
package/build/esm/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE}from"./Locale-
|
|
1
|
+
export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE}from"./Locale-66fa2f0c.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as e,e as n}from"./tslib.es6-c1e9187a.js";import{useRef as t,useEffect as r}from"react";import{g as i}from"./cookieHelper-cd8c5b96.js";function a(e){var n=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",n).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}))}var o=function(o){var l=t("");r((function(){return e(void 0,void 0,void 0,(function(){var e,t,r,c,u,s,d,f,p,m,b,h,v,g,y;return n(this,(function(n){switch(n.label){case 0:return l.current?[3,4]:[4,fetch("https://api.ipify.org").then((function(e){return e.text()}))];case 1:return(e=n.sent())?[3,3]:[4,fetch("https://icanhazip.com").then((function(e){return e.text()}))];case 2:e=n.sent(),n.label=3;case 3:l.current=e,n.label=4;case 4:return null===(h=null===(b=window.localStorage)||void 0===b?void 0:b.setItem)||void 0===h||h.call(b,"fbClientIp",JSON.stringify({client_ip_address:(null===(v=l.current)||void 0===v?void 0:v.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),(null==o?void 0:o.id)?[4,Promise.all([o.email?a(o.email):null,o.phone?a(o.phone):null,o.birthday?a(o.birthday.split("-").join("")):null,o.gender?"m":"f",o.city_name?a(o.city_name).then((function(e){return e.replace(/\s/g,"")})):null,o.name?a(o.name):null])]:[3,6];case 5:t=n.sent(),r=t[0],c=t[1],u=t[2],s=t[3],d=t[4],f=t[5],p={fbc:i("_fbc")||"",fbp:i("_fbp")||""},m={user_id:o.id},f&&(m.fn=f),r&&(p.em=r,m.em=r),c&&(p.ph=c,m.ph=c),u&&(p.db=u,m.db=u),s&&(p.ge=s,m.ge=s),d&&(p.ct=d,m.ct=d),null===(y=null===(g=window.localStorage)||void 0===g?void 0:g.setItem)||void 0===y||y.call(g,"fbDataLayer_userInfo",JSON.stringify(m)),n.label=6;case 6:return[2]}}))})),function(){}}),[o])};export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as t,e as r}from"./tslib.es6-c1e9187a.js";import{useState as n,useEffect as o,useCallback as e}from"react";import{a as i}from"./getDynamicHealthTool-f411b69f.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,i(a)];case 1:return t=r.sent(),u(t),[2]}}))}))}),[i,a]);var c=e((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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useContext as o,useMemo as a}from"react";import{T as n,d as r}from"./translationsContext-
|
|
1
|
+
import{useContext as o,useMemo as a}from"react";import{T as n,d as r}from"./translationsContext-bd77ae01.js";import t from"string-format";function e(){var e=o(n)||{locale:"en-PH"},s=e.values,l=e.locale;return a((function(){return{t:function(o,a){return s?s[o]?a?t(s[o]||o,a):s[o]||o:(console.warn("[useTranslations] Missing translation for key ".concat(o," and locale ").concat(l)),a?t(r[o]||o,a):r[o]||o):(console.error("[useTranslations] t method called before translation values are loaded"),o)},locale:l}}),[s,l])}export{e as u};
|
package/build/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-7d2fc97d.js"),a=require("./index-dd5d2e93.js"),l=require("./index-7bf33f6e.js"),n=require("./index-1ab146b3.js"),o=require("./theme-f0177d86.js"),r=require("./useTranslations-e6c8c77c.js"),i=require("./index-a13b0a68.js"),c=require("./index-09e86e9e.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./tslib.es6-b360563b.js"),require("./utils-6c666b6a.js"),require("styled-components"),require("./gAssets.js"),require("./isProduction-ca72e14c.js"),require("./Locale-80bffa37.js"),require("./translationsContext-eefc195c.js"),require("string-format");var u=d(e),s="Lj0qoTD",m="OO-qFWT",v=function(e){var t=e.url,a=e.isMobile,l=e.dataEventCategory,n=e.dataEventAction,o=e.dataEventLabel,r=e.isAmp;return u.default.createElement("div",{className:m,"data-is-mobile":a},r?u.default.createElement("amp-img",{className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o}):u.default.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o}))},f=function(e){var i,c,d,m,f,g,y,E,p,b,h,N,k,F,x,T,z,C,L,q,M,j,w,A,B,_,S,H,I,D,G=e.className,O=e.type,P=void 0===O?"main":O,J=e.footerInfo,K=e.isMobile,U=e.locale,V=e.isAmp,W=r.useTranslations().t,Q=null==J?void 0:J.menu,R=(null===(c=null===(i=null==J?void 0:J.general)||void 0===i?void 0:i.verified)||void 0===c?void 0:c.filter(Boolean))||[],X=V&&"mini"===P?"div":"footer";return u.default.createElement(X,{className:"".concat(s," ").concat(G||""),style:"mini"===P?{backgroundColor:o.theme.colors.neutral50}:{},"next-page-hide":!0},u.default.createElement(a.Container,null,u.default.createElement("div",{className:"inner","data-type":P,"next-page-hide":""},"main"===P?u.default.createElement(u.default.Fragment,null,u.default.createElement("a",{href:"/"},V?(null===(m=null==J?void 0:J.general)||void 0===m?void 0:m.logo)?u.default.createElement("amp-img",{src:null===(f=null==J?void 0:J.general)||void 0===f?void 0:f.logo,alt:"Site logo",width:"132",height:"32",style:{marginBottom:24}}):null:u.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(d=null==J?void 0:J.general)||void 0===d?void 0:d.logo,alt:"Logo","data-is-sehat":"id-ID"===U})),u.default.createElement("div",{className:"columns"},u.default.createElement("div",{className:"newsletter"},u.default.createElement(l.Text,{size:"p1",type:"bold"},null===(g=null==J?void 0:J.general)||void 0===g?void 0:g.content),u.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},W("footer.signUp")),u.default.createElement("div",{className:"social"},u.default.createElement(l.Text,{size:"sm",type:"regular"},null===(y=null==J?void 0:J.social)||void 0===y?void 0:y.title),u.default.createElement("div",{className:"icons"},null===(p=null===(E=null==J?void 0:J.social)||void 0===E?void 0:E.socials)||void 0===p?void 0:p.map((function(e,t){return u.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,href:e.url},V?u.default.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",width:"32",height:"32"}):u.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))}))),u.default.createElement("hr",{className:"hrMobile"}))),u.default.createElement("div",null,Q&&u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"biglinks"},null===(h=null===(b=Q[0])||void 0===b?void 0:b.items)||void 0===h?void 0:h.map((function(e,t){return u.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":"https://".concat(n.domainLocales[U]).concat(e.url),className:"bigLink",key:t,href:e.url},e.title)}))),u.default.createElement("hr",{className:"hrMobile"}),u.default.createElement("div",{className:"mHalf"},u.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(N=Q[1])||void 0===N?void 0:N.menu_title),null===(F=null===(k=Q[1])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map((function(e,t){return u.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":"https://".concat(n.domainLocales[U]).concat(e.url),className:"link",href:e.url,key:t},u.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:"https://".concat(n.domainLocales[U]).concat(e.url)},e.title))}))),u.default.createElement("div",{className:"mHalf"},u.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(x=Q[2])||void 0===x?void 0:x.menu_title),null===(z=null===(T=Q[2])||void 0===T?void 0:T.items)||void 0===z?void 0:z.map((function(e,t){return e.url&&u.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},u.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))})))),!V&&u.default.createElement(u.default.Fragment,null,u.default.createElement("hr",{className:"hrMobile"}),u.default.createElement("div",{className:"otherSites"},u.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(C=null==J?void 0:J.branch)||void 0===C?void 0:C.title),u.default.createElement("div",{className:"flags"},null===(q=null===(L=null==J?void 0:J.branch)||void 0===L?void 0:L.branch)||void 0===q?void 0:q.map((function(e,t){return u.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},u.default.createElement(v,{url:e.flag,isMobile:K,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url,isAmp:V}))}))))))),u.default.createElement("hr",null),u.default.createElement("div",{className:"copyright","data-is-amp":V||void 0},u.default.createElement("div",{className:"copyright-image-wrapper"},R.length?R.map((function(e,t){return u.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},V?u.default.createElement("amp-img",{src:e.image,alt:"DMCA Icon",width:"100",height:"36"}):u.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"}))})):null),u.default.createElement(l.Text,{size:"xs",type:"regular",className:"copyright-content"},null===(M=null==J?void 0:J.general)||void 0===M?void 0:M.copyright)),"vi-VN"===U&&u.default.createElement(l.Text,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):u.default.createElement(u.default.Fragment,null,(null==J?void 0:J.menu)&&u.default.createElement("div",{className:"columns"},u.default.createElement("div",{className:"mHalf"},u.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(j=null==J?void 0:J.menu[1])||void 0===j?void 0:j.menu_title),null===(A=null===(w=null==J?void 0:J.menu[1])||void 0===w?void 0:w.items)||void 0===A?void 0:A.map((function(e){return u.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":"https://".concat(n.domainLocales[U]).concat(e.url),"data-event-category":"Footer","data-event-action":e.title,"data-event-label":"https://".concat(n.domainLocales[U]).concat(e.url)},u.default.createElement(l.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:"https://".concat(n.domainLocales[U]).concat(e.url),size:"sm",type:"regular",style:{color:o.theme.colors.gray800}},e.title))}))),u.default.createElement("div",{className:"mHalf"},u.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==J?void 0:J.menu[2])||void 0===B?void 0:B.menu_title),null===(S=null===(_=null==J?void 0:J.menu[2])||void 0===_?void 0:_.items)||void 0===S?void 0:S.map((function(e,t){return u.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},u.default.createElement(l.Text,{size:"sm",type:"regular",style:{color:o.theme.colors.gray800},dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))}))),!V&&"mini"!==P&&u.default.createElement("hr",{className:"hrMobile"}),u.default.createElement("div",{className:"newsletter"},u.default.createElement("div",{className:"social"},u.default.createElement(l.Text,{size:"sm",type:"regular"},null===(H=null==J?void 0:J.social)||void 0===H?void 0:H.title),u.default.createElement("div",{className:"icons"},null===(D=null===(I=null==J?void 0:J.social)||void 0===I?void 0:I.socials)||void 0===D?void 0:D.map((function(e,t){return u.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,href:e.url},V?u.default.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",width:"32",height:"32"}):u.default.createElement("img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))}))))))))))},g="B6-KmWK",y="GS-7mbG",E="qc5bEb3",p="CQGVeuT",b="_6JMoel-",h="_8eUT8Jr",N="cjDwoLi",k=function(e){var t,l=e.logoType,n=void 0===l?"marryBaby":l,r=e.footerMenu,d=e.background;if(!r)return null;var s=r.general,m=r.menu,v=r.socials;return u.default.createElement("footer",{className:g,style:{backgroundColor:d||"none"}},u.default.createElement("div",{className:N},u.default.createElement(a.Container,null,u.default.createElement("div",{className:y},null==m?void 0:m.map((function(e,t){var a=e.menu_title,l=e.items;return u.default.createElement("div",{className:E,key:"mbf".concat(t)},u.default.createElement(c.MarryBabyText,{className:"title",type:"subtitle-1",color:o.theme.mbColors.pink},a),null==l?void 0:l.map((function(e,t){var a=e.title,l=e.url;return u.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":"".concat(l),className:"link",href:l,key:"footer-links-".concat(t)},u.default.createElement("div",{className:p,key:"mbitem".concat(t)},u.default.createElement(c.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},a)))})))})))),u.default.createElement(a.Container,null,u.default.createElement("div",{className:b},u.default.createElement(i.Logo,{className:"logo",type:n}),u.default.createElement("div",{className:"content"},u.default.createElement(c.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},null==s?void 0:s.content)),u.default.createElement("div",{className:"social-link"},null==v?void 0:v.map((function(e,t){var a=e.icon,l=e.name,n=e.url;return u.default.createElement("a",{key:"social".concat(t),target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - ".concat(l),"data-content-label":l,href:n},u.default.createElement("img",{loading:"lazy",src:a,alt:l}))}))))),u.default.createElement("div",{className:h},u.default.createElement(a.Container,null,u.default.createElement("div",{className:"content"},u.default.createElement(c.MarryBabyText,{type:"bodytext-3",color:o.theme.colors.white},null==s?void 0:s.copyright),u.default.createElement("div",{className:"verify"},null===(t=null==s?void 0:s.verified)||void 0===t?void 0:t.map((function(e,t){var a=e.image,l=e.url;return u.default.createElement("img",{loading:"lazy",key:"imgMbFt".concat(t),src:a,alt:l})}))))))))};exports.Footer=function(e){var t=e.type,a=e.isMobile,l=void 0===a||a,n=e.locale,o=e.footerInfo,r=e.isAmp,i=e.siteType,c=e.background;return"helloSites"===i?u.default.createElement(f,{isAmp:r,isMobile:l,type:t,locale:n,footerInfo:o||{}}):u.default.createElement(k,{footerMenu:o,background:c})};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-65dee5b0.js"),a=require("./index-029aa1de.js"),l=require("./index-0d8894d0.js"),n=require("./index-7c2bdab7.js"),o=require("./theme-678788fb.js"),r=require("./useTranslations-deedd9fe.js"),i=require("./index-4cfe1da9.js"),c=require("./index-221c8842.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./tslib.es6-deb1f62d.js"),require("./utils-7fcfcee4.js"),require("styled-components"),require("./gAssets.js"),require("./isProduction-31accedd.js"),require("./Locale-2328c6b1.js"),require("./translationsContext-e04f30b8.js"),require("string-format");var u=d(e),s="Lj0qoTD",m="OO-qFWT",v=function(e){var t=e.url,a=e.isMobile,l=e.dataEventCategory,n=e.dataEventAction,o=e.dataEventLabel,r=e.isAmp;return u.default.createElement("div",{className:m,"data-is-mobile":a},r?u.default.createElement("amp-img",{className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o}):u.default.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o}))},f=function(e){var i,c,d,m,f,g,y,E,p,b,h,N,k,F,x,T,z,C,L,q,M,j,w,A,B,_,S,H,I,D,G=e.className,O=e.type,P=void 0===O?"main":O,J=e.footerInfo,K=e.isMobile,U=e.locale,V=e.isAmp,W=r.useTranslations().t,Q=null==J?void 0:J.menu,R=(null===(c=null===(i=null==J?void 0:J.general)||void 0===i?void 0:i.verified)||void 0===c?void 0:c.filter(Boolean))||[],X=V&&"mini"===P?"div":"footer";return u.default.createElement(X,{className:"".concat(s," ").concat(G||""),style:"mini"===P?{backgroundColor:o.theme.colors.neutral50}:{},"next-page-hide":!0},u.default.createElement(a.Container,null,u.default.createElement("div",{className:"inner","data-type":P,"next-page-hide":""},"main"===P?u.default.createElement(u.default.Fragment,null,u.default.createElement("a",{href:"/"},V?(null===(m=null==J?void 0:J.general)||void 0===m?void 0:m.logo)?u.default.createElement("amp-img",{src:null===(f=null==J?void 0:J.general)||void 0===f?void 0:f.logo,alt:"Site logo",width:"132",height:"32",style:{marginBottom:24}}):null:u.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(d=null==J?void 0:J.general)||void 0===d?void 0:d.logo,alt:"Logo","data-is-sehat":"id-ID"===U})),u.default.createElement("div",{className:"columns"},u.default.createElement("div",{className:"newsletter"},u.default.createElement(l.Text,{size:"p1",type:"bold"},null===(g=null==J?void 0:J.general)||void 0===g?void 0:g.content),u.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},W("footer.signUp")),u.default.createElement("div",{className:"social"},u.default.createElement(l.Text,{size:"sm",type:"regular"},null===(y=null==J?void 0:J.social)||void 0===y?void 0:y.title),u.default.createElement("div",{className:"icons"},null===(p=null===(E=null==J?void 0:J.social)||void 0===E?void 0:E.socials)||void 0===p?void 0:p.map((function(e,t){return u.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,href:e.url},V?u.default.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",width:"32",height:"32"}):u.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))}))),u.default.createElement("hr",{className:"hrMobile"}))),u.default.createElement("div",null,Q&&u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"biglinks"},null===(h=null===(b=Q[0])||void 0===b?void 0:b.items)||void 0===h?void 0:h.map((function(e,t){return u.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":"https://".concat(n.domainLocales[U]).concat(e.url),className:"bigLink",key:t,href:e.url},e.title)}))),u.default.createElement("hr",{className:"hrMobile"}),u.default.createElement("div",{className:"mHalf"},u.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(N=Q[1])||void 0===N?void 0:N.menu_title),null===(F=null===(k=Q[1])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map((function(e,t){return u.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":"https://".concat(n.domainLocales[U]).concat(e.url),className:"link",href:e.url,key:t},u.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:"https://".concat(n.domainLocales[U]).concat(e.url)},e.title))}))),u.default.createElement("div",{className:"mHalf"},u.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(x=Q[2])||void 0===x?void 0:x.menu_title),null===(z=null===(T=Q[2])||void 0===T?void 0:T.items)||void 0===z?void 0:z.map((function(e,t){return e.url&&u.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},u.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))})))),!V&&u.default.createElement(u.default.Fragment,null,u.default.createElement("hr",{className:"hrMobile"}),u.default.createElement("div",{className:"otherSites"},u.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(C=null==J?void 0:J.branch)||void 0===C?void 0:C.title),u.default.createElement("div",{className:"flags"},null===(q=null===(L=null==J?void 0:J.branch)||void 0===L?void 0:L.branch)||void 0===q?void 0:q.map((function(e,t){return u.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},u.default.createElement(v,{url:e.flag,isMobile:K,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url,isAmp:V}))}))))))),u.default.createElement("hr",null),u.default.createElement("div",{className:"copyright","data-is-amp":V||void 0},u.default.createElement("div",{className:"copyright-image-wrapper"},R.length?R.map((function(e,t){return u.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},V?u.default.createElement("amp-img",{src:e.image,alt:"DMCA Icon",width:"100",height:"36"}):u.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"}))})):null),u.default.createElement(l.Text,{size:"xs",type:"regular",className:"copyright-content"},null===(M=null==J?void 0:J.general)||void 0===M?void 0:M.copyright)),"vi-VN"===U&&u.default.createElement(l.Text,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):u.default.createElement(u.default.Fragment,null,(null==J?void 0:J.menu)&&u.default.createElement("div",{className:"columns"},u.default.createElement("div",{className:"mHalf"},u.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(j=null==J?void 0:J.menu[1])||void 0===j?void 0:j.menu_title),null===(A=null===(w=null==J?void 0:J.menu[1])||void 0===w?void 0:w.items)||void 0===A?void 0:A.map((function(e){return u.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":"https://".concat(n.domainLocales[U]).concat(e.url),"data-event-category":"Footer","data-event-action":e.title,"data-event-label":"https://".concat(n.domainLocales[U]).concat(e.url)},u.default.createElement(l.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:"https://".concat(n.domainLocales[U]).concat(e.url),size:"sm",type:"regular",style:{color:o.theme.colors.gray800}},e.title))}))),u.default.createElement("div",{className:"mHalf"},u.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==J?void 0:J.menu[2])||void 0===B?void 0:B.menu_title),null===(S=null===(_=null==J?void 0:J.menu[2])||void 0===_?void 0:_.items)||void 0===S?void 0:S.map((function(e,t){return u.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},u.default.createElement(l.Text,{size:"sm",type:"regular",style:{color:o.theme.colors.gray800},dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))}))),!V&&"mini"!==P&&u.default.createElement("hr",{className:"hrMobile"}),u.default.createElement("div",{className:"newsletter"},u.default.createElement("div",{className:"social"},u.default.createElement(l.Text,{size:"sm",type:"regular"},null===(H=null==J?void 0:J.social)||void 0===H?void 0:H.title),u.default.createElement("div",{className:"icons"},null===(D=null===(I=null==J?void 0:J.social)||void 0===I?void 0:I.socials)||void 0===D?void 0:D.map((function(e,t){return u.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,href:e.url},V?u.default.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",width:"32",height:"32"}):u.default.createElement("img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))}))))))))))},g="B6-KmWK",y="GS-7mbG",E="qc5bEb3",p="CQGVeuT",b="_6JMoel-",h="_8eUT8Jr",N="cjDwoLi",k=function(e){var t,l=e.logoType,n=void 0===l?"marryBaby":l,r=e.footerMenu,d=e.background;if(!r)return null;var s=r.general,m=r.menu,v=r.socials;return u.default.createElement("footer",{className:g,style:{backgroundColor:d||"none"}},u.default.createElement("div",{className:N},u.default.createElement(a.Container,null,u.default.createElement("div",{className:y},null==m?void 0:m.map((function(e,t){var a=e.menu_title,l=e.items;return u.default.createElement("div",{className:E,key:"mbf".concat(t)},u.default.createElement(c.MarryBabyText,{className:"title",type:"subtitle-1",color:o.theme.mbColors.pink},a),null==l?void 0:l.map((function(e,t){var a=e.title,l=e.url;return u.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":"".concat(l),className:"link",href:l,key:"footer-links-".concat(t)},u.default.createElement("div",{className:p,key:"mbitem".concat(t)},u.default.createElement(c.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},a)))})))})))),u.default.createElement(a.Container,null,u.default.createElement("div",{className:b},u.default.createElement(i.Logo,{className:"logo",type:n}),u.default.createElement("div",{className:"content"},u.default.createElement(c.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},null==s?void 0:s.content)),u.default.createElement("div",{className:"social-link"},null==v?void 0:v.map((function(e,t){var a=e.icon,l=e.name,n=e.url;return u.default.createElement("a",{key:"social".concat(t),target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - ".concat(l),"data-content-label":l,href:n},u.default.createElement("img",{loading:"lazy",src:a,alt:l}))}))))),u.default.createElement("div",{className:h},u.default.createElement(a.Container,null,u.default.createElement("div",{className:"content"},u.default.createElement(c.MarryBabyText,{type:"bodytext-3",color:o.theme.colors.white},null==s?void 0:s.copyright),u.default.createElement("div",{className:"verify"},null===(t=null==s?void 0:s.verified)||void 0===t?void 0:t.map((function(e,t){var a=e.image,l=e.url;return u.default.createElement("img",{loading:"lazy",key:"imgMbFt".concat(t),src:a,alt:l})}))))))))};exports.Footer=function(e){var t=e.type,a=e.isMobile,l=void 0===a||a,n=e.locale,o=e.footerInfo,r=e.isAmp,i=e.siteType,c=e.background;return"helloSites"===i?u.default.createElement(f,{isAmp:r,isMobile:l,type:t,locale:n,footerInfo:o||{}}):u.default.createElement(k,{footerMenu:o,background:c})};
|
package/build/gAssets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-7c2bdab7.js"),o=require("./isProduction-31accedd.js");require("./Locale-2328c6b1.js");var s="hellosehat.com",t=function(){function t(){var e=this;this.baseDomain="",this.subPath="",this.getAssetPath=function(s,t,n){var i="https://hhg-common."+[t||e.getBaseDomain(),n||e.subPath,s].join("/");return o.isProduction||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}return t.prototype.getBaseDomain=function(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){var o=window.location.host,t=o.split("."),n=e.domainLocales[Object.keys(e.domainLocales).find((function(s){return o.includes(e.domainLocales[s])}))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every((function(e){return o=e,!isNaN(parseFloat(o))&&isFinite(o);var o}))||!n?s:n}return s},t}(),n=new t;n.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(n.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=n,exports.GAssets=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-
|
|
1
|
+
"use strict";var t=require("./tslib.es6-deb1f62d.js"),e=require("./core-6df15bbb.js"),n=require("./routing-74a64cb8.js"),r=function(t,e){var n,r;if(!t)return{};var i="tl-PH"===e?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(n=t.link)||void 0===n?void 0:n.startsWith("http"))?t.link:"".concat(i,"/health-tools")+(null===(r=t.link)||void 0===r?void 0:r.replace("".concat(i,"/"),"/")),subtitle:t.subtitle,title:t.title}},i=function(e){return t.__awaiter(void 0,void 0,void 0,(function(){var i,o,a,l,u,s,c;return t.__generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,8,,9]),"undefined"==typeof window?[3,1]:(i=window.fetch,[3,3]);case 1:return[4,require("node-fetch")];case 2:i=t.sent(),t.label=3;case 3:o="tl-PH"===e?"lang=fil":"",a=[],t.label=4;case 4:return t.trys.push([4,6,,7]),[4,i("".concat(n.getDiscoverApiDomain(e),"/wp-json/api/healthtools?ismenu=0").concat(o?"&"+o:"")).then((function(t){return t.json()}))];case 5:return l=t.sent(),a=(null===(c=null===(s=null==l?void 0:l.data)||void 0===s?void 0:s.map)||void 0===c?void 0:c.call(s,(function(t){return r(t,e)})))||[],[3,7];case 6:return t.sent(),[3,7];case 7:return[2,a];case 8:return u=t.sent(),console.error(u),[3,9];case 9:return[2]}}))}))};exports.formatHealthTool=r,exports.getDynamicHealthTool=i,exports.getDynamicHealthToolWithCache=function(n){return t.__awaiter(void 0,void 0,void 0,(function(){return t.__generator(this,(function(t){switch(t.label){case 0:return[4,e.getDataWithCache("all-health-tools",(function(){return i(n||"en-PH")}),(function(t){return!!(null==t?void 0:t.length)}),6e4)];case 1:return[2,t.sent()||[]]}}))}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("./Locale-80bffa37.js"),l=require("./gAssets.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=C(e);exports.getSocialList=function(e){return[{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(e)},{icon:a.default.createElement("img",{src:l.CommonGAssets.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:"https://sp.zalo.me/share?href=".concat(e),allowedLocales:[t.LOCALE.Vietnam]},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:"https://twitter.com/intent/tweet?url=".concat(e)},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("g",{clipPath:"url(#clip0_687_88944)"},a.default.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),a.default.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),a.default.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},a.default.createElement("stop",{stopColor:"#36F46C"}),a.default.createElement("stop",{offset:"1",stopColor:"#03D749"})),a.default.createElement("clipPath",{id:"clip0_687_88944"},a.default.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:"https://wa.me/?text=".concat(e)},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(e)},{icon:a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},a.default.createElement("g",{id:"surface1"},a.default.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),a.default.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:"http://line.me/R/msg/text/?".concat(e),allowedLocales:[t.LOCALE.Taiwan]}]};
|
|
1
|
+
"use strict";var e=require("react"),t=require("./Locale-2328c6b1.js"),l=require("./gAssets.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=C(e);exports.getSocialList=function(e){return[{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(e)},{icon:a.default.createElement("img",{src:l.CommonGAssets.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:"https://sp.zalo.me/share?href=".concat(e),allowedLocales:[t.LOCALE.Vietnam]},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:"https://twitter.com/intent/tweet?url=".concat(e)},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("g",{clipPath:"url(#clip0_687_88944)"},a.default.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),a.default.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),a.default.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},a.default.createElement("stop",{stopColor:"#36F46C"}),a.default.createElement("stop",{offset:"1",stopColor:"#03D749"})),a.default.createElement("clipPath",{id:"clip0_687_88944"},a.default.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:"https://wa.me/?text=".concat(e)},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(e)},{icon:a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},a.default.createElement("g",{id:"surface1"},a.default.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),a.default.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:"http://line.me/R/msg/text/?".concat(e),allowedLocales:[t.LOCALE.Taiwan]}]};
|
package/build/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-deedd9fe.js"),r=require("./useScrollbarSize-8087d81b.js"),s=require("./useFbDataLayer-3089e0bb.js"),a=require("./useHealthToolCache-8f397464.js");require("react"),require("./translationsContext-e04f30b8.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-deb1f62d.js"),require("./cookieHelper-3c85507e.js"),require("./getDynamicHealthTool-961900fd.js"),require("./core-6df15bbb.js"),require("./isProduction-31accedd.js"),require("./routing-74a64cb8.js"),require("./index-7c2bdab7.js"),require("./Locale-2328c6b1.js"),exports.useTranslations=e.useTranslations,exports.MEASURE_ELEMENT_CLASS=r.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=r.useScrollbarSize,exports.useFbDataLayer=s.useFbDataLayer,exports.useHealthToolsCache=a.useHealthToolsCache;
|
package/build/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./translationsProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./translationsProvider-3a600924.js"),e=require("./translationsContext-e04f30b8.js");require("./tslib.es6-deb1f62d.js"),require("react"),exports.TranslationsProvider=r.TranslationsProvider,exports.translationsMap=r.translationsMap,exports.TranslationsContext=e.TranslationsContext,exports.defaultTranslations=e.defaultTranslations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var n=require("./tslib.es6-b360563b.js"),t=require("./utils-6c666b6a.js"),e=require("styled-components"),o=require("react"),a=require("./gAssets.js"),i=require("./Locale-80bffa37.js");function s(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var l,h,p,g,r=s(e),x=s(o),d=r.default.div(l||(l=n.__makeTemplateObject(["\n position: relative;\n display: inline-flex;\n align-items: center;\n z-index: 1;\n .main-logo-icon {\n object-fit: contain;\n }\n &[data-logo-is-light] {\n > svg path {\n fill: #fff;\n }\n img {\n filter: brightness(0) invert(1);\n }\n }\n\n &[data-has-badge] {\n @supports (display: flex) and (gap: 1em) {\n gap: 0.5rem;\n }\n\n @supports not ((display: flex) and (gap: 1em)) {\n > img,\n amp-image {\n margin-left: 0.25rem;\n }\n }\n }\n\n .amp-logo img {\n object-fit: contain;\n }\n .common-logo-seasonal-left,\n .common-logo-seasonal-right {\n z-index: -1;\n }\n .common-logo-seasonal-left {\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n }\n .common-logo-seasonal-right {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n }\n &[data-christmas='true'] {\n padding-left: 37px;\n padding-right: 22px;\n .common-logo-seasonal-left {\n width: 125px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 23px;\n height: 17px;\n }\n }\n &[data-new-year='true'] {\n padding-right: 85px;\n .common-logo-seasonal-left {\n top: 35%;\n width: 100px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 85px;\n height: 54px;\n }\n "," {\n padding-right: 0;\n .common-logo-seasonal-right {\n display: none;\n }\n }\n }\n &[data-lunar-new-year='true'] {\n padding-left: 30px;\n padding-right: 35px;\n .common-logo-seasonal-left {\n width: 33px;\n height: 41px;\n }\n .common-logo-seasonal-right {\n width: 37px;\n height: 54px;\n }\n }\n"],["\n position: relative;\n display: inline-flex;\n align-items: center;\n z-index: 1;\n .main-logo-icon {\n object-fit: contain;\n }\n &[data-logo-is-light] {\n > svg path {\n fill: #fff;\n }\n img {\n filter: brightness(0) invert(1);\n }\n }\n\n &[data-has-badge] {\n @supports (display: flex) and (gap: 1em) {\n gap: 0.5rem;\n }\n\n @supports not ((display: flex) and (gap: 1em)) {\n > img,\n amp-image {\n margin-left: 0.25rem;\n }\n }\n }\n\n .amp-logo img {\n object-fit: contain;\n }\n .common-logo-seasonal-left,\n .common-logo-seasonal-right {\n z-index: -1;\n }\n .common-logo-seasonal-left {\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n }\n .common-logo-seasonal-right {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n }\n &[data-christmas='true'] {\n padding-left: 37px;\n padding-right: 22px;\n .common-logo-seasonal-left {\n width: 125px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 23px;\n height: 17px;\n }\n }\n &[data-new-year='true'] {\n padding-right: 85px;\n .common-logo-seasonal-left {\n top: 35%;\n width: 100px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 85px;\n height: 54px;\n }\n "," {\n padding-right: 0;\n .common-logo-seasonal-right {\n display: none;\n }\n }\n }\n &[data-lunar-new-year='true'] {\n padding-left: 30px;\n padding-right: 35px;\n .common-logo-seasonal-left {\n width: 33px;\n height: 41px;\n }\n .common-logo-seasonal-right {\n width: 37px;\n height: 54px;\n }\n }\n"])),t.MediaQueries.mbDown),m=r.default.img(h||(h=n.__makeTemplateObject(["\n height: 16px;\n width: unset;\n margin-bottom: 4px;\n margin-left: -3px;\n"],["\n height: 16px;\n width: unset;\n margin-bottom: 4px;\n margin-left: -3px;\n"]))),c=o.memo((function(n){var t=n.type,e=n.width,i=n.height,s=o.useMemo((function(){switch(t){case"hellobacsi":return{width:e||"107px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:e||"127px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:e||"121px",height:i||"27px",src:a.CommonGAssets.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:e||"123px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:e||"150px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:e||"99px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:e||"127px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:e||"101px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:e||"111px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:e||"89px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:e||"123px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:e||"105px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:e||"60px",height:i||"57px",src:a.CommonGAssets.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:e||"145px",height:i||"28px",src:a.CommonGAssets.getAssetPath("logo/marrybaby.png")};default:return null}}),[t,e,i])||{},l=s.src,h=s.width,p=s.height;return x.default.createElement("img",{className:"main-logo-icon",src:l,style:{width:h,height:p}})})),f={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},u=[i.LOCALE.Vietnam,i.LOCALE.Taiwan,i.LOCALE.Indonesia,i.LOCALE.Malaysia],y=r.default((function(t){var e=t.type,o=n.__rest(t,["type"]);return x.default.createElement(e,o)}))(p||(p=n.__makeTemplateObject(["\n color: var(--text-color, ",");\n font-family: Krub;\n font-weight: 600;\n letter-spacing: -0.2px;\n\n &[data-type='headline-1'] {\n font-size: 40px;\n line-height: 60px;\n }\n &[data-type='headline-2'] {\n font-size: 32px;\n line-height: 48px;\n }\n &[data-type='headline-3'] {\n font-size: 24px;\n line-height: 40px;\n }\n &[data-type='headline-4'] {\n font-size: 18px;\n line-height: 32px;\n }\n"],["\n color: var(--text-color, ",");\n font-family: Krub;\n font-weight: 600;\n letter-spacing: -0.2px;\n\n &[data-type='headline-1'] {\n font-size: 40px;\n line-height: 60px;\n }\n &[data-type='headline-2'] {\n font-size: 32px;\n line-height: 48px;\n }\n &[data-type='headline-3'] {\n font-size: 24px;\n line-height: 40px;\n }\n &[data-type='headline-4'] {\n font-size: 18px;\n line-height: 32px;\n }\n"])),(function(n){return n.theme.mbColors.dark})),w=r.default.p(g||(g=n.__makeTemplateObject(["\n color: var(--text-color, ",");\n letter-spacing: -0.2px;\n\n &[data-type='subtitle-1'] {\n font-size: 16px;\n font-weight: 600;\n line-height: 26px;\n }\n &[data-type='subtitle-2'] {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n }\n &[data-type='subtitle-3'] {\n font-size: 12px;\n font-weight: 500;\n line-height: 20px;\n }\n &[data-type='bodytext-1'] {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n }\n &[data-type='bodytext-2'] {\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n }\n &[data-type='bodytext-3'] {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n }\n &[data-type='caption-1'] {\n font-size: 10px;\n font-weight: 500;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n &[data-type='caption-2'] {\n font-size: 10px;\n font-weight: 400;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n"],["\n color: var(--text-color, ",");\n letter-spacing: -0.2px;\n\n &[data-type='subtitle-1'] {\n font-size: 16px;\n font-weight: 600;\n line-height: 26px;\n }\n &[data-type='subtitle-2'] {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n }\n &[data-type='subtitle-3'] {\n font-size: 12px;\n font-weight: 500;\n line-height: 20px;\n }\n &[data-type='bodytext-1'] {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n }\n &[data-type='bodytext-2'] {\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n }\n &[data-type='bodytext-3'] {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n }\n &[data-type='caption-1'] {\n font-size: 10px;\n font-weight: 500;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n &[data-type='caption-2'] {\n font-size: 10px;\n font-weight: 400;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n"])),(function(n){return n.theme.mbColors.dark})),b="d76E4SH";exports.Container=function(n){var t=n.children,e=n.className,o=n.style,a=n.type;return x.default.createElement("div",{className:"".concat(b," ").concat(e||""),style:o,"data-type":a},t)},exports.LogoIcon=c,exports.LunarNewYearLocale=u,exports.StyledHeading=y,exports.StyledLogo=d,exports.StyledProLogo=m,exports.StyledText=w,exports.isChristmas=function(n){var t=n.getDate();return 11===n.getMonth()&&t>=16&&t<=25},exports.isLunarNewYear=function(n){var t=n.getFullYear(),e=f[t];if(!e)return!1;var o=new Date(t,e[1],e[0]),a=new Date(o);a.setDate(o.getDate()-7);var i=new Date(o);return i.setDate(o.getDate()+5),a<=n&&n<=i},exports.isNewYear=function(n){var t=n.getDate(),e=n.getMonth();return 11===e&&t>=26||0===e&&t<=15};
|
|
1
|
+
"use strict";var n=require("./tslib.es6-deb1f62d.js"),t=require("./utils-7fcfcee4.js"),e=require("styled-components"),o=require("react"),a=require("./gAssets.js"),i=require("./Locale-2328c6b1.js");function s(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var l,h,p,g,r=s(e),x=s(o),d=r.default.div(l||(l=n.__makeTemplateObject(["\n position: relative;\n display: inline-flex;\n align-items: center;\n z-index: 1;\n .main-logo-icon {\n object-fit: contain;\n }\n &[data-logo-is-light] {\n > svg path {\n fill: #fff;\n }\n img {\n filter: brightness(0) invert(1);\n }\n }\n\n &[data-has-badge] {\n @supports (display: flex) and (gap: 1em) {\n gap: 0.5rem;\n }\n\n @supports not ((display: flex) and (gap: 1em)) {\n > img,\n amp-image {\n margin-left: 0.25rem;\n }\n }\n }\n\n .amp-logo img {\n object-fit: contain;\n }\n .common-logo-seasonal-left,\n .common-logo-seasonal-right {\n z-index: -1;\n }\n .common-logo-seasonal-left {\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n }\n .common-logo-seasonal-right {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n }\n &[data-christmas='true'] {\n padding-left: 37px;\n padding-right: 22px;\n .common-logo-seasonal-left {\n width: 125px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 23px;\n height: 17px;\n }\n }\n &[data-new-year='true'] {\n padding-right: 85px;\n .common-logo-seasonal-left {\n top: 35%;\n width: 100px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 85px;\n height: 54px;\n }\n "," {\n padding-right: 0;\n .common-logo-seasonal-right {\n display: none;\n }\n }\n }\n &[data-lunar-new-year='true'] {\n padding-left: 30px;\n padding-right: 35px;\n .common-logo-seasonal-left {\n width: 33px;\n height: 41px;\n }\n .common-logo-seasonal-right {\n width: 37px;\n height: 54px;\n }\n }\n"],["\n position: relative;\n display: inline-flex;\n align-items: center;\n z-index: 1;\n .main-logo-icon {\n object-fit: contain;\n }\n &[data-logo-is-light] {\n > svg path {\n fill: #fff;\n }\n img {\n filter: brightness(0) invert(1);\n }\n }\n\n &[data-has-badge] {\n @supports (display: flex) and (gap: 1em) {\n gap: 0.5rem;\n }\n\n @supports not ((display: flex) and (gap: 1em)) {\n > img,\n amp-image {\n margin-left: 0.25rem;\n }\n }\n }\n\n .amp-logo img {\n object-fit: contain;\n }\n .common-logo-seasonal-left,\n .common-logo-seasonal-right {\n z-index: -1;\n }\n .common-logo-seasonal-left {\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n }\n .common-logo-seasonal-right {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n }\n &[data-christmas='true'] {\n padding-left: 37px;\n padding-right: 22px;\n .common-logo-seasonal-left {\n width: 125px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 23px;\n height: 17px;\n }\n }\n &[data-new-year='true'] {\n padding-right: 85px;\n .common-logo-seasonal-left {\n top: 35%;\n width: 100px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 85px;\n height: 54px;\n }\n "," {\n padding-right: 0;\n .common-logo-seasonal-right {\n display: none;\n }\n }\n }\n &[data-lunar-new-year='true'] {\n padding-left: 30px;\n padding-right: 35px;\n .common-logo-seasonal-left {\n width: 33px;\n height: 41px;\n }\n .common-logo-seasonal-right {\n width: 37px;\n height: 54px;\n }\n }\n"])),t.MediaQueries.mbDown),m=r.default.img(h||(h=n.__makeTemplateObject(["\n height: 16px;\n width: unset;\n margin-bottom: 4px;\n margin-left: -3px;\n"],["\n height: 16px;\n width: unset;\n margin-bottom: 4px;\n margin-left: -3px;\n"]))),c=o.memo((function(n){var t=n.type,e=n.width,i=n.height,s=o.useMemo((function(){switch(t){case"hellobacsi":return{width:e||"107px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:e||"127px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:e||"121px",height:i||"27px",src:a.CommonGAssets.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:e||"123px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:e||"150px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:e||"99px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:e||"127px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:e||"101px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:e||"111px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:e||"89px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:e||"123px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:e||"105px",height:i||"24px",src:a.CommonGAssets.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:e||"60px",height:i||"57px",src:a.CommonGAssets.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:e||"145px",height:i||"28px",src:a.CommonGAssets.getAssetPath("logo/marrybaby.png")};default:return null}}),[t,e,i])||{},l=s.src,h=s.width,p=s.height;return x.default.createElement("img",{className:"main-logo-icon",src:l,style:{width:h,height:p}})})),f={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},u=[i.LOCALE.Vietnam,i.LOCALE.Taiwan,i.LOCALE.Indonesia,i.LOCALE.Malaysia],y=r.default((function(t){var e=t.type,o=n.__rest(t,["type"]);return x.default.createElement(e,o)}))(p||(p=n.__makeTemplateObject(["\n color: var(--text-color, ",");\n font-family: Krub;\n font-weight: 600;\n letter-spacing: -0.2px;\n\n &[data-type='headline-1'] {\n font-size: 40px;\n line-height: 60px;\n }\n &[data-type='headline-2'] {\n font-size: 32px;\n line-height: 48px;\n }\n &[data-type='headline-3'] {\n font-size: 24px;\n line-height: 40px;\n }\n &[data-type='headline-4'] {\n font-size: 18px;\n line-height: 32px;\n }\n"],["\n color: var(--text-color, ",");\n font-family: Krub;\n font-weight: 600;\n letter-spacing: -0.2px;\n\n &[data-type='headline-1'] {\n font-size: 40px;\n line-height: 60px;\n }\n &[data-type='headline-2'] {\n font-size: 32px;\n line-height: 48px;\n }\n &[data-type='headline-3'] {\n font-size: 24px;\n line-height: 40px;\n }\n &[data-type='headline-4'] {\n font-size: 18px;\n line-height: 32px;\n }\n"])),(function(n){return n.theme.mbColors.dark})),w=r.default.p(g||(g=n.__makeTemplateObject(["\n color: var(--text-color, ",");\n letter-spacing: -0.2px;\n\n &[data-type='subtitle-1'] {\n font-size: 16px;\n font-weight: 600;\n line-height: 26px;\n }\n &[data-type='subtitle-2'] {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n }\n &[data-type='subtitle-3'] {\n font-size: 12px;\n font-weight: 500;\n line-height: 20px;\n }\n &[data-type='bodytext-1'] {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n }\n &[data-type='bodytext-2'] {\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n }\n &[data-type='bodytext-3'] {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n }\n &[data-type='caption-1'] {\n font-size: 10px;\n font-weight: 500;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n &[data-type='caption-2'] {\n font-size: 10px;\n font-weight: 400;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n"],["\n color: var(--text-color, ",");\n letter-spacing: -0.2px;\n\n &[data-type='subtitle-1'] {\n font-size: 16px;\n font-weight: 600;\n line-height: 26px;\n }\n &[data-type='subtitle-2'] {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n }\n &[data-type='subtitle-3'] {\n font-size: 12px;\n font-weight: 500;\n line-height: 20px;\n }\n &[data-type='bodytext-1'] {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n }\n &[data-type='bodytext-2'] {\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n }\n &[data-type='bodytext-3'] {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n }\n &[data-type='caption-1'] {\n font-size: 10px;\n font-weight: 500;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n &[data-type='caption-2'] {\n font-size: 10px;\n font-weight: 400;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n"])),(function(n){return n.theme.mbColors.dark})),b="d76E4SH";exports.Container=function(n){var t=n.children,e=n.className,o=n.style,a=n.type;return x.default.createElement("div",{className:"".concat(b," ").concat(e||""),style:o,"data-type":a},t)},exports.LogoIcon=c,exports.LunarNewYearLocale=u,exports.StyledHeading=y,exports.StyledLogo=d,exports.StyledProLogo=m,exports.StyledText=w,exports.isChristmas=function(n){var t=n.getDate();return 11===n.getMonth()&&t>=16&&t<=25},exports.isLunarNewYear=function(n){var t=n.getFullYear(),e=f[t];if(!e)return!1;var o=new Date(t,e[1],e[0]),a=new Date(o);a.setDate(o.getDate()-7);var i=new Date(o);return i.setDate(o.getDate()+5),a<=n&&n<=i},exports.isNewYear=function(n){var t=n.getDate(),e=n.getMonth();return 11===e&&t>=26||0===e&&t<=15};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-deb1f62d.js"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(t),n=t.forwardRef((function(t,r){return a.default.createElement("circle",e.__assign({},t,{ref:r}),a.default.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))}));exports.CustomReferenceDot=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./tslib.es6-deb1f62d.js"),t=require("react"),o=require("./FullScreen-ebdbe8ed.js"),i=require("./utils-7fcfcee4.js"),n=require("styled-components"),r=require("./cookieHelper-3c85507e.js"),a=require("slugify"),l=require("string-format");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u,d,c=s(t),_=s(n),p=s(a),m=s(l),v={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},g=_.default.div(u||(u=e.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n\n padding: 0 16px 32px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n visibility: hidden;\n\n &[data-open='true'] {\n z-index: 400;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\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='form'] {\n width: 496px;\n height: 548px;\n "," {\n width: 340px;\n }\n }\n\n &[data-type='confirm'] {\n "," {\n width: calc(100% - 32px);\n }\n "," {\n width: 100%;\n max-width: 407px;\n }\n }\n\n .popup-content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n\n .close-button {\n position: absolute;\n top: 16px;\n right: 0;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n\n padding: 0 16px 32px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n visibility: hidden;\n\n &[data-open='true'] {\n z-index: 400;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\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='form'] {\n width: 496px;\n height: 548px;\n "," {\n width: 340px;\n }\n }\n\n &[data-type='confirm'] {\n "," {\n width: calc(100% - 32px);\n }\n "," {\n width: 100%;\n max-width: 407px;\n }\n }\n\n .popup-content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n\n .close-button {\n position: absolute;\n top: 16px;\n right: 0;\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}),(function(e){return e.theme.colors.gray200}),i.MediaQueries.mbDown,i.MediaQueries.mbDown,i.MediaQueries.mbUp),h=_.default.div(d||(d=e.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),E="DD/MM/YYYY",f="/images/avatar.jpg",T="/images/default-image.jpg",b={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR",BGC:"BGC"},A={"id-ID":{"kalkulator-bmi":b.BMI,"kebutuhan-kalori":b.BMR,"kalkulator-hari-perkiraan-lahir":b.DUE_DATE,"kalkulator-masa-subur-2":b.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":b.PWG,"kalkulator-detak-jantung-saat-olahraga":b.THR},"ms-MY":{"kalkulator-bmi":b.BMI,"kalkulator-bmr":b.BMR,"kalkulator-tarikh-bersalin":b.DUE_DATE,"kalkulator-kesuburan":b.OVULATION,"kalkulator-tambah-berat-badan-hamil":b.PWG,"target-heart-rate-calculator":b.THR},"vi-VN":{"cach-tinh-chi-so-bmi":b.BMI,"tinh-chi-so-bmr":b.BMR,"cong-cu-tinh-ngay-du-sinh":b.DUE_DATE,"tinh-ngay-rung-trung":b.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":b.PWG,"cong-cu-do-nhip-tim":b.THR},"zh-TW":{"bmi-calculator":b.BMI,"bmr-calculator":b.BMR,"due-date-calculator":b.DUE_DATE,"ovulation-calculator":b.OVULATION,"pregnancy-weight-gain-calculator":b.PWG,"target-heart-rate-calculator":b.THR},"en-PH":{"bmi-calculator":b.BMI,"bmr-calculator":b.BMR,"due-date-calculator":b.DUE_DATE,"ovulation-calculator":b.OVULATION,"pregnancy-weight-gain-calculator":b.PWG,"target-heart-rate-calculator":b.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":b.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":b.BMR,"เครื่องมือคำนวณกำหนดคลอด":b.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":b.OVULATION,"เครื่องคำนวณน้ำหนักตัว":b.PWG,"เครื่องวัดอัตราการเต้น":b.THR},"hi-IN":{"bmi-calculator-en":b.BMI,"bmi-calculator":b.BMI,"bmr-calculator":b.BMR,"delivery-date-calculator":b.DUE_DATE,"ovulation-calculator":b.OVULATION,"pregnancy-weight-gain-calculator":b.PWG,"target-heart-rate-calculator":b.THR},"km-KH":{"គណនា-bmi":b.BMI,"គណនា-bmr":b.BMR,"គណនាថ្ងៃសម្រាលកូន":b.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":b.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":b.PWG,"គណនារកចង្វាក់បេះដូងល្អ":b.THR},"my-MM":{"bmi-calculator":b.BMI,"bmr-calculator":b.BMR,"due-date-calendar":b.DUE_DATE,"ovulation-calculator":b.OVULATION,"pregnaancy-weight-calculator":b.PWG,"target-heartrate":b.THR,"pregnancy-weight-calculator":b.PWG,"target-heart-rate":b.THR}},y="hhg_user_token",O="together_admin_token",w={adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},I={report_scam:{label:"morePopover.report.scam",reportReasonText:"morePopover.report.scam"},report_sex:{label:"morePopover.report.sex",reportReasonText:"morePopover.report.sex"},report_offensive:{label:"morePopover.report.offensive",reportReasonText:"morePopover.report.offensive"},report_violence:{label:"morePopover.report.violence",reportReasonText:"morePopover.report.violence"},report_prohibited:{label:"morePopover.report.prohibited",reportReasonText:"morePopover.report.prohibited"},report_spam:{label:"morePopover.report.spam",reportReasonText:"morePopover.report.spam"},report_falseNews:{label:"morePopover.report.falseNews",reportReasonText:"morePopover.report.falseNews"},report_other:{label:"morePopover.report.other",reportReasonText:"morePopover.report.other"}},L={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}},S=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DUE_DATE_FORMAT:E,DEFAULT_AVATAR_IMG:f,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:T,BMI_LEVELS:["underweight","healthy","overweight","obese_level_1","obese_level_2"],BMR_LEVELS:["low","normal","high"],CORAL_TOKEN_COOKE:"coral_together_user_token",HEALTH_TOOL_TYPE:b,LOCALE_HEALTH_TOOLS:A,BEARER_TOKEN_COOKIE:y,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:O,Z_INDEX:w,BmrActiveLevels:[{value:"sedentary",icon:"bmr-sedentary",name:"bmr.activeLevel.sedentary",description:"bmr.activeLevel.sedentary.description"},{value:"lightly-active",icon:"bmr-light",name:"bmr.activeLevel.lightlyActive",description:"bmr.activeLevel.lightlyActive.description"},{value:"moderately-active",icon:"bmr-moderately",name:"bmr.activeLevel.moderatelyActive",description:"bmr.activeLevel.moderatelyActive.description"},{value:"intensely-active",icon:"bmr-intensively",name:"bmr.activeLevel.intenselyActive",description:"bmr.activeLevel.intenselyActive.description"},{value:"extremely-active",icon:"bmr-extremely",name:"bmr.activeLevel.extremelyActive",description:"bmr.activeLevel.extremelyActive.description"}],LEAD_CAMPAIGN_CODE:"lmoct7xfr5sv4fv",LEAD_TOKEN_COOKIE:"hhg-id",GA_TOKEN_COOKIE:"_ga",GOOGLE_CALENDAR_AUTH_CLIENT_ID:"1038242799566-esoq4ij201ve5qfp266nbca44scpo3c6.apps.googleusercontent.com",FIND_CARE_IFRAME_URL:"https://www.appsheet.com/start/4ba34ebe-3cb6-4c16-8dd4-d074025a5bb6#appName=DependentDropdowns-2711103&group=%5B%5D&page=card&sort=%5B%5D&table=Menu&view=Menu",REPORT_REASON_MAP:I,MB_SOCIAL_LINKS:{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/marry.baby.vn",INSTAGRAM:"https://www.instagram.com/marrybaby.vn/",TWITTER:"",YOUTUBE:"https://www.youtube.com/channel/UCeZybTkY1VzJ3N7LvPGdKbg",ZALO:"http://zalo.me/806483414530291942"},INTERNAL_ROLES:["admin","moderator","local-admin"],EXTERNAL_ROLES:["ambassador","expert","sponsor","guide","influencer"],INTERNAL_PROFILE_ROLES:["moderator","local-admin"],EXTERNAL_PROFILE_ROLES:["expert","ambassador","sponsor"],RoleDataMap:{moderator:{text:"Moderator",fid:"cardAuthor.moderator",background:"#fe921d"},admin:{text:"Admin",fid:"cardAuthor.admin",background:"#2b62cd"},"local-admin":{text:"Local admin",fid:"cardAuthor.localAdmin",background:"#2b62cd"},expert:{text:"Expert",fid:"cardAuthor.expert",background:"#ff6f4d"},sponsor:{text:"Sponsor",fid:"cardAuthor.sponsor",background:"#00c7e6"},ambassador:{text:"Ambassador",fid:"cardAuthor.ambassador",background:"#00CB8A"}},MAX_IMAGE_UPLOADS:20,LOCALISED_SLUGS:L}),x=function(e){return e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||""}:{}},R=function(e){return e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{}},k=function(t){var o,i,n,r;return t?{id:t.ID,postName:t.post_name,sponsor:t.sponsor?P(t.sponsor):null,isSponsored:t.is_sponsored||null,postTitle:t.post_title||"",postModified:t.post_modified||"",postDate:t.post_date||"",modifiedTime:t.modified_time||"",permalink:t.permalink||"",featureImage:t.image||null,featureImageMobile:t.image_medium||null,featureImageMobileXs:t.image_thumbnail||null,author:x(t.author),reviewer:t.reviewed_by&&x(t.reviewed_by)||null,articleReviewed:(null==t?void 0:t.reviewed)?e.__assign(e.__assign({},null==t?void 0:t.reviewed),{author:D(null===(o=null==t?void 0:t.reviewed)||void 0===o?void 0:o.author),editor:D(null===(i=null==t?void 0:t.reviewed)||void 0===i?void 0:i.editor),expert:D(null===(n=null==t?void 0:t.reviewed)||void 0===n?void 0:n.expert),fact_check:D(null===(r=null==t?void 0:t.reviewed)||void 0===r?void 0:r.fact_check)}):null,category:G(t.category),postContent:t.post_content||null,sections:t.sections||null,categories:(t.categories||[]).map(G),sources:t.sources||null,description:t.description||null,excerpt:t.excerpt||null,expert:R(t.expert),metaTag:t.meta_tag||null}:{}},D=function(t){return void 0!==t&&t?e.__assign(e.__assign({},t),{profile_url:(null==t?void 0:t.slug)?["expert","medical"].includes((null==t?void 0:t.role)||"")?"/expert/".concat(null==t?void 0:t.slug):"/author/".concat(null==t?void 0:t.slug):t.profile_url}):null},P=function(e){return e?{title:e.title,logo:e.logo,link:e.link}:{}},C=function(e){return{postTitle:e.post_title,permalink:e.permalink}},G=function(e){var t,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?P(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((function(e){return G(e)})))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?C(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((function(e){return N(e)})):null}:{}},N=function(e){return{title:e.title,content:e.content}},M=function(e){return e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{}},U=function(e){return e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},B=function(e){var t,o,i,n;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(i=e.community)||void 0===i?void 0:i.slug,communityName:null===(n=e.community)||void 0===n?void 0:n.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},H=function(e){var t,o,i,n,r,a,l,s,u,d,c,_,p,m,v,g,h,E,f,T,b;return e?{id:e.id,topics:(null===(t=e.topics)||void 0===t?void 0:t.map((function(t){var o,i,n,r;return{id:t.id||0,name:t.name||"",slug:t.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+t.slug,communityId:String(null===(i=e.community)||void 0===i?void 0:i.id),communitySlug:(null===(n=e.community)||void 0===n?void 0:n.slug)||"",communityName:(null===(r=e.community)||void 0===r?void 0:r.name)||"",isHidden:Boolean(t.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(i=e.community)||void 0===i?void 0:i.name)||"",slug:(null===(n=e.community)||void 0===n?void 0:n.slug)||"",isActive:!0,isHidden:Boolean(null===(r=e.community)||void 0===r?void 0:r.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(l=e.user)||void 0===l?void 0:l.user_name)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(d=e.user)||void 0===d?void 0:d.avatar)||"",role:(null===(c=e.user)||void 0===c?void 0:c.role)?null===(p=null===(_=e.user)||void 0===_?void 0:_.role)||void 0===p?void 0:p.toLowerCase():"",type:(null===(m=e.user)||void 0===m?void 0:m.type)||"",partnerId:(null===(v=e.user)||void 0===v?void 0:v.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(h=e.user)||void 0===h?void 0:h.title)||"",doctorId:(null===(E=e.user)||void 0===E?void 0:E.doctor_id)?String(null===(f=e.user)||void 0===f?void 0:f.doctor_id):"",hospitalId:(null===(T=e.user)||void 0===T?void 0:T.hospital_id)?String(null===(b=e.user)||void 0===b?void 0:b.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0}:{}},F=function(e){return e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{}},V=function(e){var t,o,i,n,r,a,l,s,u,d,c,_,p,m,v,g,h,E,f,T,b,A,y,O,w,I,L,S,x,R,k,D;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(V):[],author:{id:(null===(t=e.user)||void 0===t?void 0:t.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(i=e.user)||void 0===i?void 0:i.name)||"",role:(null===(n=e.user)||void 0===n?void 0:n.role)?null===(a=null===(r=e.user)||void 0===r?void 0:r.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(l=e.user)||void 0===l?void 0:l.avatar)||"",type:(null===(s=e.user)||void 0===s?void 0:s.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(d=e.user)||void 0===d?void 0:d.partner_id)?String(null===(c=e.user)||void 0===c?void 0:c.partner_id):"",title:(null===(_=e.user)||void 0===_?void 0:_.title)||"",doctorId:(null===(p=e.user)||void 0===p?void 0:p.doctor_id)?String(null===(m=e.user)||void 0===m?void 0:m.doctor_id):"",hospitalId:(null===(v=e.user)||void 0===v?void 0:v.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(h=e.mentioned)||void 0===h?void 0:h.id)||0,username:(null===(E=e.mentioned)||void 0===E?void 0:E.user_name)||"",name:(null===(f=e.mentioned)||void 0===f?void 0:f.name)||"",role:(null===(T=e.mentioned)||void 0===T?void 0:T.role)?null===(A=null===(b=e.mentioned)||void 0===b?void 0:b.role)||void 0===A?void 0:A.toLowerCase():"",avatar:(null===(y=e.mentioned)||void 0===y?void 0:y.avatar)||"",type:(null===(O=e.mentioned)||void 0===O?void 0:O.type)||"",email:(null===(w=e.mentioned)||void 0===w?void 0:w.email)||"",partnerId:(null===(I=e.mentioned)||void 0===I?void 0:I.partner_id)?String(null===(L=e.mentioned)||void 0===L?void 0:L.partner_id):"",doctorId:(null===(S=e.mentioned)||void 0===S?void 0:S.doctor_id)?String(null===(x=e.mentioned)||void 0===x?void 0:x.doctor_id):"",hospitalId:(null===(R=e.mentioned)||void 0===R?void 0:R.hospital_id)?String(null===(k=e.mentioned)||void 0===k?void 0:k.hospital_id):"",title:(null===(D=e.mentioned)||void 0===D?void 0:D.title)||""}:null,mentions:e.mentions||[]}:{}},K=function(e){return void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?"/expert/".concat(null==e?void 0:e.slug):"/author/".concat(null==e?void 0:e.slug):(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":""},j=Object.freeze({__proto__:null,formatAuthor:x,formatArticleExpert:R,formatArticle:k,formatUserProfile:D,formatBMIResult:function(e){var t,o,i,n,r,a,l,s,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(t=null==e?void 0:e.comparison)&&void 0!==t?t:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(i=null==e?void 0:e.risk)&&void 0!==i?i:""},{tab:"tools.suggestion",content:null!==(n=null==e?void 0:e.suggestion)&&void 0!==n?n:""}],chartData:(null===(r=null==e?void 0:e.chart_data)||void 0===r?void 0:r.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(l=null==e?void 0:e.illustrator)&&void 0!==l?l:"",faqs:null!==(s=null==e?void 0:e.faqs)&&void 0!==s?s:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:P,formatReviewedCategory:C,formatCategory:G,formatCategoryApi:function(e){return e?{categoryInfo:G(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(k),subCategories:(e.data.sub_categories||[]).map(G)}:{}},formatFaqsCategory:N,formatHealthTool:M,formatHealthToolTypeCategory:function(e){var t,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(t=null==e?void 0:e.health_tools)||void 0===t?void 0:t.map((function(e){return M(e)})))&&void 0!==o?o:[]}:{}},formatCommunity:U,formatTopic:B,formatPost:H,formatPostPagination:function(e){return e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{}},formatNotification:function(e){var t,o,i;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(t=e.from_user)||void 0===t?void 0:t.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(i=e.from_user)||void 0===i?void 0:i.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:function(e){return e?e.map((function(e){return{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}})):[]},formatOvulationInfo:F,formatSuggestedArticle:function(e){return e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{}},formatTopicHealthTool:function(e){return e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{}},formatComment:V,formatReportedPostToPostDetail:function(e){return e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{}},formatTopicSubot:function(e){return e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{}},formatSiteWideBanner:function(e,t){return void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:t||"other"}:null},formatPWGContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?D(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}},formatUserProfileUrl:K,formatTHRContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?D(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}},formatBabyGrowthContent:function(e){var t,o,i;return e&&e.information?{information:null!==(t=e.information.map((function(e){return{title:e.title,description:e.description}})))&&void 0!==t?t:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(i=e.reviewed_by)||void 0===i?void 0:i.name)||"",date:e.reviewed_date||"",link:K(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}}),Y=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var o={},i=(t||{}).decode||X,n=0;for(;n<e.length;){var r=e.indexOf("=",n);if(-1===r)break;var a=e.indexOf(";",n);if(-1===a)a=e.length;else if(a<r){n=e.lastIndexOf(";",r-1)+1;continue}var l=e.slice(n,r).trim();if(void 0===o[l]){var s=e.slice(r+1,a).trim();34===s.charCodeAt(0)&&(s=s.slice(1,-1)),o[l]=Z(s,i)}n=a+1}return o},W=function(e,t,o){var i=o||{},n=i.encode||$;if("function"!=typeof n)throw new TypeError("option encode is invalid");if(!q.test(e))throw new TypeError("argument name is invalid");var r=n(t);if(r&&!q.test(r))throw new TypeError("argument val is invalid");var a=e+"="+r;if(null!=i.maxAge){var l=i.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(l)}if(i.domain){if(!q.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain="+i.domain}if(i.path){if(!q.test(i.path))throw new TypeError("option path is invalid");a+="; Path="+i.path}if(i.expires){var s=i.expires;if(!function(e){return"[object Date]"===z.call(e)||e instanceof Date}(s)||isNaN(s.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+s.toUTCString()}i.httpOnly&&(a+="; HttpOnly");i.secure&&(a+="; Secure");if(i.priority){switch("string"==typeof i.priority?i.priority.toLowerCase():i.priority){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(i.sameSite){switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},z=Object.prototype.toString,q=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function X(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function $(e){return encodeURIComponent(e)}function Z(e,t){try{return t(e)}catch(t){return e}}var J={parse:Y,serialize:W},Q={BASE_API_PATH:"/",PROFILE:"profile?website_url={website_url}",SEARCH_USER:"profile/search?website_url={website_url}&name={name}",FETCH_PREVIEW:"fetch/preview?website_url={website_url}",FETCH_POST_OR_TOPIC:"fetch/{slug}?website_url={website_url}&community_slug={communitySlug}",POST:{LIST:"post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}",DETAIL_BY_ID_OR_SLUG:"post/{idSlug}?website_url={website_url}",CREATE:"post/create?website_url={website_url}",LIKE:"post/{id}/like?website_url={website_url}",DELETE:"post/{id}/delete?website_url={website_url}",REPORT:"post/{id}/report?website_url={website_url}",UPDATE:"post/{id}/update?website_url={website_url}",FOLLOW:"post/{id}/follow?website_url={website_url}",CREATE_ARTICLE_COMMENT:"article-comment/create?website_url={website_url}"},COMMENT:{LIST:"comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",CREATE:"comment/create?website_url={website_url}",REPLY:"comment/reply?website_url={website_url}",DELETE:"comment/{id}/delete?website_url={website_url}",LIKE:"comment/{id}/like?website_url={website_url}",UNLIKE:"comment/{id}/unlike?website_url={website_url}",IMAGE_UPLOAD:"comment/image/upload?website_url={website_url}"},COMMUNITY:{LIST:"community?website_url={website_url}&page={page}",DETAIL_BY_ID_OR_SLUG:"community/{idSlug}?website_url={website_url}",JOIN:"community/join?website_url={website_url}",LEAVE:"community/leave?website_url={website_url}"},TOPIC:{LIST:"topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}",DETAIL_BY_ID_OR_SLUG:"topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}",HEALTH_TOOLS:"tools?topic_id={topicId}&website_url={website_url}",SUBOTS:"subots?topic_id={topicId}&website_url={website_url}",SUGGESTED_POSTS:"suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}",JOIN:"topic/join?website_url={website_url}",LEAVE:"topic/leave?website_url={website_url}"},BOOKMARK:{LIST:"bookmark?user_id={userId}&website_url={website_url}",CREATE:"bookmark/create?website_url={website_url}",DELETE:"bookmark/delete?website_url={website_url}"},UPLOAD_IMAGE:"auth/comment/image/upload?website_url={website_url}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info"},ee={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},te=t.createContext({data:ee,action:{pushNotifications:function(e){return e},sanitizeFunction:function(e){return e}}});exports.GlobalData=ee;var oe={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},ie={"vi-VN":"marrybaby.vn"},ne=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",re=function(e){var t=exports.GlobalData.env.isMarryBaby;return"https://".concat(t?ie[e]:oe[e])},ae=function(e){var t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},le=function(t,o,i){var n="";i&&(n=Object.keys(i).map((function(e){return e+"="+i[e]})).join("&"));var r=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).togetherBaseApiUrl,a=void 0===r?"":r,l=m.default(t,e.__assign(e.__assign({},(null==o?void 0:o._locale)?{website_url:re(String(o._locale))}:{}),o));return l+="".concat(l.includes("?")?"&":"?").concat(n),a+"api/v1/"+ae(l)},se=function(e){return(null==e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"==typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e},ue=function(t,o,i,n){return void 0===n&&(n=!1),e.__awaiter(void 0,void 0,void 0,(function(){var r,a,l,s,u;return e.__generator(this,(function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),[4,fetch(n?t:(c=t,encodeURI(c).replace(/%5B/g,"[").replace(/%5D/g,"]")),e.__assign(e.__assign({method:o},se(i)),{headers:e.__assign({},null==i?void 0:i.headers)})).then((function(e){return e.json()}))];case 1:return(r=d.sent())?[2,r]:[3,3];case 2:return a=d.sent(),console.log(a),console.log({url:t,status:null===(l=null==a?void 0:a.response)||void 0===l?void 0:l.status,statusText:null===(s=null==a?void 0:a.response)||void 0===s?void 0:s.statusText}),[2,(null===(u=null==a?void 0:a.response)||void 0===u?void 0:u.data)||null];case 3:return[2,null]}var c}))}))},de=function(t,o,i,n){return e.__awaiter(void 0,void 0,void 0,(function(){var a,l,s,u;return e.__generator(this,(function(d){switch(d.label){case 0:return d.trys.push([0,3,,4]),a=J.parse(n||""),l=a[y],(s=l||r.getCookie(y))&&s.length?[4,fetch(t,e.__assign(e.__assign({method:o},se(i)),{headers:e.__assign({Authorization:"Bearer "+s},null==i?void 0:i.headers)})).then((function(e){return e.json()}))]:[3,2];case 1:if(u=d.sent())return[2,u];d.label=2;case 2:return[3,4];case 3:return d.sent(),[2,null];case 4:return[2,null]}}))}))};function ce(e,t,o){var i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),n=-1!==e.indexOf("?")?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+o+"$2"):e+n+t+"="+o}var _e,pe=function(e,t,o,i){return o&&t?"".concat(o,"-").concat(t):"".concat(p.default(e||"",{lower:!0,locale:i||ne}),"-").concat(t)},me=_.default.div(_e||(_e=e.__makeTemplateObject(["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n cursor: pointer;\n font-size: 20px;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 100%;\n height: 100%;\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: 1em;\n font-weight: bold;\n line-height: 1;\n }\n\n &[data-is-marrybaby='true'] {\n .avatar-default {\n background-color: ",";\n }\n }\n"],["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n cursor: pointer;\n font-size: 20px;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 100%;\n height: 100%;\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: 1em;\n font-weight: bold;\n line-height: 1;\n }\n\n &[data-is-marrybaby='true'] {\n .avatar-default {\n background-color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.secondaryBase}),(function(e){return e.theme.mbColors.pink}));exports.ADMIN_PATHS={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},exports.Avatar=function(i){var n=i.type,r=void 0===n?"square":n,a=i.size,l=i.avatarImg,s=i.avatarUrl,u=i.firstLetter,d=i.backgroundColor,_=i.onClick,p=i.style,m=i.className,g=i.isAmp,h=void 0!==g&&g,E=i.width,f=i.height,T=a?v[a]:void 0,b=t.useState(!1),A=b[0],y=b[1];t.useEffect((function(){if(s){var e=document.createElement("img");e.setAttribute("src",s),e.addEventListener("error",(function(){y(!0)}))}}),[s,y]);var O=(!s&&!l||A)&&u;return c.default.createElement(o.StyledAvatar,{style:e.__assign(e.__assign({},p),{"--size":!h&&T?T+"px":void 0,"--width-prop":E?E+"px":void 0,"--height-prop":f?f+"px":void 0,"--background-color":d}),"data-has-max":!(!E||!f),"data-avatar-type":r,onClick:_,className:m,avatarUrl:s,"data-is-amp":h,"data-custom-size":!!a},l,s&&!A&&c.default.createElement("img",{src:s}),O&&u)},exports.BEARER_TOKEN_COOKIE=y,exports.CARE_PATHS={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},exports.DEFAULT_AVATAR_IMG=f,exports.DEFAULT_IMG=T,exports.DISCOVER_PATHS={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",GET_HEALTH_TOOL_BABY_GROWTH_INFO:"health-tools/baby-growth-tracking/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},exports.DUE_DATE_FORMAT=E,exports.DefaultComponentGlobalContextData=ee,exports.HEALTH_TOOL_TYPE=b,exports.MAX_IMAGE_UPLOADS=20,exports.PATHS=Q,exports.Popup=function(e){var t=e.type,o=void 0===t?"lead":t,i=e.closeIcon,n=e.isOpen,r=void 0===n||n,a=e.onClose,l=e.children,s=e.className,u=void 0===s?"":s,d=e.enableAnimation,_=void 0===d||d;return c.default.createElement(c.default.Fragment,null,c.default.createElement(g,{"data-open":r,"data-type":o,"data-animation":_},c.default.createElement("div",{className:"".concat(u||""," popup-content")},!!i&&c.default.createElement("div",{className:"close-button",onClick:a},i),l)),c.default.createElement(h,{"data-open":r,onClick:a}))},exports.REPORT_REASON_MAP=I,exports.TogetherComponentGlobalContext=te,exports.TogetherComponentGlobalContextProvider=function(e){var o=e.locale,i=void 0===o?"vi-VN":o,n=e.children,r=e.userInfo,a=e.router,l=e.env,s=void 0===l?{isMarryBaby:!1,togetherBasePath:"/community"}:l,u=e.sanitizeFunction,d=void 0===u?function(e){return e}:u,_=e.pushNotifications,p=void 0===_?function(){return!1}:_,m=t.useState(),v=m[0],g=m[1];return exports.GlobalData={userInfo:r,locale:i,togetherUserId:v,router:a,env:s},t.useEffect((function(){(null==r?void 0:r.id)&&de(le(Q.PROFILE,{_locale:i}),"GET").then((function(e){var t;g(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)}))}),[null==r?void 0:r.id]),c.default.createElement(te.Provider,{value:{data:{userInfo:r,locale:i,togetherUserId:v,router:a,env:s},action:{pushNotifications:p,sanitizeFunction:d}}},n)},exports.UserAvatar=function(e){var o=e.className,i=e.isMarryBaby,n=e.style,r=e.avatar,a=e.username,l=t.useContext(te).data.env.isMarryBaby,s="boolean"==typeof i?i:l,u=t.useState(!1),d=u[0],_=u[1];return t.useEffect((function(){var e=new Image;e.onerror=function(){_(!0)},e.src=r}),[]),c.default.createElement(me,{"data-is-marrybaby":s,className:o,style:n},r&&!d?c.default.createElement("img",{loading:"lazy",src:r,className:"avatar",alt:"avatar",onError:function(){_(!0)}}):c.default.createElement("div",{className:"avatar avatar-default"},a&&(null==a?void 0:a.length)>0?a[0].toUpperCase():"A"))},exports.Z_INDEX=w,exports.callApi=ue,exports.callApiWithAdminAuth=function(t,o,i,n){return e.__awaiter(void 0,void 0,void 0,(function(){var a,l,s,u;return e.__generator(this,(function(d){switch(d.label){case 0:return d.trys.push([0,3,,4]),a=J.parse(n||""),l=a[O],(s=l||r.getCookie(O))&&s.length?[4,fetch(t,e.__assign(e.__assign({method:o},se(i)),{headers:e.__assign({Authorization:"Bearer "+s},null==i?void 0:i.headers)})).then((function(e){return e.json()}))]:[3,2];case 1:if(u=d.sent())return[2,u];d.label=2;case 2:return[3,4];case 3:return d.sent(),[2,null];case 4:return[2,null]}}))}))},exports.callApiWithAuth=de,exports.callApiWithOptionalAuth=function(t,o,i,n){return void 0===o&&(o="GET"),e.__awaiter(void 0,void 0,void 0,(function(){var a,l,s,u,d,c,_,p,m,v,g,h,E,f;return e.__generator(this,(function(T){switch(T.label){case 0:if(T.trys.push([0,7,,8]),a="string"==typeof t?t:t.url,l="string"==typeof t?t:t.backupUrl,s=J.parse(n||""),u=s[y],!(d=u||r.getCookie(y))||!d.length)return[3,5];T.label=1;case 1:return T.trys.push([1,3,,4]),[4,fetch(a,e.__assign(e.__assign({method:o},se(i)),{headers:e.__assign({Authorization:"Bearer "+d},null==i?void 0:i.headers)})).then((function(e){return e.json()}))];case 2:return c=T.sent(),(null===(m=null==c?void 0:c.messages)||void 0===m?void 0:m.find((function(e){return"Unauthenticated"===(null==e?void 0:e.toLowerCase())})))?[2,ue(l||a,o,i)]:c?[2,c]:[3,4];case 3:return _=T.sent(),console.log({status:null===(v=null==_?void 0:_.response)||void 0===v?void 0:v.status,statusText:null===(g=null==_?void 0:_.response)||void 0===g?void 0:g.statusText}),[2,ue(l||a,o,i)];case 4:return[3,6];case 5:return[2,ue(l||a,o,i)];case 6:return[3,8];case 7:return p=T.sent(),console.log({status:null===(h=null==p?void 0:p.response)||void 0===h?void 0:h.status,statusText:null===(E=null==p?void 0:p.response)||void 0===E?void 0:E.statusText}),[2,(null===(f=null==p?void 0:p.response)||void 0===f?void 0:f.data)||null];case 8:return[2,null]}}))}))},exports.constants=S,exports.dataTransform=j,exports.domainLocales=oe,exports.domainLocalesMarryBaby=ie,exports.formatComment=V,exports.formatCommunity=U,exports.formatOvulationInfo=F,exports.formatPost=H,exports.formatTopic=B,exports.formatUserProfileUrl=K,exports.getApiPath=le,exports.getCareDoctorUrl=function(e){var t,o=e.name,i=e.id,n=e.locale;return"/care/".concat(null===(t=L[n||"vi-VN"])||void 0===t?void 0:t.DOCTOR,"/").concat(pe(o,i))},exports.getCareHospitalUrl=function(e){var t,o=e.name,i=e.id,n=e.slug,r=e.locale;return"/care/".concat(null===(t=L[r||"vi-VN"])||void 0===t?void 0:t.HOSPITAL,"/").concat(pe(o,i,n))},exports.getCarePath=function(t,o){var i=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).careBaseApiUrl;return((void 0===i?"":i)||"https://service-health-care.hellohealthgroup.com/")+ae(m.default(t,e.__assign({},o)))},exports.getCurrentBaseUrl=function(e){var t=exports.GlobalData.env.isMarryBaby;if("undefined"!=typeof window)return window.location.origin;var o="staging"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return"development"===process.env.NEXT_PUBLIC_DEPLOY_ENV?"http://localhost:3000":"https://".concat(o?t?"fe.":"discover.":t?"www.":"").concat(oe[e])},exports.getDiscoverApiPath=function(t,o){var i=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).discoverBaseApiUrl;return(void 0===i?"":i)+"wp-json/api/"+ae(m.default(t,e.__assign({},o)))},exports.getUrlToSignUp=function(e,t,o){void 0===o&&(o="/community");var i=e||("undefined"!=typeof window?window.location.href:"/"),n="undefined"!=typeof window?window.location.origin:"";return n||e&&(e.startsWith("http://")||e.startsWith("https://"))&&(n=e.split("/").slice(0,3).join("/")),function(e,t){var o=exports.GlobalData.env.publicSSO,i=e||window.location.href;return t&&Object.keys(t).map((function(e){ce(i,e,t[e])})),ce(i,"source","communities"),o?"".concat(o,"?returnUrl=").concat(encodeURIComponent(i.toString())):i}("".concat(n).concat(o,"/on-boarding?return=").concat(encodeURIComponent(i)),t)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var a=require("./tslib.es6-deb1f62d.js");function e(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var t=e(require("react")),r="wIj6fkD";exports.Text=function(e){var s=e.size,d=void 0===s?"base":s,n=e.type,o=void 0===n?"regular":n,c=e.className,i=e.style,l=e.children,v=e.color,p=e.dataEventCategory,u=e.dataEventAction,y=e.dataEventLabel,f=e.as,_=void 0===f?"p":f,b=e.wordWrap,g=e.isUppercase,E=a.__rest(e,["size","type","className","style","children","color","dataEventCategory","dataEventAction","dataEventLabel","as","wordWrap","isUppercase"]),m=_;return t.default.createElement(m,a.__assign({"data-size":d,"data-type":o,style:a.__assign(a.__assign({},i),v?{"--custom-color":v}:void 0),className:"".concat(r," ").concat(c||""),"data-event-category":p,"data-event-action":u,"data-event-label":y,"data-word-wrap":b,"data-is-uppercase":g},E),l)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-deb1f62d.js"),t=require("react"),r=require("./index-029aa1de.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(t);exports.MarryBabyHeading=function(t){var a=t.type,l=t.color,n=t.style,i=e.__rest(t,["type","color","style"]);return s.default.createElement(r.StyledHeading,e.__assign({type:a,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[a],style:e.__assign(e.__assign({},l&&{"--text-color":l}),n)},i))},exports.MarryBabyText=function(t){var a=t.type,l=t.color,n=t.style,i=e.__rest(t,["type","color","style"]);return s.default.createElement(r.StyledText,e.__assign({"data-type":a,style:e.__assign(e.__assign({},n),l&&{"--text-color":l})},i))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./tslib.es6-deb1f62d.js"),t=require("react"),n=require("@mantine/core"),s=require("@mantine/hooks"),o=require("./gAssets.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(t),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var u=n.createEmotionCache({key:"mantine",prepend:!1}),l=o.CommonGAssets.getAssetPath("EyeVisible.svg"),c=o.CommonGAssets.getAssetPath("EyeHidden.svg"),f=t.forwardRef((function(t,s){var o=t.size,r=void 0===o?"md":o,i=t.visibilityToggleIcon,u=t.styles,f=e.__rest(t,["size","visibilityToggleIcon","styles"]),d=i||function(e){var t=e.reveal,n=e.size;return t?a.default.createElement("img",{src:l,width:n}):a.default.createElement("img",{src:c,width:n})};return a.default.createElement(n.PasswordInput,e.__assign({ref:s,size:r,visibilityToggleIcon:d,styles:e.__assign({rightSection:{pointerEvents:"initial"}},u)},f,{className:"input-control ".concat((null==f?void 0:f.className)||"")}))})),d=function(o){var r=o.value,i=o.onChange,u=o.onChangeRaw,l=e.__rest(o,["value","onChange","onChangeRaw"]),c=t.useState(r||""),f=c[0],d=c[1],m=s.useDebouncedValue(f,300)[0];return t.useEffect((function(){null==i||i(m)}),[m]),t.useEffect((function(){d(r)}),[r]),a.default.createElement(n.TextInput,e.__assign({size:"md",onChange:function(e){null==u||u(e),d(e.currentTarget.value)},value:f},l,{className:"input-control ".concat((null==l?void 0:l.className)||"")}))};d.File=function(t){return a.default.createElement(n.FileInput,e.__assign({size:"md"},t))},d.Password=f,d.Number=function(o){var r=o.value,i=o.onChange,u=e.__rest(o,["value","onChange"]),l=t.useState(r||0),c=l[0],f=l[1],d=s.useDebouncedValue(c,300)[0];return t.useEffect((function(){null==i||i(d)}),[d]),t.useEffect((function(){f(r)}),[r]),a.default.createElement(n.NumberInput,e.__assign({size:"md",stepHoldDelay:500,stepHoldInterval:function(e){return Math.max(1e3/Math.pow(e,2),25)},onChange:f,hideControls:!0,min:0,formatter:function(e){return 0===Number(e)?e:e||""},removeTrailingZeros:!0,value:c},u))},d.Wrapper=n.Input.Wrapper,exports.DEBOUNCED_TIME=300,exports.Input=d,exports.PasswordInput=f,exports.commonjsGlobal=i,exports.createCommonjsModule=function(e){var t={exports:{}};return e(t,t.exports),t.exports},exports.emotionCache=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-deb1f62d.js"),n=require("react"),r=require("@mantine/carousel"),t=require("@mantine/hooks");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=l(n),u=r.Carousel.Slide,o=n.createContext({}),c=function(e,n){return e>=n?e-n:e},a=function(l){var u=l.children,a=l.blurFromCenter,d=l.blurFromIndex,s=l.blurLength,f=void 0===s?3:s,v=l.maxBlurOpacity,h=void 0===v?.5:v,p=l.onSlideChange,x=l.selectSlideWhenClick,S=e.__rest(l,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]),g=t.useResizeObserver(),b=g[0],m=g[1],C=n.useRef(null),y=n.useState(0),k=y[0],E=y[1],_=function(){var e,n,r,t=null===(e=null==C?void 0:C.current)||void 0===e?void 0:e.selectedScrollSnap();E(t);var l=(null===(n=null==C?void 0:C.current)||void 0===n?void 0:n.slideNodes())||[],i=l.length,u=(null===(r=null==C?void 0:C.current)||void 0===r?void 0:r.slidesInView()).length,o=Math.floor(u/2),s=a?d+f-1:o,v=t+s,p=v===i?0:v>i?v-i:v,x=t-s,S=x<0?i+x:x>0?t-s:0,g=Array(2*s+1).fill("").map((function(e,n){return c(S+n,i)}));l.map((function(e,n){if(n===t?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==g.indexOf(n))for(var r=h/f,l=0;l<f;l++){if(n===c(S+l,i)||n===(o=i,(u=p-l)<0?o+u:u)){e.style.opacity=String((l+1)*r);break}e.style.opacity="1"}else e.style.opacity="0";var u,o}))},w={getEmblaApi:function(e){C.current=e},onSlideChange:function(e){_(),null==p||p(e)}};return n.useEffect((function(){(null==C?void 0:C.current)&&_()}),[m]),i.default.createElement(o.Provider,{value:{slider:null==C?void 0:C.current,centerSlide:k,selectSlideWhenClick:x}},i.default.createElement(r.Carousel,e.__assign({ref:b,slideSize:"auto",containScroll:"trimSnaps"},w,S,{loop:!0}),"function"==typeof u?u(k):u))};a.Slide=function(r){var t=r.children,l=r.onClick,c=e.__rest(r,["children","onClick"]),a=n.useContext(o),d=a.slider,s=a.selectSlideWhenClick,f=n.useRef(),v=n.useRef(""),h=n.useState(0),p=h[0],x=h[1];n.useEffect((function(){v.current=String(Math.round(1e4*Math.random()))}),[]),n.useEffect((function(){var e=(null==d?void 0:d.slideNodes())||[];x(e.findIndex((function(e){return e.dataset.key===v.current})))}),[d]);var S={ref:f,"data-key":v.current,"data-index":p,styles:function(){return{control:{width:"40px",height:"40px",border:0,background:"white",boxShadow:"rgb(0 0 0 / 4%) 0px 10px 16px, rgb(0 0 0 / 4%) 0px 2px 8px, rgb(0 0 0 / 4%) 0px 0px 1px",svg:{width:"20px",height:"20px"}}}}};return i.default.createElement(u,e.__assign({},S,c),i.default.createElement("div",{onClick:function(){s&&(null==d||d.scrollTo(p)),null==l||l(p)}},t))},exports.CentralCarousel=a;
|