@hhgtech/hhg-components 1.28.36 → 1.28.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/avatar/index.styled.d.ts +2 -1
- package/build/components/atoms/backdrop/index.styled.d.ts +2 -1
- package/build/components/atoms/checkbox/index.styled.d.ts +2 -1
- package/build/components/atoms/grid/index.styled.d.ts +2 -1
- package/build/components/atoms/logo/index.styled.d.ts +3 -2
- package/build/components.js +1 -1
- package/build/{constants-437bb4bf.js → constants-8ef08ff5.js} +1 -1
- package/build/{constants-80dd2233.js → constants-e54aa389.js} +1 -1
- package/build/constants.js +1 -1
- package/build/core-ba7d65c8.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/avatar/index.styled.d.ts +2 -1
- package/build/esm/components/atoms/backdrop/index.styled.d.ts +2 -1
- package/build/esm/components/atoms/checkbox/index.styled.d.ts +2 -1
- package/build/esm/components/atoms/grid/index.styled.d.ts +2 -1
- package/build/esm/components/atoms/logo/index.styled.d.ts +3 -2
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-4c45be75.js → constants-2b76d121.js} +1 -1
- package/build/esm/{constants-c3b0c92c.js → constants-6cfaa1ef.js} +2 -2
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-5b21c19e.js → core-18ff4cb5.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-7989183b.js +1 -0
- package/build/esm/{getSocialList-3e7a32e3.js → getSocialList-5330dbd2.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-c9c584ed.js → index-03141739.js} +1 -1
- package/build/esm/{index-6536dd4e.js → index-064bc751.js} +1 -1
- package/build/esm/index-12a2d8bc.js +1 -0
- package/build/esm/{index-c22300e9.js → index-162b9bde.js} +1 -1
- package/build/esm/{index-f64ac5b4.js → index-2b4575ac.js} +1 -1
- package/build/esm/{index-f75306ca.js → index-2be76d22.js} +1 -1
- package/build/esm/index-5fdbf5bc.js +177 -0
- package/build/esm/{index-e7f889b2.js → index-60f16dee.js} +1 -1
- package/build/esm/{index-72cd7c00.js → index-6127f94b.js} +1 -1
- package/build/esm/index-6e2dd27b.js +1 -0
- package/build/esm/{index-a60bd3f2.js → index-74cef015.js} +1 -1
- package/build/esm/index-752b7c3f.js +1 -0
- package/build/esm/{index-17537d5b.js → index-7684a5b9.js} +1 -1
- package/build/esm/index-778d5fb2.js +1 -0
- package/build/esm/{index-15c00b1c.js → index-79f41857.js} +1 -1
- package/build/esm/index-84c08ad9.js +1 -0
- package/build/esm/{index-9d86c3a8.js → index-8f2fcc98.js} +1 -1
- package/build/esm/index-956cdde0.js +1 -0
- package/build/esm/{index-4eb2530b.js → index-9991cfb3.js} +1 -1
- package/build/esm/{index-17d273a3.js → index-a2e81576.js} +1 -1
- package/build/esm/{index-f0206e98.js → index-c9737971.js} +1 -1
- package/build/esm/{index-6c2d86ad.js → index-fa625a55.js} +1 -1
- package/build/esm/index.css +3 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-57535894.js → index.styled-17af4657.js} +1 -1
- package/build/esm/{index.styled-780df456.js → index.styled-36cb24ce.js} +1 -1
- package/build/esm/{index.styled-551f3c76.js → index.styled-46a99590.js} +1 -1
- package/build/esm/{index.styled-5c99d64b.js → index.styled-a25d7261.js} +87 -87
- package/build/esm/{index.styles-874b1834.js → index.styles-671382bc.js} +116 -335
- 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-a8a2d2fd.js → routing-ec23ed74.js} +1 -1
- package/build/esm/screenSizeContext-18a2ae59.js +81 -0
- package/build/esm/subot.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-07a8f7f9.js → types-232e79d1.js} +1 -1
- package/build/esm/{types-9b65a599.js → types-e1669387.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-8582dedd.js → useCategory-00053487.js} +1 -1
- package/build/esm/useHealthToolCache-cfa13b2f.js +1 -0
- package/build/esm/{usePlacesAutocomplete-3f0cff61.js → usePlacesAutocomplete-07f0fc32.js} +1 -1
- package/build/esm/{useRafState-27d2b972.js → useRafState-9968ee17.js} +1 -1
- package/build/esm/{useTranslations-14b7fcc5.js → useTranslations-d963b37f.js} +1 -1
- package/build/esm/utils-892d8a65.js +1 -0
- package/build/esm/{utils-0b2c5aec.js → utils-98561d5e.js} +1 -1
- package/build/esm/vaccination.js +11 -11
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-a7d75452.js +1 -0
- package/build/{getSocialList-72284d55.js → getSocialList-9e58358a.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/index-01f4346e.js +1 -0
- package/build/index-1763366b.js +1 -0
- package/build/{index-67f50ae5.js → index-2241f0a7.js} +1 -1
- package/build/{index-a527fd86.js → index-24584ae5.js} +1 -1
- package/build/{index-c9dc742a.js → index-3f6899fe.js} +1 -1
- package/build/{index-cc31ada4.js → index-5a341117.js} +1 -1
- package/build/{index-536d19f8.js → index-63e33ff2.js} +1 -1
- package/build/{index-88ff79b6.js → index-6a76dedf.js} +1 -1
- package/build/{index-edb98431.js → index-6b89bd1e.js} +1 -1
- package/build/index-7adb6ca5.js +1 -0
- package/build/{index-411b2c54.js → index-7c3ea642.js} +19 -19
- package/build/{index-a14ac95c.js → index-824143ee.js} +1 -1
- package/build/{index-3e31d08a.js → index-8e766956.js} +1 -1
- package/build/{index-24290a1e.js → index-8e8894d5.js} +1 -1
- package/build/{index-66d800b3.js → index-a788941c.js} +3 -3
- package/build/{index-4af92d15.js → index-b9003514.js} +1 -1
- package/build/index-c782489f.js +1 -0
- package/build/{index-81ec6599.js → index-d9c91a7a.js} +1 -1
- package/build/{index-95d71ef9.js → index-db727a39.js} +1 -1
- package/build/{index-28f61b63.js → index-df9365fe.js} +1 -1
- package/build/index-f8a63825.js +1 -0
- package/build/{index-7e3aeed4.js → index-fe748c3b.js} +1 -1
- package/build/index.css +3 -1
- package/build/index.js +1 -1
- package/build/{index.styled-86cd31ca.js → index.styled-3570c720.js} +6 -6
- package/build/{index.styled-6d41d939.js → index.styled-380d6e0a.js} +11 -11
- package/build/{index.styled-228e96a3.js → index.styled-40cb1c5c.js} +1 -1
- package/build/{index.styled-2ce77f4d.js → index.styled-77b9479f.js} +1 -1
- package/build/index.styles-3f14873c.js +627 -0
- 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 +3 -3
- package/build/{routing-0dd231c5.js → routing-f6c590ab.js} +1 -1
- package/build/screenSizeContext-41fd163e.js +81 -0
- package/build/subot.js +1 -1
- package/build/together.js +1 -1
- package/build/{types-b4747009.js → types-2439f02e.js} +1 -1
- package/build/{types-439160fd.js → types-72e39367.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-718ae913.js → useCategory-b165202c.js} +1 -1
- package/build/{useHealthToolCache-40a88025.js → useHealthToolCache-b15142cb.js} +1 -1
- package/build/{usePlacesAutocomplete-54de454b.js → usePlacesAutocomplete-966d009c.js} +1 -1
- package/build/{useRafState-c9f6527a.js → useRafState-af69ad6c.js} +1 -1
- package/build/{useTranslations-a1b68e91.js → useTranslations-95cf8449.js} +1 -1
- package/build/utils-167797c2.js +1 -0
- package/build/utils-6754d753.js +1 -0
- package/build/vaccination.js +4 -4
- package/package.json +7 -2
- package/build/core-80e9cff8.js +0 -1
- package/build/esm/getDynamicHealthTool-2e9a5548.js +0 -1
- package/build/esm/index-020361fe.js +0 -177
- package/build/esm/index-1782f56e.js +0 -1
- package/build/esm/index-1b2689ee.js +0 -1
- package/build/esm/index-2eac1ec8.js +0 -1
- package/build/esm/index-9d393a92.js +0 -1
- package/build/esm/index-a1e1a441.js +0 -1
- package/build/esm/index-a903d8ce.js +0 -1
- package/build/esm/screenSizeContext-dff03e2b.js +0 -81
- package/build/esm/useHealthToolCache-5b104f1e.js +0 -1
- package/build/esm/utils-cca2af3a.js +0 -141
- package/build/getDynamicHealthTool-fad842aa.js +0 -1
- package/build/index-18823495.js +0 -1
- package/build/index-18bee338.js +0 -1
- package/build/index-3ec29f74.js +0 -1
- package/build/index-461460ac.js +0 -1
- package/build/index-f62932f3.js +0 -1
- package/build/index.styles-b3f7ae61.js +0 -846
- package/build/screenSizeContext-0e841cc0.js +0 -81
- package/build/utils-50bb77a6.js +0 -1
- package/build/utils-7528478f.js +0 -141
- /package/build/{BMI_BOYS.percentile.monthly-bd7c4653.js → BMI_BOYS.percentile.monthly-19f4ed11.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-aa0676d7.js → BMI_BOYS.percentile.weekly-988c28e7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-710bf0bc.js → BMI_BOYS.percentile.yearly-2ce0172a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-265d16b8.js → BMI_BOYS.zscore.monthly-0319a3ca.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-20e34020.js → BMI_BOYS.zscore.weekly-6af17a54.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-67395b04.js → BMI_BOYS.zscore.yearly-51a52dc7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-e5a6f286.js → BMI_GIRLS.percentile.monthly-49e8d16b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-0d918cc9.js → BMI_GIRLS.percentile.weekly-6852a685.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-9ab58003.js → BMI_GIRLS.percentile.yearly-e769c49a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-980c6ad8.js → BMI_GIRLS.zscore.monthly-82c5d7a1.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-2886baca.js → BMI_GIRLS.zscore.weekly-1f4764fb.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-e3123e93.js → BMI_GIRLS.zscore.yearly-cac12266.js} +0 -0
- /package/build/{ChevronDown-7d583eac.js → ChevronDown-5b4ef88d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-5489c654.js → HEAD CIRCUM_BOYS.percentile.monthly-00707b2f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-72af67ec.js → HEAD CIRCUM_BOYS.percentile.weekly-36272a6b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-4689f174.js → HEAD CIRCUM_BOYS.percentile.yearly-8ffd2a1b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-218db6e2.js → HEAD CIRCUM_BOYS.zscore.monthly-b9037d32.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d4b77ee2.js → HEAD CIRCUM_BOYS.zscore.weekly-acf9cc31.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-ba3d997e.js → HEAD CIRCUM_BOYS.zscore.yearly-50079d83.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-120ece3e.js → HEAD CIRCUM_GIRLS.percentile.monthly-211234b7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-591bb09a.js → HEAD CIRCUM_GIRLS.percentile.weekly-b6a1780b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-2a19d75a.js → HEAD CIRCUM_GIRLS.percentile.yearly-2ac79afc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-47aa0b49.js → HEAD CIRCUM_GIRLS.zscore.monthly-39639744.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-7faf2731.js → HEAD CIRCUM_GIRLS.zscore.weekly-8ebb9191.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0a9527cb.js → HEAD CIRCUM_GIRLS.zscore.yearly-0a728371.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-975cab78.js → HEIGHT_BOYS.percentile.monthly-a04a5707.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-45fbff53.js → HEIGHT_BOYS.percentile.weekly-601c6385.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-2a158d1f.js → HEIGHT_BOYS.percentile.yearly-ee7cc294.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-8dc3c9d2.js → HEIGHT_BOYS.zscore.monthly-390392ac.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-6156e4e0.js → HEIGHT_BOYS.zscore.weekly-d0be59ca.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-f76c1f5e.js → HEIGHT_BOYS.zscore.yearly-67fe48eb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-b45e867e.js → HEIGHT_GIRLS.percentile.monthly-32fbf6d6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-46b92e1b.js → HEIGHT_GIRLS.percentile.weekly-378c22e7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-9abaef8d.js → HEIGHT_GIRLS.percentile.yearly-f8a775da.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-eb201a4a.js → HEIGHT_GIRLS.zscore.monthly-eba9d82b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-1c1b80f3.js → HEIGHT_GIRLS.zscore.weekly-649d1e6a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-19fe9d55.js → HEIGHT_GIRLS.zscore.yearly-d7566aef.js} +0 -0
- /package/build/{Subot-6a20c386.js → Subot-781f30c5.js} +0 -0
- /package/build/{Visible-96ce1462.js → Visible-0d367263.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-48925e68.js → WEIGHT_BOYS.percentile.monthly-cdd83d2c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-9675b472.js → WEIGHT_BOYS.percentile.weekly-08b2cc25.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-5ae74491.js → WEIGHT_BOYS.percentile.yearly-78bd0332.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-fda03047.js → WEIGHT_BOYS.zscore.monthly-bd9c59c4.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-2ab9f08c.js → WEIGHT_BOYS.zscore.weekly-71bf2560.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-b68de4e1.js → WEIGHT_BOYS.zscore.yearly-80a65ace.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1c82f3e1.js → WEIGHT_GIRLS.percentile.monthly-e602fb9f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-0628410e.js → WEIGHT_GIRLS.percentile.weekly-8ec40671.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-bac2752a.js → WEIGHT_GIRLS.percentile.yearly-6c13450f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-444c0637.js → WEIGHT_GIRLS.zscore.monthly-f2dff34a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-e943b0eb.js → WEIGHT_GIRLS.zscore.weekly-a7c88fa4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-cd96850c.js → WEIGHT_GIRLS.zscore.yearly-4c55b4b9.js} +0 -0
- /package/build/{cookieHelper-90494d05.js → cookieHelper-cb2c780d.js} +0 -0
- /package/build/{dataTransform-6263c35e.js → dataTransform-aa76f31c.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-2f0ebcbf.js → BMI_BOYS.percentile.monthly-05d05da5.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-923b3d30.js → BMI_BOYS.percentile.weekly-b1aa1512.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-7d39033d.js → BMI_BOYS.percentile.yearly-9a9ca29b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-21915d60.js → BMI_BOYS.zscore.monthly-ab8c5087.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-afaad99e.js → BMI_BOYS.zscore.weekly-9c26d743.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-2d48176b.js → BMI_BOYS.zscore.yearly-0c8e88bf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-67f03f38.js → BMI_GIRLS.percentile.monthly-09da7135.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-a2c33686.js → BMI_GIRLS.percentile.weekly-04cd0f7f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-7a98dd42.js → BMI_GIRLS.percentile.yearly-b96e6cdd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-599baf2d.js → BMI_GIRLS.zscore.monthly-e301d83d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-c258aef0.js → BMI_GIRLS.zscore.weekly-23ab6a7b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e8ce4dc8.js → BMI_GIRLS.zscore.yearly-576720ea.js} +0 -0
- /package/build/esm/{ChevronDown-198d9cc6.js → ChevronDown-70559b47.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-bc41ab37.js → HEAD CIRCUM_BOYS.percentile.monthly-81d95d86.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-bd73d642.js → HEAD CIRCUM_BOYS.percentile.weekly-12162f09.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-044a1a1a.js → HEAD CIRCUM_BOYS.percentile.yearly-45cd1c23.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-61bf74c0.js → HEAD CIRCUM_BOYS.zscore.monthly-47835e82.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-28e9f5ed.js → HEAD CIRCUM_BOYS.zscore.weekly-026aced6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-2a0e1789.js → HEAD CIRCUM_BOYS.zscore.yearly-01c4d654.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-13f948b3.js → HEAD CIRCUM_GIRLS.percentile.monthly-3bac7be1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-88cc5320.js → HEAD CIRCUM_GIRLS.percentile.weekly-d0a20741.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-7f0f400b.js → HEAD CIRCUM_GIRLS.percentile.yearly-dc919555.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-d78908a1.js → HEAD CIRCUM_GIRLS.zscore.monthly-47bf7a3c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f3207f83.js → HEAD CIRCUM_GIRLS.zscore.weekly-a8e45e75.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-0628d6d8.js → HEAD CIRCUM_GIRLS.zscore.yearly-bf546ba6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-182bed39.js → HEIGHT_BOYS.percentile.monthly-6ba59424.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-44f52c09.js → HEIGHT_BOYS.percentile.weekly-29b8fe64.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-bb541601.js → HEIGHT_BOYS.percentile.yearly-f135b8e2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a9a9dd47.js → HEIGHT_BOYS.zscore.monthly-49e9680a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-9fc7b902.js → HEIGHT_BOYS.zscore.weekly-f9a65efa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-88da8bc2.js → HEIGHT_BOYS.zscore.yearly-8b5ad6d2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-fb5f6f0d.js → HEIGHT_GIRLS.percentile.monthly-e5b38079.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-4baca659.js → HEIGHT_GIRLS.percentile.weekly-f3670276.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-fc7e1fc1.js → HEIGHT_GIRLS.percentile.yearly-4c02f1bb.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b439db85.js → HEIGHT_GIRLS.zscore.monthly-640e5e55.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-8681e64a.js → HEIGHT_GIRLS.zscore.weekly-4eead516.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-28b1d0bb.js → HEIGHT_GIRLS.zscore.yearly-6ebee51c.js} +0 -0
- /package/build/esm/{Subot-e272425a.js → Subot-2c9e4c09.js} +0 -0
- /package/build/esm/{Visible-e7a4b560.js → Visible-280d16e3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-d6835449.js → WEIGHT_BOYS.percentile.monthly-430dc3b2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-bc54a47c.js → WEIGHT_BOYS.percentile.weekly-b937aeb9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-69b5c0cf.js → WEIGHT_BOYS.percentile.yearly-cbf833e8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-fae0c31f.js → WEIGHT_BOYS.zscore.monthly-dd6b0e64.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-58bfd560.js → WEIGHT_BOYS.zscore.weekly-786a8d18.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-4e428e24.js → WEIGHT_BOYS.zscore.yearly-acfb2c76.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-5136f490.js → WEIGHT_GIRLS.percentile.monthly-1e4153b0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-bd8ea375.js → WEIGHT_GIRLS.percentile.weekly-f69a3ddb.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-40e16990.js → WEIGHT_GIRLS.percentile.yearly-a42cb1fc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-bc34aead.js → WEIGHT_GIRLS.zscore.monthly-c8062203.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-c5ab12a0.js → WEIGHT_GIRLS.zscore.weekly-c4c6e1e6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-41608a14.js → WEIGHT_GIRLS.zscore.yearly-35f750e9.js} +0 -0
- /package/build/esm/{cookieHelper-28df9366.js → cookieHelper-02a646ef.js} +0 -0
- /package/build/esm/{dataTransform-3cf63532.js → dataTransform-3970f88b.js} +0 -0
- /package/build/esm/{index-ac4a532b.js → index-2d5104c5.js} +0 -0
- /package/build/esm/{index-9d4a84ac.js → index-4daeba4d.js} +0 -0
- /package/build/esm/{index-10c5feed.js → index-d74e3f4d.js} +0 -0
- /package/build/esm/{isProduction-b5290208.js → isProduction-2e0a8f23.js} +0 -0
- /package/build/esm/{localizeNumberFormat-a5628e95.js → localizeNumberFormat-d7e41005.js} +0 -0
- /package/build/esm/{normalizeLink-03495796.js → normalizeLink-78014c07.js} +0 -0
- /package/build/esm/{number-97247dba.js → number-33fd0b74.js} +0 -0
- /package/build/esm/{paths-fcede6b6.js → paths-64d19041.js} +0 -0
- /package/build/esm/{theme-ccf55e31.js → theme-2bdea2f5.js} +0 -0
- /package/build/esm/{translationsContext-7856306b.js → translationsContext-63b5cfff.js} +0 -0
- /package/build/esm/{tslib.es6-842a2bb8.js → tslib.es6-70854b37.js} +0 -0
- /package/build/esm/{types-3f42ad37.js → types-4c039872.js} +0 -0
- /package/build/esm/{useIsInit-7d05716a.js → useIsInit-28ed39fb.js} +0 -0
- /package/build/esm/{useOutsideClick-9d03d01d.js → useOutsideClick-0fb1f5b8.js} +0 -0
- /package/build/esm/{useScrollbarSize-1c748ec0.js → useScrollbarSize-622c2c1a.js} +0 -0
- /package/build/{index-a6882810.js → index-36f0d549.js} +0 -0
- /package/build/{index-b3a56944.js → index-869fff15.js} +0 -0
- /package/build/{index-22f2dd43.js → index-f0a00b26.js} +0 -0
- /package/build/{isProduction-975fbda1.js → isProduction-d688052c.js} +0 -0
- /package/build/{localizeNumberFormat-f603a6d8.js → localizeNumberFormat-c01aadd7.js} +0 -0
- /package/build/{normalizeLink-b260b165.js → normalizeLink-b47d5761.js} +0 -0
- /package/build/{number-3f6eba85.js → number-7e0491b4.js} +0 -0
- /package/build/{paths-9ce571a8.js → paths-b90c2d13.js} +0 -0
- /package/build/{theme-cf605758.js → theme-5779230b.js} +0 -0
- /package/build/{translationsContext-b4e24bbe.js → translationsContext-149822d4.js} +0 -0
- /package/build/{tslib.es6-8187fb3c.js → tslib.es6-afbb99a9.js} +0 -0
- /package/build/{types-16f153bc.js → types-3377b03d.js} +0 -0
- /package/build/{useIsInit-df1db68e.js → useIsInit-2ed8cbec.js} +0 -0
- /package/build/{useOutsideClick-eeca1a83.js → useOutsideClick-e2fd0c7a.js} +0 -0
- /package/build/{useScrollbarSize-7a77a7be.js → useScrollbarSize-4279aad3.js} +0 -0
package/build/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-7c3ea642.js"),t=require("react"),r=require("./Subot-781f30c5.js"),a=require("./theme-5779230b.js"),l=require("./index-df9365fe.js"),o=require("styled-components"),n=require("./index-b9003514.js"),i=require("./index-fe748c3b.js"),d=require("dayjs"),s=require("./useTranslations-95cf8449.js");require("lodash/debounce"),require("./isProduction-d688052c.js"),require("./index-6b89bd1e.js"),require("./useCategory-b165202c.js");var c=require("./localizeNumberFormat-c01aadd7.js"),u=require("./index.styles-3f14873c.js"),C=require("./screenSizeContext-41fd163e.js"),h=require("./tslib.es6-afbb99a9.js");require("@mantine/core"),require("@linaria/react"),require("./index-63e33ff2.js"),require("./gAssets.js"),require("./constants-8ef08ff5.js"),require("./utils-6754d753.js");var m=require("./index-c782489f.js"),f=require("./index-869fff15.js"),y=require("./useOutsideClick-e2fd0c7a.js");require("@mantine/dates"),require("@mantine/hooks");var p=require("./index-5a341117.js"),b=require("./index-d9c91a7a.js"),g=require("recharts"),x=require("lodash/chunk");function E(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./index.styled-40cb1c5c.js"),require("./translationsContext-149822d4.js"),require("string-format"),require("date-fns/locale"),require("react-keyed-flatten-children"),require("./cookieHelper-cb2c780d.js"),require("slugify"),require("lodash/throttle"),require("@mantine/carousel"),require("classnames"),require("./useScrollbarSize-4279aad3.js"),require("react-dom");var w=E(t),v=E(o),B=E(d),L=E(x);const G=v.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
`,X=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:d}=s.useTranslations(),c="marryBaby"===n;return w.default.createElement(K,{onClick:()=>t("new"),"data-is-mb":c,"data-isActive":c&&e},"marryBaby"===n?w.default.createElement("div",{className:"title"},w.default.createElement(i.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},d("chooseBaby.new")),w.default.createElement("div",{className:e?"radio active":"radio"},e&&w.default.createElement(l.Icon.CheckActiveMB,{size:26}))):w.default.createElement("div",{className:"title"},w.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},d("chooseBaby.new")),w.default.createElement("div",{className:e?"radio active":"radio"})),w.default.createElement(b.Input,{name:"name",value:r,size:"md",placeholder:d("chooseBaby.placeholder"),type:"text",onChange:o}))},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-
|
|
400
|
+
`,X=({isActive:e,onChange:t,value:r="",onInputChange:o,siteType:n})=>{const{t:d}=s.useTranslations(),c="marryBaby"===n;return w.default.createElement(K,{onClick:()=>t("new"),"data-is-mb":c,"data-isActive":c&&e},"marryBaby"===n?w.default.createElement("div",{className:"title"},w.default.createElement(i.MarryBabyText,{type:"bodytext-1",color:a.theme.colors.gray800},d("chooseBaby.new")),w.default.createElement("div",{className:e?"radio active":"radio"},e&&w.default.createElement(l.Icon.CheckActiveMB,{size:26}))):w.default.createElement("div",{className:"title"},w.default.createElement(l.Text,{size:"p2",color:a.theme.colors.gray800},d("chooseBaby.new")),w.default.createElement("div",{className:e?"radio active":"radio"})),w.default.createElement(b.Input,{name:"name",value:r,size:"md",placeholder:d("chooseBaby.placeholder"),type:"text",onChange:o}))},J={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-601c6385.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-a04a5707.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-ee7cc294.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-08b2cc25.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-cdd83d2c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-78bd0332.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-36272a6b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-00707b2f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-8ffd2a1b.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-988c28e7.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-19f4ed11.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-2ce0172a.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-378c22e7.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-32fbf6d6.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-f8a775da.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-8ec40671.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-e602fb9f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-6c13450f.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-b6a1780b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-211234b7.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-2ac79afc.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-6852a685.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-49e8d16b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-e769c49a.js")}))}}},Q={[r.Gender.Boy]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-d0be59ca.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-390392ac.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-67fe48eb.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-71bf2560.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-bd9c59c4.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-80a65ace.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-acf9cc31.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-b9037d32.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-50079d83.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-6af17a54.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-0319a3ca.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-51a52dc7.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-649d1e6a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-eba9d82b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-d7566aef.js")}))},[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-a7c88fa4.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-f2dff34a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-4c55b4b9.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-8ebb9191.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-39639744.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-0a728371.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-1f4764fb.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-82c5d7a1.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-cac12266.js")}))}}},ee=(e,t,a,l)=>l===r.LOCALE.Indonesia?Q[e][t][a]():J[e][t][a](),te=(e,t)=>{const[r,a]=L.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},re=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ae=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),le=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},oe=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ne=v.default.div`
|
|
401
401
|
position: relative;
|
|
402
402
|
.custom-chart-label {
|
|
403
403
|
display: flex;
|
package/build/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-ba7d65c8.js");require("./tslib.es6-afbb99a9.js"),require("./isProduction-d688052c.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
|
package/build/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-72e39367.js"),r=require("./constants-8ef08ff5.js");require("./tslib.es6-afbb99a9.js"),require("react"),require("./useTranslations-95cf8449.js"),require("./translationsContext-149822d4.js"),require("string-format"),require("lodash/debounce"),require("./index-d9c91a7a.js"),require("@mantine/core"),require("styled-components"),require("./index-df9365fe.js"),require("./theme-5779230b.js"),require("dayjs"),require("./screenSizeContext-41fd163e.js"),require("lodash/throttle"),require("./index-6b89bd1e.js"),require("date-fns/locale"),require("./Subot-781f30c5.js"),require("./isProduction-d688052c.js"),require("./gAssets.js"),require("lodash/shuffle"),require("./useOutsideClick-e2fd0c7a.js"),require("react-loading-skeleton"),require("./paths-b90c2d13.js"),require("./cookieHelper-cb2c780d.js"),require("./index-36f0d549.js"),require("./ChevronDown-5b4ef88d.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.TextDivider=e.TextDivider,exports.CareConstants=r.constants;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export type StyledAvatarProps = {
|
|
2
3
|
size?: number;
|
|
3
4
|
backgroundColor?: string;
|
|
@@ -5,4 +6,4 @@ export type StyledAvatarProps = {
|
|
|
5
6
|
width?: number;
|
|
6
7
|
height?: number;
|
|
7
8
|
};
|
|
8
|
-
export declare const StyledAvatar: import("
|
|
9
|
+
export declare const StyledAvatar: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & StyledAvatarProps>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledBackdrop: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledCheckbox: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledGrid: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledLogo: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const StyledProLogo: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-1763366b.js"),r=require("./index-b9003514.js"),o=require("./index-6a76dedf.js"),t=require("./index-63e33ff2.js"),i=require("./index.styles-3f14873c.js"),a=require("./index-d9c91a7a.js"),s=require("./constants-8ef08ff5.js"),n=require("./index-f8a63825.js"),d=require("./index-c782489f.js"),u=require("./index-36f0d549.js"),p=require("./index-df9365fe.js"),x=require("./index-7c3ea642.js"),c=require("./index.styled-380d6e0a.js"),l=require("./index-869fff15.js"),q=require("./utils-6754d753.js"),g=require("./index-3f6899fe.js"),C=require("./index-a788941c.js"),b=require("./index-5a341117.js"),j=require("./index-01f4346e.js"),f=require("./index-8e766956.js"),m=require("./index-8e8894d5.js"),P=require("./footer.js");require("react"),require("@linaria/react"),require("./screenSizeContext-41fd163e.js"),require("styled-components"),require("lodash/throttle"),require("./useTranslations-95cf8449.js"),require("./translationsContext-149822d4.js"),require("string-format"),require("./gAssets.js"),require("./index-6b89bd1e.js"),require("date-fns/locale"),require("./Subot-781f30c5.js"),require("./isProduction-d688052c.js"),require("./theme-5779230b.js"),require("./tslib.es6-afbb99a9.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("dayjs"),require("@mantine/hooks"),require("html-react-parser"),require("date-fns"),require("./index.styled-40cb1c5c.js"),require("lodash/debounce"),require("./useCategory-b165202c.js"),require("./types-3377b03d.js"),require("./index-824143ee.js"),require("./index-fe748c3b.js"),require("react-hook-form"),require("./useHealthToolCache-b15142cb.js"),require("./getDynamicHealthTool-a7d75452.js"),require("./core-ba7d65c8.js"),require("./normalizeLink-b47d5761.js"),require("./routing-f6c590ab.js"),require("./useOutsideClick-e2fd0c7a.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-9e58358a.js"),require("uuid"),require("@mantine/form"),require("./index-24584ae5.js"),require("js-cookie"),require("lodash/flatten"),require("react-contenteditable"),require("react-dom"),require("lodash/uniqBy"),require("./cookieHelper-cb2c780d.js"),require("@mantine/carousel"),require("classnames"),require("react-keyed-flatten-children"),require("slugify"),require("./number-7e0491b4.js"),require("dayjs/plugin/relativeTime"),require("./paths-b90c2d13.js"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-4279aad3.js"),require("./index.styled-77b9479f.js"),require("./constants-e54aa389.js"),require("./ChevronDown-5b4ef88d.js"),require("./index-7adb6ca5.js"),require("./useIsInit-2ed8cbec.js"),require("./index.styled-3570c720.js"),require("./utils-167797c2.js"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.ArticleCardV2=e.ArticleCard$1,exports.Avatar=e.Avatar,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FixedBottomAdBlock=e.FixedBottomAdBlock,exports.FloatButtonGroup=e.FloatButtonGroup,exports.GenderOptionControl=e.GenderOptionControl,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.ProgressBar=e.ProgressBar,exports.Radio=e.Radio,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyOrPremiumBanner=e.SurveyOrPremiumBanner,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.UserProfileNavigation=e.UserProfileNavigation,exports.UserProfileNavigationHeader=e.NavHeader,exports.UserProfileNavigationStats=e.UserStats,exports.Button=r.Button,exports.BtnChoice=o.BtnChoice,exports.Divider=o.Divider,exports.Flag=t.Flag,exports.ImageWrap=t.ImageWrap,exports.Heading=i.Heading,exports.PureInput=i.PureInput,exports.StepRenderer=i.StepRenderer,exports.StepRendererContext=i.StepRendererContext,exports.TextArea=i.TextArea,exports.Input=a.Input,exports.Label=s.Label,exports.Logo=n.Logo,exports.Text=d.Text,exports.Container=u.Container,exports.Icon=p.Icon,exports.Drawer=x.Drawer,exports.RadioImageGroup=x.RadioImageGroup,exports.AuthorBadge=c.AuthorBadge,exports.BookingBtn=c.BookingBtn,exports.Dropdown=c.Dropdown,exports.CustomReferenceDot=l.CustomReferenceDot,exports.LogoIcon=q.LogoIcon,exports.AdBlock=g.AdBlock,exports.DatePicker=g.DatePicker,exports.DoctorInfo=g.DoctorInfo,exports.Loading=g.Loading,exports.MAPPING_CATEGORY_PREMIUM_API_TYPE=g.MAPPING_CATEGORY_PREMIUM_API_TYPE,exports.MAPPING_CATEGORY_PREMIUM_TYPE=g.MAPPING_CATEGORY_PREMIUM_TYPE,exports.MobileBottomNavigation=g.MobileBottomNavigation,exports.MobileBottomNavigationIcon=g.MobileBottomNavigationIcon,exports.RadioGroup=g.RadioGroup,exports.SurveyQuestionCard=g.SurveyQuestionCard,exports.ToolsBannerCard=g.ToolsBannerCard,exports.Popup=C.Popup,exports.Modal=b.Modal,exports.LanguageSwitcher=j.LanguageSwitcher,exports.NavigationLogoutPopup=j.NavigationLogoutPopup,exports.NavigationProfileButton=j.NavigationProfileButton,exports.NavigationV2=j.NavigationV2,exports.ProfileNavigation=j.ProfileNavigation,exports.getNavMenuContent=j.getNavMenuContent,exports.getNavMenuContentWithCache=j.getNavMenuContentWithCache,exports.PillCarousel=f.PillCarousel,exports.AddressInput=m.AddressInput,exports.Footer=P.Footer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./theme-
|
|
1
|
+
"use strict";var e=require("./theme-5779230b.js"),i=require("./screenSizeContext-41fd163e.js"),t=require("styled-components"),a=require("react");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=s(t),r=s(a);const n=o.default.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./index-edb98431.js");var e=require("./isProduction-975fbda1.js");const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},h=o?"http://localhost:3001":e.isProduction?`https://${a[t]}`:`https://discover.${a[t]}`,c=e.isProduction?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const O={"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},_={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=l?l:{}}]})}};var r=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:O,HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:_});exports.LOCALISED_SLUGS=O,exports.constants=r;
|
|
1
|
+
"use strict";require("./index-6b89bd1e.js");var e=require("./isProduction-d688052c.js");const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},h=o?"http://localhost:3001":e.isProduction?`https://${a[t]}`:`https://discover.${a[t]}`,c=e.isProduction?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const O={"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},_={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=l?l:{}}]})}};var r=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:O,HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:_});exports.LOCALISED_SLUGS=O,exports.constants=r;
|
package/build/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Subot-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("date-fns/locale"),require("./Subot-781f30c5.js");var E=require("./index-6b89bd1e.js"),e=require("./isProduction-d688052c.js");exports.API_DATE_FORMAT=E.API_DATE_FORMAT,exports.BEARER_TOKEN_COOKIE=E.BEARER_TOKEN_COOKIE,exports.CARE_BOOKING_LOCALES=E.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=E.CARE_LOCALES,exports.CDN_ADDRESS=E.CDN_ADDRESS,exports.DATE_FNS_DATE_FORMAT=E.DATE_FNS_DATE_FORMAT,exports.DATE_FNS_LOCALE=E.DATE_FNS_LOCALE,exports.ECOM_LOCALES=E.ECOM_LOCALES,exports.FAVICONS=E.FAVICONS,exports.GA_TOKEN_COOKIE=E.GA_TOKEN_COOKIE,exports.ISO_FORMAT=E.ISO_FORMAT,exports.LOCALE_SPECS=E.LOCALE_SPECS,exports.MAP_DOMAIN_BY_LOCALE=E.MAP_DOMAIN_BY_LOCALE,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return E.QUERY_HEALTH_TOOL}}),Object.defineProperty(exports,"RISK_SCREENER_NAME",{enumerable:!0,get:function(){return E.RISK_SCREENER_NAME}}),exports.RISK_SCREENER_SLUG=E.RISK_SCREENER_SLUG,exports.SSO_URL=E.SSO_URL,exports.STATIC_PAGES=E.STATIC_PAGES,exports.TOGETHER_LOCALES=E.TOGETHER_LOCALES,exports.UP_BASEPATH=E.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=E.USER_GEOLOCATION_COORDINATES_COOKIE,exports.basePath=E.basePath,exports.domainLocales=E.domainLocales,exports.siteHost=E.siteHost,exports.siteOptions=E.siteOptions,exports.isProduction=e.isProduction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("./tslib.es6-afbb99a9.js"),e=require("./isProduction-d688052c.js");const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},r=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}};exports.getCachedItem=i,exports.getDataWithCache=(e,a,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(a){const t=yield a();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
|
package/build/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./theme-cf605758.js"),e=require("./constants-80dd2233.js"),o=require("./types-16f153bc.js");require("./index-edb98431.js"),require("date-fns/locale"),require("./Subot-6a20c386.js"),require("./isProduction-975fbda1.js");var i=Object.freeze({__proto__:null}),l=Object.freeze({__proto__:null});function a(t){return null!=t}const r={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,e)=>{const o="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(e||"vi-VN").format(o)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(e,o,i){var l,a,n;const d=i?i+"/"+e.slug:e.slug,u=(null===(a=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===a?void 0:a.call(l,(t=>r.formatCategory(t,e.id,d))))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:d||"",children:u,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(n=e.products)||void 0===n?void 0:n.map(r.formatProduct))||[]}},formatFooterInfo:t=>{var e,o,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(o=null===(e=null==t?void 0:t.branch)||void 0===e?void 0:e.branch)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var e,o;return{menu_title:t.menu_title,items:null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var e,o,i,l,a,n;return{hotSearchKeywords:(null===(o=null===(e=null==t?void 0:t.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==t?void 0:t.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(t=>r.formatCategory(t))))||[],footer:r.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var e,o,i,l;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&r.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(o=null===(e=t.product_promotions)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProductPromotion).filter(a))||[],categories:(null===(l=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(t=>r.formatCategory(t))).filter(a))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var e,o;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(o=(e=t.post_data.categories).map)||void 0===o?void 0:o.call(e,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var e,o,i,l;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatHomePage:t=>{var e,o,i,l,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(o=(e=t.brands).map)||void 0===o?void 0:o.call(e,r.formatBrand).filter(a):[],hotDeals:t.hot_deals?null===(l=(i=t.hot_deals).map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,r.formatBanner).filter(a):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,r.formatBanner).filter(a):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,r.formatBanner).filter(a):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,r.formatBlogPost).filter(a):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>r.formatCategory(t))).filter(a):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>r.formatCategory(t))).filter(a):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>r.formatPromotion(t))).filter(a):[]}:null},formatCategoryPage:function(t){var e,o,i,l;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatBrandPage:function(t){return t?r.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var e,o,i,l,n,d,u,s;return t?Object.assign(Object.assign({},r.formatProduct(t)),{relatedProducts:(null===(o=null===(e=t.related_products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProduct).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,r.formatPromotion).filter(a))||[]}):null},formatProductReview:t=>{var e,o;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(o=null===(e=t.rating_votes)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,e)=>{var o;return(null==t?void 0:t.length)&&(null===(o=null==t?void 0:t.find((t=>t.attribute_code===e)))||void 0===o?void 0:o.value)||""},formatAddress:t=>{var e,o,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(e=t.region)||void 0===e?void 0:e.region_id,label:null===(o=t.region)||void 0===o?void 0:o.region}||null,district:{value:r.formatCustomAttributes(t.custom_attributes,"district_id"),label:r.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:r.formatCustomAttributes(t.custom_attributes,"ward_id"),label:r.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var e,o;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(o=null===(e=null==t?void 0:t.products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var e,o,i,l,a;return t?{pending:Number(null===(e=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===e?void 0:e.amount)||0,processing:Number(null===(o=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===o?void 0:o.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var e,o,i,l,a,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(e=t.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(o=t.extension_attributes)||void 0===o?void 0:o.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(a=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,r.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var e;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(e=t.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var e,o,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(o=null===(e=t.addresses)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var e,o,i,l,a,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartItem))||void 0===i?void 0:i.sort(((t,e)=>Number(null==e?void 0:e.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?r.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?r.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(a=t.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var e,o,i;return{shipping:{address:t.shipping.address?r.formatCartAddress(t.shipping.address):null,method:(null===(e=t.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(o=t.items).map)||void 0===i?void 0:i.call(o,r.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var e,o,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var e;return t?{paymentMethods:r.formatPaymentMethod(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:r.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:r.formatOrder(t.order_info)}:null,formatCoupons:t=>{var e;return(null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var e;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]};var n=Object.freeze({__proto__:null,dataFormatter:r});exports.Constants=e.constants,exports.Types=o.types,exports.ApiTypes=i,exports.DataFormatter=n,exports.DataTypes=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./theme-5779230b.js"),e=require("./constants-e54aa389.js"),o=require("./types-3377b03d.js");require("./index-6b89bd1e.js"),require("date-fns/locale"),require("./Subot-781f30c5.js"),require("./isProduction-d688052c.js");var i=Object.freeze({__proto__:null}),l=Object.freeze({__proto__:null});function a(t){return null!=t}const r={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,e)=>{const o="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(e||"vi-VN").format(o)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(e,o,i){var l,a,n;const d=i?i+"/"+e.slug:e.slug,u=(null===(a=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===a?void 0:a.call(l,(t=>r.formatCategory(t,e.id,d))))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:d||"",children:u,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(n=e.products)||void 0===n?void 0:n.map(r.formatProduct))||[]}},formatFooterInfo:t=>{var e,o,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(o=null===(e=null==t?void 0:t.branch)||void 0===e?void 0:e.branch)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var e,o;return{menu_title:t.menu_title,items:null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var e,o,i,l,a,n;return{hotSearchKeywords:(null===(o=null===(e=null==t?void 0:t.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==t?void 0:t.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(t=>r.formatCategory(t))))||[],footer:r.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var e,o,i,l;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&r.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(o=null===(e=t.product_promotions)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProductPromotion).filter(a))||[],categories:(null===(l=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(t=>r.formatCategory(t))).filter(a))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var e,o;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:r.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(o=(e=t.post_data.categories).map)||void 0===o?void 0:o.call(e,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var e,o,i,l;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatHomePage:t=>{var e,o,i,l,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(o=(e=t.brands).map)||void 0===o?void 0:o.call(e,r.formatBrand).filter(a):[],hotDeals:t.hot_deals?null===(l=(i=t.hot_deals).map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,r.formatBanner).filter(a):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,r.formatBanner).filter(a):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,r.formatBanner).filter(a):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,r.formatBlogPost).filter(a):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>r.formatCategory(t))).filter(a):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>r.formatCategory(t))).filter(a):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>r.formatPromotion(t))).filter(a):[]}:null},formatCategoryPage:function(t){var e,o,i,l;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(o=null===(e=t.banners)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatBanner).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[]}:null},formatBrandPage:function(t){return t?r.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var e,o,i,l,n,d,u,s;return t?Object.assign(Object.assign({},r.formatProduct(t)),{relatedProducts:(null===(o=null===(e=t.related_products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatProduct).filter(a))||[],bestsellerProducts:(null===(l=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,r.formatProduct).filter(a))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,r.formatProduct).filter(a))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,r.formatPromotion).filter(a))||[]}):null},formatProductReview:t=>{var e,o;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(o=null===(e=t.rating_votes)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,e)=>{var o;return(null==t?void 0:t.length)&&(null===(o=null==t?void 0:t.find((t=>t.attribute_code===e)))||void 0===o?void 0:o.value)||""},formatAddress:t=>{var e,o,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(e=t.region)||void 0===e?void 0:e.region_id,label:null===(o=t.region)||void 0===o?void 0:o.region}||null,district:{value:r.formatCustomAttributes(t.custom_attributes,"district_id"),label:r.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:r.formatCustomAttributes(t.custom_attributes,"ward_id"),label:r.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var e,o;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(o=null===(e=null==t?void 0:t.products)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var e,o,i,l,a;return t?{pending:Number(null===(e=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===e?void 0:e.amount)||0,processing:Number(null===(o=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===o?void 0:o.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var e,o,i,l,a,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(e=t.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(o=t.extension_attributes)||void 0===o?void 0:o.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(a=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,r.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var e;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(e=t.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var e,o,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(o=null===(e=t.addresses)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var e,o,i,l,a,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(o=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===o?void 0:o.call(e,r.formatCartItem))||void 0===i?void 0:i.sort(((t,e)=>Number(null==e?void 0:e.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?r.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?r.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(a=t.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var e,o,i;return{shipping:{address:t.shipping.address?r.formatCartAddress(t.shipping.address):null,method:(null===(e=t.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(o=t.items).map)||void 0===i?void 0:i.call(o,r.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var e,o,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===i?void 0:i.call(o,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var e;return t?{paymentMethods:r.formatPaymentMethod(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:r.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:r.formatOrder(t.order_info)}:null,formatCoupons:t=>{var e;return(null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var e;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(e=null==t?void 0:t.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]};var n=Object.freeze({__proto__:null,dataFormatter:r});exports.Constants=e.constants,exports.Types=o.types,exports.ApiTypes=i,exports.DataFormatter=n,exports.DataTypes=l;
|
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as e}from"./index-
|
|
1
|
+
import{D as e}from"./index-5fdbf5bc.js";export{B as BabyGrowthGender}from"./index-5fdbf5bc.js";import t,{useMemo as r,useRef as o,useState as l,useEffect as a}from"react";import{L as i,G as n,B as c,a as s}from"./Subot-2c9e4c09.js";import{t as d}from"./theme-2bdea2f5.js";import{T as m,I as C}from"./index-60f16dee.js";import p from"styled-components";import{B as h}from"./index-9991cfb3.js";import{M as y}from"./index-03141739.js";import f from"dayjs";import{u}from"./useTranslations-d963b37f.js";import"lodash/debounce";import"./isProduction-2e0a8f23.js";import"./index-2be76d22.js";import"./useCategory-00053487.js";import{a as b,l as g}from"./localizeNumberFormat-d7e41005.js";import{H as E}from"./index.styles-671382bc.js";import{n as x}from"./screenSizeContext-18a2ae59.js";import{_ as v,a as w}from"./tslib.es6-70854b37.js";import"@mantine/core";import"@linaria/react";import"./index-a2e81576.js";import"./gAssets.js";import"./constants-6cfaa1ef.js";import"./utils-892d8a65.js";import{T as L}from"./index-956cdde0.js";import{C as k}from"./index-2d5104c5.js";import{a as M}from"./useOutsideClick-0fb1f5b8.js";import"@mantine/dates";import"@mantine/hooks";import{M as H}from"./index-74cef015.js";import{I}from"./index-162b9bde.js";import{ResponsiveContainer as j,LineChart as S,CartesianGrid as G,Tooltip as R,XAxis as z,YAxis as Z,Line as _,ReferenceDot as N}from"recharts";import V from"lodash/chunk";import"./index.styled-46a99590.js";import"./translationsContext-63b5cfff.js";import"string-format";import"date-fns/locale";import"react-keyed-flatten-children";import"./cookieHelper-02a646ef.js";import"slugify";import"lodash/throttle";import"@mantine/carousel";import"classnames";import"./useScrollbarSize-622c2c1a.js";import"react-dom";const T=p.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -397,7 +397,7 @@ import{D as e}from"./index-020361fe.js";export{B as BabyGrowthGender}from"./inde
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
`,he=({isActive:e,onChange:r,value:o="",onInputChange:l,siteType:a})=>{const{t:i}=u(),n="marryBaby"===a;return t.createElement(pe,{onClick:()=>r("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?t.createElement("div",{className:"title"},t.createElement(y,{type:"bodytext-1",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"},e&&t.createElement(C.CheckActiveMB,{size:26}))):t.createElement("div",{className:"title"},t.createElement(m,{size:"p2",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"})),t.createElement(I,{name:"name",value:o,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:l}))},ye=e=>{var r,o,{babyProfiles:a,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:m,open:C,isMobile:p,isMyProfile:f=!1,buttonGroup:b,newBabyValue:g,onNewBabyValueChange:E,siteType:x,buttonText:w,headerText:k}=e,M=v(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>f?t.createElement(t.Fragment,null,t.createElement(h,{theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},t.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),t.createElement(h,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),f?null==m||m(H):null==s||s(H),n()}},j(f?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):t.createElement(h,{theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},w||j("chooseBaby.button")),[H,I]=l(String(i)||String(null===(r=a[0])||void 0===r?void 0:r.id)),{t:j}=u();return p?t.createElement(de,Object.assign({title:k||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var r;return t.createElement("div",{className:"add-profile-container"},t.createElement("div",{className:"profile-container"},null===(r=a||[])||void 0===r?void 0:r.map((e=>t.createElement(J,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!f&&t.createElement(he,{siteType:x,value:g,onInputChange:E,isActive:"new"===H,onChange:I})),t.createElement("div",{className:"button-group"},b||B(e)))})):t.createElement(me,{type:"confirm",isOpen:C,onClose:n,siteType:x},t.createElement("div",{className:"header"},t.createElement("div",{className:"title"},"marryBaby"===x?t.createElement(y,{type:"subtitle-1",color:d.mbColors.dark},j("chooseBaby.title")):t.createElement(L,{size:"s2",type:"semiBold"},k||j("chooseBaby.title")),t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},t.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"})))),t.createElement("div",{className:"profile-container"},null===(o=a||[])||void 0===o?void 0:o.map((e=>t.createElement(J,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!f&&t.createElement(he,{value:g,onInputChange:E,isActive:"new"===H,onChange:I,siteType:x})),t.createElement("div",{className:"button-group"},b||B()))},fe={[n.Boy]:{[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-44f52c09.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-182bed39.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-bb541601.js")},[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-bc54a47c.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-d6835449.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-69b5c0cf.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-bd73d642.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-bc41ab37.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-044a1a1a.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-923b3d30.js"),[s.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-2f0ebcbf.js"),[s.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-7d39033d.js")}},[n.Girl]:{[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-4baca659.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-fb5f6f0d.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-fc7e1fc1.js")},[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-bd8ea375.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-5136f490.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-40e16990.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-88cc5320.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-13f948b3.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-7f0f400b.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-a2c33686.js"),[s.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-67f03f38.js"),[s.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-7a98dd42.js")}}},ue={[n.Boy]:{[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-9fc7b902.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-a9a9dd47.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-88da8bc2.js")},[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-58bfd560.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-fae0c31f.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-4e428e24.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-28e9f5ed.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-61bf74c0.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-2a0e1789.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-afaad99e.js"),[s.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-21915d60.js"),[s.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-2d48176b.js")}},[n.Girl]:{[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-8681e64a.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-b439db85.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-28b1d0bb.js")},[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-c5ab12a0.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-bc34aead.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-41608a14.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-f3207f83.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-d78908a1.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-0628d6d8.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-c258aef0.js"),[s.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-599baf2d.js"),[s.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-e8ce4dc8.js")}}},be=(e,t,r,o,l)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][o],a[0][o]];return a.forEach((e=>{e[o]>n&&(n=e[o]),e[o]<i&&(i=e[o])})),[(0|i)-l,(0|n)+l]},ge=(e,t,r,o)=>o===i.Indonesia?ue[e][t][r]():fe[e][t][r](),Ee=(e,t)=>{const[r,o]=V(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),a=o.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:o,status:"second-half"}:{data:t,status:"full"}},xe=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ve=(e,t,r,o,l)=>[...e,{name:o,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),we=(e,t=0)=>{const r=[];for(const o in e){e[o].forEach(((e,l)=>{r[l]?r[l][o]=e:r[l]={name:l+t,[o]:e}}))}return r},Le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const o=r[e],l=r[e+1],a=o.getAttribute("x1"),i=o.getAttribute("y"),n=o.getAttribute("height"),c=o.getAttribute("x1"),s=l.getAttribute("x1");console.log({oddLine:o,nextLine:l});const m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",d.colors.primary50),m.setAttribute("fill",d.colors.primary50),m.setAttribute("x",a),m.setAttribute("y",i),m.setAttribute("height",n),m.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(o),t.appendChild(m)}else t.appendChild(r[e]);console.log(t)}},Me=p.div`
|
|
400
|
+
`,he=({isActive:e,onChange:r,value:o="",onInputChange:l,siteType:a})=>{const{t:i}=u(),n="marryBaby"===a;return t.createElement(pe,{onClick:()=>r("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?t.createElement("div",{className:"title"},t.createElement(y,{type:"bodytext-1",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"},e&&t.createElement(C.CheckActiveMB,{size:26}))):t.createElement("div",{className:"title"},t.createElement(m,{size:"p2",color:d.colors.gray800},i("chooseBaby.new")),t.createElement("div",{className:e?"radio active":"radio"})),t.createElement(I,{name:"name",value:o,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:l}))},ye=e=>{var r,o,{babyProfiles:a,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:m,open:C,isMobile:p,isMyProfile:f=!1,buttonGroup:b,newBabyValue:g,onNewBabyValueChange:E,siteType:x,buttonText:w,headerText:k}=e,M=v(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>f?t.createElement(t.Fragment,null,t.createElement(h,{theme:x,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},t.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),t.createElement(h,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),f?null==m||m(H):null==s||s(H),n()}},j(f?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):t.createElement(h,{theme:x,size:"lg",color:"primary",onClick:()=>{null==s||s(H),null==e||e(),n()}},w||j("chooseBaby.button")),[H,I]=l(String(i)||String(null===(r=a[0])||void 0===r?void 0:r.id)),{t:j}=u();return p?t.createElement(de,Object.assign({title:k||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var r;return t.createElement("div",{className:"add-profile-container"},t.createElement("div",{className:"profile-container"},null===(r=a||[])||void 0===r?void 0:r.map((e=>t.createElement(J,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!f&&t.createElement(he,{siteType:x,value:g,onInputChange:E,isActive:"new"===H,onChange:I})),t.createElement("div",{className:"button-group"},b||B(e)))})):t.createElement(me,{type:"confirm",isOpen:C,onClose:n,siteType:x},t.createElement("div",{className:"header"},t.createElement("div",{className:"title"},"marryBaby"===x?t.createElement(y,{type:"subtitle-1",color:d.mbColors.dark},j("chooseBaby.title")):t.createElement(L,{size:"s2",type:"semiBold"},k||j("chooseBaby.title")),t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},t.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"})))),t.createElement("div",{className:"profile-container"},null===(o=a||[])||void 0===o?void 0:o.map((e=>t.createElement(J,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!f&&t.createElement(he,{value:g,onInputChange:E,isActive:"new"===H,onChange:I,siteType:x})),t.createElement("div",{className:"button-group"},b||B()))},fe={[n.Boy]:{[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-29b8fe64.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-6ba59424.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-f135b8e2.js")},[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-b937aeb9.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-430dc3b2.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-cbf833e8.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-12162f09.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-81d95d86.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-45cd1c23.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-b1aa1512.js"),[s.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-05d05da5.js"),[s.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-9a9ca29b.js")}},[n.Girl]:{[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-f3670276.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-e5b38079.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-4c02f1bb.js")},[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-f69a3ddb.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-1e4153b0.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-a42cb1fc.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-d0a20741.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-3bac7be1.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-dc919555.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-04cd0f7f.js"),[s.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-09da7135.js"),[s.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-b96e6cdd.js")}}},ue={[n.Boy]:{[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-f9a65efa.js"),[s.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-49e9680a.js"),[s.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-8b5ad6d2.js")},[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-786a8d18.js"),[s.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-dd6b0e64.js"),[s.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-acfb2c76.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-026aced6.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-47835e82.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-01c4d654.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-9c26d743.js"),[s.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-ab8c5087.js"),[s.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-0c8e88bf.js")}},[n.Girl]:{[c.Height]:{[s.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-4eead516.js"),[s.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-640e5e55.js"),[s.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-6ebee51c.js")},[c.Weight]:{[s.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-c4c6e1e6.js"),[s.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-c8062203.js"),[s.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-35f750e9.js")},[c.Head]:{[s.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-a8e45e75.js"),[s.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-47bf7a3c.js"),[s.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-bf546ba6.js")},[c.BMI]:{[s.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-23ab6a7b.js"),[s.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-e301d83d.js"),[s.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-576720ea.js")}}},be=(e,t,r,o,l)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][o],a[0][o]];return a.forEach((e=>{e[o]>n&&(n=e[o]),e[o]<i&&(i=e[o])})),[(0|i)-l,(0|n)+l]},ge=(e,t,r,o)=>o===i.Indonesia?ue[e][t][r]():fe[e][t][r](),Ee=(e,t)=>{const[r,o]=V(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),a=o.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:o,status:"second-half"}:{data:t,status:"full"}},xe=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ve=(e,t,r,o,l)=>[...e,{name:o,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),we=(e,t=0)=>{const r=[];for(const o in e){e[o].forEach(((e,l)=>{r[l]?r[l][o]=e:r[l]={name:l+t,[o]:e}}))}return r},Le=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const o=r[e],l=r[e+1],a=o.getAttribute("x1"),i=o.getAttribute("y"),n=o.getAttribute("height"),c=o.getAttribute("x1"),s=l.getAttribute("x1");console.log({oddLine:o,nextLine:l});const m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",d.colors.primary50),m.setAttribute("fill",d.colors.primary50),m.setAttribute("x",a),m.setAttribute("y",i),m.setAttribute("height",n),m.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(o),t.appendChild(m)}else t.appendChild(r[e]);console.log(t)}},Me=p.div`
|
|
401
401
|
position: relative;
|
|
402
402
|
.custom-chart-label {
|
|
403
403
|
display: flex;
|
package/build/esm/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-
|
|
1
|
+
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-18ff4cb5.js";import"./tslib.es6-70854b37.js";import"./isProduction-2e0a8f23.js";
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,T as TextDivider}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,T as TextDivider}from"./types-e1669387.js";export{c as CareConstants}from"./constants-6cfaa1ef.js";import"./tslib.es6-70854b37.js";import"react";import"./useTranslations-d963b37f.js";import"./translationsContext-63b5cfff.js";import"string-format";import"lodash/debounce";import"./index-162b9bde.js";import"@mantine/core";import"styled-components";import"./index-60f16dee.js";import"./theme-2bdea2f5.js";import"dayjs";import"./screenSizeContext-18a2ae59.js";import"lodash/throttle";import"./index-2be76d22.js";import"date-fns/locale";import"./Subot-2c9e4c09.js";import"./isProduction-2e0a8f23.js";import"./gAssets.js";import"lodash/shuffle";import"./useOutsideClick-0fb1f5b8.js";import"react-loading-skeleton";import"./paths-64d19041.js";import"./cookieHelper-02a646ef.js";import"./index-4daeba4d.js";import"./ChevronDown-70559b47.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export type StyledAvatarProps = {
|
|
2
3
|
size?: number;
|
|
3
4
|
backgroundColor?: string;
|
|
@@ -5,4 +6,4 @@ export type StyledAvatarProps = {
|
|
|
5
6
|
width?: number;
|
|
6
7
|
height?: number;
|
|
7
8
|
};
|
|
8
|
-
export declare const StyledAvatar: import("
|
|
9
|
+
export declare const StyledAvatar: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & StyledAvatarProps>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledBackdrop: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledCheckbox: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledGrid: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledLogo: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const StyledProLogo: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|