@hhgtech/hhg-components 1.28.35 → 1.28.36
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 +30 -14
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/alert/index.d.ts +1 -2
- package/build/components/atoms/avatar/index.d.ts +1 -2
- package/build/components/atoms/divider/index.d.ts +1 -2
- package/build/components/atoms/fileDropdown/index.d.ts +1 -2
- package/build/components/atoms/heading/index.d.ts +1 -2
- package/build/components/atoms/marryBabyText/index.d.ts +1 -2
- package/build/components/atoms/marryBabyText/index.styled.d.ts +4 -2
- package/build/components/atoms/pagination/index.d.ts +1 -2
- package/build/components/mantine/slider/index.styled.d.ts +7 -1
- package/build/components/mantine/text/index.styled.d.ts +1 -9
- package/build/components/molecules/articleCard/_deprecated_index.d.ts +1 -2
- package/build/components/molecules/categoryCard/index.d.ts +1 -2
- package/build/components/molecules/dropdown/index.d.ts +1 -2
- package/build/components/molecules/dropdown/index.styled.d.ts +1 -1
- package/build/components/molecules/floatButtonGroup/index.d.ts +1 -2
- package/build/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -2
- package/build/components/molecules/tabs/index.d.ts +1 -2
- package/build/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -1
- package/build/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -8
- package/build/components.js +1 -1
- package/build/{constants-c397b152.js → constants-437bb4bf.js} +23 -23
- package/build/{constants-726f75de.js → constants-80dd2233.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-4602825d.js → core-80e9cff8.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +45 -29
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/alert/index.d.ts +1 -2
- package/build/esm/components/atoms/avatar/index.d.ts +1 -2
- package/build/esm/components/atoms/divider/index.d.ts +1 -2
- package/build/esm/components/atoms/fileDropdown/index.d.ts +1 -2
- package/build/esm/components/atoms/heading/index.d.ts +1 -2
- package/build/esm/components/atoms/marryBabyText/index.d.ts +1 -2
- package/build/esm/components/atoms/marryBabyText/index.styled.d.ts +4 -2
- package/build/esm/components/atoms/pagination/index.d.ts +1 -2
- package/build/esm/components/mantine/slider/index.styled.d.ts +7 -1
- package/build/esm/components/mantine/text/index.styled.d.ts +1 -9
- package/build/esm/components/molecules/articleCard/_deprecated_index.d.ts +1 -2
- package/build/esm/components/molecules/categoryCard/index.d.ts +1 -2
- package/build/esm/components/molecules/dropdown/index.d.ts +1 -2
- package/build/esm/components/molecules/dropdown/index.styled.d.ts +1 -1
- package/build/esm/components/molecules/floatButtonGroup/index.d.ts +1 -2
- package/build/esm/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -2
- package/build/esm/components/molecules/tabs/index.d.ts +1 -2
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -1
- package/build/esm/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -8
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-54937396.js → constants-4c45be75.js} +1 -1
- package/build/esm/{constants-06083c39.js → constants-c3b0c92c.js} +25 -25
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-7b00c0e3.js → core-5b21c19e.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-2e9a5548.js +1 -0
- package/build/esm/{getSocialList-b274bbf9.js → getSocialList-3e7a32e3.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-020361fe.js +177 -0
- package/build/esm/{index-c573407d.js → index-15c00b1c.js} +1 -1
- package/build/esm/{index-c224c645.js → index-17537d5b.js} +1 -1
- package/build/esm/index-1782f56e.js +1 -0
- package/build/esm/{index-6803e2f2.js → index-17d273a3.js} +5 -5
- package/build/esm/{index-fa9d0948.js → index-1b2689ee.js} +1 -1
- package/build/esm/{index-61b510c9.js → index-2eac1ec8.js} +1 -1
- package/build/esm/{index-cc5735d3.js → index-4eb2530b.js} +1 -1
- package/build/esm/{index-26732bc8.js → index-6536dd4e.js} +9 -9
- package/build/esm/index-6c2d86ad.js +1 -0
- package/build/esm/{index-d943277b.js → index-72cd7c00.js} +358 -361
- package/build/esm/{index-19d6e493.js → index-9d393a92.js} +1 -1
- package/build/esm/{index-4c59e854.js → index-9d86c3a8.js} +1 -1
- package/build/esm/index-a1e1a441.js +1 -0
- package/build/esm/{index-0d739df3.js → index-a60bd3f2.js} +1 -1
- package/build/esm/index-a903d8ce.js +1 -0
- package/build/esm/{index-0d048082.js → index-c22300e9.js} +1 -1
- package/build/esm/index-c9c584ed.js +1 -0
- package/build/esm/{index-2eb76153.js → index-e7f889b2.js} +1 -1
- package/build/esm/{index-d54f80f3.js → index-f0206e98.js} +1 -1
- package/build/esm/{index-db160921.js → index-f64ac5b4.js} +1 -1
- package/build/esm/{index-6b632496.js → index-f75306ca.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-c22aa342.js → index.styled-551f3c76.js} +5 -5
- package/build/esm/{index.styled-6d8c2436.js → index.styled-57535894.js} +178 -197
- package/build/esm/{index.styled-46a73cde.js → index.styled-5c99d64b.js} +233 -235
- package/build/esm/index.styled-780df456.js +50 -0
- package/build/esm/{index.styles-e55de146.js → index.styles-874b1834.js} +146 -160
- 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 +1 -1
- package/build/esm/{routing-4b2567b9.js → routing-a8a2d2fd.js} +1 -1
- package/build/esm/screenSizeContext-dff03e2b.js +81 -0
- package/build/esm/subot.js +129 -132
- package/build/esm/together/components/atoms/notificationBar/index.d.ts +1 -1
- package/build/esm/together/components/molecules/submitReportForm/index.d.ts +1 -2
- package/build/esm/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +0 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-5cc7e426.js → types-07a8f7f9.js} +1 -1
- package/build/esm/{types-416f316b.js → types-9b65a599.js} +15 -15
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-f09c0218.js → useCategory-8582dedd.js} +1 -1
- package/build/esm/useHealthToolCache-5b104f1e.js +1 -0
- package/build/esm/{usePlacesAutocomplete-10260e15.js → usePlacesAutocomplete-3f0cff61.js} +1 -1
- package/build/esm/{useRafState-2c97b94f.js → useRafState-27d2b972.js} +1 -1
- package/build/esm/{useTranslations-d8df7d65.js → useTranslations-14b7fcc5.js} +1 -1
- package/build/esm/{utils-835d4db7.js → utils-0b2c5aec.js} +1 -1
- package/build/esm/{utils-81962957.js → utils-cca2af3a.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-82fe270c.js → getDynamicHealthTool-fad842aa.js} +1 -1
- package/build/{getSocialList-6be3fefa.js → getSocialList-72284d55.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-ef957176.js → index-18823495.js} +1 -1
- package/build/index-18bee338.js +1 -0
- package/build/{index-1c2f6c28.js → index-24290a1e.js} +1 -1
- package/build/{index-884a509d.js → index-28f61b63.js} +1 -1
- package/build/{index-c7d0c270.js → index-3e31d08a.js} +1 -1
- package/build/index-3ec29f74.js +1 -0
- package/build/{index-cdf4c565.js → index-411b2c54.js} +7 -7
- package/build/{index-69ba0774.js → index-461460ac.js} +1 -1
- package/build/{index-54d36029.js → index-4af92d15.js} +1 -1
- package/build/{index-943aa021.js → index-536d19f8.js} +5 -5
- package/build/{index-5682d171.js → index-66d800b3.js} +9 -9
- package/build/{index-97fda56b.js → index-67f50ae5.js} +1 -1
- package/build/{index-65d642e7.js → index-7e3aeed4.js} +1 -1
- package/build/{index-1d0c568a.js → index-81ec6599.js} +1 -1
- package/build/{index-64635fb4.js → index-88ff79b6.js} +1 -1
- package/build/{index-b6c92d6d.js → index-95d71ef9.js} +1 -1
- package/build/{index-00e19679.js → index-a14ac95c.js} +1 -1
- package/build/{index-9e1da0ee.js → index-a527fd86.js} +1 -1
- package/build/{index-b4764862.js → index-c9dc742a.js} +359 -362
- package/build/{index-f163ff61.js → index-cc31ada4.js} +1 -1
- package/build/{index-11947038.js → index-edb98431.js} +1 -1
- package/build/{index-e3970aeb.js → index-f62932f3.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-c87b2587.js → index.styled-228e96a3.js} +5 -5
- package/build/{index.styled-ea2e2d8f.js → index.styled-2ce77f4d.js} +232 -234
- package/build/{index.styled-563af73e.js → index.styled-6d41d939.js} +118 -137
- package/build/{index.styled-aa832b7c.js → index.styled-86cd31ca.js} +6 -6
- package/build/{index.styles-8bca236c.js → index.styles-b3f7ae61.js} +146 -160
- 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 +5 -5
- package/build/pwg.js +1 -1
- package/build/{routing-d0bfcc30.js → routing-0dd231c5.js} +1 -1
- package/build/screenSizeContext-0e841cc0.js +81 -0
- package/build/subot.js +91 -94
- package/build/together/components/atoms/notificationBar/index.d.ts +1 -1
- package/build/together/components/molecules/submitReportForm/index.d.ts +1 -2
- package/build/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +0 -1
- package/build/together.js +1 -1
- package/build/{types-3785bf95.js → types-439160fd.js} +15 -15
- package/build/{types-49cbbac9.js → types-b4747009.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-8e19b607.js → useCategory-718ae913.js} +1 -1
- package/build/{useHealthToolCache-00ad982d.js → useHealthToolCache-40a88025.js} +1 -1
- package/build/{usePlacesAutocomplete-dbe03117.js → usePlacesAutocomplete-54de454b.js} +1 -1
- package/build/{useRafState-dfe297b8.js → useRafState-c9f6527a.js} +1 -1
- package/build/{useTranslations-d5cf41a3.js → useTranslations-a1b68e91.js} +1 -1
- package/build/{utils-d08dfeed.js → utils-50bb77a6.js} +1 -1
- package/build/{utils-76f22f3b.js → utils-7528478f.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/esm/getDynamicHealthTool-18567743.js +0 -1
- package/build/esm/index-0b6cd675.js +0 -1
- package/build/esm/index-2ad11d68.js +0 -177
- package/build/esm/index-911ff28a.js +0 -1
- package/build/esm/index-d48e481e.js +0 -1
- package/build/esm/index-d772e106.js +0 -1
- package/build/esm/index-feacc1bb.js +0 -1
- package/build/esm/index.styled-fac84ed8.js +0 -50
- package/build/esm/screenSizeContext-5ebd7a94.js +0 -81
- package/build/esm/useHealthToolCache-df731a08.js +0 -1
- package/build/index-3ee3b3cf.js +0 -1
- package/build/index-aa9718f1.js +0 -1
- package/build/screenSizeContext-73ba8961.js +0 -81
- /package/build/{BMI_BOYS.percentile.monthly-0ec27878.js → BMI_BOYS.percentile.monthly-bd7c4653.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-4d569734.js → BMI_BOYS.percentile.weekly-aa0676d7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-31b412eb.js → BMI_BOYS.percentile.yearly-710bf0bc.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-2488d71f.js → BMI_BOYS.zscore.monthly-265d16b8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-b10f3ef1.js → BMI_BOYS.zscore.weekly-20e34020.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-68623c3d.js → BMI_BOYS.zscore.yearly-67395b04.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-c1506d58.js → BMI_GIRLS.percentile.monthly-e5a6f286.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-7e7cda8a.js → BMI_GIRLS.percentile.weekly-0d918cc9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-1a60da42.js → BMI_GIRLS.percentile.yearly-9ab58003.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-17d96d3b.js → BMI_GIRLS.zscore.monthly-980c6ad8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-5944ad7d.js → BMI_GIRLS.zscore.weekly-2886baca.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-81b205b3.js → BMI_GIRLS.zscore.yearly-e3123e93.js} +0 -0
- /package/build/{ChevronDown-ed323fc5.js → ChevronDown-7d583eac.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-df341f5e.js → HEAD CIRCUM_BOYS.percentile.monthly-5489c654.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-376fdb05.js → HEAD CIRCUM_BOYS.percentile.weekly-72af67ec.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-6efc3424.js → HEAD CIRCUM_BOYS.percentile.yearly-4689f174.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-fdaf2dbf.js → HEAD CIRCUM_BOYS.zscore.monthly-218db6e2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9c7d7dfa.js → HEAD CIRCUM_BOYS.zscore.weekly-d4b77ee2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8b50d99c.js → HEAD CIRCUM_BOYS.zscore.yearly-ba3d997e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-94c95ddc.js → HEAD CIRCUM_GIRLS.percentile.monthly-120ece3e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-4c6f2727.js → HEAD CIRCUM_GIRLS.percentile.weekly-591bb09a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-16e0c0d3.js → HEAD CIRCUM_GIRLS.percentile.yearly-2a19d75a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5bd001e8.js → HEAD CIRCUM_GIRLS.zscore.monthly-47aa0b49.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-50524d03.js → HEAD CIRCUM_GIRLS.zscore.weekly-7faf2731.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-7ced5098.js → HEAD CIRCUM_GIRLS.zscore.yearly-0a9527cb.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-bd8aeb12.js → HEIGHT_BOYS.percentile.monthly-975cab78.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-6c368cae.js → HEIGHT_BOYS.percentile.weekly-45fbff53.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-4d255579.js → HEIGHT_BOYS.percentile.yearly-2a158d1f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-07823cdb.js → HEIGHT_BOYS.zscore.monthly-8dc3c9d2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-1f2d261c.js → HEIGHT_BOYS.zscore.weekly-6156e4e0.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-562f6aac.js → HEIGHT_BOYS.zscore.yearly-f76c1f5e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-394875dd.js → HEIGHT_GIRLS.percentile.monthly-b45e867e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-dc5223b5.js → HEIGHT_GIRLS.percentile.weekly-46b92e1b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-ec1dd8b0.js → HEIGHT_GIRLS.percentile.yearly-9abaef8d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-a61227f4.js → HEIGHT_GIRLS.zscore.monthly-eb201a4a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-810fbaba.js → HEIGHT_GIRLS.zscore.weekly-1c1b80f3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-50ce0a8f.js → HEIGHT_GIRLS.zscore.yearly-19fe9d55.js} +0 -0
- /package/build/{Subot-ab83b6e8.js → Subot-6a20c386.js} +0 -0
- /package/build/{Visible-8fe90e27.js → Visible-96ce1462.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-35e4e540.js → WEIGHT_BOYS.percentile.monthly-48925e68.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-93c1552f.js → WEIGHT_BOYS.percentile.weekly-9675b472.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-09b2c973.js → WEIGHT_BOYS.percentile.yearly-5ae74491.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-bf7ac6f2.js → WEIGHT_BOYS.zscore.monthly-fda03047.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-377fac0f.js → WEIGHT_BOYS.zscore.weekly-2ab9f08c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-caf8de99.js → WEIGHT_BOYS.zscore.yearly-b68de4e1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-59251654.js → WEIGHT_GIRLS.percentile.monthly-1c82f3e1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-bca687c9.js → WEIGHT_GIRLS.percentile.weekly-0628410e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-c268cb57.js → WEIGHT_GIRLS.percentile.yearly-bac2752a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-e8e7e4ec.js → WEIGHT_GIRLS.zscore.monthly-444c0637.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-802d8a32.js → WEIGHT_GIRLS.zscore.weekly-e943b0eb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-86dfa395.js → WEIGHT_GIRLS.zscore.yearly-cd96850c.js} +0 -0
- /package/build/{cookieHelper-92ea0a20.js → cookieHelper-90494d05.js} +0 -0
- /package/build/{dataTransform-fa42cb61.js → dataTransform-6263c35e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-d0325ab2.js → BMI_BOYS.percentile.monthly-2f0ebcbf.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-2d099f4d.js → BMI_BOYS.percentile.weekly-923b3d30.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-22655d07.js → BMI_BOYS.percentile.yearly-7d39033d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-dfc23aee.js → BMI_BOYS.zscore.monthly-21915d60.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-a1f8eeb8.js → BMI_BOYS.zscore.weekly-afaad99e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-1385d138.js → BMI_BOYS.zscore.yearly-2d48176b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-14cfb09c.js → BMI_GIRLS.percentile.monthly-67f03f38.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-ec1043ad.js → BMI_GIRLS.percentile.weekly-a2c33686.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-3ec36c93.js → BMI_GIRLS.percentile.yearly-7a98dd42.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-f188295b.js → BMI_GIRLS.zscore.monthly-599baf2d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-b655ff24.js → BMI_GIRLS.zscore.weekly-c258aef0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-6ad44499.js → BMI_GIRLS.zscore.yearly-e8ce4dc8.js} +0 -0
- /package/build/esm/{ChevronDown-b57b4a27.js → ChevronDown-198d9cc6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-49ebc707.js → HEAD CIRCUM_BOYS.percentile.monthly-bc41ab37.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c005f4e3.js → HEAD CIRCUM_BOYS.percentile.weekly-bd73d642.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-b800cb24.js → HEAD CIRCUM_BOYS.percentile.yearly-044a1a1a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-6610b76f.js → HEAD CIRCUM_BOYS.zscore.monthly-61bf74c0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b5318fa3.js → HEAD CIRCUM_BOYS.zscore.weekly-28e9f5ed.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-65685624.js → HEAD CIRCUM_BOYS.zscore.yearly-2a0e1789.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ee6cef4c.js → HEAD CIRCUM_GIRLS.percentile.monthly-13f948b3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5ff03c01.js → HEAD CIRCUM_GIRLS.percentile.weekly-88cc5320.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f50b2018.js → HEAD CIRCUM_GIRLS.percentile.yearly-7f0f400b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-ef066007.js → HEAD CIRCUM_GIRLS.zscore.monthly-d78908a1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0054026e.js → HEAD CIRCUM_GIRLS.zscore.weekly-f3207f83.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b0e355d4.js → HEAD CIRCUM_GIRLS.zscore.yearly-0628d6d8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-21c2a2a2.js → HEIGHT_BOYS.percentile.monthly-182bed39.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-94823e80.js → HEIGHT_BOYS.percentile.weekly-44f52c09.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-86e415d4.js → HEIGHT_BOYS.percentile.yearly-bb541601.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-dec2158f.js → HEIGHT_BOYS.zscore.monthly-a9a9dd47.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b7e28d96.js → HEIGHT_BOYS.zscore.weekly-9fc7b902.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-62c1caee.js → HEIGHT_BOYS.zscore.yearly-88da8bc2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-54ee3b6d.js → HEIGHT_GIRLS.percentile.monthly-fb5f6f0d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-d78729a6.js → HEIGHT_GIRLS.percentile.weekly-4baca659.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-18b7481d.js → HEIGHT_GIRLS.percentile.yearly-fc7e1fc1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-1651c5df.js → HEIGHT_GIRLS.zscore.monthly-b439db85.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0591cfa1.js → HEIGHT_GIRLS.zscore.weekly-8681e64a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-3347eeaf.js → HEIGHT_GIRLS.zscore.yearly-28b1d0bb.js} +0 -0
- /package/build/esm/{Subot-67816106.js → Subot-e272425a.js} +0 -0
- /package/build/esm/{Visible-254f3d0e.js → Visible-e7a4b560.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-82144cc4.js → WEIGHT_BOYS.percentile.monthly-d6835449.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-caf2756d.js → WEIGHT_BOYS.percentile.weekly-bc54a47c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-39c389a6.js → WEIGHT_BOYS.percentile.yearly-69b5c0cf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-1d96fdf6.js → WEIGHT_BOYS.zscore.monthly-fae0c31f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6d7dc5c3.js → WEIGHT_BOYS.zscore.weekly-58bfd560.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-5befa2e9.js → WEIGHT_BOYS.zscore.yearly-4e428e24.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-62e45d9b.js → WEIGHT_GIRLS.percentile.monthly-5136f490.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-4b315673.js → WEIGHT_GIRLS.percentile.weekly-bd8ea375.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-ae777fbd.js → WEIGHT_GIRLS.percentile.yearly-40e16990.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-e1a711b3.js → WEIGHT_GIRLS.zscore.monthly-bc34aead.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-282cb95e.js → WEIGHT_GIRLS.zscore.weekly-c5ab12a0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9d5c2c49.js → WEIGHT_GIRLS.zscore.yearly-41608a14.js} +0 -0
- /package/build/esm/{cookieHelper-715a63ab.js → cookieHelper-28df9366.js} +0 -0
- /package/build/esm/{dataTransform-a9f8f8e1.js → dataTransform-3cf63532.js} +0 -0
- /package/build/esm/{index-09ba8680.js → index-10c5feed.js} +0 -0
- /package/build/esm/{index-c1076bbe.js → index-9d4a84ac.js} +0 -0
- /package/build/esm/{index-3afa303d.js → index-ac4a532b.js} +0 -0
- /package/build/esm/{isProduction-0005bed8.js → isProduction-b5290208.js} +0 -0
- /package/build/esm/{localizeNumberFormat-eee5e088.js → localizeNumberFormat-a5628e95.js} +0 -0
- /package/build/esm/{normalizeLink-0a824393.js → normalizeLink-03495796.js} +0 -0
- /package/build/esm/{number-89aaa53f.js → number-97247dba.js} +0 -0
- /package/build/esm/{paths-d6be3159.js → paths-fcede6b6.js} +0 -0
- /package/build/esm/{theme-11c43794.js → theme-ccf55e31.js} +0 -0
- /package/build/esm/{translationsContext-66e27067.js → translationsContext-7856306b.js} +0 -0
- /package/build/esm/{tslib.es6-caf7391f.js → tslib.es6-842a2bb8.js} +0 -0
- /package/build/esm/{types-2c168c1f.js → types-3f42ad37.js} +0 -0
- /package/build/esm/{useIsInit-4dcae46f.js → useIsInit-7d05716a.js} +0 -0
- /package/build/esm/{useOutsideClick-70e02ea6.js → useOutsideClick-9d03d01d.js} +0 -0
- /package/build/esm/{useScrollbarSize-e55adedb.js → useScrollbarSize-1c748ec0.js} +0 -0
- /package/build/{index-6b48c527.js → index-22f2dd43.js} +0 -0
- /package/build/{index-b0c9f344.js → index-a6882810.js} +0 -0
- /package/build/{index-14a0aaa0.js → index-b3a56944.js} +0 -0
- /package/build/{isProduction-e32c6264.js → isProduction-975fbda1.js} +0 -0
- /package/build/{localizeNumberFormat-b4689cfc.js → localizeNumberFormat-f603a6d8.js} +0 -0
- /package/build/{normalizeLink-c8b10f92.js → normalizeLink-b260b165.js} +0 -0
- /package/build/{number-79be583e.js → number-3f6eba85.js} +0 -0
- /package/build/{paths-0f77a743.js → paths-9ce571a8.js} +0 -0
- /package/build/{theme-1f10ec25.js → theme-cf605758.js} +0 -0
- /package/build/{translationsContext-12eebeb5.js → translationsContext-b4e24bbe.js} +0 -0
- /package/build/{tslib.es6-a7206fdf.js → tslib.es6-8187fb3c.js} +0 -0
- /package/build/{types-90377b59.js → types-16f153bc.js} +0 -0
- /package/build/{useIsInit-46f8a417.js → useIsInit-df1db68e.js} +0 -0
- /package/build/{useOutsideClick-42bd02d5.js → useOutsideClick-eeca1a83.js} +0 -0
- /package/build/{useScrollbarSize-3144238a.js → useScrollbarSize-7a77a7be.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{L as t}from"./Subot-
|
|
1
|
+
import e from"react";import{L as t}from"./Subot-e272425a.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-14b7fcc5.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-1c748ec0.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-27d2b972.js";export{u as useHealthToolsCache}from"./useHealthToolCache-5b104f1e.js";export{u as useIsInit}from"./useIsInit-7d05716a.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-9d03d01d.js";export{M as MAPPED_CATEGORY_SLUGS,P as PREGNANCY_SLUG,u as useCategory}from"./useCategory-8582dedd.js";import"react";import"./translationsContext-7856306b.js";import"string-format";import"lodash/debounce";import"./tslib.es6-842a2bb8.js";import"./cookieHelper-28df9366.js";import"./getDynamicHealthTool-2e9a5548.js";import"./core-5b21c19e.js";import"./isProduction-b5290208.js";import"./normalizeLink-03495796.js";import"./routing-a8a2d2fd.js";import"./index-f75306ca.js";import"date-fns/locale";import"./Subot-e272425a.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as s}from"./translationsContext-
|
|
1
|
+
import{T as s}from"./translationsContext-7856306b.js";export{T as TranslationsContext}from"./translationsContext-7856306b.js";import o,{useState as r,useEffect as e,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]=r((()=>Object.assign(Object.assign({},u),m?d[i]:{})));e((()=>{c(Object.assign(Object.assign({},u),m?d[i]:{}))}),[m,i]);const f=t((()=>p?{locale:i,values:p}:null),[i,p]);return e((()=>{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 t}from"./translationsContext-7856306b.js";export{T as TranslationsContext}from"./translationsContext-7856306b.js";import e,{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 e.createElement(t.Provider,{value:l},a)};export{r as TranslationsProvider};
|
|
@@ -0,0 +1,177 @@
|
|
|
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-dff03e2b.js";import{J as r,K as s,L as d,M as c,N as m,O as p,Q as h}from"./index.styles-874b1834.js";import{T as u,I as g}from"./index-e7f889b2.js";import"dayjs";import b from"styled-components";import{t as x}from"./theme-ccf55e31.js";import"./index-f75306ca.js";import"./isProduction-b5290208.js";import{G as f}from"./Subot-e272425a.js";import"./gAssets.js";import{u as y}from"./useTranslations-14b7fcc5.js";import{M as C,a as v}from"./index-c9c584ed.js";import{T as w}from"./index-1782f56e.js";const E=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),B=({children:o,title:n,onClose:r,open:m=!1,placement:p="left",destroyOnClose:h=!1,isPropagationEvent:g=!0,className:b})=>{const x=t();a((()=>(l(m),()=>l(!1))),[m]);const f=()=>{x.current.classList.add("slideOut"),setTimeout((()=>{r()}),800)};return!m&&h?null:e.createElement(i,null,e.createElement(s,{className:b,open:m},e.createElement(E,{open:m,onClickOutside:f}),e.createElement(d,{open:m,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:f},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(c,{onClick:e=>{g&&e.stopPropagation()}},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:f}):null)))))},$=({value:t,options:a,className:i,direction:l="horizontal",onChange:n,isDisabled:r,siteType:s})=>{const[d,c]=o(t),h="marryBaby"===s;return e.createElement(m,{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||(c(e),n&&n(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(C,{type:"subtitle-2",color:(t||d)===a.value?x.mbColors.dark:x.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)))))))},j="hhgcomp-modal-modal",k=h(b.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 200;
|
|
4
|
+
background-color: ${x.colors.white};
|
|
5
|
+
border-radius: ${x.borderRadius};
|
|
6
|
+
box-shadow: 0px 4px 8px ${x.colors.gray200};
|
|
7
|
+
&[data-site-type='marryBaby'] {
|
|
8
|
+
border-radius: 16px;
|
|
9
|
+
.hhg-modal__content {
|
|
10
|
+
position: relative;
|
|
11
|
+
z-index: 111;
|
|
12
|
+
height: 100%;
|
|
13
|
+
|
|
14
|
+
padding: 24px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.hhg-modal__content {
|
|
18
|
+
position: relative;
|
|
19
|
+
z-index: 111;
|
|
20
|
+
height: 100%;
|
|
21
|
+
padding: 16px;
|
|
22
|
+
}
|
|
23
|
+
.hhg-modal__video {
|
|
24
|
+
position: relative;
|
|
25
|
+
z-index: 111;
|
|
26
|
+
height: 100%;
|
|
27
|
+
background-color: none;
|
|
28
|
+
box-shadow: none;
|
|
29
|
+
}
|
|
30
|
+
`,j),z=b.div`
|
|
31
|
+
position: fixed;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
z-index: 201;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
overflow-x: hidden;
|
|
41
|
+
overflow-y: auto;
|
|
42
|
+
outline: 0;
|
|
43
|
+
visibility: hidden;
|
|
44
|
+
background-color: rgba(38, 38, 38, 0.3);
|
|
45
|
+
|
|
46
|
+
.hhg-modal__close {
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 16px;
|
|
49
|
+
right: 16px;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
img {
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&[data-type='video'] {
|
|
58
|
+
z-index: 1001;
|
|
59
|
+
}
|
|
60
|
+
&[data-open='true'] {
|
|
61
|
+
visibility: visible;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.slideTop {
|
|
65
|
+
.${j} {
|
|
66
|
+
transform: translate(0, -100vh);
|
|
67
|
+
transition: all 0.5s ease;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&[data-open='true'] {
|
|
71
|
+
.${j} {
|
|
72
|
+
transform: translate(0);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.scaleUp {
|
|
78
|
+
.${j} {
|
|
79
|
+
transform: scale(0.9);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&[data-open='true'] {
|
|
83
|
+
.${j} {
|
|
84
|
+
transition: all 0.3s ease-out;
|
|
85
|
+
transform: scale(1);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&[data-type='tail'] {
|
|
91
|
+
justify-content: flex-end;
|
|
92
|
+
.${j} {
|
|
93
|
+
width: 420px;
|
|
94
|
+
height: 100%;
|
|
95
|
+
border-radius: 0;
|
|
96
|
+
overflow: hidden auto;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
&[data-type='form'] {
|
|
100
|
+
.${j} {
|
|
101
|
+
width: 496px;
|
|
102
|
+
height: 548px;
|
|
103
|
+
max-height: 100%;
|
|
104
|
+
overflow-y: auto;
|
|
105
|
+
${n.mbDown} {
|
|
106
|
+
width: 340px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
&[data-type='video'] {
|
|
111
|
+
.${j} {
|
|
112
|
+
height: 100%;
|
|
113
|
+
max-height: 539px;
|
|
114
|
+
${n.mbDown} {
|
|
115
|
+
height: 192px;
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
118
|
+
border-radius: ${x.borderRadius};
|
|
119
|
+
max-height: 192px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
&[data-type='confirm'] {
|
|
124
|
+
.${j} {
|
|
125
|
+
width: 100%;
|
|
126
|
+
max-width: 407px;
|
|
127
|
+
${n.mbDown} {
|
|
128
|
+
width: calc(100% - 32px);
|
|
129
|
+
max-width: calc(100% - 32px);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
`,L=b.div`
|
|
134
|
+
position: fixed;
|
|
135
|
+
top: 0;
|
|
136
|
+
left: 0;
|
|
137
|
+
width: 100vw;
|
|
138
|
+
height: 100vh;
|
|
139
|
+
align-items: center;
|
|
140
|
+
|
|
141
|
+
&[data-open='false'] {
|
|
142
|
+
display: none;
|
|
143
|
+
}
|
|
144
|
+
&[data-type='video'] {
|
|
145
|
+
background-color: ${x.colors.secondaryDark};
|
|
146
|
+
}
|
|
147
|
+
`,G=b.div`
|
|
148
|
+
& > :not(:last-child) {
|
|
149
|
+
margin-bottom: 8px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.gender-selector {
|
|
153
|
+
& > :not(:last-child) {
|
|
154
|
+
margin-right: 16px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
& > div {
|
|
158
|
+
width: calc(50% - 8px);
|
|
159
|
+
|
|
160
|
+
${n.mbUp} {
|
|
161
|
+
justify-self: left;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`,N=b($)`
|
|
166
|
+
& > div > div {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: row;
|
|
169
|
+
justify-content: center;
|
|
170
|
+
align-content: center;
|
|
171
|
+
gap: 8px;
|
|
172
|
+
padding-block: 5px;
|
|
173
|
+
}
|
|
174
|
+
.radio-group-item-heading {
|
|
175
|
+
margin-top: 0;
|
|
176
|
+
}
|
|
177
|
+
`,T=({value:t,onChange:a,siteType:o})=>{const{t:i}=y(),l="marryBaby"==o;return e.createElement(G,{"data-is-marryBaby":l},l?e.createElement(v,{type:"h4",color:x.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:f.Boy,label:i("gender.male"),content:l?e.createElement(g.BabyBoyMB,null):e.createElement(g.GenderChooseBoy,null)},{value:f.Girl,label:i("gender.female"),content:l?e.createElement(g.BabyGirlMB,null):e.createElement(g.GenderChooseGirl,null)}],value:t,onChange:a,className:"gender-selector"}))};export{T as B,B as D,$ as R,z as S,L as a,k as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as a,useEffect as t}from"react";import{I as s}from"./index.styles-
|
|
1
|
+
import e,{useState as a,useEffect as t}from"react";import{I as s}from"./index.styles-874b1834.js";import{B as n}from"./index-17d273a3.js";const r=({type:a="solid",className:t,style:n})=>e.createElement(s,{style:n,className:t,"data-diver-type":a,dividerType:a});var l="Dudns9-";const i=({value:s,choices:r,onChange:i})=>{const[o,d]=a(s);return t((()=>{d(s)}),[s]),e.createElement("div",{className:l},r.map(((a,t)=>e.createElement(n,{dataEventCategory:a.dataEventCategory,dataEventAction:a.dataEventAction,dataEventLabel:a.dataEventLabel,size:"sm",variant:a.value===o?"primary":"tertiary",key:t,onClick:()=>{d(a.value),null==i||i(a.value)}},a.label||""))))};export{i as B,r as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,_ as t}from"./tslib.es6-
|
|
1
|
+
import{a as e,_ as t}from"./tslib.es6-842a2bb8.js";import s,{useReducer as a,useState as r,useEffect as i}from"react";import{Stack as o,Input as n}from"@mantine/core";import{c,S as d}from"./index-17d273a3.js";import"@mantine/dates";import{b as l}from"./index-f75306ca.js";import{L as p}from"./Subot-e272425a.js";import"./gAssets.js";import"./index-e7f889b2.js";import"dayjs";import"./screenSizeContext-dff03e2b.js";import"styled-components";import"./theme-ccf55e31.js";import"./isProduction-b5290208.js";import{u as m}from"./useTranslations-14b7fcc5.js";import"@mantine/hooks";import"lodash/debounce";import"./useCategory-8582dedd.js";import{M as v}from"./utils-0b2c5aec.js";const b={provinceByName:{},provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},u=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},h=({provinces:t})=>{const[s,o]=a(u,b),{provinceByName:n,provinces:c,districts:d,wards:m,selectedProvince:h,selectedDistrict:y,selectedWard:j}=s,[g,E]=r();i((()=>{e(void 0,void 0,void 0,(function*(){var e,s,a,r;try{const i=yield fetch((r=process.env.UNIFY_LOCALE||p.Vietnam,`${l}/cities-data-${v[r]}.json`)).then((e=>e.json()));E(i);const{list:n}=i,c=t?((e,t)=>{const s={};for(const[,e]of Object.entries(t)){const{id:t}=e;t&&(s[t]=e)}const a={};return e.map((e=>{a[e.name]=s[e.id]})),a})(t,n):n,d=Object.keys(c),m=Object.keys((null===(e=n[d[0]])||void 0===e?void 0:e.list)||{}),b=Object.keys((null===(a=null===(s=n[d[0]])||void 0===s?void 0:s[m[0]])||void 0===a?void 0:a.list)||{});o({type:"SET_DATA",payload:{provinceByName:c,provinces:d,districts:m,wards:b}})}catch(e){console.error("Error fetching address data:",e)}}))}),[process.env.UNIFY_LOCALE]);return{provinces:c,districts:d,wards:m,selectedProvince:h,selectedDistrict:y,selectedWard:j,handleProvinceChange:e=>{var t;const s=Object.keys((null===(t=n[e])||void 0===t?void 0:t.list)||{});o({type:"SET_DISTRICTS",payload:s}),o({type:"SET_WARDS",payload:[]}),o({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,s;const a=Object.keys((null===(s=null===(t=n[h])||void 0===t?void 0:t.list[e])||void 0===s?void 0:s.list)||{});o({type:"SET_WARDS",payload:a}),o({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{o({type:"SELECT_WARD",payload:e})}}},y=e=>{var{error:a,provinces:l,placeholder:p}=e,v=t(e,["error","provinces","placeholder"]);const{t:b}=m(),{provinces:u,districts:y,wards:j,selectedProvince:g,selectedDistrict:E,selectedWard:C,handleProvinceChange:S,handleDistrictChange:T,handleWardChange:O}=h({provinces:l}),[f,D]=r("");return i((()=>{g&&E&&C&&f?v.onChange({selectedProvince:g,selectedDistrict:E,selectedWard:C,extraInfo:f}):v.onChange(null)}),[g,E,C,f]),s.createElement(c.Wrapper,Object.assign({withAsterisk:!0},v),s.createElement(o,null,s.createElement(d,{placeholder:(null==p?void 0:p.province)||b("onboarding.similac.input.city"),data:l?u:u.sort(),searchable:!0,onChange:S,value:g}),s.createElement(d,{placeholder:(null==p?void 0:p.district)||b("onboarding.similac.input.district"),data:y.sort(),searchable:!0,onChange:T,value:E,disabled:!g}),s.createElement(d,{placeholder:(null==p?void 0:p.ward)||b("onboarding.similac.input.ward"),searchable:!0,data:j.sort(),value:C,onChange:O,disabled:!g||!E}),s.createElement(c,{placeholder:(null==p?void 0:p.address)||b("onboarding.similac.input.no"),disabled:!g||!E||!C,value:f,onChange:D,style:{marginBottom:0}})),s.createElement(n.Error,{size:"md"},a))};export{y as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"./tslib.es6-842a2bb8.js";import e from"react";import"./index-17d273a3.js";import"@mantine/core";import"@mantine/dates";import"./index-f75306ca.js";import"./Subot-e272425a.js";import"./gAssets.js";import{T as o}from"./index-e7f889b2.js";import"dayjs";import"./screenSizeContext-dff03e2b.js";import"styled-components";import"./theme-ccf55e31.js";import"./isProduction-b5290208.js";import"./translationsContext-7856306b.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,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-842a2bb8.js";import*as l from"react";import n,{useState as a,useMemo as r,forwardRef as i,useEffect as o,Component as c,useCallback as s,createContext as d,useContext as h,useRef as m,useImperativeHandle as p}from"react";import{Radio as u,useMantineTheme as g,Autocomplete as f,Image as b,ActionIcon as E,Select as C,createStyles as v,AspectRatio as L,em as y,Box as w,Breadcrumbs as x,Button as k,Textarea as j,Accordion as O,Indicator as M,Avatar as S,FileInput as H,createEmotionCache as B,NumberInput as Z,PasswordInput as R,TextInput as V,Input as A,Checkbox as I,Slider as z,Flex as P,rem as F,Tabs as T,ScrollArea as D,Popover as N,Chip as $}from"@mantine/core";import{useUncontrolled as W,useDebouncedValue as U,useViewportSize as _,useResizeObserver as G,useDisclosure as K,useClickOutside as q}from"@mantine/hooks";import{t as Y}from"./theme-ccf55e31.js";import{CommonGAssets as Q}from"./gAssets.js";import J from"dayjs";import{L as X}from"./Subot-e272425a.js";import{B as ee,M as te}from"./screenSizeContext-dff03e2b.js";import le from"styled-components";import{Carousel as ne}from"@mantine/carousel";import{T as ae,O as re,I as ie}from"./index-e7f889b2.js";import{I as oe,s as ce}from"./index-f75306ca.js";import"./isProduction-b5290208.js";import se from"classnames";import{b as de}from"./useTranslations-14b7fcc5.js";const he=t=>{var{alt:l,backupSrc:r,src:i,placeholderSrc:o,style:c,ref:s}=t,d=e(t,["alt","backupSrc","src","placeholderSrc","style","ref"]);const[h,m]=a(!1);return n.createElement(me,Object.assign({loading:"lazy",alt:l,onError:()=>!h&&m(!0),src:h?r||i:i||r,style:Object.assign(Object.assign({},o?{backgroundImage:`url(${o})`}:{}),c),"data-has-placeholder":!!o,ref:s},d))},me=le.img`
|
|
2
2
|
&[data-has-placeholder='true'] {
|
|
3
3
|
background-position: center;
|
|
4
4
|
background-repeat: no-repeat;
|
|
@@ -81,9 +81,9 @@ import{_ as e,a as t}from"./tslib.es6-caf7391f.js";import*as l from"react";impor
|
|
|
81
81
|
white-space: pre-wrap;
|
|
82
82
|
}
|
|
83
83
|
`,ft=t=>{var{children:l}=t,a=e(t,["children"]);return n.createElement(gt,Object.assign({chevron:n.createElement("div",null),disableChevronRotation:!0,transitionDuration:300},a),l)};ft.Control=O.Control,ft.Item=O.Item,ft.Panel=O.Panel;const bt=Q.getAssetPath("avatar.jpg"),Et=t=>{var{withIndicator:l=!1,indicatorConfig:a=null,size:r=56,children:i,styles:o,placeholderText:c}=t,s=e(t,["withIndicator","indicatorConfig","size","children","styles","placeholderText"]);const d=()=>n.createElement(S,Object.assign({size:r,radius:"xl"},s,{imageProps:Object.assign({loading:"lazy"},s.imageProps),styles:{placeholder:{backgroundColor:s.color,color:"white"}}}),i||(c||n.createElement(he,{src:bt,width:r,alt:s.alt||"avatar"})));return l?n.createElement(M,Object.assign({inline:!0,position:"bottom-end",offset:9},a,{styles:Object.assign({indicator:{backgroundColor:n.isValidElement(a.label)&&"transparent",zIndex:1}},o)}),d()):d()},Ct=300,vt=B({key:"mantine",prepend:!1}),Lt=t=>{var{value:l,onChange:r}=t,i=e(t,["value","onChange"]);const[c,s]=a(l),[d]=U(c,300);return o((()=>{null==r||r(d)}),[d]),o((()=>{s(l)}),[l]),n.createElement(Z,Object.assign({size:"md",stepHoldDelay:500,stepHoldInterval:e=>Math.max(1e3/Math.pow(e,2),25),onChange:s,hideControls:!0,min:0,formatter:e=>0===Number(e)?e:e||"",removeTrailingZeros:!0,value:c},i))},yt=Q.getAssetPath("EyeVisible.svg"),wt=Q.getAssetPath("EyeHidden.svg"),xt=i(((t,l)=>{const{size:a="md",visibilityToggleIcon:r}=t,i=e(t,["size","visibilityToggleIcon"]),o=r||(({reveal:e,size:t})=>e?n.createElement("img",{src:yt,width:t,loading:"lazy"}):n.createElement("img",{src:wt,width:t,loading:"lazy"}));return n.createElement(R,Object.assign({ref:l,size:a,visibilityToggleIcon:o},i,{className:`input-control ${(null==i?void 0:i.className)||""}`}))})),kt=i(((t,l)=>{var{value:r,onChange:i,onChangeRaw:c,maxLength:s}=t,d=e(t,["value","onChange","onChangeRaw","maxLength"]);const[h,m]=a(r||""),[p]=U(h,300);return o((()=>{null==i||i(p)}),[p]),o((()=>{m(r)}),[r]),n.createElement(V,Object.assign({ref:l,size:"md",onChange:e=>{"number"==typeof s&&e.currentTarget.value.length>s||(null==c||c(e),m(e.currentTarget.value))},value:h},d,{maxLength:s,className:`input-control ${(null==d?void 0:d.className)||""}`}))}));kt.File=e=>n.createElement(H,Object.assign({size:"md"},e)),kt.Password=xt,kt.Number=Lt,kt.Wrapper=A.Wrapper;const jt=ne.Slide,Ot=d({}),Mt=(e,t)=>e>=t?e-t:e,St=t=>{var{children:l,blurFromCenter:r,blurFromIndex:i,blurLength:c=3,maxBlurOpacity:s=.5,onSlideChange:d,selectSlideWhenClick:h}=t,p=e(t,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);const{width:u}=_(),[g]=G(),f=m(null),[b,E]=a(0),C=()=>{var e,t,l,n,a;const o=(null===(e=null==f?void 0:f.current)||void 0===e?void 0:e.slideNodes())||[];if((null===(t=null==f?void 0:f.current)||void 0===t?void 0:t.slideNodes().length)<=(null===(l=null==f?void 0:f.current)||void 0===l?void 0:l.slidesInView().length))return o.map((e=>{e.classList.remove("center-slide"),e.style.opacity="1"})),!1;const d=null===(n=null==f?void 0:f.current)||void 0===n?void 0:n.selectedScrollSnap();E(d);const h=o.length,m=(null===(a=null==f?void 0:f.current)||void 0===a?void 0:a.slidesInView()).length,p=Math.floor(m/2),u=r?i+c-1:p,g=d+u,b=g===h?0:g>h?g-h:g,C=d-u,v=C<0?h+C:C>0?d-u:0,L=[...new Set(Array(2*u+1).fill("").map(((e,t)=>Mt(v+t,h))))];o.map(((e,t)=>{if(t===d?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==L.indexOf(t)){const a=s/c;for(let r=0;r<c;r++){if(t===Mt(v+r,h)||t===(n=h,(l=b-r)<0?n+l:l)){e.style.opacity=String((r+1)*a);break}e.style.opacity="1"}}else e.style.opacity="0";var l,n}))},L={getEmblaApi:e=>{f.current=e},onSlideChange:e=>{C(),null==d||d(e)}};o((()=>{(null==f?void 0:f.current)&&C()}),[u]);const y=v((()=>{var e,t;return{control:Object.assign({},(null===(e=null==f?void 0:f.current)||void 0===e?void 0:e.slideNodes().length)<=(null===(t=null==f?void 0:f.current)||void 0===t?void 0:t.slidesInView().length)&&{display:"none"})}})),{classes:w}=y();return n.createElement(Ot.Provider,{value:{slider:null==f?void 0:f.current,centerSlide:b,selectSlideWhenClick:h}},n.createElement(ne,Object.assign({classNames:{control:w.control},ref:g,slideSize:"auto",containScroll:"trimSnaps"},L,p,{loop:!0}),"function"==typeof l?l(b):l))};St.Slide=t=>{var{children:l,onClick:r,innerSlideProps:i}=t,c=e(t,["children","onClick","innerSlideProps"]);const{slider:s,selectSlideWhenClick:d}=h(Ot),p=m(),u=m(""),[g,f]=a(0);o((()=>{u.current=String(Math.round(1e4*Math.random()))}),[]),o((()=>{const e=(null==s?void 0:s.slideNodes())||[];f(e.findIndex((e=>e.dataset.key===u.current)))}),[s]);const b={ref:p,"data-key":u.current,"data-index":g};return n.createElement(jt,Object.assign({},b,c),n.createElement("div",Object.assign({style:{height:"100%"},onClick:()=>{d&&(null==s||s.scrollTo(g)),null==r||r(g)}},i),l))};const Ht=t=>{var{styles:l,color:a="blue"}=t,i=e(t,["styles","color"]);const o=g(),c=r((()=>{var e,t;return((null==a?void 0:a.includes("."))?null===(e=o.colors[a.split(".")[0]])||void 0===e?void 0:e[a.split(".")[1]]:null===(t=o.colors[a])||void 0===t?void 0:t[o.primaryShade||6])||o.colors.blue[6]}),[a]);return n.createElement(I,Object.assign({styles:Object.assign({input:{"&:hover":{border:`1px solid ${c}`}}},l),color:a},i))};Ht.Group=I.Group;const Bt=le(z)`
|
|
84
|
-
${e=>{const t=e.color||
|
|
84
|
+
${e=>{const t=e.color||Y.colors.primaryBase;return`\n .mantine-Slider-bar {\n background-color: ${t};\n }\n .mantine-Slider-thumb {\n border-color: ${t};\n color: ${t};\n }\n `}}
|
|
85
85
|
[data-theme='marryBaby'] & {
|
|
86
|
-
${e=>{const t=e.color||
|
|
86
|
+
${e=>{const t=e.color||Y.mbColors.pink;return`\n .mantine-Slider-bar {\n background-color: ${t};\n }\n .mantine-Slider-thumb {\n border-color: ${t};\n color: ${t};\n }\n `}}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.mantine-Slider-label {
|
|
@@ -100,13 +100,13 @@ import{_ as e,a as t}from"./tslib.es6-caf7391f.js";import*as l from"react";impor
|
|
|
100
100
|
}
|
|
101
101
|
button {
|
|
102
102
|
path:not([stroke]) {
|
|
103
|
-
stroke: ${
|
|
103
|
+
stroke: ${Y.colors.primaryBase};
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
[data-theme='marryBaby'] & {
|
|
107
107
|
button {
|
|
108
108
|
path:not([stroke]) {
|
|
109
|
-
stroke: ${
|
|
109
|
+
stroke: ${Y.mbColors.pink};
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t}from"./tslib.es6-
|
|
1
|
+
import{_ as t}from"./tslib.es6-842a2bb8.js";import o from"react";import{Indicator as s}from"@mantine/core";import"dayjs";import"./screenSizeContext-dff03e2b.js";import"styled-components";import{t as e}from"./theme-ccf55e31.js";import"./index-f75306ca.js";import"./isProduction-b5290208.js";import"./Subot-e272425a.js";import"./gAssets.js";const r=r=>{var{styles:i,color:n=e.colors.red700}=r,m=t(r,["styles","color"]);return o.createElement(s,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:n},m))};export{r as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-842a2bb8.js";import t,{useState as o,useEffect as n}from"react";import{useDebouncedValue as a}from"@mantine/hooks";import{B as r}from"./index-4eb2530b.js";import{D as s,g as i,h as l}from"./index-17d273a3.js";const m=m=>{var{color:c,withControl:h,onChange:d,value:u,min:g,max:p,isStatic:k,containerClassName:b,containerStyle:v}=m,x=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[C,E]=o(u||g||0),[f]=a(C,s);return n((()=>{null==d||d(f)}),[f]),n((()=>{E(u)}),[u]),t.createElement(i,{className:b,style:v},h&&t.createElement(r,{type:"button",size:"sm",color:"ghost",onClick:()=>{E((e=>g&&e===g?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:C,onChange:k?()=>null:E,min:g,max:p},x,{className:"hhg-mantine-slider "+(x.className||"")})),h&&t.createElement(r,{type:"button",size:"sm",color:"ghost",onClick:()=>{E((e=>p&&e===p?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a}from"./tslib.es6-
|
|
1
|
+
import{_ as a}from"./tslib.es6-842a2bb8.js";import t from"react";var e="P03rcnV",d="LsvykAk",o="S2kaD9B",c="fAwTdkg",i="ITgol3T",r="cD-HMFz",n="oAG2-aJ",s="Y9fGCaj";const l=l=>{var{size:C,color:m="primary",theme:u="helloSites",isDisabled:h,isBlock:p,title:P,className:g,onClick:k,icon:v,iconPosition:E="left",children:b,isLoading:y=!1,loadingText:N,dataEventCategory:f,dataEventAction:L,dataEventLabel:B,dataProductChannel:w,dataProductSku:x,dataProductBrand:A,dataProductName:T,dataProductPrice:z,dataProductCategory:D,dataProductPosition:S,type:j}=l,F=a(l,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);const M={"data-event-category":f,"data-event-action":L,"data-event-label":B,"data-product-channel":w,"data-product-sku":x,"data-product-brand":A,"data-product-name":T,"data-product-price":z,"data-product-category":D,"data-product-position":S},G=t.createElement("span",{className:d},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t.createElement("circle",{className:s,cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t.createElement("mask",{id:"path-1-inside-1",fill:"white"},t.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),t.createElement("path",{className:n,d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"}))),W=(v||y)&&t.createElement("span",{className:r},y?G:v," ");return t.createElement("button",Object.assign({},M,{className:`${i} ${g||""}`,"data-size":C,"data-color":m,"data-block":p,"data-has-icon":!!v||void 0,"data-theme":u,disabled:h,onClick:a=>{!y&&!h&&k&&k(a)},title:P,"data-is-loading":y,type:j},F),t.createElement("span",{className:c},"left"===E&&W,b&&t.createElement("span",{className:o},y&&N||b),"right"===E&&W))};export{l as B};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenSizeContext-
|
|
1
|
+
import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenSizeContext-dff03e2b.js";import"dayjs";import l from"styled-components";import{t as n}from"./theme-ccf55e31.js";import"./index-f75306ca.js";import"./isProduction-b5290208.js";import"./Subot-e272425a.js";import"./gAssets.js";import{_ as a}from"./tslib.es6-842a2bb8.js";import{b as r}from"./index.styles-874b1834.js";const d=l.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 50%;
|
|
4
4
|
|
|
5
5
|
padding: 0 16px 32px;
|
|
6
|
-
background-color: ${
|
|
7
|
-
border-radius: ${
|
|
8
|
-
box-shadow: 0px 4px 8px ${
|
|
6
|
+
background-color: ${n.colors.white};
|
|
7
|
+
border-radius: ${n.borderRadius};
|
|
8
|
+
box-shadow: 0px 4px 8px ${n.colors.gray200};
|
|
9
9
|
transform: translate(-50%, -50%);
|
|
10
10
|
transition: all 0.5s ease-in-out;
|
|
11
11
|
visibility: hidden;
|
|
@@ -68,7 +68,7 @@ import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenS
|
|
|
68
68
|
border-radius: 50%;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`,
|
|
71
|
+
`,s=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}from"react";import{M as o}from"./screenS
|
|
|
81
81
|
&[data-open='false'] {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
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`
|
|
84
|
+
`,u=({type:i="lead",closeIcon:t,isOpen:o=!0,onClose:l,children:n,className:a="",enableAnimation:r=!0})=>e.createElement(e.Fragment,null,e.createElement(d,{"data-open":o,"data-type":i,"data-animation":r},e.createElement("div",{className:`${a||""} popup-content`},!!t&&e.createElement("div",{className:"close-button",onClick:l},t),n)),e.createElement(s,{"data-open":o,onClick:l})),m=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},v=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},p=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,c=e=>{if(!e)return{};const{button_text:i,button_url:t,status:o,banner_desktop:l,banner_mobile:n}=e,r=a(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(o),bannerDesktop:l||"",bannerMobile:n||""},r)},_={EN:"English",FIL:"Filipino"},g=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in _?_[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),y=e=>{var i,t,o,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?b(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:m(e.author),reviewer:e.reviewed_by&&m(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:f(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:f(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.editor),expert:f(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.expert),fact_check:f(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:w(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(w),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:v(e.expert),metaTag:e.meta_tag||null,spotlight:p(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:g(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:w(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:m(e.edit_last),subscriptionBanner:c(e.subscription_banner)}:{}},f=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,b=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},h=e=>({postTitle:e.post_title,permalink:e.permalink}),w=e=>{var i,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?b(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>w(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(t=e.cat_parent)||void 0===t?void 0:t.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?h(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>k(e))):null}:{}},k=e=>({title:e.title,content:e.content}),x=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},I=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},C=e=>{var i,t,o,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:null===(o=e.community)||void 0===o?void 0:o.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},S=e=>e?{answer:null==e?void 0:e.answer.map(A),expert:null==e?void 0:e.expert}:{},T=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,p,c,_,g,y,f,b,h,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var t,o,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+i.slug,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(t=e.community)||void 0===t?void 0:t.id)||0,name:(null===(o=e.community)||void 0===o?void 0:o.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(p=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===p?void 0:p.toLowerCase():"",type:(null===(c=e.user)||void 0===c?void 0:c.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:S(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},A=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,p,c,_,g,y,f,b,h,w,k,x,I,C,S,T,j,B,D,N,P;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(A):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(t=e.user)||void 0===t?void 0:t.user_name)||"",name:(null===(o=e.user)||void 0===o?void 0:o.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(p=e.user)||void 0===p?void 0:p.doctor_id)?String(null===(c=e.user)||void 0===c?void 0:c.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(k=null===(w=e.mentioned)||void 0===w?void 0:w.role)||void 0===k?void 0:k.toLowerCase():"",avatar:(null===(x=e.mentioned)||void 0===x?void 0:x.avatar)||"",type:(null===(I=e.mentioned)||void 0===I?void 0:I.type)||"",email:(null===(C=e.mentioned)||void 0===C?void 0:C.email)||"",partnerId:(null===(S=e.mentioned)||void 0===S?void 0:S.partner_id)?String(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id):"",doctorId:(null===(j=e.mentioned)||void 0===j?void 0:j.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(N=e.mentioned)||void 0===N?void 0:N.hospital_id):"",title:(null===(P=e.mentioned)||void 0===P?void 0:P.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},j=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:m,formatArticleExpert:v,formatSpotlightsSummary:p,TRANSLATE_LANGUAGES:_,formatTranslateOptions:g,formatArticle:y,formatUserProfile:f,formatBMIResult:e=>{var i,t,o,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(t=null==e?void 0:e.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(o=null==e?void 0:e.risk)&&void 0!==o?o:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:b,formatReviewedCategory:h,formatCategory:w,formatCategoryApi:e=>e?{categoryInfo:w(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(y),subCategories:(e.data.sub_categories||[]).map(w)}:{},formatFaqsCategory:k,formatHealthTool:x,formatHealthToolTypeCategory:e=>{var i,t;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(t=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>x(e))))&&void 0!==t?t:[]}:{}},formatCommunity:I,formatTopic:C,formatExpertAnswer:S,formatPost:T,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,t,o;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(t=e.from_user)||void 0===t?void 0:t.id,avatar:null===(o=e.from_user)||void 0===o?void 0:o.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:A,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:j,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:j(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;
|
|
@@ -101,7 +101,7 @@ import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenS
|
|
|
101
101
|
display: flex;
|
|
102
102
|
align-items: center;
|
|
103
103
|
justify-content: center;
|
|
104
|
-
background-color: ${
|
|
104
|
+
background-color: ${n.colors.secondaryBase};
|
|
105
105
|
border-radius: 50%;
|
|
106
106
|
color: white;
|
|
107
107
|
font-size: 1em;
|
|
@@ -111,7 +111,7 @@ import e,{useContext as i,useState as t}from"react";import{M as o}from"./screenS
|
|
|
111
111
|
|
|
112
112
|
&[data-is-marrybaby='true'] {
|
|
113
113
|
.avatar-default {
|
|
114
|
-
background-color: ${
|
|
114
|
+
background-color: ${n.mbColors.pink};
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,N=o=>{var{className:l,isMarryBaby:
|
|
117
|
+
`,N=o=>{var{className:l,isMarryBaby:n,style:d,avatar:s,username:u,size:m}=o,v=a(o,["className","isMarryBaby","style","avatar","username","size"]);const{data:{env:{isMarryBaby:p}}}=i(r),c="boolean"==typeof n?n:p,[_,g]=t(!1);return e.createElement(D,Object.assign({"data-is-marrybaby":c,className:l,style:d,size:m},v),s&&!_?e.createElement("img",{loading:"lazy",src:s,className:"avatar",alt:"avatar",onError:()=>{_||g(!0)}}):e.createElement("div",{className:"avatar avatar-default"},u&&(null==u?void 0:u.length)>0?u[0].toUpperCase():"A"))};export{u as P,N as U,T as a,I as b,y as c,B as d,w as e,j as f,C as g,A as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"./tslib.es6-842a2bb8.js";import t from"react";import{Image as o}from"@mantine/core";import{DatePickerInput as r}from"@mantine/dates";import{I as s}from"./index-f75306ca.js";import{L as a}from"./Subot-e272425a.js";import{CommonGAssets as i}from"./gAssets.js";import{M as n}from"./index-17d273a3.js";const l=l=>{var m,{value:c,fullWidth:d=!0}=l,p=e(l,["value","fullWidth"]);return t.createElement(r,Object.assign({locale:n[process.env.UNIFY_LOCALE||a.Vietnam],valueFormat:null===(m=s[process.env.UNIFY_LOCALE||a.Vietnam])||void 0===m?void 0:m.dateFormat,size:"md",clearable:!1,popoverProps:d?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:t.createElement(o,{src:i.getAssetPath(p.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16}),value:c},p,{className:`input-control ${(null==p?void 0:p.className)||""}`}))};export{l as D};
|