@hhgtech/hhg-components 1.28.34 → 1.28.35
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.js +1 -1
- package/build/{constants-e39882d7.js → constants-726f75de.js} +1 -1
- package/build/{constants-40d8e654.js → constants-c397b152.js} +1 -1
- package/build/constants.js +1 -1
- package/build/core-4602825d.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +4 -4
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-9cbd1b11.js → constants-06083c39.js} +1 -1
- package/build/esm/{constants-eaf6c51c.js → constants-54937396.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-887f9a5d.js → core-7b00c0e3.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-f08feeaf.js → getDynamicHealthTool-18567743.js} +1 -1
- package/build/esm/{getSocialList-48723f32.js → getSocialList-b274bbf9.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-0b6cd675.js +1 -0
- package/build/esm/{index-0bc6ed09.js → index-0d048082.js} +1 -1
- package/build/esm/{index-a0ed112f.js → index-0d739df3.js} +1 -1
- package/build/esm/{index-456e07e9.js → index-19d6e493.js} +1 -1
- package/build/esm/{index-76f80354.js → index-26732bc8.js} +7 -7
- package/build/esm/{index-79f993e1.js → index-2ad11d68.js} +6 -6
- package/build/esm/{index-dcd77e56.js → index-2eb76153.js} +1 -1
- package/build/esm/{index-5856050d.js → index-4c59e854.js} +1 -1
- package/build/esm/{index-2f08d8b2.js → index-61b510c9.js} +1 -1
- package/build/esm/{index-ca22339d.js → index-6803e2f2.js} +1 -1
- package/build/esm/{index-b7b39aa3.js → index-6b632496.js} +1 -1
- package/build/esm/{index-f851ab1f.js → index-911ff28a.js} +1 -1
- package/build/esm/{index-905a68a4.js → index-c224c645.js} +1 -1
- package/build/esm/{index-7e96cd7e.js → index-c573407d.js} +1 -1
- package/build/esm/{index-c8b8773c.js → index-cc5735d3.js} +1 -1
- package/build/esm/index-d48e481e.js +1 -0
- package/build/esm/{index-67f13f4c.js → index-d54f80f3.js} +1 -1
- package/build/esm/{index-68163270.js → index-d772e106.js} +1 -1
- package/build/esm/{index-3182f4c8.js → index-d943277b.js} +14 -14
- package/build/esm/{index-cca1a97c.js → index-db160921.js} +1 -1
- package/build/esm/index-fa9d0948.js +1 -0
- package/build/esm/index-feacc1bb.js +1 -0
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-80c60a9e.js → index.styled-46a73cde.js} +6 -6
- package/build/esm/{index.styled-d8252a1f.js → index.styled-6d8c2436.js} +1 -1
- package/build/esm/{index.styled-f34b713c.js → index.styled-c22aa342.js} +1 -1
- package/build/esm/index.styled-fac84ed8.js +50 -0
- package/build/esm/{index.styles-5d09f3e9.js → index.styles-e55de146.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +9 -9
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-7acb688f.js → routing-4b2567b9.js} +1 -1
- package/build/esm/subot.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-87783fd3.js → types-416f316b.js} +1 -1
- package/build/esm/{types-41075c37.js → types-5cc7e426.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-dfd51998.js → useCategory-f09c0218.js} +1 -1
- package/build/esm/useHealthToolCache-df731a08.js +1 -0
- package/build/esm/{usePlacesAutocomplete-c740d776.js → usePlacesAutocomplete-10260e15.js} +1 -1
- package/build/esm/{useRafState-2ebb1185.js → useRafState-2c97b94f.js} +1 -1
- package/build/esm/{useTranslations-1416cdcc.js → useTranslations-d8df7d65.js} +1 -1
- package/build/esm/{utils-0e7436d5.js → utils-81962957.js} +1 -1
- package/build/esm/{utils-563dbd48.js → utils-835d4db7.js} +1 -1
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-c1365649.js → getDynamicHealthTool-82fe270c.js} +1 -1
- package/build/{getSocialList-34d66f28.js → getSocialList-6be3fefa.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-45b4b3e9.js → index-00e19679.js} +1 -1
- package/build/{index-5846d58b.js → index-11947038.js} +1 -1
- package/build/{index-c7f012bf.js → index-1c2f6c28.js} +1 -1
- package/build/{index-1b728b12.js → index-1d0c568a.js} +1 -1
- package/build/index-3ee3b3cf.js +1 -0
- package/build/{index-17dfa7a9.js → index-54d36029.js} +1 -1
- package/build/{index-ccefd6eb.js → index-5682d171.js} +2 -2
- package/build/{index-dad777d8.js → index-64635fb4.js} +1 -1
- package/build/{index-99f21fc5.js → index-65d642e7.js} +1 -1
- package/build/{index-d1fd4d52.js → index-69ba0774.js} +1 -1
- package/build/{index-e43cc32d.js → index-884a509d.js} +1 -1
- package/build/{index-854f1e36.js → index-943aa021.js} +1 -1
- package/build/{index-a0f049ef.js → index-97fda56b.js} +1 -1
- package/build/{index-16272593.js → index-9e1da0ee.js} +1 -1
- package/build/index-aa9718f1.js +1 -0
- package/build/{index-c85ab594.js → index-b4764862.js} +1 -1
- package/build/index-b6c92d6d.js +1 -0
- package/build/{index-d1eeaaef.js → index-c7d0c270.js} +1 -1
- package/build/{index-0c939a95.js → index-cdf4c565.js} +1 -1
- package/build/{index-b15a75d9.js → index-e3970aeb.js} +1 -1
- package/build/{index-992d38d2.js → index-ef957176.js} +1 -1
- package/build/{index-f137af39.js → index-f163ff61.js} +1 -1
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-f695d1b6.js → index.styled-563af73e.js} +1 -1
- package/build/{index.styled-086a71a8.js → index.styled-aa832b7c.js} +3 -3
- package/build/{index.styled-245eaa42.js → index.styled-c87b2587.js} +1 -1
- package/build/{index.styled-c3edb2b9.js → index.styled-ea2e2d8f.js} +1 -1
- package/build/{index.styles-bc0acea0.js → index.styles-8bca236c.js} +5 -5
- 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-a3a546b6.js → routing-d0bfcc30.js} +1 -1
- package/build/subot.js +1 -1
- package/build/together.js +1 -1
- package/build/{types-a3e9e643.js → types-3785bf95.js} +1 -1
- package/build/{types-f6913792.js → types-49cbbac9.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-78ec9de7.js → useCategory-8e19b607.js} +1 -1
- package/build/useHealthToolCache-00ad982d.js +1 -0
- package/build/{usePlacesAutocomplete-c93a598a.js → usePlacesAutocomplete-dbe03117.js} +1 -1
- package/build/{useRafState-2d73039f.js → useRafState-dfe297b8.js} +1 -1
- package/build/{useTranslations-eb6e3a4e.js → useTranslations-d5cf41a3.js} +1 -1
- package/build/{utils-86177cc2.js → utils-76f22f3b.js} +1 -1
- package/build/utils-d08dfeed.js +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-1e09b2f5.js +0 -1
- package/build/esm/index-02bce746.js +0 -1
- package/build/esm/index-0e19b1ab.js +0 -1
- package/build/esm/index-301f2dee.js +0 -1
- package/build/esm/index-40c22fc9.js +0 -1
- package/build/esm/index.styled-a3e34614.js +0 -50
- package/build/esm/useHealthToolCache-94b80796.js +0 -1
- package/build/index-6fd6134a.js +0 -1
- package/build/index-acfb0ce9.js +0 -1
- package/build/index-caefb49b.js +0 -1
- package/build/useHealthToolCache-b53abfff.js +0 -1
- package/build/utils-b5dfd4e1.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-f2d6dfe0.js → BMI_BOYS.percentile.monthly-0ec27878.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-af266ffa.js → BMI_BOYS.percentile.weekly-4d569734.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-3197405f.js → BMI_BOYS.percentile.yearly-31b412eb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-d5f610e1.js → BMI_BOYS.zscore.monthly-2488d71f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-6f8488f2.js → BMI_BOYS.zscore.weekly-b10f3ef1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-91349a66.js → BMI_BOYS.zscore.yearly-68623c3d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-c7e89fd9.js → BMI_GIRLS.percentile.monthly-c1506d58.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-8e6b805d.js → BMI_GIRLS.percentile.weekly-7e7cda8a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-1705eb83.js → BMI_GIRLS.percentile.yearly-1a60da42.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-10ce2285.js → BMI_GIRLS.zscore.monthly-17d96d3b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-509ac723.js → BMI_GIRLS.zscore.weekly-5944ad7d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-30bfdb96.js → BMI_GIRLS.zscore.yearly-81b205b3.js} +0 -0
- /package/build/{ChevronDown-26ca1544.js → ChevronDown-ed323fc5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4d09785a.js → HEAD CIRCUM_BOYS.percentile.monthly-df341f5e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f2a3683b.js → HEAD CIRCUM_BOYS.percentile.weekly-376fdb05.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-325de807.js → HEAD CIRCUM_BOYS.percentile.yearly-6efc3424.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-c3653189.js → HEAD CIRCUM_BOYS.zscore.monthly-fdaf2dbf.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-64715859.js → HEAD CIRCUM_BOYS.zscore.weekly-9c7d7dfa.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8d5d4104.js → HEAD CIRCUM_BOYS.zscore.yearly-8b50d99c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-91394406.js → HEAD CIRCUM_GIRLS.percentile.monthly-94c95ddc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-dfecd4bb.js → HEAD CIRCUM_GIRLS.percentile.weekly-4c6f2727.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-60f7fc20.js → HEAD CIRCUM_GIRLS.percentile.yearly-16e0c0d3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0adfc823.js → HEAD CIRCUM_GIRLS.zscore.monthly-5bd001e8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-2ca5ea36.js → HEAD CIRCUM_GIRLS.zscore.weekly-50524d03.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-eabc2711.js → HEAD CIRCUM_GIRLS.zscore.yearly-7ced5098.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-c30c7db8.js → HEIGHT_BOYS.percentile.monthly-bd8aeb12.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-1b7c68af.js → HEIGHT_BOYS.percentile.weekly-6c368cae.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-7654ea26.js → HEIGHT_BOYS.percentile.yearly-4d255579.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-100631d7.js → HEIGHT_BOYS.zscore.monthly-07823cdb.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-3fb8192a.js → HEIGHT_BOYS.zscore.weekly-1f2d261c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-cfc53fb4.js → HEIGHT_BOYS.zscore.yearly-562f6aac.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-36a38507.js → HEIGHT_GIRLS.percentile.monthly-394875dd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d7cc3e36.js → HEIGHT_GIRLS.percentile.weekly-dc5223b5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-6e9eb89d.js → HEIGHT_GIRLS.percentile.yearly-ec1dd8b0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-9ef69581.js → HEIGHT_GIRLS.zscore.monthly-a61227f4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-a5a438a7.js → HEIGHT_GIRLS.zscore.weekly-810fbaba.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-aa9b3de3.js → HEIGHT_GIRLS.zscore.yearly-50ce0a8f.js} +0 -0
- /package/build/{Subot-5e3788b9.js → Subot-ab83b6e8.js} +0 -0
- /package/build/{Visible-c561d877.js → Visible-8fe90e27.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-7b0b5579.js → WEIGHT_BOYS.percentile.monthly-35e4e540.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-650a1141.js → WEIGHT_BOYS.percentile.weekly-93c1552f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-ef733c0a.js → WEIGHT_BOYS.percentile.yearly-09b2c973.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-baa0cef6.js → WEIGHT_BOYS.zscore.monthly-bf7ac6f2.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-e7080454.js → WEIGHT_BOYS.zscore.weekly-377fac0f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-c51dfe8a.js → WEIGHT_BOYS.zscore.yearly-caf8de99.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-78b66e11.js → WEIGHT_GIRLS.percentile.monthly-59251654.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-5df91708.js → WEIGHT_GIRLS.percentile.weekly-bca687c9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-a7ad83a0.js → WEIGHT_GIRLS.percentile.yearly-c268cb57.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-37aeb739.js → WEIGHT_GIRLS.zscore.monthly-e8e7e4ec.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-cdb5a619.js → WEIGHT_GIRLS.zscore.weekly-802d8a32.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-10f7b113.js → WEIGHT_GIRLS.zscore.yearly-86dfa395.js} +0 -0
- /package/build/{cookieHelper-faead274.js → cookieHelper-92ea0a20.js} +0 -0
- /package/build/{dataTransform-4e01afe7.js → dataTransform-fa42cb61.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-237c26c1.js → BMI_BOYS.percentile.monthly-d0325ab2.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-5e217121.js → BMI_BOYS.percentile.weekly-2d099f4d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-b7c24b07.js → BMI_BOYS.percentile.yearly-22655d07.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-caee541a.js → BMI_BOYS.zscore.monthly-dfc23aee.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-248bd6a3.js → BMI_BOYS.zscore.weekly-a1f8eeb8.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-c4c5bebc.js → BMI_BOYS.zscore.yearly-1385d138.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-7cf5b7a8.js → BMI_GIRLS.percentile.monthly-14cfb09c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-2c920355.js → BMI_GIRLS.percentile.weekly-ec1043ad.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-2913ce0d.js → BMI_GIRLS.percentile.yearly-3ec36c93.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-a9ca6049.js → BMI_GIRLS.zscore.monthly-f188295b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-7686cd52.js → BMI_GIRLS.zscore.weekly-b655ff24.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-0fe95249.js → BMI_GIRLS.zscore.yearly-6ad44499.js} +0 -0
- /package/build/esm/{ChevronDown-2b150c99.js → ChevronDown-b57b4a27.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-9ab3e376.js → HEAD CIRCUM_BOYS.percentile.monthly-49ebc707.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-b419210c.js → HEAD CIRCUM_BOYS.percentile.weekly-c005f4e3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-47c58312.js → HEAD CIRCUM_BOYS.percentile.yearly-b800cb24.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-573a0db9.js → HEAD CIRCUM_BOYS.zscore.monthly-6610b76f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6d69c852.js → HEAD CIRCUM_BOYS.zscore.weekly-b5318fa3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-22f44323.js → HEAD CIRCUM_BOYS.zscore.yearly-65685624.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-484fc054.js → HEAD CIRCUM_GIRLS.percentile.monthly-ee6cef4c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-ce9ad0ad.js → HEAD CIRCUM_GIRLS.percentile.weekly-5ff03c01.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-5ba8609b.js → HEAD CIRCUM_GIRLS.percentile.yearly-f50b2018.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-09f228c4.js → HEAD CIRCUM_GIRLS.zscore.monthly-ef066007.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0d16214e.js → HEAD CIRCUM_GIRLS.zscore.weekly-0054026e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-69196152.js → HEAD CIRCUM_GIRLS.zscore.yearly-b0e355d4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-73475699.js → HEIGHT_BOYS.percentile.monthly-21c2a2a2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-aaa9c5d2.js → HEIGHT_BOYS.percentile.weekly-94823e80.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-19ed1ac7.js → HEIGHT_BOYS.percentile.yearly-86e415d4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-6af8892b.js → HEIGHT_BOYS.zscore.monthly-dec2158f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-344ab143.js → HEIGHT_BOYS.zscore.weekly-b7e28d96.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-eb3a4e83.js → HEIGHT_BOYS.zscore.yearly-62c1caee.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8b6c42e4.js → HEIGHT_GIRLS.percentile.monthly-54ee3b6d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-74469212.js → HEIGHT_GIRLS.percentile.weekly-d78729a6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3f9ee629.js → HEIGHT_GIRLS.percentile.yearly-18b7481d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c6a7dc2d.js → HEIGHT_GIRLS.zscore.monthly-1651c5df.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e27c7b61.js → HEIGHT_GIRLS.zscore.weekly-0591cfa1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-72d00068.js → HEIGHT_GIRLS.zscore.yearly-3347eeaf.js} +0 -0
- /package/build/esm/{Subot-0c4dab43.js → Subot-67816106.js} +0 -0
- /package/build/esm/{Visible-c68224a8.js → Visible-254f3d0e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-38ddd06a.js → WEIGHT_BOYS.percentile.monthly-82144cc4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a0349b82.js → WEIGHT_BOYS.percentile.weekly-caf2756d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-4aa28c2a.js → WEIGHT_BOYS.percentile.yearly-39c389a6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-285f7f43.js → WEIGHT_BOYS.zscore.monthly-1d96fdf6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7fdcfb45.js → WEIGHT_BOYS.zscore.weekly-6d7dc5c3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-67512a08.js → WEIGHT_BOYS.zscore.yearly-5befa2e9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-687fcbb9.js → WEIGHT_GIRLS.percentile.monthly-62e45d9b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9c8ebcfb.js → WEIGHT_GIRLS.percentile.weekly-4b315673.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bb43d716.js → WEIGHT_GIRLS.percentile.yearly-ae777fbd.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-6ea1cc38.js → WEIGHT_GIRLS.zscore.monthly-e1a711b3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-589c96d0.js → WEIGHT_GIRLS.zscore.weekly-282cb95e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-293c72b6.js → WEIGHT_GIRLS.zscore.yearly-9d5c2c49.js} +0 -0
- /package/build/esm/{cookieHelper-f205b169.js → cookieHelper-715a63ab.js} +0 -0
- /package/build/esm/{dataTransform-4b79e9fc.js → dataTransform-a9f8f8e1.js} +0 -0
- /package/build/esm/{index-bb150c0d.js → index-09ba8680.js} +0 -0
- /package/build/esm/{index-bc96f01d.js → index-3afa303d.js} +0 -0
- /package/build/esm/{index-ebc484da.js → index-c1076bbe.js} +0 -0
- /package/build/esm/{isProduction-095ab64f.js → isProduction-0005bed8.js} +0 -0
- /package/build/esm/{localizeNumberFormat-6ec4b13f.js → localizeNumberFormat-eee5e088.js} +0 -0
- /package/build/esm/{normalizeLink-730f7beb.js → normalizeLink-0a824393.js} +0 -0
- /package/build/esm/{number-6d1e5da0.js → number-89aaa53f.js} +0 -0
- /package/build/esm/{paths-d8c26a48.js → paths-d6be3159.js} +0 -0
- /package/build/esm/{screenSizeContext-268f62ee.js → screenSizeContext-5ebd7a94.js} +0 -0
- /package/build/esm/{theme-c91f8447.js → theme-11c43794.js} +0 -0
- /package/build/esm/{translationsContext-8d25a828.js → translationsContext-66e27067.js} +0 -0
- /package/build/esm/{tslib.es6-89288f42.js → tslib.es6-caf7391f.js} +0 -0
- /package/build/esm/{types-4b3c5426.js → types-2c168c1f.js} +0 -0
- /package/build/esm/{useIsInit-6890e3ae.js → useIsInit-4dcae46f.js} +0 -0
- /package/build/esm/{useOutsideClick-fcf2d8f9.js → useOutsideClick-70e02ea6.js} +0 -0
- /package/build/esm/{useScrollbarSize-53042c16.js → useScrollbarSize-e55adedb.js} +0 -0
- /package/build/{index-87fb4741.js → index-14a0aaa0.js} +0 -0
- /package/build/{index-65b4e1df.js → index-6b48c527.js} +0 -0
- /package/build/{index-dd93f3f7.js → index-b0c9f344.js} +0 -0
- /package/build/{isProduction-a6dab3b8.js → isProduction-e32c6264.js} +0 -0
- /package/build/{localizeNumberFormat-68c605b4.js → localizeNumberFormat-b4689cfc.js} +0 -0
- /package/build/{normalizeLink-b08e7017.js → normalizeLink-c8b10f92.js} +0 -0
- /package/build/{number-824f5e2e.js → number-79be583e.js} +0 -0
- /package/build/{paths-cb533948.js → paths-0f77a743.js} +0 -0
- /package/build/{screenSizeContext-d1f3171e.js → screenSizeContext-73ba8961.js} +0 -0
- /package/build/{theme-9886c9e0.js → theme-1f10ec25.js} +0 -0
- /package/build/{translationsContext-510e154b.js → translationsContext-12eebeb5.js} +0 -0
- /package/build/{tslib.es6-5d58d708.js → tslib.es6-a7206fdf.js} +0 -0
- /package/build/{types-16b33149.js → types-90377b59.js} +0 -0
- /package/build/{useIsInit-10070617.js → useIsInit-46f8a417.js} +0 -0
- /package/build/{useOutsideClick-d814cc9a.js → useOutsideClick-42bd02d5.js} +0 -0
- /package/build/{useScrollbarSize-efc94491.js → useScrollbarSize-3144238a.js} +0 -0
package/build/esm/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{B as t}from"./index-c8b8773c.js";import{C as a}from"./index-ebc484da.js";import l from"dayjs";import{d as n}from"./index-b7b39aa3.js";import{t as o}from"./theme-c91f8447.js";import"./index-ca22339d.js";import{Flex as i,Stack as r,Box as c}from"@mantine/core";import"@mantine/dates";import"./Subot-0c4dab43.js";import"./gAssets.js";import{T as m}from"./index-dcd77e56.js";import"./screenSizeContext-268f62ee.js";import"styled-components";import"./isProduction-095ab64f.js";import{u as s}from"./useTranslations-1416cdcc.js";import"@mantine/hooks";import{L as d}from"./index-456e07e9.js";import{M as v}from"./index-40c22fc9.js";import"./translationsContext-8d25a828.js";import"string-format";import"./tslib.es6-89288f42.js";import"date-fns/locale";import"@mantine/carousel";import"classnames";import"lodash/throttle";import"./utils-0e7436d5.js";import"./index.styled-f34b713c.js";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,b,N,h,k,F,z,$,x,T,j,M,C,L,_,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===(b=null==c?void 0:c.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==c?void 0:c.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(m,{size:"sm",className:"linkTitle"},null===(z=K[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=K[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.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===(T=K[2])||void 0===T?void 0:T.menu_title),null===(M=null===(j=K[2])||void 0===j?void 0:j.items)||void 0===M?void 0:M.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===(C=null==c?void 0:c.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==c?void 0:c.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.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",b="qc5bEb3",N="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const z=({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(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}))))))))},$=({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(z,{footerMenu:n,background:i});export{$ as Footer};
|
|
1
|
+
import e from"react";import{B as t}from"./index-cc5735d3.js";import{C as a}from"./index-c1076bbe.js";import l from"dayjs";import{d as n}from"./index-6b632496.js";import{t as o}from"./theme-11c43794.js";import"./index-6803e2f2.js";import{Flex as i,Stack as r,Box as m}from"@mantine/core";import"@mantine/dates";import"./Subot-67816106.js";import"./gAssets.js";import{T as c}from"./index-2eb76153.js";import"./screenSizeContext-5ebd7a94.js";import"styled-components";import"./isProduction-0005bed8.js";import{u as s}from"./useTranslations-d8df7d65.js";import"@mantine/hooks";import{L as d}from"./index-19d6e493.js";import{M as v}from"./index-feacc1bb.js";import"./translationsContext-66e27067.js";import"string-format";import"./tslib.es6-caf7391f.js";import"date-fns/locale";import"@mantine/carousel";import"classnames";import"lodash/throttle";import"./utils-81962957.js";import"./index.styled-c22aa342.js";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,$,x,T,j,M,C,L,_,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===(z=K[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=K[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.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===(T=K[2])||void 0===T?void 0:T.menu_title),null===(M=null===(j=K[2])||void 0===j?void 0:j.items)||void 0===M?void 0:M.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===(C=null==m?void 0:m.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==m?void 0:m.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.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 z=({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}))))))))},$=({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(z,{footerMenu:n,background:i});export{$ as Footer};
|
package/build/esm/gAssets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s}from"./index-
|
|
1
|
+
import{d as s}from"./index-6b632496.js";import{i as t}from"./isProduction-0005bed8.js";import"date-fns/locale";import"./Subot-67816106.js";const e="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,e,o)=>{const i="https://hhg-common."+[e||this.getBaseDomain(),o||this.subPath,s].join("/");return t||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:t}=window.location,o=t.split("."),i=s[Object.keys(s).find((e=>t.includes(s[e])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return t=s,!isNaN(parseFloat(t))&&isFinite(t);var t}))||!i?e:i}return e}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-caf7391f.js";import{g as o}from"./core-7b00c0e3.js";import{n as i}from"./normalizeLink-0a824393.js";import{c as l}from"./routing-4b2567b9.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=o=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===o?"lang=fil":"";let a=[];try{const r=yield fetch(i(`${l(o)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,o))))||[]}catch(t){}return a}catch(t){console.error(t)}})),s=i=>t(void 0,void 0,void 0,(function*(){return(yield o("all-health-tools",(()=>e(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{L as t}from"./Subot-
|
|
1
|
+
import e from"react";import{L as t}from"./Subot-67816106.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
|
package/build/esm/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as useInitialMount,u as useTranslations,b as useUniqueId}from"./useTranslations-
|
|
1
|
+
export{a as useInitialMount,u as useTranslations,b as useUniqueId}from"./useTranslations-d8df7d65.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-e55adedb.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-2c97b94f.js";export{u as useHealthToolsCache}from"./useHealthToolCache-df731a08.js";export{u as useIsInit}from"./useIsInit-4dcae46f.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-70e02ea6.js";export{M as MAPPED_CATEGORY_SLUGS,P as PREGNANCY_SLUG,u as useCategory}from"./useCategory-f09c0218.js";import"react";import"./translationsContext-66e27067.js";import"string-format";import"lodash/debounce";import"./tslib.es6-caf7391f.js";import"./cookieHelper-715a63ab.js";import"./getDynamicHealthTool-18567743.js";import"./core-7b00c0e3.js";import"./isProduction-0005bed8.js";import"./normalizeLink-0a824393.js";import"./routing-4b2567b9.js";import"./index-6b632496.js";import"date-fns/locale";import"./Subot-67816106.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as s}from"./translationsContext-
|
|
1
|
+
import{T as s}from"./translationsContext-66e27067.js";export{T as TranslationsContext}from"./translationsContext-66e27067.js";import o,{useState as e,useEffect as r,useMemo as t}from"react";import i from"./i18n-values/en-PH.js";import n from"./i18n-values/hi-IN.js";import a from"./i18n-values/id-ID.js";import l from"./i18n-values/km-KH.js";import m from"./i18n-values/ms-MY.js";import v from"./i18n-values/my-MM.js";import j from"./i18n-values/th-TH.js";import u from"./i18n-values/tl-PH.js";import p from"./i18n-values/vi-VN.js";import c from"./i18n-values/vi-VN_MB.js";import f from"./i18n-values/zh-TW.js";const d={"en-PH":i,"vi-VN":p,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":v,"km-KH":l,"zh-TW":f,"th-TH":j,"tl-PH":u,"vi-VN_MB":c},h=({locale:i="en-PH",overrides:n,overrideCurrentLocale:a,children:l,shouldLoadTranslation:m=!0,loader:v=null,onTranslationsLoaded:j})=>{const u=n&&n[i]||a,[p,c]=e((()=>Object.assign(Object.assign({},u),m?d[i]:{})));r((()=>{c(Object.assign(Object.assign({},u),m?d[i]:{}))}),[m,i]);const f=t((()=>p?{locale:i,values:p}:null),[i,p]);return r((()=>{j&&Object.keys(p).length&&j(p)}),[p]),o.createElement(s.Provider,{value:f},f?l:v)};export{h as TranslationsProvider,d as translationsMap};
|
package/build/esm/i18nV2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as
|
|
1
|
+
import{T as e}from"./translationsContext-66e27067.js";export{T as TranslationsContext}from"./translationsContext-66e27067.js";import t,{useMemo as o}from"react";const r=({locale:r="en-PH",values:n,children:a})=>{const l=o((()=>n?{locale:r,values:n}:null),[r,n]);return t.createElement(e.Provider,{value:l},a)};export{r as TranslationsProvider};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"./tslib.es6-caf7391f.js";import e from"react";import"./index-6803e2f2.js";import"@mantine/core";import"@mantine/dates";import"./index-6b632496.js";import"./Subot-67816106.js";import"./gAssets.js";import{T as o}from"./index-2eb76153.js";import"dayjs";import"./screenSizeContext-5ebd7a94.js";import"styled-components";import"./theme-11c43794.js";import"./isProduction-0005bed8.js";import"./translationsContext-66e27067.js";import"string-format";import"@mantine/hooks";const i=i=>{var{size:s="base",type:r="regular"}=i,m=t(i,["size","type"]);return e.createElement(o,Object.assign({size:s,weight:"caption"===r?"bold":r},m))};export{i as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-caf7391f.js";import a,{useMemo as t}from"react";import{useMantineTheme as s}from"@mantine/core";import{S as o,L as n,a as r,b as l,d as i}from"./constants-06083c39.js";const c=c=>{var{name:m,value:d,errorMessage:p,isNumerousKeyboard:u=!1,showErrorMessage:y=!0,actionIcon:b,displayIcon:C,onActionClick:v,label:g,className:h,onChange:E,isDisabled:N,CustomInput:f,size:I,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":I,className:h,"data-has-action-icon":!!b||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"}},f||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),b&&a.createElement(l,{className:"actionIcon",onClick:v},b)),p&&p.length>0&&y&&a.createElement(i,{className:"errorLabel"},p))};export{c as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as t,useRef as o,useEffect as d}from"react";import{u as a}from"./useScrollbarSize-
|
|
1
|
+
import e,{useState as t,useRef as o,useEffect as d}from"react";import{u as a}from"./useScrollbarSize-e55adedb.js";import{createPortal as l}from"react-dom";import{S as c,a as n,b as r}from"./index-2ad11d68.js";const s="hhg-modals",m=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},i=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},h=({type:h="lead",closeIcon:u,isOpen:p=!0,onClose:y,children:g,className:b="",animationType:v="slideTop",isStaticBackdrop:_=!1,siteType:f})=>{const[E,w]=t(!1),C=o(null),{width:N}=a();if(!C.current&&E&&(C.current=document.createElement("div")),d((()=>(w(!0),()=>{w(!1),m(),i()})),[]),d((()=>{if(E){const e=(()=>{let e=document.getElementById(s);return e||(e=document.createElement("div"),e.setAttribute("id",s),document.body.append(e)),e})();return e.appendChild(C.current),()=>{e.removeChild(C.current)}}}),[E]),d((()=>{p?document.body.classList.add("hhc-modal-show"):m()}),[p]),d((()=>{p?(document.body.style.overflow="hidden",document.body.style.paddingRight=N+"px",document.body.classList.add("hhc-disabled-scroll")):i()}),[p,N]),!E)return null;const S=["hhg-modal__wrapper",b,v].filter((e=>e)).join(" ");return l(e.createElement(c,{className:S,"data-open":p,"data-type":h},!_&&e.createElement(n,{"data-open":p,onClick:y,"data-type":h}),!_&&"video"===h&&!!u&&e.createElement("div",{className:"hhg-modal__close",onClick:y},u),e.createElement(r,{className:"hhg-modal","data-open":p,"data-site-type":f},e.createElement("div",{className:"video"===h?"hhg-modal__video":"hhg-modal__content"},!!u&&"video"!==h&&e.createElement("div",{className:"hhg-modal__close",onClick:y},u),g))),C.current)};export{h as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import a,{useState as e,useEffect as t}from"react";import{L as s}from"./Subot-
|
|
1
|
+
import a,{useState as e,useEffect as t}from"react";import{L as s}from"./Subot-67816106.js";import{CommonGAssets as l}from"./gAssets.js";import{i as o,a as n,b as r,c as g,d as m,e as i,f as c,g as h,S as d,L as u,h as N}from"./utils-81962957.js";import{I as y}from"./index-6803e2f2.js";const f=({type:f,className:w,style:p,isLightLogo:E,customSize:A,badge:P,locale:L,dateForSeasonal:b,isPro:V})=>{const[z,Y]=e({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1});return t((()=>{if(!b||isNaN(new Date(b).getTime()))return;const a=new Date(b),e=o(a),t=n.includes(L)&&r(a),l=!t&&g(a),d=m(a),u=L===s.Vietnam&&i(a),N=L===s.Vietnam&&c(a),y=L===s.Vietnam&&h(a);Y({isChristmas:e,isLunarNewYear:t,isNewYear:l,isRamadan:d,isVNHungKing:u,isVN3004:N,isLabourDay:y})}),[L,new Date(b).getDate()]),a.createElement(d,{className:w,style:p,"data-logo-is-light":E||void 0,"data-has-badge":!!P,"data-seasonal":z.isRamadan?"ramadan":z.isChristmas?"christmas":z.isLunarNewYear?"lunar-new-year":z.isNewYear?"new-year":z.isVNHungKing?"hung-king":z.isVN3004?"30-04":z.isLabourDay?"labour-day":void 0,"data-type":f},z.isChristmas?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left xmas logo",src:l.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right xmas logo",src:l.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):z.isNewYear?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left new year logo",src:l.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right new year logo",src:l.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):z.isLunarNewYear?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):z.isRamadan&&"hellosehat"===f?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):z.isRamadan&&"hellodoktor"===f?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):!z.isVNHungKing||"hellobacsi"!==f&&"marryBaby"!==f?null:a.createElement(a.Fragment,null,a.createElement(y,{alt:"Hung King logo",loading:"lazy",src:l.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})),a.createElement(u,{type:f,width:null==A?void 0:A.width,height:null==A?void 0:A.height}),V?a.createElement(N,{src:l.getAssetPath("logo/pro-suffix.svg")}):null,P)};export{f as L};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useContext as i,useState as t
|
|
1
|
+
import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenSizeContext-5ebd7a94.js";import l from"styled-components";import{_ as n}from"./tslib.es6-caf7391f.js";import{b as a}from"./index.styles-e55de146.js";const r=l.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 50%;
|
|
4
4
|
|
|
@@ -34,16 +34,16 @@ import e,{useContext as i,useState as t,useEffect as o}from"react";import{M as n
|
|
|
34
34
|
&[data-type='form'] {
|
|
35
35
|
width: 496px;
|
|
36
36
|
height: 548px;
|
|
37
|
-
${
|
|
37
|
+
${o.mbDown} {
|
|
38
38
|
width: 340px;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&[data-type='confirm'] {
|
|
43
|
-
${
|
|
43
|
+
${o.mbDown} {
|
|
44
44
|
width: calc(100% - 32px);
|
|
45
45
|
}
|
|
46
|
-
${
|
|
46
|
+
${o.mbUp} {
|
|
47
47
|
width: 100%;
|
|
48
48
|
max-width: 407px;
|
|
49
49
|
}
|
|
@@ -68,7 +68,7 @@ import e,{useContext as i,useState as t,useEffect as o}from"react";import{M as n
|
|
|
68
68
|
border-radius: 50%;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`,
|
|
71
|
+
`,d=l.div`
|
|
72
72
|
position: fixed;
|
|
73
73
|
z-index: 110;
|
|
74
74
|
top: 0;
|
|
@@ -81,7 +81,7 @@ import e,{useContext as i,useState as t,useEffect as o}from"react";import{M as n
|
|
|
81
81
|
&[data-open='false'] {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
84
|
-
`,u=({type:i="lead",closeIcon:t,isOpen:o=!0,onClose:n,children:l,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:n},t),l)),e.createElement(s,{"data-open":o,onClick:n})),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:n,banner_mobile:l}=e,r=a(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(o),bannerDesktop:n||"",bannerMobile:l||""},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,n;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===(n=null==e?void 0:e.reviewed)||void 0===n?void 0:n.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,n;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===(n=e.community)||void 0===n?void 0:n.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},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,n,l,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,n,l;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===(n=e.community)||void 0===n?void 0:n.slug)||"",communityName:(null===(l=e.community)||void 0===l?void 0:l.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===(n=e.community)||void 0===n?void 0:n.slug)||"",isActive:!0,isHidden:Boolean(null===(l=e.community)||void 0===l?void 0:l.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,n,l,a,r,d,s,u,m,v,c,p,_,g,y,f,b,h,w,k,x,I,C,S,T,B,D,N,j,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===(n=e.user)||void 0===n?void 0:n.role)?null===(a=null===(l=e.user)||void 0===l?void 0:l.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===(N=e.mentioned)||void 0===N?void 0:N.hospital_id)?String(null===(j=e.mentioned)||void 0===j?void 0:j.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,n,l,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!==(n=null==e?void 0:e.suggestion)&&void 0!==n?n:""}],chartData:(null===(l=null==e?void 0:e.chart_data)||void 0===l?void 0:l.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 N=l.div`
|
|
84
|
+
`,s=({type:i="lead",closeIcon:t,isOpen:o=!0,onClose:l,children:n,className:a="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(r,{"data-open":o,"data-type":i,"data-animation":s},e.createElement("div",{className:`${a||""} popup-content`},!!t&&e.createElement("div",{className:"close-button",onClick:l},t),n)),e.createElement(d,{"data-open":o,onClick:l})),u=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||""}:{},m=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}:{},v=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:a}=e,r=n(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(o),bannerDesktop:l||"",bannerMobile:a||""},r)},p={EN:"English",FIL:"Filipino"},_=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in p?p[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),g=e=>{var i,t,o,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?f(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:u(e.author),reviewer:e.reviewed_by&&u(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:y(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:y(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.editor),expert:y(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.expert),fact_check:y(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:h(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(h),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:m(e.expert),metaTag:e.meta_tag||null,spotlight:v(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:_(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:h(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:u(e.edit_last),subscriptionBanner:c(e.subscription_banner)}:{}},y=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,f=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},b=e=>({postTitle:e.post_title,permalink:e.permalink}),h=e=>{var i,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?f(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=>h(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?b(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>w(e))):null}:{}},w=e=>({title:e.title,content:e.content}),k=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},x=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)}:{},I=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)}:{}},C=e=>e?{answer:null==e?void 0:e.answer.map(T),expert:null==e?void 0:e.expert}:{},S=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:C(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},T=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,A,B,D,N,j,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(T):[],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===(A=e.mentioned)||void 0===A?void 0:A.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===(N=e.mentioned)||void 0===N?void 0:N.hospital_id)?String(null===(j=e.mentioned)||void 0===j?void 0:j.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))}:{}},A=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 B=Object.freeze({__proto__:null,formatAuthor:u,formatArticleExpert:m,formatSpotlightsSummary:v,TRANSLATE_LANGUAGES:p,formatTranslateOptions:_,formatArticle:g,formatUserProfile:y,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:f,formatReviewedCategory:b,formatCategory:h,formatCategoryApi:e=>e?{categoryInfo:h(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(g),subCategories:(e.data.sub_categories||[]).map(h)}:{},formatFaqsCategory:w,formatHealthTool:k,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=>k(e))))&&void 0!==t?t:[]}:{}},formatCommunity:x,formatTopic:I,formatExpertAnswer:C,formatPost:S,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:T,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?y(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:A,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?y(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:A(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 D=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,useEffect as o}from"react";import{M as n
|
|
|
114
114
|
background-color: ${e=>e.theme.mbColors.pink};
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,
|
|
117
|
+
`,N=o=>{var{className:l,isMarryBaby:r,style:d,avatar:s,username:u,size:m}=o,v=n(o,["className","isMarryBaby","style","avatar","username","size"]);const{data:{env:{isMarryBaby:c}}}=i(a),p="boolean"==typeof r?r:c,[_,g]=t(!1);return e.createElement(D,Object.assign({"data-is-marrybaby":p,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{s as P,N as U,S as a,x as b,g as c,B as d,h as e,A as f,I as g,T as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as i}from"@mantine/core";import{t as l,M as n}from"./screenSizeContext-
|
|
1
|
+
import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as i}from"@mantine/core";import{t as l,M as n}from"./screenSizeContext-5ebd7a94.js";import{J as r,K as s,L as d,M as m,N as c,O as p,Q as h}from"./index.styles-e55de146.js";import{T as u,I as b}from"./index-2eb76153.js";import g from"styled-components";import{u as x}from"./useTranslations-d8df7d65.js";import{G as y}from"./Subot-67816106.js";import{M as f,a as C}from"./index-feacc1bb.js";import{t as v}from"./theme-11c43794.js";import{T as w}from"./index-0b6cd675.js";const E=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),B=({children:o,title:n,onClose:r,open:c=!1,placement:p="left",destroyOnClose:h=!1,isPropagationEvent:b=!0,className:g})=>{const x=t();a((()=>(l(c),()=>l(!1))),[c]);const y=()=>{x.current.classList.add("slideOut"),setTimeout((()=>{r()}),800)};return!c&&h?null:e.createElement(i,null,e.createElement(s,{className:g,open:c},e.createElement(E,{open:c,onClickOutside:y}),e.createElement(d,{open:c,placement:p,ref:x,hasTitle:Boolean(n)},e.createElement("div",{className:"title"},n&&e.createElement(u,{size:"s2",weight:"semiBold"},n),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:y},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),e.createElement(m,{onClick:e=>{b&&e.stopPropagation()}},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:y}):null)))))},$=({value:t,options:a,className:i,direction:l="horizontal",onChange:n,isDisabled:r,siteType:s})=>{const[d,m]=o(t),h="marryBaby"===s;return e.createElement(c,{className:i,"data-direction":l},a.map(((a,o)=>e.createElement(p,{"data-selected":(t||d)===a.value,"data-is-mb":h,"data-disabled":r,key:o,onClick:()=>{var e;e=a.value,r||(m(e),n&&n(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(f,{type:"subtitle-2",color:(t||d)===a.value?v.mbColors.dark:v.mbColors.midGray},a.label):e.createElement(w,{type:"bold",color:(t||d)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))))))},k="hhgcomp-modal-modal",j=h(g.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
z-index: 200;
|
|
4
4
|
background-color: ${e=>e.theme.colors.white};
|
|
@@ -27,7 +27,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
|
|
|
27
27
|
background-color: none;
|
|
28
28
|
box-shadow: none;
|
|
29
29
|
}
|
|
30
|
-
`,k),z=
|
|
30
|
+
`,k),z=g.div`
|
|
31
31
|
position: fixed;
|
|
32
32
|
top: 0;
|
|
33
33
|
left: 0;
|
|
@@ -130,7 +130,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
`,L=
|
|
133
|
+
`,L=g.div`
|
|
134
134
|
position: fixed;
|
|
135
135
|
top: 0;
|
|
136
136
|
left: 0;
|
|
@@ -144,7 +144,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
|
|
|
144
144
|
&[data-type='video'] {
|
|
145
145
|
background-color: ${e=>e.theme.colors.secondaryDark};
|
|
146
146
|
}
|
|
147
|
-
`,G=
|
|
147
|
+
`,G=g.div`
|
|
148
148
|
& > :not(:last-child) {
|
|
149
149
|
margin-bottom: 8px;
|
|
150
150
|
}
|
|
@@ -162,7 +162,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
`,N=
|
|
165
|
+
`,N=g($)`
|
|
166
166
|
& > div > div {
|
|
167
167
|
display: flex;
|
|
168
168
|
flex-direction: row;
|
|
@@ -174,4 +174,4 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
|
|
|
174
174
|
.radio-group-item-heading {
|
|
175
175
|
margin-top: 0;
|
|
176
176
|
}
|
|
177
|
-
`,T=({value:t,onChange:a,siteType:o})=>{const{t:i}=x(),l="marryBaby"==o;return e.createElement(G,{"data-is-marryBaby":l},l?e.createElement(C,{type:"h4",color:v.mbColors.dark},i("tools.selectBabyGender")):e.createElement(u,{size:"label2",weight:"bold",style:{marginBottom:"0.5rem"}},i("tools.selectBabyGender")),e.createElement(N,{siteType:o,options:[{value:y.Boy,label:i("gender.male"),content:l?e.createElement(
|
|
177
|
+
`,T=({value:t,onChange:a,siteType:o})=>{const{t:i}=x(),l="marryBaby"==o;return e.createElement(G,{"data-is-marryBaby":l},l?e.createElement(C,{type:"h4",color:v.mbColors.dark},i("tools.selectBabyGender")):e.createElement(u,{size:"label2",weight:"bold",style:{marginBottom:"0.5rem"}},i("tools.selectBabyGender")),e.createElement(N,{siteType:o,options:[{value:y.Boy,label:i("gender.male"),content:l?e.createElement(b.BabyBoyMB,null):e.createElement(b.GenderChooseBoy,null)},{value:y.Girl,label:i("gender.female"),content:l?e.createElement(b.BabyGirlMB,null):e.createElement(b.GenderChooseGirl,null)}],value:t,onChange:a,className:"gender-selector"}))};export{T as B,B as D,$ as R,z as S,L as a,j as b};
|