@hhgtech/hhg-components 1.27.30 → 1.27.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-d3f73935.js +1 -0
- package/build/{dataTransform-c5a5bac0.js → dataTransform-d109a2ff.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +7 -7
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-4f54e123.js → core-890005a4.js} +1 -1
- package/build/esm/{dataTransform-a463c98c.js → dataTransform-f50a355c.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-7afbed1c.js → fixedBottomAdBlock-2017c788.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-2ea78bbe.js → getDynamicHealthTool-3dc6e153.js} +1 -1
- package/build/esm/{getSocialList-14da1a99.js → getSocialList-ccbf48db.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-d3b6fc2e.js → index-0e921413.js} +1 -1
- package/build/esm/index-0ed1f8c1.js +1 -0
- package/build/esm/{index-fbc594b2.js → index-11cc7821.js} +1 -1
- package/build/esm/{index-6d24f096.js → index-141e9ea9.js} +1 -1
- package/build/esm/{index-cc7da9a0.js → index-1b375a3f.js} +22 -22
- package/build/esm/{index-342f2c6d.js → index-3650a52c.js} +1 -1
- package/build/esm/{index-f0b34635.js → index-453997c8.js} +1 -1
- package/build/esm/{index-ddebfc92.js → index-48429f98.js} +1 -1
- package/build/esm/{index-ae113fd6.js → index-4a460261.js} +1 -1
- package/build/esm/{index-05d72fac.js → index-4acb82eb.js} +1 -1
- package/build/esm/{index-cbbcf30b.js → index-567513ac.js} +1 -1
- package/build/esm/{index-412ae2fd.js → index-75a7ddcb.js} +6 -6
- package/build/esm/{index-3dbc6ebf.js → index-78992174.js} +1 -1
- package/build/esm/{index-31fe19f1.js → index-7a7af552.js} +1 -1
- package/build/esm/{index-95ec3de4.js → index-83e6b6d9.js} +1 -1
- package/build/esm/{index-3ddcbc42.js → index-8e8ef155.js} +1 -1
- package/build/esm/{index-c25f6437.js → index-962b7a5b.js} +1 -1
- package/build/esm/{index-eb524d2d.js → index-9b50fa62.js} +3 -3
- package/build/esm/{index-1b6552ce.js → index-9be09e75.js} +1 -1
- package/build/esm/index-9f6340aa.js +1 -0
- package/build/esm/{index-2f56177d.js → index-af7821db.js} +1 -1
- package/build/esm/{index-1fde152d.js → index-b1f1a90b.js} +1 -1
- package/build/esm/{index-8128835c.js → index-e3a62689.js} +1 -1
- package/build/esm/{index-9529425b.js → index-eac9c06c.js} +1 -1
- package/build/esm/index-fc17f00e.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-f15eb1d3.js → index.styled-57ab6132.js} +5 -5
- package/build/esm/index.styled-5bf0b683.js +50 -0
- package/build/esm/{index.styled-51804a7b.js → index.styled-ccda6a6a.js} +1 -1
- package/build/esm/{index.styled-d256d362.js → index.styled-d8afff19.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +6 -6
- package/build/esm/pwg.js +1 -1
- package/build/esm/{routing-797263c0.js → routing-255a493e.js} +1 -1
- package/build/esm/{screenSizeContext-bcca5219.js → screenSizeContext-fc50587c.js} +3 -3
- package/build/esm/together.js +1 -1
- package/build/esm/{types-2fa269ae.js → types-0a817a6e.js} +9 -9
- package/build/esm/{types-665888c3.js → types-6d888cb0.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-645df721.js +1 -0
- package/build/esm/{useRafState-987d6866.js → useRafState-9a39e2a9.js} +1 -1
- package/build/esm/{useTranslations-94771a46.js → useTranslations-f4ad49b0.js} +1 -1
- package/build/esm/{utils-5640a88b.js → utils-4d51e270.js} +1 -1
- package/build/esm/vaccination.js +5 -5
- package/build/{fixedBottomAdBlock-71e4ad24.js → fixedBottomAdBlock-9db81534.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-1f031ff7.js +1 -0
- package/build/{getSocialList-9d7398db.js → getSocialList-7239e698.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-b0786912.js → index-0631a45b.js} +3 -3
- package/build/{index-bb4564a9.js → index-082b282c.js} +2 -2
- package/build/index-0ab51265.js +1 -0
- package/build/{index-84560e87.js → index-0aee2419.js} +1 -1
- package/build/{index-e0f0b7c7.js → index-19d53c73.js} +3 -3
- package/build/{index-9ed57571.js → index-1c2cc382.js} +1 -1
- package/build/index-2115e2fc.js +1 -0
- package/build/index-2dd8fc69.js +1 -0
- package/build/{index-8546fc17.js → index-43577eef.js} +1 -1
- package/build/{index-f845a38b.js → index-4ea0c539.js} +1 -1
- package/build/{index-3a857b2d.js → index-58a5b6fe.js} +1 -1
- package/build/{index-4ed42d82.js → index-6a375dc5.js} +1 -1
- package/build/{index-87daa651.js → index-6ae6b151.js} +1 -1
- package/build/index-723ae17c.js +1 -0
- package/build/{index-2cbd67d8.js → index-72b80f3f.js} +1 -1
- package/build/{index-32f0dc30.js → index-7ef39ef9.js} +1 -1
- package/build/{index-8f8bd00f.js → index-b1ce1f80.js} +1 -1
- package/build/{index-2b445076.js → index-b1dd59b2.js} +1 -1
- package/build/{index-0a8b565f.js → index-b84dc9fb.js} +1 -1
- package/build/{index-0473eb82.js → index-be5867b0.js} +1 -1
- package/build/{index-03fc03a7.js → index-cb770a41.js} +1 -1
- package/build/{index-f4139137.js → index-d8157d51.js} +1 -1
- package/build/{index-73b508ed.js → index-dab0a2d5.js} +1 -1
- package/build/{index-d4e68710.js → index-ec9c272e.js} +1 -1
- package/build/{index-1507b723.js → index-f454e922.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-1b34097b.js → index.styled-4abccf7c.js} +1 -1
- package/build/{index.styled-8f1da5ae.js → index.styled-5fb6133c.js} +1 -1
- package/build/{index.styled-0299a3c4.js → index.styled-699b2313.js} +3 -3
- package/build/{index.styled-ad2ade5f.js → index.styled-c8d0d688.js} +2 -2
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +2 -2
- package/build/pwg.js +2 -2
- package/build/{routing-027b08d2.js → routing-262cf2a5.js} +1 -1
- package/build/{screenSizeContext-359ec723.js → screenSizeContext-1dfc61c5.js} +1 -1
- package/build/together.js +1 -1
- package/build/{types-07a20885.js → types-3e5f761a.js} +1 -1
- package/build/{types-d2d87d82.js → types-9b516835.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-e095a8da.js +1 -0
- package/build/{useRafState-48e29ea7.js → useRafState-73761af4.js} +1 -1
- package/build/{useTranslations-ece554a6.js → useTranslations-83e2d53a.js} +1 -1
- package/build/{utils-2a2a518a.js → utils-0b8086e1.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-22fa80b7.js +0 -1
- package/build/esm/index-88bd2f6d.js +0 -1
- package/build/esm/index-cee530e5.js +0 -1
- package/build/esm/index-dd824601.js +0 -1
- package/build/esm/index.styled-a628dad4.js +0 -50
- package/build/esm/useHealthToolCache-3ca5a2e3.js +0 -1
- package/build/getDynamicHealthTool-54267b20.js +0 -1
- package/build/index-02e44c0e.js +0 -1
- package/build/index-1c38b0b8.js +0 -1
- package/build/index-5cf34b7f.js +0 -1
- package/build/index-96c78cd3.js +0 -1
- package/build/useHealthToolCache-0f3839bb.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-125ea03d.js → BMI_BOYS.percentile.monthly-3e356ac0.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-5f246283.js → BMI_BOYS.percentile.weekly-329a25f7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-77a90fbb.js → BMI_BOYS.percentile.yearly-343adff2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-f3df358f.js → BMI_BOYS.zscore.monthly-4b1f687d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-d9227f04.js → BMI_BOYS.zscore.weekly-eb6922d0.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-81ddb999.js → BMI_BOYS.zscore.yearly-d1e0760e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-dd6cbb9d.js → BMI_GIRLS.percentile.monthly-c3c40331.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-27b65e3a.js → BMI_GIRLS.percentile.weekly-bccd2a6b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-3d2f3b42.js → BMI_GIRLS.percentile.yearly-4e85c87d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-737aa461.js → BMI_GIRLS.zscore.monthly-8f929983.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-4521ebc3.js → BMI_GIRLS.zscore.weekly-10fb7f20.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-e481b631.js → BMI_GIRLS.zscore.yearly-9562eef2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2fb425aa.js → HEAD CIRCUM_BOYS.percentile.monthly-58ef6dc5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-75fe89b9.js → HEAD CIRCUM_BOYS.percentile.weekly-4aa6a407.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2fee6a24.js → HEAD CIRCUM_BOYS.percentile.yearly-1193c5b1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-18f19d9e.js → HEAD CIRCUM_BOYS.zscore.monthly-fdc1360d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c7a8e038.js → HEAD CIRCUM_BOYS.zscore.weekly-7880f670.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-47dd2928.js → HEAD CIRCUM_BOYS.zscore.yearly-708dfcbc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-b453c56c.js → HEAD CIRCUM_GIRLS.percentile.monthly-b22574bb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-5f91dae3.js → HEAD CIRCUM_GIRLS.percentile.weekly-cc913ec0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f294abfb.js → HEAD CIRCUM_GIRLS.percentile.yearly-81332155.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-ebccd1ab.js → HEAD CIRCUM_GIRLS.zscore.monthly-e4e43570.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-6762c200.js → HEAD CIRCUM_GIRLS.zscore.weekly-98d35e4a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-ed953569.js → HEAD CIRCUM_GIRLS.zscore.yearly-7f7b8aa1.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-d3181123.js → HEIGHT_BOYS.percentile.monthly-a3e40c68.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-f3740247.js → HEIGHT_BOYS.percentile.weekly-299ff5f4.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-8e259204.js → HEIGHT_BOYS.percentile.yearly-7fbf1f24.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-1ff0a709.js → HEIGHT_BOYS.zscore.monthly-6bd80093.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-27528bcf.js → HEIGHT_BOYS.zscore.weekly-0f818fc7.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-956dbcb5.js → HEIGHT_BOYS.zscore.yearly-6b4c1c91.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-3b079d62.js → HEIGHT_GIRLS.percentile.monthly-113d550e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-3ac102ea.js → HEIGHT_GIRLS.percentile.weekly-bc27d1d5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-44793609.js → HEIGHT_GIRLS.percentile.yearly-68fd5cb7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-369fb158.js → HEIGHT_GIRLS.zscore.monthly-181555d4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-0ad7d203.js → HEIGHT_GIRLS.zscore.weekly-81270715.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-2fd3c119.js → HEIGHT_GIRLS.zscore.yearly-8d214b12.js} +0 -0
- /package/build/{Onboarding-49ed72f9.js → Onboarding-99eb249d.js} +0 -0
- /package/build/{Visible-aa4bb8c5.js → Visible-75210491.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-c9fcb150.js → WEIGHT_BOYS.percentile.monthly-bf01ddad.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-6e629210.js → WEIGHT_BOYS.percentile.weekly-4cbb8648.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-d65576ae.js → WEIGHT_BOYS.percentile.yearly-6d2c2dc0.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-05b8bf61.js → WEIGHT_BOYS.zscore.monthly-53c57889.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-f94544dd.js → WEIGHT_BOYS.zscore.weekly-6a6ef2dd.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-02e1bc97.js → WEIGHT_BOYS.zscore.yearly-24e1bf91.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-785df106.js → WEIGHT_GIRLS.percentile.monthly-6a372bdb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-71302d84.js → WEIGHT_GIRLS.percentile.weekly-27d32185.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-125436eb.js → WEIGHT_GIRLS.percentile.yearly-73eba09e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-a709a2ef.js → WEIGHT_GIRLS.zscore.monthly-8bd46114.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-ef971188.js → WEIGHT_GIRLS.zscore.weekly-a6e3a7f6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-b661853f.js → WEIGHT_GIRLS.zscore.yearly-aa5ec6d9.js} +0 -0
- /package/build/{constants-a2e2bbc8.js → constants-78ff8804.js} +0 -0
- /package/build/{cookieHelper-922e56f2.js → cookieHelper-b5e879be.js} +0 -0
- /package/build/{dataTransform-8fb225af.js → dataTransform-c988f4f0.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-72e7ec0d.js → BMI_BOYS.percentile.monthly-d9a5c3d9.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-9112130d.js → BMI_BOYS.percentile.weekly-fc7074cd.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-61938533.js → BMI_BOYS.percentile.yearly-a9661d17.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-cff8e852.js → BMI_BOYS.zscore.monthly-ac1ddd96.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-0c1083c3.js → BMI_BOYS.zscore.weekly-894fdb0d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-009f4287.js → BMI_BOYS.zscore.yearly-3f43e96d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-cdfb0b47.js → BMI_GIRLS.percentile.monthly-7ac54cfd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-910a706e.js → BMI_GIRLS.percentile.weekly-c18b79c6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-a14c4d82.js → BMI_GIRLS.percentile.yearly-58d7692c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-a1d6b71f.js → BMI_GIRLS.zscore.monthly-172b57c2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-9b1980e3.js → BMI_GIRLS.zscore.weekly-9fcbb02a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-0e7e8152.js → BMI_GIRLS.zscore.yearly-4bbc7740.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-d33c2236.js → HEAD CIRCUM_BOYS.percentile.monthly-2dd75d85.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-6d56f2a6.js → HEAD CIRCUM_BOYS.percentile.weekly-f2555b83.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-64de2989.js → HEAD CIRCUM_BOYS.percentile.yearly-b5d77ca8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-11e05696.js → HEAD CIRCUM_BOYS.zscore.monthly-349c0f24.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-448116d6.js → HEAD CIRCUM_BOYS.zscore.weekly-c5eda548.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-bc62bb6e.js → HEAD CIRCUM_BOYS.zscore.yearly-4872051e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1567f327.js → HEAD CIRCUM_GIRLS.percentile.monthly-175cd420.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-c5a2b7a2.js → HEAD CIRCUM_GIRLS.percentile.weekly-ef0a460c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-b26477ec.js → HEAD CIRCUM_GIRLS.percentile.yearly-97d09182.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-1af3f33a.js → HEAD CIRCUM_GIRLS.zscore.monthly-22037110.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-ac24aaca.js → HEAD CIRCUM_GIRLS.zscore.weekly-fd13aad6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c5070d98.js → HEAD CIRCUM_GIRLS.zscore.yearly-57e9ddd4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-3046efed.js → HEIGHT_BOYS.percentile.monthly-9ecb94e5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f606e4e2.js → HEIGHT_BOYS.percentile.weekly-ecfe0c7f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-11f44353.js → HEIGHT_BOYS.percentile.yearly-db8d7445.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-192bcbee.js → HEIGHT_BOYS.zscore.monthly-365f7c69.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-7c3ac8f5.js → HEIGHT_BOYS.zscore.weekly-c7ba97e7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-62d59619.js → HEIGHT_BOYS.zscore.yearly-bea95bc7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8d2f9ca9.js → HEIGHT_GIRLS.percentile.monthly-304e5313.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-37aacd07.js → HEIGHT_GIRLS.percentile.weekly-7f527450.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-c463d092.js → HEIGHT_GIRLS.percentile.yearly-feabc12a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-fc304210.js → HEIGHT_GIRLS.zscore.monthly-048e9b3e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-7a2ac31a.js → HEIGHT_GIRLS.zscore.weekly-3d306c57.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-6fdbeab1.js → HEIGHT_GIRLS.zscore.yearly-2d19d773.js} +0 -0
- /package/build/esm/{Onboarding-b42b75c2.js → Onboarding-01e65da4.js} +0 -0
- /package/build/esm/{Visible-8643d7e5.js → Visible-52b8a15d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-5cd1f154.js → WEIGHT_BOYS.percentile.monthly-12b46347.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-d440c3b5.js → WEIGHT_BOYS.percentile.weekly-672a26da.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-f520b3d7.js → WEIGHT_BOYS.percentile.yearly-4811d3d0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-6df5e8e4.js → WEIGHT_BOYS.zscore.monthly-c0aae4ee.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-12289b43.js → WEIGHT_BOYS.zscore.weekly-a319bbe4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-e1c31948.js → WEIGHT_BOYS.zscore.yearly-5b60b7ce.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-95cc349e.js → WEIGHT_GIRLS.percentile.monthly-d1907017.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f78e8670.js → WEIGHT_GIRLS.percentile.weekly-a9bd18c6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9c127c9d.js → WEIGHT_GIRLS.percentile.yearly-bfca4dc0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b648ee98.js → WEIGHT_GIRLS.zscore.monthly-ab534504.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-5472f8a2.js → WEIGHT_GIRLS.zscore.weekly-4f1cd9b4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9ddba7b9.js → WEIGHT_GIRLS.zscore.yearly-f1849916.js} +0 -0
- /package/build/esm/{constants-304d31c4.js → constants-ee7f773a.js} +0 -0
- /package/build/esm/{cookieHelper-07a76962.js → cookieHelper-584dbd8d.js} +0 -0
- /package/build/esm/{dataTransform-7750100f.js → dataTransform-4ab244d7.js} +0 -0
- /package/build/esm/{index-4f6a0b62.js → index-1a06fbf0.js} +0 -0
- /package/build/esm/{index-38b0a20c.js → index-ef49cc03.js} +0 -0
- /package/build/esm/{isProduction-19ebec0a.js → isProduction-ed27c0ed.js} +0 -0
- /package/build/esm/{localizeNumberFormat-bacaf603.js → localizeNumberFormat-85910ce5.js} +0 -0
- /package/build/esm/{normalizeLink-2ab80650.js → normalizeLink-28bbc4e6.js} +0 -0
- /package/build/esm/{theme-3eb6679d.js → theme-4693e886.js} +0 -0
- /package/build/esm/{translationsContext-225f8503.js → translationsContext-d8467494.js} +0 -0
- /package/build/esm/{tslib.es6-c174538e.js → tslib.es6-566e140f.js} +0 -0
- /package/build/esm/{types-fcab4416.js → types-88f7f8c1.js} +0 -0
- /package/build/esm/{useIsInit-1722e0e7.js → useIsInit-8e853e42.js} +0 -0
- /package/build/esm/{useOutsideClick-e4024fff.js → useOutsideClick-57718e03.js} +0 -0
- /package/build/esm/{useScrollbarSize-4551f5fd.js → useScrollbarSize-ab74da39.js} +0 -0
- /package/build/esm/{useUniqueId-0e43db1b.js → useUniqueId-527dc21c.js} +0 -0
- /package/build/esm/{utils-47c49ff6.js → utils-807f25d6.js} +0 -0
- /package/build/{index-d1f616f6.js → index-80f0f8c0.js} +0 -0
- /package/build/{index-6828831b.js → index-f8592be9.js} +0 -0
- /package/build/{isProduction-9f8d0d1a.js → isProduction-b5284dac.js} +0 -0
- /package/build/{localizeNumberFormat-072bf2cf.js → localizeNumberFormat-addc1caf.js} +0 -0
- /package/build/{normalizeLink-bdc5468b.js → normalizeLink-3cd4439a.js} +0 -0
- /package/build/{theme-c9a76939.js → theme-108d6e8a.js} +0 -0
- /package/build/{translationsContext-66f974cd.js → translationsContext-dc2f927d.js} +0 -0
- /package/build/{tslib.es6-e5c1514e.js → tslib.es6-d3a5ce67.js} +0 -0
- /package/build/{types-9b57d0bd.js → types-49bc9a38.js} +0 -0
- /package/build/{useIsInit-48d59650.js → useIsInit-b5fc47f5.js} +0 -0
- /package/build/{useOutsideClick-c88fe5ea.js → useOutsideClick-8c93090c.js} +0 -0
- /package/build/{useScrollbarSize-2eccf58b.js → useScrollbarSize-dce45010.js} +0 -0
- /package/build/{useUniqueId-7e746375.js → useUniqueId-31dafff9.js} +0 -0
- /package/build/{utils-2bd5f691.js → utils-f96a7b93.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as t}from"./utils-
|
|
1
|
+
import{M as t}from"./utils-807f25d6.js";import e from"styled-components";import o,{memo as a,useMemo as s}from"react";import{CommonGAssets as h}from"./gAssets.js";import{I as l}from"./index.styled-d8afff19.js";import{L as r}from"./Onboarding-01e65da4.js";const i=e.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-566e140f.js";import t,{useState as o,useEffect as n}from"react";import{useDebouncedValue as a}from"@mantine/hooks";import{B as s}from"./index-4acb82eb.js";import{D as r,S as i,l}from"./index-8e8ef155.js";const m=m=>{var{color:c,withControl:h,onChange:g,value:w,min:d,max:p,isStatic:u,containerClassName:k,containerStyle:v}=m,x=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[f,C]=o(w||d||0),[b]=a(f,r);return n((()=>{null==g||g(b)}),[b]),n((()=>{C(w)}),[w]),t.createElement(i,{className:k,style:v},h&&t.createElement(s,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>d&&e===d?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:f,onChange:u?()=>null:C,min:d,max:p},x,{className:"hhg-mantine-slider "+(x.className||"")})),h&&t.createElement(s,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>p&&e===p?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useMemo as a}from"react";import{CommonGAssets as t}from"./gAssets.js";import{i as s,a as l,b as o,c as r,S as n,L as g,d as m}from"./index-
|
|
1
|
+
import e,{useMemo as a}from"react";import{CommonGAssets as t}from"./gAssets.js";import{i as s,a as l,b as o,c as r,S as n,L as g,d as m}from"./index-3650a52c.js";import{I as i}from"./index.styled-d8afff19.js";const c=({type:c,className:h,style:w,isLightLogo:u,customSize:d,badge:f,locale:N,dateForSeasonal:y,isPro:p})=>{const E=a((()=>{if(!y||isNaN(new Date(y).getTime()))return{isChristmas:!1,isLunarNewYear:!1,isNewYear:!1};const e=new Date(y),a=s(e),t=l.includes(N)&&o(e);return{isChristmas:a,isLunarNewYear:t,isNewYear:!t&&r(e)}}),[N,new Date(y).getDate()]);return e.createElement(n,{className:h,style:w,"data-logo-is-light":u||void 0,"data-has-badge":!!f,"data-christmas":E.isChristmas,"data-new-year":E.isNewYear,"data-lunar-new-year":E.isLunarNewYear},E.isChristmas?e.createElement(e.Fragment,null,e.createElement(i,{alt:"left xmas logo",src:t.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),e.createElement(i,{alt:"right xmas logo",src:t.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):E.isNewYear?e.createElement(e.Fragment,null,e.createElement(i,{alt:"left new year logo",src:t.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),e.createElement(i,{alt:"right new year logo",src:t.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):E.isLunarNewYear?e.createElement(e.Fragment,null,e.createElement(i,{alt:"left lunar new year logo",loading:"lazy",src:t.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),e.createElement(i,{alt:"right lunar new year logo",loading:"lazy",src:t.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):null,e.createElement(g,{type:c,width:null==d?void 0:d.width,height:null==d?void 0:d.height}),p?e.createElement(m,{src:t.getAssetPath("logo/pro-suffix.svg")}):null,f)};export{c as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,_ as t}from"./tslib.es6-
|
|
1
|
+
import{a as e,_ as t}from"./tslib.es6-566e140f.js";import s,{useReducer as a,useState as r,useEffect as i}from"react";import{Stack as o,Input as n}from"@mantine/core";import{S as c}from"./index-af7821db.js";import"@mantine/dates";import{a as d}from"./index-0e921413.js";import{L as l}from"./Onboarding-01e65da4.js";import"./gAssets.js";import{h as p}from"./index-8e8ef155.js";import"./index-78992174.js";import"dayjs";import"./screenSizeContext-fc50587c.js";import"styled-components";import"./theme-4693e886.js";import"./utils-807f25d6.js";import"./isProduction-ed27c0ed.js";import{u as m}from"./useTranslations-f4ad49b0.js";import"./index-567513ac.js";import"@mantine/hooks";import"lodash/debounce";import{M as v}from"./utils-4d51e270.js";const u={provinceByName:{},provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},h=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},j=({provinces:t})=>{const[s,o]=a(h,u),{provinceByName:n,provinces:c,districts:p,wards:m,selectedProvince:j,selectedDistrict:y,selectedWard:b}=s,[g,E]=r();i((()=>{e(void 0,void 0,void 0,(function*(){var e,s,a,r;try{const i=yield fetch((r=process.env.UNIFY_LOCALE||l.Vietnam,`${d}/cities-data-${v[r]}.json`)).then((e=>e.json()));E(i);const{list:n}=i,c=t?((e,t)=>{const s={};for(const[,e]of Object.entries(t)){const{id:t}=e;t&&(s[t]=e)}const a={};return e.map((e=>{a[e.name]=s[e.id]})),a})(t,n):n,p=Object.keys(c),m=Object.keys((null===(e=n[p[0]])||void 0===e?void 0:e.list)||{}),u=Object.keys((null===(a=null===(s=n[p[0]])||void 0===s?void 0:s[m[0]])||void 0===a?void 0:a.list)||{});o({type:"SET_DATA",payload:{provinceByName:c,provinces:p,districts:m,wards:u}})}catch(e){console.error("Error fetching address data:",e)}}))}),[process.env.UNIFY_LOCALE]);return{provinces:c,districts:p,wards:m,selectedProvince:j,selectedDistrict:y,selectedWard:b,handleProvinceChange:e=>{var t;const s=Object.keys((null===(t=n[e])||void 0===t?void 0:t.list)||{});o({type:"SET_DISTRICTS",payload:s}),o({type:"SET_WARDS",payload:[]}),o({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,s;const a=Object.keys((null===(s=null===(t=n[j])||void 0===t?void 0:t.list[e])||void 0===s?void 0:s.list)||{});o({type:"SET_WARDS",payload:a}),o({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{o({type:"SELECT_WARD",payload:e})}}},y=e=>{var{error:a,provinces:d,placeholder:l}=e,v=t(e,["error","provinces","placeholder"]);const{t:u}=m(),{provinces:h,districts:y,wards:b,selectedProvince:g,selectedDistrict:E,selectedWard:C,handleProvinceChange:O,handleDistrictChange:S,handleWardChange:T}=j({provinces:d}),[f,D]=r("");return i((()=>{g&&E&&C&&f?v.onChange({selectedProvince:g,selectedDistrict:E,selectedWard:C,extraInfo:f}):v.onChange(null)}),[g,E,C,f]),s.createElement(p.Wrapper,Object.assign({withAsterisk:!0},v),s.createElement(o,null,s.createElement(c,{placeholder:(null==l?void 0:l.province)||u("onboarding.similac.input.city"),data:d?h:h.sort(),searchable:!0,onChange:O,value:g}),s.createElement(c,{placeholder:(null==l?void 0:l.district)||u("onboarding.similac.input.district"),data:y.sort(),searchable:!0,onChange:S,value:E,disabled:!g}),s.createElement(c,{placeholder:(null==l?void 0:l.ward)||u("onboarding.similac.input.ward"),searchable:!0,data:b.sort(),value:C,onChange:T,disabled:!g||!E}),s.createElement(p,{placeholder:(null==l?void 0:l.address)||u("onboarding.similac.input.no"),disabled:!g||!E||!C,value:f,onChange:D,style:{marginBottom:0}})),s.createElement(n.Error,{size:"md"},a))};export{y as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a}from"./tslib.es6-
|
|
1
|
+
import{_ as a}from"./tslib.es6-566e140f.js";import t from"react";var e="P03rcnV",o="LsvykAk",d="S2kaD9B",c="fAwTdkg",i="ITgol3T",r="cD-HMFz",n="oAG2-aJ",s="Y9fGCaj";const l=l=>{var{size:C,color:m="primary",theme:u="helloSites",isDisabled:h,isBlock:p,title:g,className:P,onClick:k,icon:v,iconPosition:E="left",children:y,isLoading:N=!1,loadingText:b,dataEventCategory:w,dataEventAction:f,dataEventLabel:L,dataProductChannel:B,dataProductSku:x,dataProductBrand:A,dataProductName:T,dataProductPrice:z,dataProductCategory:D,dataProductPosition:S,type:j}=l,F=a(l,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);const M={"data-event-category":w,"data-event-action":f,"data-event-label":L,"data-product-channel":B,"data-product-sku":x,"data-product-brand":A,"data-product-name":T,"data-product-price":z,"data-product-category":D,"data-product-position":S},G=t.createElement("span",{className:o},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{className:s,cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t.createElement("mask",{id:"path-1-inside-1",fill:"white"},t.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),t.createElement("path",{className:n,d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"}))),W=(v||N)&&t.createElement("span",{className:r},N?G:v," ");return t.createElement("button",Object.assign({},M,{className:`${i} ${P||""}`,"data-size":C,"data-color":m,"data-block":p,"data-has-icon":!!v||void 0,"data-theme":u,disabled:h,onClick:a=>{!N&&!h&&k&&k(a)},title:g,"data-is-loading":N,type:j},F),t.createElement("span",{className:c},"left"===E&&W,y&&t.createElement("span",{className:d},N&&b||y),"right"===E&&W))};export{l as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-566e140f.js";import l,{createContext as n,useContext as r,useRef as i,useState as t,useEffect as o}from"react";import{Carousel as s}from"@mantine/carousel";import{createStyles as d}from"@mantine/core";import{useViewportSize as c,useResizeObserver as a}from"@mantine/hooks";const u=s.Slide,v=n({}),m=(e,l)=>e>=l?e-l:e,h=n=>{var{children:r,blurFromCenter:u,blurFromIndex:h,blurLength:p=3,maxBlurOpacity:S=.5,onSlideChange:g,selectSlideWhenClick:f}=n,y=e(n,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);const{width:b}=c(),[C]=a(),k=i(null),[x,O]=t(0),I=()=>{var e,l,n,r,i;const t=(null===(e=null==k?void 0:k.current)||void 0===e?void 0:e.slideNodes())||[];if((null===(l=null==k?void 0:k.current)||void 0===l?void 0:l.slideNodes().length)<=(null===(n=null==k?void 0:k.current)||void 0===n?void 0:n.slidesInView().length))return t.map((e=>{e.classList.remove("center-slide"),e.style.opacity="1"})),!1;const o=null===(r=null==k?void 0:k.current)||void 0===r?void 0:r.selectedScrollSnap();O(o);const s=t.length,d=(null===(i=null==k?void 0:k.current)||void 0===i?void 0:i.slidesInView()).length,c=Math.floor(d/2),a=u?h+p-1:c,v=o+a,g=v===s?0:v>s?v-s:v,f=o-a,y=f<0?s+f:f>0?o-a:0,b=[...new Set(Array(2*a+1).fill("").map(((e,l)=>m(y+l,s))))];t.map(((e,l)=>{if(l===o?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==b.indexOf(l)){const i=S/p;for(let t=0;t<p;t++){if(l===m(y+t,s)||l===(r=s,(n=g-t)<0?r+n:n)){e.style.opacity=String((t+1)*i);break}e.style.opacity="1"}}else e.style.opacity="0";var n,r}))},j={getEmblaApi:e=>{k.current=e},onSlideChange:e=>{I(),null==g||g(e)}};o((()=>{(null==k?void 0:k.current)&&I()}),[b]);const w=d((()=>{var e,l;return{control:Object.assign({},(null===(e=null==k?void 0:k.current)||void 0===e?void 0:e.slideNodes().length)<=(null===(l=null==k?void 0:k.current)||void 0===l?void 0:l.slidesInView().length)&&{display:"none"})}})),{classes:E}=w();return l.createElement(v.Provider,{value:{slider:null==k?void 0:k.current,centerSlide:x,selectSlideWhenClick:f}},l.createElement(s,Object.assign({classNames:{control:E.control},ref:C,slideSize:"auto",containScroll:"trimSnaps"},j,y,{loop:!0}),"function"==typeof r?r(x):r))};h.Slide=n=>{var{children:s,onClick:d,innerSlideProps:c}=n,a=e(n,["children","onClick","innerSlideProps"]);const{slider:m,selectSlideWhenClick:h}=r(v),p=i(),S=i(""),[g,f]=t(0);o((()=>{S.current=String(Math.round(1e4*Math.random()))}),[]),o((()=>{const e=(null==m?void 0:m.slideNodes())||[];f(e.findIndex((e=>e.dataset.key===S.current)))}),[m]);const y={ref:p,"data-key":S.current,"data-index":g};return l.createElement(u,Object.assign({},y,a),l.createElement("div",Object.assign({style:{height:"100%"},onClick:()=>{h&&(null==m||m.scrollTo(g)),null==d||d(g)}},c),s))};export{h as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as i}from"@mantine/core";import{t as l,M as n}from"./utils-
|
|
1
|
+
import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as i}from"@mantine/core";import{t as l,M as n}from"./utils-807f25d6.js";import{F as r,G as s,J as d,K as m,L as c,N as p,E as h,I as u}from"./index-78992174.js";import{T as g}from"./index-141e9ea9.js";import b from"styled-components";import{u as x}from"./useTranslations-f4ad49b0.js";import{G as y}from"./Onboarding-01e65da4.js";import{M as f,a as C}from"./index-9be09e75.js";import{t as v}from"./theme-4693e886.js";const w=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),E=({children:o,title:n,onClose:r,open:c=!1,placement:p="left",destroyOnClose:h=!1,isPropagationEvent:u=!0,className:b})=>{const x=t();a((()=>(l(c),()=>l(!1))),[c]);const y=()=>{x.current.classList.add("slideOut"),setTimeout((()=>{r()}),800)};return!c&&h?null:e.createElement(i,null,e.createElement(s,{className:b,open:c},e.createElement(w,{open:c,onClickOutside:y}),e.createElement(d,{open:c,placement:p,ref:x,hasTitle:Boolean(n)},e.createElement("div",{className:"title"},n&&e.createElement(g,{size:"s2",type:"semiBold"},n),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:y},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),e.createElement(m,{onClick:e=>{u&&e.stopPropagation()}},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:y}):null)))))},$=({value:t,options:a,className:i,direction:l="horizontal",onChange:n,isDisabled:r,siteType:s})=>{const[d,m]=o(t),h="marryBaby"===s;return e.createElement(c,{className:i,"data-direction":l},a.map(((a,o)=>e.createElement(p,{"data-selected":(t||d)===a.value,"data-is-mb":h,"data-disabled":r,key:o,onClick:()=>{var e;e=a.value,r||(m(e),n&&n(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(f,{type:"subtitle-2",color:(t||d)===a.value?v.mbColors.dark:v.mbColors.midGray},a.label):e.createElement(g,{type:"bold",color:(t||d)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))))))},k="hhgcomp-modal-modal",B=h(b.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
z-index: 200;
|
|
4
4
|
background-color: ${e=>e.theme.colors.white};
|
|
@@ -27,7 +27,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
|
|
|
27
27
|
background-color: none;
|
|
28
28
|
box-shadow: none;
|
|
29
29
|
}
|
|
30
|
-
`,k),j=
|
|
30
|
+
`,k),j=b.div`
|
|
31
31
|
position: fixed;
|
|
32
32
|
top: 0;
|
|
33
33
|
left: 0;
|
|
@@ -130,7 +130,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
`,z=
|
|
133
|
+
`,z=b.div`
|
|
134
134
|
position: fixed;
|
|
135
135
|
top: 0;
|
|
136
136
|
left: 0;
|
|
@@ -144,7 +144,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
|
|
|
144
144
|
&[data-type='video'] {
|
|
145
145
|
background-color: ${e=>e.theme.colors.secondaryDark};
|
|
146
146
|
}
|
|
147
|
-
`,G=
|
|
147
|
+
`,G=b.div`
|
|
148
148
|
& > :not(:last-child) {
|
|
149
149
|
margin-bottom: 8px;
|
|
150
150
|
}
|
|
@@ -162,7 +162,7 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
`,L=
|
|
165
|
+
`,L=b($)`
|
|
166
166
|
& > div > div {
|
|
167
167
|
display: flex;
|
|
168
168
|
flex-direction: row;
|
|
@@ -174,4 +174,4 @@ import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as
|
|
|
174
174
|
.radio-group-item-heading {
|
|
175
175
|
margin-top: 0;
|
|
176
176
|
}
|
|
177
|
-
`,T=({value:t,onChange:a,siteType:o})=>{const{t:i}=x(),l="marryBaby"==o;return e.createElement(G,{"data-is-marryBaby":l},l?e.createElement(C,{type:"h4",color:v.mbColors.dark},i("babyVaccineTool.selectGender")):e.createElement(
|
|
177
|
+
`,T=({value:t,onChange:a,siteType:o})=>{const{t:i}=x(),l="marryBaby"==o;return e.createElement(G,{"data-is-marryBaby":l},l?e.createElement(C,{type:"h4",color:v.mbColors.dark},i("babyVaccineTool.selectGender")):e.createElement(g,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),e.createElement(L,{siteType:o,options:[{value:y.Boy,label:i("gender.male"),content:l?e.createElement(u.BabyBoyMB,null):e.createElement(u.GenderChooseBoy,null)},{value:y.Girl,label:i("gender.female"),content:l?e.createElement(u.BabyGirlMB,null):e.createElement(u.GenderChooseGirl,null)}],value:t,onChange:a,className:"gender-selector"}))};export{T as B,E as D,$ as R,j as S,z as a,B as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{css as t}from"styled-components";import{t as r}from"./theme-
|
|
1
|
+
import e,{css as t}from"styled-components";import{t as r}from"./theme-4693e886.js";import{M as o}from"./utils-807f25d6.js";import{_ as a}from"./tslib.es6-566e140f.js";import i,{useState as l,forwardRef as s,createContext as n,useEffect as c,Fragment as d}from"react";import{createStyles as p}from"@mantine/core";import{L as h}from"./index-eac9c06c.js";import{C as g}from"./index-3650a52c.js";import{T as m}from"./index-141e9ea9.js";import"dayjs";import{s as v,e as C,b as u,f as x,c as w,g as f,a as b,d as y,h as z}from"./screenSizeContext-fc50587c.js";import"./index-0e921413.js";import"./isProduction-ed27c0ed.js";import"./Onboarding-01e65da4.js";import"./gAssets.js";import{a as $}from"./useUniqueId-527dc21c.js";import E from"react-keyed-flatten-children";const M=e.div`
|
|
2
2
|
background-color: var(--background-color, transparent);
|
|
3
3
|
color: white;
|
|
4
4
|
cursor: pointer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-566e140f.js";import t from"react";import{Image as r}from"@mantine/core";import{DatePickerInput as o}from"@mantine/dates";import{I as s}from"./index-0e921413.js";import{L as i}from"./Onboarding-01e65da4.js";import{CommonGAssets as a}from"./gAssets.js";import{n}from"./index-8e8ef155.js";const l=l=>{var m,{value:c,fullWidth:d=!0}=l,p=e(l,["value","fullWidth"]);return t.createElement(o,Object.assign({locale:n[process.env.UNIFY_LOCALE||i.Vietnam],valueFormat:null===(m=s[process.env.UNIFY_LOCALE||i.Vietnam])||void 0===m?void 0:m.dateFormat,size:"md",clearable:!1,popoverProps:d?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:t.createElement(r,{src:a.getAssetPath(p.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16}),value:c},p,{className:`input-control ${(null==p?void 0:p.className)||""}`}))};export{l as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as r,B as t,a as e,b as a,L as n,O as o}from"./Onboarding-
|
|
1
|
+
import{G as r,B as t,a as e,b as a,L as n,O as o}from"./Onboarding-01e65da4.js";var s=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return e},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o}});export{s as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-566e140f.js";import*as a from"react";import n,{useState as l,useEffect as r,Component as i,useCallback as o,forwardRef as s,useRef as c,useImperativeHandle as d,createContext as m}from"react";import h from"dayjs";import{L as p}from"./Onboarding-01e65da4.js";import{Button as g,rem as f,createStyles as v,Text as u,AspectRatio as b,em as E,useMantineTheme as z,Box as w,Breadcrumbs as C,Textarea as x,Accordion as y,Indicator as j,Avatar as M,FileInput as H,createEmotionCache as k,NumberInput as O,PasswordInput as L,TextInput as B,Input as A,Checkbox as S,Slider as I,Radio as P,Flex as N,Tabs as T,ScrollArea as D,Popover as F}from"@mantine/core";import{B as R,M as $}from"./utils-807f25d6.js";import V from"styled-components";import{Carousel as W}from"@mantine/carousel";import"./screenSizeContext-fc50587c.js";import{t as _}from"./theme-4693e886.js";import{I as Z,s as G}from"./index-0e921413.js";import"./isProduction-ed27c0ed.js";import{CommonGAssets as K}from"./gAssets.js";import{Y as U,Z as Y,_ as X,I as q}from"./index-78992174.js";import{I as Q}from"./index.styled-d8afff19.js";import{useDebouncedValue as J,useDisclosure as ee,useClickOutside as te}from"@mantine/hooks";import"./index-eac9c06c.js";import"./index-3650a52c.js";import"./translationsContext-d8467494.js";import"string-format";import"./index-1a06fbf0.js";const ae={primary:"filled",secondary:"outline",tertiary:"default",light:"light",ghost:"subtle",error:"outline",white:"white"},ne=t=>{var{variant:a,size:l,color:r,skipHover:i,className:o,dataEventCategory:s,dataEventAction:c,dataEventLabel:d,children:m}=t,h=e(t,["variant","size","color","skipHover","className","dataEventCategory","dataEventAction","dataEventLabel","children"]);const p="error"===a,{classes:f,cx:v}=U({variant:a,size:l,color:r,skipHover:i,isError:p,children:m});return n.createElement(g,Object.assign({className:v(f.rootCustom,o),variant:ae[a],"data-event-category":s,"data-event-action":c,"data-event-label":d},h),m)},le={[p.Vietnam]:"vi",[p.Cambodia]:"km",[p.India]:"hi",[p.Indonesia]:"id",[p.Malaysia]:"ms",[p.Thailand]:"th",[p.Taiwan]:"zh-tw",[p.PhilippinesTagalog]:"tl-ph",[p.PhilippinesEnglish]:"en",[p.Myanmar]:"my"},re={[p.Vietnam]:()=>import("dayjs/locale/vi.js"),[p.Cambodia]:()=>import("dayjs/locale/km.js"),[p.India]:()=>import("dayjs/locale/hi.js"),[p.Indonesia]:()=>import("dayjs/locale/id.js"),[p.Malaysia]:()=>import("dayjs/locale/ms.js"),[p.Thailand]:()=>import("dayjs/locale/th.js"),[p.Taiwan]:()=>import("dayjs/locale/zh-tw.js"),[p.PhilippinesTagalog]:()=>import("dayjs/locale/tl-ph.js"),[p.PhilippinesEnglish]:()=>import("dayjs/locale/en.js"),[p.Myanmar]:()=>import("dayjs/locale/my.js")},ie=e=>{const[a,n]=l(!1);return r((()=>{t(void 0,void 0,void 0,(function*(){var t;n(!1),yield null===(t=re[e])||void 0===t?void 0:t.call(re),h.locale(le[e]),n(!0)}))}),[e]),{isLoaded:a}},oe=()=>"undefined"!=typeof window&&window.innerWidth<R.BREAK_POINT_MOBILE,se=()=>"undefined"!=typeof window&&window.innerWidth>=R.BREAK_POINT_MOBILE&&window.innerWidth<R.BREAK_POINT_PC,ce=()=>{const[e,t]=l(oe()),[a,n]=l(se());return r((()=>{const e=()=>{t(oe()),n(se())};return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]),{isMobile:e,isLargeMobile:a}};class de extends i{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?this.props.fallback||n.createElement(n.Fragment,null):this.props.children}}const me=t=>{var{slidesToShow:a=1,children:l}=t,r=e(t,["slidesToShow","children"]);return(Array.isArray(l)?l.length:1)?n.createElement(de,null,n.createElement(W,Object.assign({slideSize:String(Math.floor(1/a*100))+"%",containScroll:"trimSnaps"},r),l)):null};me.Slide=W.Slide;const he=V(me)`
|
|
2
2
|
cursor: grab;
|
|
3
3
|
width: 100%;
|
|
4
4
|
.mantine-Carousel-control {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-566e140f.js";import t,{useState as a,useEffect as n}from"react";import{L as l}from"./Onboarding-01e65da4.js";import{S as r,a as o,b as i}from"./index.styled-5bf0b683.js";const c=c=>{var{data:s,isMobile:m,onSlideChange:g,pillProps:h,locale:p=l.Vietnam,blurFromIndex:v,blurLength:b}=c,C=e(c,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const u={withControls:!m,slideGap:16,blurFromCenter:!0,blurFromIndex:v||(m?2:4),blurLength:b||(m?1:3),onSlideChange:g},[f,k]=a("");return n((()=>{k(window.location.href)}),[]),t.createElement(r,Object.assign({},u,C,{selectSlideWhenClick:!0,previousControlIcon:t.createElement(d,{currentUrl:f}),nextControlIcon:t.createElement(d,{currentUrl:f,isRight:!0})}),(e=>s.map(((a,n)=>t.createElement(o,Object.assign({key:n,onClick:g,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":f,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":f}},h),t.createElement("div",{className:"centerred-pill-wrapper"},t.createElement(i,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":f,locale:p,name:a.name,icon:a.icon,className:n===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))))},d=({isRight:e,currentUrl:a})=>t.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":a,className:"pointer-event-child-none"},t.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));export{c as P};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-566e140f.js";import t,{createContext as o,useContext as i}from"react";import{Container as r,Title as n}from"@mantine/core";import{L as m}from"./index-3650a52c.js";import"@mantine/hooks";import"./gAssets.js";import"@mantine/dates";import{L as a}from"./index-0e921413.js";import"./Onboarding-01e65da4.js";import{e as s}from"./index-8e8ef155.js";import"./index-78992174.js";import"dayjs";import"./screenSizeContext-fc50587c.js";import c from"styled-components";import{t as p}from"./theme-4693e886.js";import{M as d}from"./utils-807f25d6.js";import"./isProduction-ed27c0ed.js";import"./translationsContext-d8467494.js";import"string-format";import"./index-567513ac.js";import{createFormContext as l}from"@mantine/form";const g=o({}),[f,x,h]=l(),j=c.div`
|
|
2
2
|
margin-top: 70px;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -7,7 +7,7 @@ import{_ as e}from"./tslib.es6-c174538e.js";import t,{createContext as o,useCont
|
|
|
7
7
|
&.similac {
|
|
8
8
|
margin-top: 16px;
|
|
9
9
|
}
|
|
10
|
-
`,
|
|
10
|
+
`,b=c(r)`
|
|
11
11
|
&.hhg-comp-onboarding-container.hhg-comp-onboarding-container {
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
@@ -50,4 +50,4 @@ import{_ as e}from"./tslib.es6-c174538e.js";import t,{createContext as o,useCont
|
|
|
50
50
|
}
|
|
51
51
|
`,u=c.img`
|
|
52
52
|
margin-bottom: 38px;
|
|
53
|
-
`,y=o=>{var r,{heading:c,description:d,children:l,className:f,imgSrc:
|
|
53
|
+
`,y=o=>{var r,{heading:c,description:d,children:l,className:f,imgSrc:x,hiddenLogo:h=!1}=o,y=e(o,["heading","description","children","className","imgSrc","hiddenLogo"]);const{isMarryBaby:E,siteType:L}=i(g);return t.createElement(b,Object.assign({},y,{className:`hhg-comp-onboarding-container ${f}`,size:"sm"}),!h&&t.createElement(m,{type:E?L:(null===(r=a[process.env.UNIFY_LOCALE])||void 0===r?void 0:r.LOGO_TYPE)||"hellobacsi"}),t.createElement(j,{className:h?"similac":""},x&&t.createElement(u,{src:x,loading:"lazy"}),(c||d)&&t.createElement("div",{className:"header"},c&&t.createElement(n,{order:3},c),d&&t.createElement(s,{size:"p3",mt:8,color:p.colors.gray600},d)),l))};export{f as F,g as O,h as a,y as b,x as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-566e140f.js";import t from"react";import{S as s,a}from"./index.styled-d8afff19.js";const r=a=>{var{type:r,color:l,style:o}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},l&&{"--text-color":l}),o)},c))},l=s=>{var{type:r,color:l,style:o}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({"data-type":r,style:Object.assign(Object.assign({},o),l&&{"--text-color":l})},c))};export{l as M,r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-566e140f.js";import l,{useState as a,useEffect as n,useMemo as i,useRef as o,useContext as r,useCallback as s}from"react";import{g as c}from"./core-890005a4.js";import{CommonGAssets as m}from"./gAssets.js";import{I as d}from"./index.styled-d8afff19.js";import{a as h}from"./useUniqueId-527dc21c.js";import{S as u,d as g,e as p,f as v,g as E,h as f,i as y,j as w,k as b,N as L,l as C,m as k,n as M,o as P,p as N,q as H,r as x,s as B,t as A,u as T,v as _,w as S,x as R,y as O,z as U,A as j,B as Z,C as I,E as $,F as V,I as F,J as D,K as z,L as G,M as W,O as q,P as K,Q as Y,R as Q,V as J,W as X,X as ee,Y as te,Z as le,_ as ae,$ as ne,a0 as ie,a1 as oe,a2 as re,a3 as se,a4 as ce,a5 as me,a6 as de,a7 as he,a8 as ue,a9 as ge,aa as pe,ab as ve,ac as Ee,ad as fe,ae as ye,af as we,ag as be,ah as Le,ai as Ce,aj as ke,ak as Me,al as Pe,am as Ne,an as He,ao as xe,ap as Be,aq as Ae}from"./index.styled-ccda6a6a.js";import{T as Te}from"./index-141e9ea9.js";import{d as _e,L as Se,S as Re,U as Oe,T as Ue,C as je}from"./index-0e921413.js";import{n as Ze,a as Ie}from"./normalizeLink-28bbc4e6.js";import{c as $e,b as Ve,d as Fe}from"./routing-255a493e.js";import{P as De,b as ze,c as Ge}from"./dataTransform-f50a355c.js";import{L as We}from"./index-48429f98.js";import{u as qe}from"./useTranslations-f4ad49b0.js";import Ke from"lodash/throttle";import{g as Ye}from"./utils-807f25d6.js";import{A as Qe,I as Je,P as Xe,H as et}from"./index-78992174.js";import{Portal as tt}from"@mantine/core";import"./index-eac9c06c.js";import{C as lt}from"./index-3650a52c.js";import{t as at}from"./theme-4693e886.js";import"./index-1a06fbf0.js";import{B as nt,e as it}from"./index-8e8ef155.js";import"@mantine/hooks";import"@mantine/dates";import"./Onboarding-01e65da4.js";import"dayjs";import"./screenSizeContext-fc50587c.js";import"styled-components";import"./isProduction-ed27c0ed.js";import"./index-567513ac.js";import{g as ot}from"./cookieHelper-584dbd8d.js";import{B as rt}from"./index-4acb82eb.js";import{L as st}from"./constants-ee7f773a.js";import ct from"string-format";import{I as mt}from"./index-fc17f00e.js";import dt from"lodash/debounce";import{u as ht}from"./useIsInit-8e853e42.js";const ut={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},gt=({type:e="square",size:t,avatarImg:i,avatarUrl:o,firstLetter:r,backgroundColor:s,onClick:c,style:m,className:h,width:u,height:g,alt:p})=>{const v=t?ut[t]:void 0,[E,f]=a(!1);n((()=>{if(o){const e=document.createElement("img");e.setAttribute("src",o),e.addEventListener("error",(()=>{f(!0)}))}}),[o,f]);const y=(!o&&!i||E)&&r;return l.createElement(Qe,{style:Object.assign(Object.assign({},m),{"--size":v?v+"px":void 0,"--width-prop":u?u+"px":void 0,"--height-prop":g?g+"px":void 0,"--background-color":s}),"data-has-max":!(!u||!g),"data-avatar-type":e,onClick:c,className:h,avatarUrl:o,"data-custom-size":!!t},i,o&&!E&&l.createElement(d,{src:o,alt:p||"avatar"}),y&&r)},pt=e=>l.createElement(d,Object.assign({alt:"round cambodia flag",src:m.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),vt=e=>l.createElement(d,Object.assign({alt:"square cambodia flag",src:m.getAssetPath("flags/cambodiaSquare.png")},e)),Et=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),l.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),l.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),l.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),l.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),l.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),l.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),l.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),l.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),l.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),l.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),l.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),l.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),l.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),l.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),l.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),l.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),l.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),l.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),l.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),l.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),l.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),l.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),l.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),l.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"}))),ft=e=>l.createElement("svg",Object.assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},l.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),l.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),l.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),l.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),l.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),l.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),l.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),l.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),l.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),l.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"}))),yt=e=>l.createElement(d,Object.assign({alt:"round india flag",src:m.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),wt=e=>l.createElement(d,Object.assign({alt:"square indian flag",src:m.getAssetPath("flags/indiaSquare.png")},e)),bt=t=>{var a=e(t,[]);const n=h();return l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("mask",{id:n,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("g",{mask:`url(#${n})`},l.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),l.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},Lt=t=>{var a=e(t,[]);const n=h();return l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),l.createElement("g",{clipPath:`url(#${n})`},l.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),l.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),l.createElement("defs",null,l.createElement("clipPath",{id:n},l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},Ct=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),l.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),l.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"}))),kt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),l.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),l.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),l.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"})),Mt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),l.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),l.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"}))),Pt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),l.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),l.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"})),Nt=e=>l.createElement(d,Object.assign({alt:"round philippines flag",src:m.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),Ht=e=>l.createElement(d,Object.assign({alt:"square philippines flag",src:m.getAssetPath("flags/philippineSquare.png")},e)),xt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),l.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),l.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})))),Bt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),l.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),l.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),l.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),l.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),l.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),l.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),l.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),l.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),l.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),l.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),l.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),l.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),l.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),l.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})),At=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),l.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"}))),Tt=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),l.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"})),_t=e=>l.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),l.createElement("g",null,l.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},l.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),l.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),l.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"}))),St=e=>l.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l.createElement("g",null,l.createElement("clipPath",null,l.createElement("rect",{width:"24",height:"16",fill:"white"})),l.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),l.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})));var Rt="pfaLGRK";const Ot=({country:e,language:t,rounded:a,height:n,width:i,isTesting:o})=>{let r,s;switch(t){case"en":r=l.createElement(ft,null),s=l.createElement(Et,null);break;case"vi":r=l.createElement(St,null),s=l.createElement(_t,null);break;case"id":r=l.createElement(Lt,{isTesting:o}),s=l.createElement(bt,{isTesting:o});break;case"th":r=l.createElement(Tt,null),s=l.createElement(At,null);break;case"km":r=l.createElement(vt,null),s=l.createElement(pt,null);break;case"ms":r=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"my":r=l.createElement(Pt,null),s=l.createElement(Mt,null);break;case"tl":r=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"hi":r=l.createElement(wt,null),s=l.createElement(yt,null);break;case"zh":r=l.createElement(Bt,null),s=l.createElement(xt,null)}if(!r&&!s)switch(e){case"VN":r=l.createElement(St,null),s=l.createElement(_t,null);break;case"ID":r=l.createElement(Lt,{isTesting:o}),s=l.createElement(bt,{isTesting:o});break;case"TH":r=l.createElement(Tt,null),s=l.createElement(At,null);break;case"KH":r=l.createElement(vt,null),s=l.createElement(pt,null);break;case"MY":r=l.createElement(kt,null),s=l.createElement(Ct,null);break;case"MM":r=l.createElement(Pt,null),s=l.createElement(Mt,null);break;case"PH":r=l.createElement(Ht,null),s=l.createElement(Nt,null);break;case"IN":r=l.createElement(wt,null),s=l.createElement(yt,null);break;case"TW":r=l.createElement(Bt,null),s=l.createElement(xt,null)}return l.createElement("div",{className:Rt,style:{"--width":i||20,"--height":n||20}},a?s:r)},Ut=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link"],jt=(e="")=>Ut.some((t=>new URL(e).origin.endsWith(t))),Zt=({options:e,label:t,labelRenderer:n,selected:i,onChange:o,showSelected:r=!0,style:s={},showIndicator:c=!0})=>{const[d,h]=a(!1);return l.createElement(l.Fragment,null,l.createElement(u,null,l.createElement(g,{onClick:()=>h((e=>!e))},t||(null==n?void 0:n(d))||null,l.createElement(p,{"data-is-open":d,style:s,"data-show-indicator":c},e.map(((e,t)=>l.createElement(v,{key:t,"data-selected":r&&i===e.value,onClick:t=>{i!==e.value&&(o(e.value),h((e=>!e))),t.stopPropagation()}},l.createElement(Te,{size:"p3"},e.label),r&&i===e.value&&l.createElement("img",{src:m.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))))))),d&&l.createElement(E,{onClick:()=>h(!1)}))},It=({languageOptions:e,locale:t})=>{var a,n;const i=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?l.createElement(Zt,{options:e,selected:i.value,label:l.createElement($t,{locale:t,label:i.label||(null===(n=null===(a=t.split("-"))||void 0===a?void 0:a[0])||void 0===n?void 0:n.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},$t=({locale:e,label:t,href:a})=>{var n,i,o;return l.createElement(f,{href:a},l.createElement(Ot,{country:null===(i=null===(n=null==e?void 0:e.split("-"))||void 0===n?void 0:n[1])||void 0===i?void 0:i.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),l.createElement("span",null,t))},Vt=({forceDisplay:e,mediaQueryKey:t,children:a,className:n,style:o})=>{const[r,s]=i((()=>Ye(t)),[t]);return l.createElement(y,{lowerBound:e?0:r,upperBound:e?0:s,className:n,style:o},a)},Ft=e=>{const{allowBgScroll:t}=e||{},l=o();return{containerRef:l,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{l.current&&(document.activeElement===l.current||l.current.contains(document.activeElement))&&(l.current.blur(),document.activeElement.blur())}}},Dt=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:n,children:i,enableAnimation:o=!0,targetAvatar:r,id:s,className:c})=>l.createElement(w,{"data-open":a,"data-type":e,"data-animation":o,"data-target":r,id:s,className:c},l.createElement("div",{className:"popup-content"},!!t&&l.createElement("div",{className:"close-button",onClick:n},t),i)),zt={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var Gt="uJQBNNg",Wt="TfG3dM5",qt="aMtjFNf",Kt="cSz2RR-",Yt="GyFm00F";function Qt({userInfo:e,onClickMyProfileButton:t,themeName:a="helloSites"}){const{t:n}=qe(),o=i((()=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return l.createElement("div",{className:Gt,onClick:()=>{t&&t()}},l.createElement(gt,{className:Wt,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:o,backgroundColor:"marryBaby"===a?at.mbColors.pink:at.colors.secondaryBase}),l.createElement("div",{className:qt},l.createElement("div",{className:Kt},(null==e?void 0:e.name)||(null==e?void 0:e.username)),l.createElement("div",{className:Yt,style:{"--bg-hellosites":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${m.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},n("userProfile.nav.header.viewProfile"))))}var Jt="gn6HmGG",Xt="FCx8FEM",el="zMiRxaE",tl="lZ2Z9MQ",ll="rwm-agG",al="qMOscoq";const nl=({themeName:e,locale:t,onClickItem:n})=>{const[o,r]=a(""),s=i((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:m.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:m.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:m.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"common.profileNavigator.newsletterSubscription",link:"subscriptions",disableLocale:["id-ID","ms-MY","km-KH","en-PH","tl-PH","th-TH","my-MM","zh-TW","hi-IN"]},{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:m.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function c(e){e.subMenu?r((t=>t?"":e.key)):n&&n(e)}return l.createElement("div",{className:Jt},s.map((e=>l.createElement(il,{key:e.key,item:e,openKey:o,onClickItem:c,locale:t}))))},il=({item:e,openKey:t,onClickItem:a,locale:n})=>{var i;const{t:o}=qe();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:l.createElement("div",{className:`${Xt} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},l.createElement("div",{className:el,onClick:()=>a(e)},e.icon&&l.createElement("div",{className:tl,style:{backgroundImage:`url("${e.icon}")`}}),o(e.key),e.subMenu&&l.createElement("div",{className:ll,style:{"--after-bg":`url(${m.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&l.createElement("div",{className:al},e.subMenu.map((e=>l.createElement(il,{key:e.key,item:e,openKey:t,onClickItem:a,locale:n})))))};var ol="-AZt1au",rl="IvSIfCI",sl="eahCJov",cl="XIyViFs",ml="_4y-O0w3",dl="kO8iNgD",hl="a1d4E10",ul="Tdguxxf",gl="-mOxsaU",pl="yPeDBNZ";const vl={helloSites:{member:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>m.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},El=({themeName:e,rank:t="member",numberOfPosts:a=0})=>{const{t:n}=qe(),o=i((()=>{var l,a;return(null===(a=null===(l=vl[e])||void 0===l?void 0:l[t])||void 0===a?void 0:a.call(l))||""}),[t,e]);return l.createElement("div",{className:ml,"data-user-rank":t},l.createElement("div",{className:dl},l.createElement("div",{className:hl},l.createElement("div",{className:ul,style:{backgroundImage:`url("${o}")`}}),l.createElement("h3",{className:gl},n(`userProfile.userRank.${t}`)),a>0&&l.createElement("p",{className:pl},a," ",n("userProfile.nav.header.count.posts")))))},fl=e=>{var t,l,a,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>fl(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(l=e.cat_parent)||void 0===l?void 0:l.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null,customizedUrl:e.customized_url||null}:{}},yl=e=>{var t,l;if(!e)return{};const a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(l=e.link)||void 0===l?void 0:l.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||a?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},wl=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},bl=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},Ll=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=st[l])||void 0===a?void 0:a.ALL}/${(null===(n=st[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},Cl=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},kl=e=>{const t=new Date;if(null==e?void 0:e.startDate){const l=new Date(e.startDate);if(t.getTime()<l.getTime())return!1}if(null==e?void 0:e.endDate){const l=new Date(e.endDate);if(t.getTime()>l.getTime())return!1}return!0},Ml=({SSO_URL:e,UP_BASEPATH:t="user",themeName:o="helloSites",cardUrls:r=zt,enableCare:s,enableTogether:c,enableEcom:d,enableMySaved:h,userInfo:u,togetherApiDomain:g,userPostsNumber:p,onClickNavigationCard:v,onClickMyProfileButton:E,onClickMenuItem:f,onClickLogout:y,isUserProfileNavigatorMenuHidden:w=!1,isMyHealthEnabled:C=!1,locale:k})=>{const{t:M}=qe(),[P,N]=a(p||0),H="marryBaby"===o;n((()=>{if(u&&void 0===p){const e=ot("hhg_user_token");e&&fetch(Ze(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+ct(b.GET_USER_POSTS,Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${_e[e]}`})))(k,H,g)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,l,a;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&N((null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[k,null!==u,p,g,H]);const x=i((()=>{let e;return e=H?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?s:"myCommunity"===e?c:"myHealth"===e?C:"eCom"===e?d:"mySaved"!==e||h))}),[H,C]),B=i((()=>"marryBaby"===o?null:l.createElement(rt,{color:"tertiary",icon:l.createElement("img",{src:m.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:y,className:cl},M("userProfile.nav.menu.logout"))),[o]),A=l=>{window.location.href=Ze(`${e}${t}/${l}`)},T=e=>{const t=r[e];v?v(t):A(t)};return u?l.createElement("div",{className:ol,"data-theme":o},l.createElement(Qt,{userInfo:u,themeName:o,onClickMyProfileButton:()=>{E?E():A("profile")}}),l.createElement(El,{themeName:o,rank:"member",numberOfPosts:P}),l.createElement("div",{className:rl},x.map((e=>l.createElement(L,{className:sl,key:e,themeName:o,type:e,onClick:T})))),!w&&l.createElement(l.Fragment,null,l.createElement(nl,{themeName:o,locale:k,onClickItem:e=>{"logout"===e.link&&y?y():e.link&&!e.subMenu&&(f?f(e.link):A(e.link))}}),B)):null},Pl=({SSO_URL:e,UP_BASEPATH:t,isOpen:a,targetAvatar:n,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,closePopup:m,siteType:d="helloSites",dispatchLogout:h,userProfileRouterPush:u,isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p=!1,togetherApiDomain:v,locale:E})=>{const f=l=>{u?u(`/${l}`):e&&(window.location.href=Ze(`${e}${t}/${l}`))},y=e=>{f(e),m()};return l.createElement(Dt,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:m},l.createElement(Ml,{SSO_URL:e,UP_BASEPATH:t,themeName:d,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,enableMySaved:c,onClickLogout:()=>{h&&(h(),m())},onClickMenuItem:y,onClickNavigationCard:y,onClickMyProfileButton:()=>{f("profile"),m()},isUserProfileNavigatorMenuHidden:g,isMyHealthEnabled:p,togetherApiDomain:v,locale:E}))},Nl=({openLogoutPopup:e,onCloseHandler:t,onLogoutHandler:a,siteType:i="helloSites"})=>{const{t:o}=qe();return n((()=>{document.body.classList.toggle("noscroll",e)}),[e]),l.createElement(tt,null,l.createElement(De,{type:"confirm",isOpen:e,closeIcon:l.createElement("img",{src:m.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:t},l.createElement(C,null,"helloSites"===i&&l.createElement("img",{src:m.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),l.createElement("h2",null,o("helloSites"===i?"logout.popup.ask1":"logout.popup.ask.mb")),l.createElement("p",null,o("logout.popup.ask2")),l.createElement(k,{siteType:i},l.createElement(rt,{className:"logout-button",color:"tertiary",size:"lg",onClick:a},o("logout.popup.button.logout")),l.createElement(rt,{className:"cancel-button",color:"primary",size:"lg",onClick:t},o("logout.popup.button.cancel"))))))},Hl=({userInfo:e,siteType:i,onLoginClick:o,SSO_URL:r,currentUrl:s,isMinifyLogin:c,enableCare:d,enableTogether:h,enableEcom:u,isUserProfileNavigatorMenuHidden:g,UP_BASEPATH:p,isMyHealthEnabled:v,togetherApiDomain:E,onLogout:f,style:y,userProfileRouterPush:w,isLoading:b,locale:L,enableMySaved:C,isSubcribeLoginBtn:k})=>{const{t:H}=qe(),[x,B]=a(!1),A=(null==e?void 0:e.name)||(null==e?void 0:e.username),[T,_]=a(!1);n((()=>{_(!0)}),[]);const{containerRef:S,onContainerFocus:R,onContainerBlur:O,onButtonMouseDown:U,onClose:j}=Ft();return b?l.createElement(nt,{size:"sm",color:"transparent",loading:b}):(null==e?void 0:e.id)?l.createElement(l.Fragment,null,l.createElement(M,{ref:S,style:y,tabIndex:0,onBlur:O,onFocus:R},l.createElement("div",{onMouseDown:U},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),l.createElement(gt,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==e?void 0:e.avatar,firstLetter:A&&A.length?A[0].toUpperCase():"A",backgroundColor:"marryBaby"===i?at.mbColors.pink:at.colors.secondaryBase})),l.createElement(Pl,{UP_BASEPATH:p,SSO_URL:r,dispatchLogout:()=>{j(),B(!0)},isOpen:!1,isMyHealthEnabled:v,enableCare:d,enableTogether:h,enableEcom:u,enableMySaved:C,closePopup:j,userInfo:e,siteType:i,isUserProfileNavigatorMenuHidden:g,togetherApiDomain:E,userProfileRouterPush:w,locale:L})),l.createElement(Nl,{openLogoutPopup:x,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),B(!1)},siteType:i,onLogoutHandler:()=>t(void 0,void 0,void 0,(function*(){B(!1),document.body.classList.toggle("noscroll",!1),yield f()}))})):l.createElement(P,{style:Object.assign({textDecoration:"none"},y),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":s,href:T?void 0:Ze(`${r}?returnUrl=${s}`),"data-site-type":i},c?l.createElement(N,{onClick:o},l.createElement("img",{src:m.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):l.createElement(l.Fragment,null,"helloSites"===i&&(k?l.createElement(nt,{className:"mobile-only",size:"sm",variant:k?"secondary":"tertiary",onClick:o,leftIcon:l.createElement(Je.Envelop,{useCurrentColor:!0,size:18}),style:{paddingLeft:"0.625rem",paddingRight:"0.625rem"}},H("navigation.loginJoin")):l.createElement("img",{className:"mobile-only",src:m.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:o})),"marryBaby"===i&&l.createElement("div",{className:"mobile-only",onClick:o,style:{paddingLeft:16}},l.createElement(it,{size:"p3",color:at.mbColors.pink},H("navigation.loginJoin"))),l.createElement(nt,{className:"login-btn",size:"md",variant:k?"secondary":"tertiary",onClick:o,leftIcon:k?l.createElement(Je.Envelop,{useCurrentColor:!0,size:18}):l.createElement("img",{src:m.getAssetPath("login.svg"),width:18,height:18})},H("navigation.loginJoin"))))};var xl="spdlGfq",Bl="vgS16jX";const Al=({onCareHeaderClick:e,currentUrl:t,careUrlFe:a,btnName:n})=>e?l.createElement(rt,{className:xl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t),style:{paddingLeft:10,paddingRight:10}},n):l.createElement("a",{href:a,className:`${Bl} care-button no-replace-click`},l.createElement(rt,{className:xl,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},n));var Tl="y5VJdvw",_l="oVhOSCy",Sl="pX8OXTM";function Rl({className:e}){return l.createElement("div",null,l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function Ol({siteType:e,type:t,enableSearch:a,className:n}){return"helloSites"===e?l.createElement("div",null,l.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?m.getAssetPath("hamburgerMenuNewWithSearch.svg"):m.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:n})):l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const Ul=()=>{const{locale:e,configs:{statics:t},siteType:a}=r(H),{t:n}=qe();return l.createElement(Xe,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===a?n("navigation.search.input.placeholder"):n("home.search",{site:Se[e||"en-PH"]?Se[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${t.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:l.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},l.createElement(x,null))})};var jl="wnUb-dV",Zl="cjbOxWe";const Il=({item:e,menu:t})=>{const{containerRef:a,onContainerFocus:n,onContainerBlur:i,onButtonMouseDown:o,onClose:r}=Ft({allowBgScroll:!0}),s=ht();return!e.popupType&&e.link?l.createElement($l,{isNew:e.isNew},l.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:Zl},e.name))):l.createElement($l,{isNew:e.isNew},l.createElement("div",{ref:a,className:"hhgcomp-navigation-itemnav-headeritem "+(s?"":`menu-handler-${e.id}`),tabIndex:0,key:e.id,onBlur:i,onFocus:n,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},l.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:o,className:Zl},e.name,e.popupType&&l.createElement("div",{className:jl},l.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),l.isValidElement(t)?l.cloneElement(t,{onClose:r}):null))},$l=({isNew:e,children:t})=>{const{t:a}=qe();return e?l.createElement(mt,{color:"green",label:a("home.navigator.menuItem.new"),size:20,styles:{root:{paddingRight:10}}},t):l.createElement(l.Fragment,null,t)},Vl=({hrefViewMore:e,titleBtnViewMore:t,UrlFE:a,onClosePopup:n,menuItems:i,headingTitle:o})=>{const{siteType:s}=r(H);return l.createElement(B,null,l.createElement(A,null,l.createElement(et,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},o)),null==i?void 0:i.slice(0,6).map(((e,t)=>{const i=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${a}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return l.createElement(T,Object.assign({className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":i,"data-is-heading-category":!1,href:i},!jt(i)&&{target:"_blank"},{"data-theme":s,key:t,onClick:n}),l.createElement("div",{className:"icon"},l.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32,overflow:"hidden"}})),l.createElement($l,{isNew:e.isNew},l.createElement("p",{style:{paddingRight:e.isNew?10:0}},e.name)),l.createElement(_,null,l.createElement("img",{src:m.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),t&&l.createElement(S,{"data-theme":s,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},l.createElement(R,{onClick:n,"data-theme":s,"data-is-heading-category":!1},t,l.createElement(O,null,l.createElement("img",{className:"svg",src:"marryBaby"===s?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},Fl=({item:e,index:t=0})=>{var a;const{t:n}=qe(),{locale:i,configs:{statics:o}}=r(H);if(!e)return null;const s=`${o.CARE_URL_FE}/${null===(a=st[i])||void 0===a?void 0:a.HOSPITAL}/${e.slug}-${e.id}`;return l.createElement(U,{key:e.id,href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${t+1}`,"data-event-label":s},l.createElement("img",{src:m.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),l.createElement(j,null,l.createElement(Z,null,l.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),l.createElement(I,null,l.createElement($,null,e.name),l.createElement(V,null,e.description),l.createElement(F,null,n("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},Dl=({title:e,link:t,description:a,cta:n,icon:i})=>{const{siteType:o}=r(H);return l.createElement(D,{"data-theme":o},l.createElement(z,null,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("navMBSpotlightBgNoData.svg"):m.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(G,null,i&&l.createElement("img",{src:i,width:64,height:64}))),l.createElement("div",null,e&&l.createElement(W,null,e),a&&l.createElement(q,null,a),n&&l.createElement("div",null,l.createElement("a",{href:t},l.createElement(rt,{theme:o,className:"survey-contact-submit",size:"md"},n)))))},zl=({title:e,viewMore:t,children:a,link:n,dataEventAction:i=""})=>{const{siteType:o}=r(H);return l.createElement(K,null,l.createElement(Y,null,l.createElement(et,{tag:"marryBaby"===o?"h5":"h6",as:"h2",fontWeight:"semibold"},e),t&&l.createElement(Q,{"data-event-category":"Hamburger Navigation","data-event-action":i,"data-event-label":n,href:n,"data-theme":o},t,l.createElement("img",{src:"marryBaby"===o?m.getAssetPath("chevronRightPink.svg"):m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),a)},Gl=({spotlights:e=[],hrefViewMore:t})=>{const{t:a}=qe();return l.createElement(zl,{title:a("home.navigator.menu.spotlightHospitals")},0!==e.length?l.createElement(J,null,null==e?void 0:e.slice(0,3).map(((e,t)=>l.createElement(Fl,{key:t,index:t,item:e})))):l.createElement(Dl,{title:a("home.navigator.menu.care.noDatas.title"),description:a("home.navigator.menu.care.noDatas.description"),link:t,cta:a("home.navigator.menu.care.noDatas.cta"),icon:m.getAssetPath("community.svg")}))},Wl=({item:e,index:t=0})=>e?l.createElement(X,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},l.createElement(ee,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),l.createElement(te,null,e.title)):null,ql=({spotlightsList:e=[],hrefViewMore:t})=>{const{t:a}=qe(),{configs:{statics:n}}=r(H);return l.createElement(zl,{title:a("home.navigator.menu.spotlights"),viewMore:a("home.navigator.menu.spotlights.seeAll"),link:t,dataEventAction:"Spotlight See More Click"},0!==e.length?l.createElement(le,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(Wl,{key:t,index:t,item:{id:e.id,link:n.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):l.createElement(Dl,{title:a("home.navigator.menu.category.noDatas.title"),description:a("home.navigator.menu.category.noDatas.description"),link:t,cta:a("home.navigator.menu.category.noDatas.cta"),icon:m.getAssetPath("Spotlight.svg")}))},Kl=({spotlights:e=[]})=>{const{configs:{statics:t}}=r(H),{t:a}=qe();return l.createElement(zl,{title:a("home.navigator.menu.trendingPosts"),viewMore:a("home.navigator.menu.trendingPosts.seeMore"),link:Ie(t.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?l.createElement(ae,null,null==e?void 0:e.slice(0,4).map(((e,t)=>l.createElement(ne,{index:t,post:e,key:e.id})))):l.createElement(Dl,{title:a("home.navigator.menu.together.noPosts.title"),description:a("home.navigator.menu.together.noPosts.description"),link:`${t.HOME_PAGE_URL}/community/`,cta:a("home.navigator.menu.together.noPosts.cta"),icon:m.getAssetPath("community.svg")}))},Yl=({item:e,index:t=0})=>{const{t:a}=qe(),{configs:{statics:n}}=r(H);if(!e)return null;const i=e.link?e.link.startsWith("http")?e.link:`${n.HOME_PAGE_URL}${e.link}`:void 0;return l.createElement(ie,{href:i,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":i},l.createElement("img",{src:m.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),l.createElement(oe,null,l.createElement(re,null,e.title),l.createElement(se,null,e.subtitle),l.createElement(ce,null,a("home.seeMore"),l.createElement("img",{src:m.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),l.createElement(me,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},Ql=({item:e,index:t=0,color:a})=>{const{t:n}=qe(),{configs:{statics:i}}=r(H);if(!e)return null;const o=e.link?e.link.startsWith("http")?e.link:`${i.HOME_PAGE_URL}${e.link}`:void 0,s=()=>l.createElement(ue,null,l.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),c=()=>l.createElement(ge,null,l.createElement(pe,null,l.createElement(ve,null,e.title),l.createElement(Ee,null,e.subtitle)),l.createElement(fe,null,l.createElement("div",{className:"mobile-only"},n("home.seeMore")),l.createElement("img",{src:m.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})));return l.createElement(de,{href:o,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${t+1}`,"data-event-label":o,"data-color":a},l.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),l.createElement("img",{src:m.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),l.createElement(he,null,l.createElement("div",{className:"mobile-only"},s()),l.createElement("div",{className:"desktop-only"},c())),l.createElement("div",{className:"mobile-only"},c()),l.createElement("div",{className:"desktop-only"},s()))},Jl=({hrefViewMore:e,spotlightHealthTools:t=[]})=>{const{t:a}=qe(),n=["pink","orange","green"],{siteType:i}=r(H);return l.createElement(zl,{title:a("home.navigator.menu.spotlightTools")},0!==t.length&&l.createElement(ye,null,null==t?void 0:t.slice(0,3).map(((e,t)=>"marryBaby"===i?l.createElement(Ql,{key:t,index:t,item:e,color:n[t]}):l.createElement(Yl,{key:t,index:t,item:e})))),0===t.length&&l.createElement(Dl,{title:a("home.navigator.menu.healthTools.noDatas.title"),description:a("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:a("home.navigator.menu.healthTools.noDatas.cta"),icon:m.getAssetPath("community.svg")}))},Xl=({closePopup:e,menuItems:t=[]})=>{var a,n;const{siteType:i,ssrMenuContent:{categories:o,healthTools:s,care:c,together:m},activeMenuService:d,configs:{statics:h,enableSearchBar:u},locale:g}=r(H),{t:p}=qe();return l.createElement(we,{id:"categories-menu"},u?l.createElement(be,{"data-theme":i,onClick:()=>{window.location.href=`${h.HOME_PAGE_URL}/search`}},l.createElement(Ul,null)):null,l.createElement(Le,null,l.createElement(Vl,{UrlFE:h.HOME_PAGE_URL,titleBtnViewMore:p("home.navigator.menuItem.allCategories"),menuItems:t,headingTitle:p("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===d&&l.createElement(ql,{spotlightsList:(null==o?void 0:o.spotlights)||[],hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}/spotlight/`}),"tools"===d&&l.createElement(Jl,{spotlightHealthTools:null==s?void 0:s.spotlights,hrefViewMore:`${h.HOME_PAGE_URL}${"tl-PH"===g?"/fil":""}${(null===(a=Re[g])||void 0===a?void 0:a.HEALTH_TOOLS)||""}`}),"care"===d&&l.createElement(Gl,{spotlights:null==c?void 0:c.spotlights,hrefViewMore:`${h.CARE_URL_FE}/${null===(n=st[g])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===d&&l.createElement(Kl,{spotlights:null==m?void 0:m.spotlights})))},ea=({type:e="home",menuItems:t})=>{const{siteType:a,configs:{enableSearchBar:n}}=r(H),{containerRef:i,onContainerFocus:o,onContainerBlur:s,onButtonMouseDown:c,onClose:m}=Ft();return l.createElement(Vt,{mediaQueryKey:"mbDown"},l.createElement("header",{className:Tl},l.createElement("div",{className:_l,ref:i,role:"button",tabIndex:0,onBlur:s,onFocus:o},l.createElement("div",{className:Sl,onMouseDown:c,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},l.createElement(Rl,{className:"mobile-close-icon"}),l.createElement(Ol,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),l.createElement(Xl,{menuItems:t,closePopup:m}))))};var ta="q3nL5cp",la="_2DNf80G",aa="Q-glX-n";const na=({onClosePopup:e})=>l.createElement("div",{className:`${aa} close-btn`,onClick:e},l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),ia=({onClosePopup:e,isDisplay:t,children:a,isNavMenu:n,hideCloseBtn:i})=>l.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!n},l.createElement(lt,null,!i&&l.createElement("div",{className:la},l.createElement(na,{onClosePopup:e})),l.createElement(lt,{className:ta},a))),oa=({careSpecialties:e=[],isOpen:t,onClose:a,spotlights:n=[]})=>{var i;const{t:o}=qe(),{locale:s,configs:{statics:c}}=r(H),m=`${c.CARE_URL_FE}/${null===(i=st[s])||void 0===i?void 0:i.SPECIALTIES}`;return l.createElement(ia,{onClosePopup:a,isDisplay:t,isNavMenu:!0},l.createElement(Vl,{headingTitle:o("home.navigator.menuItem.specialties"),hrefViewMore:m,UrlFE:c.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:Ll({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),l.createElement(Gl,{spotlights:n,hrefViewMore:m}))},ra=({categories:e=[],spotlightsList:t=[],onClose:a,isOpen:n})=>{const{t:i}=qe(),{locale:o,configs:{statics:s}}=r(H);return l.createElement(ia,{onClosePopup:a,isDisplay:n,isNavMenu:!0},l.createElement(Vl,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:a,titleBtnViewMore:i("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.customizedUrl)||(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:i("home.navigator.menuItem.healthCategories")}),l.createElement(ql,{spotlightsList:t,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===o?"/fil":""}/spotlight/`}))},sa=({communities:e=[],onClose:t,isOpen:a,spotlights:n=[]})=>{const{t:i}=qe(),{configs:{statics:o}}=r(H);return l.createElement(ia,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Vl,{hrefViewMore:Ie(o.TOGETHER_URL_FE),UrlFE:Ze(o.TOGETHER_URL_FE),onClosePopup:t,titleBtnViewMore:i("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:i("home.navigator.menuItem.allCommunitiesheadingTitle")}),l.createElement(Kl,{spotlights:n}))},ca=({locale:e,onClose:t,isOpen:a,spotlightHealthTools:n=[],healthTools:i=[]})=>{var o;const{t:s}=qe(),{configs:{statics:c}}=r(H),m=`${c.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(o=Re[e])||void 0===o?void 0:o.HEALTH_TOOLS)||""}`;return l.createElement(ia,{onClosePopup:t,isDisplay:a,isNavMenu:!0},l.createElement(Vl,{hrefViewMore:m,UrlFE:c.HOME_PAGE_URL,onClosePopup:t,headingTitle:s("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:s("home.navigator.menuItem.allHealthTools"),menuItems:i.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${c.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),l.createElement(Jl,{spotlightHealthTools:n,hrefViewMore:m}))},ma=({onTopBarAppears:e,type:t="home",languageMenu:i,menuItems:c,isSubcribeLoginBtn:d})=>{var h;const{siteType:u,isMobile:g=!1,locale:p,sitewideBanner:v,sitewideBannerShown:E=!0,sponsorComponent:f,onBookingClick:y,currentUrl:w,onLoginClick:b,configs:{statics:L,enableNavCareBooking:C,enableSearchBar:k,enableNavCare:M,enableProfileMyHealth:P,enableProfileMySaved:N,enableNavTogether:x,enableProfileEcom:B,enableProfileNavigatorMenu:A},userState:{userInfo:T},onLogout:_,userProfileRouterPush:S,isUserLoading:R}=r(H),{t:O}=qe(),{SSO_URL:U,HOME_PAGE_URL:j}=L,Z=!!f,[I,$]=a(!1),V=o(47),F=o(null),D=o(!1),z="helloSites"===u?null===(h=Se[p])||void 0===h?void 0:h.LOGO_TYPE:u,G="undefined"!=typeof window,W=s(Ke((()=>{if("home"===t&&G){if(!F.current)return;const e=F.current.getBoundingClientRect();e.top<=0&&window.scrollY>V.current&&window.scrollY>e.height+20&&!D.current&&(D.current=!0,$(!0)),window.scrollY<V.current&&D.current&&(D.current=!1,$(!1)),window.scrollY>=0&&(V.current=window.scrollY)}}),200),[]);n((()=>{null==e||e(!I)}),[I]),n((()=>(window.addEventListener("scroll",W,{passive:!0}),()=>{window.removeEventListener("scroll",W)})),[]),n((()=>{g&&W()}),[g]);const q=E&&!!v;return l.createElement(Ce,{"data-site-type":u,"data-sponsored":Z,"data-sitewide-banner-shown":q,"data-header-type":t,"data-collapsed":I,"data-with-search-input":"popup-sub-level"!==t,"data-is-displayed":!0,id:"site-header",ref:F},v,l.createElement(ke,{"data-site-type":u},l.createElement(Me,{"data-site-type":u},l.createElement(ea,{menuItems:c,type:t}),l.createElement("a",{style:{flexShrink:0},href:j},l.createElement(Pe,null,l.createElement(We,{style:{display:"flex"},type:z,badge:"id-ID"===p&&l.createElement("img",{src:m.getAssetPath("sehat-badge.png"),width:"56",height:"23"}),dateForSeasonal:new Date,locale:p,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===u?l.createElement(ha,{menuItems:c}):k&&l.createElement(da,{siteType:u})),l.createElement(Ne,{"data-site-type":u},"marryBaby"===u?k&&l.createElement(da,{siteType:u}):l.createElement(ha,{menuItems:c}),l.createElement(He,null,C&&l.createElement(Vt,{mediaQueryKey:"mbUp"},l.createElement(Al,{careUrlFe:L.CARE_URL_FE,currentUrl:w,btnName:O("login.booking"),onCareHeaderClick:y})),i,l.createElement(Hl,{userInfo:T,siteType:u,onLoginClick:b||(()=>{const e=window.location.href;window.location.href=U?Ze(`${U}?returnUrl=${e}`):e}),SSO_URL:Ie(L.SSO_URL),currentUrl:w,onLogout:_,UP_BASEPATH:Oe,isMyHealthEnabled:P,enableCare:M,enableTogether:x,enableEcom:B,enableMySaved:N,togetherApiDomain:Ie(L.TOGETHER_API),isUserProfileNavigatorMenuHidden:!A,userProfileRouterPush:S,isLoading:R,locale:p,isSubcribeLoginBtn:d})))),f?l.isValidElement(f)?l.cloneElement(f,{isCollapsed:I,locale:p,isMobile:g}):f:null)},da=({siteType:e})=>l.createElement(Vt,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},l.createElement(Ul,null)),ha=({menuItems:e})=>{const{siteType:t,locale:a,ssrMenuContent:{categories:n,healthTools:i,care:o,together:s}}=r(H);return l.createElement(Vt,{mediaQueryKey:"mbUp",style:{height:"100%"}},l.createElement(xe,{"data-site-type":t},null==e?void 0:e.map(((e,t)=>l.createElement(Il,{key:t,item:e,menu:"categories"===e.popupType?l.createElement(ra,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?l.createElement(ca,{locale:a,healthTools:null==i?void 0:i.items,spotlightHealthTools:null==i?void 0:i.spotlights}):"together"===e.popupType?l.createElement(sa,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?l.createElement(oa,{careSpecialties:null==o?void 0:o.items,spotlights:null==o?void 0:o.spotlights}):null})))))},ua=e=>{var t,c;const{isMobile:d,locale:h,onTopBarAppears:u,languageOptions:g,sponsorComponent:p,sitewideBanner:v,sitewideBannerShown:E,className:f,isSubcribeLoginBtn:y}=e,w=(()=>{const{t:e}=qe(),{siteType:t,locale:l,configs:{enableNavDiscover:a,enableNavHealthTools:n,enableNavCare:o,enableNavTogether:s,enableNavEcom:c,statics:d}}=r(H),h="marryBaby"===t;return i((()=>{var t;const i=[];return a&&i.push({name:e("home.navigator.menuItem.discover"),id:"categories",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}/categories`,niceName:"",thumbnail:h?m.getAssetPath("categories-mb.svg"):m.getAssetPath("nav-icons/discover.svg"),popupType:"categories"}),n&&i.push({name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${d.HOME_PAGE_URL}${"tl-PH"===l?"/fil":""}${(null===(t=Re[l])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:h?m.getAssetPath("healthtools-mb.svg"):m.getAssetPath("nav-icons/health-tools.svg"),popupType:"tools"}),o&&i.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:Ze(d.HOME_PAGE_URL+"/care"),thumbnail:m.getAssetPath("nav-icons/care.svg"),popupType:"zh-TW"===l?null:"care"}),s&&i.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:Ze(d.TOGETHER_URL_FE+"/"),thumbnail:h?m.getAssetPath("community-mb.svg"):m.getAssetPath("nav-icons/community.svg"),popupType:"together"}),c&&i.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:Ze(d.HOME_PAGE_URL+"/shop"),thumbnail:m.getAssetPath("nav-icons/shop.svg"),popupType:null,isNew:!0}),i}),[l,o,s,c])})();(()=>{const{isFirstLogin:e,userState:t}=r(H),{userInfo:l}=t;n((()=>{(null==l?void 0:l.id)&&(e?(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,sign_up:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:(null==l?void 0:l.email)&&""!==(null==l?void 0:l.email)?window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,email:null==l?void 0:l.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})}:window.insider_object={user:Object.assign({uuid:null==l?void 0:l.id,log_in:!0},(null==l?void 0:l.name)?{name:null==l?void 0:l.name}:{})})}),[])})();const b=E&&!!v,L=!!p,C=!!(null===(c=null===(t=null==p?void 0:p.props)||void 0===t?void 0:t.sponsoredBy)||void 0===c?void 0:c.length),{headerRef:k,defaultHeaderHeight:M,headerHeight:P,headerBottom:N}=(({hasSponsoredBanners:e,isSponsored:t,isShowingSiteWideBanner:l,isMobile:r})=>{const c=o(null),[m,d]=a(0),[h,u]=a(64),g=s(dt((()=>{var e,t,l,a;const n=(null===(e=c.current)||void 0===e?void 0:e.clientHeight)||(null===(l=null===(t=c.current)||void 0===t?void 0:t.children[0])||void 0===l?void 0:l.clientHeight)||0;window.scrollY<=n+200&&(d(n),u((null===(a=c.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||m))}),200),[]);n((()=>(window.addEventListener("resize",g,{passive:!0}),window.addEventListener("scroll",g,{passive:!0}),g(),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g)})),[]),n((()=>{g()}),[r,l,t,e,c.current]);const p=i((()=>{let a=r?64:69;return l&&(a+=64),t&&(a+=40,e&&(a+=57)),a}),[r,l,e,t]);return{defaultHeaderHeight:p,headerHeight:m||p,headerBottom:h,headerRef:c}})({isShowingSiteWideBanner:b,isSponsored:L,hasSponsoredBanners:C,isMobile:d});return l.createElement(Ae,{id:"navigation-v2",style:{"--default-header-height":M+"px","--header-height":`calc(${P}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":N+"px"},className:f},l.createElement("section",{ref:k},l.createElement(ma,{menuItems:w,type:"home",onTopBarAppears:u,languageMenu:l.createElement(It,{languageOptions:g,locale:h}),isSubcribeLoginBtn:y})))},ga=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return l.createElement(Be,Object.assign({},t),l.createElement(ua,Object.assign({},t)))},pa=e=>t(void 0,void 0,void 0,(function*(){var t,l,a,n,i,o,r,s,c,m,d,h,u,g,p,v,E,f,y,w,b;const L={},C="vi-VN_MB"===e;try{const k="tl-PH"===e?"lang=fil":"";try{const[d,h,u,g]=yield Promise.all([fetch(Ze(`${$e(e)}/wp-json/api/categories${k?"?"+k:""}`)).then((e=>e.json())),fetch(Ze(`${$e(e)}/wp-json/api/spotlights?per_page=10&order_by=start_date${k?"&"+k:""}`)).then((e=>e.json())),fetch(Ze(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}${k?"?"+k:""}`)).then((e=>e.json())),fetch(Ze(`${$e(e)}/wp-json/api/${C?"health-tools":"healthtools"}/favorites${k?"?"+k:""}`)).then((e=>e.json()))]);L.categories={items:(null===(l=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,fl))||[],spotlights:(null===(o=null===(i=null===(n=null===(a=null==h?void 0:h.data)||void 0===a?void 0:a.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,Cl))||void 0===o?void 0:o.filter(kl))||[]},L.healthTools={items:(null===(s=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,yl))||[],spotlights:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,yl))||[]}}catch(e){}if(C||Ue.includes(e))try{const[t,l]=yield Promise.all([fetch(Ze(`${Ve()}/api/v1/community?website_url=https://${_e[e]}`)).then((e=>e.json())),fetch(Ze(`${Ve()}/api/v1/options?website_url=https://${_e[e]}&meta_key=popular_post`)).then((e=>e.json()))]);L.together={items:(null===(u=null===(h=null===(d=null==t?void 0:t.data)||void 0===d?void 0:d.communities)||void 0===h?void 0:h.map)||void 0===u?void 0:u.call(h,ze))||[],spotlights:(null===(v=null===(p=null===(g=null==l?void 0:l.data)||void 0===g?void 0:g.posts)||void 0===p?void 0:p.map)||void 0===v?void 0:v.call(p,Ge))||[]}}catch(e){}if(je.includes(e))try{const[t,l]=yield Promise.all([fetch(Ze(Fe()+`/api/specialties?_ishome=1&site=${_e[e]}`)).then((e=>e.json())),fetch(Ze(Fe()+`/api/search/?site=${_e[e]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);L.care={items:(null===(y=null===(f=null===(E=null==t?void 0:t._data)||void 0===E?void 0:E.specialties)||void 0===f?void 0:f.map)||void 0===y?void 0:y.call(f,wl))||[],spotlights:(null===(b=null===(w=null==l?void 0:l._data.searches)||void 0===w?void 0:w.map)||void 0===b?void 0:b.call(w,bl))||[]}}catch(e){}}catch(e){console.error(e)}return L})),va=e=>t(void 0,void 0,void 0,(function*(){return(yield c("nav-menu-content",(()=>pa(e||"en-PH")),(e=>{var t,l;return!!(null===(l=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===l?void 0:l.length)})))||{}}));export{gt as A,Ot as F,It as L,ga as N,Pl as P,Ml as U,va as a,Qt as b,El as c,Nl as d,Hl as e,pa as g,jt as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-566e140f.js";import t from"react";import{Autocomplete as n,Image as a,ActionIcon as l,Select as r}from"@mantine/core";import{useUncontrolled as o}from"@mantine/hooks";import{CommonGAssets as c}from"./gAssets.js";const i=n=>{var{keepSearch:a=!1}=n,l=e(n,["keepSearch"]);return a?t.createElement(s,Object.assign({},l)):t.createElement(C,Object.assign({},l))},s=r=>{var{value:i,defaultValue:s,onChange:C,clearable:h}=r,g=e(r,["value","defaultValue","onChange","clearable"]);const[m,u]=o({value:i,defaultValue:s,onChange:C});return t.createElement(n,Object.assign({rightSection:t.createElement(a,{src:c.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300,onChange:e=>u(e),value:m},g,h&&(null==m?void 0:m.length)>0?{rightSection:t.createElement(l,{onClick:()=>{u("")},sx:{cursor:"pointer"}},t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z",fill:"#8C8C8C"})))}:{}))},C=n=>{var{searchValue:i,onSearchChange:s}=n,C=e(n,["searchValue","onSearchChange"]);const[h,g]=o({defaultValue:"",value:i,onChange:s});return t.createElement(r,Object.assign({rightSection:t.createElement(a,{src:c.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300,onSearchChange:e=>g(e),searchValue:h},C,C.clearable&&(null==h?void 0:h.length)>0?{rightSection:t.createElement(l,{onClick:()=>{g("")},sx:{cursor:"pointer"}},t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z",fill:"#8C8C8C"})))}:{}))};export{i as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-566e140f.js";import t from"react";import{Modal as s}from"@mantine/core";import{CommonGAssets as l}from"./gAssets.js";import{m as a,e as o}from"./index-8e8ef155.js";const r=r=>{var{title:n,styles:m}=r,i=e(r,["title","styles"]);const{classes:c}=a(void 0,{name:"Modal",styles:m});return t.createElement(t.Fragment,null,t.createElement(s,Object.assign({centered:!0,classNames:c},i,{withCloseButton:!1,title:i.withCloseButton&&t.createElement(t.Fragment,null,t.createElement(o,{size:"s2",weight:"semiBold",as:"span"},n),t.createElement("img",{className:"mantine-Modal-close",src:l.getAssetPath("CloseModal.svg"),onClick:()=>{var e;return null===(e=i.onClose)||void 0===e?void 0:e.call(i)},style:{width:"16px"}}))})))};export{r as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-566e140f.js";import a,{useMemo as t}from"react";import{useMantineTheme as s}from"@mantine/core";import{S as o,L as n,a as r,b as l,c as i}from"./index-eac9c06c.js";const c=c=>{var{name:m,value:d,errorMessage:p,isNumerousKeyboard:u=!1,showErrorMessage:y=!0,actionIcon:b,displayIcon:C,onActionClick:v,label:g,className:h,onChange:E,isDisabled:N,CustomInput:I,size:f,style:k,autoComplete:A="off",type:K="text",inputClassName:M,trackingAttributes:z,enterKeyHint:L}=c,j=e(c,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const w=s(),x=t((()=>z?{"data-event-category":z.dataEventCategory,"data-event-action":z.dataEventAction,"data-event-label":z.dataEventLabel}:{}),[z]);return a.createElement(o,{"data-size":f,className:h,"data-has-action-icon":!!b||void 0,"data-has-display-icon":!!C||void 0,"data-has-error":p&&p.length>0||void 0,color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][0],style:k},g&&a.createElement(n,{size:"label2",htmlFor:m,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},I||a.createElement("input",Object.assign({id:m,name:m,onChange:e=>E&&E(e.target.value),type:K,"aria-label":K,value:d,disabled:N,autoComplete:A,inputMode:u||"number"===K?"numeric":K,pattern:u?"[0-9]*":".*",className:M,enterKeyHint:L},x,j)),C&&a.createElement(r,{className:"displayIcon"},C),b&&a.createElement(l,{className:"actionIcon",onClick:v},b)),p&&p.length>0&&y&&a.createElement(i,{className:"errorLabel"},p))};export{c as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"./tslib.es6-566e140f.js";import o from"react";import{Indicator as e}from"@mantine/core";import"dayjs";import"./screenSizeContext-fc50587c.js";import"styled-components";import{t as s}from"./theme-4693e886.js";import"./index-0e921413.js";import"./utils-807f25d6.js";import"./isProduction-ed27c0ed.js";import"./Onboarding-01e65da4.js";import"./gAssets.js";const r=r=>{var{styles:i,color:n=s.colors.red700}=r,m=t(r,["styles","color"]);return o.createElement(e,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},i),color:n},m))};export{r as I};
|