@hhgtech/hhg-components 1.28.49 → 1.28.52
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/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/button/index.d.ts +2 -2
- package/build/components/atoms/heading/index.d.ts +6 -2
- package/build/components/mantine/button/index.d.ts +1 -1
- package/build/components/mantine/button/index.styles.d.ts +1 -0
- package/build/components/mantine/theme/index.d.ts +1 -1
- package/build/components/mantine/theme/other.d.ts +2 -2
- package/build/components/mantine/theme/text.d.ts +24 -0
- package/build/components/navigationV2/components/atoms/searchInput/index.d.ts +3 -1
- package/build/components.js +1 -1
- package/build/{constants-00eb6917.js → constants-3b2f5e8e.js} +1 -1
- package/build/{constants-e409af9b.js → constants-f9687cf0.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-ea7ee018.js → core-e01ef9ea.js} +1 -1
- package/build/{dataTransform-ec201d50.js → dataTransform-6ad85f6e.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/button/index.d.ts +2 -2
- package/build/esm/components/atoms/heading/index.d.ts +6 -2
- package/build/esm/components/mantine/button/index.d.ts +1 -1
- package/build/esm/components/mantine/button/index.styles.d.ts +1 -0
- package/build/esm/components/mantine/theme/index.d.ts +1 -1
- package/build/esm/components/mantine/theme/other.d.ts +2 -2
- package/build/esm/components/mantine/theme/text.d.ts +24 -0
- package/build/esm/components/navigationV2/components/atoms/searchInput/index.d.ts +3 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-0c5e9437.js → constants-c6066928.js} +1 -1
- package/build/esm/{constants-f262fdad.js → constants-fe63add8.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-0ea997b2.js → core-ccd629d3.js} +1 -1
- package/build/esm/{dataTransform-ce088cfb.js → dataTransform-96453680.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-a587f058.js +1 -0
- package/build/esm/{getSocialList-1b0bdd8a.js → getSocialList-af186eb2.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/index-07642663.js +113 -0
- package/build/esm/{index-d26d0482.js → index-181b15e4.js} +170 -170
- package/build/esm/{index-3f24fd41.js → index-18312c77.js} +1 -1
- package/build/esm/{index-e5ca10f5.js → index-2ce0f601.js} +1 -1
- package/build/esm/{index-9d0c6353.js → index-3948b7d3.js} +1 -1
- package/build/esm/{index-81d1a3ea.js → index-43bdd87c.js} +1 -1
- package/build/esm/index-45effb56.js +1 -0
- package/build/esm/{index-b55d97ab.js → index-476a3102.js} +2 -2
- package/build/esm/{index-9ccb4430.js → index-49c031a5.js} +1 -1
- package/build/esm/index-4e8cc919.js +1 -0
- package/build/esm/{index-4b2d0830.js → index-554b1cd1.js} +1 -1
- package/build/esm/index-5a5c9c97.js +1 -0
- package/build/esm/index-5b20d474.js +1 -0
- package/build/esm/{index-b36dd213.js → index-5dc6c742.js} +1 -1
- package/build/esm/{index-4942221e.js → index-66616e4b.js} +3 -3
- package/build/esm/{index-38864a87.js → index-6b2fd48c.js} +1 -1
- package/build/esm/index-a16bbcaf.js +1 -0
- package/build/esm/{index-a4441d0b.js → index-a251d363.js} +1 -1
- package/build/esm/index-ac8493ba.js +1 -0
- package/build/esm/{index-d0c5dfee.js → index-c881d3d5.js} +4 -4
- package/build/esm/{index-4a948104.js → index-d5bc103a.js} +1 -1
- package/build/esm/{index-4ab0d69b.js → index-dda3b367.js} +1 -1
- package/build/esm/{index-138b5792.js → index-f507fed8.js} +1 -1
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-37a324c2.js → index.styled-2328fb7a.js} +3 -3
- package/build/esm/{index.styles-8be9760e.js → index.styles-e7929b94.js} +25 -25
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +1 -1
- package/build/esm/pwg.js +1 -1
- package/build/esm/{routing-6fcf3a59.js → routing-f581c669.js} +1 -1
- package/build/esm/subot.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-2f73c062.js → types-61f94e93.js} +22 -22
- package/build/esm/{types-81f48145.js → types-e5b7a76b.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-a6513a7e.js → useCategory-28d8f160.js} +1 -1
- package/build/esm/useHealthToolCache-2de393ef.js +1 -0
- package/build/esm/usePlacesAutocomplete-2603d6fb.js +1 -0
- package/build/esm/{useTranslations-b7d4a160.js → useTranslations-fd222d54.js} +1 -1
- package/build/esm/{utils-547d93ca.js → utils-0e7190da.js} +1 -1
- package/build/esm/{utils-36e3bf71.js → utils-8aeea206.js} +1 -1
- package/build/esm/{utils-b8dbc87d.js → utils-91e7084f.js} +2 -2
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-297c8604.js → getDynamicHealthTool-f5d686dc.js} +1 -1
- package/build/{getSocialList-ce1e33c4.js → getSocialList-492b150f.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/index-0a530be7.js +113 -0
- package/build/{index-95f2568e.js → index-2390697f.js} +1 -1
- package/build/{index-67b9453a.js → index-2a59f23a.js} +4 -4
- package/build/{index-05aa21dd.js → index-3905cc48.js} +1 -1
- package/build/{index-992473c0.js → index-4b66a91e.js} +1 -1
- package/build/{index-11d1af06.js → index-575d64b9.js} +1 -1
- package/build/index-647b2e7d.js +1 -0
- package/build/{index-f79fe272.js → index-7a0d8237.js} +4 -4
- package/build/{index-ad733c52.js → index-815edd02.js} +1 -1
- package/build/{index-1a06bea6.js → index-9774fbc6.js} +1 -1
- package/build/{index-e417cb6d.js → index-98bb9bd3.js} +1 -1
- package/build/{index-7d326d6a.js → index-9e5cea4a.js} +1 -1
- package/build/{index-0b364983.js → index-ae975157.js} +2 -2
- package/build/{index-8c1a5431.js → index-b529a332.js} +1 -1
- package/build/index-b71352f1.js +1 -0
- package/build/{index-d8623459.js → index-c75cc530.js} +1 -1
- package/build/{index-7c707c86.js → index-cc20d115.js} +1 -1
- package/build/index-d9b9827c.js +1 -0
- package/build/{index-b6b058b9.js → index-e5bef191.js} +1 -1
- package/build/index-e5deef91.js +1 -0
- package/build/{index-c97c557f.js → index-ec752f1b.js} +17 -17
- package/build/{index-413276e5.js → index-f0d486b7.js} +1 -1
- package/build/index-febbdc87.js +1 -0
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-35de73b7.js → index.styled-58256ebd.js} +1 -1
- package/build/{index.styles-d7c56999.js → index.styles-f0c0a48c.js} +45 -45
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-88ae6957.js → routing-e50153f1.js} +1 -1
- package/build/subot.js +1 -1
- package/build/together.js +1 -1
- package/build/{types-031b639a.js → types-41c9b282.js} +1 -1
- package/build/{types-d8366bd5.js → types-9e78999b.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-cfb3af1d.js → useCategory-759f7c44.js} +1 -1
- package/build/useHealthToolCache-dc952260.js +1 -0
- package/build/{usePlacesAutocomplete-f9a6c313.js → usePlacesAutocomplete-5c7a5c3c.js} +1 -1
- package/build/{useTranslations-053501b7.js → useTranslations-b7e3bbe6.js} +1 -1
- package/build/{utils-94f8c3bb.js → utils-7627e021.js} +1 -1
- package/build/{utils-b432bb60.js → utils-7aab9ad0.js} +1 -1
- package/build/{utils-b79c27a6.js → utils-c2a4f934.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/esm/getDynamicHealthTool-4e566eb5.js +0 -1
- package/build/esm/index-198fd08e.js +0 -1
- package/build/esm/index-491ee5f4.js +0 -1
- package/build/esm/index-696ca464.js +0 -1
- package/build/esm/index-a5b9597b.js +0 -1
- package/build/esm/index-ba2430f8.js +0 -1
- package/build/esm/index-c93ec607.js +0 -113
- package/build/esm/index-cde509fa.js +0 -1
- package/build/esm/useHealthToolCache-a9f5329f.js +0 -1
- package/build/esm/usePlacesAutocomplete-a4df5390.js +0 -1
- package/build/index-623655d2.js +0 -1
- package/build/index-62c61507.js +0 -1
- package/build/index-77dbd11f.js +0 -113
- package/build/index-7cf403fc.js +0 -1
- package/build/index-abe62dd3.js +0 -1
- package/build/index-ff2a7724.js +0 -1
- package/build/useHealthToolCache-37fe2176.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-72dd9d36.js → BMI_BOYS.percentile.monthly-845b8ed0.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-4ba21d56.js → BMI_BOYS.percentile.weekly-3342befe.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-ee912baa.js → BMI_BOYS.percentile.yearly-fdf0c097.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b58b2d31.js → BMI_BOYS.zscore.monthly-f941d04a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-f6f5fbe0.js → BMI_BOYS.zscore.weekly-1524af2c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-d63bdbc4.js → BMI_BOYS.zscore.yearly-9943d421.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-ec7dbe18.js → BMI_GIRLS.percentile.monthly-a289961d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-9bd192c8.js → BMI_GIRLS.percentile.weekly-761a43d7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-e07456dd.js → BMI_GIRLS.percentile.yearly-01e81905.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-76b385ee.js → BMI_GIRLS.zscore.monthly-cdb33820.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-53a86183.js → BMI_GIRLS.zscore.weekly-1bf21df2.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-a97d0070.js → BMI_GIRLS.zscore.yearly-a824bceb.js} +0 -0
- /package/build/{ChevronDown-6bcccd07.js → ChevronDown-224f298e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-da53eed7.js → HEAD CIRCUM_BOYS.percentile.monthly-9c53519e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-36dba3d1.js → HEAD CIRCUM_BOYS.percentile.weekly-6fc3b9ca.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-8284c1e0.js → HEAD CIRCUM_BOYS.percentile.yearly-873b1e54.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a4266394.js → HEAD CIRCUM_BOYS.zscore.monthly-e290d966.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-131c0e35.js → HEAD CIRCUM_BOYS.zscore.weekly-90e50c31.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-29b76c14.js → HEAD CIRCUM_BOYS.zscore.yearly-0b18e126.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-66a0d840.js → HEAD CIRCUM_GIRLS.percentile.monthly-d15289db.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-be38297f.js → HEAD CIRCUM_GIRLS.percentile.weekly-eb43dced.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-dbda2d07.js → HEAD CIRCUM_GIRLS.percentile.yearly-e3bd2d6e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-4dd1fd89.js → HEAD CIRCUM_GIRLS.zscore.monthly-13585278.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-f8bb0ae2.js → HEAD CIRCUM_GIRLS.zscore.weekly-77c728ae.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-1aaaf2e0.js → HEAD CIRCUM_GIRLS.zscore.yearly-3ab7cabb.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-f1451664.js → HEIGHT_BOYS.percentile.monthly-d49b36f8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-f7201500.js → HEIGHT_BOYS.percentile.weekly-bf8fe78c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-c62f29a6.js → HEIGHT_BOYS.percentile.yearly-f195c772.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-ef88cdbc.js → HEIGHT_BOYS.zscore.monthly-2addd8bf.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-cc7a465e.js → HEIGHT_BOYS.zscore.weekly-f7a1cdae.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-12fcf09b.js → HEIGHT_BOYS.zscore.yearly-6f66cb57.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-464d9a63.js → HEIGHT_GIRLS.percentile.monthly-190e5042.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-c1ee7ef2.js → HEIGHT_GIRLS.percentile.weekly-ed1a85f6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-05b92597.js → HEIGHT_GIRLS.percentile.yearly-2bc8a013.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-364fc3f9.js → HEIGHT_GIRLS.zscore.monthly-8bf36f8c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-cf345537.js → HEIGHT_GIRLS.zscore.weekly-fbbd247c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-bfa97a60.js → HEIGHT_GIRLS.zscore.yearly-a8a4ce4b.js} +0 -0
- /package/build/{Subot-5e94dc84.js → Subot-e4dc9853.js} +0 -0
- /package/build/{Visible-d0b55372.js → Visible-281b4cd4.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-a1044456.js → WEIGHT_BOYS.percentile.monthly-a344333c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-f3263998.js → WEIGHT_BOYS.percentile.weekly-b65da8b2.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-620641f6.js → WEIGHT_BOYS.percentile.yearly-13ea17b1.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-cdef160c.js → WEIGHT_BOYS.zscore.monthly-2357da35.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-80221a45.js → WEIGHT_BOYS.zscore.weekly-ad48d16f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-080e164b.js → WEIGHT_BOYS.zscore.yearly-06b335f5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5d930c98.js → WEIGHT_GIRLS.percentile.monthly-010d079d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-05cc5075.js → WEIGHT_GIRLS.percentile.weekly-c3d0ebcc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-c02e014a.js → WEIGHT_GIRLS.percentile.yearly-078e1dc2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4fc25a03.js → WEIGHT_GIRLS.zscore.monthly-1d9c2d16.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-95a9936f.js → WEIGHT_GIRLS.zscore.weekly-e111b608.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-7820b9d5.js → WEIGHT_GIRLS.zscore.yearly-ddb47ed0.js} +0 -0
- /package/build/{animation-0b12f69c.js → animation-c4266352.js} +0 -0
- /package/build/{cookieHelper-27fb2f4f.js → cookieHelper-1d47a774.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-ef9e6f06.js → BMI_BOYS.percentile.monthly-8b256c59.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-9ce890fd.js → BMI_BOYS.percentile.weekly-43e72903.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-9a66add9.js → BMI_BOYS.percentile.yearly-1a1e1ada.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-8b2dbe70.js → BMI_BOYS.zscore.monthly-166071d1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-03bc653d.js → BMI_BOYS.zscore.weekly-036ceb3b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-15e1555d.js → BMI_BOYS.zscore.yearly-cd872fac.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-8a6f031e.js → BMI_GIRLS.percentile.monthly-f70254dc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-1e740ffb.js → BMI_GIRLS.percentile.weekly-bde5fa74.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-d412b15d.js → BMI_GIRLS.percentile.yearly-126c8cb1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-a73a69e1.js → BMI_GIRLS.zscore.monthly-b3c1a61c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-2d95c18a.js → BMI_GIRLS.zscore.weekly-674e88da.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-3674ad67.js → BMI_GIRLS.zscore.yearly-fc23f19e.js} +0 -0
- /package/build/esm/{ChevronDown-2eea80bb.js → ChevronDown-349b66e5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-87b98a1c.js → HEAD CIRCUM_BOYS.percentile.monthly-a30d692f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-3a2b0ed8.js → HEAD CIRCUM_BOYS.percentile.weekly-8ac93b82.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-75831c10.js → HEAD CIRCUM_BOYS.percentile.yearly-c4c0cc12.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-744cbfa3.js → HEAD CIRCUM_BOYS.zscore.monthly-2fba66f1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-7d7140d0.js → HEAD CIRCUM_BOYS.zscore.weekly-96109964.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-087469e3.js → HEAD CIRCUM_BOYS.zscore.yearly-afac98af.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-e448752c.js → HEAD CIRCUM_GIRLS.percentile.monthly-a2886ad5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-eba34173.js → HEAD CIRCUM_GIRLS.percentile.weekly-460cf75a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-198742ce.js → HEAD CIRCUM_GIRLS.percentile.yearly-5c5022c4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-44ab5598.js → HEAD CIRCUM_GIRLS.zscore.monthly-19c69286.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-cfab749b.js → HEAD CIRCUM_GIRLS.zscore.weekly-ce3a479d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b7bcd7b8.js → HEAD CIRCUM_GIRLS.zscore.yearly-85ba11b3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-5f26b470.js → HEIGHT_BOYS.percentile.monthly-f5f735f8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-86fe3770.js → HEIGHT_BOYS.percentile.weekly-19776264.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-20b03a84.js → HEIGHT_BOYS.percentile.yearly-203f160e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-6c9748ff.js → HEIGHT_BOYS.zscore.monthly-e4f265f6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-ca75b3dc.js → HEIGHT_BOYS.zscore.weekly-62661157.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-a382f2a5.js → HEIGHT_BOYS.zscore.yearly-01770cb8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-6cf5a5d3.js → HEIGHT_GIRLS.percentile.monthly-e3eadfe6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-8ad0bb3c.js → HEIGHT_GIRLS.percentile.weekly-9becad9b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-116699be.js → HEIGHT_GIRLS.percentile.yearly-2e895e83.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ab3c471c.js → HEIGHT_GIRLS.zscore.monthly-ea02ec73.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-c98a8fae.js → HEIGHT_GIRLS.zscore.weekly-4d8b6514.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c3850f8e.js → HEIGHT_GIRLS.zscore.yearly-24d79e04.js} +0 -0
- /package/build/esm/{Subot-46c8b66e.js → Subot-8e9ad7eb.js} +0 -0
- /package/build/esm/{Visible-bb443a50.js → Visible-77880c27.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-2643a2db.js → WEIGHT_BOYS.percentile.monthly-57d372a9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-8e6f7bf3.js → WEIGHT_BOYS.percentile.weekly-0b68d02e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-1c75479d.js → WEIGHT_BOYS.percentile.yearly-788d89fc.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-798acbba.js → WEIGHT_BOYS.zscore.monthly-3d3ee2b3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-2ee812a6.js → WEIGHT_BOYS.zscore.weekly-7cca2662.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-9c9eedab.js → WEIGHT_BOYS.zscore.yearly-8fc5730d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-1b0a4bd2.js → WEIGHT_GIRLS.percentile.monthly-280c90fc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3571400e.js → WEIGHT_GIRLS.percentile.weekly-1aba336e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-1fa58117.js → WEIGHT_GIRLS.percentile.yearly-91c9001f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b1e7b0b6.js → WEIGHT_GIRLS.zscore.monthly-c8614a68.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-eef09ecf.js → WEIGHT_GIRLS.zscore.weekly-6aeb9f4c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-b5740f73.js → WEIGHT_GIRLS.zscore.yearly-53ebaf01.js} +0 -0
- /package/build/esm/{animation-1598cf15.js → animation-6b2b7dab.js} +0 -0
- /package/build/esm/{cookieHelper-16653e64.js → cookieHelper-69ff265e.js} +0 -0
- /package/build/esm/{index-5f71fc29.js → index-910db9f6.js} +0 -0
- /package/build/esm/{index-c4af839e.js → index-9c8c45f9.js} +0 -0
- /package/build/esm/{index-408a335e.js → index-dc2203ea.js} +0 -0
- /package/build/esm/{isProduction-6af4d2ac.js → isProduction-09caa686.js} +0 -0
- /package/build/esm/{localizeNumberFormat-69715560.js → localizeNumberFormat-0588f8cc.js} +0 -0
- /package/build/esm/{normalizeLink-78ac13e0.js → normalizeLink-22992e53.js} +0 -0
- /package/build/esm/{number-509ae36f.js → number-c598edcf.js} +0 -0
- /package/build/esm/{paths-c018124d.js → paths-3a59da5a.js} +0 -0
- /package/build/esm/{theme-1fc9bf92.js → theme-e2f5082a.js} +0 -0
- /package/build/esm/{translationsContext-05a6ebf7.js → translationsContext-d98f0db3.js} +0 -0
- /package/build/esm/{tslib.es6-03e2d67c.js → tslib.es6-29beeaba.js} +0 -0
- /package/build/esm/{types-30b992fc.js → types-7c839811.js} +0 -0
- /package/build/esm/{useIsInit-9c33a9d8.js → useIsInit-25be298b.js} +0 -0
- /package/build/esm/{useOutsideClick-d9a01b05.js → useOutsideClick-324cf9cc.js} +0 -0
- /package/build/esm/{useScrollbarSize-d69893c7.js → useScrollbarSize-97c7c3b1.js} +0 -0
- /package/build/esm/{utils-288ca0db.js → utils-0212f8af.js} +0 -0
- /package/build/{index-5775ebcd.js → index-68a90371.js} +0 -0
- /package/build/{index-47258f9a.js → index-7318d380.js} +0 -0
- /package/build/{index-7abb70e0.js → index-94496153.js} +0 -0
- /package/build/{isProduction-2bcc92a8.js → isProduction-81b72bf2.js} +0 -0
- /package/build/{localizeNumberFormat-e2f08e55.js → localizeNumberFormat-f22141ef.js} +0 -0
- /package/build/{normalizeLink-234ec40a.js → normalizeLink-a8042801.js} +0 -0
- /package/build/{number-41fc3a29.js → number-70b95624.js} +0 -0
- /package/build/{paths-4bb6c34d.js → paths-f4ff7484.js} +0 -0
- /package/build/{theme-445ed9a5.js → theme-568c5c71.js} +0 -0
- /package/build/{translationsContext-202c33d1.js → translationsContext-4d2756ea.js} +0 -0
- /package/build/{tslib.es6-6efd1b76.js → tslib.es6-0151ae97.js} +0 -0
- /package/build/{types-e9c2fd69.js → types-227a5904.js} +0 -0
- /package/build/{useIsInit-23edb76e.js → useIsInit-a38277ab.js} +0 -0
- /package/build/{useOutsideClick-adadb7b1.js → useOutsideClick-c18d50d4.js} +0 -0
- /package/build/{useScrollbarSize-0dca0252.js → useScrollbarSize-3847391c.js} +0 -0
- /package/build/{utils-38a04ad0.js → utils-dbb28536.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useContext as i,useState as t}from"react";import{M as o}from"./utils-
|
|
1
|
+
import e,{useContext as i,useState as t}from"react";import{M as o}from"./utils-0212f8af.js";import l from"styled-components";import{t as n}from"./theme-e2f5082a.js";import{_ as a}from"./tslib.es6-29beeaba.js";import{T as r}from"./utils-91e7084f.js";const d=l.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 50%;
|
|
4
4
|
|
|
@@ -81,7 +81,7 @@ import e,{useContext as i,useState as t}from"react";import{M as o}from"./utils-2
|
|
|
81
81
|
&[data-open='false'] {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
84
|
-
`,u=({type:i="lead",closeIcon:t,isOpen:o=!0,onClose:l,children:n,className:a="",enableAnimation:r=!0})=>e.createElement(e.Fragment,null,e.createElement(d,{"data-open":o,"data-type":i,"data-animation":r},e.createElement("div",{className:`${a||""} popup-content`},!!t&&e.createElement("div",{className:"close-button",onClick:l},t),n)),e.createElement(s,{"data-open":o,onClick:l})),m=e=>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||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},v=e=>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}:{},c=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,p=e=>{if(!e)return{};const{button_text:i,button_url:t,status:o,banner_desktop:l,banner_mobile:n}=e,r=a(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(o),bannerDesktop:l||"",bannerMobile:n||""},r)},_={EN:"English",FIL:"Filipino"},g=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in _?_[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),y=e=>{var i,t,o,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?b(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:m(e.author),reviewer:e.reviewed_by&&m(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:f(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:f(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.editor),expert:f(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.expert),fact_check:f(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:w(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(w),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:v(e.expert),metaTag:e.meta_tag||null,spotlight:c(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:g(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:w(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:m(e.edit_last),subscriptionBanner:p(e.subscription_banner)}:{}},f=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,b=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},h=e=>({postTitle:e.post_title,permalink:e.permalink}),w=e=>{var i,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?b(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===(i=e.child_cates)||void 0===i?void 0:i.map((e=>w(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(t=e.cat_parent)||void 0===t?void 0:t.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?h(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>k(e))):null}:{}},k=e=>({title:e.title,content:e.content}),x=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},I=e=>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)}:{},C=e=>{var i,t,o,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.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===(t=e.community)||void 0===t?void 0:t.id),communitySlug:null===(o=e.community)||void 0===o?void 0:o.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.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)}:{}},S=e=>e?{answer:null==e?void 0:e.answer.map(A),expert:null==e?void 0:e.expert}:{},T=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,h,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var t,o,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+i.slug,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(t=e.community)||void 0===t?void 0:t.id)||0,name:(null===(o=e.community)||void 0===o?void 0:o.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.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,isAskDoctor:e.is_question?1:0,expertAnswer:S(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},A=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,h,w,k,x,I,C,S,T,B,D,j,N,P;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(A):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(t=e.user)||void 0===t?void 0:t.user_name)||"",name:(null===(o=e.user)||void 0===o?void 0:o.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(k=null===(w=e.mentioned)||void 0===w?void 0:w.role)||void 0===k?void 0:k.toLowerCase():"",avatar:(null===(x=e.mentioned)||void 0===x?void 0:x.avatar)||"",type:(null===(I=e.mentioned)||void 0===I?void 0:I.type)||"",email:(null===(C=e.mentioned)||void 0===C?void 0:C.email)||"",partnerId:(null===(S=e.mentioned)||void 0===S?void 0:S.partner_id)?String(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.doctor_id):"",hospitalId:(null===(j=e.mentioned)||void 0===j?void 0:j.hospital_id)?String(null===(N=e.mentioned)||void 0===N?void 0:N.hospital_id):"",title:(null===(P=e.mentioned)||void 0===P?void 0:P.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},B=e=>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/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var D=Object.freeze({__proto__:null,formatAuthor:m,formatArticleExpert:v,formatSpotlightsSummary:c,TRANSLATE_LANGUAGES:_,formatTranslateOptions:g,formatArticle:y,formatUserProfile:f,formatBMIResult:e=>{var i,t,o,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(t=null==e?void 0:e.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(o=null==e?void 0:e.risk)&&void 0!==o?o:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:b,formatReviewedCategory:h,formatCategory:w,formatCategoryApi:e=>e?{categoryInfo:w(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(y),subCategories:(e.data.sub_categories||[]).map(w)}:{},formatFaqsCategory:k,formatHealthTool:x,formatHealthToolTypeCategory:e=>{var i,t;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(t=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>x(e))))&&void 0!==t?t:[]}:{}},formatCommunity:I,formatTopic:C,formatExpertAnswer:S,formatPost:T,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,t,o;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(t=e.from_user)||void 0===t?void 0:t.id,avatar:null===(o=e.from_user)||void 0===o?void 0:o.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:e=>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}:{},formatSuggestedArticle:e=>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:e=>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:A,formatReportedPostToPostDetail:e=>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:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:B,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,t,o;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(t=e.reviewed_by)||void 0===t?void 0:t.display_name)||(null===(o=e.reviewed_by)||void 0===o?void 0:o.name)||"",date:e.reviewed_date||"",link:B(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||""}:{}}});const j=l.div`
|
|
84
|
+
`,u=({type:i="lead",closeIcon:t,isOpen:o=!0,onClose:l,children:n,className:a="",enableAnimation:r=!0})=>e.createElement(e.Fragment,null,e.createElement(d,{"data-open":o,"data-type":i,"data-animation":r},e.createElement("div",{className:`${a||""} popup-content`},!!t&&e.createElement("div",{className:"close-button",onClick:l},t),n)),e.createElement(s,{"data-open":o,onClick:l})),m=e=>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||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},v=e=>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}:{},p=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,c=e=>{if(!e)return{};const{button_text:i,button_url:t,status:o,banner_desktop:l,banner_mobile:n}=e,r=a(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(o),bannerDesktop:l||"",bannerMobile:n||""},r)},_={EN:"English",FIL:"Filipino"},g=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in _?_[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),y=e=>{var i,t,o,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?b(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:m(e.author),reviewer:e.reviewed_by&&m(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:f(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:f(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.editor),expert:f(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.expert),fact_check:f(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:w(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(w),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:v(e.expert),metaTag:e.meta_tag||null,spotlight:p(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:g(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:w(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:m(e.edit_last),subscriptionBanner:c(e.subscription_banner)}:{}},f=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,b=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},h=e=>({postTitle:e.post_title,permalink:e.permalink}),w=e=>{var i,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?b(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===(i=e.child_cates)||void 0===i?void 0:i.map((e=>w(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(t=e.cat_parent)||void 0===t?void 0:t.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?h(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>k(e))):null}:{}},k=e=>({title:e.title,content:e.content}),x=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},I=e=>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)}:{},C=e=>{var i,t,o,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.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===(t=e.community)||void 0===t?void 0:t.id),communitySlug:null===(o=e.community)||void 0===o?void 0:o.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.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)}:{}},S=e=>e?{answer:null==e?void 0:e.answer.map(A),expert:null==e?void 0:e.expert}:{},T=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,p,c,_,g,y,f,b,h,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var t,o,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+i.slug,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(t=e.community)||void 0===t?void 0:t.id)||0,name:(null===(o=e.community)||void 0===o?void 0:o.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(p=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===p?void 0:p.toLowerCase():"",type:(null===(c=e.user)||void 0===c?void 0:c.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.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,isAskDoctor:e.is_question?1:0,expertAnswer:S(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},A=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,p,c,_,g,y,f,b,h,w,k,x,I,C,S,T,B,D,j,N,P;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(A):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(t=e.user)||void 0===t?void 0:t.user_name)||"",name:(null===(o=e.user)||void 0===o?void 0:o.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(p=e.user)||void 0===p?void 0:p.doctor_id)?String(null===(c=e.user)||void 0===c?void 0:c.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(k=null===(w=e.mentioned)||void 0===w?void 0:w.role)||void 0===k?void 0:k.toLowerCase():"",avatar:(null===(x=e.mentioned)||void 0===x?void 0:x.avatar)||"",type:(null===(I=e.mentioned)||void 0===I?void 0:I.type)||"",email:(null===(C=e.mentioned)||void 0===C?void 0:C.email)||"",partnerId:(null===(S=e.mentioned)||void 0===S?void 0:S.partner_id)?String(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.doctor_id):"",hospitalId:(null===(j=e.mentioned)||void 0===j?void 0:j.hospital_id)?String(null===(N=e.mentioned)||void 0===N?void 0:N.hospital_id):"",title:(null===(P=e.mentioned)||void 0===P?void 0:P.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},B=e=>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/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var D=Object.freeze({__proto__:null,formatAuthor:m,formatArticleExpert:v,formatSpotlightsSummary:p,TRANSLATE_LANGUAGES:_,formatTranslateOptions:g,formatArticle:y,formatUserProfile:f,formatBMIResult:e=>{var i,t,o,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(t=null==e?void 0:e.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(o=null==e?void 0:e.risk)&&void 0!==o?o:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:b,formatReviewedCategory:h,formatCategory:w,formatCategoryApi:e=>e?{categoryInfo:w(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(y),subCategories:(e.data.sub_categories||[]).map(w)}:{},formatFaqsCategory:k,formatHealthTool:x,formatHealthToolTypeCategory:e=>{var i,t;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(t=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>x(e))))&&void 0!==t?t:[]}:{}},formatCommunity:I,formatTopic:C,formatExpertAnswer:S,formatPost:T,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,t,o;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(t=e.from_user)||void 0===t?void 0:t.id,avatar:null===(o=e.from_user)||void 0===o?void 0:o.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:e=>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}:{},formatSuggestedArticle:e=>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:e=>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:A,formatReportedPostToPostDetail:e=>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:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:B,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,t,o;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(t=e.reviewed_by)||void 0===t?void 0:t.display_name)||(null===(o=e.reviewed_by)||void 0===o?void 0:o.name)||"",date:e.reviewed_date||"",link:B(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||""}:{}}});const j=l.div`
|
|
85
85
|
width: ${e=>e.size||40}px;
|
|
86
86
|
height: ${e=>e.size||40}px;
|
|
87
87
|
flex-shrink: 0;
|
|
@@ -114,4 +114,4 @@ import e,{useContext as i,useState as t}from"react";import{M as o}from"./utils-2
|
|
|
114
114
|
background-color: ${n.mbColors.pink};
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,N=o=>{var{className:l,isMarryBaby:n,style:d,avatar:s,username:u,size:m}=o,v=a(o,["className","isMarryBaby","style","avatar","username","size"]);const{data:{env:{isMarryBaby:
|
|
117
|
+
`,N=o=>{var{className:l,isMarryBaby:n,style:d,avatar:s,username:u,size:m}=o,v=a(o,["className","isMarryBaby","style","avatar","username","size"]);const{data:{env:{isMarryBaby:p}}}=i(r),c="boolean"==typeof n?n:p,[_,g]=t(!1);return e.createElement(j,Object.assign({"data-is-marrybaby":c,className:l,style:d,size:m},v),s&&!_?e.createElement("img",{loading:"lazy",src:s,className:"avatar",alt:"avatar",onError:()=>{_||g(!0)}}):e.createElement("div",{className:"avatar avatar-default"},u&&(null==u?void 0:u.length)>0?u[0].toUpperCase():"A"))};export{u as P,N as U,T as a,A as b,I as c,D as d,y as e,C as f,w as g,B as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o,{useState as a,useEffect as e,useMemo as t,useCallback as l}from"react";import{v as i,w as d}from"./index.styles-
|
|
1
|
+
import o,{useState as a,useEffect as e,useMemo as t,useCallback as l}from"react";import{v as i,w as d}from"./index.styles-e7929b94.js";import{_ as s,a as n}from"./tslib.es6-29beeaba.js";import{u as r}from"./useTranslations-fd222d54.js";import{B as c}from"./index-07642663.js";import{P as v}from"./paths-3a59da5a.js";import{a as u}from"./constants-fe63add8.js";import{d as m}from"./index-18312c77.js";import{b as p,h as g}from"./utils-91e7084f.js";import{i as b}from"./isProduction-09caa686.js";const y=({type:a="solid",className:e,style:t})=>o.createElement(i,{style:t,className:e,"data-diver-type":a,dividerType:a}),E={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},f=a=>{var{siteType:e,role:t,title:l,styles:i,className:n}=a,c=s(a,["siteType","role","title","styles","className"]);const{t:v}=r(),u=t?(o=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((a=>a===o)))(t):"",{classes:m,cx:p}=d(void 0,{name:"AuthorBadge",styles:i});return u&&E[u]?o.createElement("div",Object.assign({className:p(m.root,n),"data-label-type":u,"data-is-marrybaby":"marryBaby"===e},c),l||v(E[u])):null};var h="Dudns9-";const A=({value:t,choices:l,onChange:i})=>{const[d,s]=a(t);return e((()=>{s(t)}),[t]),o.createElement("div",{className:h},l.map(((a,e)=>o.createElement(c,{dataEventCategory:a.dataEventCategory,dataEventAction:a.dataEventAction,dataEventLabel:a.dataEventLabel,size:"sm",variant:a.value===d?"primary":"tertiary",key:e,onClick:()=>{s(a.value),null==i||i(a.value)}},a.label||""))))},T=e=>{var{label:i,bookingId:d,bookingType:y="doctor",locale:E="vi-VN"}=e,f=s(e,["label","bookingId","bookingType","locale"]);const{t:h}=r(),[A,T]=a(!1),_=t((()=>"undefined"!=typeof window?window.location.href:""),[]),C=l((()=>n(void 0,void 0,void 0,(function*(){var o,a,e,t,l,i,s,n,r,c,f,h,A,_,C;const j="doctor"===y?v.GET_DOCTOR_DETAIL:"hospital"===y?v.GET_HOSPITAL_DETAIL:"service"===y?v.GET_SERVICE_DETAIL:"";try{T(!0);const v=yield p(g(j,{id:d,site:m[E]}),"get");if(1===(null==v?void 0:v._status)){const d="doctor"===y?{id:null===(a=null===(o=null==v?void 0:v._data)||void 0===o?void 0:o.doctor)||void 0===a?void 0:a.id,slug:null===(t=null===(e=null==v?void 0:v._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.slug,localSlug:null===(l=u[E])||void 0===l?void 0:l.DOCTOR}:"hospital"===y?{id:null===(s=null===(i=null==v?void 0:v._data)||void 0===i?void 0:i.branch)||void 0===s?void 0:s.id,slug:null===(r=null===(n=null==v?void 0:v._data)||void 0===n?void 0:n.branch)||void 0===r?void 0:r.slug,localSlug:null===(c=u[E])||void 0===c?void 0:c.HOSPITAL}:{id:null===(h=null===(f=null==v?void 0:v._data)||void 0===f?void 0:f.service)||void 0===h?void 0:h.id,slug:null===(_=null===(A=null==v?void 0:v._data)||void 0===A?void 0:A.service)||void 0===_?void 0:_.slug,localSlug:null===(C=u[E])||void 0===C?void 0:C.SERVICE};window.location.href=`https://${b?"":"discover."}${m[E]}/care/${d.localSlug}/${d.slug}-${d.id}/`}else T(!1)}catch(o){console.log(o),T(!1)}}))),[]);return d&&y?o.createElement(c,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:_,onClick:C,loading:A},f),i||h("careBooking.bookAnAppointment")):null};export{f as A,A as B,y as D,T as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"./tslib.es6-29beeaba.js";import a from"react";import{B as o}from"./index-07642663.js";const d=d=>{var{size:e,color:i="primary",isDisabled:r,isBlock:n,title:c,onClick:l,icon:s,iconPosition:u="left",children:p,isLoading:P=!1,loadingText:g,dataEventCategory:v,dataEventAction:b,dataEventLabel:m,dataProductChannel:y,dataProductSku:C,dataProductBrand:h,dataProductName:k,dataProductPrice:E,dataProductCategory:f,dataProductPosition:B,type:x}=d,L=t(d,["size","color","isDisabled","isBlock","title","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);const j={"data-event-category":v,"data-event-action":b,"data-event-label":m,"data-product-channel":y,"data-product-sku":C,"data-product-brand":h,"data-product-name":k,"data-product-price":E,"data-product-category":f,"data-product-position":B};return a.createElement(o,Object.assign({},j,{size:e,variant:"transparent"===i?"white":"danger"===i?"error":i,disabled:r,onClick:t=>{!P&&!r&&l&&l(t)},title:c,loading:P,type:x,leftIcon:"left"===u?s:void 0,rightIcon:"right"===u?s:void 0,w:n?"100%":void 0,p:n?"12px auto":void 0},L),P&&g||p)};export{d as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-29beeaba.js";import a,{useMemo as t}from"react";import{useMantineTheme as s}from"@mantine/core";import{S as o,L as n,b as r,d as l,e as i}from"./constants-fe63add8.js";const c=c=>{var{name:m,value:d,errorMessage:p,isNumerousKeyboard:u=!1,showErrorMessage:b=!0,actionIcon:y,displayIcon:C,onActionClick:v,label:g,className:h,onChange:E,isDisabled:N,CustomInput:I,size:f,style:k,autoComplete:A="off",type:K="text",inputClassName:M,trackingAttributes:z,enterKeyHint:L}=c,j=e(c,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const w=s(),H=t((()=>z?{"data-event-category":z.dataEventCategory,"data-event-action":z.dataEventAction,"data-event-label":z.dataEventLabel}:{}),[z]);return a.createElement(o,{"data-size":f,className:h,"data-has-action-icon":!!y||void 0,"data-has-display-icon":!!C||void 0,"data-has-error":p&&p.length>0||void 0,color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][0],style:k},g&&a.createElement(n,{size:"label2",htmlFor:m,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},I||a.createElement("input",Object.assign({id:m,name:m,onChange:e=>E&&E(e.target.value),type:K,"aria-label":K,value:d,disabled:N,autoComplete:A,inputMode:u||"number"===K?"numeric":K,pattern:u?"[0-9]*":".*",className:M,enterKeyHint:L},H,j)),C&&a.createElement(r,{className:"displayIcon"},C),y&&a.createElement(l,{className:"actionIcon",onClick:v},y)),p&&p.length>0&&b&&a.createElement(i,{className:"errorLabel"},p))};export{c as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"./tslib.es6-29beeaba.js";import t from"react";import{S as a,a as s}from"./index.styled-2328fb7a.js";const r=s=>{var{type:r,color:l,style:o}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},l&&{"--text-color":l}),o)},c))},l=a=>{var{type:r,color:l,style:o}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({"data-type":r,style:Object.assign(Object.assign({},o),l&&{"--text-color":l})},c))};export{l as M,r as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-29beeaba.js";import t,{useMemo as n,useState as a,useEffect as o}from"react";import{L as l}from"./Subot-8e9ad7eb.js";import{C as r}from"./index-554b1cd1.js";import{t as i}from"./theme-e2f5082a.js";import c from"styled-components";import{I as s,g as d}from"./index-07642663.js";import{T as p}from"./index-5b20d474.js";const m=c.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
width: ${e=>e.size}px;
|
|
@@ -36,9 +36,9 @@ import{_ as e}from"./tslib.es6-03e2d67c.js";import t,{useMemo as n,useState as a
|
|
|
36
36
|
& > * {
|
|
37
37
|
pointer-events: none;
|
|
38
38
|
}
|
|
39
|
-
`,
|
|
39
|
+
`,b=[l.Myanmar,l.Taiwan],h=c((a=>{var{icon:o,name:l,className:c,locale:d="en-PH",dataEventCategory:h,dataEventAction:v,dataEventLabel:u,onSelect:x}=a,k=e(a,["icon","name","className","locale","dataEventCategory","dataEventAction","dataEventLabel","onSelect"]);const C=n((()=>null==c?void 0:c.includes("selected-week-pill")),[c]);return t.createElement(g,Object.assign({onClick:x,className:c?"week-pill".concat(" non-pointer-event-child ",c):"week-pill non-pointer-event-child","data-event-category":h,"data-event-action":v,"data-event-label":u},k),t.createElement(m,{size:64,iconSize:40,backgroundColor:i.colors.white},t.createElement(s,{src:o||r.getAssetPath("week_default.png"),alt:`week ${l}`})),C?t.createElement(p,Object.assign({type:"semiBold",size:"n1",color:i.colors.gray800},b.includes(d)&&{style:{fontSize:"10px"}}),l):t.createElement(p,Object.assign({size:"n1",color:i.colors.gray600},b.includes(d)&&{style:{fontSize:"10px"}}),l))}))`
|
|
40
40
|
box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.08);
|
|
41
|
-
`,
|
|
41
|
+
`,v=c(d.Slide)`
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
> div * {
|
|
44
44
|
pointer-events: none;
|
|
@@ -47,4 +47,4 @@ import{_ as e}from"./tslib.es6-03e2d67c.js";import t,{useMemo as n,useState as a
|
|
|
47
47
|
.centerred-pill-wrapper {
|
|
48
48
|
padding: 16px 0;
|
|
49
49
|
}
|
|
50
|
-
`,x=n=>{var{data:r,isMobile:i,onSlideChange:c,pillProps:s,locale:d=l.Vietnam,blurFromIndex:p,blurLength:m}=n,g=e(n,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const
|
|
50
|
+
`,x=n=>{var{data:r,isMobile:i,onSlideChange:c,pillProps:s,locale:d=l.Vietnam,blurFromIndex:p,blurLength:m}=n,g=e(n,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const b={withControls:!i,slideGap:16,blurFromCenter:!0,blurFromIndex:p||(i?2:4),blurLength:m||(i?1:3),onSlideChange:c},[x,C]=a("");return o((()=>{C(window.location.href)}),[]),t.createElement(u,Object.assign({},b,g,{selectSlideWhenClick:!0,previousControlIcon:t.createElement(k,{currentUrl:x}),nextControlIcon:t.createElement(k,{currentUrl:x,isRight:!0})}),(e=>r.map(((n,a)=>t.createElement(v,Object.assign({key:a,onClick:c,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":x,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":x}},s),t.createElement("div",{className:"centerred-pill-wrapper"},t.createElement(h,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":x,locale:d,name:n.name,icon:n.icon,className:a===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))))},k=({isRight:e,currentUrl:n})=>t.createElement("svg",{viewBox:"0 0 15 15",fill:"none",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":n,className:"pointer-event-child-none"},t.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));export{x as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,_ as t}from"./tslib.es6-
|
|
1
|
+
import{a as e,_ as t}from"./tslib.es6-29beeaba.js";import s,{useReducer as a,useState as r,useEffect as i}from"react";import{Stack as n,Input as o}from"@mantine/core";import{d as c,S as d}from"./index-07642663.js";import"@mantine/dates";import{c as l}from"./index-18312c77.js";import{L as p}from"./Subot-8e9ad7eb.js";import"./index-554b1cd1.js";import"./index-45effb56.js";import"./theme-e2f5082a.js";import{u as v}from"./useTranslations-fd222d54.js";import"@mantine/hooks";import{M as m}from"./utils-0e7190da.js";const u={provinceByName:{},provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},b=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},h=({provinces:t})=>{const[s,n]=a(b,u),{provinceByName:o,provinces:c,districts:d,wards:v,selectedProvince:h,selectedDistrict:y,selectedWard:E}=s,[g,j]=r();i((()=>{e(void 0,void 0,void 0,(function*(){var e,s,a,r;try{const i=yield fetch((r=process.env.UNIFY_LOCALE||p.Vietnam,`${l}/cities-data-${m[r]}.json`)).then((e=>e.json()));j(i);const{list:o}=i,c=t?((e,t)=>{const s={};for(const[,e]of Object.entries(t)){const{id:t}=e;t&&(s[t]=e)}const a={};return e.map((e=>{a[e.name]=s[e.id]})),a})(t,o):o,d=Object.keys(c),v=Object.keys((null===(e=o[d[0]])||void 0===e?void 0:e.list)||{}),u=Object.keys((null===(a=null===(s=o[d[0]])||void 0===s?void 0:s[v[0]])||void 0===a?void 0:a.list)||{});n({type:"SET_DATA",payload:{provinceByName:c,provinces:d,districts:v,wards:u}})}catch(e){console.error("Error fetching address data:",e)}}))}),[process.env.UNIFY_LOCALE]);return{provinces:c,districts:d,wards:v,selectedProvince:h,selectedDistrict:y,selectedWard:E,handleProvinceChange:e=>{var t;const s=Object.keys((null===(t=o[e])||void 0===t?void 0:t.list)||{});n({type:"SET_DISTRICTS",payload:s}),n({type:"SET_WARDS",payload:[]}),n({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,s;const a=Object.keys((null===(s=null===(t=o[h])||void 0===t?void 0:t.list[e])||void 0===s?void 0:s.list)||{});n({type:"SET_WARDS",payload:a}),n({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{n({type:"SELECT_WARD",payload:e})}}},y=e=>{var{error:a,provinces:l,placeholder:p}=e,m=t(e,["error","provinces","placeholder"]);const{t:u}=v(),{provinces:b,districts:y,wards:E,selectedProvince:g,selectedDistrict:j,selectedWard:C,handleProvinceChange:S,handleDistrictChange:T,handleWardChange:O}=h({provinces:l}),[D,f]=r("");return i((()=>{g&&j&&C&&D?m.onChange({selectedProvince:g,selectedDistrict:j,selectedWard:C,extraInfo:D}):m.onChange(null)}),[g,j,C,D]),s.createElement(c.Wrapper,Object.assign({withAsterisk:!0},m),s.createElement(n,null,s.createElement(d,{placeholder:(null==p?void 0:p.province)||u("onboarding.similac.input.city"),data:l?b:b.sort(),searchable:!0,onChange:S,value:g}),s.createElement(d,{placeholder:(null==p?void 0:p.district)||u("onboarding.similac.input.district"),data:y.sort(),searchable:!0,onChange:T,value:j,disabled:!g}),s.createElement(d,{placeholder:(null==p?void 0:p.ward)||u("onboarding.similac.input.ward"),searchable:!0,data:E.sort(),value:C,onChange:O,disabled:!g||!j}),s.createElement(c,{placeholder:(null==p?void 0:p.address)||u("onboarding.similac.input.no"),disabled:!g||!j||!C,value:D,onChange:f,style:{marginBottom:0}})),s.createElement(o.Error,{size:"md"},a))};export{y as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{B as t}from"./index-ba2430f8.js";import{C as a}from"./index-5f71fc29.js";import l from"dayjs";import{d as n}from"./index-3f24fd41.js";import{t as o}from"./theme-1fc9bf92.js";import"./index-c93ec607.js";import{Flex as i,Stack as r,Box as c}from"@mantine/core";import"@mantine/dates";import"./Subot-46c8b66e.js";import"./index-4b2d0830.js";import{T as m}from"./index-198fd08e.js";import{u as s}from"./useTranslations-b7d4a160.js";import"@mantine/hooks";import{L as d}from"./index-9d0c6353.js";import{M as v}from"./index-cde509fa.js";import"./translationsContext-05a6ebf7.js";import"string-format";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:i,type:r="main",footerInfo:c,isMobile:d,locale:v})=>{var E,p,y,f,N,b,h,k,F,$,z,T,x,M,C,L,_,j,S,w,H,I,A,B,G,D,q,U;const{t:J}=s(),K=null==c?void 0:c.menu,O=(null===(p=null===(E=null==c?void 0:c.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${i||""}`,style:"mini"===r?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":r},"main"===r?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==c?void 0:c.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(m,{size:"p1",weight:"bold"},null===(f=null==c?void 0:c.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(m,{size:"sm"},null===(N=null==c?void 0:c.social)||void 0===N?void 0:N.title),e.createElement("div",{className:"icons"},null===(h=null===(b=null==c?void 0:c.social)||void 0===b?void 0:b.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===($=K[1])||void 0===$?void 0:$.menu_title),null===(T=null===(z=K[1])||void 0===z?void 0:z.items)||void 0===T?void 0:T.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(m,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(x=K[2])||void 0===x?void 0:x.menu_title),null===(C=null===(M=K[2])||void 0===M?void 0:M.items)||void 0===C?void 0:C.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(m,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(L=null==c?void 0:c.branch)||void 0===L?void 0:L.title),e.createElement("div",{className:"flags"},null===(j=null===(_=null==c?void 0:c.branch)||void 0===_?void 0:_.branch)||void 0===j?void 0:j.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(m,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(S=null==c?void 0:c.general)||void 0===S?void 0:S.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==c?void 0:c.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(w=null==c?void 0:c.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(H=null==c?void 0:c.menu[1])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(m,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(A=null==c?void 0:c.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==c?void 0:c.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(m,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==r&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(m,{size:"sm"},null===(D=null==c?void 0:c.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(U=null===(q=null==c?void 0:c.social)||void 0===q?void 0:q.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",N="qc5bEb3",b="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const $=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:N,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:b,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(i,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(r,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(m,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(c,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(m,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(m,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},z=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement($,{footerMenu:n,background:i});export{z as F};
|
|
1
|
+
import e from"react";import{B as t}from"./index-a16bbcaf.js";import{C as a}from"./index-910db9f6.js";import l from"dayjs";import{d as n}from"./index-18312c77.js";import{t as o}from"./theme-e2f5082a.js";import"./index-07642663.js";import{Flex as i,Stack as r,Box as m}from"@mantine/core";import"@mantine/dates";import"./Subot-8e9ad7eb.js";import"./index-554b1cd1.js";import{T as c}from"./index-45effb56.js";import{u as s}from"./useTranslations-fd222d54.js";import"@mantine/hooks";import{L as d}from"./index-3948b7d3.js";import{M as v}from"./index-ac8493ba.js";import"./translationsContext-d98f0db3.js";import"string-format";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:i,type:r="main",footerInfo:m,isMobile:d,locale:v})=>{var E,p,y,f,b,N,h,k,F,$,z,T,x,M,C,L,_,j,S,w,H,I,A,B,G,D,q,U;const{t:J}=s(),K=null==m?void 0:m.menu,O=(null===(p=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${i||""}`,style:"mini"===r?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":r},"main"===r?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==m?void 0:m.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(c,{size:"p1",weight:"bold"},null===(f=null==m?void 0:m.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===($=K[1])||void 0===$?void 0:$.menu_title),null===(T=null===(z=K[1])||void 0===z?void 0:z.items)||void 0===T?void 0:T.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(x=K[2])||void 0===x?void 0:x.menu_title),null===(C=null===(M=K[2])||void 0===M?void 0:M.items)||void 0===C?void 0:C.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(c,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(L=null==m?void 0:m.branch)||void 0===L?void 0:L.title),e.createElement("div",{className:"flags"},null===(j=null===(_=null==m?void 0:m.branch)||void 0===_?void 0:_.branch)||void 0===j?void 0:j.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(c,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(S=null==m?void 0:m.general)||void 0===S?void 0:S.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(w=null==m?void 0:m.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(H=null==m?void 0:m.menu[1])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(c,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(c,{size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(c,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==r&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(c,{size:"sm"},null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(U=null===(q=null==m?void 0:m.social)||void 0===q?void 0:q.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",b="qc5bEb3",N="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const $=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:b,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:N,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(i,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(r,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(m,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(c,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},z=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement($,{footerMenu:n,background:i});export{z as F};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,memo as o,useCallback as r,useImperativeHandle as s,forwardRef as c,createContext as d,useContext as m}from"react";import{T as p,I as g}from"./index-198fd08e.js";import{b as u,c as h,d as v,e as b,f as y,h as f,i as E,j as x,k as w,l as k,m as C,n as N,o as B,p as z,q as $,r as S,s as P,t as D,u as L,H as M,T as I,g as T,P as A}from"./index.styles-8be9760e.js";import{f as j,M as O}from"./utils-288ca0db.js";import{I as _,R as F,u as H,A as R,b as W,c as U,B as V,d as G,e as Z,f as q,t as Y}from"./index-c93ec607.js";import{T as X}from"./index-696ca464.js";import{b as K,u as Q}from"./useTranslations-b7d4a160.js";import{C as J}from"./index-4b2d0830.js";import{t as ee}from"./theme-1fc9bf92.js";import{_ as te,a as ae}from"./tslib.es6-03e2d67c.js";import{Box as ne,Radio as ie,Flex as le,rem as oe,Card as re,Group as se,createStyles as ce,Stack as de,getStylesRef as me,useMantineTheme as pe,Container as ge,UnstyledButton as ue,AspectRatio as he,ScrollArea as ve,Chip as be,Badge as ye,MultiSelect as fe,Stepper as Ee}from"@mantine/core";import xe from"innertext";import"@mantine/dates";import{d as we,L as ke,F as Ce,Q as Ne,R as Be,a as ze,G as $e}from"./index-3f24fd41.js";import{G as Se,L as Pe}from"./Subot-46c8b66e.js";import"./translationsContext-05a6ebf7.js";import"string-format";import{useViewportSize as De}from"@mantine/hooks";import{i as Le,d as Me}from"./index-d26d0482.js";import Ie,{keyframes as Te,css as Ae}from"styled-components";import je from"lodash/throttle";import{L as Oe}from"./index-9d0c6353.js";import{B as _e}from"./index-ba2430f8.js";import{I as Fe}from"./index-a4441d0b.js";import He from"html-react-parser";import{i as Re}from"./isProduction-6af4d2ac.js";import{format as We,addDays as Ue,isBefore as Ve,startOfMonth as Ge,addMonths as Ze,subMonths as qe,getDaysInMonth as Ye,isToday as Xe,isSameDay as Ke,isWithinInterval as Qe,isAfter as Je,isPast as et}from"date-fns";import tt from"dayjs";import"./utils-36e3bf71.js";import"./index.styled-37a324c2.js";import"./index-c4af839e.js";import{L as at}from"./constants-f262fdad.js";import{Z as nt,s as it,H as lt,o as ot,d as rt,P as st,T as ct,t as dt,u as mt,v as pt}from"./utils-b8dbc87d.js";import{D as gt}from"./types-30b992fc.js";import{D as ut}from"./index-81d1a3ea.js";import{S as ht}from"./index-491ee5f4.js";import{M as vt}from"./index-cde509fa.js";import{D as bt}from"./index-b55d97ab.js";import{C as yt}from"./index-5f71fc29.js";import{useForm as ft,Controller as Et}from"react-hook-form";import{u as xt}from"./useHealthToolCache-a9f5329f.js";import{yupResolver as wt}from"@hookform/resolvers/yup";import{B as kt,D as Ct}from"./index-e5ca10f5.js";import{h as Nt}from"./index-4942221e.js";import{a as Bt}from"./useOutsideClick-d9a01b05.js";import zt from"date-fns/locale/en-US";import $t from"date-fns/locale/id";import St from"date-fns/locale/vi";import Pt from"date-fns/locale/zh-TW";import{g as Dt}from"./getSocialList-1b0bdd8a.js";import{v4 as Lt}from"uuid";import{g as Mt,a as It}from"./routing-6fcf3a59.js";import{useForm as Tt,isNotEmpty as At}from"@mantine/form";import{M as jt}from"./index-b36dd213.js";import Ot from"js-cookie";import _t from"lodash/flatten";import Ft from"lodash/uniqBy";import{g as Ht}from"./cookieHelper-16653e64.js";import{n as Rt,a as Wt}from"./normalizeLink-78ac13e0.js";var Ut="CHw-fZZ",Vt="_03U6VRS",Gt="EO828Vv";const Zt=({style:t,onClose:a,text:n,type:i,contentIcon:l,closeIcon:o,className:r,description:s})=>e.createElement("div",{className:`${Ut} ${r||""}`,style:t,"data-alert-type":i},e.createElement("div",{className:Vt},e.createElement("div",{className:"icon-title"},l,e.createElement(p,{weight:"bold",size:"label1"},n)),e.createElement(p,{weight:"regular",size:"p3"},s)),e.createElement("div",{className:Gt,onClick:a},o)),qt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},Yt=({type:n="square",size:i,avatarImg:l,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:d,className:m,width:p,height:g,alt:h})=>{const v=i?qt[i]:void 0,[b,y]=t(!1);a((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{y(!0)}))}}),[o,y]);const f=(!o&&!l||b)&&r;return e.createElement(u,{style:Object.assign(Object.assign({},d),{"--size":v?v+"px":void 0,"--width-prop":p?p+"px":void 0,"--height-prop":g?g+"px":void 0,"--background-color":s}),"data-has-max":!(!p||!g),"data-avatar-type":n,onClick:c,className:m,avatarUrl:o,"data-custom-size":!!i},l,o&&!b&&e.createElement(_,{src:o,alt:h||"avatar"}),f&&r)},Xt=({amount:t,type:a,size:n="medium",color:i="primary",icon:l,className:o})=>e.createElement(h,{"data-notification-type":a,"data-notification-size":n,"data-notification-color":i,"data-has-icon":!!l||void 0,notificationType:a,notificationSize:n,notificationColor:i,hasIcon:!!l,className:o},e.createElement("div",null,t&&e.createElement("span",null,t)," ",l&&e.createElement("div",null,l))),Kt=({style:t,children:a,className:n,size:i="lg",type:l="bold",upperCase:o,as:r="h4",color:s})=>e.createElement(v,{style:Object.assign({color:s},t),className:n,"data-size":i,"data-type":l,"data-uppercase":o,as:r},a),Qt=()=>e.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),Jt=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),ea=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"download"),e.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),ta=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"upload"),e.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"})),aa=({className:a,value:i,options:l,onUploadSelected:o,id:r,placeholderIcon:s,placeholder:c,style:d})=>{const[m,p]=t(!1),g=()=>p(!m),u=n(l.map((t=>"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+r+"-"+t.value,key:"uploader-dropdown-input-"+r+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),o(e.target.files)}}))));return e.createElement(b,{className:a,"data-dropdown-open":!!m,id:r,"data-has-icons":!0,style:d,onBlur:()=>p(!1),tabIndex:0},e.createElement(Qt,null),e.createElement(y,{onClick:g},s||e.createElement(Jt,null)," ",e.createElement("span",null,i&&i.value?i.label:c)),m&&e.createElement(f,{onClick:g,"data-has-icons":!0},l.map((t=>e.createElement(E,{key:`${r}-${t.value}`,"data-selected":i&&i.value===t.value||void 0,onClick:()=>{return"upload"===t.type?(a="#uploader-dropdown-input-"+r+"-"+t.value,void(null===(n=document.querySelector(a))||void 0===n||n.click())):void((e=t.url)&&window.open(e,"_blank"));var e,a,n}},e.createElement(x,null,t.icon||"download"===t.type?e.createElement(ea,null):e.createElement(ta,null)),t.label)))),e.createElement(e.Fragment,null,u.current))},na=({className:t,columns:a,columnsDesktop:n,gridTemplateColumns:i,gridTemplateColumnsDesktop:l,gap:o,children:r,justifyChildren:s,style:c,alignItems:d})=>e.createElement(w,{className:t,style:Object.assign({"--columns-count":a,"--columns-count-desktop":n,"--grid-template-columns":i,"--grid-template-columns-desktop":l,"--justify-children":s,"--grid-gap":o,"--align-items":d},c)},r),ia=({pagesAmount:n,activePage:i,handlePageChange:o,handleClick:r,href:s,queryPageName:c="page"})=>{const d=[...Array(n)].map(((e,t)=>t+1)),[m,p]=t(i<=4?d.slice(0,5):i>=d.length-3?d.slice(d.length-5,d.length):d.slice(i-2,i+1));return a((()=>{i<=4?p(d.slice(0,5)):i>=d.length-3?p(d.slice(d.length-5,d.length)):p(d.slice(i-2,i+1))}),[i]),e.createElement(l,null,i>4&&e.createElement(l,null,e.createElement(N,{onClick:()=>o(1)},s?e.createElement("a",{href:s,onClick:r},1):1),e.createElement(N,null,"...")),m.map((t=>e.createElement(N,{key:`pagination+${t}`,"data-page-active":t===i||void 0,onClick:()=>o(t)},s?e.createElement("a",{href:j(s,t,c),onClick:r},t):t))),i<d.length-3&&e.createElement(l,null,e.createElement(N,null,"..."),e.createElement(N,{onClick:()=>o(d.length)},s?e.createElement("a",{href:j(s,d.length,c),onClick:r},d.length):d.length)))},la=({className:n,pagesAmount:l,currentPage:o,onChange:r,onClick:s,style:c,href:d,queryPageName:m="page"})=>{const p=[...Array(l)].map(((e,t)=>t+1)),[g,u]=t(o),h=i((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),v=l-1,b=e=>{e<=l&&e>0&&(u(e),r(e))},y=e=>{s&&s(e)};return a((()=>{u(o)}),[o]),e.createElement(k,{className:n,style:c},e.createElement(C,{className:"prev-page",onClick:()=>b(g-1),"data-last-page":1===g||void 0},h?e.createElement("a",{href:j(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),p.length>8?e.createElement(ia,{pagesAmount:l,activePage:g,handlePageChange:b,handleClick:y,href:h,queryPageName:m}):p.map((t=>e.createElement(N,{key:`pagination+${t}`,"data-page-active":t===g||void 0,onClick:()=>b(t)},h?e.createElement("a",{href:j(h,t,m),onClick:y},t):t))),e.createElement(C,{className:"next-page",onClick:()=>b(g+1),"data-last-page":g===v+1||void 0},h?e.createElement("a",{href:j(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},oa=({size:t="small",label:a,name:n,checked:i,value:l,className:o,isDisabled:r=!1,onChange:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>{const p=!!d&&!!c&&!!m?{"data-event-category":c,"data-event-action":d,"data-event-label":m}:{};return e.createElement(F,Object.assign({size:"small"===t?"md":"lg",label:a,name:n,checked:i,value:l,className:o,disabled:r,onChange:e=>null==s?void 0:s(e.target.value)},p))},ra=({type:t,children:a,style:n,isInline:i,isSquared:l=!1,className:o,isLight:r,hasMorePadding:s,isLink:c,isSelected:d,textProps:m={size:"sm"}})=>{const p=m.color?{"--text-props-color":m.color}:{};return e.createElement(B,{"data-is-squared":l||void 0,"data-tag-type":t,"data-is-light":r||void 0,"data-has-more-padding":s||void 0,"data-is-inline":i||void 0,style:Object.assign(Object.assign({},n),p),className:o,"data-is-selected":d||void 0,"data-is-link":c||void 0,tagType:t,isInline:i,tagHasMorePadding:s,tagIsLight:r,tagIsSquared:l,tagIsALink:c},e.createElement(X,Object.assign({},m),a))},sa=({className:t,id:a,onChange:n,checked:i,style:l,label:o})=>e.createElement(z,{className:t,style:l},e.createElement("input",{type:"checkbox",id:a,onChange:n,checked:i}),e.createElement("label",{htmlFor:a},e.createElement($,null),o&&e.createElement(S,null,o))),ca=({label:t,name:a,checked:n,className:i,isDisabled:l,onChange:o,value:r,isRectangle:s,inputDataTestId:c,siteType:d})=>e.createElement(P,{className:i,"data-disabled":l||void 0,"data-is-rectangle":s||void 0,"data-label-text":t,"data-theme":d},e.createElement("input",{type:"checkbox",checked:n,name:a,onChange:()=>o(r,!n),disabled:l,value:r,id:`${a}-${r}`,"data-label-text":t,"data-testid":c}),!s&&e.createElement("label",{htmlFor:`${a}-${r}`},t)),da=t=>e.createElement("svg",Object.assign({},t,{viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),ma=t=>e.createElement("svg",Object.assign({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),pa=t=>{const a=K();return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 24 24",fill:"none"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:`url(#${a})`},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},ga=({gap:a=2,size:n=24,star:i,totalStars:l=5,onSelect:o,hideEmptyStars:r,style:s,className:c})=>{const d=Math.floor(i),m=i-d>=.5?1:0,[p,g]=t(null),u=p||d,h=p?0:m;return e.createElement(D,{"data-selectable":!!o,style:Object.assign({"--gap":a,"--star-size":n},s),className:c},Array.from({length:r?d+m:l}).map(((t,a)=>{const n=()=>!!o&&g(a+1),i=()=>!!o&&g(null);return a+1<=u?e.createElement(ma,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):a+1===u+h?e.createElement(pa,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):e.createElement(da,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i})})))},ua=l=>{var{label:o,availableValue:r,styles:s,isBaby:c,genderValue:d={male:"male",female:"female"}}=l,m=te(l,["label","availableValue","styles","isBaby","genderValue"]);const{t:g}=Q(),{classes:u,cx:h}=L(void 0,{name:"GenderOptionControl",styles:s}),[v,b]=t(),y=n(null),f=i((()=>[{value:d.male,label:g(c?"gender.boy":"gender.male"),icon:J.getAssetPath(c?"health-tools/boy-icon.svg":"health-tools/male-icon.svg")},{value:d.female,label:g(c?"gender.girl":"gender.female"),icon:J.getAssetPath(c?"health-tools/girl-icon.svg":"health-tools/female-icon.svg")}]),[]);return a((()=>{b(r)}),[r]),e.createElement(ne,{ref:y,className:u.root},e.createElement(ie.Group,Object.assign({className:"radio-group",label:e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},o||g(c?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},m,{classNames:{error:u.groupErr}}),e.createElement(le,{className:h(u.wrapper)},f.map((t=>e.createElement(ie,Object.assign({className:"gender-item",classNames:{root:u.itemRoot,labelWrapper:u.itemLabelWrapper,label:u.itemLabel,inner:u.itemInner},key:t.value,value:t.value},v&&t.value!==v&&{disabled:!0},{label:e.createElement(le,{gap:oe(8),align:"center",justify:"center",sx:{zIndex:0}},e.createElement("img",{src:t.icon,className:"gender-image",alt:"female",loading:"lazy"}),e.createElement(p,{size:"p3"},t.label))})))))))};var ha="PiqKaXk",va="HgbW6-m",ba="_6lkfLYy",ya="j7c-onH";const fa=({avatarImg:t,authorName:a,authorLink:n,uploadTime:i,size:l})=>e.createElement("div",{className:ya},e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":l},t),e.createElement("div",{className:"poster","data-is-disabled-url":!n},e.createElement(p,{size:"lg"===l?"p3":"p4"},e.createElement("a",{href:n},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,i))))),Ea=({isMobile:t,avatarImg:a,name:n,link:i,size:l="lg",specialty:o})=>e.createElement("div",{className:ya},e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":l},a),e.createElement("div",{className:"expert","data-is-disabled-url":!i},t?e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(M,{tag:"h6",className:"expert__name",color:ee.colors.gray600},n),e.createElement(p,{color:ee.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement(M,{tag:"h6",className:"expert__name",color:ee.colors.gray600},n))):e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(M,{tag:"h6",className:"expert__name",color:ee.colors.gray600},n),e.createElement(p,{color:ee.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement("h6",{color:ee.colors.gray600,className:`${ha} expert__name`},n),e.createElement(p,{color:ee.colors.gray500,size:"p4",className:"specialty"},o)))))),xa=o((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),wa=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),ka=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"})))),Ca=({articleLink:t,authorLink:a,authorName:n,avatarImg:i,banner:l,categoryLink:o,categoryName:r,className:s,dataEventActionForBanner:c,dataEventActionForBookmark:d,dataEventActionForCategory:m,dataEventActionForTitle:g,dataEventCategoryForBanner:u,dataEventCategoryForBookmark:h,dataEventCategoryForCategory:v,dataEventCategoryForTitle:b,dataEventLabelForBanner:y,dataEventLabelForBookmark:f,dataEventLabelForCategory:E,dataEventLabelForTitle:x,direction:w="horizontal",hasAffiliate:k,isBookmark:C=!1,isBookmarkDisplayed:N=!0,isMobile:B=!0,onBookmark:z,onClickCategoryName:$,section:S="normal",size:P="md",specialty:D,style:L,styleBanner:I,styleLabel:T,styleTitle:A,text:j,title:O,type:_="author",uploadTime:F,articleLinkTarget:H,isPremium:R})=>{const W=e=>{e.stopPropagation(),null==z||z()},U="lg"===P&&"expert"===_?"h4":"lg"===P&&"home"===S?B?"h4":"h3":"lg"===P?"h4":"h5",V="lg"===P?"p3":"p4",G=B||"home"!==S||"lg"!==P||"author"!==_?"c2":"c1";return e.createElement("article",{className:`${ba} ${s||""}`,"data-size":P,style:L,"data-direction":w,"data-is-expert":"expert"===_||void 0},e.createElement("div",{className:"banner",style:I},e.createElement("a",{className:va,"data-event-category":u,"data-event-action":c,"data-event-label":y,href:t||"#",target:H},l),R&&e.createElement("img",{loading:"lazy",className:"premium",src:J.getAssetPath("premium-crown.svg")}),k&&e.createElement(xa,null)),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(p,{style:T,className:"label",size:G,weight:"caption"},e.createElement("a",{className:va,"data-event-category":v,"data-event-action":m,"data-event-label":E,href:o||"#",onClick:$},r),N&&e.createElement("a",{className:"bookmark",onClick:W},C?e.createElement(wa,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(ka,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))),e.createElement(M,{tag:U,style:A,className:"title",as:"lg"===P?"h2":"h3"},e.createElement("a",{className:va,"data-event-category":b,"data-event-action":g,"data-event-label":x,href:t||"#",target:H},O)),j&&e.createElement("a",{href:t||"#",target:H},e.createElement(p,{size:V,className:"text"},j))),e.createElement("div",{className:"footer"},"author"===_?e.createElement(fa,{size:P,avatarImg:i,authorName:n,authorLink:a,uploadTime:F,handleClick:W,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(Ea,{size:P,isMobile:B,avatarImg:i,specialty:D,name:n,link:a,handleClick:W,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))))},Na=t=>{var a,n,i,{article:l,author:o,authorAvatar:r,badge:s="",hideDescription:c=!1,isBookmarked:d=!1,onBookmark:m,time:g,tracking:u}=t,h=te(t,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:v}=H();return console.log({article:l}),e.createElement(re,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},h),e.createElement(re.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},e.createElement("img",{src:(v?l.featureImageMobile:l.featureImage)||l.featureImage,alt:l.postName,style:{width:"100%"},loading:"lazy"})),e.createElement(re.Section,null,e.createElement(se,{position:"apart",mt:16,mb:4},e.createElement(R,{href:(null===(a=null==l?void 0:l.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==l?void 0:l.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(ne,{sx:{cursor:"pointer"},role:"button",onClick:m},d?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(p,{size:c?"s2":"s1",mb:8,weight:"semiBold",className:"pointer"},l.postTitle||l.postName||""),!c&&e.createElement(p,{size:"p2",mb:16,lineClamp:3,className:"pointer"},xe(l.excerpt||l.description||(null===(i=l.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),e.createElement(le,{gap:12,align:"center"},e.createElement(W,{size:32,src:r,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:s,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},o," • ",g))))};var Ba=ce(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const za=648/440,$a=1.5,Sa=t=>{var a,n,l,{article:o,author:r,authorAvatar:s,badge:c="",bannerImageWrapProps:d,hideDescription:m=!1,isBookmarked:g=!1,onBookmark:u,time:h,tracking:v,classNames:b,styles:y,unstyled:f,className:E}=t,x=te(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:w}=H(),{classes:k,cx:C}=Ba({},{name:"ArticleCard",classNames:b,styles:y,unstyled:f}),N=i((()=>m?$a:za),[m]);return e.createElement(re,Object.assign({className:C(k.root,E),padding:"lg",radius:0},x),e.createElement(re.Section,{className:C(k.image,"pointer")},e.createElement(U,Object.assign({ratio:N},d),e.createElement("img",{src:(w?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{objectFit:"cover"}}))),e.createElement(re.Section,null,e.createElement(se,{position:"apart",mt:16,mb:4},e.createElement(R,{className:k.category,href:(null===(a=null==o?void 0:o.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==o?void 0:o.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(ne,{sx:{cursor:"pointer"},role:"button",onClick:u},g?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(p,{className:C(k.title,"pointer"),size:m?"s2":"s1",mb:8,weight:"semiBold"},o.postTitle||o.postName||""),!m&&e.createElement(p,{className:C(k.description,"pointer"),size:"p2",mb:16,lineClamp:3},xe(o.excerpt||o.description||(null===(l=o.postContent)||void 0===l?void 0:l.split("\r\n")[0])||"")),e.createElement(le,{className:k.author,gap:12,align:"center"},e.createElement(W,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},r," • ",h))))},Pa=t=>{var{variant:a="vertical"}=t,n=te(t,["variant"]);return"horizontal"===a?e.createElement(Na,Object.assign({},n)):e.createElement(Sa,Object.assign({},n))},Da=Ie.a`
|
|
1
|
+
import e,{useState as t,useEffect as a,useRef as n,useMemo as i,Fragment as l,memo as o,useCallback as r,useImperativeHandle as s,forwardRef as c,createContext as d,useContext as m}from"react";import{T as p,I as g}from"./index-45effb56.js";import{b as u,c as h,d as v,e as b,f as y,h as f,i as E,j as x,k as w,l as k,m as C,n as N,o as B,p as z,q as $,r as S,s as P,t as D,u as L,H as M,T as I,g as T,P as A}from"./index.styles-e7929b94.js";import{f as j,M as O}from"./utils-0212f8af.js";import{I as _,R as F,u as H,A as R,b as W,c as U,B as V,d as G,e as Z,f as q,t as Y}from"./index-07642663.js";import{T as X}from"./index-5b20d474.js";import{b as K,u as Q}from"./useTranslations-fd222d54.js";import{C as J}from"./index-554b1cd1.js";import{t as ee}from"./theme-e2f5082a.js";import{_ as te,a as ae}from"./tslib.es6-29beeaba.js";import{Box as ne,Radio as ie,Flex as le,rem as oe,Card as re,Group as se,createStyles as ce,Stack as de,getStylesRef as me,useMantineTheme as pe,Container as ge,UnstyledButton as ue,AspectRatio as he,ScrollArea as ve,Chip as be,Badge as ye,MultiSelect as fe,Stepper as Ee}from"@mantine/core";import xe from"innertext";import"@mantine/dates";import{d as we,L as ke,F as Ce,Q as Ne,R as Be,a as ze,G as $e}from"./index-18312c77.js";import{G as Se,L as Pe}from"./Subot-8e9ad7eb.js";import"./translationsContext-d98f0db3.js";import"string-format";import{useViewportSize as De}from"@mantine/hooks";import{i as Le,d as Me}from"./index-181b15e4.js";import Ie,{keyframes as Te,css as Ae}from"styled-components";import je from"lodash/throttle";import{L as Oe}from"./index-3948b7d3.js";import{B as _e}from"./index-a16bbcaf.js";import{I as Fe}from"./index-a251d363.js";import He from"html-react-parser";import{i as Re}from"./isProduction-09caa686.js";import{format as We,addDays as Ue,isBefore as Ve,startOfMonth as Ge,addMonths as Ze,subMonths as qe,getDaysInMonth as Ye,isToday as Xe,isSameDay as Ke,isWithinInterval as Qe,isAfter as Je,isPast as et}from"date-fns";import tt from"dayjs";import"./utils-8aeea206.js";import"./index.styled-2328fb7a.js";import"./index-9c8c45f9.js";import{L as at}from"./constants-fe63add8.js";import{Z as nt,s as it,H as lt,o as ot,d as rt,P as st,T as ct,t as dt,u as mt,v as pt}from"./utils-91e7084f.js";import{D as gt}from"./types-7c839811.js";import{D as ut}from"./index-43bdd87c.js";import{S as ht}from"./index-5a5c9c97.js";import{M as vt}from"./index-ac8493ba.js";import{D as bt}from"./index-476a3102.js";import{C as yt}from"./index-910db9f6.js";import{useForm as ft,Controller as Et}from"react-hook-form";import{u as xt}from"./useHealthToolCache-2de393ef.js";import{yupResolver as wt}from"@hookform/resolvers/yup";import{B as kt,D as Ct}from"./index-2ce0f601.js";import{h as Nt}from"./index-66616e4b.js";import{a as Bt}from"./useOutsideClick-324cf9cc.js";import zt from"date-fns/locale/en-US";import $t from"date-fns/locale/id";import St from"date-fns/locale/vi";import Pt from"date-fns/locale/zh-TW";import{g as Dt}from"./getSocialList-af186eb2.js";import{v4 as Lt}from"uuid";import{g as Mt,a as It}from"./routing-f581c669.js";import{useForm as Tt,isNotEmpty as At}from"@mantine/form";import{M as jt}from"./index-5dc6c742.js";import Ot from"js-cookie";import _t from"lodash/flatten";import Ft from"lodash/uniqBy";import{g as Ht}from"./cookieHelper-69ff265e.js";import{n as Rt,a as Wt}from"./normalizeLink-22992e53.js";var Ut="CHw-fZZ",Vt="_03U6VRS",Gt="EO828Vv";const Zt=({style:t,onClose:a,text:n,type:i,contentIcon:l,closeIcon:o,className:r,description:s})=>e.createElement("div",{className:`${Ut} ${r||""}`,style:t,"data-alert-type":i},e.createElement("div",{className:Vt},e.createElement("div",{className:"icon-title"},l,e.createElement(p,{weight:"bold",size:"label1"},n)),e.createElement(p,{weight:"regular",size:"p3"},s)),e.createElement("div",{className:Gt,onClick:a},o)),qt={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},Yt=({type:n="square",size:i,avatarImg:l,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:d,className:m,width:p,height:g,alt:h})=>{const v=i?qt[i]:void 0,[b,y]=t(!1);a((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{y(!0)}))}}),[o,y]);const f=(!o&&!l||b)&&r;return e.createElement(u,{style:Object.assign(Object.assign({},d),{"--size":v?v+"px":void 0,"--width-prop":p?p+"px":void 0,"--height-prop":g?g+"px":void 0,"--background-color":s}),"data-has-max":!(!p||!g),"data-avatar-type":n,onClick:c,className:m,avatarUrl:o,"data-custom-size":!!i},l,o&&!b&&e.createElement(_,{src:o,alt:h||"avatar"}),f&&r)},Xt=({amount:t,type:a,size:n="medium",color:i="primary",icon:l,className:o})=>e.createElement(h,{"data-notification-type":a,"data-notification-size":n,"data-notification-color":i,"data-has-icon":!!l||void 0,notificationType:a,notificationSize:n,notificationColor:i,hasIcon:!!l,className:o},e.createElement("div",null,t&&e.createElement("span",null,t)," ",l&&e.createElement("div",null,l))),Kt=({style:t,children:a,className:n,size:i="lg",type:l="bold",upperCase:o,as:r="h4",color:s})=>e.createElement(v,{style:Object.assign({color:s},t),className:n,"data-size":i,"data-type":l,"data-uppercase":o,as:r},a),Qt=()=>e.createElement("style",null,".file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}"),Jt=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"}))),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),e.createElement("path",{className:"file-dropdown-path",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),ea=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"download"),e.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),ta=()=>e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",viewBox:"0 0 13.5 13.5"},e.createElement("title",null,"upload"),e.createElement("path",{className:"file-dropdown-path",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"})),aa=({className:a,value:i,options:l,onUploadSelected:o,id:r,placeholderIcon:s,placeholder:c,style:d})=>{const[m,p]=t(!1),g=()=>p(!m),u=n(l.map((t=>"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+r+"-"+t.value,key:"uploader-dropdown-input-"+r+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),o(e.target.files)}}))));return e.createElement(b,{className:a,"data-dropdown-open":!!m,id:r,"data-has-icons":!0,style:d,onBlur:()=>p(!1),tabIndex:0},e.createElement(Qt,null),e.createElement(y,{onClick:g},s||e.createElement(Jt,null)," ",e.createElement("span",null,i&&i.value?i.label:c)),m&&e.createElement(f,{onClick:g,"data-has-icons":!0},l.map((t=>e.createElement(E,{key:`${r}-${t.value}`,"data-selected":i&&i.value===t.value||void 0,onClick:()=>{return"upload"===t.type?(a="#uploader-dropdown-input-"+r+"-"+t.value,void(null===(n=document.querySelector(a))||void 0===n||n.click())):void((e=t.url)&&window.open(e,"_blank"));var e,a,n}},e.createElement(x,null,t.icon||"download"===t.type?e.createElement(ea,null):e.createElement(ta,null)),t.label)))),e.createElement(e.Fragment,null,u.current))},na=({className:t,columns:a,columnsDesktop:n,gridTemplateColumns:i,gridTemplateColumnsDesktop:l,gap:o,children:r,justifyChildren:s,style:c,alignItems:d})=>e.createElement(w,{className:t,style:Object.assign({"--columns-count":a,"--columns-count-desktop":n,"--grid-template-columns":i,"--grid-template-columns-desktop":l,"--justify-children":s,"--grid-gap":o,"--align-items":d},c)},r),ia=({pagesAmount:n,activePage:i,handlePageChange:o,handleClick:r,href:s,queryPageName:c="page"})=>{const d=[...Array(n)].map(((e,t)=>t+1)),[m,p]=t(i<=4?d.slice(0,5):i>=d.length-3?d.slice(d.length-5,d.length):d.slice(i-2,i+1));return a((()=>{i<=4?p(d.slice(0,5)):i>=d.length-3?p(d.slice(d.length-5,d.length)):p(d.slice(i-2,i+1))}),[i]),e.createElement(l,null,i>4&&e.createElement(l,null,e.createElement(N,{onClick:()=>o(1)},s?e.createElement("a",{href:s,onClick:r},1):1),e.createElement(N,null,"...")),m.map((t=>e.createElement(N,{key:`pagination+${t}`,"data-page-active":t===i||void 0,onClick:()=>o(t)},s?e.createElement("a",{href:j(s,t,c),onClick:r},t):t))),i<d.length-3&&e.createElement(l,null,e.createElement(N,null,"..."),e.createElement(N,{onClick:()=>o(d.length)},s?e.createElement("a",{href:j(s,d.length,c),onClick:r},d.length):d.length)))},la=({className:n,pagesAmount:l,currentPage:o,onChange:r,onClick:s,style:c,href:d,queryPageName:m="page"})=>{const p=[...Array(l)].map(((e,t)=>t+1)),[g,u]=t(o),h=i((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),v=l-1,b=e=>{e<=l&&e>0&&(u(e),r(e))},y=e=>{s&&s(e)};return a((()=>{u(o)}),[o]),e.createElement(k,{className:n,style:c},e.createElement(C,{className:"prev-page",onClick:()=>b(g-1),"data-last-page":1===g||void 0},h?e.createElement("a",{href:j(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),p.length>8?e.createElement(ia,{pagesAmount:l,activePage:g,handlePageChange:b,handleClick:y,href:h,queryPageName:m}):p.map((t=>e.createElement(N,{key:`pagination+${t}`,"data-page-active":t===g||void 0,onClick:()=>b(t)},h?e.createElement("a",{href:j(h,t,m),onClick:y},t):t))),e.createElement(C,{className:"next-page",onClick:()=>b(g+1),"data-last-page":g===v+1||void 0},h?e.createElement("a",{href:j(h,g,m),onClick:y},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},oa=({size:t="small",label:a,name:n,checked:i,value:l,className:o,isDisabled:r=!1,onChange:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>{const p=!!d&&!!c&&!!m?{"data-event-category":c,"data-event-action":d,"data-event-label":m}:{};return e.createElement(F,Object.assign({size:"small"===t?"md":"lg",label:a,name:n,checked:i,value:l,className:o,disabled:r,onChange:e=>null==s?void 0:s(e.target.value)},p))},ra=({type:t,children:a,style:n,isInline:i,isSquared:l=!1,className:o,isLight:r,hasMorePadding:s,isLink:c,isSelected:d,textProps:m={size:"sm"}})=>{const p=m.color?{"--text-props-color":m.color}:{};return e.createElement(B,{"data-is-squared":l||void 0,"data-tag-type":t,"data-is-light":r||void 0,"data-has-more-padding":s||void 0,"data-is-inline":i||void 0,style:Object.assign(Object.assign({},n),p),className:o,"data-is-selected":d||void 0,"data-is-link":c||void 0,tagType:t,isInline:i,tagHasMorePadding:s,tagIsLight:r,tagIsSquared:l,tagIsALink:c},e.createElement(X,Object.assign({},m),a))},sa=({className:t,id:a,onChange:n,checked:i,style:l,label:o})=>e.createElement(z,{className:t,style:l},e.createElement("input",{type:"checkbox",id:a,onChange:n,checked:i}),e.createElement("label",{htmlFor:a},e.createElement($,null),o&&e.createElement(S,null,o))),ca=({label:t,name:a,checked:n,className:i,isDisabled:l,onChange:o,value:r,isRectangle:s,inputDataTestId:c,siteType:d})=>e.createElement(P,{className:i,"data-disabled":l||void 0,"data-is-rectangle":s||void 0,"data-label-text":t,"data-theme":d},e.createElement("input",{type:"checkbox",checked:n,name:a,onChange:()=>o(r,!n),disabled:l,value:r,id:`${a}-${r}`,"data-label-text":t,"data-testid":c}),!s&&e.createElement("label",{htmlFor:`${a}-${r}`},t)),da=t=>e.createElement("svg",Object.assign({},t,{viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),ma=t=>e.createElement("svg",Object.assign({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),pa=t=>{const a=K();return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 24 24",fill:"none"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:`url(#${a})`},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},ga=({gap:a=2,size:n=24,star:i,totalStars:l=5,onSelect:o,hideEmptyStars:r,style:s,className:c})=>{const d=Math.floor(i),m=i-d>=.5?1:0,[p,g]=t(null),u=p||d,h=p?0:m;return e.createElement(D,{"data-selectable":!!o,style:Object.assign({"--gap":a,"--star-size":n},s),className:c},Array.from({length:r?d+m:l}).map(((t,a)=>{const n=()=>!!o&&g(a+1),i=()=>!!o&&g(null);return a+1<=u?e.createElement(ma,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):a+1===u+h?e.createElement(pa,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i}):e.createElement(da,{key:a,onClick:()=>null==o?void 0:o(a+1),onMouseOver:n,onMouseLeave:i})})))},ua=l=>{var{label:o,availableValue:r,styles:s,isBaby:c,genderValue:d={male:"male",female:"female"}}=l,m=te(l,["label","availableValue","styles","isBaby","genderValue"]);const{t:g}=Q(),{classes:u,cx:h}=L(void 0,{name:"GenderOptionControl",styles:s}),[v,b]=t(),y=n(null),f=i((()=>[{value:d.male,label:g(c?"gender.boy":"gender.male"),icon:J.getAssetPath(c?"health-tools/boy-icon.svg":"health-tools/male-icon.svg")},{value:d.female,label:g(c?"gender.girl":"gender.female"),icon:J.getAssetPath(c?"health-tools/girl-icon.svg":"health-tools/female-icon.svg")}]),[]);return a((()=>{b(r)}),[r]),e.createElement(ne,{ref:y,className:u.root},e.createElement(ie.Group,Object.assign({className:"radio-group",label:e.createElement(p,{as:"label",size:"s4",weight:"semiBold"},o||g(c?"tools.selectBabyGender":"tools.selectGender")),size:"lg"},m,{classNames:{error:u.groupErr}}),e.createElement(le,{className:h(u.wrapper)},f.map((t=>e.createElement(ie,Object.assign({className:"gender-item",classNames:{root:u.itemRoot,labelWrapper:u.itemLabelWrapper,label:u.itemLabel,inner:u.itemInner},key:t.value,value:t.value},v&&t.value!==v&&{disabled:!0},{label:e.createElement(le,{gap:oe(8),align:"center",justify:"center",sx:{zIndex:0}},e.createElement("img",{src:t.icon,className:"gender-image",alt:"female",loading:"lazy"}),e.createElement(p,{size:"p3"},t.label))})))))))};var ha="PiqKaXk",va="HgbW6-m",ba="_6lkfLYy",ya="j7c-onH";const fa=({avatarImg:t,authorName:a,authorLink:n,uploadTime:i,size:l})=>e.createElement("div",{className:ya},e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":l},t),e.createElement("div",{className:"poster","data-is-disabled-url":!n},e.createElement(p,{size:"lg"===l?"p3":"p4"},e.createElement("a",{href:n},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,i))))),Ea=({isMobile:t,avatarImg:a,name:n,link:i,size:l="lg",specialty:o})=>e.createElement("div",{className:ya},e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":l},a),e.createElement("div",{className:"expert","data-is-disabled-url":!i},t?e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(M,{tag:"h6",className:"expert__name",color:ee.colors.gray600},n),e.createElement(p,{color:ee.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement(M,{tag:"h6",className:"expert__name",color:ee.colors.gray600},n))):e.createElement("a",{href:i},"lg"===l?e.createElement(e.Fragment,null,e.createElement(M,{tag:"h6",className:"expert__name",color:ee.colors.gray600},n),e.createElement(p,{color:ee.colors.gray500,size:"p3",className:"specialty"},o)):e.createElement(e.Fragment,null,e.createElement("h6",{color:ee.colors.gray600,className:`${ha} expert__name`},n),e.createElement(p,{color:ee.colors.gray500,size:"p4",className:"specialty"},o)))))),xa=o((()=>e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"}))))),wa=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),ka=o((({dataEventCategoryForBookmark:t,dataEventActionForBookmark:a,dataEventLabelForBookmark:n})=>e.createElement("svg",{"data-event-category":t,"data-event-action":a,"data-event-label":n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"})))),Ca=({articleLink:t,authorLink:a,authorName:n,avatarImg:i,banner:l,categoryLink:o,categoryName:r,className:s,dataEventActionForBanner:c,dataEventActionForBookmark:d,dataEventActionForCategory:m,dataEventActionForTitle:g,dataEventCategoryForBanner:u,dataEventCategoryForBookmark:h,dataEventCategoryForCategory:v,dataEventCategoryForTitle:b,dataEventLabelForBanner:y,dataEventLabelForBookmark:f,dataEventLabelForCategory:E,dataEventLabelForTitle:x,direction:w="horizontal",hasAffiliate:k,isBookmark:C=!1,isBookmarkDisplayed:N=!0,isMobile:B=!0,onBookmark:z,onClickCategoryName:$,section:S="normal",size:P="md",specialty:D,style:L,styleBanner:I,styleLabel:T,styleTitle:A,text:j,title:O,type:_="author",uploadTime:F,articleLinkTarget:H,isPremium:R})=>{const W=e=>{e.stopPropagation(),null==z||z()},U="lg"===P&&"expert"===_?"h4":"lg"===P&&"home"===S?B?"h4":"h3":"lg"===P?"h4":"h5",V="lg"===P?"p3":"p4",G=B||"home"!==S||"lg"!==P||"author"!==_?"c2":"c1";return e.createElement("article",{className:`${ba} ${s||""}`,"data-size":P,style:L,"data-direction":w,"data-is-expert":"expert"===_||void 0},e.createElement("div",{className:"banner",style:I},e.createElement("a",{className:va,"data-event-category":u,"data-event-action":c,"data-event-label":y,href:t||"#",target:H},l),R&&e.createElement("img",{loading:"lazy",className:"premium",src:J.getAssetPath("premium-crown.svg")}),k&&e.createElement(xa,null)),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(p,{style:T,className:"label",size:G,weight:"caption"},e.createElement("a",{className:va,"data-event-category":v,"data-event-action":m,"data-event-label":E,href:o||"#",onClick:$},r),N&&e.createElement("a",{className:"bookmark",onClick:W},C?e.createElement(wa,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(ka,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))),e.createElement(M,{tag:U,style:A,className:"title",as:"lg"===P?"h2":"h3"},e.createElement("a",{className:va,"data-event-category":b,"data-event-action":g,"data-event-label":x,href:t||"#",target:H},O)),j&&e.createElement("a",{href:t||"#",target:H},e.createElement(p,{size:V,className:"text"},j))),e.createElement("div",{className:"footer"},"author"===_?e.createElement(fa,{size:P,avatarImg:i,authorName:n,authorLink:a,uploadTime:F,handleClick:W,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}):e.createElement(Ea,{size:P,isMobile:B,avatarImg:i,specialty:D,name:n,link:a,handleClick:W,isBookmarked:C,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:f}))))},Na=t=>{var a,n,i,{article:l,author:o,authorAvatar:r,badge:s="",hideDescription:c=!1,isBookmarked:d=!1,onBookmark:m,time:g,tracking:u}=t,h=te(t,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:v}=H();return console.log({article:l}),e.createElement(re,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},h),e.createElement(re.Section,{w:"100%",h:"100%",miw:264,m:0,className:"pointer"},e.createElement("img",{src:(v?l.featureImageMobile:l.featureImage)||l.featureImage,alt:l.postName,style:{width:"100%"},loading:"lazy"})),e.createElement(re.Section,null,e.createElement(se,{position:"apart",mt:16,mb:4},e.createElement(R,{href:(null===(a=null==l?void 0:l.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==l?void 0:l.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(ne,{sx:{cursor:"pointer"},role:"button",onClick:m},d?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(p,{size:c?"s2":"s1",mb:8,weight:"semiBold",className:"pointer"},l.postTitle||l.postName||""),!c&&e.createElement(p,{size:"p2",mb:16,lineClamp:3,className:"pointer"},xe(l.excerpt||l.description||(null===(i=l.postContent)||void 0===i?void 0:i.split("\r\n")[0])||"")),e.createElement(le,{gap:12,align:"center"},e.createElement(W,{size:32,src:r,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:s,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},o," • ",g))))};var Ba=ce(((e,{})=>({root:{},image:{},title:{},category:{},description:{},author:{}})));const za=648/440,$a=1.5,Sa=t=>{var a,n,l,{article:o,author:r,authorAvatar:s,badge:c="",bannerImageWrapProps:d,hideDescription:m=!1,isBookmarked:g=!1,onBookmark:u,time:h,tracking:v,classNames:b,styles:y,unstyled:f,className:E}=t,x=te(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:w}=H(),{classes:k,cx:C}=Ba({},{name:"ArticleCard",classNames:b,styles:y,unstyled:f}),N=i((()=>m?$a:za),[m]);return e.createElement(re,Object.assign({className:C(k.root,E),padding:"lg",radius:0},x),e.createElement(re.Section,{className:C(k.image,"pointer")},e.createElement(U,Object.assign({ratio:N},d),e.createElement("img",{src:(w?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{objectFit:"cover"}}))),e.createElement(re.Section,null,e.createElement(se,{position:"apart",mt:16,mb:4},e.createElement(R,{className:k.category,href:(null===(a=null==o?void 0:o.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(p,{size:"p4",color:"blue.6"},null===(n=null==o?void 0:o.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(ne,{sx:{cursor:"pointer"},role:"button",onClick:u},g?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},null==v?void 0:v.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(p,{className:C(k.title,"pointer"),size:m?"s2":"s1",mb:8,weight:"semiBold"},o.postTitle||o.postName||""),!m&&e.createElement(p,{className:C(k.description,"pointer"),size:"p2",mb:16,lineClamp:3},xe(o.excerpt||o.description||(null===(l=o.postContent)||void 0===l?void 0:l.split("\r\n")[0])||"")),e.createElement(le,{className:k.author,gap:12,align:"center"},e.createElement(W,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),e.createElement(p,{size:"n1",c:"gray.6"},r," • ",h))))},Pa=t=>{var{variant:a="vertical"}=t,n=te(t,["variant"]);return"horizontal"===a?e.createElement(Na,Object.assign({},n)):e.createElement(Sa,Object.assign({},n))},Da=Ie.a`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 125px;
|
|
4
4
|
|