@hhgtech/hhg-components 1.27.76 → 1.27.78
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-29a98a5e.js +1 -0
- package/build/{dataTransform-aea67247.js → dataTransform-e059c212.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +4 -4
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-76118e0d.js → core-44c4d5a7.js} +1 -1
- package/build/esm/{dataTransform-5949df7b.js → dataTransform-3ad49c0d.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-535345f7.js → fixedBottomAdBlock-f9f4497f.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-7453ae72.js → getDynamicHealthTool-cd934ae0.js} +1 -1
- package/build/esm/{getSocialList-b775d5ed.js → getSocialList-26f09669.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-b55076d8.js → index-03981da2.js} +1 -1
- package/build/esm/{index-c65c9fd2.js → index-0a6fa4cc.js} +2 -2
- package/build/esm/index-0ec9b0bd.js +53 -0
- package/build/esm/{index-44a40183.js → index-251ac76a.js} +6 -6
- package/build/esm/{index-e435900a.js → index-27b659b0.js} +1 -1
- package/build/esm/{index-13099f72.js → index-31476649.js} +1 -1
- package/build/esm/{index-23a4f40f.js → index-380302d6.js} +1 -1
- package/build/esm/{index-800718e2.js → index-3d8a6f49.js} +1 -1
- package/build/esm/index-42f49dee.js +1 -0
- package/build/esm/{index-06614e02.js → index-6df4978c.js} +1 -1
- package/build/esm/{index-d737fa66.js → index-80186250.js} +1 -1
- package/build/esm/index-841e9b1a.js +1 -0
- package/build/esm/{index-a862ef93.js → index-91137710.js} +1 -1
- package/build/esm/{index-795ed49f.js → index-9b827592.js} +1 -1
- package/build/esm/index-a13d5bc0.js +1 -0
- package/build/esm/index-a1d0e05c.js +1 -0
- package/build/esm/{index-f8f8f457.js → index-cc4ee537.js} +1 -1
- package/build/esm/{index-5921f524.js → index-d3af565f.js} +1 -1
- package/build/esm/{index-84c551f6.js → index-de89c6d8.js} +1 -1
- package/build/esm/{index-60865ae8.js → index-e48fba27.js} +1 -1
- package/build/esm/{index-d7f14a20.js → index-f50ae417.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-b17a2415.js → index.styled-4c6e37b0.js} +7 -7
- package/build/esm/index.styled-74e10a26.js +50 -0
- package/build/esm/{index.styled-d1af6a46.js → index.styled-82196312.js} +9 -9
- 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 +1 -1
- package/build/esm/pwg.js +3 -3
- package/build/esm/{routing-6572230c.js → routing-9bd1c0cf.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-bacf34e2.js → types-556bc635.js} +1 -1
- package/build/esm/{types-d3029d09.js → types-df76e189.js} +81 -81
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-3e5103d3.js +1 -0
- package/build/esm/{useRafState-b3978423.js → useRafState-0e79cc14.js} +1 -1
- package/build/esm/useTranslations-f02eb191.js +1 -0
- package/build/esm/{utils-46fa0b74.js → utils-1f49154b.js} +1 -1
- package/build/esm/{utils-a40e61f1.js → utils-6d17f712.js} +1 -1
- package/build/esm/vaccination.js +5 -5
- package/build/{fixedBottomAdBlock-c331bdd5.js → fixedBottomAdBlock-f36f2f92.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-c4503e1c.js +1 -0
- package/build/{getSocialList-5f09a55b.js → getSocialList-07361dc7.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-102d7ba2.js → index-006ae7f1.js} +1 -1
- package/build/{index-1ec819cc.js → index-019502eb.js} +1 -1
- package/build/{index-9dceabe9.js → index-0f97c479.js} +1 -1
- package/build/{index-39ba4a88.js → index-282a8655.js} +1 -1
- package/build/{index-2f52117b.js → index-3e4d102c.js} +1 -1
- package/build/{index-89c81645.js → index-51014c3f.js} +1 -1
- package/build/{index-ecfba34f.js → index-57c98658.js} +1 -1
- package/build/{index-15fda270.js → index-5ba227ab.js} +1 -1
- package/build/{index-928fc97a.js → index-61b89b4b.js} +1 -1
- package/build/{index-51bd49be.js → index-668730c7.js} +1 -1
- package/build/{index-e1d38a49.js → index-8571b215.js} +1 -1
- package/build/{index-facb1a06.js → index-88ccb9bc.js} +1 -1
- package/build/{index-8cc18ebd.js → index-8f068d3c.js} +1 -1
- package/build/{index-20061432.js → index-942e90f7.js} +1 -1
- package/build/{index-a3b57299.js → index-a4f745f5.js} +1 -1
- package/build/{index-7833d40c.js → index-bdf6da0e.js} +2 -2
- package/build/{index-e910920c.js → index-def58b2f.js} +1 -1
- package/build/{index-dcb44ef9.js → index-e09f33ba.js} +1 -1
- package/build/{index-811c4cec.js → index-ecdde5af.js} +1 -1
- package/build/index-fcdcdc6a.js +1 -0
- package/build/{index-d687191c.js → index-fd8698af.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-ae410963.js → index.styled-049b5ca0.js} +1 -1
- package/build/{index.styled-59ecf213.js → index.styled-28001484.js} +1 -1
- package/build/index.styled-e9f80af4.js +50 -0
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-041bddcd.js → routing-68d0b247.js} +1 -1
- package/build/together.js +1 -1
- package/build/{types-fcba9b22.js → types-c657ac6d.js} +3 -3
- package/build/{types-53067c13.js → types-df3f4e13.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-5c75347c.js +1 -0
- package/build/{useRafState-604e03c3.js → useRafState-f997f496.js} +1 -1
- package/build/{useTranslations-a55f1d22.js → useTranslations-95f1399d.js} +1 -1
- package/build/utils-67a028e4.js +1 -0
- package/build/{utils-fa92f01c.js → utils-d79de40e.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-c4716a73.js +0 -1
- package/build/esm/index-07cbc3e7.js +0 -1
- package/build/esm/index-33e52c6f.js +0 -53
- package/build/esm/index-8034d84f.js +0 -1
- package/build/esm/index-a7808541.js +0 -1
- package/build/esm/index-aa5a1fcf.js +0 -1
- package/build/esm/index.styled-014222dd.js +0 -50
- package/build/esm/useHealthToolCache-18375998.js +0 -1
- package/build/esm/useTranslations-39856f38.js +0 -1
- package/build/getDynamicHealthTool-2279cae3.js +0 -1
- package/build/index-76446297.js +0 -1
- package/build/index.styled-d150ad0d.js +0 -50
- package/build/useHealthToolCache-fe12ca57.js +0 -1
- package/build/utils-204fa3fa.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-914f5734.js → BMI_BOYS.percentile.monthly-5874e445.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-5e8fefa4.js → BMI_BOYS.percentile.weekly-4f0c485b.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-989b236f.js → BMI_BOYS.percentile.yearly-f2c3c180.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-0c14438f.js → BMI_BOYS.zscore.monthly-2f798678.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-5d6b12c0.js → BMI_BOYS.zscore.weekly-89b5f292.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-6aa095b5.js → BMI_BOYS.zscore.yearly-31653ef9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-990ef8cf.js → BMI_GIRLS.percentile.monthly-8a149eac.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-8c81480d.js → BMI_GIRLS.percentile.weekly-f76157cc.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-1ca610c7.js → BMI_GIRLS.percentile.yearly-2169a0de.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-894348f8.js → BMI_GIRLS.zscore.monthly-e91267e9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-4a67a8c1.js → BMI_GIRLS.zscore.weekly-190df407.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-bc7eee27.js → BMI_GIRLS.zscore.yearly-c28aa15d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4b4cf9fd.js → HEAD CIRCUM_BOYS.percentile.monthly-0c88fa9a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-5df546e3.js → HEAD CIRCUM_BOYS.percentile.weekly-11a67133.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-5119e173.js → HEAD CIRCUM_BOYS.percentile.yearly-7079101e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-5d6fce0c.js → HEAD CIRCUM_BOYS.zscore.monthly-6761b3ea.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-618074ff.js → HEAD CIRCUM_BOYS.zscore.weekly-f1756225.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-5c7cccc5.js → HEAD CIRCUM_BOYS.zscore.yearly-070044b4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d18170ba.js → HEAD CIRCUM_GIRLS.percentile.monthly-7ea24f4a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-e0ee1816.js → HEAD CIRCUM_GIRLS.percentile.weekly-95a8468d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-7899652d.js → HEAD CIRCUM_GIRLS.percentile.yearly-8674723d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-d15eb1c6.js → HEAD CIRCUM_GIRLS.zscore.monthly-4cf4585d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-53c574ae.js → HEAD CIRCUM_GIRLS.zscore.weekly-72f407fd.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-892c4776.js → HEAD CIRCUM_GIRLS.zscore.yearly-ae7c986a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-c1e1753a.js → HEIGHT_BOYS.percentile.monthly-e934252c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-5215cc1c.js → HEIGHT_BOYS.percentile.weekly-36b2b67f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-4815cd78.js → HEIGHT_BOYS.percentile.yearly-840c33e6.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-0f4cf796.js → HEIGHT_BOYS.zscore.monthly-9b991e74.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-fbbd7b2e.js → HEIGHT_BOYS.zscore.weekly-e0e323e8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-309e1081.js → HEIGHT_BOYS.zscore.yearly-ae9791b7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-d738829e.js → HEIGHT_GIRLS.percentile.monthly-2038ea42.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d131bd73.js → HEIGHT_GIRLS.percentile.weekly-1c17f5ab.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-958f5d84.js → HEIGHT_GIRLS.percentile.yearly-1381b2f9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-d225e962.js → HEIGHT_GIRLS.zscore.monthly-1a3f7f80.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-9b2835fe.js → HEIGHT_GIRLS.zscore.weekly-a768d4ba.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-af6829a3.js → HEIGHT_GIRLS.zscore.yearly-fd0231dc.js} +0 -0
- /package/build/{Onboarding-db812105.js → Onboarding-0a35aa99.js} +0 -0
- /package/build/{Visible-df16febe.js → Visible-88f41d8d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-79fa2a56.js → WEIGHT_BOYS.percentile.monthly-360eead3.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-12f5fbc2.js → WEIGHT_BOYS.percentile.weekly-929aee70.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-29f763f4.js → WEIGHT_BOYS.percentile.yearly-c217998d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-1379e747.js → WEIGHT_BOYS.zscore.monthly-945a065b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-924d54f2.js → WEIGHT_BOYS.zscore.weekly-57939d8c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-db1da36f.js → WEIGHT_BOYS.zscore.yearly-c0242a0e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-fc92c80b.js → WEIGHT_GIRLS.percentile.monthly-f422811d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-0d291b88.js → WEIGHT_GIRLS.percentile.weekly-2283c0f2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-a1d6b6b3.js → WEIGHT_GIRLS.percentile.yearly-d3e63ef9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-0fd62c0b.js → WEIGHT_GIRLS.zscore.monthly-f7172a03.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-6d8fefc8.js → WEIGHT_GIRLS.zscore.weekly-9bd8c5b4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-dc67d9d3.js → WEIGHT_GIRLS.zscore.yearly-8583c260.js} +0 -0
- /package/build/{constants-9c971977.js → constants-1040c4ad.js} +0 -0
- /package/build/{cookieHelper-20190c5b.js → cookieHelper-9efd7919.js} +0 -0
- /package/build/{dataTransform-e257595f.js → dataTransform-46bb19f8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-05b76dff.js → BMI_BOYS.percentile.monthly-547e557b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-a35c2f96.js → BMI_BOYS.percentile.weekly-56f1bf64.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-89ca7379.js → BMI_BOYS.percentile.yearly-08153283.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-adf73ac0.js → BMI_BOYS.zscore.monthly-e1743d39.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-0d8caeba.js → BMI_BOYS.zscore.weekly-218e6d3b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-d7a4ca56.js → BMI_BOYS.zscore.yearly-607cc374.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-6c572d03.js → BMI_GIRLS.percentile.monthly-d83aa6f1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-cdb4493f.js → BMI_GIRLS.percentile.weekly-303de5b0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-b1c29108.js → BMI_GIRLS.percentile.yearly-c3487381.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-5f1ba1fa.js → BMI_GIRLS.zscore.monthly-239b7d45.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-c07176b3.js → BMI_GIRLS.zscore.weekly-5b0c5d24.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-b3fd78db.js → BMI_GIRLS.zscore.yearly-51737763.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f893f68f.js → HEAD CIRCUM_BOYS.percentile.monthly-8ca3e98a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-165c6d6c.js → HEAD CIRCUM_BOYS.percentile.weekly-a09e6c9f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-efd09092.js → HEAD CIRCUM_BOYS.percentile.yearly-22456c92.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c6e6d347.js → HEAD CIRCUM_BOYS.zscore.monthly-b831eed7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-5a5b94e9.js → HEAD CIRCUM_BOYS.zscore.weekly-1746ab2c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-4070a11a.js → HEAD CIRCUM_BOYS.zscore.yearly-4e918685.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-3976c360.js → HEAD CIRCUM_GIRLS.percentile.monthly-fb34a270.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-fe5bbf42.js → HEAD CIRCUM_GIRLS.percentile.weekly-bb427f3d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-600a3258.js → HEAD CIRCUM_GIRLS.percentile.yearly-ee0ef0c6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-4ae0aa15.js → HEAD CIRCUM_GIRLS.zscore.monthly-ad09e307.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-6b0d245d.js → HEAD CIRCUM_GIRLS.zscore.weekly-5f3cea34.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-15ab2edc.js → HEAD CIRCUM_GIRLS.zscore.yearly-aac07d55.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-1ee49949.js → HEIGHT_BOYS.percentile.monthly-bbd8ec94.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-acdf9388.js → HEIGHT_BOYS.percentile.weekly-e7b984aa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-c48251fd.js → HEIGHT_BOYS.percentile.yearly-06c1e60d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-fda405a2.js → HEIGHT_BOYS.zscore.monthly-068a8a27.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-56249d82.js → HEIGHT_BOYS.zscore.weekly-eb7f3f06.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-23aed1e8.js → HEIGHT_BOYS.zscore.yearly-4ec316ec.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-bab23b18.js → HEIGHT_GIRLS.percentile.monthly-950d0ea5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-4fdff030.js → HEIGHT_GIRLS.percentile.weekly-78ad3c75.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-d292c9a5.js → HEIGHT_GIRLS.percentile.yearly-16cefac2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-e8097a34.js → HEIGHT_GIRLS.zscore.monthly-6fafd59a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-cd4fbb2c.js → HEIGHT_GIRLS.zscore.weekly-bbe5c85d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-afcf5910.js → HEIGHT_GIRLS.zscore.yearly-5f2ff241.js} +0 -0
- /package/build/esm/{Onboarding-08cc7302.js → Onboarding-43862b7b.js} +0 -0
- /package/build/esm/{Visible-b641d492.js → Visible-ec398164.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-5c61e95a.js → WEIGHT_BOYS.percentile.monthly-aff75784.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-441e7a55.js → WEIGHT_BOYS.percentile.weekly-32a8379a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-c6868f77.js → WEIGHT_BOYS.percentile.yearly-784be088.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-8b870484.js → WEIGHT_BOYS.zscore.monthly-183b855b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-09d00591.js → WEIGHT_BOYS.zscore.weekly-240f85cb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f47402e3.js → WEIGHT_BOYS.zscore.yearly-5353a9d5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-ab4fcd09.js → WEIGHT_GIRLS.percentile.monthly-99f8e410.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b16c55af.js → WEIGHT_GIRLS.percentile.weekly-ae372739.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-4d01d736.js → WEIGHT_GIRLS.percentile.yearly-2d485623.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-dbfc67a3.js → WEIGHT_GIRLS.zscore.monthly-b187bcda.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-741c4a70.js → WEIGHT_GIRLS.zscore.weekly-0547fa9c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-8c7026ee.js → WEIGHT_GIRLS.zscore.yearly-29fc2ba0.js} +0 -0
- /package/build/esm/{constants-564f593e.js → constants-4164a332.js} +0 -0
- /package/build/esm/{cookieHelper-d0d1392b.js → cookieHelper-b5198ba7.js} +0 -0
- /package/build/esm/{dataTransform-6c281cd2.js → dataTransform-4798268a.js} +0 -0
- /package/build/esm/{index-c901af33.js → index-fdeb7f10.js} +0 -0
- /package/build/esm/{isProduction-28f89c19.js → isProduction-7fc869ed.js} +0 -0
- /package/build/esm/{localizeNumberFormat-1ca926e0.js → localizeNumberFormat-e9a22280.js} +0 -0
- /package/build/esm/{normalizeLink-f8b5d7d0.js → normalizeLink-a9e07d8c.js} +0 -0
- /package/build/esm/{paths-a641d10c.js → paths-392d2bdb.js} +0 -0
- /package/build/esm/{screenSizeContext-7f85dfc4.js → screenSizeContext-8144e3e5.js} +0 -0
- /package/build/esm/{theme-f74408a1.js → theme-a2a171b2.js} +0 -0
- /package/build/esm/{translationsContext-5483c365.js → translationsContext-2c7be8c0.js} +0 -0
- /package/build/esm/{tslib.es6-5020a074.js → tslib.es6-2e31dcb2.js} +0 -0
- /package/build/esm/{types-d1c76761.js → types-050ea401.js} +0 -0
- /package/build/esm/{useIsInit-5951cf15.js → useIsInit-89ffe85c.js} +0 -0
- /package/build/esm/{useOutsideClick-8e180ef3.js → useOutsideClick-07e69274.js} +0 -0
- /package/build/esm/{useScrollbarSize-f87e7c52.js → useScrollbarSize-aca76ea6.js} +0 -0
- /package/build/esm/{useUniqueId-e829fd66.js → useUniqueId-62cbb6d3.js} +0 -0
- /package/build/{index-f87aac98.js → index-615df44d.js} +0 -0
- /package/build/{isProduction-629fba62.js → isProduction-f892b978.js} +0 -0
- /package/build/{localizeNumberFormat-3bfc1c4b.js → localizeNumberFormat-9bccc072.js} +0 -0
- /package/build/{normalizeLink-d35cda22.js → normalizeLink-bd50251f.js} +0 -0
- /package/build/{paths-5760b908.js → paths-4281a119.js} +0 -0
- /package/build/{screenSizeContext-4958e54e.js → screenSizeContext-6f10e9b3.js} +0 -0
- /package/build/{theme-2f122010.js → theme-48d542a5.js} +0 -0
- /package/build/{translationsContext-6bc6d4eb.js → translationsContext-f2d68f9a.js} +0 -0
- /package/build/{tslib.es6-e717a934.js → tslib.es6-6b56e029.js} +0 -0
- /package/build/{types-a2e54951.js → types-feb2b3fe.js} +0 -0
- /package/build/{useIsInit-4e399e3e.js → useIsInit-46f59445.js} +0 -0
- /package/build/{useOutsideClick-28e8970d.js → useOutsideClick-76205435.js} +0 -0
- /package/build/{useScrollbarSize-36836d06.js → useScrollbarSize-13f27011.js} +0 -0
- /package/build/{useUniqueId-2694410c.js → useUniqueId-efa7ed8c.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("./index-811c4cec.js"),a=require("./utils-fa92f01c.js"),l=require("./screenSizeContext-4958e54e.js"),n=require("./useUniqueId-2694410c.js"),r=require("./gAssets.js"),o=require("./theme-2f122010.js"),i=require("./index-dcb44ef9.js"),s=require("./tslib.es6-e717a934.js"),d=require("@mantine/core"),c=require("innertext");require("@mantine/dates");var u=require("./index-15fda270.js");require("./Onboarding-db812105.js");var m=require("dayjs");require("styled-components");var g=require("./isProduction-629fba62.js");require("./translationsContext-6bc6d4eb.js"),require("string-format"),require("./index-e910920c.js"),require("@mantine/hooks");var f=require("./index-20061432.js"),p=require("lodash/throttle"),h=require("./useTranslations-a55f1d22.js"),v=require("date-fns"),y=require("./index-a3b57299.js"),E=require("./index-102d7ba2.js");require("lodash/debounce");var b=require("./types-a2e54951.js"),C=require("./index-1ec819cc.js"),w=require("./index-e1d38a49.js"),k=require("react-hook-form"),S=require("./index-facb1a06.js"),x=require("./useHealthToolCache-fe12ca57.js"),T=require("./dataTransform-aea67247.js"),N=require("./useOutsideClick-28e8970d.js"),B=require("date-fns/locale/en-US"),L=require("date-fns/locale/id"),D=require("date-fns/locale/vi"),_=require("date-fns/locale/zh-TW"),I=require("./index-89c81645.js"),M=require("./getSocialList-5f09a55b.js"),A=require("uuid");function z(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var P=z(e),F=z(c),O=z(m),j=z(p),H=z(B),$=z(L),G=z(D),R=z(_),W="CHw-fZZ",U="_03U6VRS",V="EO828Vv";const q=({pagesAmount:t,activePage:n,handlePageChange:r,handleClick:o,href:i,queryPageName:s="page"})=>{const d=[...Array(t)].map(((e,t)=>t+1)),[c,u]=e.useState(n<=4?d.slice(0,5):n>=d.length-3?d.slice(d.length-5,d.length):d.slice(n-2,n+1));return e.useEffect((()=>{n<=4?u(d.slice(0,5)):n>=d.length-3?u(d.slice(d.length-5,d.length)):u(d.slice(n-2,n+1))}),[n]),P.default.createElement(e.Fragment,null,n>4&&P.default.createElement(e.Fragment,null,P.default.createElement(a.StyledPaginationBlock,{onClick:()=>r(1)},i?P.default.createElement("a",{href:i,onClick:o},1):1),P.default.createElement(a.StyledPaginationBlock,null,"...")),c.map((e=>P.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===n||void 0,onClick:()=>r(e)},i?P.default.createElement("a",{href:l.formatUrlWithPageParam(i,e,s),onClick:o},e):e))),n<d.length-3&&P.default.createElement(e.Fragment,null,P.default.createElement(a.StyledPaginationBlock,null,"..."),P.default.createElement(a.StyledPaginationBlock,{onClick:()=>r(d.length)},i?P.default.createElement("a",{href:l.formatUrlWithPageParam(i,d.length,s),onClick:o},d.length):d.length)))},Z=({label:e,name:t,checked:l,className:n,isDisabled:r,onChange:o,value:i,isRectangle:s,inputDataTestId:d,siteType:c})=>P.default.createElement(a.StyledCheckbox,{className:n,"data-disabled":r||void 0,"data-is-rectangle":s||void 0,"data-label-text":e,"data-theme":c},P.default.createElement("input",{type:"checkbox",checked:l,name:t,onChange:()=>o(i,!l),disabled:r,value:i,id:`${t}-${i}`,"data-label-text":e,"data-testid":d}),!s&&P.default.createElement("label",{htmlFor:`${t}-${i}`},e)),Y=e=>P.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),P.default.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),Q=e=>P.default.createElement("svg",Object.assign({},e,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),P.default.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),K=e=>{const t=n.useUniqueId();return P.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),P.default.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),P.default.createElement("mask",{id:t,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},P.default.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),P.default.createElement("g",{mask:`url(#${t})`},P.default.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))};var X="PiqKaXk",J="HgbW6-m",ee="_6lkfLYy",te="j7c-onH";const ae=({avatarImg:e,authorName:a,authorLink:l,uploadTime:n,size:r})=>P.default.createElement("div",{className:te},P.default.createElement("div",{className:"author"},P.default.createElement("div",{className:"avatar","data-size":r},e),P.default.createElement("div",{className:"poster","data-is-disabled-url":!l},P.default.createElement(t.Text,{size:"lg"===r?"p3":"p4"},P.default.createElement("a",{href:l},P.default.createElement("span",{className:"name"},a),"•"," "),P.default.createElement("span",null,n))))),le=({isMobile:e,avatarImg:l,name:n,link:r,size:i="lg",specialty:s})=>P.default.createElement("div",{className:te},P.default.createElement("div",{className:"author"},P.default.createElement("div",{className:"expert-avatar","data-size":i},l),P.default.createElement("div",{className:"expert","data-is-disabled-url":!r},e?P.default.createElement("a",{href:r},"lg"===i?P.default.createElement(P.default.Fragment,null,P.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:o.theme.colors.gray600},n),P.default.createElement(t.Text,{color:o.theme.colors.gray500,size:"p3",className:"specialty"},s)):P.default.createElement(P.default.Fragment,null,P.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:o.theme.colors.gray600},n))):P.default.createElement("a",{href:r},"lg"===i?P.default.createElement(P.default.Fragment,null,P.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:o.theme.colors.gray600},n),P.default.createElement(t.Text,{color:o.theme.colors.gray500,size:"p3",className:"specialty"},s)):P.default.createElement(P.default.Fragment,null,P.default.createElement("h6",{color:o.theme.colors.gray600,className:`${X} expert__name`},n),P.default.createElement(t.Text,{color:o.theme.colors.gray500,size:"p4",className:"specialty"},s)))))),ne=e=>{var t,l,n,{article:r,author:o,authorAvatar:i,badge:c="",hideDescription:u=!1,isBookmarked:m=!1,onBookmark:g,time:f,tracking:p}=e,h=s.__rest(e,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:v}=a.useScreenSize();return console.log({article:r}),P.default.createElement(d.Card,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},h),P.default.createElement(d.Card.Section,{w:"100%",h:"100%",miw:264,m:0},P.default.createElement("img",{src:(v?r.featureImageMobile:r.featureImage)||r.featureImage,alt:r.postName,style:{width:"100%"},loading:"lazy"})),P.default.createElement(d.Card.Section,null,P.default.createElement(d.Group,{position:"apart",mt:16,mb:4},P.default.createElement(a.Anchor,{href:(null===(t=null==r?void 0:r.primaryCategory)||void 0===t?void 0:t.permalink)||"#"},P.default.createElement(a.Text,{size:"p4",color:"blue.6"},null===(l=null==r?void 0:r.primaryCategory)||void 0===l?void 0:l.displayName)),P.default.createElement(d.Box,{sx:{cursor:"pointer"},role:"button",onClick:g},m?P.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},null==p?void 0:p.bookmark),P.default.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):P.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},null==p?void 0:p.bookmark),P.default.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),P.default.createElement(a.Text,{size:u?"s2":"s1",mb:8,weight:"semiBold"},r.postTitle||r.postName||""),!u&&P.default.createElement(a.Text,{size:"p2",mb:16,lineClamp:3},F.default(r.excerpt||r.description||(null===(n=r.postContent)||void 0===n?void 0:n.split("\r\n")[0])||"")),P.default.createElement(d.Flex,{gap:12,align:"center"},P.default.createElement(a.Avatar,{size:32,src:i,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:P.default.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),P.default.createElement(a.Text,{size:"n1",c:"gray.6"},o," • ",f))))},re=648/440,oe=1.5,ie=t=>{var l,n,r,{article:o,author:c,authorAvatar:u,badge:m="",bannerImageWrapProps:g,hideDescription:f=!1,isBookmarked:p=!1,onBookmark:h,time:v,tracking:y,classNames:E,styles:b,unstyled:C,className:w}=t,k=s.__rest(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:S}=a.useScreenSize(),{classes:x,cx:T}=i.useStyles({},{name:"ArticleCard",classNames:E,styles:b,unstyled:C});console.log({article:o});const N=e.useMemo((()=>f?oe:re),[f]);return P.default.createElement(d.Card,Object.assign({className:T(x.root,w),padding:"lg",radius:0},k),P.default.createElement(d.Card.Section,{className:x.image},P.default.createElement(a.AspectRatio,Object.assign({ratio:N},g),P.default.createElement("img",{src:(S?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{objectFit:"cover"}}))),P.default.createElement(d.Card.Section,null,P.default.createElement(d.Group,{position:"apart",mt:16,mb:4},P.default.createElement(a.Anchor,{className:x.category,href:(null===(l=null==o?void 0:o.primaryCategory)||void 0===l?void 0:l.permalink)||"#"},P.default.createElement(a.Text,{size:"p4",color:"blue.6"},null===(n=null==o?void 0:o.primaryCategory)||void 0===n?void 0:n.displayName)),P.default.createElement(d.Box,{sx:{cursor:"pointer"},role:"button",onClick:h},p?P.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},null==y?void 0:y.bookmark),P.default.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):P.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},null==y?void 0:y.bookmark),P.default.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),P.default.createElement(a.Text,{className:x.title,size:f?"s2":"s1",mb:8,weight:"semiBold"},o.postTitle||o.postName||""),!f&&P.default.createElement(a.Text,{className:x.description,size:"p2",mb:16,lineClamp:3},F.default(o.excerpt||o.description||(null===(r=o.postContent)||void 0===r?void 0:r.split("\r\n")[0])||"")),P.default.createElement(d.Flex,{className:x.author,gap:12,align:"center"},P.default.createElement(a.Avatar,{size:32,src:u,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:P.default.createElement("img",{loading:"lazy",src:m,alt:""})}},"A"),P.default.createElement(a.Text,{size:"n1",c:"gray.6"},c," • ",v))))};var se=Object.freeze({__proto__:null,SideMenu:i.SideMenu,SideHeader:i.SideHeader,UserInfo:i.UserInfo,MenuLink:i.MenuLink});const de=({status:e})=>"inActive"===e?P.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})):"active"===e?P.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("circle",{cx:"6",cy:"6",r:"4",fill:"#2D87F3"}),P.default.createElement("circle",{cx:"6",cy:"6",r:"5.5",stroke:"#2D87F3"})):"done"===e?P.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12Z",fill:"#00B16A"}),P.default.createElement("path",{d:"M8.76061 4.20029L4.80061 7.80029L3.00061 6.16392",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})):P.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"}));var ce=Object.freeze({__proto__:null,Table:i.Table,Cell:i.Cell,Head:i.Head,Row:i.Row,Body:i.Body});const ue=({locale:l,onClick:n,siteType:r,pageUrl:s})=>{const{t:d}=h.useTranslations(),[c,m]=e.useState(new Date);return P.default.createElement(P.default.Fragment,null,P.default.createElement(i.StyledLastPeriodFormContainer,{className:"input-form","data-is-side":!0},"marryBaby"===r?P.default.createElement(i.StyledTextField,{label:d("dueDatePage.conceptionDate"),name:"date",size:"md",value:i.DateToInputValue(c),CustomInput:P.default.createElement(i.DatePicker,{onChange:e=>{m(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>P.default.createElement(y.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:c&&O.default(c).format(a.DUE_DATE_FORMAT)}))}),actionIcon:P.default.createElement(E.Icon.CalendarMB,{size:32})}):P.default.createElement(y.Input,{label:P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.conceptionDate")),value:i.DateToInputValue(c),name:"date",size:"md",className:"due-date-input",CustomInput:P.default.createElement(i.DatePicker,{customInput:e=>P.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:i.DateToInputValue(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:c,displayDateFormat:b.DATE_FORMAT,onChange:e=>{m(e)},placeholder:"placeholder"})})),P.default.createElement(a.Button,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===r?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:s,onClick:()=>{n(i.getDueDateConception(c),`${u.QUERY_HEALTH_TOOL.type}=1&sd=${v.format(c,i.API_DATE_FORMAT)}&${u.QUERY_HEALTH_TOOL.additional}= `)},role:"button"},d("dueDatePage.lastPeriod.calculate")))},me=({locale:l,onClick:n,siteType:r,pageUrl:s})=>{const{t:d}=h.useTranslations(),[c,m]=e.useState(new Date),[g,f]=e.useState("3");return P.default.createElement(P.default.Fragment,null,P.default.createElement(i.StyledLastPeriodFormContainer,{className:"input-form","data-is-side":!0},"marryBaby"===r?P.default.createElement(i.StyledTextField,{label:d("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:i.DateToInputValue(c),CustomInput:P.default.createElement(i.DatePicker,{onChange:e=>{m(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>P.default.createElement(y.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:c&&O.default(c).format(a.DUE_DATE_FORMAT)}))}),actionIcon:P.default.createElement(E.Icon.CalendarMB,{size:32})}):P.default.createElement(y.Input,{label:P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray700,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.ivf.transferDate")),value:i.DateToInputValue(c),name:"date",size:"md",className:"due-date-input",CustomInput:P.default.createElement(i.DatePicker,{customInput:e=>P.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:i.DateToInputValue(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:c,displayDateFormat:b.DATE_FORMAT,onChange:e=>{m(e)},placeholder:"placeholder"})})),P.default.createElement("div",{style:{width:"100%"}},P.default.createElement(i.RadioGroup,{id:"radio-transfer-date",type:"circle",direction:"vertical",size:"small",group:"group1",value:g,onChange:e=>f(e),options:[{value:"3",label:d("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:d("dueDatePage.ivf.transferDateRadio",{number:5})}]})),P.default.createElement(a.Button,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===r?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:s,onClick:()=>{n(i.getDueDateIVF(c,Number(g)),`${u.QUERY_HEALTH_TOOL.type}=2&${u.QUERY_HEALTH_TOOL.startDate}=${v.format(c,i.API_DATE_FORMAT)}&${u.QUERY_HEALTH_TOOL.additional}=${g}`)},role:"button"},d("dueDatePage.lastPeriod.calculate")))},ge=({locale:l,onClick:n,siteType:r,pageUrl:s})=>{const{t:d}=h.useTranslations(),[c,m]=e.useState(28),[g,f]=e.useState(new Date);return P.default.createElement(P.default.Fragment,null,P.default.createElement(i.StyledLastPeriodFormContainer,{className:"input-form","data-is-side":!0},"marryBaby"===r?P.default.createElement(i.StyledTextField,{label:d("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:i.DateToInputValue(g),CustomInput:P.default.createElement(i.DatePicker,{onChange:e=>{f(e)},placeholder:"dd/mm/yyyy",pickedDate:g,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>P.default.createElement(y.Input,Object.assign({name:"birthday",size:"md"},e,{value:g&&O.default(g).format(a.DUE_DATE_FORMAT)}))}),actionIcon:P.default.createElement(E.Icon.CalendarMB,{size:32})}):P.default.createElement(y.Input,{className:"input-section due-date-input",label:P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.lastPeriod.lastPeriodLabel")),value:i.DateToInputValue(g),name:"date",size:"md",CustomInput:P.default.createElement(i.DatePicker,{customInput:e=>P.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:i.DateToInputValue(g)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:g,displayDateFormat:b.DATE_FORMAT,onChange:e=>{f(e)},placeholder:"placeholder"})})),P.default.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===r?"marryBaby":""},"marryBaby"===r?P.default.createElement(C.MarryBabyText,{type:"bodytext-3",color:o.theme.mbColors.midGray},d("dueDatePage.lastPeriod.periodLengthLabel")):P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray600,style:{marginBottom:"0.5rem"}},d("dueDatePage.lastPeriod.periodLengthLabel")),P.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&P.default.createElement(t.Text,{size:"s3",type:"bold",color:o.theme.colors.gray600},c),P.default.createElement(w.Slider,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,onChange:m,value:c,label:"marryBaby"!==r?void 0:null}))),P.default.createElement(a.Button,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:s,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===r?"secondary":"primary",onClick:()=>n(i.getDueDateLastPeriod(g,c),`${u.QUERY_HEALTH_TOOL.type}=0&${u.QUERY_HEALTH_TOOL.startDate}=${v.format(g,i.API_DATE_FORMAT)}&${u.QUERY_HEALTH_TOOL.additional}=${c}`),role:"button"},d("dueDatePage.lastPeriod.calculate")))},fe=({onSubmitDueDate:a,locale:l,isSide:n,siteType:r})=>{const{t:s}=h.useTranslations(),[d,c]=e.useState(i.DueDateCalculatorType.lastPeriod),u=[{value:i.DueDateCalculatorType.lastPeriod,label:s("dueDatePage.lastPeriod")},{value:i.DueDateCalculatorType.conception,label:s("dueDatePage.conceptionDate")},{value:i.DueDateCalculatorType.IVF,label:s("dueDatePage.ivf")}],m=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return P.default.createElement(i.StyledInputWrapper,null,P.default.createElement(i.StyledMethodContainer,{className:"input-form input-section","data-is-side":!0},"marryBaby"===r?P.default.createElement(i.StyledDropDown,{groupedWithLabel:s("dueDatePage.calculationMethod"),options:u,placeholder:s("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:u[d],onChange:e=>{c(e.value)}}):P.default.createElement(P.default.Fragment,null,P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},s("dueDatePage.calculationMethod")),P.default.createElement(i.StyledMethodSwitcherContainer,{"data-is-side":n},P.default.createElement(i.Dropdown,{options:u,placeholder:s("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:u[d],onChange:e=>{c(e.value)}})))),d===i.DueDateCalculatorType.lastPeriod?P.default.createElement(ge,{locale:l,onClick:a,isSide:n,siteType:r,pageUrl:m}):null,d===i.DueDateCalculatorType.conception?P.default.createElement(ue,{locale:l,onClick:a,isSide:n,siteType:r,pageUrl:m}):null,d===i.DueDateCalculatorType.IVF?P.default.createElement(me,{locale:l,onClick:a,isSide:n,siteType:r,pageUrl:m}):null)};function pe({weight:e,height:t}){const a=t/100,l=e;return Math.round(l/(a*a)*10)/10}const he=({value:l,onChange:n,onSubmit:r,disabled:d,bmiGenerated:c,bmiUnit:m,locale:g,isSide:f})=>{var p,v,y,b;const[C,w]=e.useState(!1),{control:T,handleSubmit:N,setValue:B,watch:L}=k.useForm(),D=L(),{t:_}=h.useTranslations(),{gender:I=!1,age:M=!1,height:A=!1,weight:z=!1,objective:F=!0}=d||{},{getHealthToolLink:O}=x.useHealthToolsCache(g),j=e.useMemo((()=>O(a.HEALTH_TOOL_TYPE.OVULATION)),[O]),H=e.useMemo((()=>[{value:"male",label:_("gender.male"),content:P.default.createElement(E.Icon.GenderChooseBoy,null)},{value:"female",label:_("gender.female"),content:P.default.createElement(E.Icon.GenderChooseGirl,null)}]),[]),$=e.useMemo((()=>[{value:"lose-weight",label:_("bmi.objective.loseWeight")},{value:"maintain-weight",label:_("bmi.objective.maintainWeight")},{value:"gain-weight",label:_("bmi.objective.gainWeight")}]),[]),G=()=>{w(!0)};return e.useEffect((()=>{Object.keys(l||{}).forEach((e=>{B(e,null==l?void 0:l[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[l]),e.useEffect((()=>{n&&n(D)}),[D]),P.default.createElement(i.StyledContainer$1,null,P.default.createElement("form",{onSubmit:N((e=>s.__awaiter(void 0,void 0,void 0,(function*(){const t=m.heightConvert(e.height),a=m.weightConvert(e.weight),l={gender:e.gender,age:e.age,height:t,weight:a,bmi:pe({height:t,weight:a})};F||(l.objective=e.objective),G(),r&&r(l)}))),G)},!I&&P.default.createElement(i.FormControl,{"data-is-side":f},P.default.createElement(k.Controller,{name:"gender",control:T,defaultValue:"male",render:({field:{name:e,value:t,onChange:a},fieldState:{error:l}})=>P.default.createElement(i.StyledInput,{size:"md",name:e,label:c.gender.label,CustomInput:P.default.createElement(S.RadioImageGroup,{options:H,value:t,onChange:e=>a(e),className:"bmi--input-radio_gender "+(f?"bmi-side-embed":"")}),errorMessage:C?null==l?void 0:l.message:"",className:"bmi--input bmi--input-gender"})})),P.default.createElement(i.StyledRow,{"data-is-side":f},!M&&P.default.createElement(i.FormControl,null,P.default.createElement(k.Controller,{name:"age",control:T,rules:null===(p=c.age)||void 0===p?void 0:p.rule,render:({field:{name:e,value:l,onChange:n},fieldState:{error:r}})=>P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},c.age.label),placeholder:_("healthtool.placeholder.age"),name:e,value:l,onChange:n,error:C?null==r?void 0:r.message:"",min:0})})),!A&&P.default.createElement(i.FormControl,null,P.default.createElement(k.Controller,{name:"height",control:T,rules:null===(v=c.height)||void 0===v?void 0:v.rule,render:({field:{name:e,value:l,onChange:n},fieldState:{error:r}})=>P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},c.height.label),placeholder:_("pwg.placeholder.height"),name:e,value:l,onChange:n,error:C?null==r?void 0:r.message:"",min:0})})),!z&&P.default.createElement(i.FormControl,null,P.default.createElement(k.Controller,{name:"weight",control:T,rules:null===(y=c.weight)||void 0===y?void 0:y.rule,render:({field:{name:e,value:l,onChange:n},fieldState:{error:r}})=>P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},c.weight.label),placeholder:_("pwg.placeholder.weight"),name:e,value:l,onChange:n,error:C?null==r?void 0:r.message:"",precision:1,min:0})})),!F&&P.default.createElement(i.FormControl,null,P.default.createElement(k.Controller,{name:"objective",control:T,defaultValue:"lose-weight",rules:null===(b=c.objective)||void 0===b?void 0:b.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:l}})=>P.default.createElement(i.StyledInput,{size:"md",name:e,label:c.objective.label,CustomInput:P.default.createElement(i.RadioGroup,{id:"bmi-objective",className:"bmi-objective",type:"circle",direction:"vertical",size:"small",group:"group1",options:$,value:t,onChange:a}),errorMessage:C?null==l?void 0:l.message:"",className:"bmi--input bmi--input-objective"})}))),P.default.createElement("div",{style:{display:"flex"}},P.default.createElement(i.StyledButton,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${u.domainLocales[g]}/${j}`,type:"submit"},_("bmi.submit")))))},ve=({value:a,options:l,className:n,direction:r="horizontal",onChange:o,isDisabled:s})=>{const[d,c]=e.useState(a);return P.default.createElement(i.StyledRadioImageGroup,{className:n,"data-direction":r},l.map(((e,l)=>P.default.createElement(i.StyledRadioImageItem,{"data-selected":(a||d)===e.value,"data-disabled":s,key:`health-tool${l}`,onClick:()=>{var t;t=e.value,s||(c(t),o&&o(t))}},P.default.createElement("div",null,P.default.createElement("img",{src:(a||d)===e.value?e.imageActive:e.image,className:"gender-image",alt:"",loading:"lazy"}),e.label&&P.default.createElement(t.Text,{type:"bold",className:"radio-group-item-heading",size:"label1"},e.label))))))},ye=({info:a,className:l,style:n,onChange:r,errorMessage:s={},locale:d})=>{const{t:c}=h.useTranslations(),[u,m]=e.useState(new Date),[g,f]=e.useState({age:!1,rate:!1});return e.useEffect((()=>{f({age:!1,rate:!1})}),[s]),P.default.createElement(i.StyledContainer$2,{style:n,className:l},P.default.createElement(y.Input,{className:"input-section due-date-input",label:P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},c("targetHeartRate.ageInput")),value:i.DateToInputValue(u),name:"date",size:"md",CustomInput:P.default.createElement(i.DatePicker,{customInput:e=>P.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:i.DateToInputValue(u)})),disabledDays:{after:new Date(v.addDays(new Date,0))},locale:d,pickedDate:u,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{m(e),f((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:v.format(new Date(e),i.API_DATE_FORMAT)});r&&r(t)})(e)},placeholder:"placeholder"}),errorMessage:g.age?"":s.age}))},Ee=({info:l,className:n,style:r,onChange:s,errorMessage:d={},locale:c,onClick:m,isSide:g})=>{const{t:f}=h.useTranslations(),[p,v]=e.useState({age:!1,height:!1,weight:!1}),{getHealthToolLink:y}=x.useHealthToolsCache(c),b=e.useMemo((()=>y(a.HEALTH_TOOL_TYPE.OVULATION)),[y]),[C,w]=e.useState("male"),k=e.useMemo((()=>[{value:"male",label:f("gender.male"),content:P.default.createElement(E.Icon.GenderChooseBoy,null)},{value:"female",label:f("gender.female"),content:P.default.createElement(E.Icon.GenderChooseGirl,null)}]),[]),T=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},N=e=>{var t,a;a=e=>{v((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},l),{age:e});s&&s(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||a(t)};return e.useEffect((()=>{s&&s(Object.assign(Object.assign({},l),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),e.useEffect((()=>{v({age:!1,height:!1,weight:!1})}),[d]),P.default.createElement(i.StyledContainer$3,{style:r,className:n},P.default.createElement(i.FormControl$2,{"data-is-side":g},P.default.createElement(i.StyledInput$2,{size:"md",name:"gender",label:f("bmi.selectGender"),CustomInput:P.default.createElement(S.RadioImageGroup,{options:k,value:C,onChange:e=>w(e),className:"bmi--input-radio_gender "+(g?"bmi-side-embed":"")}),className:"bmi--input bmi--input-gender"})),P.default.createElement(i.StyledRow$2,{"data-is-side":g},P.default.createElement(i.FormControl$2,null,P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},f("bmi.ageInput")," ",P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray300,as:"span"},f("bmi.ageInput.desc"))),placeholder:f("healthtool.placeholder.age"),value:Number(l.age),onChange:e=>N(String(e)),error:p.age?"":d.age,min:0})),P.default.createElement(i.FormControl$2,null,P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},f("bmi.heightInput")," ",P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray300,as:"span"},f("bmi.heightInput.desc"))),placeholder:f("pwg.placeholder.height"),value:Number(l.height),onChange:e=>{return t=String(e),void T(t,(e=>{v((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});s&&s(t)}));var t},error:p.height?"":d.height,min:0})),P.default.createElement(i.FormControl$2,null,P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},f("bmi.weightInput")," ",P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray300,as:"span"},f("bmi.weightInput.desc"))),placeholder:f("pwg.placeholder.weight"),value:Number(l.weight),onChange:e=>{return t=String(e),v((e=>Object.assign(Object.assign({},e),{weight:!0}))),void T(t,(e=>{const t=Object.assign(Object.assign({},l),{weight:e});s&&s(t)}));var t},error:p.weight?"":d.weight,min:0,precision:1}))),P.default.createElement("div",{style:{display:"flex"}},P.default.createElement(i.StyledButton$2,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${u.domainLocales[c]}/${b}`,onClick:()=>{m(C)}},f("bmi.submit"))))};var be="eM8ChWU",Ce="KAx1aqi",we="QcFfKPB",ke="brbyNAY",Se="W65hTnn";const xe=({src:e,title:t,backgroundSrc:l,className:n,reviewedSection:r,isSide:o})=>P.default.createElement("div",{className:`${be} ${n||""}`},P.default.createElement("div",{className:Ce,style:{backgroundImage:`url("${l}")`}},P.default.createElement("div",{className:we,"data-is-side":o},P.default.createElement("div",{className:ke,"data-is-side":o},P.default.createElement(a.Heading,{tag:"h4",color:"white"},t),r),P.default.createElement("div",{className:Se},P.default.createElement("img",{src:e||"",style:{objectFit:"contain"},alt:t,loading:"lazy"})))));var Te="zvE9IoJ",Ne="njDC-ia",Be="ESkUhe9",Le="wZLIQYa";const De=({backgroundDesktopSrc:e,backgroundMobileSrc:l,title:n,className:r,isSide:i,ovulationContent:s})=>{var d,c,u;const{t:m}=h.useTranslations(),g=T.formatUserProfileUrl(null==s?void 0:s.reviewed_by);return P.default.createElement("div",{className:`${Te} ${r}`,"data-is-side":i},P.default.createElement("div",{className:Ne,style:{backgroundImage:`url('${l||e}')`}},P.default.createElement("div",{className:Le},P.default.createElement(a.Heading,{tag:"h5",color:"white"},n),(null===(d=null==s?void 0:s.reviewed_by)||void 0===d?void 0:d.display_name)?P.default.createElement(t.Text,{size:"n1",color:"white",style:{marginTop:"0.3rem"}},P.default.createElement("span",{dangerouslySetInnerHTML:{__html:m("articlePage.articleReviewerBy",{name:`<a\n style="color: white"\n href="${g}"\n >\n ${s.reviewed_by.display_name}\n </a>`})}}),P.default.createElement("span",null,m("tools.heading.on")),P.default.createElement("span",null,null==s?void 0:s.reviewed_date)):null),P.default.createElement("div",{className:Be,"data-is-side":i},P.default.createElement("img",{src:(null==s?void 0:s.featured_image)||"",style:{width:"100%",objectFit:"contain",marginTop:"20px"},alt:n,loading:"lazy"}))),P.default.createElement(xe,{className:"desktop-only",src:(null==s?void 0:s.featured_image)||"",backgroundSrc:e||l||"",title:n,reviewedSection:(null===(c=null==s?void 0:s.reviewed_by)||void 0===c?void 0:c.display_name)&&""!==(null===(u=null==s?void 0:s.reviewed_by)||void 0===u?void 0:u.display_name)&&P.default.createElement(t.Text,{size:"n1",color:o.theme.colors.white,style:{marginTop:12}},P.default.createElement("span",{dangerouslySetInnerHTML:{__html:m("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${g}"\n >\n ${s.reviewed_by.display_name}\n </a>`,date:null==s?void 0:s.reviewed_date})}}),P.default.createElement("span",null)),isSide:i}))},_e=({siteType:t,info:l,onChange:n,errorMessage:r={}})=>{const{t:s}=h.useTranslations(),[d,c]=e.useState({weightBefore:!1,height:!1,weight:!1}),[u,m]=e.useState(0),g=e.useRef(null);e.useEffect((()=>{var e;m(null===(e=g.current)||void 0===e?void 0:e.clientHeight)}));const f=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},p=e=>{f(e,(e=>{c((e=>Object.assign(Object.assign({},e),{weightBefore:!0})));const t=Object.assign(Object.assign({},l),{weightBefore:e});n&&n(t)}))},v=e=>{f(e,(e=>{c((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});n&&n(t)}))},E=e=>{f(e,(e=>{c((e=>Object.assign(Object.assign({},e),{weight:!0})));const t=Object.assign(Object.assign({},l),{weight:e});n&&n(t)}))};return e.useEffect((()=>{n&&n(Object.assign({},l))}),[]),e.useEffect((()=>{c({weightBefore:!1,height:!1,weight:!1})}),[r]),"marryBaby"===t?P.default.createElement(P.default.Fragment,null,P.default.createElement("div",{className:"input-form-pwg input-section"},P.default.createElement(i.StyledTextField,{label:s("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==l?void 0:l.height,CustomInput:P.default.createElement(y.Input,{className:(null==d?void 0:d.height)?"":"error-input",name:"pwg-height",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.height,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==d?void 0:d.height)?"":null==r?void 0:r.height,showErrorMessage:!1,onChange:v})})),P.default.createElement("div",{className:"input-form-pwg input-section"},P.default.createElement(i.StyledTextField,{label:s("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==l?void 0:l.weightBefore,CustomInput:P.default.createElement(y.Input,{className:(null==d?void 0:d.weightBefore)?"":"error-input",name:"pwg-weightBefore",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.weightBefore,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==d?void 0:d.weightBefore)?"":null==r?void 0:r.height,showErrorMessage:!1,onChange:p})})),P.default.createElement("div",{className:"input-form-pwg input-section"},P.default.createElement(i.StyledTextField,{label:s("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==l?void 0:l.weight,CustomInput:P.default.createElement(y.Input,{className:(null==d?void 0:d.weight)?"":"error-input",name:"pwg-weight",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.weight,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==d?void 0:d.weight)?"":null==r?void 0:r.weight,showErrorMessage:!1,onChange:E})}))):P.default.createElement(P.default.Fragment,null,P.default.createElement("div",{className:"input-form-pwg"},P.default.createElement(a.PureInput,{placeholder:s("pwg.placeholder.height"),className:"input-section",label:P.default.createElement("span",{style:{color:o.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px"},className:"label-text"},s("pregnancyWeightGain.heightInput")," ",P.default.createElement("span",{style:{color:`${o.theme.colors.gray300}`}},s("bmi.heightInput.desc"))),errorMessage:d.height?"":null==r?void 0:r.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==l?void 0:l.height,onChange:v})),P.default.createElement("div",{className:"input-form-pwg"},P.default.createElement(a.PureInput,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:P.default.createElement("span",{style:{color:o.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px"},ref:g,className:"label-text"},s("pregnancyWeightGain.weightBeforeInput")," ",P.default.createElement("span",{style:{color:`${o.theme.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:d.weightBefore?"":null==r?void 0:r.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:p,value:null==l?void 0:l.weightBefore})),P.default.createElement("div",{className:"input-form-pwg"},P.default.createElement(a.PureInput,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:P.default.createElement("span",{style:{color:o.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px",minHeight:u},className:"label-text"},s("pregnancyWeightGain.weightInput")," ",P.default.createElement("span",{style:{color:`${o.theme.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:d.weight?"":null==r?void 0:r.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==l?void 0:l.weight,onChange:E})))};const Ie={"en-PH":H.default,"vi-VN":G.default,"zh-TW":R.default,"id-ID":$.default};function Me(t){const{value:l={from:null,to:null}}=t,[n,r]=e.useState(null),{isMobile:o}=a.useScreenSize(),[s,d]=e.useState((()=>l)),[c,u]=e.useState((()=>{var e;return v.startOfMonth(null!==(e=l.from)&&void 0!==e?e:new Date)})),m=e.useMemo((()=>v.addMonths(c,1)),[c]);const g=Object.assign(Object.assign({},t),{goToNextMonth:function(){u((e=>v.addMonths(e,1)))},goToPreviousMonth:function(){u((e=>v.subMonths(e,1)))},range:s,setRange:d,hoverDay:n,setHoverDay:r});return P.default.createElement(P.default.Fragment,null,P.default.createElement(Ae,Object.assign({},g,{date:c})),!o&&P.default.createElement(i.StyledCalendarMonthSeparator,null),!o&&P.default.createElement(Ae,Object.assign({},g,{date:m})))}function Ae({date:t,range:a,setRange:l,onChange:n,goToPreviousMonth:o,goToNextMonth:s,minDate:d,maxDate:c,close:u=(()=>{}),autoClose:m=!1,hoverDay:g,setHoverDay:f}){const{locale:p}=h.useTranslations(),y=e.useMemo((()=>{var e;return null!==(e=Ie[p])&&void 0!==e?e:Ie["en-PH"]}),[p]),E=e.useMemo((()=>v.format(t,"MMMM",{locale:y})),[t,y]),b=e.useMemo((()=>y?[1,2,3,4,5,6,0].map((e=>y.localize.day(e,{width:"narrow"}))):[]),[y]);function C(e,t){if(null===e)return P.default.createElement(i.StyledCalendarDayNumberWrapper,{key:`idx-${t}`,"data-empty":"true"});const n=e.getDate(),r=v.isToday(e),o=!!a.from&&v.isSameDay(a.from,e),s=!!a.to&&v.isSameDay(a.to,e),p=o||s;let h=!1;null!==g&&a.from&&v.isBefore(a.from,g)&&!a.to?h=v.isWithinInterval(e,{start:a.from,end:g}):a.from&&a.to&&(h=v.isWithinInterval(e,{start:a.from,end:a.to}));let y=!1;return d&&c?y=!v.isWithinInterval(e,{start:d,end:c}):d?y=v.isBefore(e,d):c&&(y=v.isAfter(e,c)),P.default.createElement(i.StyledCalendarDayNumberWrapper,{key:n,"data-is-today":r,"data-is-past":!r&&v.isPast(e),"data-is-selected":p,"data-is-disabled":y,"data-in-range":h,"data-is-from":o,"data-is-to":s,onMouseEnter:()=>{f(e)},onMouseLeave:()=>f(null),onClick:()=>{y||l((t=>(m&&a.from&&!a.to&&u(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?v.isBefore(e,t.from)?Object.assign(Object.assign({},t),{from:e}):Object.assign(Object.assign({},t),{to:e}):t:Object.assign(Object.assign({},t),{from:e})}(e,t))))}},P.default.createElement(i.StyledCalendarDayNumber,{onClick:()=>{}},P.default.createElement("p",null,n)))}return e.useEffect((()=>{a.from&&a.to&&n(a)}),[a]),P.default.createElement(i.StyledCalendarWrapper,{className:"calendar-wrapper"},P.default.createElement(i.StyledCalendarHead,null,P.default.createElement(I.Button,{onClick:o,size:"md",color:"ghost",icon:P.default.createElement("img",{src:r.CommonGAssets.getAssetPath("calendarArrowLeft.svg"),loading:"lazy"})}),P.default.createElement("div",{className:"calendar-month"},E,P.default.createElement("strong",null,v.format(t,"yyyy"))),P.default.createElement(I.Button,{onClick:s,size:"md",color:"ghost",icon:P.default.createElement("img",{src:r.CommonGAssets.getAssetPath("calendarArrowRight.svg"),loading:"lazy"})})),P.default.createElement(i.StyledCalendarCellsWrapper,null,P.default.createElement("div",null,P.default.createElement(i.StyledCalendarDaysOfWeek,null,b.map(((e,t)=>P.default.createElement(i.StyledCalendarDayLabel,{key:`${e}-${t}`},e))))),P.default.createElement("div",null,function(){const e=t.getFullYear(),l=t.getMonth(),n=v.getDaysInMonth(t),r=[];for(let t=1;t<=n;t++)r.push(new Date(e,l,t));const o=r[0]?r[0].getDay():0;if(1!==o){const e=0===o?6:o-1;for(let t=0;t<e;t++)r.unshift(null)}return P.default.createElement(i.StyledCalendarMonthWrapper,{key:`month-${l}`,"data-month-index":l,"data-has-range":Boolean(a.from&&a.to)},P.default.createElement(i.StyledCalendarDaysWrapper,null,P.default.createElement(i.StyledCalendarDateGrid,null,r.map(C))))}())))}var ze="WUqzfRb",Pe="MnVGtSY",Fe="NclbhXQ";const Oe=({LinkComponent:e,page:t,isLast:a,onChangePage:l})=>{const{label:n,value:r,isDropdown:o,dropdownItems:s,dataEventCategory:d,dataEventAction:c,dataEventLabel:u}=t;return o?P.default.createElement(i.Dropdown,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:l,className:"collapsed-breadcrumb"}):P.default.createElement("div",{className:Fe,title:"string"!=typeof n?r:n,"data-last":a},e&&P.default.createElement(e,{"data-event-category":d,"data-event-action":c,"data-event-label":u,href:r||"#"},n))},je=()=>P.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),P.default.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})),He=()=>P.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"copy"},P.default.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"}));exports.Alert=({style:e,onClose:a,text:l,type:n,contentIcon:r,closeIcon:o,className:i,description:s})=>P.default.createElement("div",{className:`${W} ${i||""}`,style:e,"data-alert-type":n},P.default.createElement("div",{className:U},P.default.createElement("div",{className:"icon-title"},r,P.default.createElement(t.Text,{type:"bold",size:"label1"},l)),P.default.createElement(t.Text,{type:"regular",size:"p3"},s)),P.default.createElement("div",{className:V,onClick:a},o)),exports.ArticleCard=({articleLink:e,authorLink:l,authorName:n,avatarImg:o,banner:s,categoryLink:d,categoryName:c,className:u,dataEventActionForBanner:m,dataEventActionForBookmark:g,dataEventActionForCategory:f,dataEventActionForTitle:p,dataEventCategoryForBanner:h,dataEventCategoryForBookmark:v,dataEventCategoryForCategory:y,dataEventCategoryForTitle:E,dataEventLabelForBanner:b,dataEventLabelForBookmark:C,dataEventLabelForCategory:w,dataEventLabelForTitle:k,direction:S="horizontal",hasAffiliate:x,isBookmark:T=!1,isBookmarkDisplayed:N=!0,isMobile:B=!0,onBookmark:L,onClickCategoryName:D,section:_="normal",size:I="md",specialty:M,style:A,styleBanner:z,styleLabel:F,styleTitle:O,text:j,title:H,type:$="author",uploadTime:G,articleLinkTarget:R,isPremium:W})=>{const U=e=>{e.stopPropagation(),null==L||L()},V="lg"===I&&"expert"===$?"h4":"lg"===I&&"home"===_?B?"h4":"h3":"lg"===I?"h4":"h5",q="lg"===I?"p3":"p4",Z=B||"home"!==_||"lg"!==I||"author"!==$?"c2":"c1";return P.default.createElement("article",{className:`${ee} ${u||""}`,"data-size":I,style:A,"data-direction":S,"data-is-expert":"expert"===$||void 0},P.default.createElement("div",{className:"banner",style:z},P.default.createElement("a",{className:J,"data-event-category":h,"data-event-action":m,"data-event-label":b,href:e||"#",target:R},s),W&&P.default.createElement("img",{loading:"lazy",className:"premium",src:r.CommonGAssets.getAssetPath("premium-crown.svg")}),x&&P.default.createElement(i.AffiliateIcon,null)),P.default.createElement("div",{className:"content"},P.default.createElement("div",{className:"inner-content"},P.default.createElement(t.Text,{style:F,className:"label",size:Z,type:"caption"},P.default.createElement("a",{className:J,"data-event-category":y,"data-event-action":f,"data-event-label":w,href:d||"#",onClick:D},c),N&&P.default.createElement("a",{className:"bookmark",onClick:U},T?P.default.createElement(i.BookmarkedIcon,{dataEventCategoryForBookmark:v,dataEventActionForBookmark:g,dataEventLabelForBookmark:C}):P.default.createElement(i.UnbookmarkedIcon,{dataEventCategoryForBookmark:v,dataEventActionForBookmark:g,dataEventLabelForBookmark:C}))),P.default.createElement(a.Heading,{tag:V,style:O,className:"title",as:"lg"===I?"h2":"h3"},P.default.createElement("a",{className:J,"data-event-category":E,"data-event-action":p,"data-event-label":k,href:e||"#",target:R},H)),j&&P.default.createElement("a",{href:e||"#",target:R},P.default.createElement(t.Text,{size:q,className:"text"},j))),P.default.createElement("div",{className:"footer"},"author"===$?P.default.createElement(ae,{size:I,avatarImg:o,authorName:n,authorLink:l,uploadTime:G,handleClick:U,isBookmarked:T,dataEventCategoryForBookmark:v,dataEventActionForBookmark:g,dataEventLabelForBookmark:C}):P.default.createElement(le,{size:I,isMobile:B,avatarImg:o,specialty:M,name:n,link:l,handleClick:U,isBookmarked:T,dataEventCategoryForBookmark:v,dataEventActionForBookmark:g,dataEventLabelForBookmark:C}))))},exports.ArticleCard$1=e=>{var{variant:t="vertical"}=e,a=s.__rest(e,["variant"]);return"horizontal"===t?P.default.createElement(ne,Object.assign({},a)):P.default.createElement(ie,Object.assign({},a))},exports.BMICardEmbed=({isMobile:e,onSubmit:a,bmiContent:l,isSide:n,bmiGenerated:s,bmiUnit:d,bmiLink:c,locale:u})=>{var m,g,f;const{t:p}=h.useTranslations();return P.default.createElement(i.StyledContainer,{"data-is-side":n},P.default.createElement(i.ToolsBannerCard,{isSide:n,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"},loading:"lazy"}),heading:p("bmi.heading"),medicalReview:(null===(m=null==l?void 0:l.reviewBy)||void 0===m?void 0:m.reviewer)?P.default.createElement(t.Text,{size:"n1",color:o.theme.colors.white},P.default.createElement("span",{dangerouslySetInnerHTML:{__html:p("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${(null===(g=null==l?void 0:l.reviewBy)||void 0===g?void 0:g.link)||"#"}"\n >\n ${l.reviewBy.reviewer}\n </a>`,date:null===(f=null==l?void 0:l.reviewBy)||void 0===f?void 0:f.date})}}),P.default.createElement("span",null)):void 0,isMobile:e}),P.default.createElement(E.Container,null,P.default.createElement(i.StyledContent,{as:"div","data-is-side":n},c&&P.default.createElement(he,{onSubmit:a,bmiGenerated:s,locale:u,bmiUnit:d,isSide:n}))))},exports.BMRCardEmbed=({isSide:e,locale:a,bmrContent:l,isMobile:n,info:s,inputErrorMessage:d,onFormChange:c,onSubmit:u})=>{var m,g,f;const{t:p}=h.useTranslations();return P.default.createElement(i.StyledContainer,{"data-is-side":e},P.default.createElement(i.ToolsBannerCard,{isSide:e,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"},loading:"lazy"}),heading:p("bmr.heading"),medicalReview:(null===(m=null==l?void 0:l.reviewBy)||void 0===m?void 0:m.reviewer)?P.default.createElement(t.Text,{size:"n1",color:o.theme.colors.white},P.default.createElement("span",{dangerouslySetInnerHTML:{__html:p("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${(null===(g=null==l?void 0:l.reviewBy)||void 0===g?void 0:g.link)||"#"}"\n >\n ${l.reviewBy.reviewer}\n </a>`,date:null===(f=null==l?void 0:l.reviewBy)||void 0===f?void 0:f.date})}}),P.default.createElement("span",null)):void 0,isMobile:n}),P.default.createElement(E.Container,null,P.default.createElement(i.StyledContent,{onSubmit:e=>e.preventDefault(),"data-is-side":e},P.default.createElement(i.StyledInputForm,null,P.default.createElement(Ee,{info:s,locale:a,errorMessage:d,onChange:c,onClick:u,isSide:e})))))},exports.BabyGrowthCardEmbed=({isMobile:e,className:a,onSubmit:l,onError:n,schema:s,babyGrowthContent:d,siteType:c})=>{var u;const{t:m}=h.useTranslations();return P.default.createElement(i.StyledContainer,{"babyGrowthContent-is-mobile":e,"data-site":c},P.default.createElement(i.ToolsBannerCard,{siteType:c,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===c&&o.theme.mbColors.mint,isEmbeded:!0,icon:P.default.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==d?void 0:d.featuredImage)||"",loading:"lazy"}),heading:(null==d?void 0:d.title)||"",medicalReview:(null===(u=null==d?void 0:d.reviewBy)||void 0===u?void 0:u.reviewer)?P.default.createElement(t.Text,{size:"label2",color:o.theme.colors.white,className:"embedded-review",dangerouslySetInnerHTML:{__html:m("toolPage.toolReviewer",{expert_name:`<a style="color: white" href="${d.reviewBy.link||"#"}">${d.reviewBy.reviewer.trim()}</a>`,date:d.reviewBy.date})}}):void 0,isMobile:e}),P.default.createElement(i.StyledBabyGrowthWrapper,{"data-theme":c},P.default.createElement(i.StyleForm,{siteType:c,schema:s,className:a,onSubmit:l,onError:n})))},exports.BabyPoopEmbed=({babyPoopPage:e,onClickFindOut:t,currentUrl:l,isSide:n,direction:s="auto",sponsorLogo:c})=>{const{t:u}=h.useTranslations(),m="mb"===d.useMantineTheme().other.template,{classes:g}=i.useStyles$2({isMarryBaby:m,isSide:n,direction:s},{name:"BabyPoopEmbed"}),{reviewedBy:f,reviewedDate:p}=e||{};return P.default.createElement("div",{className:g.root},P.default.createElement("div",{className:g.inner},P.default.createElement(a.Heading,{tag:"h3",as:"h2",color:!m&&"#284A75"},e.title),P.default.createElement("div",{className:g.content,"data-is-side":n},P.default.createElement(a.Text,{size:"p3",className:"description"},e.description),!!f&&P.default.createElement("div",{className:g.reviewText},P.default.createElement("img",{src:r.CommonGAssets.getAssetPath("reviewerCheck.svg"),alt:"check",className:g.reviewTextIcon,loading:"lazy"}),P.default.createElement(a.Text,{size:"p4",color:o.theme.colors.gray600},u("categoryPage.info.reviewed")," ",P.default.createElement("a",{href:f.profile_url},f.display_name)," ",u("categoryPage.onDate",{date:p||""}))),P.default.createElement("div",{className:g.action},P.default.createElement(a.Button,{className:g.btn,size:m?"lg":"md",variant:m?"secondary":"primary",onClick:t,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:l,style:{visibility:Boolean(t)?"visible":"hidden"}},u("babyPoop.findOut"))))),P.default.createElement("div",{className:g.thumbnail},P.default.createElement("img",{src:m?r.CommonGAssets.getAssetPath("baby-poop.svg"):null==e?void 0:e.featuredImage,alt:e.title,loading:"lazy"})),c&&P.default.createElement("img",{loading:"lazy",src:c,alt:"sponsor",className:g.sponsorLogo}))},exports.Badge=({amount:e,type:t,size:l="medium",color:n="primary",icon:r,className:o})=>P.default.createElement(a.StyledBadge,{"data-notification-type":t,"data-notification-size":l,"data-notification-color":n,"data-has-icon":!!r||void 0,notificationType:t,notificationSize:l,notificationColor:n,hasIcon:!!r,className:o},P.default.createElement("div",null,e&&P.default.createElement("span",null,e)," ",r&&P.default.createElement("div",null,r))),exports.BorderHeading=({style:e,children:t,className:l,size:n="lg",type:r="bold",upperCase:o,as:i="h4",color:s})=>P.default.createElement(a.StyledBorderHeading,{style:Object.assign({color:s},e),className:l,"data-size":n,"data-type":r,"data-uppercase":o,as:i},t),exports.Breadcrumbs=({className:t,pages:a,size:l,LinkComponent:n="a",onChangePage:r,separator:o})=>{const i=e.useMemo((()=>a.map(((e,t)=>a.length>4?t>1&&t<a.length-2?null:1===t?Object.assign(Object.assign({},e),{isDropdown:1===t,dropdownItems:a.slice(1,a.length-2)}):e:e)).filter(Boolean)),[a]);return P.default.createElement("div",{"data-size":l,className:`${ze} ${t||""}`},i.map(((t,a)=>{const s=a+1===i.length;return P.default.createElement(e.Fragment,{key:a},P.default.createElement(Oe,{LinkComponent:n,page:t,isLast:s,onChangePage:r}),!s&&(t.separator||o||P.default.createElement("div",{className:Pe,"data-size":l})))})))},exports.CategoryCard=e=>{var{category:t,imgBanner:l,label:n,className:r,style:o,href:d="",dataEventCategory:c,dataEventAction:u,dataEventLabel:m}=e,g=s.__rest(e,["category","imgBanner","label","className","style","href","dataEventCategory","dataEventAction","dataEventLabel"]);const p=(null==t?void 0:t.customizedUrl)||(null==t?void 0:t.permalink)||d||"";return P.default.createElement(i.StyledCategoryCard,Object.assign({"data-event-category":c,"data-event-action":u,"data-event-label":m,className:r,style:o,href:p},(null==t?void 0:t.customizedUrl)&&!f.isInternalLink(t.customizedUrl)&&{target:"_blank"},{onClick:e=>{""===p&&e.preventDefault()}},g),P.default.createElement("div",{className:"banner"},l),P.default.createElement("div",{className:"content"},P.default.createElement(a.Text,{className:"category_name",size:"sm",weight:"bold"},(null==t?void 0:t.displayName)||n||"")))},exports.Checkbox=Z,exports.CheckboxGroup=({name:e,values:t=[],onChanges:a,options:l=[],className:n,type:r="vertical",isDisabled:o,isRectangle:s})=>{const d=(e,l)=>{const n=t.slice();if(l)n.push(e);else{const t=n.findIndex((t=>t===e));n.splice(t,1)}a&&a(n)};return P.default.createElement(i.StyledCheckboxGroup,{className:n,"data-type":r,"data-is-rectangle":s||void 0},l.map(((a,l)=>P.default.createElement(Z,{label:a.label,name:e,key:`${l}-${a.value}`,checked:t.includes(a.value),value:a.value,isDisabled:o||a.disabled,onChange:!o&&d,isRectangle:s}))))},exports.CookieAcceptConfirm=({className:e,policiesUrl:t,onAcceptClick:a,translations:l={acceptButton:"Accept",policiesButton:"Our Policies"},title:n="",description:r="",theme:o="helloSites",isOpen:s=!0,useDefaultPosition:d=!0,trackingAttributes:c})=>P.default.createElement(i.StyledAcceptCardContainer,{className:e,"data-theme":o,"data-is-open":s,"data-default-position":d},P.default.createElement(i.StyledTitleSection,{"data-has-content":!!n},n),P.default.createElement(i.StyledDescription,{dangerouslySetInnerHTML:{__html:r}}),P.default.createElement(i.StyledButtonGroup,null,P.default.createElement(i.StyledAcceptButton,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:a,"data-event-category":null==c?void 0:c.dataEventCategory,"data-event-action":null==c?void 0:c.dataEventAction,"data-event-label":null==c?void 0:c.dataEventLabel},l.acceptButton),P.default.createElement(i.StyledPoliciesButton,{href:t},l.policiesButton))),exports.DateRangePicker=function({inputSize:t="md",name:l="date-range-picker",value:n,minDate:o,maxDate:s,onChange:d,className:c,autoClose:u=!1}){n||(n={from:null,to:null});const[m,g]=e.useState(!1);function f(){g(!1)}const p=e.useRef(null);function h(e){d&&d(e)}function y(e){return v.format(e,"dd/MM/yyyy")}N.useOutsideClick(p,(()=>{f()}));const E=e.useMemo((()=>n.from&&n.to?v.isSameDay(n.from,n.to)?y(n.from):`${y(n.from)} - ${y(n.to)}`:""),[n.from,n.to]);return P.default.createElement(i.StyledWrapper,{className:[c,m&&"focused"].filter(Boolean).join(" "),ref:p},P.default.createElement("label",{htmlFor:l},P.default.createElement(a.PureInput,{size:t,value:E,name:l,actionIcon:P.default.createElement("img",{src:r.CommonGAssets.getAssetPath("calendar.svg"),loading:"lazy"}),onFocus:()=>g(!0)})),m?P.default.createElement(i.StyledCalendarWrapper$1,{onMouseDown:e=>{e.stopPropagation()}},P.default.createElement(Me,{value:n,onChange:h,minDate:o,maxDate:s,close:f,autoClose:u})):null)},exports.DueDateCardEmbed=({isMobile:e,locale:a,onSubmitDueDate:l,dueDatePageInfo:n,expertUrl:s,isSide:d,siteType:c})=>{var u;const{t:m}=h.useTranslations();return P.default.createElement(i.StyledContainer,{"data-is-side":d,"data-site":c},P.default.createElement(i.ToolsBannerCard,{isSide:d,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),siteType:c,bannerColor:"marryBaby"===c&&o.theme.mbColors.mint,isEmbeded:!0,icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==n?void 0:n.featured_image,style:"marryBaby"!==c?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null,loading:"lazy"}),heading:m("healthTools.dueDateCalculator"),medicalReview:(null===(u=null==n?void 0:n.reviewed_by)||void 0===u?void 0:u.display_name)?P.default.createElement(t.Text,{size:"label2",color:o.theme.colors.white,dangerouslySetInnerHTML:{__html:m("toolPage.toolReviewer",{expert_name:`<a style="text-decoration: underline" href="${s}">${null==n?void 0:n.reviewed_by.display_name}</a>`,date:null==n?void 0:n.reviewed_date})}}):void 0,isMobile:e}),P.default.createElement(i.StyledContent,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":d},P.default.createElement(fe,{siteType:c,locale:a,onSubmitDueDate:l,isSide:d})))},exports.FileDropdown=({className:t,value:l,options:n,onUploadSelected:r,id:o,placeholderIcon:i,placeholder:s,style:d})=>{const[c,u]=e.useState(!1),m=()=>u(!c),g=e.useRef(n.map((e=>"upload"===e.type&&P.default.createElement("input",{id:"uploader-dropdown-input-"+o+"-"+e.value,key:"uploader-dropdown-input-"+o+"-"+e.value,accept:e.fileAcceptedType,multiple:e.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),r(e.target.files)}})))),f=P.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.17 14.83"},P.default.createElement("defs",null,P.default.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},P.default.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"})),P.default.createElement("style",null,".prefix__cls-3{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),P.default.createElement("title",null,"File"),P.default.createElement("g",{clipPath:"url(#prefix__clip-path)"},P.default.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),P.default.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),p=P.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},P.default.createElement("defs",null,P.default.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),P.default.createElement("title",null,"download"),P.default.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),h=P.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},P.default.createElement("defs",null,P.default.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),P.default.createElement("title",null,"upload"),P.default.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"}));return P.default.createElement(a.StyledDropdown,{className:t,"data-dropdown-open":!!c,id:o,"data-has-icons":!0,style:d,onBlur:()=>u(!1),tabIndex:0},P.default.createElement(a.StyledDropdownName,{onClick:m},i||f," ",P.default.createElement("span",null,l&&l.value?l.label:s)),c&&P.default.createElement(a.StyledDropdownList,{onClick:m,"data-has-icons":!0},n.map((e=>P.default.createElement(a.StyledDropdownOption,{key:`${o}-${e.value}`,"data-selected":l&&l.value===e.value||void 0,onClick:()=>{return"upload"===e.type?(a="#uploader-dropdown-input-"+o+"-"+e.value,void(null===(l=document.querySelector(a))||void 0===l||l.click())):void((t=e.url)&&window.open(t,"_blank"));var t,a,l}},P.default.createElement(a.StyledIcon,null,e.icon||"download"===e.type?p:h),e.label)))),P.default.createElement(P.default.Fragment,null,g.current))},exports.FixedBottomAdBlock=({className:t,adUnitPath:a,divId:l,isMobile:n,contentId:r,customTargetings:o,locale:s,isMarryBaby:d})=>{const[c,u]=e.useState(!0),[m,g]=e.useState(!1),[f,p]=e.useState(!0),h=e.useRef(null),v=e.useRef(A.v4()),y=e.useRef(null),E=e.useRef(),b=e.useRef();return e.useEffect((()=>{const e=()=>{b.current&&clearTimeout(b.current),b.current=setTimeout((()=>{var t;document.getElementById("subot--container")?u(!0):(u(!1),(null===(t=h.current)||void 0===t?void 0:t.clientHeight)?p(!1):p(!0)),e()}),4e3)};return e(),()=>{E.current&&clearTimeout(E.current),b.current&&clearTimeout(b.current)}}),[]),c||m?null:P.default.createElement(i.StyledFixedAdBlock,{key:n?"mobile":"desktop",ref:y,className:t,"data-visible":!f},a&&P.default.createElement(i.AdBlock,{wrapperProps:{m:0},ref:h,adUnitPath:a,size:n?[[320,50],[320,100]]:[728,90],divId:(l||"div-gpt-ad-sticky")+(n?"-mobile":"")+r+String(v.current),pos:["Sticky"],contentId:r,hideIfHasSubot:n,customTargetings:o,adDefaultSize:n?[320,50]:[728,90],showCloseBtn:!0,onCloseAd:()=>g(!0),refreshInterval:60,locale:s,isMarryBaby:d}))},exports.FloatButtonGroup=({items:t,className:a,style:l,backgroundPanelStyle:n,isOpen:r,onOpen:o,onClose:s,disableBackdropClick:d,siteType:c="hb",animationType:u="zoom",zIndex:m=300})=>{const[g,f]=e.useState(!!r);e.useEffect((()=>{f(!!r)}),[r]);const p=()=>{f(!1),s&&s()};return P.default.createElement(i.StyledFloatButtonGroup,{style:l,className:a,"data-floatmenu-open":g,"data-site-type":c,"data-animation-type":u},P.default.createElement(i.StyledFloatButtonGroupBackgroundPanel,{className:"float-button-group__panel",style:Object.assign({zIndex:m},n),onClick:d?void 0:p}),P.default.createElement(i.StyledFloatButtonGroupContent,{className:"float-button-group___content",style:{zIndex:m}},P.default.createElement(i.StyledFloatButtonGroupItemsWrapper,null,t.map(((e,a)=>P.default.createElement(i.StyledFloatButtonGroupButton,{className:`float-item-button-${a}`,style:Object.assign(Object.assign({},"zoom"===u&&{bottom:64*(t.length-1-a),transitionDelay:i.TRANSITION_TIMING/t.length*(g?t.length-1-a:a)+"ms"}),"slide"===u&&{bottom:64*(t.length-1-a),transitionDelay:i.TRANSITION_TIMING/t.length*(g?a:t.length-1-a)+"ms"}),key:a,onClick:()=>{e.onClick(),e.keepMenuOnClick||f(!1)}},P.default.createElement(i.StyledFloatButtonGroupButtonLabel,{style:Object.assign({},"zoom"===u&&{transitionDelay:i.TRANSITION_TIMING/t.length*(g?t.length-1-a:a)+"ms"})},e.label),P.default.createElement(i.StyledFloatButtonGroupButtonIcon,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===u||"slide"===u)&&{transitionDelay:i.TRANSITION_TIMING/t.length*(g?t.length-1-a:a)+"ms"})},e.icon))))),P.default.createElement(i.StyledFloatButtonGroupToggleIcon,{onClick:g?p:()=>{f(!0),o&&o()}})))},exports.Grid=({className:e,columns:t,columnsDesktop:l,gridTemplateColumns:n,gridTemplateColumnsDesktop:r,gap:o,children:i,justifyChildren:s,style:d,alignItems:c})=>P.default.createElement(a.StyledGrid,{className:e,style:d,theme:{columns:t,columnsDesktop:l,gap:o,justifyChildren:s,gridTemplateColumns:n,gridTemplateColumnsDesktop:r,alignItems:c}},i),exports.IconText=({size:e,iconPosition:t,className:a,children:l,icon:n})=>P.default.createElement(i.StyledIconText,{className:a,"data-size":e,"data-icon-position":t},"left"===t&&n,l,"right"===t&&n),exports.OvulationCardEmbed=({onSubmitOvulation:e,locale:a,ovulationPageInfo:l,ovulationContent:n,expertUrl:s,isSide:d=!1,siteType:c,isMobile:u})=>{var m;const{t:g}=h.useTranslations(),f=T.formatOvulationInfo(l||null);return P.default.createElement(i.StyledContainer,{"data-is-side":d,"data-site":c},"marryBaby"!==c?P.default.createElement(De,{backgroundDesktopSrc:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),backgroundMobileSrc:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),title:g("healthTools.ovulationCalculator"),reviewedBy:f.reviewedBy,reviewedDate:f.reviewedDate,ovulationContent:n,isSide:d}):P.default.createElement(i.ToolsBannerCard,{isSide:d,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),siteType:c,bannerColor:"marryBaby"===c&&o.theme.mbColors.mint,isEmbeded:!0,icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:"marryBaby"!==c?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null,loading:"lazy"}),heading:g("healthTools.ovulationCalculator"),medicalReview:(null===(m=null==l?void 0:l.reviewed_by)||void 0===m?void 0:m.display_name)?P.default.createElement(t.Text,{size:"label2",color:o.theme.colors.white,dangerouslySetInnerHTML:{__html:g("toolPage.toolReviewer",{expert_name:`<a style="text-decoration: underline" href="${s}">${l.reviewed_by.display_name}</a>`,date:l.reviewed_date})}}):void 0,isMobile:u}),P.default.createElement(i.StyledContent,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":d},P.default.createElement(i.OvulationCalculator,{siteType:c,locale:a,onSubmitOvulation:e,isSide:d})))},exports.PWGCardEmbed=({locale:l,onClick:n,inputErrorMessage:s,pwgContent:d,onFormChange:c,info:m,isMobile:g,isSide:f=!1,siteType:p})=>{var v;const{t:y}=h.useTranslations(),[b,C]=e.useState("notwins"),[w,k]=e.useState({label:"1",value:1}),S=e.useMemo((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:N}=x.useHealthToolsCache(l),B=e.useMemo((()=>N(a.HEALTH_TOOL_TYPE.PWG)),[N]),L=(null===(v=null==d?void 0:d.reviewedBy)||void 0===v?void 0:v.display_name)?P.default.createElement(t.Text,{size:"n1",color:o.theme.colors.white,dangerouslySetInnerHTML:{__html:y("toolPage.toolReviewer",{expert_name:`<a style="text-decoration: underline" href="${T.formatUserProfileUrl(d.reviewedBy)}">${d.reviewedBy.display_name}</a>`,date:d.reviewedDate})}}):void 0;return P.default.createElement(i.StyledContainer,{"data-is-side":f,"data-site":p},P.default.createElement(i.ToolsBannerCard,{siteType:p,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),bannerColor:"marryBaby"===p&&o.theme.mbColors.mint,isEmbeded:!0,icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==d?void 0:d.featuredImage,style:"marryBaby"!==p?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null,loading:"lazy"}),heading:y("pregnancyWeightGain.heading"),medicalReview:L,isMobile:g,isSide:f}),P.default.createElement(E.Container,null,P.default.createElement(i.StyledContent,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":f},"marryBaby"!==p&&P.default.createElement(i.StyledTwins,{className:"hide-asking-mobile","data-is-side":f},P.default.createElement(E.Label,{size:"label2",style:{display:"block",fontWeight:"bold",color:o.theme.colors.gray600,fontSize:"12px"},className:"label",htmlFor:"gender-selector"},y("pregnancyWeightGain.havingTwins")),P.default.createElement(i.StyledRadioGroup,{options:[{value:"twins",label:y("switchBtn.yes")},{value:"notwins",label:y("switchBtn.no")}],value:b,onChange:e=>C(e),className:"gender-selector",id:"twins-check",type:"circle",direction:"horizontal",size:"small",group:"group1"})),P.default.createElement(i.StyledInputWrapper,null,P.default.createElement(i.StyledFormInput,{className:"input-section input-form-pwg","data-is-side":f},"marryBaby"===p?P.default.createElement(i.StyledDropDown,{groupedWithLabel:y("pregnancyWeightGain.weekInput"),options:S,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:w,onChange:e=>k({label:e.label,value:e.value})}):P.default.createElement(P.default.Fragment,null,P.default.createElement(E.Label,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:o.theme.colors.gray600,fontWeight:"bold",fontSize:"12px"},htmlFor:"gender-selector"},y("pregnancyWeightGain.weekInput")),P.default.createElement(i.Dropdown,{options:S,placeholder:String(w.label),id:"weight-gain-dropdown",size:"md",value:w,onChange:e=>k({label:e.label,value:e.value})}))),P.default.createElement(_e,{siteType:p,info:m,errorMessage:s,onChange:c})),"marryBaby"!==p&&P.default.createElement(i.StyledTwins,{className:"hide-asking-desk","data-is-side":f},P.default.createElement(E.Label,{size:"label2",style:{display:"block",fontWeight:"bold",color:o.theme.colors.gray600,fontSize:"12px"},className:"label",htmlFor:"gender-selector"},y("pregnancyWeightGain.havingTwins")),P.default.createElement(i.StyledRadioGroup,{options:[{value:"twins",label:y("switchBtn.yes")},{value:"notwins",label:y("switchBtn.no")}],value:b,onChange:e=>C(e),className:"gender-selector",id:"twins-check-mobile",type:"circle",direction:"horizontal",size:"small",group:"group1"})),"marryBaby"===p&&P.default.createElement(Z,{name:"twins",label:y("pregnancyWeightGain.havingTwins"),checked:"twins"===b,siteType:"marryBaby",onChange:()=>{C("twins"===b?"notwins":"twins")},value:"twins"}),P.default.createElement(i.StyledSubmitButton,{"data-is-side":f,"data-site":p},P.default.createElement(a.Button,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${u.domainLocales["marryBaby"===p?"vi-VN_MB":l]}/${B}`,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===p?"secondary":"primary",onClick:()=>n(b,w.value),role:"button"},y("dueDatePage.lastPeriod.calculate"))))))},exports.Pagination=({className:t,pagesAmount:n,currentPage:r,onChange:o,onClick:i,style:s,href:d,queryPageName:c="page"})=>{const u=[...Array(n)].map(((e,t)=>t+1)),[m,g]=e.useState(r),f=e.useMemo((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),p=n-1,h=e=>{e<=n&&e>0&&(g(e),o(e))},v=e=>{i&&i(e)};return e.useEffect((()=>{g(r)}),[r]),P.default.createElement(a.StyledPagination,{className:t,style:s},P.default.createElement(a.StyledPageBlock,{className:"prev-page",onClick:()=>h(m-1),"data-last-page":1===m||void 0},f?P.default.createElement("a",{href:l.formatUrlWithPageParam(f,m,c),onClick:v},P.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):P.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),u.length>8?P.default.createElement(q,{pagesAmount:n,activePage:m,handlePageChange:h,handleClick:v,href:f,queryPageName:c}):u.map((e=>P.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===m||void 0,onClick:()=>h(e)},f?P.default.createElement("a",{href:l.formatUrlWithPageParam(f,e,c),onClick:v},e):e))),P.default.createElement(a.StyledPageBlock,{className:"next-page",onClick:()=>h(m+1),"data-last-page":m===p+1||void 0},f?P.default.createElement("a",{href:l.formatUrlWithPageParam(f,m,c),onClick:v},P.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):P.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},exports.ProgressBar=({type:t,numberOfStep:a,activeStep:l,labelPrefix:n,detailSteps:r,className:o,onChange:d})=>{const[c,u]=e.useState(0),m=e=>{var{trackClassName:t}=e,a=s.__rest(e,["trackClassName"]);return P.default.createElement(i.StyledTrackContainer,Object.assign({},a,{className:t}),P.default.createElement(i.StyledTrack,null))},g=P.default.createElement(i.StyledSlider,{className:o+" progress-bar"},P.default.createElement(m,null),P.default.createElement((({trackLength:e,activeStep:t,labelPrefix:l="Step",onChange:n})=>P.default.createElement(P.default.Fragment,null,Array.from({length:a},((e,t)=>t)).map(((r,o)=>P.default.createElement(i.StyledStep,{"data-is-active":o===t,"data-label":o,style:{left:o*e/(a-1)},onClick:()=>{n&&n(o)},key:o},o+1,P.default.createElement(i.StyledStepLabel,{"data-step-passed":o<=t},l+" "+(o+1))))))),{trackLength:c,activeStep:l,labelPrefix:n,onChange:d})),f=P.default.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5.5 9.5"},P.default.createElement("title",null,"chevron-right"),P.default.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),p=P.default.createElement(i.StyledBreadcrumbContainer,null,r&&Array.from({length:r.length},((e,t)=>t)).map(((e,t)=>{var a;return P.default.createElement(i.StyledBreadcrumbWrapper,{key:t,"data-selected":t===l,onClick:()=>{d&&d(t)}},null===(a=r[t])||void 0===a?void 0:a.text," ",t<r.length-1&&f)}))),h=P.default.createElement(i.StyledSlider,{className:o+" progress-bar"},P.default.createElement((({detailSteps:e,activeStep:t,onChange:a})=>P.default.createElement(P.default.Fragment,null,Array.from({length:e.length},((e,t)=>t)).map(((l,n)=>P.default.createElement(i.StyledDetailStep,{key:n,style:{left:100/e.length*n+"%",width:100/e.length+"%"},onClick:()=>{a&&a(n)}},e[n].icon?P.default.createElement(i.StyledDetailStepIndicatorExternal,{onClick:()=>{a&&a(n)}},e[n].icon):P.default.createElement(i.StyledDetailStepIndicator,{"data-is-active":n===t,"data-label":l,onClick:()=>{a&&a(n)},key:n},n+1),P.default.createElement(i.StyledDetailStepLabel,{"data-step-passed":n<t+1},e[n].text,P.default.createElement(i.StyledDetailStepDescription,null,e[n].description)),n<e.length-1&&P.default.createElement(m,{"data-step-passed":n<t,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:l,detailSteps:r,onChange:d})),v=e.useCallback(j.default((()=>{const e=document.querySelector(".progress-bar");e&&u(e.offsetWidth)}),1e3),[]);return e.useEffect((()=>{const e=document.querySelector(".progress-bar");return u(null==e?void 0:e.offsetWidth),window.addEventListener("resize",v,{passive:!0}),()=>{window.removeEventListener("resize",v)}}),[]),"step-track"===t&&g||"breadcrumb"===t&&p||"detail-track"===t&&h},exports.RateStars=({gap:t=2,size:l=24,star:n,totalStars:r=5,onSelect:o,hideEmptyStars:i,style:s,className:d})=>{const c=Math.floor(n),u=n-c>=.5?1:0,[m,g]=e.useState(null),f=m||c,p=m?0:u;return P.default.createElement(a.StyledRateStars,{"data-selectable":!!o,style:Object.assign({"--gap":t,"--star-size":l},s),className:d},Array.from({length:i?c+u:r}).map(((e,t)=>{const a=()=>!!o&&g(t+1),l=()=>!!o&&g(null);return t+1<=f?P.default.createElement(Q,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l}):t+1===f+p?P.default.createElement(K,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l}):P.default.createElement(Y,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l})})))},exports.ScrollList=({row:t=2,column:a=3,isDotsShown:l=!0,isImageGalleryShown:n=!1,mode:r="infinity",type:o="separated",distanceOverlappedLeft:s={amount:0,unit:"pixel"},children:d,className:c,isProgressShown:u=!1,statusChildren:m,isArrowShown:g=!1,classNameLeftArrow:f,classNameRightArrow:p,dataEventCategory:h,dataEventAction:v,dataEventLabel:y,onChangePage:E,page:b,customPageWidth:C,scheme:w="hellosites",arrowType:k="Discover"})=>{const S="number"==typeof b,[x,T]=e.useState(S?b:0),N=[];P.default.Children.map(d,((e,l)=>{l%(t*a)==0&&N.push([]),N[N.length-1].push(P.default.cloneElement(e))}));const B=e.useRef(),L=e.useRef(0),D=e=>{if(!B.current)return;const{clientWidth:t}=B.current,a=C||t,l="intertwined"===o?"percentage"===s.unit?e*a+s.amount/100*a*e:e*a+s.amount*a*e:e*a;B.current.scrollTo({top:0,left:l,behavior:"smooth"}),L.current=e,T(e),E&&E(e)};e.useEffect((()=>{"number"==typeof b&&(e=>{if(!B.current)return;const{clientWidth:t}=B.current,a=C||t,l="intertwined"===o?"percentage"===s.unit?e*a+s.amount/100*a*e:e*a+s.amount*a*e:e*a;B.current.scrollTo({top:0,left:l,behavior:"smooth"}),L.current=e,T(e)})(b)}),[b]);const _=e=>{if(!B.current)return;const{clientWidth:t}=B.current,a=C||t;let l;l=0===x?0:x*a,"forward"===e&&(l===a*(N.length-1)?(T(N.length-1),l=a*(N.length-1),E&&E(N.length-1)):(T(x+1),l+=a,E&&E(x+1)),B.current.scrollTo({top:0,left:l,behavior:"smooth"})),"back"===e&&(0===l?(T(0),E&&E(0),l=0):(T(x-1),E&&E(x-1),l-=a),B.current.scrollTo({top:0,left:l,behavior:"smooth"}))},I=j.default((()=>{if("infinity"===r){if(!B.current)return;const{clientWidth:e,scrollLeft:t}=B.current,a=C||e,l=Math.floor(t/a);T(l),E&&E(l)}}),400);return e.useEffect((()=>{if("snapped"===r){let e,t,a,l,n,r,i=!1;const d=B.current,c=(r,o)=>{i=!0,a=!1,l=!1,e=r-d.offsetLeft,t=o-d.offsetTop,n=d.scrollLeft},u=e=>{c(e.pageX,e.pageY)},m=e=>{c(e.touches[0].pageX,e.touches[0].pageY)},g=()=>{if(i=!1,a=!1,l=!1,!B.current)return;const{clientWidth:e}=B.current,t=C||e,n="ltr"===r?0!==L.current?L.current-1:L.current:"rtl"===r&&L.current<N.length-1?L.current+1:L.current,d="intertwined"===o?"percentage"===s.unit?n*t+s.amount/100*t*n:n*t+s.amount*t*n:n*t;B.current.scrollTo({top:0,left:d,behavior:"smooth"}),r="none",L.current!==n&&(L.current=n,T(n),E&&E(n))},f=(o,s)=>{if(!i)return;const c=o-d.offsetLeft,u=s-d.offsetTop,m=c-e,g=u-t;a||l||!(g>20||g<-20)||(a=!0),!a&&(m>20||m<-20)&&(l=!0,d.scrollLeft=n-m,m>0&&(r="ltr"),m<0&&(r="rtl"),0===m&&(r="none"))},p=e=>{l&&e.preventDefault(),f(e.pageX,e.pageY)},h=e=>{l&&e.preventDefault(),f(e.touches[0].pageX,e.touches[0].pageY)};return null==d||d.addEventListener("mousedown",u,{passive:!0}),null==d||d.addEventListener("touchstart",m,{passive:!0}),window.addEventListener("mouseup",g,{passive:!0}),window.addEventListener("touchend",g,{passive:!0}),null==d||d.addEventListener("mousemove",p,{passive:!0}),null==d||d.addEventListener("touchmove",h,{passive:!0}),()=>{null==d||d.removeEventListener("mousedown",u),null==d||d.removeEventListener("touchstart",m),window.removeEventListener("mouseup",g),window.removeEventListener("touchend",g),null==d||d.removeEventListener("mousemove",p),null==d||d.removeEventListener("touchmove",h)}}}),[]),P.default.createElement(i.StyledScrollList,{className:c,"data-row":t,onScroll:I},g&&x>0&&P.default.createElement("div",{className:`${f} arrow-left`,onClick:()=>_("back"),"data-event-category":h,"data-event-action":v,"data-event-label":y},"Care"===k?P.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},P.default.createElement("g",{filter:"url(#filter0_dd_12599_34420)"},P.default.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3V3C31.8368 3 39.0002 10.1634 39.0002 19V19C39.0002 27.8366 31.8368 35 23.0002 35V35C14.1637 35 7.00024 27.8366 7.00024 19V19Z",fill:"white"}),P.default.createElement("path",{d:"M20.9293 19L24.7503 15.179C25.1643 14.765 25.1643 14.093 24.7503 13.679C24.3363 13.265 23.6643 13.265 23.2503 13.679L18.6363 18.293C18.2453 18.684 18.2453 19.317 18.6363 19.707L23.2503 24.321C23.6643 24.735 24.3363 24.735 24.7503 24.321C25.1643 23.907 25.1643 23.235 24.7503 22.821L20.9293 19Z",fill:"#595959"}),P.default.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),P.default.createElement("defs",null,P.default.createElement("filter",{id:"filter0_dd_12599_34420",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},P.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),P.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),P.default.createElement("feOffset",{dx:"-2",dy:"2"}),P.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),P.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),P.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12599_34420"}),P.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),P.default.createElement("feOffset",{dx:"-1",dy:"1"}),P.default.createElement("feGaussianBlur",{stdDeviation:"1"}),P.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),P.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12599_34420",result:"effect2_dropShadow_12599_34420"}),P.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12599_34420",result:"shape"})))):P.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),P.default.createElement("path",{d:"M15.9997 11.1109L11.1108 15.9998L15.9997 20.8887",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),P.default.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),P.default.createElement("div",{ref:B,className:"container",style:{overflowX:"snapped"===r||g?"hidden":"scroll"}},N.map(((e,l)=>{let n=0;for(let e=0;e<l;e++)n+=N[e].length;return P.default.createElement("div",{key:l,className:"section",style:{marginLeft:"intertwined"===o&&0!==l?s.amount+""+("percentage"===s.unit?"%":"px"):"0px"}},1===t&&u&&P.default.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${a}, 1fr)`}},e.map(((t,a)=>{const r=n+a,o=m.find((e=>e.index===r));return P.default.createElement("div",{className:"items-progress",key:a},0===a&&0===l?P.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):P.default.createElement("div",{className:"line"}),P.default.createElement("div",{className:"icon-status"},P.default.createElement(de,{status:null==o?void 0:o.status})),l===N.length-1&&a===e.length-1?P.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):P.default.createElement("div",{className:"line"}))}))),P.default.createElement("div",{className:"grid-layout","data-index":l,style:{gridTemplateColumns:`repeat(${a}, 1fr)`,gridTemplateRows:`repeat(${t}, 1fr)`}},e.map(((e,t)=>P.default.createElement(P.default.Fragment,{key:t},P.default.createElement("div",{className:"item-grid",key:t},e))))))}))),g&&x<N.length-1&&P.default.createElement("div",{className:`${p} arrow-right`,onClick:()=>_("forward"),"data-event-category":h,"data-event-action":v,"data-event-label":y}," ","Care"===k?P.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},P.default.createElement("g",{filter:"url(#filter0_dd_12597_34423)"},P.default.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3C31.8368 3 39.0002 10.1634 39.0002 19C39.0002 27.8366 31.8368 35 23.0002 35C14.1637 35 7.00024 27.8366 7.00024 19Z",fill:"white"}),P.default.createElement("path",{d:"M24.0712 19L20.2502 15.179C19.8362 14.765 19.8362 14.093 20.2502 13.679C20.6642 13.265 21.3362 13.265 21.7502 13.679L26.3642 18.293C26.7552 18.684 26.7552 19.317 26.3642 19.707L21.7502 24.321C21.3362 24.735 20.6642 24.735 20.2502 24.321C19.8362 23.907 19.8362 23.235 20.2502 22.821L24.0712 19Z",fill:"#595959"}),P.default.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),P.default.createElement("defs",null,P.default.createElement("filter",{id:"filter0_dd_12597_34423",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},P.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),P.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),P.default.createElement("feOffset",{dx:"-2",dy:"2"}),P.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),P.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),P.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12597_34423"}),P.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),P.default.createElement("feOffset",{dx:"-1",dy:"1"}),P.default.createElement("feGaussianBlur",{stdDeviation:"1"}),P.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),P.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12597_34423",result:"effect2_dropShadow_12597_34423"}),P.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12597_34423",result:"shape"})))):P.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),P.default.createElement("path",{d:"M15.9998 20.8891L20.8887 16.0002L15.9998 11.1113",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),P.default.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),l&&P.default.createElement("ul",{className:"bullet-nav"},N.map(((e,t)=>P.default.createElement("li",{key:t,className:"bullet-nav__item "},P.default.createElement("p",{onClick:()=>D(t),className:`bullet-nav__link scroll ${x==t?"active":null}`,"data-scheme":w}))))),n&&P.default.createElement("div",{className:"image-gallery-wrapper","data-test":N.length},N.slice(0,3).map(((e,t)=>P.default.createElement("div",{className:`image-block ${x==t?"active":null}`,key:t,onClick:()=>D(t),"data-scheme":w},e)))))},exports.SeoHead=({SEOData:t={},locale:a="vi-VN",routerPathname:l,routerQuery:n,nextHead:r,siteType:o,seoCustom:s,userId:d,forcedCanonicalUrl:c})=>{var m,f,p,h,v,y,E,b,C,w,k,S;const{totalPages:x,currentPage:T,SEOTitle:N="",SEODescription:B="",SEOImage:L,seoType:D,SEOImageWidth:_,SEOImageHeight:I,customMetaData:M=[],isIndexable:A=!0,hasNoCanonical:z=!1}=t,F=A&&g.isProduction?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:O}=process.env;let j=t.canonicalUrl||l;Object.keys(n).forEach((e=>{const t=n[e];t&&Array.isArray(t)&&(j=j.replace(`[...${e}]`,t.join("/")))}));const H=a||"en-PH",$="helloSites"===o?u.domainLocales[H]:"www.marrybaby.vn",G=j.endsWith("/")?"":"/",R=e.useMemo((()=>{var e,l,n,r,o,s,d;let c="";if(t.apiMetaData&&"string"==typeof t.apiMetaData){const u=null===(e=t.apiMetaData)||void 0===e?void 0:e.match(/<title.*?>(.*)<\/title>/),m=` - Page ${T} of ${x}`,g=T&&1!==T&&u?t.apiMetaData.replace(u[0],u[0].includes("-")?u[0].replace("-",m+" - "):`<title>${u[1].concat(m)}</title>`).replace(`<link rel="canonical" href="https://${$}${j}${G}" />`,`<link rel="canonical" href="https://${$}${j}${G}?page=${T}" />`):t.apiMetaData;if(c=i.htmlReactParser(g,{trim:!0}),!c.find((e=>{var t,a;return"og:image"===(null===(t=e.props)||void 0===t?void 0:t.property)||"og:image:secure_url"===(null===(a=e.props)||void 0===a?void 0:a.property)}))){const e=`https://${$}/images/${a}.png`;c=[...c,P.default.createElement("meta",{key:"og:image",property:"og:image",content:(null===(l=t.openGraph)||void 0===l?void 0:l.image)||L||e||""}),P.default.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(n=t.openGraph)||void 0===n?void 0:n.image)||L||e}),P.default.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(r=t.openGraph)||void 0===r?void 0:r.imageWidth)&&String(null===(o=t.openGraph)||void 0===o?void 0:o.imageWidth)||_&&String(_)||"1200"}),P.default.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(s=t.openGraph)||void 0===s?void 0:s.imageHeight)&&String(null===(d=t.openGraph)||void 0===d?void 0:d.imageHeight)||I&&String(I)||"630"})]}}return c}),[t.apiMetaData,t.openGraph,L,I,_,T,j,x,a,$]),W=`https://${$}/images/${a}.png`;return P.default.createElement(r,null,P.default.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===o&&P.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===a?P.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===a||"ms-MY"===a?P.default.createElement(P.default.Fragment,null):P.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap",rel:"preload",as:"style"}),P.default.createElement("link",{rel:"preconnect",href:O}),P.default.createElement("meta",{charSet:"UTF-8"}),P.default.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),P.default.createElement("meta",{name:"google",content:"notranslate"}),P.default.createElement("meta",{name:"robots",content:F}),P.default.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),M.map(((e,t)=>P.default.createElement("meta",Object.assign({key:t},e)))),P.default.createElement("meta",{name:"theme-color",content:"helloSites"===o?"#2c87f3":"#e85388"}),P.default.createElement("meta",{name:"page_type",content:"Home"}),P.default.createElement("meta",{name:"page_platform",content:"WEB"}),P.default.createElement("meta",{name:"page_language",content:H}),P.default.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!R&&P.default.createElement(P.default.Fragment,null,"helloSites"===o?P.default.createElement("title",null,s?N:N+" - "+(null===(m=u.LOCALE_SPECS[a])||void 0===m?void 0:m.SITE_NAME)):P.default.createElement("title",null,N),!z&&P.default.createElement("link",{rel:"canonical",href:`https://${$}${j}`}),P.default.createElement("meta",{name:"description",content:B||(null===(f=t.openGraph)||void 0===f?void 0:f.description)}),t.schemaData&&P.default.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:t.schemaData}}),P.default.createElement("meta",{property:"og:locale",content:a}),P.default.createElement("meta",{property:"og:type",content:D||"website"}),P.default.createElement("meta",{property:"og:title",content:(null===(p=t.openGraph)||void 0===p?void 0:p.title)||N}),P.default.createElement("meta",{property:"og:description",content:(null===(h=t.openGraph)||void 0===h?void 0:h.description)||B}),P.default.createElement("meta",{property:"og:url",content:`https://${$}${j}`}),P.default.createElement("meta",{property:"og:site_name",content:`https://${$}`}),P.default.createElement("meta",{property:"og:image",content:(null===(v=t.openGraph)||void 0===v?void 0:v.image)||L||W||""}),P.default.createElement("meta",{property:"og:image:secure_url",content:(null===(y=t.openGraph)||void 0===y?void 0:y.image)||L||W}),P.default.createElement("meta",{property:"og:image:width",content:(null===(E=t.openGraph)||void 0===E?void 0:E.imageWidth)&&String(null===(b=t.openGraph)||void 0===b?void 0:b.imageWidth)||_&&String(_)||"1200"}),P.default.createElement("meta",{property:"og:image:height",content:(null===(C=t.openGraph)||void 0===C?void 0:C.imageHeight)&&String(null===(w=t.openGraph)||void 0===w?void 0:w.imageHeight)||I&&String(I)||"630"}),P.default.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),P.default.createElement("meta",{name:"twitter:title",content:(null===(k=t.twitter)||void 0===k?void 0:k.title)||N}),P.default.createElement("meta",{name:"twitter:description",content:B}),P.default.createElement("meta",{name:"twitter:image",content:(null===(S=t.twitter)||void 0===S?void 0:S.image)||L})),("helloSites"===o?u.FAVICONS[H]||[]:u.FAVICONS.marryBaby).map(((e,t)=>"link"===e.type?P.default.createElement("link",{key:`favicon-${t}`,rel:e.rel,href:e.href,sizes:e.sizes}):"meta"===e.type?P.default.createElement("meta",{key:t,name:e.name,content:e.content}):null)),Array.isArray(R)&&c?R.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):R,c&&P.default.createElement("link",{rel:"canonical",href:c}),!t.hasNoAmp&&"vi-VN"!==a&&P.default.createElement("link",{rel:"amphtml",href:`https://${$}${j}${G}?amp=1`}),d&&"undefined"!=typeof window?P.default.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${d}'});`}}):null)},exports.ShareContainer=({url:a,onCopied:l,locale:n,siteType:r})=>{const{t:d}=h.useTranslations(),c=M.getSocialList(a||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(n))),u=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return P.default.createElement(i.StyledShareContainer,null,P.default.createElement(t.Text,{size:"p3",color:o.theme.colors.gray800},d("shareContainer.title")),P.default.createElement("div",{className:"icon-group"},c.map(((e,t)=>P.default.createElement("a",{key:t,href:e.href,target:"_blank",rel:"noreferrer","data-event-category":"Health Tool","data-event-action":`Social Share - ${e.name}`,"data-event-label":u},e.icon))),P.default.createElement(I.Button,{theme:r,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:P.default.createElement(je,null),onClick:()=>s.__awaiter(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(a),null==l||l()})),"data-event-category":"Health Tool","data-event-action":"Copy Link","data-event-label":u})))},exports.ShareDrawer=a=>{var{open:l,title:n,onClose:r,onCopied:d,onShared:c,url:u,locale:m}=a,g=s.__rest(a,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:f}=h.useTranslations(),p=e.useCallback((()=>s.__awaiter(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(u),null==d||d()}))),[u,d]),v=M.getSocialList(u||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(m)));return e.useEffect((()=>{l&&navigator.share&&navigator.share({title:null!=n?n:"Read This Post",url:u}).then((()=>{null==c||c()})).catch((()=>{null==r||r()}))}),[u,n,c,l]),"undefined"!=typeof navigator&&navigator.share?null:P.default.createElement(i.StyledShareDrawer,Object.assign({title:f("share.title"),onClose:r,open:l,placement:"bottom"},g),P.default.createElement("div",{className:"share-container"},P.default.createElement("div",{className:"icon-container"},P.default.createElement(t.Text,{type:"semiBold",size:"s3",color:o.theme.colors.gray600},f("share.title")),P.default.createElement("div",{className:"icon-group"},v.map(((e,t)=>P.default.createElement("a",{key:t,href:e.href,target:"_blank",rel:"noreferrer"},e.icon))))),P.default.createElement("div",{className:"link-container"},P.default.createElement(t.Text,{type:"semiBold",size:"s3",color:o.theme.colors.gray600},f("share.copyLink")),P.default.createElement("div",{className:"input-group"},P.default.createElement(y.Input,{name:"link",size:"md",value:u,isDisabled:!0}),P.default.createElement(I.Button,{size:"md",type:"button",color:"tertiary",icon:P.default.createElement(He,null),onClick:p})))))},exports.StatisticCard=({type:e,description:t,value:a,withIcon:l,isInACard:n,cardColor:r,className:o})=>P.default.createElement(i.StyledStatisticContainer,{className:o,"data-size":e,"data-is-in-card":"big"===e&&n,"data-card-color":r},P.default.createElement(i.StyledDescriptionWrapper,null,"small"===e&&P.default.createElement(i.StyledDot,{"data-color":r}),t),P.default.createElement(i.StyledStatisticNumberWrapper,{"data-size":e},"small"!==e&&l,a)),exports.SurveyThankyouCard=({thankyou:e,thankyouSubtitle:l,className:n,style:r})=>P.default.createElement(i.StyledSurveyQuestionCard,{className:n,style:r},P.default.createElement("div",{className:"survey-inner-wrapper"},P.default.createElement(i.StyledSurveyThankyouCard,null,P.default.createElement("div",{className:"survey-thankyou-wrapper-inner"},P.default.createElement("svg",{viewBox:"0 0 122 122",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"survey-thankyou-icon"},P.default.createElement("path",{d:"M61.5 122c33.137 0 60-26.863 60-60S94.637 2 61.5 2s-60 26.863-60 60 26.863 60 60 60Z",fill:o.theme.colors.primary50}),P.default.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),P.default.createElement("path",{d:"M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z",fill:"#2C74DF"}),P.default.createElement("path",{d:"M74.4 15H39.863a5.364 5.364 0 0 0-5.363 5.363v52.214a5.364 5.364 0 0 0 5.363 5.363h43.273a5.364 5.364 0 0 0 5.363-5.363V21a6 6 0 0 0-6-6H74.4Z",fill:"#fff"}),P.default.createElement("path",{d:"M88.853 80.108H34.147a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074h54.706a4.055 4.055 0 0 1 4.087 4.074v10.65c0 2.27-1.81 4.074-4.087 4.074Z",fill:"#E4E8EC"}),P.default.createElement("path",{d:"M90.838 85.451H32.162a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074H90.78a4.055 4.055 0 0 1 4.087 4.074v10.65c.058 2.27-1.81 4.074-4.029 4.074Z",fill:"#fff"}),P.default.createElement("path",{d:"M103.748 75.492v30.263c0 1.92-1.576 3.492-3.503 3.492H23.003c-1.927 0-3.503-1.572-3.503-3.492V75.492c0-1.92 1.576-3.492 3.503-3.492h19.384c1.926 0 3.503 1.571 3.503 3.492v5.354c0 .35.233.582.584.582h30.3c.351 0 .585-.233.585-.582v-5.354c0-1.92 1.576-3.492 3.503-3.492h19.383c1.927 0 3.503 1.571 3.503 3.492Z",fill:"#45A4FF"}),P.default.createElement("path",{stroke:"#2C74DF",d:"M51.954 91.377v3.084c0 1.63 1.285 2.91 2.92 2.91h12.844c1.635 0 2.92-1.28 2.92-2.91v-3.084"}),P.default.createElement("path",{d:"M120.5 38.025c-2-.246-3.25 1.352-2.375 3.195l.25.737c.75 1.844-.375 3.441-2.375 3.195l-.75-.123c-2-.245-3.25 1.352-2.375 3.195l.375.738c.75 1.843-.375 3.44-2.375 3.195l-.75-.123c-1.5-.123-2.625.737-2.625 1.966",stroke:"#FE921D"}),P.default.createElement("path",{d:"M1.533 62c-.269 1.413 1.142 2.337 2.82 1.848l.672-.218c1.678-.543 3.089.38 2.82 1.848l-.134.544c-.269 1.413 1.141 2.337 2.82 1.848l.671-.218c1.68-.543 3.09.38 2.82 1.848l-.134.543c-.201 1.087.538 1.848 1.612 1.957M118 92a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM82 3.187l1.188 4.348 4.347-1.188L86.347 2 82 3.187Z",stroke:"#00B16A"}),P.default.createElement("path",{stroke:"#FE921D",d:"M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),P.default.createElement("path",{d:"M61.5 26.667c-7.364 0-13.333 5.97-13.333 13.333 0 7.364 5.969 13.333 13.333 13.333S74.833 47.364 74.833 40 68.864 26.667 61.5 26.667Zm7.61 10.276-9.334 9.333a1.33 1.33 0 0 1-1.885 0l-4-4a1.332 1.332 0 1 1 1.885-1.885l3.057 3.057 8.391-8.39a1.332 1.332 0 1 1 1.885 1.885Z",fill:"#00CB8A"})),e&&P.default.createElement(a.Heading,{className:"survey-thankyou-title",tag:"h3"},e),l&&P.default.createElement(t.Text,{className:"survey-thankyou-subtitle",size:"p3"},l))))),exports.THRCardEmbed=({isSide:l,locale:n,thrContent:s,isMobile:d,info:c,inputErrorMessage:m,onFormChange:g,onSubmit:f})=>{var p,v,y;const{t:b}=h.useTranslations(),{getHealthToolLink:C}=x.useHealthToolsCache(n),k=e.useMemo((()=>C(a.HEALTH_TOOL_TYPE.THR)),[C]),[N,B]=e.useState(!1),[L,D]=e.useState("low_intensity"),[_,I]=e.useState("male"),[M,A]=e.useState(60),[z,F]=e.useState({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),O=[{idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40},{idAge:1,minAge:18,maxAge:25,rangeMale:49,rangeFemale:54},{idAge:2,minAge:25,maxAge:35,rangeMale:49,rangeFemale:54},{idAge:3,minAge:35,maxAge:45,rangeMale:50,rangeFemale:54},{idAge:4,minAge:45,maxAge:55,rangeMale:50,rangeFemale:54},{idAge:5,minAge:55,maxAge:65,rangeMale:51,rangeFemale:54},{idAge:6,minAge:65,maxAge:120,rangeMale:50,rangeFemale:54}],j=[{value:"low_intensity",label:b("targetHeartRate.lowIntensity.title"),image:r.CommonGAssets.getAssetPath("/low.svg"),imageActive:r.CommonGAssets.getAssetPath("/low-active.svg"),content:b("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:b("targetHeartRate.moderateIntensity.title"),image:r.CommonGAssets.getAssetPath("/moderate.svg"),imageActive:r.CommonGAssets.getAssetPath("/moderate-active.svg"),content:b("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:b("targetHeartRate.aerobicZone.title"),image:r.CommonGAssets.getAssetPath("/aerobic.svg"),imageActive:r.CommonGAssets.getAssetPath("/aerobic-active.svg"),content:b("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:b("targetHeartRate.vigorousIntensity.title"),image:r.CommonGAssets.getAssetPath("/vigorous.svg"),imageActive:r.CommonGAssets.getAssetPath("/vigorous-active.svg"),content:b("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:b("targetHeartRate.maximumIntensity.title"),image:r.CommonGAssets.getAssetPath("/maximum.svg"),imageActive:r.CommonGAssets.getAssetPath("/maximum-active.svg"),content:b("targetHeartRate.maximumIntensity.note")}],H=e.useMemo((()=>[{value:"male",label:b("gender.male"),content:P.default.createElement(E.Icon.GenderChooseBoy,null)},{value:"female",label:b("gender.female"),content:P.default.createElement(E.Icon.GenderChooseGirl,null)}]),[]);return e.useEffect((()=>{const e=((new Date).getTime()-new Date(null==c?void 0:c.age).getTime())/1e3;B(e>=567648e3);const t=O.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||O[0];F(t),A(60)}),[null==c?void 0:c.age]),P.default.createElement(i.StyledContainer,{"data-is-side":l},P.default.createElement(i.ToolsBannerCard,{isSide:l,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==s?void 0:s.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"},loading:"lazy"}),heading:b("targetHearRate.heading"),medicalReview:(null===(p=null==s?void 0:s.reviewedBy)||void 0===p?void 0:p.display_name)?P.default.createElement(t.Text,{size:"n1",color:o.theme.colors.white},P.default.createElement("span",{dangerouslySetInnerHTML:{__html:b("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${T.formatUserProfileUrl(null==s?void 0:s.reviewedBy)}"\n >\n ${null===(v=null==s?void 0:s.reviewedBy)||void 0===v?void 0:v.display_name}\n </a>`,date:null==s?void 0:s.reviewedDate})}}),P.default.createElement("span",null)):void 0,isMobile:d}),P.default.createElement(E.Container,null,P.default.createElement(i.StyledContent,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":l},P.default.createElement(i.StyledRow$1,{"data-is-side":l},P.default.createElement(i.FormControl$1,null,P.default.createElement(i.StyledInput$1,{size:"md",name:"gender",label:b("bmi.selectGender"),CustomInput:P.default.createElement(S.RadioImageGroup,{options:H,value:_,onChange:e=>{I(e),A(60)},className:"bmi--input-radio_gender"}),className:"bmi--input bmi--input-gender"}))),P.default.createElement(i.StyledRow$1,null,P.default.createElement(ye,{info:c,locale:n,errorMessage:m,onChange:g})),P.default.createElement("div",{className:"slider-heart-rate"},P.default.createElement(E.Label,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:o.theme.colors.gray600,fontWeight:"bold",fontSize:"12px"},htmlFor:"gender-selector"},b("targetHeartRate.heartRateInput")),P.default.createElement("div",{className:"slider-outer-wrapper"},P.default.createElement(w.Slider,{containerStyle:{flex:1},min:"male"===_?z.rangeMale:z.rangeFemale,max:200,step:1,value:M,withControl:!0,onChange:A}))),N&&P.default.createElement(i.FormControl$1,null,P.default.createElement(i.StyledActive,null,P.default.createElement(E.Label,{size:"label2",style:{display:"inline-block",fontWeight:"bold",color:o.theme.colors.gray600,marginBottom:"9px"},htmlFor:"gender-selector"},b("targetHeartRate.selectActive")),P.default.createElement("div",{className:"card"},P.default.createElement(ve,{options:j.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:L,onChange:e=>{D(e)},className:"gender-selector"})),L&&P.default.createElement("div",{className:"note"},P.default.createElement("img",{style:{height:"16px",width:"16px"},src:r.CommonGAssets.getAssetPath("/infoIcon.svg"),alt:"",loading:"lazy"}),P.default.createElement(t.Text,{size:"n1",color:"#595959"},null===(y=j[j.findIndex((e=>e.value==L))||0])||void 0===y?void 0:y.content)),!L&&P.default.createElement("span",{style:{color:"#e64728"}},m.intensity)))),P.default.createElement("div",{style:{display:"flex"}},P.default.createElement(i.StyledButton$1,{size:"lg",onClick:()=>{f(_,L,[M])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${u.domainLocales[n]}/${k}`},b("bmi.submit")))))},exports.Tabs=({style:t,initialTab:l,tabContent:n,onChange:r,className:o,dataEventCategory:s,dataEventAction:d,dataEventLabel:c,id:u,styles:m})=>{const{classes:g,cx:f,theme:p}=i.useStyles$1(void 0,{name:"Tabs",styles:m}),[h,v]=e.useState(l||0);return e.useEffect((()=>{v(l)}),[l]),P.default.createElement("ul",{style:t,className:f(g.root,o),role:"tablist",id:u},n.map(((e,t)=>P.default.createElement("li",{className:`${g.item} ${h===t?"active":""}`,"aria-selected":h===t,role:"tab",onClick:()=>{v(t),r&&r(t)},onKeyDown:e=>{"Enter"===e.key&&(v(t),r&&r(t))},key:t,"data-event-category":e.dataEventCategory||s,"data-event-action":e.dataEventAction||d,"data-event-label":e.dataEventLabel||c,tabIndex:0,"data-testid":e.dataTestid},P.default.createElement("div",{className:g.itemInner},e.icon&&P.default.createElement("div",{className:g.icon},e.icon),P.default.createElement(a.Text,{className:g.label,size:e.textSize||"sm",weight:e.textType||"bold",color:h===t?p.fn.primaryColor():e.textColor||p.colors.gray[4],dataEventCategory:e.dataEventCategory,dataEventAction:e.dataEventAction,dataEventLabel:e.dataEventLabel},e.name))))))},exports.Tag=({type:e,children:l,style:n,isInline:r,isSquared:o=!1,className:i,isLight:s,hasMorePadding:d,isLink:c,isSelected:u,textProps:m={size:"sm"}})=>{const g=m.color?{"--text-props-color":m.color}:{};return P.default.createElement(a.StyledTag,{"data-is-squared":o||void 0,"data-tag-type":e,"data-is-light":s||void 0,"data-has-more-padding":d||void 0,"data-is-inline":r||void 0,style:Object.assign(Object.assign({},n),g),className:i,"data-is-selected":u||void 0,"data-is-link":c||void 0,tagType:e,isInline:r,tagHasMorePadding:d,tagIsLight:s,tagIsSquared:o,tagIsALink:c},P.default.createElement(t.Text,Object.assign({},m),l))},exports.Toggle=({className:e,id:t,onChange:l,checked:n,style:r,label:o})=>P.default.createElement(a.StyledToggle,{className:e,style:r},P.default.createElement("input",{type:"checkbox",id:t,onChange:l,checked:n}),P.default.createElement("label",{htmlFor:t},P.default.createElement(a.StyledToggleIcon,null),o&&P.default.createElement(a.StyledToggleLabel,null,o))),exports.index=se,exports.index$1=ce;
|
|
1
|
+
"use strict";var e=require("react"),t=require("./index-ecdde5af.js"),a=require("./utils-d79de40e.js"),l=require("./screenSizeContext-6f10e9b3.js"),n=require("./useUniqueId-efa7ed8c.js"),r=require("./gAssets.js"),o=require("./theme-48d542a5.js"),i=require("./index-e09f33ba.js"),s=require("./tslib.es6-6b56e029.js"),d=require("@mantine/core"),c=require("innertext");require("@mantine/dates");var u=require("./index-5ba227ab.js");require("./Onboarding-0a35aa99.js");var m=require("dayjs");require("styled-components");var g=require("./isProduction-f892b978.js");require("./translationsContext-f2d68f9a.js"),require("string-format"),require("./index-def58b2f.js"),require("@mantine/hooks");var f=require("./index-942e90f7.js"),p=require("lodash/throttle"),h=require("./useTranslations-95f1399d.js"),v=require("date-fns"),y=require("./index-a4f745f5.js"),E=require("./index-006ae7f1.js");require("lodash/debounce");var b=require("./types-feb2b3fe.js"),C=require("./index-019502eb.js"),w=require("./index-8571b215.js"),k=require("react-hook-form"),S=require("./index-88ccb9bc.js"),x=require("./useHealthToolCache-5c75347c.js"),T=require("./dataTransform-e059c212.js"),N=require("./useOutsideClick-76205435.js"),B=require("date-fns/locale/en-US"),L=require("date-fns/locale/id"),D=require("date-fns/locale/vi"),_=require("date-fns/locale/zh-TW"),I=require("./index-51014c3f.js"),M=require("./getSocialList-07361dc7.js"),A=require("uuid");function z(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var P=z(e),F=z(c),O=z(m),j=z(p),H=z(B),$=z(L),G=z(D),R=z(_),W="CHw-fZZ",U="_03U6VRS",V="EO828Vv";const q=({pagesAmount:t,activePage:n,handlePageChange:r,handleClick:o,href:i,queryPageName:s="page"})=>{const d=[...Array(t)].map(((e,t)=>t+1)),[c,u]=e.useState(n<=4?d.slice(0,5):n>=d.length-3?d.slice(d.length-5,d.length):d.slice(n-2,n+1));return e.useEffect((()=>{n<=4?u(d.slice(0,5)):n>=d.length-3?u(d.slice(d.length-5,d.length)):u(d.slice(n-2,n+1))}),[n]),P.default.createElement(e.Fragment,null,n>4&&P.default.createElement(e.Fragment,null,P.default.createElement(a.StyledPaginationBlock,{onClick:()=>r(1)},i?P.default.createElement("a",{href:i,onClick:o},1):1),P.default.createElement(a.StyledPaginationBlock,null,"...")),c.map((e=>P.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===n||void 0,onClick:()=>r(e)},i?P.default.createElement("a",{href:l.formatUrlWithPageParam(i,e,s),onClick:o},e):e))),n<d.length-3&&P.default.createElement(e.Fragment,null,P.default.createElement(a.StyledPaginationBlock,null,"..."),P.default.createElement(a.StyledPaginationBlock,{onClick:()=>r(d.length)},i?P.default.createElement("a",{href:l.formatUrlWithPageParam(i,d.length,s),onClick:o},d.length):d.length)))},Z=({label:e,name:t,checked:l,className:n,isDisabled:r,onChange:o,value:i,isRectangle:s,inputDataTestId:d,siteType:c})=>P.default.createElement(a.StyledCheckbox,{className:n,"data-disabled":r||void 0,"data-is-rectangle":s||void 0,"data-label-text":e,"data-theme":c},P.default.createElement("input",{type:"checkbox",checked:l,name:t,onChange:()=>o(i,!l),disabled:r,value:i,id:`${t}-${i}`,"data-label-text":e,"data-testid":d}),!s&&P.default.createElement("label",{htmlFor:`${t}-${i}`},e)),Y=e=>P.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),P.default.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),Q=e=>P.default.createElement("svg",Object.assign({},e,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),P.default.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),K=e=>{const t=n.useUniqueId();return P.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),P.default.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),P.default.createElement("mask",{id:t,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},P.default.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),P.default.createElement("g",{mask:`url(#${t})`},P.default.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))};var X="PiqKaXk",J="HgbW6-m",ee="_6lkfLYy",te="j7c-onH";const ae=({avatarImg:e,authorName:a,authorLink:l,uploadTime:n,size:r})=>P.default.createElement("div",{className:te},P.default.createElement("div",{className:"author"},P.default.createElement("div",{className:"avatar","data-size":r},e),P.default.createElement("div",{className:"poster","data-is-disabled-url":!l},P.default.createElement(t.Text,{size:"lg"===r?"p3":"p4"},P.default.createElement("a",{href:l},P.default.createElement("span",{className:"name"},a),"•"," "),P.default.createElement("span",null,n))))),le=({isMobile:e,avatarImg:l,name:n,link:r,size:i="lg",specialty:s})=>P.default.createElement("div",{className:te},P.default.createElement("div",{className:"author"},P.default.createElement("div",{className:"expert-avatar","data-size":i},l),P.default.createElement("div",{className:"expert","data-is-disabled-url":!r},e?P.default.createElement("a",{href:r},"lg"===i?P.default.createElement(P.default.Fragment,null,P.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:o.theme.colors.gray600},n),P.default.createElement(t.Text,{color:o.theme.colors.gray500,size:"p3",className:"specialty"},s)):P.default.createElement(P.default.Fragment,null,P.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:o.theme.colors.gray600},n))):P.default.createElement("a",{href:r},"lg"===i?P.default.createElement(P.default.Fragment,null,P.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:o.theme.colors.gray600},n),P.default.createElement(t.Text,{color:o.theme.colors.gray500,size:"p3",className:"specialty"},s)):P.default.createElement(P.default.Fragment,null,P.default.createElement("h6",{color:o.theme.colors.gray600,className:`${X} expert__name`},n),P.default.createElement(t.Text,{color:o.theme.colors.gray500,size:"p4",className:"specialty"},s)))))),ne=e=>{var t,l,n,{article:r,author:o,authorAvatar:i,badge:c="",hideDescription:u=!1,isBookmarked:m=!1,onBookmark:g,time:f,tracking:p}=e,h=s.__rest(e,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:v}=a.useScreenSize();return console.log({article:r}),P.default.createElement(d.Card,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},h),P.default.createElement(d.Card.Section,{w:"100%",h:"100%",miw:264,m:0},P.default.createElement("img",{src:(v?r.featureImageMobile:r.featureImage)||r.featureImage,alt:r.postName,style:{width:"100%"},loading:"lazy"})),P.default.createElement(d.Card.Section,null,P.default.createElement(d.Group,{position:"apart",mt:16,mb:4},P.default.createElement(a.Anchor,{href:(null===(t=null==r?void 0:r.primaryCategory)||void 0===t?void 0:t.permalink)||"#"},P.default.createElement(a.Text,{size:"p4",color:"blue.6"},null===(l=null==r?void 0:r.primaryCategory)||void 0===l?void 0:l.displayName)),P.default.createElement(d.Box,{sx:{cursor:"pointer"},role:"button",onClick:g},m?P.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},null==p?void 0:p.bookmark),P.default.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):P.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},null==p?void 0:p.bookmark),P.default.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),P.default.createElement(a.Text,{size:u?"s2":"s1",mb:8,weight:"semiBold"},r.postTitle||r.postName||""),!u&&P.default.createElement(a.Text,{size:"p2",mb:16,lineClamp:3},F.default(r.excerpt||r.description||(null===(n=r.postContent)||void 0===n?void 0:n.split("\r\n")[0])||"")),P.default.createElement(d.Flex,{gap:12,align:"center"},P.default.createElement(a.Avatar,{size:32,src:i,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:P.default.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),P.default.createElement(a.Text,{size:"n1",c:"gray.6"},o," • ",f))))},re=648/440,oe=1.5,ie=t=>{var l,n,r,{article:o,author:c,authorAvatar:u,badge:m="",bannerImageWrapProps:g,hideDescription:f=!1,isBookmarked:p=!1,onBookmark:h,time:v,tracking:y,classNames:E,styles:b,unstyled:C,className:w}=t,k=s.__rest(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:S}=a.useScreenSize(),{classes:x,cx:T}=i.useStyles({},{name:"ArticleCard",classNames:E,styles:b,unstyled:C});console.log({article:o});const N=e.useMemo((()=>f?oe:re),[f]);return P.default.createElement(d.Card,Object.assign({className:T(x.root,w),padding:"lg",radius:0},k),P.default.createElement(d.Card.Section,{className:x.image},P.default.createElement(a.AspectRatio,Object.assign({ratio:N},g),P.default.createElement("img",{src:(S?o.featureImageMobile:o.featureImage)||o.featureImage,alt:o.postName,style:{objectFit:"cover"}}))),P.default.createElement(d.Card.Section,null,P.default.createElement(d.Group,{position:"apart",mt:16,mb:4},P.default.createElement(a.Anchor,{className:x.category,href:(null===(l=null==o?void 0:o.primaryCategory)||void 0===l?void 0:l.permalink)||"#"},P.default.createElement(a.Text,{size:"p4",color:"blue.6"},null===(n=null==o?void 0:o.primaryCategory)||void 0===n?void 0:n.displayName)),P.default.createElement(d.Box,{sx:{cursor:"pointer"},role:"button",onClick:h},p?P.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},null==y?void 0:y.bookmark),P.default.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):P.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},null==y?void 0:y.bookmark),P.default.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),P.default.createElement(a.Text,{className:x.title,size:f?"s2":"s1",mb:8,weight:"semiBold"},o.postTitle||o.postName||""),!f&&P.default.createElement(a.Text,{className:x.description,size:"p2",mb:16,lineClamp:3},F.default(o.excerpt||o.description||(null===(r=o.postContent)||void 0===r?void 0:r.split("\r\n")[0])||"")),P.default.createElement(d.Flex,{className:x.author,gap:12,align:"center"},P.default.createElement(a.Avatar,{size:32,src:u,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:P.default.createElement("img",{loading:"lazy",src:m,alt:""})}},"A"),P.default.createElement(a.Text,{size:"n1",c:"gray.6"},c," • ",v))))};var se=Object.freeze({__proto__:null,SideMenu:i.SideMenu,SideHeader:i.SideHeader,UserInfo:i.UserInfo,MenuLink:i.MenuLink});const de=({status:e})=>"inActive"===e?P.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})):"active"===e?P.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("circle",{cx:"6",cy:"6",r:"4",fill:"#2D87F3"}),P.default.createElement("circle",{cx:"6",cy:"6",r:"5.5",stroke:"#2D87F3"})):"done"===e?P.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12Z",fill:"#00B16A"}),P.default.createElement("path",{d:"M8.76061 4.20029L4.80061 7.80029L3.00061 6.16392",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})):P.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"}));var ce=Object.freeze({__proto__:null,Table:i.Table,Cell:i.Cell,Head:i.Head,Row:i.Row,Body:i.Body});const ue=({locale:l,onClick:n,siteType:r,pageUrl:s})=>{const{t:d}=h.useTranslations(),[c,m]=e.useState(new Date);return P.default.createElement(P.default.Fragment,null,P.default.createElement(i.StyledLastPeriodFormContainer,{className:"input-form","data-is-side":!0},"marryBaby"===r?P.default.createElement(i.StyledTextField,{label:d("dueDatePage.conceptionDate"),name:"date",size:"md",value:i.DateToInputValue(c),CustomInput:P.default.createElement(i.DatePicker,{onChange:e=>{m(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>P.default.createElement(y.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:c&&O.default(c).format(a.DUE_DATE_FORMAT)}))}),actionIcon:P.default.createElement(E.Icon.CalendarMB,{size:32})}):P.default.createElement(y.Input,{label:P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.conceptionDate")),value:i.DateToInputValue(c),name:"date",size:"md",className:"due-date-input",CustomInput:P.default.createElement(i.DatePicker,{customInput:e=>P.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:i.DateToInputValue(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:c,displayDateFormat:b.DATE_FORMAT,onChange:e=>{m(e)},placeholder:"placeholder"})})),P.default.createElement(a.Button,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===r?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:s,onClick:()=>{n(i.getDueDateConception(c),`${u.QUERY_HEALTH_TOOL.type}=1&sd=${v.format(c,i.API_DATE_FORMAT)}&${u.QUERY_HEALTH_TOOL.additional}= `)},role:"button"},d("dueDatePage.lastPeriod.calculate")))},me=({locale:l,onClick:n,siteType:r,pageUrl:s})=>{const{t:d}=h.useTranslations(),[c,m]=e.useState(new Date),[g,f]=e.useState("3");return P.default.createElement(P.default.Fragment,null,P.default.createElement(i.StyledLastPeriodFormContainer,{className:"input-form","data-is-side":!0},"marryBaby"===r?P.default.createElement(i.StyledTextField,{label:d("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:i.DateToInputValue(c),CustomInput:P.default.createElement(i.DatePicker,{onChange:e=>{m(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>P.default.createElement(y.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:c&&O.default(c).format(a.DUE_DATE_FORMAT)}))}),actionIcon:P.default.createElement(E.Icon.CalendarMB,{size:32})}):P.default.createElement(y.Input,{label:P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray700,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.ivf.transferDate")),value:i.DateToInputValue(c),name:"date",size:"md",className:"due-date-input",CustomInput:P.default.createElement(i.DatePicker,{customInput:e=>P.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:i.DateToInputValue(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:c,displayDateFormat:b.DATE_FORMAT,onChange:e=>{m(e)},placeholder:"placeholder"})})),P.default.createElement("div",{style:{width:"100%"}},P.default.createElement(i.RadioGroup,{id:"radio-transfer-date",type:"circle",direction:"vertical",size:"small",group:"group1",value:g,onChange:e=>f(e),options:[{value:"3",label:d("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:d("dueDatePage.ivf.transferDateRadio",{number:5})}]})),P.default.createElement(a.Button,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===r?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:s,onClick:()=>{n(i.getDueDateIVF(c,Number(g)),`${u.QUERY_HEALTH_TOOL.type}=2&${u.QUERY_HEALTH_TOOL.startDate}=${v.format(c,i.API_DATE_FORMAT)}&${u.QUERY_HEALTH_TOOL.additional}=${g}`)},role:"button"},d("dueDatePage.lastPeriod.calculate")))},ge=({locale:l,onClick:n,siteType:r,pageUrl:s})=>{const{t:d}=h.useTranslations(),[c,m]=e.useState(28),[g,f]=e.useState(new Date);return P.default.createElement(P.default.Fragment,null,P.default.createElement(i.StyledLastPeriodFormContainer,{className:"input-form","data-is-side":!0},"marryBaby"===r?P.default.createElement(i.StyledTextField,{label:d("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:i.DateToInputValue(g),CustomInput:P.default.createElement(i.DatePicker,{onChange:e=>{f(e)},placeholder:"dd/mm/yyyy",pickedDate:g,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>P.default.createElement(y.Input,Object.assign({name:"birthday",size:"md"},e,{value:g&&O.default(g).format(a.DUE_DATE_FORMAT)}))}),actionIcon:P.default.createElement(E.Icon.CalendarMB,{size:32})}):P.default.createElement(y.Input,{className:"input-section due-date-input",label:P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.lastPeriod.lastPeriodLabel")),value:i.DateToInputValue(g),name:"date",size:"md",CustomInput:P.default.createElement(i.DatePicker,{customInput:e=>P.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:i.DateToInputValue(g)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:l,pickedDate:g,displayDateFormat:b.DATE_FORMAT,onChange:e=>{f(e)},placeholder:"placeholder"})})),P.default.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===r?"marryBaby":""},"marryBaby"===r?P.default.createElement(C.MarryBabyText,{type:"bodytext-3",color:o.theme.mbColors.midGray},d("dueDatePage.lastPeriod.periodLengthLabel")):P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray600,style:{marginBottom:"0.5rem"}},d("dueDatePage.lastPeriod.periodLengthLabel")),P.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&P.default.createElement(t.Text,{size:"s3",type:"bold",color:o.theme.colors.gray600},c),P.default.createElement(w.Slider,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,onChange:m,value:c,label:"marryBaby"!==r?void 0:null}))),P.default.createElement(a.Button,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:s,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===r?"secondary":"primary",onClick:()=>n(i.getDueDateLastPeriod(g,c),`${u.QUERY_HEALTH_TOOL.type}=0&${u.QUERY_HEALTH_TOOL.startDate}=${v.format(g,i.API_DATE_FORMAT)}&${u.QUERY_HEALTH_TOOL.additional}=${c}`),role:"button"},d("dueDatePage.lastPeriod.calculate")))},fe=({onSubmitDueDate:a,locale:l,isSide:n,siteType:r})=>{const{t:s}=h.useTranslations(),[d,c]=e.useState(i.DueDateCalculatorType.lastPeriod),u=[{value:i.DueDateCalculatorType.lastPeriod,label:s("dueDatePage.lastPeriod")},{value:i.DueDateCalculatorType.conception,label:s("dueDatePage.conceptionDate")},{value:i.DueDateCalculatorType.IVF,label:s("dueDatePage.ivf")}],m=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return P.default.createElement(i.StyledInputWrapper,null,P.default.createElement(i.StyledMethodContainer,{className:"input-form input-section","data-is-side":!0},"marryBaby"===r?P.default.createElement(i.StyledDropDown,{groupedWithLabel:s("dueDatePage.calculationMethod"),options:u,placeholder:s("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:u[d],onChange:e=>{c(e.value)}}):P.default.createElement(P.default.Fragment,null,P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},s("dueDatePage.calculationMethod")),P.default.createElement(i.StyledMethodSwitcherContainer,{"data-is-side":n},P.default.createElement(i.Dropdown,{options:u,placeholder:s("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:u[d],onChange:e=>{c(e.value)}})))),d===i.DueDateCalculatorType.lastPeriod?P.default.createElement(ge,{locale:l,onClick:a,isSide:n,siteType:r,pageUrl:m}):null,d===i.DueDateCalculatorType.conception?P.default.createElement(ue,{locale:l,onClick:a,isSide:n,siteType:r,pageUrl:m}):null,d===i.DueDateCalculatorType.IVF?P.default.createElement(me,{locale:l,onClick:a,isSide:n,siteType:r,pageUrl:m}):null)};function pe({weight:e,height:t}){const a=t/100,l=e;return Math.round(l/(a*a)*10)/10}const he=({value:l,onChange:n,onSubmit:r,disabled:d,bmiGenerated:c,bmiUnit:m,locale:g,isSide:f})=>{var p,v,y,b;const[C,w]=e.useState(!1),{control:T,handleSubmit:N,setValue:B,watch:L}=k.useForm(),D=L(),{t:_}=h.useTranslations(),{gender:I=!1,age:M=!1,height:A=!1,weight:z=!1,objective:F=!0}=d||{},{getHealthToolLink:O}=x.useHealthToolsCache(g),j=e.useMemo((()=>O(a.HEALTH_TOOL_TYPE.OVULATION)),[O]),H=e.useMemo((()=>[{value:"male",label:_("gender.male"),content:P.default.createElement(E.Icon.GenderChooseBoy,null)},{value:"female",label:_("gender.female"),content:P.default.createElement(E.Icon.GenderChooseGirl,null)}]),[]),$=e.useMemo((()=>[{value:"lose-weight",label:_("bmi.objective.loseWeight")},{value:"maintain-weight",label:_("bmi.objective.maintainWeight")},{value:"gain-weight",label:_("bmi.objective.gainWeight")}]),[]),G=()=>{w(!0)};return e.useEffect((()=>{Object.keys(l||{}).forEach((e=>{B(e,null==l?void 0:l[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[l]),e.useEffect((()=>{n&&n(D)}),[D]),P.default.createElement(i.StyledContainer$1,null,P.default.createElement("form",{onSubmit:N((e=>s.__awaiter(void 0,void 0,void 0,(function*(){const t=m.heightConvert(e.height),a=m.weightConvert(e.weight),l={gender:e.gender,age:e.age,height:t,weight:a,bmi:pe({height:t,weight:a})};F||(l.objective=e.objective),G(),r&&r(l)}))),G)},!I&&P.default.createElement(i.FormControl,{"data-is-side":f},P.default.createElement(k.Controller,{name:"gender",control:T,defaultValue:"male",render:({field:{name:e,value:t,onChange:a},fieldState:{error:l}})=>P.default.createElement(i.StyledInput,{size:"md",name:e,label:c.gender.label,CustomInput:P.default.createElement(S.RadioImageGroup,{options:H,value:t,onChange:e=>a(e),className:"bmi--input-radio_gender "+(f?"bmi-side-embed":"")}),errorMessage:C?null==l?void 0:l.message:"",className:"bmi--input bmi--input-gender"})})),P.default.createElement(i.StyledRow,{"data-is-side":f},!M&&P.default.createElement(i.FormControl,null,P.default.createElement(k.Controller,{name:"age",control:T,rules:null===(p=c.age)||void 0===p?void 0:p.rule,render:({field:{name:e,value:l,onChange:n},fieldState:{error:r}})=>P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},c.age.label),placeholder:_("healthtool.placeholder.age"),name:e,value:l,onChange:n,error:C?null==r?void 0:r.message:"",min:0})})),!A&&P.default.createElement(i.FormControl,null,P.default.createElement(k.Controller,{name:"height",control:T,rules:null===(v=c.height)||void 0===v?void 0:v.rule,render:({field:{name:e,value:l,onChange:n},fieldState:{error:r}})=>P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},c.height.label),placeholder:_("pwg.placeholder.height"),name:e,value:l,onChange:n,error:C?null==r?void 0:r.message:"",min:0})})),!z&&P.default.createElement(i.FormControl,null,P.default.createElement(k.Controller,{name:"weight",control:T,rules:null===(y=c.weight)||void 0===y?void 0:y.rule,render:({field:{name:e,value:l,onChange:n},fieldState:{error:r}})=>P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},c.weight.label),placeholder:_("pwg.placeholder.weight"),name:e,value:l,onChange:n,error:C?null==r?void 0:r.message:"",precision:1,min:0})})),!F&&P.default.createElement(i.FormControl,null,P.default.createElement(k.Controller,{name:"objective",control:T,defaultValue:"lose-weight",rules:null===(b=c.objective)||void 0===b?void 0:b.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:l}})=>P.default.createElement(i.StyledInput,{size:"md",name:e,label:c.objective.label,CustomInput:P.default.createElement(i.RadioGroup,{id:"bmi-objective",className:"bmi-objective",type:"circle",direction:"vertical",size:"small",group:"group1",options:$,value:t,onChange:a}),errorMessage:C?null==l?void 0:l.message:"",className:"bmi--input bmi--input-objective"})}))),P.default.createElement("div",{style:{display:"flex"}},P.default.createElement(i.StyledButton,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${u.domainLocales[g]}/${j}`,type:"submit"},_("bmi.submit")))))},ve=({value:a,options:l,className:n,direction:r="horizontal",onChange:o,isDisabled:s})=>{const[d,c]=e.useState(a);return P.default.createElement(i.StyledRadioImageGroup,{className:n,"data-direction":r},l.map(((e,l)=>P.default.createElement(i.StyledRadioImageItem,{"data-selected":(a||d)===e.value,"data-disabled":s,key:`health-tool${l}`,onClick:()=>{var t;t=e.value,s||(c(t),o&&o(t))}},P.default.createElement("div",null,P.default.createElement("img",{src:(a||d)===e.value?e.imageActive:e.image,className:"gender-image",alt:"",loading:"lazy"}),e.label&&P.default.createElement(t.Text,{type:"bold",className:"radio-group-item-heading",size:"label1"},e.label))))))},ye=({info:a,className:l,style:n,onChange:r,errorMessage:s={},locale:d})=>{const{t:c}=h.useTranslations(),[u,m]=e.useState(new Date),[g,f]=e.useState({age:!1,rate:!1});return e.useEffect((()=>{f({age:!1,rate:!1})}),[s]),P.default.createElement(i.StyledContainer$2,{style:n,className:l},P.default.createElement(y.Input,{className:"input-section due-date-input",label:P.default.createElement(t.Text,{size:"n1",type:"bold",color:o.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},c("targetHeartRate.ageInput")),value:i.DateToInputValue(u),name:"date",size:"md",CustomInput:P.default.createElement(i.DatePicker,{customInput:e=>P.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:i.DateToInputValue(u)})),disabledDays:{after:new Date(v.addDays(new Date,0))},locale:d,pickedDate:u,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{m(e),f((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:v.format(new Date(e),i.API_DATE_FORMAT)});r&&r(t)})(e)},placeholder:"placeholder"}),errorMessage:g.age?"":s.age}))},Ee=({info:l,className:n,style:r,onChange:s,errorMessage:d={},locale:c,onClick:m,isSide:g})=>{const{t:f}=h.useTranslations(),[p,v]=e.useState({age:!1,height:!1,weight:!1}),{getHealthToolLink:y}=x.useHealthToolsCache(c),b=e.useMemo((()=>y(a.HEALTH_TOOL_TYPE.OVULATION)),[y]),[C,w]=e.useState("male"),k=e.useMemo((()=>[{value:"male",label:f("gender.male"),content:P.default.createElement(E.Icon.GenderChooseBoy,null)},{value:"female",label:f("gender.female"),content:P.default.createElement(E.Icon.GenderChooseGirl,null)}]),[]),T=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},N=e=>{var t,a;a=e=>{v((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},l),{age:e});s&&s(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||a(t)};return e.useEffect((()=>{s&&s(Object.assign(Object.assign({},l),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),e.useEffect((()=>{v({age:!1,height:!1,weight:!1})}),[d]),P.default.createElement(i.StyledContainer$3,{style:r,className:n},P.default.createElement(i.FormControl$2,{"data-is-side":g},P.default.createElement(i.StyledInput$2,{size:"md",name:"gender",label:f("bmi.selectGender"),CustomInput:P.default.createElement(S.RadioImageGroup,{options:k,value:C,onChange:e=>w(e),className:"bmi--input-radio_gender "+(g?"bmi-side-embed":"")}),className:"bmi--input bmi--input-gender"})),P.default.createElement(i.StyledRow$2,{"data-is-side":g},P.default.createElement(i.FormControl$2,null,P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},f("bmi.ageInput")," ",P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray300,as:"span"},f("bmi.ageInput.desc"))),placeholder:f("healthtool.placeholder.age"),value:Number(l.age),onChange:e=>N(String(e)),error:p.age?"":d.age,min:0})),P.default.createElement(i.FormControl$2,null,P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},f("bmi.heightInput")," ",P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray300,as:"span"},f("bmi.heightInput.desc"))),placeholder:f("pwg.placeholder.height"),value:Number(l.height),onChange:e=>{return t=String(e),void T(t,(e=>{v((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});s&&s(t)}));var t},error:p.height?"":d.height,min:0})),P.default.createElement(i.FormControl$2,null,P.default.createElement(a.Input.Number,{label:P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray600},f("bmi.weightInput")," ",P.default.createElement(t.Text,{size:"label2",type:"bold",color:o.theme.colors.gray300,as:"span"},f("bmi.weightInput.desc"))),placeholder:f("pwg.placeholder.weight"),value:Number(l.weight),onChange:e=>{return t=String(e),v((e=>Object.assign(Object.assign({},e),{weight:!0}))),void T(t,(e=>{const t=Object.assign(Object.assign({},l),{weight:e});s&&s(t)}));var t},error:p.weight?"":d.weight,min:0,precision:1}))),P.default.createElement("div",{style:{display:"flex"}},P.default.createElement(i.StyledButton$2,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${u.domainLocales[c]}/${b}`,onClick:()=>{m(C)}},f("bmi.submit"))))};var be="eM8ChWU",Ce="KAx1aqi",we="QcFfKPB",ke="brbyNAY",Se="W65hTnn";const xe=({src:e,title:t,backgroundSrc:l,className:n,reviewedSection:r,isSide:o})=>P.default.createElement("div",{className:`${be} ${n||""}`},P.default.createElement("div",{className:Ce,style:{backgroundImage:`url("${l}")`}},P.default.createElement("div",{className:we,"data-is-side":o},P.default.createElement("div",{className:ke,"data-is-side":o},P.default.createElement(a.Heading,{tag:"h4",color:"white"},t),r),P.default.createElement("div",{className:Se},P.default.createElement("img",{src:e||"",style:{objectFit:"contain"},alt:t,loading:"lazy"})))));var Te="zvE9IoJ",Ne="njDC-ia",Be="ESkUhe9",Le="wZLIQYa";const De=({backgroundDesktopSrc:e,backgroundMobileSrc:l,title:n,className:r,isSide:i,ovulationContent:s})=>{var d,c,u;const{t:m}=h.useTranslations(),g=T.formatUserProfileUrl(null==s?void 0:s.reviewed_by);return P.default.createElement("div",{className:`${Te} ${r}`,"data-is-side":i},P.default.createElement("div",{className:Ne,style:{backgroundImage:`url('${l||e}')`}},P.default.createElement("div",{className:Le},P.default.createElement(a.Heading,{tag:"h5",color:"white"},n),(null===(d=null==s?void 0:s.reviewed_by)||void 0===d?void 0:d.display_name)?P.default.createElement(t.Text,{size:"n1",color:"white",style:{marginTop:"0.3rem"}},P.default.createElement("span",{dangerouslySetInnerHTML:{__html:m("articlePage.articleReviewerBy",{name:`<a\n style="color: white"\n href="${g}"\n >\n ${s.reviewed_by.display_name}\n </a>`})}}),P.default.createElement("span",null,m("tools.heading.on")),P.default.createElement("span",null,null==s?void 0:s.reviewed_date)):null),P.default.createElement("div",{className:Be,"data-is-side":i},P.default.createElement("img",{src:(null==s?void 0:s.featured_image)||"",style:{width:"100%",objectFit:"contain",marginTop:"20px"},alt:n,loading:"lazy"}))),P.default.createElement(xe,{className:"desktop-only",src:(null==s?void 0:s.featured_image)||"",backgroundSrc:e||l||"",title:n,reviewedSection:(null===(c=null==s?void 0:s.reviewed_by)||void 0===c?void 0:c.display_name)&&""!==(null===(u=null==s?void 0:s.reviewed_by)||void 0===u?void 0:u.display_name)&&P.default.createElement(t.Text,{size:"n1",color:o.theme.colors.white,style:{marginTop:12}},P.default.createElement("span",{dangerouslySetInnerHTML:{__html:m("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${g}"\n >\n ${s.reviewed_by.display_name}\n </a>`,date:null==s?void 0:s.reviewed_date})}}),P.default.createElement("span",null)),isSide:i}))},_e=({siteType:t,info:l,onChange:n,errorMessage:r={}})=>{const{t:s}=h.useTranslations(),[d,c]=e.useState({weightBefore:!1,height:!1,weight:!1}),[u,m]=e.useState(0),g=e.useRef(null);e.useEffect((()=>{var e;m(null===(e=g.current)||void 0===e?void 0:e.clientHeight)}));const f=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},p=e=>{f(e,(e=>{c((e=>Object.assign(Object.assign({},e),{weightBefore:!0})));const t=Object.assign(Object.assign({},l),{weightBefore:e});n&&n(t)}))},v=e=>{f(e,(e=>{c((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});n&&n(t)}))},E=e=>{f(e,(e=>{c((e=>Object.assign(Object.assign({},e),{weight:!0})));const t=Object.assign(Object.assign({},l),{weight:e});n&&n(t)}))};return e.useEffect((()=>{n&&n(Object.assign({},l))}),[]),e.useEffect((()=>{c({weightBefore:!1,height:!1,weight:!1})}),[r]),"marryBaby"===t?P.default.createElement(P.default.Fragment,null,P.default.createElement("div",{className:"input-form-pwg input-section"},P.default.createElement(i.StyledTextField,{label:s("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==l?void 0:l.height,CustomInput:P.default.createElement(y.Input,{className:(null==d?void 0:d.height)?"":"error-input",name:"pwg-height",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.height,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==d?void 0:d.height)?"":null==r?void 0:r.height,showErrorMessage:!1,onChange:v})})),P.default.createElement("div",{className:"input-form-pwg input-section"},P.default.createElement(i.StyledTextField,{label:s("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==l?void 0:l.weightBefore,CustomInput:P.default.createElement(y.Input,{className:(null==d?void 0:d.weightBefore)?"":"error-input",name:"pwg-weightBefore",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.weightBefore,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==d?void 0:d.weightBefore)?"":null==r?void 0:r.height,showErrorMessage:!1,onChange:p})})),P.default.createElement("div",{className:"input-form-pwg input-section"},P.default.createElement(i.StyledTextField,{label:s("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==l?void 0:l.weight,CustomInput:P.default.createElement(y.Input,{className:(null==d?void 0:d.weight)?"":"error-input",name:"pwg-weight",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.weight,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==d?void 0:d.weight)?"":null==r?void 0:r.weight,showErrorMessage:!1,onChange:E})}))):P.default.createElement(P.default.Fragment,null,P.default.createElement("div",{className:"input-form-pwg"},P.default.createElement(a.PureInput,{placeholder:s("pwg.placeholder.height"),className:"input-section",label:P.default.createElement("span",{style:{color:o.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px"},className:"label-text"},s("pregnancyWeightGain.heightInput")," ",P.default.createElement("span",{style:{color:`${o.theme.colors.gray300}`}},s("bmi.heightInput.desc"))),errorMessage:d.height?"":null==r?void 0:r.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==l?void 0:l.height,onChange:v})),P.default.createElement("div",{className:"input-form-pwg"},P.default.createElement(a.PureInput,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:P.default.createElement("span",{style:{color:o.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px"},ref:g,className:"label-text"},s("pregnancyWeightGain.weightBeforeInput")," ",P.default.createElement("span",{style:{color:`${o.theme.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:d.weightBefore?"":null==r?void 0:r.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:p,value:null==l?void 0:l.weightBefore})),P.default.createElement("div",{className:"input-form-pwg"},P.default.createElement(a.PureInput,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:P.default.createElement("span",{style:{color:o.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px",minHeight:u},className:"label-text"},s("pregnancyWeightGain.weightInput")," ",P.default.createElement("span",{style:{color:`${o.theme.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:d.weight?"":null==r?void 0:r.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==l?void 0:l.weight,onChange:E})))};const Ie={"en-PH":H.default,"vi-VN":G.default,"zh-TW":R.default,"id-ID":$.default};function Me(t){const{value:l={from:null,to:null}}=t,[n,r]=e.useState(null),{isMobile:o}=a.useScreenSize(),[s,d]=e.useState((()=>l)),[c,u]=e.useState((()=>{var e;return v.startOfMonth(null!==(e=l.from)&&void 0!==e?e:new Date)})),m=e.useMemo((()=>v.addMonths(c,1)),[c]);const g=Object.assign(Object.assign({},t),{goToNextMonth:function(){u((e=>v.addMonths(e,1)))},goToPreviousMonth:function(){u((e=>v.subMonths(e,1)))},range:s,setRange:d,hoverDay:n,setHoverDay:r});return P.default.createElement(P.default.Fragment,null,P.default.createElement(Ae,Object.assign({},g,{date:c})),!o&&P.default.createElement(i.StyledCalendarMonthSeparator,null),!o&&P.default.createElement(Ae,Object.assign({},g,{date:m})))}function Ae({date:t,range:a,setRange:l,onChange:n,goToPreviousMonth:o,goToNextMonth:s,minDate:d,maxDate:c,close:u=(()=>{}),autoClose:m=!1,hoverDay:g,setHoverDay:f}){const{locale:p}=h.useTranslations(),y=e.useMemo((()=>{var e;return null!==(e=Ie[p])&&void 0!==e?e:Ie["en-PH"]}),[p]),E=e.useMemo((()=>v.format(t,"MMMM",{locale:y})),[t,y]),b=e.useMemo((()=>y?[1,2,3,4,5,6,0].map((e=>y.localize.day(e,{width:"narrow"}))):[]),[y]);function C(e,t){if(null===e)return P.default.createElement(i.StyledCalendarDayNumberWrapper,{key:`idx-${t}`,"data-empty":"true"});const n=e.getDate(),r=v.isToday(e),o=!!a.from&&v.isSameDay(a.from,e),s=!!a.to&&v.isSameDay(a.to,e),p=o||s;let h=!1;null!==g&&a.from&&v.isBefore(a.from,g)&&!a.to?h=v.isWithinInterval(e,{start:a.from,end:g}):a.from&&a.to&&(h=v.isWithinInterval(e,{start:a.from,end:a.to}));let y=!1;return d&&c?y=!v.isWithinInterval(e,{start:d,end:c}):d?y=v.isBefore(e,d):c&&(y=v.isAfter(e,c)),P.default.createElement(i.StyledCalendarDayNumberWrapper,{key:n,"data-is-today":r,"data-is-past":!r&&v.isPast(e),"data-is-selected":p,"data-is-disabled":y,"data-in-range":h,"data-is-from":o,"data-is-to":s,onMouseEnter:()=>{f(e)},onMouseLeave:()=>f(null),onClick:()=>{y||l((t=>(m&&a.from&&!a.to&&u(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?v.isBefore(e,t.from)?Object.assign(Object.assign({},t),{from:e}):Object.assign(Object.assign({},t),{to:e}):t:Object.assign(Object.assign({},t),{from:e})}(e,t))))}},P.default.createElement(i.StyledCalendarDayNumber,{onClick:()=>{}},P.default.createElement("p",null,n)))}return e.useEffect((()=>{a.from&&a.to&&n(a)}),[a]),P.default.createElement(i.StyledCalendarWrapper,{className:"calendar-wrapper"},P.default.createElement(i.StyledCalendarHead,null,P.default.createElement(I.Button,{onClick:o,size:"md",color:"ghost",icon:P.default.createElement("img",{src:r.CommonGAssets.getAssetPath("calendarArrowLeft.svg"),loading:"lazy"})}),P.default.createElement("div",{className:"calendar-month"},E,P.default.createElement("strong",null,v.format(t,"yyyy"))),P.default.createElement(I.Button,{onClick:s,size:"md",color:"ghost",icon:P.default.createElement("img",{src:r.CommonGAssets.getAssetPath("calendarArrowRight.svg"),loading:"lazy"})})),P.default.createElement(i.StyledCalendarCellsWrapper,null,P.default.createElement("div",null,P.default.createElement(i.StyledCalendarDaysOfWeek,null,b.map(((e,t)=>P.default.createElement(i.StyledCalendarDayLabel,{key:`${e}-${t}`},e))))),P.default.createElement("div",null,function(){const e=t.getFullYear(),l=t.getMonth(),n=v.getDaysInMonth(t),r=[];for(let t=1;t<=n;t++)r.push(new Date(e,l,t));const o=r[0]?r[0].getDay():0;if(1!==o){const e=0===o?6:o-1;for(let t=0;t<e;t++)r.unshift(null)}return P.default.createElement(i.StyledCalendarMonthWrapper,{key:`month-${l}`,"data-month-index":l,"data-has-range":Boolean(a.from&&a.to)},P.default.createElement(i.StyledCalendarDaysWrapper,null,P.default.createElement(i.StyledCalendarDateGrid,null,r.map(C))))}())))}var ze="WUqzfRb",Pe="MnVGtSY",Fe="NclbhXQ";const Oe=({LinkComponent:e,page:t,isLast:a,onChangePage:l})=>{const{label:n,value:r,isDropdown:o,dropdownItems:s,dataEventCategory:d,dataEventAction:c,dataEventLabel:u}=t;return o?P.default.createElement(i.Dropdown,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:l,className:"collapsed-breadcrumb"}):P.default.createElement("div",{className:Fe,title:"string"!=typeof n?r:n,"data-last":a},e&&P.default.createElement(e,{"data-event-category":d,"data-event-action":c,"data-event-label":u,href:r||"#"},n))},je=()=>P.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),P.default.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})),He=()=>P.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"copy"},P.default.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"}));exports.Alert=({style:e,onClose:a,text:l,type:n,contentIcon:r,closeIcon:o,className:i,description:s})=>P.default.createElement("div",{className:`${W} ${i||""}`,style:e,"data-alert-type":n},P.default.createElement("div",{className:U},P.default.createElement("div",{className:"icon-title"},r,P.default.createElement(t.Text,{type:"bold",size:"label1"},l)),P.default.createElement(t.Text,{type:"regular",size:"p3"},s)),P.default.createElement("div",{className:V,onClick:a},o)),exports.ArticleCard=({articleLink:e,authorLink:l,authorName:n,avatarImg:o,banner:s,categoryLink:d,categoryName:c,className:u,dataEventActionForBanner:m,dataEventActionForBookmark:g,dataEventActionForCategory:f,dataEventActionForTitle:p,dataEventCategoryForBanner:h,dataEventCategoryForBookmark:v,dataEventCategoryForCategory:y,dataEventCategoryForTitle:E,dataEventLabelForBanner:b,dataEventLabelForBookmark:C,dataEventLabelForCategory:w,dataEventLabelForTitle:k,direction:S="horizontal",hasAffiliate:x,isBookmark:T=!1,isBookmarkDisplayed:N=!0,isMobile:B=!0,onBookmark:L,onClickCategoryName:D,section:_="normal",size:I="md",specialty:M,style:A,styleBanner:z,styleLabel:F,styleTitle:O,text:j,title:H,type:$="author",uploadTime:G,articleLinkTarget:R,isPremium:W})=>{const U=e=>{e.stopPropagation(),null==L||L()},V="lg"===I&&"expert"===$?"h4":"lg"===I&&"home"===_?B?"h4":"h3":"lg"===I?"h4":"h5",q="lg"===I?"p3":"p4",Z=B||"home"!==_||"lg"!==I||"author"!==$?"c2":"c1";return P.default.createElement("article",{className:`${ee} ${u||""}`,"data-size":I,style:A,"data-direction":S,"data-is-expert":"expert"===$||void 0},P.default.createElement("div",{className:"banner",style:z},P.default.createElement("a",{className:J,"data-event-category":h,"data-event-action":m,"data-event-label":b,href:e||"#",target:R},s),W&&P.default.createElement("img",{loading:"lazy",className:"premium",src:r.CommonGAssets.getAssetPath("premium-crown.svg")}),x&&P.default.createElement(i.AffiliateIcon,null)),P.default.createElement("div",{className:"content"},P.default.createElement("div",{className:"inner-content"},P.default.createElement(t.Text,{style:F,className:"label",size:Z,type:"caption"},P.default.createElement("a",{className:J,"data-event-category":y,"data-event-action":f,"data-event-label":w,href:d||"#",onClick:D},c),N&&P.default.createElement("a",{className:"bookmark",onClick:U},T?P.default.createElement(i.BookmarkedIcon,{dataEventCategoryForBookmark:v,dataEventActionForBookmark:g,dataEventLabelForBookmark:C}):P.default.createElement(i.UnbookmarkedIcon,{dataEventCategoryForBookmark:v,dataEventActionForBookmark:g,dataEventLabelForBookmark:C}))),P.default.createElement(a.Heading,{tag:V,style:O,className:"title",as:"lg"===I?"h2":"h3"},P.default.createElement("a",{className:J,"data-event-category":E,"data-event-action":p,"data-event-label":k,href:e||"#",target:R},H)),j&&P.default.createElement("a",{href:e||"#",target:R},P.default.createElement(t.Text,{size:q,className:"text"},j))),P.default.createElement("div",{className:"footer"},"author"===$?P.default.createElement(ae,{size:I,avatarImg:o,authorName:n,authorLink:l,uploadTime:G,handleClick:U,isBookmarked:T,dataEventCategoryForBookmark:v,dataEventActionForBookmark:g,dataEventLabelForBookmark:C}):P.default.createElement(le,{size:I,isMobile:B,avatarImg:o,specialty:M,name:n,link:l,handleClick:U,isBookmarked:T,dataEventCategoryForBookmark:v,dataEventActionForBookmark:g,dataEventLabelForBookmark:C}))))},exports.ArticleCard$1=e=>{var{variant:t="vertical"}=e,a=s.__rest(e,["variant"]);return"horizontal"===t?P.default.createElement(ne,Object.assign({},a)):P.default.createElement(ie,Object.assign({},a))},exports.BMICardEmbed=({isMobile:e,onSubmit:a,bmiContent:l,isSide:n,bmiGenerated:s,bmiUnit:d,bmiLink:c,locale:u})=>{var m,g,f;const{t:p}=h.useTranslations();return P.default.createElement(i.StyledContainer,{"data-is-side":n},P.default.createElement(i.ToolsBannerCard,{isSide:n,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"},loading:"lazy"}),heading:p("bmi.heading"),medicalReview:(null===(m=null==l?void 0:l.reviewBy)||void 0===m?void 0:m.reviewer)?P.default.createElement(t.Text,{size:"n1",color:o.theme.colors.white},P.default.createElement("span",{dangerouslySetInnerHTML:{__html:p("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${(null===(g=null==l?void 0:l.reviewBy)||void 0===g?void 0:g.link)||"#"}"\n >\n ${l.reviewBy.reviewer}\n </a>`,date:null===(f=null==l?void 0:l.reviewBy)||void 0===f?void 0:f.date})}}),P.default.createElement("span",null)):void 0,isMobile:e}),P.default.createElement(E.Container,null,P.default.createElement(i.StyledContent,{as:"div","data-is-side":n},c&&P.default.createElement(he,{onSubmit:a,bmiGenerated:s,locale:u,bmiUnit:d,isSide:n}))))},exports.BMRCardEmbed=({isSide:e,locale:a,bmrContent:l,isMobile:n,info:s,inputErrorMessage:d,onFormChange:c,onSubmit:u})=>{var m,g,f;const{t:p}=h.useTranslations();return P.default.createElement(i.StyledContainer,{"data-is-side":e},P.default.createElement(i.ToolsBannerCard,{isSide:e,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"},loading:"lazy"}),heading:p("bmr.heading"),medicalReview:(null===(m=null==l?void 0:l.reviewBy)||void 0===m?void 0:m.reviewer)?P.default.createElement(t.Text,{size:"n1",color:o.theme.colors.white},P.default.createElement("span",{dangerouslySetInnerHTML:{__html:p("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${(null===(g=null==l?void 0:l.reviewBy)||void 0===g?void 0:g.link)||"#"}"\n >\n ${l.reviewBy.reviewer}\n </a>`,date:null===(f=null==l?void 0:l.reviewBy)||void 0===f?void 0:f.date})}}),P.default.createElement("span",null)):void 0,isMobile:n}),P.default.createElement(E.Container,null,P.default.createElement(i.StyledContent,{onSubmit:e=>e.preventDefault(),"data-is-side":e},P.default.createElement(i.StyledInputForm,null,P.default.createElement(Ee,{info:s,locale:a,errorMessage:d,onChange:c,onClick:u,isSide:e})))))},exports.BabyGrowthCardEmbed=({isMobile:e,className:a,onSubmit:l,onError:n,schema:s,babyGrowthContent:d,siteType:c})=>{var u;const{t:m}=h.useTranslations();return P.default.createElement(i.StyledContainer,{"babyGrowthContent-is-mobile":e,"data-site":c},P.default.createElement(i.ToolsBannerCard,{siteType:c,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===c&&o.theme.mbColors.mint,isEmbeded:!0,icon:P.default.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==d?void 0:d.featuredImage)||"",loading:"lazy"}),heading:(null==d?void 0:d.title)||"",medicalReview:(null===(u=null==d?void 0:d.reviewBy)||void 0===u?void 0:u.reviewer)?P.default.createElement(t.Text,{size:"label2",color:o.theme.colors.white,className:"embedded-review",dangerouslySetInnerHTML:{__html:m("toolPage.toolReviewer",{expert_name:`<a style="color: white" href="${d.reviewBy.link||"#"}">${d.reviewBy.reviewer.trim()}</a>`,date:d.reviewBy.date})}}):void 0,isMobile:e}),P.default.createElement(i.StyledBabyGrowthWrapper,{"data-theme":c},P.default.createElement(i.StyleForm,{siteType:c,schema:s,className:a,onSubmit:l,onError:n})))},exports.BabyPoopEmbed=({babyPoopPage:e,onClickFindOut:t,currentUrl:l,isSide:n,direction:s="auto",sponsorLogo:c})=>{const{t:u}=h.useTranslations(),m="mb"===d.useMantineTheme().other.template,{classes:g}=i.useStyles$2({isMarryBaby:m,isSide:n,direction:s},{name:"BabyPoopEmbed"}),{reviewedBy:f,reviewedDate:p}=e||{};return P.default.createElement("div",{className:g.root},P.default.createElement("div",{className:g.inner},P.default.createElement(a.Heading,{tag:"h3",as:"h2",color:!m&&"#284A75"},e.title),P.default.createElement("div",{className:g.content,"data-is-side":n},P.default.createElement(a.Text,{size:"p3",className:"description"},e.description),!!f&&P.default.createElement("div",{className:g.reviewText},P.default.createElement("img",{src:r.CommonGAssets.getAssetPath("reviewerCheck.svg"),alt:"check",className:g.reviewTextIcon,loading:"lazy"}),P.default.createElement(a.Text,{size:"p4",color:o.theme.colors.gray600},u("categoryPage.info.reviewed")," ",P.default.createElement("a",{href:f.profile_url},f.display_name)," ",u("categoryPage.onDate",{date:p||""}))),P.default.createElement("div",{className:g.action},P.default.createElement(a.Button,{className:g.btn,size:m?"lg":"md",variant:m?"secondary":"primary",onClick:t,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:l,style:{visibility:Boolean(t)?"visible":"hidden"}},u("babyPoop.findOut"))))),P.default.createElement("div",{className:g.thumbnail},P.default.createElement("img",{src:m?r.CommonGAssets.getAssetPath("baby-poop.svg"):null==e?void 0:e.featuredImage,alt:e.title,loading:"lazy"})),c&&P.default.createElement("img",{loading:"lazy",src:c,alt:"sponsor",className:g.sponsorLogo}))},exports.Badge=({amount:e,type:t,size:l="medium",color:n="primary",icon:r,className:o})=>P.default.createElement(a.StyledBadge,{"data-notification-type":t,"data-notification-size":l,"data-notification-color":n,"data-has-icon":!!r||void 0,notificationType:t,notificationSize:l,notificationColor:n,hasIcon:!!r,className:o},P.default.createElement("div",null,e&&P.default.createElement("span",null,e)," ",r&&P.default.createElement("div",null,r))),exports.BorderHeading=({style:e,children:t,className:l,size:n="lg",type:r="bold",upperCase:o,as:i="h4",color:s})=>P.default.createElement(a.StyledBorderHeading,{style:Object.assign({color:s},e),className:l,"data-size":n,"data-type":r,"data-uppercase":o,as:i},t),exports.Breadcrumbs=({className:t,pages:a,size:l,LinkComponent:n="a",onChangePage:r,separator:o})=>{const i=e.useMemo((()=>a.map(((e,t)=>a.length>4?t>1&&t<a.length-2?null:1===t?Object.assign(Object.assign({},e),{isDropdown:1===t,dropdownItems:a.slice(1,a.length-2)}):e:e)).filter(Boolean)),[a]);return P.default.createElement("div",{"data-size":l,className:`${ze} ${t||""}`},i.map(((t,a)=>{const s=a+1===i.length;return P.default.createElement(e.Fragment,{key:a},P.default.createElement(Oe,{LinkComponent:n,page:t,isLast:s,onChangePage:r}),!s&&(t.separator||o||P.default.createElement("div",{className:Pe,"data-size":l})))})))},exports.CategoryCard=e=>{var{category:t,imgBanner:l,label:n,className:r,style:o,href:d="",dataEventCategory:c,dataEventAction:u,dataEventLabel:m}=e,g=s.__rest(e,["category","imgBanner","label","className","style","href","dataEventCategory","dataEventAction","dataEventLabel"]);const p=(null==t?void 0:t.customizedUrl)||(null==t?void 0:t.permalink)||d||"";return P.default.createElement(i.StyledCategoryCard,Object.assign({"data-event-category":c,"data-event-action":u,"data-event-label":m,className:r,style:o,href:p},(null==t?void 0:t.customizedUrl)&&!f.isInternalLink(t.customizedUrl)&&{target:"_blank"},{onClick:e=>{""===p&&e.preventDefault()}},g),P.default.createElement("div",{className:"banner"},l),P.default.createElement("div",{className:"content"},P.default.createElement(a.Text,{className:"category_name",size:"sm",weight:"bold"},(null==t?void 0:t.displayName)||n||"")))},exports.Checkbox=Z,exports.CheckboxGroup=({name:e,values:t=[],onChanges:a,options:l=[],className:n,type:r="vertical",isDisabled:o,isRectangle:s})=>{const d=(e,l)=>{const n=t.slice();if(l)n.push(e);else{const t=n.findIndex((t=>t===e));n.splice(t,1)}a&&a(n)};return P.default.createElement(i.StyledCheckboxGroup,{className:n,"data-type":r,"data-is-rectangle":s||void 0},l.map(((a,l)=>P.default.createElement(Z,{label:a.label,name:e,key:`${l}-${a.value}`,checked:t.includes(a.value),value:a.value,isDisabled:o||a.disabled,onChange:!o&&d,isRectangle:s}))))},exports.CookieAcceptConfirm=({className:e,policiesUrl:t,onAcceptClick:a,translations:l={acceptButton:"Accept",policiesButton:"Our Policies"},title:n="",description:r="",theme:o="helloSites",isOpen:s=!0,useDefaultPosition:d=!0,trackingAttributes:c})=>P.default.createElement(i.StyledAcceptCardContainer,{className:e,"data-theme":o,"data-is-open":s,"data-default-position":d},P.default.createElement(i.StyledTitleSection,{"data-has-content":!!n},n),P.default.createElement(i.StyledDescription,{dangerouslySetInnerHTML:{__html:r}}),P.default.createElement(i.StyledButtonGroup,null,P.default.createElement(i.StyledAcceptButton,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:a,"data-event-category":null==c?void 0:c.dataEventCategory,"data-event-action":null==c?void 0:c.dataEventAction,"data-event-label":null==c?void 0:c.dataEventLabel},l.acceptButton),P.default.createElement(i.StyledPoliciesButton,{href:t},l.policiesButton))),exports.DateRangePicker=function({inputSize:t="md",name:l="date-range-picker",value:n,minDate:o,maxDate:s,onChange:d,className:c,autoClose:u=!1}){n||(n={from:null,to:null});const[m,g]=e.useState(!1);function f(){g(!1)}const p=e.useRef(null);function h(e){d&&d(e)}function y(e){return v.format(e,"dd/MM/yyyy")}N.useOutsideClick(p,(()=>{f()}));const E=e.useMemo((()=>n.from&&n.to?v.isSameDay(n.from,n.to)?y(n.from):`${y(n.from)} - ${y(n.to)}`:""),[n.from,n.to]);return P.default.createElement(i.StyledWrapper,{className:[c,m&&"focused"].filter(Boolean).join(" "),ref:p},P.default.createElement("label",{htmlFor:l},P.default.createElement(a.PureInput,{size:t,value:E,name:l,actionIcon:P.default.createElement("img",{src:r.CommonGAssets.getAssetPath("calendar.svg"),loading:"lazy"}),onFocus:()=>g(!0)})),m?P.default.createElement(i.StyledCalendarWrapper$1,{onMouseDown:e=>{e.stopPropagation()}},P.default.createElement(Me,{value:n,onChange:h,minDate:o,maxDate:s,close:f,autoClose:u})):null)},exports.DueDateCardEmbed=({isMobile:e,locale:a,onSubmitDueDate:l,dueDatePageInfo:n,expertUrl:s,isSide:d,siteType:c})=>{var u;const{t:m}=h.useTranslations();return P.default.createElement(i.StyledContainer,{"data-is-side":d,"data-site":c},P.default.createElement(i.ToolsBannerCard,{isSide:d,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),siteType:c,bannerColor:"marryBaby"===c&&o.theme.mbColors.mint,isEmbeded:!0,icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==n?void 0:n.featured_image,style:"marryBaby"!==c?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null,loading:"lazy"}),heading:m("healthTools.dueDateCalculator"),medicalReview:(null===(u=null==n?void 0:n.reviewed_by)||void 0===u?void 0:u.display_name)?P.default.createElement(t.Text,{size:"label2",color:o.theme.colors.white,dangerouslySetInnerHTML:{__html:m("toolPage.toolReviewer",{expert_name:`<a style="text-decoration: underline" href="${s}">${null==n?void 0:n.reviewed_by.display_name}</a>`,date:null==n?void 0:n.reviewed_date})}}):void 0,isMobile:e}),P.default.createElement(i.StyledContent,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":d},P.default.createElement(fe,{siteType:c,locale:a,onSubmitDueDate:l,isSide:d})))},exports.FileDropdown=({className:t,value:l,options:n,onUploadSelected:r,id:o,placeholderIcon:i,placeholder:s,style:d})=>{const[c,u]=e.useState(!1),m=()=>u(!c),g=e.useRef(n.map((e=>"upload"===e.type&&P.default.createElement("input",{id:"uploader-dropdown-input-"+o+"-"+e.value,key:"uploader-dropdown-input-"+o+"-"+e.value,accept:e.fileAcceptedType,multiple:e.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),r(e.target.files)}})))),f=P.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.17 14.83"},P.default.createElement("defs",null,P.default.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},P.default.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"})),P.default.createElement("style",null,".prefix__cls-3{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),P.default.createElement("title",null,"File"),P.default.createElement("g",{clipPath:"url(#prefix__clip-path)"},P.default.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),P.default.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),p=P.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},P.default.createElement("defs",null,P.default.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),P.default.createElement("title",null,"download"),P.default.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),h=P.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},P.default.createElement("defs",null,P.default.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),P.default.createElement("title",null,"upload"),P.default.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"}));return P.default.createElement(a.StyledDropdown,{className:t,"data-dropdown-open":!!c,id:o,"data-has-icons":!0,style:d,onBlur:()=>u(!1),tabIndex:0},P.default.createElement(a.StyledDropdownName,{onClick:m},i||f," ",P.default.createElement("span",null,l&&l.value?l.label:s)),c&&P.default.createElement(a.StyledDropdownList,{onClick:m,"data-has-icons":!0},n.map((e=>P.default.createElement(a.StyledDropdownOption,{key:`${o}-${e.value}`,"data-selected":l&&l.value===e.value||void 0,onClick:()=>{return"upload"===e.type?(a="#uploader-dropdown-input-"+o+"-"+e.value,void(null===(l=document.querySelector(a))||void 0===l||l.click())):void((t=e.url)&&window.open(t,"_blank"));var t,a,l}},P.default.createElement(a.StyledIcon,null,e.icon||"download"===e.type?p:h),e.label)))),P.default.createElement(P.default.Fragment,null,g.current))},exports.FixedBottomAdBlock=({className:t,adUnitPath:a,divId:l,isMobile:n,contentId:r,customTargetings:o,locale:s,isMarryBaby:d})=>{const[c,u]=e.useState(!0),[m,g]=e.useState(!1),[f,p]=e.useState(!0),h=e.useRef(null),v=e.useRef(A.v4()),y=e.useRef(null),E=e.useRef(),b=e.useRef();return e.useEffect((()=>{const e=()=>{b.current&&clearTimeout(b.current),b.current=setTimeout((()=>{var t;document.getElementById("subot--container")?u(!0):(u(!1),(null===(t=h.current)||void 0===t?void 0:t.clientHeight)?p(!1):p(!0)),e()}),4e3)};return e(),()=>{E.current&&clearTimeout(E.current),b.current&&clearTimeout(b.current)}}),[]),c||m?null:P.default.createElement(i.StyledFixedAdBlock,{key:n?"mobile":"desktop",ref:y,className:t,"data-visible":!f},a&&P.default.createElement(i.AdBlock,{wrapperProps:{m:0},ref:h,adUnitPath:a,size:n?[[320,50],[320,100]]:[728,90],divId:(l||"div-gpt-ad-sticky")+(n?"-mobile":"")+r+String(v.current),pos:["Sticky"],contentId:r,hideIfHasSubot:n,customTargetings:o,adDefaultSize:n?[320,50]:[728,90],showCloseBtn:!0,onCloseAd:()=>g(!0),refreshInterval:60,locale:s,isMarryBaby:d}))},exports.FloatButtonGroup=({items:t,className:a,style:l,backgroundPanelStyle:n,isOpen:r,onOpen:o,onClose:s,disableBackdropClick:d,siteType:c="hb",animationType:u="zoom",zIndex:m=300})=>{const[g,f]=e.useState(!!r);e.useEffect((()=>{f(!!r)}),[r]);const p=()=>{f(!1),s&&s()};return P.default.createElement(i.StyledFloatButtonGroup,{style:l,className:a,"data-floatmenu-open":g,"data-site-type":c,"data-animation-type":u},P.default.createElement(i.StyledFloatButtonGroupBackgroundPanel,{className:"float-button-group__panel",style:Object.assign({zIndex:m},n),onClick:d?void 0:p}),P.default.createElement(i.StyledFloatButtonGroupContent,{className:"float-button-group___content",style:{zIndex:m}},P.default.createElement(i.StyledFloatButtonGroupItemsWrapper,null,t.map(((e,a)=>P.default.createElement(i.StyledFloatButtonGroupButton,{className:`float-item-button-${a}`,style:Object.assign(Object.assign({},"zoom"===u&&{bottom:64*(t.length-1-a),transitionDelay:i.TRANSITION_TIMING/t.length*(g?t.length-1-a:a)+"ms"}),"slide"===u&&{bottom:64*(t.length-1-a),transitionDelay:i.TRANSITION_TIMING/t.length*(g?a:t.length-1-a)+"ms"}),key:a,onClick:()=>{e.onClick(),e.keepMenuOnClick||f(!1)}},P.default.createElement(i.StyledFloatButtonGroupButtonLabel,{style:Object.assign({},"zoom"===u&&{transitionDelay:i.TRANSITION_TIMING/t.length*(g?t.length-1-a:a)+"ms"})},e.label),P.default.createElement(i.StyledFloatButtonGroupButtonIcon,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===u||"slide"===u)&&{transitionDelay:i.TRANSITION_TIMING/t.length*(g?t.length-1-a:a)+"ms"})},e.icon))))),P.default.createElement(i.StyledFloatButtonGroupToggleIcon,{onClick:g?p:()=>{f(!0),o&&o()}})))},exports.Grid=({className:e,columns:t,columnsDesktop:l,gridTemplateColumns:n,gridTemplateColumnsDesktop:r,gap:o,children:i,justifyChildren:s,style:d,alignItems:c})=>P.default.createElement(a.StyledGrid,{className:e,style:d,theme:{columns:t,columnsDesktop:l,gap:o,justifyChildren:s,gridTemplateColumns:n,gridTemplateColumnsDesktop:r,alignItems:c}},i),exports.IconText=({size:e,iconPosition:t,className:a,children:l,icon:n})=>P.default.createElement(i.StyledIconText,{className:a,"data-size":e,"data-icon-position":t},"left"===t&&n,l,"right"===t&&n),exports.OvulationCardEmbed=({onSubmitOvulation:e,locale:a,ovulationPageInfo:l,ovulationContent:n,expertUrl:s,isSide:d=!1,siteType:c,isMobile:u})=>{var m;const{t:g}=h.useTranslations(),f=T.formatOvulationInfo(l||null);return P.default.createElement(i.StyledContainer,{"data-is-side":d,"data-site":c},"marryBaby"!==c?P.default.createElement(De,{backgroundDesktopSrc:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),backgroundMobileSrc:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),title:g("healthTools.ovulationCalculator"),reviewedBy:f.reviewedBy,reviewedDate:f.reviewedDate,ovulationContent:n,isSide:d}):P.default.createElement(i.ToolsBannerCard,{isSide:d,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),siteType:c,bannerColor:"marryBaby"===c&&o.theme.mbColors.mint,isEmbeded:!0,icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:"marryBaby"!==c?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null,loading:"lazy"}),heading:g("healthTools.ovulationCalculator"),medicalReview:(null===(m=null==l?void 0:l.reviewed_by)||void 0===m?void 0:m.display_name)?P.default.createElement(t.Text,{size:"label2",color:o.theme.colors.white,dangerouslySetInnerHTML:{__html:g("toolPage.toolReviewer",{expert_name:`<a style="text-decoration: underline" href="${s}">${l.reviewed_by.display_name}</a>`,date:l.reviewed_date})}}):void 0,isMobile:u}),P.default.createElement(i.StyledContent,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":d},P.default.createElement(i.OvulationCalculator,{siteType:c,locale:a,onSubmitOvulation:e,isSide:d})))},exports.PWGCardEmbed=({locale:l,onClick:n,inputErrorMessage:s,pwgContent:d,onFormChange:c,info:m,isMobile:g,isSide:f=!1,siteType:p})=>{var v;const{t:y}=h.useTranslations(),[b,C]=e.useState("notwins"),[w,k]=e.useState({label:"1",value:1}),S=e.useMemo((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:N}=x.useHealthToolsCache(l),B=e.useMemo((()=>N(a.HEALTH_TOOL_TYPE.PWG)),[N]),L=(null===(v=null==d?void 0:d.reviewedBy)||void 0===v?void 0:v.display_name)?P.default.createElement(t.Text,{size:"n1",color:o.theme.colors.white,dangerouslySetInnerHTML:{__html:y("toolPage.toolReviewer",{expert_name:`<a style="text-decoration: underline" href="${T.formatUserProfileUrl(d.reviewedBy)}">${d.reviewedBy.display_name}</a>`,date:d.reviewedDate})}}):void 0;return P.default.createElement(i.StyledContainer,{"data-is-side":f,"data-site":p},P.default.createElement(i.ToolsBannerCard,{siteType:p,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),bannerColor:"marryBaby"===p&&o.theme.mbColors.mint,isEmbeded:!0,icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==d?void 0:d.featuredImage,style:"marryBaby"!==p?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null,loading:"lazy"}),heading:y("pregnancyWeightGain.heading"),medicalReview:L,isMobile:g,isSide:f}),P.default.createElement(E.Container,null,P.default.createElement(i.StyledContent,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":f},"marryBaby"!==p&&P.default.createElement(i.StyledTwins,{className:"hide-asking-mobile","data-is-side":f},P.default.createElement(E.Label,{size:"label2",style:{display:"block",fontWeight:"bold",color:o.theme.colors.gray600,fontSize:"12px"},className:"label",htmlFor:"gender-selector"},y("pregnancyWeightGain.havingTwins")),P.default.createElement(i.StyledRadioGroup,{options:[{value:"twins",label:y("switchBtn.yes")},{value:"notwins",label:y("switchBtn.no")}],value:b,onChange:e=>C(e),className:"gender-selector",id:"twins-check",type:"circle",direction:"horizontal",size:"small",group:"group1"})),P.default.createElement(i.StyledInputWrapper,null,P.default.createElement(i.StyledFormInput,{className:"input-section input-form-pwg","data-is-side":f},"marryBaby"===p?P.default.createElement(i.StyledDropDown,{groupedWithLabel:y("pregnancyWeightGain.weekInput"),options:S,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:w,onChange:e=>k({label:e.label,value:e.value})}):P.default.createElement(P.default.Fragment,null,P.default.createElement(E.Label,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:o.theme.colors.gray600,fontWeight:"bold",fontSize:"12px"},htmlFor:"gender-selector"},y("pregnancyWeightGain.weekInput")),P.default.createElement(i.Dropdown,{options:S,placeholder:String(w.label),id:"weight-gain-dropdown",size:"md",value:w,onChange:e=>k({label:e.label,value:e.value})}))),P.default.createElement(_e,{siteType:p,info:m,errorMessage:s,onChange:c})),"marryBaby"!==p&&P.default.createElement(i.StyledTwins,{className:"hide-asking-desk","data-is-side":f},P.default.createElement(E.Label,{size:"label2",style:{display:"block",fontWeight:"bold",color:o.theme.colors.gray600,fontSize:"12px"},className:"label",htmlFor:"gender-selector"},y("pregnancyWeightGain.havingTwins")),P.default.createElement(i.StyledRadioGroup,{options:[{value:"twins",label:y("switchBtn.yes")},{value:"notwins",label:y("switchBtn.no")}],value:b,onChange:e=>C(e),className:"gender-selector",id:"twins-check-mobile",type:"circle",direction:"horizontal",size:"small",group:"group1"})),"marryBaby"===p&&P.default.createElement(Z,{name:"twins",label:y("pregnancyWeightGain.havingTwins"),checked:"twins"===b,siteType:"marryBaby",onChange:()=>{C("twins"===b?"notwins":"twins")},value:"twins"}),P.default.createElement(i.StyledSubmitButton,{"data-is-side":f,"data-site":p},P.default.createElement(a.Button,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${u.domainLocales["marryBaby"===p?"vi-VN_MB":l]}/${B}`,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===p?"secondary":"primary",onClick:()=>n(b,w.value),role:"button"},y("dueDatePage.lastPeriod.calculate"))))))},exports.Pagination=({className:t,pagesAmount:n,currentPage:r,onChange:o,onClick:i,style:s,href:d,queryPageName:c="page"})=>{const u=[...Array(n)].map(((e,t)=>t+1)),[m,g]=e.useState(r),f=e.useMemo((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),p=n-1,h=e=>{e<=n&&e>0&&(g(e),o(e))},v=e=>{i&&i(e)};return e.useEffect((()=>{g(r)}),[r]),P.default.createElement(a.StyledPagination,{className:t,style:s},P.default.createElement(a.StyledPageBlock,{className:"prev-page",onClick:()=>h(m-1),"data-last-page":1===m||void 0},f?P.default.createElement("a",{href:l.formatUrlWithPageParam(f,m,c),onClick:v},P.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):P.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),u.length>8?P.default.createElement(q,{pagesAmount:n,activePage:m,handlePageChange:h,handleClick:v,href:f,queryPageName:c}):u.map((e=>P.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===m||void 0,onClick:()=>h(e)},f?P.default.createElement("a",{href:l.formatUrlWithPageParam(f,e,c),onClick:v},e):e))),P.default.createElement(a.StyledPageBlock,{className:"next-page",onClick:()=>h(m+1),"data-last-page":m===p+1||void 0},f?P.default.createElement("a",{href:l.formatUrlWithPageParam(f,m,c),onClick:v},P.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):P.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},exports.ProgressBar=({type:t,numberOfStep:a,activeStep:l,labelPrefix:n,detailSteps:r,className:o,onChange:d})=>{const[c,u]=e.useState(0),m=e=>{var{trackClassName:t}=e,a=s.__rest(e,["trackClassName"]);return P.default.createElement(i.StyledTrackContainer,Object.assign({},a,{className:t}),P.default.createElement(i.StyledTrack,null))},g=P.default.createElement(i.StyledSlider,{className:o+" progress-bar"},P.default.createElement(m,null),P.default.createElement((({trackLength:e,activeStep:t,labelPrefix:l="Step",onChange:n})=>P.default.createElement(P.default.Fragment,null,Array.from({length:a},((e,t)=>t)).map(((r,o)=>P.default.createElement(i.StyledStep,{"data-is-active":o===t,"data-label":o,style:{left:o*e/(a-1)},onClick:()=>{n&&n(o)},key:o},o+1,P.default.createElement(i.StyledStepLabel,{"data-step-passed":o<=t},l+" "+(o+1))))))),{trackLength:c,activeStep:l,labelPrefix:n,onChange:d})),f=P.default.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5.5 9.5"},P.default.createElement("title",null,"chevron-right"),P.default.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),p=P.default.createElement(i.StyledBreadcrumbContainer,null,r&&Array.from({length:r.length},((e,t)=>t)).map(((e,t)=>{var a;return P.default.createElement(i.StyledBreadcrumbWrapper,{key:t,"data-selected":t===l,onClick:()=>{d&&d(t)}},null===(a=r[t])||void 0===a?void 0:a.text," ",t<r.length-1&&f)}))),h=P.default.createElement(i.StyledSlider,{className:o+" progress-bar"},P.default.createElement((({detailSteps:e,activeStep:t,onChange:a})=>P.default.createElement(P.default.Fragment,null,Array.from({length:e.length},((e,t)=>t)).map(((l,n)=>P.default.createElement(i.StyledDetailStep,{key:n,style:{left:100/e.length*n+"%",width:100/e.length+"%"},onClick:()=>{a&&a(n)}},e[n].icon?P.default.createElement(i.StyledDetailStepIndicatorExternal,{onClick:()=>{a&&a(n)}},e[n].icon):P.default.createElement(i.StyledDetailStepIndicator,{"data-is-active":n===t,"data-label":l,onClick:()=>{a&&a(n)},key:n},n+1),P.default.createElement(i.StyledDetailStepLabel,{"data-step-passed":n<t+1},e[n].text,P.default.createElement(i.StyledDetailStepDescription,null,e[n].description)),n<e.length-1&&P.default.createElement(m,{"data-step-passed":n<t,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:l,detailSteps:r,onChange:d})),v=e.useCallback(j.default((()=>{const e=document.querySelector(".progress-bar");e&&u(e.offsetWidth)}),1e3),[]);return e.useEffect((()=>{const e=document.querySelector(".progress-bar");return u(null==e?void 0:e.offsetWidth),window.addEventListener("resize",v,{passive:!0}),()=>{window.removeEventListener("resize",v)}}),[]),"step-track"===t&&g||"breadcrumb"===t&&p||"detail-track"===t&&h},exports.RateStars=({gap:t=2,size:l=24,star:n,totalStars:r=5,onSelect:o,hideEmptyStars:i,style:s,className:d})=>{const c=Math.floor(n),u=n-c>=.5?1:0,[m,g]=e.useState(null),f=m||c,p=m?0:u;return P.default.createElement(a.StyledRateStars,{"data-selectable":!!o,style:Object.assign({"--gap":t,"--star-size":l},s),className:d},Array.from({length:i?c+u:r}).map(((e,t)=>{const a=()=>!!o&&g(t+1),l=()=>!!o&&g(null);return t+1<=f?P.default.createElement(Q,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l}):t+1===f+p?P.default.createElement(K,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l}):P.default.createElement(Y,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l})})))},exports.ScrollList=({row:t=2,column:a=3,isDotsShown:l=!0,isImageGalleryShown:n=!1,mode:r="infinity",type:o="separated",distanceOverlappedLeft:s={amount:0,unit:"pixel"},children:d,className:c,isProgressShown:u=!1,statusChildren:m,isArrowShown:g=!1,classNameLeftArrow:f,classNameRightArrow:p,dataEventCategory:h,dataEventAction:v,dataEventLabel:y,onChangePage:E,page:b,customPageWidth:C,scheme:w="hellosites",arrowType:k="Discover"})=>{const S="number"==typeof b,[x,T]=e.useState(S?b:0),N=[];P.default.Children.map(d,((e,l)=>{l%(t*a)==0&&N.push([]),N[N.length-1].push(P.default.cloneElement(e))}));const B=e.useRef(),L=e.useRef(0),D=e=>{if(!B.current)return;const{clientWidth:t}=B.current,a=C||t,l="intertwined"===o?"percentage"===s.unit?e*a+s.amount/100*a*e:e*a+s.amount*a*e:e*a;B.current.scrollTo({top:0,left:l,behavior:"smooth"}),L.current=e,T(e),E&&E(e)};e.useEffect((()=>{"number"==typeof b&&(e=>{if(!B.current)return;const{clientWidth:t}=B.current,a=C||t,l="intertwined"===o?"percentage"===s.unit?e*a+s.amount/100*a*e:e*a+s.amount*a*e:e*a;B.current.scrollTo({top:0,left:l,behavior:"smooth"}),L.current=e,T(e)})(b)}),[b]);const _=e=>{if(!B.current)return;const{clientWidth:t}=B.current,a=C||t;let l;l=0===x?0:x*a,"forward"===e&&(l===a*(N.length-1)?(T(N.length-1),l=a*(N.length-1),E&&E(N.length-1)):(T(x+1),l+=a,E&&E(x+1)),B.current.scrollTo({top:0,left:l,behavior:"smooth"})),"back"===e&&(0===l?(T(0),E&&E(0),l=0):(T(x-1),E&&E(x-1),l-=a),B.current.scrollTo({top:0,left:l,behavior:"smooth"}))},I=j.default((()=>{if("infinity"===r){if(!B.current)return;const{clientWidth:e,scrollLeft:t}=B.current,a=C||e,l=Math.floor(t/a);T(l),E&&E(l)}}),400);return e.useEffect((()=>{if("snapped"===r){let e,t,a,l,n,r,i=!1;const d=B.current,c=(r,o)=>{i=!0,a=!1,l=!1,e=r-d.offsetLeft,t=o-d.offsetTop,n=d.scrollLeft},u=e=>{c(e.pageX,e.pageY)},m=e=>{c(e.touches[0].pageX,e.touches[0].pageY)},g=()=>{if(i=!1,a=!1,l=!1,!B.current)return;const{clientWidth:e}=B.current,t=C||e,n="ltr"===r?0!==L.current?L.current-1:L.current:"rtl"===r&&L.current<N.length-1?L.current+1:L.current,d="intertwined"===o?"percentage"===s.unit?n*t+s.amount/100*t*n:n*t+s.amount*t*n:n*t;B.current.scrollTo({top:0,left:d,behavior:"smooth"}),r="none",L.current!==n&&(L.current=n,T(n),E&&E(n))},f=(o,s)=>{if(!i)return;const c=o-d.offsetLeft,u=s-d.offsetTop,m=c-e,g=u-t;a||l||!(g>20||g<-20)||(a=!0),!a&&(m>20||m<-20)&&(l=!0,d.scrollLeft=n-m,m>0&&(r="ltr"),m<0&&(r="rtl"),0===m&&(r="none"))},p=e=>{l&&e.preventDefault(),f(e.pageX,e.pageY)},h=e=>{l&&e.preventDefault(),f(e.touches[0].pageX,e.touches[0].pageY)};return null==d||d.addEventListener("mousedown",u,{passive:!0}),null==d||d.addEventListener("touchstart",m,{passive:!0}),window.addEventListener("mouseup",g,{passive:!0}),window.addEventListener("touchend",g,{passive:!0}),null==d||d.addEventListener("mousemove",p,{passive:!0}),null==d||d.addEventListener("touchmove",h,{passive:!0}),()=>{null==d||d.removeEventListener("mousedown",u),null==d||d.removeEventListener("touchstart",m),window.removeEventListener("mouseup",g),window.removeEventListener("touchend",g),null==d||d.removeEventListener("mousemove",p),null==d||d.removeEventListener("touchmove",h)}}}),[]),P.default.createElement(i.StyledScrollList,{className:c,"data-row":t,onScroll:I},g&&x>0&&P.default.createElement("div",{className:`${f} arrow-left`,onClick:()=>_("back"),"data-event-category":h,"data-event-action":v,"data-event-label":y},"Care"===k?P.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},P.default.createElement("g",{filter:"url(#filter0_dd_12599_34420)"},P.default.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3V3C31.8368 3 39.0002 10.1634 39.0002 19V19C39.0002 27.8366 31.8368 35 23.0002 35V35C14.1637 35 7.00024 27.8366 7.00024 19V19Z",fill:"white"}),P.default.createElement("path",{d:"M20.9293 19L24.7503 15.179C25.1643 14.765 25.1643 14.093 24.7503 13.679C24.3363 13.265 23.6643 13.265 23.2503 13.679L18.6363 18.293C18.2453 18.684 18.2453 19.317 18.6363 19.707L23.2503 24.321C23.6643 24.735 24.3363 24.735 24.7503 24.321C25.1643 23.907 25.1643 23.235 24.7503 22.821L20.9293 19Z",fill:"#595959"}),P.default.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),P.default.createElement("defs",null,P.default.createElement("filter",{id:"filter0_dd_12599_34420",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},P.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),P.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),P.default.createElement("feOffset",{dx:"-2",dy:"2"}),P.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),P.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),P.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12599_34420"}),P.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),P.default.createElement("feOffset",{dx:"-1",dy:"1"}),P.default.createElement("feGaussianBlur",{stdDeviation:"1"}),P.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),P.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12599_34420",result:"effect2_dropShadow_12599_34420"}),P.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12599_34420",result:"shape"})))):P.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),P.default.createElement("path",{d:"M15.9997 11.1109L11.1108 15.9998L15.9997 20.8887",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),P.default.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),P.default.createElement("div",{ref:B,className:"container",style:{overflowX:"snapped"===r||g?"hidden":"scroll"}},N.map(((e,l)=>{let n=0;for(let e=0;e<l;e++)n+=N[e].length;return P.default.createElement("div",{key:l,className:"section",style:{marginLeft:"intertwined"===o&&0!==l?s.amount+""+("percentage"===s.unit?"%":"px"):"0px"}},1===t&&u&&P.default.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${a}, 1fr)`}},e.map(((t,a)=>{const r=n+a,o=m.find((e=>e.index===r));return P.default.createElement("div",{className:"items-progress",key:a},0===a&&0===l?P.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):P.default.createElement("div",{className:"line"}),P.default.createElement("div",{className:"icon-status"},P.default.createElement(de,{status:null==o?void 0:o.status})),l===N.length-1&&a===e.length-1?P.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):P.default.createElement("div",{className:"line"}))}))),P.default.createElement("div",{className:"grid-layout","data-index":l,style:{gridTemplateColumns:`repeat(${a}, 1fr)`,gridTemplateRows:`repeat(${t}, 1fr)`}},e.map(((e,t)=>P.default.createElement(P.default.Fragment,{key:t},P.default.createElement("div",{className:"item-grid",key:t},e))))))}))),g&&x<N.length-1&&P.default.createElement("div",{className:`${p} arrow-right`,onClick:()=>_("forward"),"data-event-category":h,"data-event-action":v,"data-event-label":y}," ","Care"===k?P.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},P.default.createElement("g",{filter:"url(#filter0_dd_12597_34423)"},P.default.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3C31.8368 3 39.0002 10.1634 39.0002 19C39.0002 27.8366 31.8368 35 23.0002 35C14.1637 35 7.00024 27.8366 7.00024 19Z",fill:"white"}),P.default.createElement("path",{d:"M24.0712 19L20.2502 15.179C19.8362 14.765 19.8362 14.093 20.2502 13.679C20.6642 13.265 21.3362 13.265 21.7502 13.679L26.3642 18.293C26.7552 18.684 26.7552 19.317 26.3642 19.707L21.7502 24.321C21.3362 24.735 20.6642 24.735 20.2502 24.321C19.8362 23.907 19.8362 23.235 20.2502 22.821L24.0712 19Z",fill:"#595959"}),P.default.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),P.default.createElement("defs",null,P.default.createElement("filter",{id:"filter0_dd_12597_34423",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},P.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),P.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),P.default.createElement("feOffset",{dx:"-2",dy:"2"}),P.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),P.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),P.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12597_34423"}),P.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),P.default.createElement("feOffset",{dx:"-1",dy:"1"}),P.default.createElement("feGaussianBlur",{stdDeviation:"1"}),P.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),P.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12597_34423",result:"effect2_dropShadow_12597_34423"}),P.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12597_34423",result:"shape"})))):P.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P.default.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),P.default.createElement("path",{d:"M15.9998 20.8891L20.8887 16.0002L15.9998 11.1113",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),P.default.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),l&&P.default.createElement("ul",{className:"bullet-nav"},N.map(((e,t)=>P.default.createElement("li",{key:t,className:"bullet-nav__item "},P.default.createElement("p",{onClick:()=>D(t),className:`bullet-nav__link scroll ${x==t?"active":null}`,"data-scheme":w}))))),n&&P.default.createElement("div",{className:"image-gallery-wrapper","data-test":N.length},N.slice(0,3).map(((e,t)=>P.default.createElement("div",{className:`image-block ${x==t?"active":null}`,key:t,onClick:()=>D(t),"data-scheme":w},e)))))},exports.SeoHead=({SEOData:t={},locale:a="vi-VN",routerPathname:l,routerQuery:n,nextHead:r,siteType:o,seoCustom:s,userId:d,forcedCanonicalUrl:c})=>{var m,f,p,h,v,y,E,b,C,w,k,S;const{totalPages:x,currentPage:T,SEOTitle:N="",SEODescription:B="",SEOImage:L,seoType:D,SEOImageWidth:_,SEOImageHeight:I,customMetaData:M=[],isIndexable:A=!0,hasNoCanonical:z=!1}=t,F=A&&g.isProduction?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:O}=process.env;let j=t.canonicalUrl||l;Object.keys(n).forEach((e=>{const t=n[e];t&&Array.isArray(t)&&(j=j.replace(`[...${e}]`,t.join("/")))}));const H=a||"en-PH",$="helloSites"===o?u.domainLocales[H]:"www.marrybaby.vn",G=j.endsWith("/")?"":"/",R=e.useMemo((()=>{var e,l,n,r,o,s,d;let c="";if(t.apiMetaData&&"string"==typeof t.apiMetaData){const u=null===(e=t.apiMetaData)||void 0===e?void 0:e.match(/<title.*?>(.*)<\/title>/),m=` - Page ${T} of ${x}`,g=T&&1!==T&&u?t.apiMetaData.replace(u[0],u[0].includes("-")?u[0].replace("-",m+" - "):`<title>${u[1].concat(m)}</title>`).replace(`<link rel="canonical" href="https://${$}${j}${G}" />`,`<link rel="canonical" href="https://${$}${j}${G}?page=${T}" />`):t.apiMetaData;if(c=i.htmlReactParser(g,{trim:!0}),!c.find((e=>{var t,a;return"og:image"===(null===(t=e.props)||void 0===t?void 0:t.property)||"og:image:secure_url"===(null===(a=e.props)||void 0===a?void 0:a.property)}))){const e=`https://${$}/images/${a}.png`;c=[...c,P.default.createElement("meta",{key:"og:image",property:"og:image",content:(null===(l=t.openGraph)||void 0===l?void 0:l.image)||L||e||""}),P.default.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(n=t.openGraph)||void 0===n?void 0:n.image)||L||e}),P.default.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(r=t.openGraph)||void 0===r?void 0:r.imageWidth)&&String(null===(o=t.openGraph)||void 0===o?void 0:o.imageWidth)||_&&String(_)||"1200"}),P.default.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(s=t.openGraph)||void 0===s?void 0:s.imageHeight)&&String(null===(d=t.openGraph)||void 0===d?void 0:d.imageHeight)||I&&String(I)||"630"})]}}return c}),[t.apiMetaData,t.openGraph,L,I,_,T,j,x,a,$]),W=`https://${$}/images/${a}.png`;return P.default.createElement(r,null,P.default.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===o&&P.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===a?P.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===a||"ms-MY"===a?P.default.createElement(P.default.Fragment,null):P.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap",rel:"preload",as:"style"}),P.default.createElement("link",{rel:"preconnect",href:O}),P.default.createElement("meta",{charSet:"UTF-8"}),P.default.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),P.default.createElement("meta",{name:"google",content:"notranslate"}),P.default.createElement("meta",{name:"robots",content:F}),P.default.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),M.map(((e,t)=>P.default.createElement("meta",Object.assign({key:t},e)))),P.default.createElement("meta",{name:"theme-color",content:"helloSites"===o?"#2c87f3":"#e85388"}),P.default.createElement("meta",{name:"page_type",content:"Home"}),P.default.createElement("meta",{name:"page_platform",content:"WEB"}),P.default.createElement("meta",{name:"page_language",content:H}),P.default.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!R&&P.default.createElement(P.default.Fragment,null,"helloSites"===o?P.default.createElement("title",null,s?N:N+" - "+(null===(m=u.LOCALE_SPECS[a])||void 0===m?void 0:m.SITE_NAME)):P.default.createElement("title",null,N),!z&&P.default.createElement("link",{rel:"canonical",href:`https://${$}${j}`}),P.default.createElement("meta",{name:"description",content:B||(null===(f=t.openGraph)||void 0===f?void 0:f.description)}),t.schemaData&&P.default.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:t.schemaData}}),P.default.createElement("meta",{property:"og:locale",content:a}),P.default.createElement("meta",{property:"og:type",content:D||"website"}),P.default.createElement("meta",{property:"og:title",content:(null===(p=t.openGraph)||void 0===p?void 0:p.title)||N}),P.default.createElement("meta",{property:"og:description",content:(null===(h=t.openGraph)||void 0===h?void 0:h.description)||B}),P.default.createElement("meta",{property:"og:url",content:`https://${$}${j}`}),P.default.createElement("meta",{property:"og:site_name",content:`https://${$}`}),P.default.createElement("meta",{property:"og:image",content:(null===(v=t.openGraph)||void 0===v?void 0:v.image)||L||W||""}),P.default.createElement("meta",{property:"og:image:secure_url",content:(null===(y=t.openGraph)||void 0===y?void 0:y.image)||L||W}),P.default.createElement("meta",{property:"og:image:width",content:(null===(E=t.openGraph)||void 0===E?void 0:E.imageWidth)&&String(null===(b=t.openGraph)||void 0===b?void 0:b.imageWidth)||_&&String(_)||"1200"}),P.default.createElement("meta",{property:"og:image:height",content:(null===(C=t.openGraph)||void 0===C?void 0:C.imageHeight)&&String(null===(w=t.openGraph)||void 0===w?void 0:w.imageHeight)||I&&String(I)||"630"}),P.default.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),P.default.createElement("meta",{name:"twitter:title",content:(null===(k=t.twitter)||void 0===k?void 0:k.title)||N}),P.default.createElement("meta",{name:"twitter:description",content:B}),P.default.createElement("meta",{name:"twitter:image",content:(null===(S=t.twitter)||void 0===S?void 0:S.image)||L})),("helloSites"===o?u.FAVICONS[H]||[]:u.FAVICONS.marryBaby).map(((e,t)=>"link"===e.type?P.default.createElement("link",{key:`favicon-${t}`,rel:e.rel,href:e.href,sizes:e.sizes}):"meta"===e.type?P.default.createElement("meta",{key:t,name:e.name,content:e.content}):null)),Array.isArray(R)&&c?R.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):R,c&&P.default.createElement("link",{rel:"canonical",href:c}),!t.hasNoAmp&&"vi-VN"!==a&&P.default.createElement("link",{rel:"amphtml",href:`https://${$}${j}${G}?amp=1`}),d&&"undefined"!=typeof window?P.default.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${d}'});`}}):null)},exports.ShareContainer=({url:a,onCopied:l,locale:n,siteType:r})=>{const{t:d}=h.useTranslations(),c=M.getSocialList(a||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(n))),u=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return P.default.createElement(i.StyledShareContainer,null,P.default.createElement(t.Text,{size:"p3",color:o.theme.colors.gray800},d("shareContainer.title")),P.default.createElement("div",{className:"icon-group"},c.map(((e,t)=>P.default.createElement("a",{key:t,href:e.href,target:"_blank",rel:"noreferrer","data-event-category":"Health Tool","data-event-action":`Social Share - ${e.name}`,"data-event-label":u},e.icon))),P.default.createElement(I.Button,{theme:r,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:P.default.createElement(je,null),onClick:()=>s.__awaiter(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(a),null==l||l()})),"data-event-category":"Health Tool","data-event-action":"Copy Link","data-event-label":u})))},exports.ShareDrawer=a=>{var{open:l,title:n,onClose:r,onCopied:d,onShared:c,url:u,locale:m}=a,g=s.__rest(a,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:f}=h.useTranslations(),p=e.useCallback((()=>s.__awaiter(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(u),null==d||d()}))),[u,d]),v=M.getSocialList(u||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(m)));return e.useEffect((()=>{l&&navigator.share&&navigator.share({title:null!=n?n:"Read This Post",url:u}).then((()=>{null==c||c()})).catch((()=>{null==r||r()}))}),[u,n,c,l]),"undefined"!=typeof navigator&&navigator.share?null:P.default.createElement(i.StyledShareDrawer,Object.assign({title:f("share.title"),onClose:r,open:l,placement:"bottom"},g),P.default.createElement("div",{className:"share-container"},P.default.createElement("div",{className:"icon-container"},P.default.createElement(t.Text,{type:"semiBold",size:"s3",color:o.theme.colors.gray600},f("share.title")),P.default.createElement("div",{className:"icon-group"},v.map(((e,t)=>P.default.createElement("a",{key:t,href:e.href,target:"_blank",rel:"noreferrer"},e.icon))))),P.default.createElement("div",{className:"link-container"},P.default.createElement(t.Text,{type:"semiBold",size:"s3",color:o.theme.colors.gray600},f("share.copyLink")),P.default.createElement("div",{className:"input-group"},P.default.createElement(y.Input,{name:"link",size:"md",value:u,isDisabled:!0}),P.default.createElement(I.Button,{size:"md",type:"button",color:"tertiary",icon:P.default.createElement(He,null),onClick:p})))))},exports.StatisticCard=({type:e,description:t,value:a,withIcon:l,isInACard:n,cardColor:r,className:o})=>P.default.createElement(i.StyledStatisticContainer,{className:o,"data-size":e,"data-is-in-card":"big"===e&&n,"data-card-color":r},P.default.createElement(i.StyledDescriptionWrapper,null,"small"===e&&P.default.createElement(i.StyledDot,{"data-color":r}),t),P.default.createElement(i.StyledStatisticNumberWrapper,{"data-size":e},"small"!==e&&l,a)),exports.SurveyThankyouCard=({thankyou:e,thankyouSubtitle:l,className:n,style:r})=>P.default.createElement(i.StyledSurveyQuestionCard,{className:n,style:r},P.default.createElement("div",{className:"survey-inner-wrapper"},P.default.createElement(i.StyledSurveyThankyouCard,null,P.default.createElement("div",{className:"survey-thankyou-wrapper-inner"},P.default.createElement("svg",{viewBox:"0 0 122 122",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"survey-thankyou-icon"},P.default.createElement("path",{d:"M61.5 122c33.137 0 60-26.863 60-60S94.637 2 61.5 2s-60 26.863-60 60 26.863 60 60 60Z",fill:o.theme.colors.primary50}),P.default.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),P.default.createElement("path",{d:"M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z",fill:"#2C74DF"}),P.default.createElement("path",{d:"M74.4 15H39.863a5.364 5.364 0 0 0-5.363 5.363v52.214a5.364 5.364 0 0 0 5.363 5.363h43.273a5.364 5.364 0 0 0 5.363-5.363V21a6 6 0 0 0-6-6H74.4Z",fill:"#fff"}),P.default.createElement("path",{d:"M88.853 80.108H34.147a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074h54.706a4.055 4.055 0 0 1 4.087 4.074v10.65c0 2.27-1.81 4.074-4.087 4.074Z",fill:"#E4E8EC"}),P.default.createElement("path",{d:"M90.838 85.451H32.162a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074H90.78a4.055 4.055 0 0 1 4.087 4.074v10.65c.058 2.27-1.81 4.074-4.029 4.074Z",fill:"#fff"}),P.default.createElement("path",{d:"M103.748 75.492v30.263c0 1.92-1.576 3.492-3.503 3.492H23.003c-1.927 0-3.503-1.572-3.503-3.492V75.492c0-1.92 1.576-3.492 3.503-3.492h19.384c1.926 0 3.503 1.571 3.503 3.492v5.354c0 .35.233.582.584.582h30.3c.351 0 .585-.233.585-.582v-5.354c0-1.92 1.576-3.492 3.503-3.492h19.383c1.927 0 3.503 1.571 3.503 3.492Z",fill:"#45A4FF"}),P.default.createElement("path",{stroke:"#2C74DF",d:"M51.954 91.377v3.084c0 1.63 1.285 2.91 2.92 2.91h12.844c1.635 0 2.92-1.28 2.92-2.91v-3.084"}),P.default.createElement("path",{d:"M120.5 38.025c-2-.246-3.25 1.352-2.375 3.195l.25.737c.75 1.844-.375 3.441-2.375 3.195l-.75-.123c-2-.245-3.25 1.352-2.375 3.195l.375.738c.75 1.843-.375 3.44-2.375 3.195l-.75-.123c-1.5-.123-2.625.737-2.625 1.966",stroke:"#FE921D"}),P.default.createElement("path",{d:"M1.533 62c-.269 1.413 1.142 2.337 2.82 1.848l.672-.218c1.678-.543 3.089.38 2.82 1.848l-.134.544c-.269 1.413 1.141 2.337 2.82 1.848l.671-.218c1.68-.543 3.09.38 2.82 1.848l-.134.543c-.201 1.087.538 1.848 1.612 1.957M118 92a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM82 3.187l1.188 4.348 4.347-1.188L86.347 2 82 3.187Z",stroke:"#00B16A"}),P.default.createElement("path",{stroke:"#FE921D",d:"M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),P.default.createElement("path",{d:"M61.5 26.667c-7.364 0-13.333 5.97-13.333 13.333 0 7.364 5.969 13.333 13.333 13.333S74.833 47.364 74.833 40 68.864 26.667 61.5 26.667Zm7.61 10.276-9.334 9.333a1.33 1.33 0 0 1-1.885 0l-4-4a1.332 1.332 0 1 1 1.885-1.885l3.057 3.057 8.391-8.39a1.332 1.332 0 1 1 1.885 1.885Z",fill:"#00CB8A"})),e&&P.default.createElement(a.Heading,{className:"survey-thankyou-title",tag:"h3"},e),l&&P.default.createElement(t.Text,{className:"survey-thankyou-subtitle",size:"p3"},l))))),exports.THRCardEmbed=({isSide:l,locale:n,thrContent:s,isMobile:d,info:c,inputErrorMessage:m,onFormChange:g,onSubmit:f})=>{var p,v,y;const{t:b}=h.useTranslations(),{getHealthToolLink:C}=x.useHealthToolsCache(n),k=e.useMemo((()=>C(a.HEALTH_TOOL_TYPE.THR)),[C]),[N,B]=e.useState(!1),[L,D]=e.useState("low_intensity"),[_,I]=e.useState("male"),[M,A]=e.useState(60),[z,F]=e.useState({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),O=[{idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40},{idAge:1,minAge:18,maxAge:25,rangeMale:49,rangeFemale:54},{idAge:2,minAge:25,maxAge:35,rangeMale:49,rangeFemale:54},{idAge:3,minAge:35,maxAge:45,rangeMale:50,rangeFemale:54},{idAge:4,minAge:45,maxAge:55,rangeMale:50,rangeFemale:54},{idAge:5,minAge:55,maxAge:65,rangeMale:51,rangeFemale:54},{idAge:6,minAge:65,maxAge:120,rangeMale:50,rangeFemale:54}],j=[{value:"low_intensity",label:b("targetHeartRate.lowIntensity.title"),image:r.CommonGAssets.getAssetPath("/low.svg"),imageActive:r.CommonGAssets.getAssetPath("/low-active.svg"),content:b("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:b("targetHeartRate.moderateIntensity.title"),image:r.CommonGAssets.getAssetPath("/moderate.svg"),imageActive:r.CommonGAssets.getAssetPath("/moderate-active.svg"),content:b("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:b("targetHeartRate.aerobicZone.title"),image:r.CommonGAssets.getAssetPath("/aerobic.svg"),imageActive:r.CommonGAssets.getAssetPath("/aerobic-active.svg"),content:b("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:b("targetHeartRate.vigorousIntensity.title"),image:r.CommonGAssets.getAssetPath("/vigorous.svg"),imageActive:r.CommonGAssets.getAssetPath("/vigorous-active.svg"),content:b("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:b("targetHeartRate.maximumIntensity.title"),image:r.CommonGAssets.getAssetPath("/maximum.svg"),imageActive:r.CommonGAssets.getAssetPath("/maximum-active.svg"),content:b("targetHeartRate.maximumIntensity.note")}],H=e.useMemo((()=>[{value:"male",label:b("gender.male"),content:P.default.createElement(E.Icon.GenderChooseBoy,null)},{value:"female",label:b("gender.female"),content:P.default.createElement(E.Icon.GenderChooseGirl,null)}]),[]);return e.useEffect((()=>{const e=((new Date).getTime()-new Date(null==c?void 0:c.age).getTime())/1e3;B(e>=567648e3);const t=O.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||O[0];F(t),A(60)}),[null==c?void 0:c.age]),P.default.createElement(i.StyledContainer,{"data-is-side":l},P.default.createElement(i.ToolsBannerCard,{isSide:l,bannerUrl:r.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),icon:P.default.createElement("img",{alt:"health-tool-icon",src:null==s?void 0:s.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"},loading:"lazy"}),heading:b("targetHearRate.heading"),medicalReview:(null===(p=null==s?void 0:s.reviewedBy)||void 0===p?void 0:p.display_name)?P.default.createElement(t.Text,{size:"n1",color:o.theme.colors.white},P.default.createElement("span",{dangerouslySetInnerHTML:{__html:b("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${T.formatUserProfileUrl(null==s?void 0:s.reviewedBy)}"\n >\n ${null===(v=null==s?void 0:s.reviewedBy)||void 0===v?void 0:v.display_name}\n </a>`,date:null==s?void 0:s.reviewedDate})}}),P.default.createElement("span",null)):void 0,isMobile:d}),P.default.createElement(E.Container,null,P.default.createElement(i.StyledContent,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":l},P.default.createElement(i.StyledRow$1,{"data-is-side":l},P.default.createElement(i.FormControl$1,null,P.default.createElement(i.StyledInput$1,{size:"md",name:"gender",label:b("bmi.selectGender"),CustomInput:P.default.createElement(S.RadioImageGroup,{options:H,value:_,onChange:e=>{I(e),A(60)},className:"bmi--input-radio_gender"}),className:"bmi--input bmi--input-gender"}))),P.default.createElement(i.StyledRow$1,null,P.default.createElement(ye,{info:c,locale:n,errorMessage:m,onChange:g})),P.default.createElement("div",{className:"slider-heart-rate"},P.default.createElement(E.Label,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:o.theme.colors.gray600,fontWeight:"bold",fontSize:"12px"},htmlFor:"gender-selector"},b("targetHeartRate.heartRateInput")),P.default.createElement("div",{className:"slider-outer-wrapper"},P.default.createElement(w.Slider,{containerStyle:{flex:1},min:"male"===_?z.rangeMale:z.rangeFemale,max:200,step:1,value:M,withControl:!0,onChange:A}))),N&&P.default.createElement(i.FormControl$1,null,P.default.createElement(i.StyledActive,null,P.default.createElement(E.Label,{size:"label2",style:{display:"inline-block",fontWeight:"bold",color:o.theme.colors.gray600,marginBottom:"9px"},htmlFor:"gender-selector"},b("targetHeartRate.selectActive")),P.default.createElement("div",{className:"card"},P.default.createElement(ve,{options:j.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:L,onChange:e=>{D(e)},className:"gender-selector"})),L&&P.default.createElement("div",{className:"note"},P.default.createElement("img",{style:{height:"16px",width:"16px"},src:r.CommonGAssets.getAssetPath("/infoIcon.svg"),alt:"",loading:"lazy"}),P.default.createElement(t.Text,{size:"n1",color:"#595959"},null===(y=j[j.findIndex((e=>e.value==L))||0])||void 0===y?void 0:y.content)),!L&&P.default.createElement("span",{style:{color:"#e64728"}},m.intensity)))),P.default.createElement("div",{style:{display:"flex"}},P.default.createElement(i.StyledButton$1,{size:"lg",onClick:()=>{f(_,L,[M])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${u.domainLocales[n]}/${k}`},b("bmi.submit")))))},exports.Tabs=({style:t,initialTab:l,tabContent:n,onChange:r,className:o,dataEventCategory:s,dataEventAction:d,dataEventLabel:c,id:u,styles:m})=>{const{classes:g,cx:f,theme:p}=i.useStyles$1(void 0,{name:"Tabs",styles:m}),[h,v]=e.useState(l||0);return e.useEffect((()=>{v(l)}),[l]),P.default.createElement("ul",{style:t,className:f(g.root,o),role:"tablist",id:u},n.map(((e,t)=>P.default.createElement("li",{className:`${g.item} ${h===t?"active":""}`,"aria-selected":h===t,role:"tab",onClick:()=>{v(t),r&&r(t)},onKeyDown:e=>{"Enter"===e.key&&(v(t),r&&r(t))},key:t,"data-event-category":e.dataEventCategory||s,"data-event-action":e.dataEventAction||d,"data-event-label":e.dataEventLabel||c,tabIndex:0,"data-testid":e.dataTestid},P.default.createElement("div",{className:g.itemInner},e.icon&&P.default.createElement("div",{className:g.icon},e.icon),P.default.createElement(a.Text,{className:g.label,size:e.textSize||"sm",weight:e.textType||"bold",color:h===t?p.fn.primaryColor():e.textColor||p.colors.gray[4],dataEventCategory:e.dataEventCategory,dataEventAction:e.dataEventAction,dataEventLabel:e.dataEventLabel},e.name))))))},exports.Tag=({type:e,children:l,style:n,isInline:r,isSquared:o=!1,className:i,isLight:s,hasMorePadding:d,isLink:c,isSelected:u,textProps:m={size:"sm"}})=>{const g=m.color?{"--text-props-color":m.color}:{};return P.default.createElement(a.StyledTag,{"data-is-squared":o||void 0,"data-tag-type":e,"data-is-light":s||void 0,"data-has-more-padding":d||void 0,"data-is-inline":r||void 0,style:Object.assign(Object.assign({},n),g),className:i,"data-is-selected":u||void 0,"data-is-link":c||void 0,tagType:e,isInline:r,tagHasMorePadding:d,tagIsLight:s,tagIsSquared:o,tagIsALink:c},P.default.createElement(t.Text,Object.assign({},m),l))},exports.Toggle=({className:e,id:t,onChange:l,checked:n,style:r,label:o})=>P.default.createElement(a.StyledToggle,{className:e,style:r},P.default.createElement("input",{type:"checkbox",id:t,onChange:l,checked:n}),P.default.createElement("label",{htmlFor:t},P.default.createElement(a.StyledToggleIcon,null),o&&P.default.createElement(a.StyledToggleLabel,null,o))),exports.index=se,exports.index$1=ce;
|