@hhgtech/hhg-components 1.27.67 → 1.27.68
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-a51b6a43.js +1 -0
- package/build/{dataTransform-5811d35b.js → dataTransform-00da49c4.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-e7a66f3e.js → core-bc36cf29.js} +1 -1
- package/build/esm/{dataTransform-dcc410d7.js → dataTransform-31c4c853.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{fixedBottomAdBlock-e1facd2d.js → fixedBottomAdBlock-83912fd3.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-2326a463.js +1 -0
- package/build/esm/{getSocialList-1c7ba9db.js → getSocialList-d980085d.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-f153303f.js → index-07c18c8e.js} +1 -1
- package/build/esm/{index-ac223399.js → index-1d4eaa1c.js} +1 -1
- package/build/esm/{index-e4440c8b.js → index-30cba675.js} +1 -1
- package/build/esm/{index-0faebac1.js → index-331dcbca.js} +1 -1
- package/build/esm/{index-380032c9.js → index-3f3203dc.js} +1 -1
- package/build/esm/{index-afba90c1.js → index-3f736c0b.js} +1 -1
- package/build/esm/index-46be1b11.js +1 -0
- package/build/esm/{index-59d3cab0.js → index-48b38bdc.js} +2 -2
- package/build/esm/{index-be829823.js → index-4d0ddb64.js} +1 -1
- package/build/esm/{index-9eca1c51.js → index-5404c828.js} +1 -1
- package/build/esm/index-65d702aa.js +1 -0
- package/build/esm/{index-36fae009.js → index-661133f9.js} +1 -1
- package/build/esm/index-834d6dc0.js +1 -0
- package/build/esm/{index-651d99dc.js → index-93f72147.js} +1 -1
- package/build/esm/index-a0141454.js +1 -0
- package/build/esm/{index-3828a5e1.js → index-a4437a03.js} +4 -4
- package/build/esm/index-b0cd5d32.js +1 -0
- package/build/esm/{index-e301f575.js → index-bd8da8ac.js} +1 -1
- package/build/esm/index-e375e279.js +53 -0
- package/build/esm/index-efe2d89d.js +1 -0
- package/build/esm/{index-31c80610.js → index-f7790f46.js} +1 -1
- package/build/esm/{index-5070ce07.js → index-fbe22277.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-f5bd2a55.js → index.styled-5fc3c70e.js} +2 -2
- package/build/esm/{index.styled-8eb165f4.js → index.styled-ad90ced9.js} +5 -5
- package/build/esm/{index.styled-c109a39c.js → index.styled-dd81b143.js} +4 -4
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +6 -6
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-db636eda.js → routing-7370484f.js} +1 -1
- package/build/esm/{screenSizeContext-ef7bd654.js → screenSizeContext-6c4b3d3a.js} +3 -3
- package/build/esm/together.js +1 -1
- package/build/esm/{types-7a0a4b96.js → types-11ff140e.js} +119 -119
- package/build/esm/{types-78b4f012.js → types-c659f9ce.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useHealthToolCache-1d76a4c0.js → useHealthToolCache-75e7237a.js} +1 -1
- package/build/esm/{useRafState-558859e0.js → useRafState-d58fcec4.js} +1 -1
- package/build/esm/useTranslations-e743d735.js +1 -0
- package/build/esm/{utils-6dff4be6.js → utils-32abe328.js} +9 -9
- package/build/esm/{utils-8c70da4a.js → utils-7f96a570.js} +1 -1
- package/build/esm/vaccination.js +12 -12
- package/build/{fixedBottomAdBlock-bd208bcc.js → fixedBottomAdBlock-0c7e1813.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-533e408e.js +1 -0
- package/build/{getSocialList-8f098a4a.js → getSocialList-ffb45884.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-531720f4.js → index-0a4bdae9.js} +1 -1
- package/build/{index-bdf6097f.js → index-0b993b7b.js} +1 -1
- package/build/{index-e6951221.js → index-2124f3d8.js} +1 -1
- package/build/{index-efff860b.js → index-317c7782.js} +1 -1
- package/build/{index-3b395a07.js → index-3baac80f.js} +1 -1
- package/build/{index-346f9120.js → index-4498d523.js} +1 -1
- package/build/{index-eecce92d.js → index-49dc3607.js} +1 -1
- package/build/{index-ea126740.js → index-5baa63ab.js} +1 -1
- package/build/{index-c5d8e63f.js → index-63287b2a.js} +1 -1
- package/build/index-84038158.js +1 -0
- package/build/{index-5687cab5.js → index-84f2f174.js} +1 -1
- package/build/{index-55b65ba1.js → index-87615aa6.js} +1 -1
- package/build/{index-d36e067d.js → index-a913edb3.js} +1 -1
- package/build/{index-acfc1fd9.js → index-b5ee04ff.js} +1 -1
- package/build/{index-26411075.js → index-c1830f93.js} +1 -1
- package/build/index-c3b319e0.js +1 -0
- package/build/index-c4ed2bd3.js +1 -0
- package/build/{index-9dd94c66.js → index-d011fdfb.js} +1 -1
- package/build/{index-07d0fc09.js → index-d107dcd6.js} +1 -1
- package/build/{index-20296b73.js → index-d17f77e7.js} +2 -2
- package/build/{index-7d61799d.js → index-d240168e.js} +1 -1
- package/build/{index-db6f2817.js → index-f64735f6.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-d913ee6d.js → index.styled-849ca291.js} +5 -5
- package/build/{index.styled-ab3807ed.js → index.styled-dcd4dfbb.js} +3 -3
- package/build/{index.styled-48902969.js → index.styled-e1e24f4f.js} +1 -1
- 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 +4 -4
- package/build/pwg.js +1 -1
- package/build/{routing-b81a60e3.js → routing-893cc38c.js} +1 -1
- package/build/{screenSizeContext-5015825b.js → screenSizeContext-8b2edc76.js} +3 -3
- package/build/together.js +1 -1
- package/build/{types-f0295ec8.js → types-7aae8609.js} +17 -17
- package/build/{types-0627b1a1.js → types-f2162056.js} +6 -6
- package/build/types.js +1 -1
- package/build/useHealthToolCache-33a1a75f.js +1 -0
- package/build/{useRafState-ae173353.js → useRafState-a3097ea8.js} +1 -1
- package/build/{useTranslations-998bf69a.js → useTranslations-f674d3f2.js} +1 -1
- package/build/{utils-80406d00.js → utils-8ffad3ee.js} +27 -27
- package/build/utils-a6e5c841.js +1 -0
- package/build/vaccination.js +12 -12
- package/package.json +1 -1
- package/build/core-d9209741.js +0 -1
- package/build/esm/getDynamicHealthTool-1fc4c294.js +0 -1
- package/build/esm/index-04c53370.js +0 -1
- package/build/esm/index-3a4bd5ca.js +0 -1
- package/build/esm/index-3dc3c106.js +0 -1
- package/build/esm/index-5b2b7bb6.js +0 -1
- package/build/esm/index-9173966f.js +0 -1
- package/build/esm/index-b3ff5577.js +0 -53
- package/build/esm/index-bbedc0ba.js +0 -1
- package/build/esm/useTranslations-f66f98f5.js +0 -1
- package/build/getDynamicHealthTool-402a6d37.js +0 -1
- package/build/index-996e8611.js +0 -1
- package/build/index-a63bfeb8.js +0 -1
- package/build/index-ea765cbe.js +0 -1
- package/build/useHealthToolCache-10bb3948.js +0 -1
- package/build/utils-048a352b.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-b1c45b12.js → BMI_BOYS.percentile.monthly-40aa10d3.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-8131d5ea.js → BMI_BOYS.percentile.weekly-f404b72d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-6d677688.js → BMI_BOYS.percentile.yearly-8d434a93.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-3c2deef0.js → BMI_BOYS.zscore.monthly-8114e212.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-a2f8f313.js → BMI_BOYS.zscore.weekly-11c9d824.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-65ff1698.js → BMI_BOYS.zscore.yearly-5bec9369.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-7bb192d3.js → BMI_GIRLS.percentile.monthly-84b926eb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-8046001c.js → BMI_GIRLS.percentile.weekly-c38dda42.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-7850f609.js → BMI_GIRLS.percentile.yearly-dd38ff8b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-0a8c148f.js → BMI_GIRLS.zscore.monthly-f7de6cf8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-fad6752e.js → BMI_GIRLS.zscore.weekly-b63e255d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-b4e5885e.js → BMI_GIRLS.zscore.yearly-4fb1e977.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b63d8e31.js → HEAD CIRCUM_BOYS.percentile.monthly-7a72c2f8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-a9fe0155.js → HEAD CIRCUM_BOYS.percentile.weekly-1e6cdfe4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-3cb2bf4b.js → HEAD CIRCUM_BOYS.percentile.yearly-e0af52a9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-c63cac77.js → HEAD CIRCUM_BOYS.zscore.monthly-59821305.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-6fede475.js → HEAD CIRCUM_BOYS.zscore.weekly-658be468.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d69ee31c.js → HEAD CIRCUM_BOYS.zscore.yearly-c7bf9ebd.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-e26f6de8.js → HEAD CIRCUM_GIRLS.percentile.monthly-60b8aa21.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-11e01651.js → HEAD CIRCUM_GIRLS.percentile.weekly-16c57811.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-6bd8ebd2.js → HEAD CIRCUM_GIRLS.percentile.yearly-e2ad4b1b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-553f9d6e.js → HEAD CIRCUM_GIRLS.zscore.monthly-1148183d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-2f0b2110.js → HEAD CIRCUM_GIRLS.zscore.weekly-5a624c92.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-07579301.js → HEAD CIRCUM_GIRLS.zscore.yearly-89f0ce48.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-2ae112d6.js → HEIGHT_BOYS.percentile.monthly-874459c9.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-168c2aaa.js → HEIGHT_BOYS.percentile.weekly-c5905ed0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-b0794c24.js → HEIGHT_BOYS.percentile.yearly-be85c3c2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-a3a9d343.js → HEIGHT_BOYS.zscore.monthly-ab71494a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-ff7e25f2.js → HEIGHT_BOYS.zscore.weekly-74473ee4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-b4258813.js → HEIGHT_BOYS.zscore.yearly-31d8cd4a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-199ab8ff.js → HEIGHT_GIRLS.percentile.monthly-091b448a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-4f2eaf01.js → HEIGHT_GIRLS.percentile.weekly-95b64243.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-f45af7d0.js → HEIGHT_GIRLS.percentile.yearly-3d88d73d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-057ca135.js → HEIGHT_GIRLS.zscore.monthly-b2e58560.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-ab5e083d.js → HEIGHT_GIRLS.zscore.weekly-487f2139.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-32c77cb8.js → HEIGHT_GIRLS.zscore.yearly-cbb818b1.js} +0 -0
- /package/build/{Onboarding-14e317e1.js → Onboarding-fc91320a.js} +0 -0
- /package/build/{Visible-a1c0448c.js → Visible-c2df2203.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-c39b1bda.js → WEIGHT_BOYS.percentile.monthly-67ed4096.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-4e4a1e34.js → WEIGHT_BOYS.percentile.weekly-1a18346c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-7a86dc1a.js → WEIGHT_BOYS.percentile.yearly-079b69f1.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-9a1aee64.js → WEIGHT_BOYS.zscore.monthly-64b4fa20.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-798ddc51.js → WEIGHT_BOYS.zscore.weekly-0511498e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-3f5227b8.js → WEIGHT_BOYS.zscore.yearly-d0f9a48b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-477d1d0e.js → WEIGHT_GIRLS.percentile.monthly-b4dfcbfd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-e2e8e79e.js → WEIGHT_GIRLS.percentile.weekly-5adf6a8c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-fe3ff481.js → WEIGHT_GIRLS.percentile.yearly-349924c6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-90c74050.js → WEIGHT_GIRLS.zscore.monthly-364763a3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-1e55486c.js → WEIGHT_GIRLS.zscore.weekly-16428e47.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-b20c11b8.js → WEIGHT_GIRLS.zscore.yearly-a70f35e5.js} +0 -0
- /package/build/{constants-fb403fd4.js → constants-f2b846fe.js} +0 -0
- /package/build/{cookieHelper-f7899b42.js → cookieHelper-656ec051.js} +0 -0
- /package/build/{dataTransform-c008e600.js → dataTransform-a9544ee6.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-b5a80471.js → BMI_BOYS.percentile.monthly-64765251.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-d603aa3f.js → BMI_BOYS.percentile.weekly-26d1c266.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-bdc57656.js → BMI_BOYS.percentile.yearly-139eb2db.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-9839cdae.js → BMI_BOYS.zscore.monthly-518ff64f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-f9a929a9.js → BMI_BOYS.zscore.weekly-87c22c2e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-5868f1a0.js → BMI_BOYS.zscore.yearly-042b66f3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-55ebd752.js → BMI_GIRLS.percentile.monthly-ec4b2f4d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-bb77147f.js → BMI_GIRLS.percentile.weekly-e329889d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-fe97e452.js → BMI_GIRLS.percentile.yearly-38343779.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-1a6861b5.js → BMI_GIRLS.zscore.monthly-e5e8bf76.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-84fc2fbd.js → BMI_GIRLS.zscore.weekly-40c6e20c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-f140088b.js → BMI_GIRLS.zscore.yearly-a2021786.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-3de0c296.js → HEAD CIRCUM_BOYS.percentile.monthly-f67793f6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-45e2460b.js → HEAD CIRCUM_BOYS.percentile.weekly-66251183.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-41c12405.js → HEAD CIRCUM_BOYS.percentile.yearly-ca7a6439.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-8bbe08f5.js → HEAD CIRCUM_BOYS.zscore.monthly-ab834e5a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-4225edf0.js → HEAD CIRCUM_BOYS.zscore.weekly-1930d569.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-61c366a8.js → HEAD CIRCUM_BOYS.zscore.yearly-281219a6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a1d3efe1.js → HEAD CIRCUM_GIRLS.percentile.monthly-30746142.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-7f29fdd4.js → HEAD CIRCUM_GIRLS.percentile.weekly-3815448c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a31deb7e.js → HEAD CIRCUM_GIRLS.percentile.yearly-174d740f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-f577999a.js → HEAD CIRCUM_GIRLS.zscore.monthly-e6c93b3d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a1ba5373.js → HEAD CIRCUM_GIRLS.zscore.weekly-876dbd52.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-7f979bc6.js → HEAD CIRCUM_GIRLS.zscore.yearly-746bc115.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-8ad79a80.js → HEIGHT_BOYS.percentile.monthly-1a2adbd0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-c5f7d613.js → HEIGHT_BOYS.percentile.weekly-44df87bb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-96d070a4.js → HEIGHT_BOYS.percentile.yearly-f26d7188.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5bbbf64d.js → HEIGHT_BOYS.zscore.monthly-7b17a0dd.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-5cae0d22.js → HEIGHT_BOYS.zscore.weekly-ac9319bc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-540af99a.js → HEIGHT_BOYS.zscore.yearly-3f0fbefa.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-eef50e73.js → HEIGHT_GIRLS.percentile.monthly-3d60a549.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-7e18c2fc.js → HEIGHT_GIRLS.percentile.weekly-32cfe832.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-d19b1135.js → HEIGHT_GIRLS.percentile.yearly-9685eebd.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-5f71cd9c.js → HEIGHT_GIRLS.zscore.monthly-a55a152a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-554beb08.js → HEIGHT_GIRLS.zscore.weekly-5ba06063.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-75311bdd.js → HEIGHT_GIRLS.zscore.yearly-86806f62.js} +0 -0
- /package/build/esm/{Onboarding-8d2506c5.js → Onboarding-9e4e70e7.js} +0 -0
- /package/build/esm/{Visible-90f36e1e.js → Visible-b3eda12e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-83af56e1.js → WEIGHT_BOYS.percentile.monthly-3ef2f577.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ae09566c.js → WEIGHT_BOYS.percentile.weekly-bcd490c4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-350b8b96.js → WEIGHT_BOYS.percentile.yearly-bb4eeff5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-aca3a53b.js → WEIGHT_BOYS.zscore.monthly-f1d09597.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-28dff80c.js → WEIGHT_BOYS.zscore.weekly-6e2e2e78.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-474de3f2.js → WEIGHT_BOYS.zscore.yearly-d11badbe.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-63f01466.js → WEIGHT_GIRLS.percentile.monthly-31a98425.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-121e8d2d.js → WEIGHT_GIRLS.percentile.weekly-2423581d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-e696e322.js → WEIGHT_GIRLS.percentile.yearly-6511ac61.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-3b99018c.js → WEIGHT_GIRLS.zscore.monthly-da6118cf.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-990f2741.js → WEIGHT_GIRLS.zscore.weekly-1d1e2cd1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-4eac9b9a.js → WEIGHT_GIRLS.zscore.yearly-0d3b3970.js} +0 -0
- /package/build/esm/{constants-aad63aa4.js → constants-3b2016c2.js} +0 -0
- /package/build/esm/{cookieHelper-8220630d.js → cookieHelper-8d4d4f87.js} +0 -0
- /package/build/esm/{dataTransform-e54aa827.js → dataTransform-89915fff.js} +0 -0
- /package/build/esm/{index-5b59a6f5.js → index-a98036b7.js} +0 -0
- /package/build/esm/{isProduction-1b435469.js → isProduction-312c5090.js} +0 -0
- /package/build/esm/{localizeNumberFormat-75d5ab63.js → localizeNumberFormat-7be379f5.js} +0 -0
- /package/build/esm/{normalizeLink-d2a66e86.js → normalizeLink-4bc0f032.js} +0 -0
- /package/build/esm/{paths-90301770.js → paths-3aa9e733.js} +0 -0
- /package/build/esm/{theme-c4c4bf96.js → theme-2d06fcb0.js} +0 -0
- /package/build/esm/{translationsContext-cb59f0d3.js → translationsContext-0ea53580.js} +0 -0
- /package/build/esm/{tslib.es6-681566ab.js → tslib.es6-fa2b0040.js} +0 -0
- /package/build/esm/{types-c4c069bb.js → types-27b60cd6.js} +0 -0
- /package/build/esm/{useIsInit-e927721d.js → useIsInit-c5411f18.js} +0 -0
- /package/build/esm/{useOutsideClick-2016dcbc.js → useOutsideClick-d82e18e1.js} +0 -0
- /package/build/esm/{useScrollbarSize-2ccbd2d2.js → useScrollbarSize-5dbc83d7.js} +0 -0
- /package/build/esm/{useUniqueId-3ae50a06.js → useUniqueId-20aeda97.js} +0 -0
- /package/build/esm/{utils-232d0107.js → utils-cf5913a7.js} +0 -0
- /package/build/{index-b1a4fc3d.js → index-12b3d15e.js} +0 -0
- /package/build/{isProduction-ce24379a.js → isProduction-8f6cbcab.js} +0 -0
- /package/build/{localizeNumberFormat-f430dca9.js → localizeNumberFormat-69ca71a2.js} +0 -0
- /package/build/{normalizeLink-86acf9a5.js → normalizeLink-6ea6478e.js} +0 -0
- /package/build/{paths-5762fbf1.js → paths-169ca2fa.js} +0 -0
- /package/build/{theme-8abaf308.js → theme-8d7a0555.js} +0 -0
- /package/build/{translationsContext-eb0fc00a.js → translationsContext-34015b3b.js} +0 -0
- /package/build/{tslib.es6-827ac69f.js → tslib.es6-e36bef96.js} +0 -0
- /package/build/{types-749d26d9.js → types-7d180d5a.js} +0 -0
- /package/build/{useIsInit-6471982d.js → useIsInit-2fee5fc8.js} +0 -0
- /package/build/{useOutsideClick-ca3ff3e3.js → useOutsideClick-9e98f405.js} +0 -0
- /package/build/{useScrollbarSize-7c4c13ca.js → useScrollbarSize-4b33093d.js} +0 -0
- /package/build/{useUniqueId-7d4e161c.js → useUniqueId-2b7006f9.js} +0 -0
- /package/build/{utils-087c19a1.js → utils-39189826.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,_ as t}from"./tslib.es6-
|
|
1
|
+
import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";import o,{createContext as n,useContext as i,useState as l,useRef as r,useEffect as s,useMemo as c,useCallback as d}from"react";import{useMantineTheme as m,createStyles as p,Flex as u,Box as g,rem as v,Checkbox as h,Portal as b,Anchor as f,Accordion as y,Popover as w}from"@mantine/core";import{a as x}from"./index-5404c828.js";import{u as E}from"./useTranslations-e743d735.js";import C from"innertext";import{t as k}from"./theme-2d06fcb0.js";import{d as N,ab as A,ac as T,R as z,ad as P,ae as I,af as S,H as L,ag as M,I as j,ah as B,y as F,V as O,ai as R,aj as V,ak as D,al as U,am as W,an as H,x as Z,ao as q,ap as _,aq as G,ar as Q,as as X,at as K,J as $,au as Y,a3 as J,av as ee,A as te,aw as ae,ax as oe,ay as ne,az as ie,aA as le,aB as re,aC as se}from"./utils-32abe328.js";import"@mantine/hooks";import{CommonGAssets as ce}from"./gAssets.js";import"@mantine/dates";import{D as de,d as me}from"./index-30cba675.js";import"./Onboarding-9e4e70e7.js";import pe from"dayjs";import"./screenSizeContext-6c4b3d3a.js";import ue,{keyframes as ge,css as ve}from"styled-components";import{M as he,t as be,c as fe,a as ye}from"./utils-cf5913a7.js";import"./isProduction-312c5090.js";import{I as we}from"./index-a4437a03.js";import{A as xe,a as Ee,B as Ce,D as ke}from"./index-3f736c0b.js";import{e as Ne,c as Ae,P as Te,g as ze,b as Pe,h as Ie,i as Se}from"./dataTransform-31c4c853.js";import{T as Le}from"./index-93f72147.js";import{I as Me}from"./index-331dcbca.js";import je from"lodash/debounce";import Be from"react-contenteditable";import{B as Fe}from"./index-07c18c8e.js";import{d as Oe,g as Re}from"./cookieHelper-8d4d4f87.js";import*as Ve from"react-dom";import"./index-fbe22277.js";import{format as De}from"date-fns";import"react-day-picker/DayPickerInput";import{U as Ue}from"./index.styled-ad90ced9.js";import"./index-48b38bdc.js";import"lodash/throttle";import"./types-27b60cd6.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-5fc3c70e.js";import"uuid";import"./utils-7f96a570.js";import"string-format";import We from"dayjs/plugin/relativeTime";import{M as He}from"./index-661133f9.js";import{a as Ze}from"./useUniqueId-20aeda97.js";import"./translationsContext-0ea53580.js";import{g as qe}from"./routing-7370484f.js";const _e=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),a.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Ge=n({}),Qe=({children:e,defaultParams:t})=>o.createElement(Ge.Provider,{value:{defaultParams:t}},e),Xe=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(N),{defaultParams:o}=i(Ge)||{},n=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,i)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),i);if(!n||l){n||Oe(A),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=T(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},Ke=ue.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
@@ -6,14 +6,14 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
6
6
|
button {
|
|
7
7
|
position: relative;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
`,$e=ge`
|
|
10
10
|
0% {
|
|
11
11
|
transform: rotate(0deg);
|
|
12
12
|
}
|
|
13
13
|
100% {
|
|
14
14
|
transform: rotate(360deg);
|
|
15
15
|
}
|
|
16
|
-
`;
|
|
16
|
+
`;ue.div`
|
|
17
17
|
display: flex;
|
|
18
18
|
width: fit-content;
|
|
19
19
|
width: -moz-fit-content;
|
|
@@ -29,12 +29,12 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
29
29
|
width: 24px;
|
|
30
30
|
height: 24px;
|
|
31
31
|
margin-bottom: 0.5rem;
|
|
32
|
-
animation: ${
|
|
32
|
+
animation: ${$e} 1.2s linear infinite;
|
|
33
33
|
}
|
|
34
34
|
&[data-is-marrybaby='true'] {
|
|
35
35
|
box-shadow: none;
|
|
36
36
|
}
|
|
37
|
-
`;const
|
|
37
|
+
`;const Ye=({className:e,size:t="md"})=>{const{t:a}=E();return o.createElement(Ke,{className:e},o.createElement(Fe,{size:t,color:"transparent",isLoading:!0},a("loading")))},Je=ue.div`
|
|
38
38
|
.link-info-container {
|
|
39
39
|
padding: 0.5rem 1rem;
|
|
40
40
|
background: ${e=>e.color||"#f4faff"};
|
|
@@ -94,7 +94,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,et=({title:t,url:a,image:n,logo:c,className:d,style:p,noRefetch:u})=>{const{data:{locale:g,env:{isMarryBaby:v}}}=i(N),[h,b]=l(!1),f=m(),y=r(u);y.current=u;const[w,x]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!y.current){if(!a)return x(null);x((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),z(P(I.FETCH_PREVIEW,{_locale:g}),"POST",{data:{link:a},headers:{"Content-Type":"application/json"}}).then((e=>{var t,o,n;b(!1),x({title:null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.title,url:a,image:(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.image)||(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.logo)})})).catch((()=>{x(null)}))}}))}),[a]);const E=(null==w?void 0:w.image)||n,C=(null==w?void 0:w.title)||t,k=(null==w?void 0:w.logo)||c,A=(null==w?void 0:w.url)||a,T=A.replace("http://","").replace("https://","").split(/[/?#]/)[0],M=r(!1);return o.createElement(Je,{"data-is-marrybaby":v,className:`${d} no-replace-click`,style:p,color:f.colors[f.primaryColor][0]},o.createElement("a",{href:A,target:"_blank",rel:"noreferrer"},E&&o.createElement("div",{className:"link-image-wrapper"},!v&&o.createElement("img",{className:"link-image-blur",src:E,onError:e=>{M.current||(M.current=!0,e.currentTarget.src=S)},loading:"lazy"}),o.createElement("img",{className:"link-image",src:E,onError:e=>{M.current||(M.current=!0,e.currentTarget.src=S)},loading:"lazy"})),o.createElement("div",{className:"link-info-container"},o.createElement(Le,{size:"n1"},v&&k&&!h&&o.createElement("img",{className:"link-logo",src:k,onError:()=>b(!0),loading:"lazy"}),T),o.createElement(L,{tag:"h6"},C))))},tt=n({});var at="vvR-m49";const ot=({children:e,className:t=""})=>{const{isReplied:a,trackingCategory:n,trackingLabel:l,onLikeClick:r}=i(tt);return o.createElement("div",{className:`${at} ${t}`,"data-event-category":n,"data-event-action":a?"Like Comment Click":"Like Post Click","data-event-label":l,onClick:()=>{null==r||r()}},e)},nt=({children:e,className:t=""})=>{const{trackingCategory:a,trackingLabel:n,onShareClick:l}=i(tt);return o.createElement("div",{className:`${at} ${t}`,onClick:()=>{null==l||l()},"data-event-category":a,"data-event-action":"Share Icon Click","data-event-label":n},e)},it=({children:e,className:t=""})=>{const{isReplied:a,trackingCategory:n,trackingLabel:l,onCommentClick:r}=i(tt);return o.createElement("div",{className:`${at} ${t}`,"data-event-category":n,"data-event-action":a?"Reply Comment Click":"Comment Text Click","data-event-label":l,onClick:e=>{e.preventDefault(),e.stopPropagation(),null==r||r()}},e)};var lt,rt="UhiT4m5",st="oEfeTkV",ct="OlbikxJ",dt="_9GXHCn3",mt="MV3lNuh";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(lt||(lt={}));const pt=e=>{var{type:a,loveCount:n=0,replyCount:l=0,replyPadding:r,liked:s,isReplied:c,onCommentClick:d,onLikeClick:m,onShareClick:p,className:u,style:g,hideCommentIcon:v,showingMostEngaging:h,isMarryBaby:b,hasShare:f=!0,hasCountLike:y=!0,trackingCategory:w="Together",trackingLabel:x="",children:C}=e,A=t(e,["type","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:T}}}=i(N),z=Boolean(b)?b:T,{t:P}=E();return o.createElement(tt.Provider,{value:{liked:s,loveCount:n,trackingCategory:w,trackingLabel:x,isReplied:c,onLikeClick:m,onShareClick:p,onCommentClick:d}},C||o.createElement("div",Object.assign({className:`${rt} ${u}`,"data-show-most-engaging":h,"data-type":a===lt.post?"post":"reply","data-reply-padding":a===lt.reply&&r,"data-is-marrybaby":z,style:g},A),o.createElement("div",{className:st},o.createElement("div",{className:ct},o.createElement(ot,null,o.createElement(Le,{className:dt,style:{marginRight:"25px"},size:"p3",as:"div"},o.createElement(M,{className:"txt-icon",isMarryBaby:z,isSolid:s,color:s?z?k.mbColors.pink:k.colors.red800:"#737373"}),y&&o.createElement("div",{className:mt},n))),f&&o.createElement(nt,null,o.createElement(Le,{size:"p3",className:dt,as:"div"},o.createElement(j.Share,{isMarryBaby:z})))),!v&&o.createElement(it,null,o.createElement(Le,{size:"p3",className:dt,as:"div"},c?o.createElement(j.Reply,{className:"txt-icon"}):o.createElement(j.Comment,{className:"txt-icon",isMarryBaby:z}),c?P("cardReactions.reply"):o.createElement("div",{className:mt},P("post.commentCount",{count:l})))))))};pt.LikeWrapper=ot,pt.ShareWrapper=nt,pt.CommentWrapper=it;const ut=p((e=>({wrapper:{display:"flex",flexWrap:"wrap",width:"100%",padding:"0.5rem 0",gap:"0.5rem"},item:{position:"relative",whiteSpace:"nowrap",padding:"5px 12px",background:e.colors.gray[0],borderRadius:"2rem",cursor:"pointer","-webkit-user-drag":"none",userSelect:"none",textDecoration:"none","*":{pointerEvents:"none"},"&:first-child":{marginLeft:0}},text:{}}))),gt=e=>{var{topics:a=[],onClick:n,className:r,style:s,trackingCategory:c="Together",locale:d="vi-VN",classNames:m,styles:p,unstyled:u,shortenedNumber:g=3,shortenedStyle:v}=e,h=t(e,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:b}=E(),{classes:f}=ut(void 0,{name:"TagTopic",classNames:m,styles:p,unstyled:u}),{data:{env:{togetherBasePath:y}},action:{sanitizeFunction:w}}=i(N),[x,C]=l(!v);return o.createElement("div",Object.assign({onClick:n,className:`${f.wrapper} ${r}`,style:s},h),(x?a:a.slice(0,g)).map(((e,t)=>{const a=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return o.createElement("a",{className:f.item,key:t,"data-event-category":c,"data-event-action":"Topic in Post Click","data-event-label":`${B(d)}${y}${e.url}`,href:e.isActive&&!e.isHidden?`${y}${e.url}`:void 0},o.createElement(F,{size:"p4"},o.createElement("span",{style:Object.assign({},a&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:a?`${De(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:de[d]})}/${null==e?void 0:e.dueDateYear}`:(null==w?void 0:w(e.name))||e.name}})))})),!x&&a.length>g&&o.createElement("a",{className:f.item,href:"#",onClick:e=>{e.preventDefault(),C(!0)}},o.createElement(F,{size:"p4"},"+",b("tagTopic.moreTopics",{number:a.length-g}))))},vt=ue.div`
|
|
98
98
|
display: flex;
|
|
99
99
|
align-items: center;
|
|
100
100
|
justify-content: space-between;
|
|
@@ -161,13 +161,13 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
&.label-sorting {
|
|
164
|
-
${
|
|
164
|
+
${he.tdUp} {
|
|
165
165
|
padding-bottom: 1.5rem;
|
|
166
166
|
margin-bottom: -0.75rem;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
`,
|
|
170
|
+
`,ht=({label:e,rightLabel:t,onClick:a,color:n,className:l,style:r})=>{const{data:{env:{isMarryBaby:s}}}=i(N);return o.createElement(vt,{"data-is-marrybaby":s,"data-color":n,onClick:a,className:l,style:r},o.createElement(Le,{className:"label-sort-pin-heading",size:s?"p4":"p3",type:"bold"},e),t)};const bt=({onClick:e,color:t,className:a,style:n})=>{const{data:{env:{isMarryBaby:l}}}=i(N),{t:r}=E();return o.createElement(ht,{label:o.createElement(o.Fragment,null,l&&o.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M3.5 19.9999L7.87 15.6299' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.95634 11.294C4.56534 11.685 4.56534 12.318 4.95634 12.708L7.87434 15.626L10.7923 18.544C11.1833 18.935 11.8163 18.935 12.2063 18.544L13.3813 17.369C13.5693 17.181 13.6743 16.927 13.6743 16.662V12.726L16.5743 9.82597L18.8833 9.94897C19.1663 9.96397 19.4433 9.85797 19.6433 9.65797L20.2173 9.08397C20.6083 8.69297 20.6083 8.05997 20.2173 7.66997L15.8313 3.28397C15.4403 2.89297 14.8073 2.89297 14.4173 3.28397L13.8433 3.85797C13.6423 4.05897 13.5363 4.33497 13.5523 4.61797L13.6753 6.92697L10.7753 9.82697H6.83834C6.57334 9.82697 6.31834 9.93197 6.13134 10.12L4.95634 11.294V11.294Z' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16.5699 9.83018L13.6699 6.93018' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e",loading:"lazy"})," ",r("label.pinnedPost")),rightLabel:!l&&o.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='7.18605' y1='7.68219' x2='3.68219' y2='13.8139' stroke='%23FEA21E' stroke-linecap='round'/%3e%3cpath d='M3.24591 7.78426C3.21275 7.84168 3.20376 7.90993 3.22092 7.97398C3.23808 8.03803 3.27998 8.09264 3.3374 8.12579L8.78429 11.2706C8.90385 11.3396 9.05674 11.2986 9.12578 11.1791C9.71191 10.1641 9.71348 8.97262 9.23682 7.99339L10.8583 5.18521C11.5115 5.00603 12.0982 4.57973 12.4638 3.94629C12.5328 3.82672 12.4919 3.67383 12.3723 3.6048L8.18237 1.18584C8.12494 1.15268 8.0567 1.1437 7.99265 1.16086C7.92861 1.17803 7.874 1.21993 7.84086 1.27736C7.47521 1.91077 7.39934 2.63194 7.57065 3.28723L5.94919 6.09545C4.86323 6.1723 3.83201 6.76934 3.24591 7.78426Z' fill='%23FEA21E' stroke='%23FEA21E' stroke-width='0.5' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),onClick:e,color:"white",className:`label-pinned ${a}`,style:n})};const ft=ue.div`
|
|
171
171
|
position: relative;
|
|
172
172
|
display: content;
|
|
173
173
|
|
|
@@ -333,7 +333,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
333
333
|
} */
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
`,
|
|
336
|
+
`,yt=ue.div`
|
|
337
337
|
display: flex;
|
|
338
338
|
/* max-height: 300px; */
|
|
339
339
|
flex-direction: column;
|
|
@@ -473,7 +473,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
`,
|
|
476
|
+
`,wt=({className:e,style:t,toggleButtonContent:a,position:n="bottom",align:c="end",children:d,buttonProps:m})=>{const{data:{env:{isMarryBaby:p}}}=i(N),[u,g]=l(!1),v=r(null),h=r(u);return s((()=>{var e;h.current=u,u&&(null===(e=v.current)||void 0===e||e.focus())}),[u]),s((()=>{const e=e=>{var t;!(null===(t=v.current)||void 0===t?void 0:t.contains(e.target))&&h.current&&g(!1)};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),o.createElement(ft,{"data-is-marrybaby":p,className:e,style:t},o.createElement(Fe,Object.assign({theme:p?"marryBaby":"helloSites",className:"popover-menu__btn",size:"md",color:"transparent",onClick:()=>g((e=>!e))},m),a),u?o.createElement("div",{ref:v,className:`popover-menu__content --position-${n} --align-${c}`,tabIndex:0,onClick:e=>e.stopPropagation()},"function"==typeof d?d({setShow:g}):d):null)};const xt=e=>{var{data:a}=e,n=t(e,["data"]);return o.createElement(wt,Object.assign({},n),(({setShow:e})=>o.createElement(Et,{data:a,setShow:e})))},Et=({data:e,setShow:t})=>{var a;const[n,i]=l(""),r=c((()=>e&&((e,t)=>{const a=t.split(".");let o=e;return a.forEach((e=>{var t,a;e&&o&&"list"===(null==o?void 0:o.type)&&(o=null===(a=null===(t=null==o?void 0:o.list)||void 0===t?void 0:t[Number(e)])||void 0===a?void 0:a.subTree)})),o})(e,n)),[e,n]);if(!e)return null;if(!r)return null;return o.createElement(yt,null,r.isShowheader?o.createElement("div",{className:"__header"},n?o.createElement("img",{className:"__back-btn",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15 18L9 12L15 6' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",onClick:()=>i((e=>e.split(".").slice(0,-1).join("."))),loading:"lazy"}):null,r.title?o.createElement(L,{className:"__title",tag:"h6"},r.title):null):null,r.description?o.createElement(Le,{className:"tree-text-description",color:k.colors.gray600,size:"p3",type:"regular"},r.description):null,o.createElement("div",{className:"__content"},"jsx"===r.type?null===(a=null==r?void 0:r.jsxRenderer)||void 0===a?void 0:a.call(r,t):null,"list"===r.type?o.createElement("ul",{className:"__list"},Array.isArray(r.list)?r.list.map(((e,a)=>o.createElement("li",{key:a,style:e.style,className:`__item ${e.className}`}," ",o.createElement("div",{className:"__btn "+(e.selected?"--checked":""),onClick:()=>((e,{subTree:a,onClick:o=(()=>null)})=>{o&&o(),a?i((t=>t.split(".").concat(String(e)).join("."))):t&&t(!1)})(a,e),"data-event-category":e.dataEventCategory,"data-event-action":e.dataEventAction,"data-event-label":e.dataEventLabel},e.icon&&o.createElement("img",{className:"__icon",src:e.icon,loading:"lazy"}),o.createElement("span",null,e.label)),e.subTree?o.createElement("img",{className:"__toggle",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12L10 8L6 4' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}):null,e.selected?o.createElement("img",{className:"__toggle",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.3334 4L6.00002 11.3333L2.66669 8' stroke='%238C8C8C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}):null))):null):null))};var Ct;!function(e){e.latest="latest",e.oldest="oldest",e.popular="popular"}(Ct||(Ct={}));const kt=({onChange:e,className:t,style:a,leftLabel:n,rightLabel:l,color:r,value:s,choices:c})=>{const{data:{env:{isMarryBaby:d}}}=i(N);return o.createElement(ht,{label:n,rightLabel:o.createElement(xt,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:c.map((t=>({label:t.label,onClick:()=>e&&e(String(t.value)),selected:t.value===s,className:"bold-item"})))},toggleButtonContent:o.createElement("div",{style:{display:"flex"}},o.createElement(Le,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},l),o.createElement("img",{src:d?"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M8 14L12 18L16 14' stroke='%233E3F58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16 10L12 6L8 10' stroke='%233E3F58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.49992 7H11.4998C11.6352 7 11.7525 6.94506 11.8514 6.83509C11.9502 6.72515 11.9999 6.59496 11.9999 6.44449C11.9999 6.29402 11.9503 6.16389 11.8514 6.0538L8.35141 2.16491C8.25252 2.05509 8.13538 2 7.99988 2C7.86437 2 7.74723 2.05509 7.64826 2.16491L4.1483 6.0538C4.04932 6.16377 3.99988 6.29402 3.99988 6.44449C3.99988 6.59493 4.04932 6.72515 4.1483 6.83509C4.24738 6.94506 4.36452 7 4.49992 7Z' fill='%238C8C8C'/%3e%3cpath d='M11.4998 9H4.49992C4.36441 9 4.24727 9.05497 4.1483 9.16482C4.04932 9.2748 3.99988 9.40496 3.99988 9.55543C3.99988 9.7059 4.04932 9.83616 4.1483 9.94607L7.64826 13.835C7.74734 13.9449 7.86448 14 7.99988 14C8.13527 14 8.25252 13.9449 8.35141 13.835L11.8514 9.94604C11.9502 9.83616 11.9999 9.7059 11.9999 9.5554C11.9999 9.40496 11.9503 9.2748 11.8514 9.16479C11.7525 9.05485 11.6352 9 11.4998 9Z' fill='%238C8C8C'/%3e%3c/svg%3e",style:{width:16,height:16,alignSelf:"center"},loading:"lazy"}))}),color:"gray",className:t,style:a})},Nt=e=>{var{size:a=15}=e,n=t(e,["size"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o.createElement("path",{d:"M7.43701 14C11.0614 14 13.9995 11.0619 13.9995 7.4375C13.9995 3.81313 11.0614 0.875 7.43701 0.875C3.81264 0.875 0.874512 3.81313 0.874512 7.4375C0.874512 11.0619 3.81264 14 7.43701 14Z",fill:"white",stroke:"#E4E8EC",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M8.53125 6.34375V4.15625H6.34375V6.34375H4.15625V8.53125H6.34375V10.7188H8.53125V8.53125H10.7188V6.34375H8.53125Z",fill:"#FF5331"}))},At=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{d:"M7.29998 8.71005L6.24868 7.64851C6.14527 7.54509 6.02647 7.49338 5.89228 7.49338C5.75811 7.49338 5.63931 7.54509 5.53588 7.64851C5.43247 7.75192 5.38012 7.87179 5.37883 8.00811C5.37756 8.14444 5.42649 8.26217 5.52563 8.36131L6.8782 9.71386C6.99871 9.83437 7.13931 9.89463 7.29998 9.89463C7.46066 9.89463 7.60126 9.83437 7.72177 9.71386L10.4846 6.95105C10.588 6.84764 10.6397 6.72884 10.6397 6.59465C10.6397 6.46047 10.588 6.34167 10.4846 6.23825C10.3812 6.13484 10.2613 6.0842 10.125 6.08633C9.98866 6.08846 9.87093 6.1391 9.77178 6.23825L7.29998 8.71005ZM7.99998 14.2703H7.84293C7.79379 14.2703 7.74913 14.2592 7.70897 14.2369C6.34743 13.7857 5.22222 12.9235 4.33333 11.6504C3.44444 10.3773 3 8.96046 3 7.39978V4.39723C3 4.1451 3.07308 3.91754 3.21923 3.71455C3.36539 3.51155 3.55342 3.36432 3.78333 3.27288L7.5782 1.85621C7.72093 1.80494 7.86153 1.7793 7.99998 1.7793C8.13844 1.7793 8.27903 1.80494 8.42177 1.85621L12.2166 3.27288C12.4465 3.36432 12.6346 3.51155 12.7807 3.71455C12.9269 3.91754 13 4.1451 13 4.39723V7.39978C13 8.96046 12.5555 10.3773 11.6666 11.6504C10.7777 12.9235 9.65253 13.7857 8.291 14.2369C8.23972 14.2592 8.14272 14.2703 7.99998 14.2703Z",fill:n}))};At.defaultProps={size:24,color:k.colors.gray600,activeColor:k.colors.primaryBase,isActive:!1};var Tt="dZWeHns",zt="tMiOKib",Pt="uDcqD-2",It="pDlsows",St="m-HVXw1";const Lt=({children:e,className:t=""})=>o.createElement("div",{className:`${zt} ${t}`},e),Mt=({children:e,className:t=""})=>o.createElement("div",{className:`${Pt} ${t}`},e);var jt="sTU4T4I",Bt="tCql9Je",Ft="_3j7uYhH",Ot="PHABgoT";const Rt=({avatarProps:e,title:t,subTitle:a,children:n,className:i="",style:l,onAvatarClick:r,avatarIcon:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>(console.log({avatarProps:e}),o.createElement("div",{className:`${jt} ${i}`,style:l},o.createElement("div",{className:Ft,onClick:r,"data-event-category":c,"data-event-action":d,"data-event-label":m},o.createElement(Ue,Object.assign({},e)),s&&o.createElement("div",{className:Ot},s)),o.createElement("div",{className:`${Bt} ${i}`,style:{minHeight:`${(null==e?void 0:e.size)||40}px`}},n||o.createElement(o.Fragment,null,t&&o.createElement(Lt,null,t),a&&o.createElement(Mt,null,a)))));Rt.MainText=Lt,Rt.SubText=Mt,Rt.SubDivider=({className:e=""})=>o.createElement("span",{className:`${St} ${e}`}),Rt.Row=({children:e,className:t=""})=>o.createElement("div",{className:`${Tt} ${t} row`},e),Rt.ColLeft=({children:e,className:t=""})=>o.createElement("div",{className:`${t} col-left`},e),Rt.ColRight=({children:e,className:t=""})=>o.createElement("div",{className:`${t} col-right`},e),Rt.SubTextRow=e=>{var{children:a,className:n=""}=e,i=t(e,["children","className"]);return o.createElement("div",Object.assign({className:`${It} ${n}`},i),a)};var Vt=p((()=>({root:{},authorBadge:{background:"yellow"}})));const Dt=ue.div`
|
|
477
477
|
position: fixed;
|
|
478
478
|
left: 50%;
|
|
479
479
|
width: 343px;
|
|
@@ -483,7 +483,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
483
483
|
transform: translate(-50%, -50%);
|
|
484
484
|
transition: all 0.5s ease-in-out;
|
|
485
485
|
|
|
486
|
-
${
|
|
486
|
+
${he.tdUp} {
|
|
487
487
|
width: 750px;
|
|
488
488
|
}
|
|
489
489
|
|
|
@@ -503,7 +503,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
.popup-content {
|
|
506
|
-
${
|
|
506
|
+
${he.mbDown} {
|
|
507
507
|
display: block;
|
|
508
508
|
}
|
|
509
509
|
display: flex;
|
|
@@ -548,7 +548,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
548
548
|
text-align: center;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
`,
|
|
551
|
+
`,Ut=ue.div`
|
|
552
552
|
position: fixed;
|
|
553
553
|
z-index: 110;
|
|
554
554
|
top: 0;
|
|
@@ -561,7 +561,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
561
561
|
&[data-open='false'] {
|
|
562
562
|
display: none;
|
|
563
563
|
}
|
|
564
|
-
`,
|
|
564
|
+
`,Wt=ue.div`
|
|
565
565
|
.image-container {
|
|
566
566
|
.badge-avatar {
|
|
567
567
|
position: absolute;
|
|
@@ -586,7 +586,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
586
586
|
width: 24px;
|
|
587
587
|
height: 24px;
|
|
588
588
|
}
|
|
589
|
-
`,
|
|
589
|
+
`,Ht=ue.div`
|
|
590
590
|
position: relative;
|
|
591
591
|
z-index: 9;
|
|
592
592
|
.specialty {
|
|
@@ -615,20 +615,20 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
615
615
|
text-overflow: ellipsis;
|
|
616
616
|
overflow: hidden;
|
|
617
617
|
}
|
|
618
|
-
`;
|
|
618
|
+
`;ue.span`
|
|
619
619
|
display: flex;
|
|
620
620
|
flex-direction: column;
|
|
621
621
|
justify-content: center;
|
|
622
622
|
margin: 0 0.4em;
|
|
623
623
|
color: ${e=>e.theme.colors.neutral300};
|
|
624
|
-
`,
|
|
624
|
+
`,ue.div`
|
|
625
625
|
display: inline-block;
|
|
626
626
|
width: 3px;
|
|
627
627
|
height: 3px;
|
|
628
628
|
margin: 0;
|
|
629
629
|
background-color: ${e=>e.theme.colors.gray400};
|
|
630
630
|
border-radius: 50%;
|
|
631
|
-
`,
|
|
631
|
+
`,ue.div`
|
|
632
632
|
display: flex;
|
|
633
633
|
margin-top: 8px;
|
|
634
634
|
|
|
@@ -636,12 +636,12 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
636
636
|
width: 24px;
|
|
637
637
|
height: 24px;
|
|
638
638
|
}
|
|
639
|
-
`;const
|
|
639
|
+
`;const Zt=ue.ul`
|
|
640
640
|
padding-left: 18px;
|
|
641
641
|
li {
|
|
642
642
|
list-style-type: disc;
|
|
643
643
|
}
|
|
644
|
-
`;var
|
|
644
|
+
`;var qt="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L6 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",_t="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9 16.9998C13.4183 16.9998 17 13.418 17 8.99976C17 4.58148 13.4183 0.999756 9 0.999756C4.58172 0.999756 1 4.58148 1 8.99976C1 13.418 4.58172 16.9998 9 16.9998Z' fill='white' stroke='%23E4E8EC' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.3333 7.66679V5.00012H7.66667V7.66679H5V10.3335H7.66667V13.0001H10.3333V10.3335H13V7.66679H10.3333Z' fill='%23FF5331'/%3e%3c/svg%3e";const Gt=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,doctorId:n,locale:i,isMobile:r,overwriteProfileProps:c,avatarFallback:d=ce.getAssetPath("avatar.jpg"),trackingCategory:m="Together"})=>{var p,u,g;const{t:v}=E(),[h,b]=l(null),[f,y]=l(!1);s((()=>{if(e&&n&&String(null==h?void 0:h.id)!==String(n)){y(!0);try{b(null),z(O(R.GET_DOCTOR_INFO,{doctorId:n,website_url:V[i]}),"get").then((e=>{b(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),c))}))}catch(e){console.error(e)}y(!1)}}),[e,n,null==h?void 0:h.id]);const w=(null==h?void 0:h.experiences)||[],x=((null==h?void 0:h.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),C=w.map((e=>{try{return JSON.parse(e.description)}catch(t){return e.description}})).filter((e=>e.content));return o.createElement(o.Fragment,null,o.createElement(Dt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},f||!h?o.createElement(Ye,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:qt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Wt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(we,{src:null==h?void 0:h.avatar,backupSrc:d,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:_t,alt:"badge",loading:"lazy"})))),o.createElement(Ht,null,o.createElement(Le,{size:"s3",type:"semiBold",className:"full-name"},null==h?void 0:h.name),o.createElement("div",{className:"specialty"},x&&o.createElement(o.Fragment,null,o.createElement(Le,{size:"p4",color:k.colors.gray800},x," • ")),o.createElement("a",{href:D({id:null===(p=null==h?void 0:h.organization)||void 0===p?void 0:p.id,name:null===(u=null==h?void 0:h.organization)||void 0===u?void 0:u.name,slug:null===(g=null==h?void 0:h.organization)||void 0===g?void 0:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(Le,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==h?void 0:h.organization.name))))),!r&&o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:U({name:h.name,id:h.id,locale:i})},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment"))))),C&&o.createElement(Ht,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"s3",color:k.colors.gray800,style:{paddingBottom:16}},v("expert.content.description").toUpperCase()),o.createElement(Zt,null,C.map(((e,t)=>o.createElement("li",{key:t},o.createElement(Le,{size:"p2"},(e=>(null==e?void 0:e.year)?`${e.year} ${null==e?void 0:e.content}`:(null==e?void 0:e.content)?e.content:"string"==typeof e?e:"")(e)))))),r?o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:U({name:h.name,id:h.id,locale:i})},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment")))):o.createElement("a",{href:U({name:h.name,id:h.id,locale:i})},o.createElement(Le,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":m,"data-event-action":"See Full Doctor Profile","data-event-label":B(i)+U({name:h.name,id:h.id,locale:i})},v("home.seeExpert"))))))),o.createElement(Ut,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},Qt=ue.div`
|
|
645
645
|
position: fixed;
|
|
646
646
|
left: 50%;
|
|
647
647
|
width: 343px;
|
|
@@ -651,7 +651,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
651
651
|
transform: translate(-50%, -50%);
|
|
652
652
|
transition: all 0.5s ease-in-out;
|
|
653
653
|
|
|
654
|
-
${
|
|
654
|
+
${he.tdUp} {
|
|
655
655
|
width: 750px;
|
|
656
656
|
}
|
|
657
657
|
|
|
@@ -671,7 +671,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
.popup-content {
|
|
674
|
-
${
|
|
674
|
+
${he.mbDown} {
|
|
675
675
|
display: block;
|
|
676
676
|
}
|
|
677
677
|
display: flex;
|
|
@@ -713,7 +713,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
713
713
|
text-align: center;
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
`,
|
|
716
|
+
`,Xt=ue.div`
|
|
717
717
|
position: fixed;
|
|
718
718
|
z-index: 110;
|
|
719
719
|
top: 0;
|
|
@@ -726,7 +726,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
726
726
|
&[data-open='false'] {
|
|
727
727
|
display: none;
|
|
728
728
|
}
|
|
729
|
-
`,
|
|
729
|
+
`,Kt=ue.div`
|
|
730
730
|
.image-container {
|
|
731
731
|
.badge-avatar {
|
|
732
732
|
position: absolute;
|
|
@@ -751,7 +751,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
751
751
|
width: 24px;
|
|
752
752
|
height: 24px;
|
|
753
753
|
}
|
|
754
|
-
|
|
754
|
+
`,$t=ue.div`
|
|
755
755
|
position: relative;
|
|
756
756
|
z-index: 9;
|
|
757
757
|
.specialty {
|
|
@@ -780,20 +780,20 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
780
780
|
text-overflow: ellipsis;
|
|
781
781
|
overflow: hidden;
|
|
782
782
|
}
|
|
783
|
-
`;
|
|
783
|
+
`;ue.span`
|
|
784
784
|
display: flex;
|
|
785
785
|
flex-direction: column;
|
|
786
786
|
justify-content: center;
|
|
787
787
|
margin: 0 0.4em;
|
|
788
788
|
color: ${e=>e.theme.colors.neutral300};
|
|
789
|
-
`,
|
|
789
|
+
`,ue.div`
|
|
790
790
|
display: inline-block;
|
|
791
791
|
width: 3px;
|
|
792
792
|
height: 3px;
|
|
793
793
|
margin: 0;
|
|
794
794
|
background-color: ${e=>e.theme.colors.gray400};
|
|
795
795
|
border-radius: 50%;
|
|
796
|
-
`;const
|
|
796
|
+
`;const Yt=ue.div`
|
|
797
797
|
display: flex;
|
|
798
798
|
margin-top: 8px;
|
|
799
799
|
|
|
@@ -801,7 +801,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
801
801
|
width: 24px;
|
|
802
802
|
height: 24px;
|
|
803
803
|
}
|
|
804
|
-
`;var
|
|
804
|
+
`;var Jt="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath fill='%2345A4FF' d='M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Z'/%3e%3cpath fill='%232D87F3' d='M24 12a12.1 12.1 0 0 0-.128-1.758l-5.077-5.077L5.041 18.958l4.858 4.858c.682.12 1.384.184 2.1.184 6.628 0 12-5.373 12-12Z'/%3e%3cpath fill='white' d='M9.014 17.824 5.04 18.959l1.135-3.973 2.368.47.47 2.368Z'/%3e%3cpath fill='%23F7F9FC' d='M8.544 15.456 5.041 18.96l3.972-1.135-.469-2.368Z'/%3e%3cpath fill='%23E4E8EC' d='M6.467 18.552 5.45 17.533 5.04 18.96l1.426-.407Z'/%3e%3cpath fill='%23D2D6DC' d='m5.957 18.043-.916.916 1.426-.407-.51-.509Z'/%3e%3cpath fill='%23FFD658' d='m15.828 5.331 2.837 2.837-9.651 9.652-2.838-2.837 9.652-9.652Z'/%3e%3cpath fill='%23FFC326' d='m7.594 16.404 9.651-9.651 1.419 1.418-9.652 9.652-1.418-1.419Z'/%3e%3cpath fill='%23FF5331' d='m18.312 8.525-2.837-2.838 1.123-1.123c.44-.44 1.154-.44 1.595 0l1.243 1.243c.44.44.44 1.154 0 1.594l-1.124 1.124Z'/%3e%3cpath fill='%23F44D2C' d='m18.816 5.186-1.921 1.92 1.418 1.419 1.124-1.124c.44-.44.44-1.154 0-1.594l-.622-.621Z'/%3e%3c/svg%3e";const ea={author:Jt,edtior:Jt,expert:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath d='M11.443 5.13654C11.6446 4.63466 12.355 4.63466 12.5566 5.13654L13.9931 8.71375C14.0789 8.92747 14.2795 9.0732 14.5093 9.08878L18.3553 9.34957C18.8949 9.38615 19.1145 10.0619 18.6994 10.4086L15.7412 12.8802C15.5645 13.0279 15.4878 13.2637 15.544 13.4871L16.4845 17.2254C16.6164 17.7499 16.0417 18.1676 15.5836 17.88L12.3188 15.8303C12.1238 15.7079 11.8758 15.7079 11.6808 15.8303L8.41599 17.88C7.95794 18.1676 7.38314 17.7499 7.51509 17.2254L8.45556 13.4871C8.51175 13.2637 8.43513 13.0279 8.25839 12.8802L5.30017 10.4086C4.88514 10.0619 5.10469 9.38615 5.64429 9.34957L9.49031 9.08878C9.7201 9.0732 9.92068 8.92747 10.0065 8.71375L11.443 5.13654Z' fill='white'/%3e%3c/svg%3e","fact-check":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z' fill='%2300C076'/%3e%3cpath d='M11.9456 5.46631L6.66562 10.2663L4.26562 8.08449' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",medical:_t},ta=({trackingCategory:e="Together",locale:t,isOpen:a=!0,onClose:n,enableAnimation:i=!0,expertId:r,overwriteProfileProps:c,avatarFallback:d=ce.getAssetPath("avatar.jpg")})=>{const{t:m}=E(),[p,u]=l(null),[g,v]=l(!1);return s((()=>{if(a&&r&&String(null==p?void 0:p.user_id)!==String(r)){v(!0);try{u(null),z(W(H.GET_EXPERT_BY_ID,{id:r}),"get").then((e=>{u(Object.assign(Object.assign({},null==e?void 0:e.data),c))}))}catch(e){console.error(e)}v(!1)}}),[a,r,null==p?void 0:p.user_id]),o.createElement(o.Fragment,null,o.createElement(Qt,{"data-open":a,"data-animation":i,onClick:e=>e.stopPropagation()},g||!p?o.createElement(Ye,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:n},o.createElement("img",{src:qt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Kt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(we,{src:null==p?void 0:p.avatar,className:"profile-image",alt:"avatar",backupSrc:d}),o.createElement("img",{className:"badge-avatar",src:ea[null==p?void 0:p.role],alt:"badge",loading:"lazy"})))),o.createElement($t,null,o.createElement(Le,{size:"s3",className:"full-name",type:"semiBold"},null==p?void 0:p.display_name),o.createElement("div",null,o.createElement(Le,{size:"p4",color:k.colors.gray800},null==p?void 0:p.specialty," • "),o.createElement("a",{href:null==p?void 0:p.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(Le,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==p?void 0:p.organisation)))))),o.createElement($t,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"p4",color:k.colors.gray800,style:{paddingBottom:16}},m("expert.content.description").toUpperCase()),o.createElement("div",{className:"list-items"},!!(null==p?void 0:p.experiences)&&p.experiences.filter((e=>!(!e||!e.title&&!e.organization))).slice(0,3).map(((e,t)=>o.createElement(Yt,{key:t},o.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point",loading:"lazy"}),o.createElement("div",{className:"text-contain"},o.createElement(L,{tag:"h6",color:k.colors.gray800},null==e?void 0:e.title),o.createElement(Le,{size:"p2",color:k.colors.gray500},null==e?void 0:e.organization)))))),o.createElement("a",{href:null==p?void 0:p.profile_url,style:{display:"inline-block",paddingTop:24}},o.createElement(Le,{as:"span",size:"s4",color:"#2D87F3","data-event-category":e,"data-event-action":"See Full Doctor Profile","data-event-label":B(t)+(null==p?void 0:p.profile_url)},m("home.seeExpert"))))))),o.createElement(Xt,{"data-open":a,onClick:e=>{e.stopPropagation(),n()}}))},aa=ue.div`
|
|
805
805
|
position: fixed;
|
|
806
806
|
left: 50%;
|
|
807
807
|
width: 343px;
|
|
@@ -811,7 +811,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
811
811
|
transform: translate(-50%, -50%);
|
|
812
812
|
transition: all 0.5s ease-in-out;
|
|
813
813
|
|
|
814
|
-
${
|
|
814
|
+
${he.tdUp} {
|
|
815
815
|
width: 750px;
|
|
816
816
|
}
|
|
817
817
|
|
|
@@ -831,7 +831,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
.popup-content {
|
|
834
|
-
${
|
|
834
|
+
${he.mbDown} {
|
|
835
835
|
display: block;
|
|
836
836
|
}
|
|
837
837
|
display: flex;
|
|
@@ -876,7 +876,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
876
876
|
text-align: center;
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
|
-
`,
|
|
879
|
+
`,oa=ue.div`
|
|
880
880
|
position: fixed;
|
|
881
881
|
z-index: 110;
|
|
882
882
|
top: 0;
|
|
@@ -889,7 +889,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
889
889
|
&[data-open='false'] {
|
|
890
890
|
display: none;
|
|
891
891
|
}
|
|
892
|
-
`,
|
|
892
|
+
`,na=ue.div`
|
|
893
893
|
.image-container {
|
|
894
894
|
.badge-avatar {
|
|
895
895
|
position: absolute;
|
|
@@ -914,7 +914,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
914
914
|
width: 24px;
|
|
915
915
|
height: 24px;
|
|
916
916
|
}
|
|
917
|
-
`,
|
|
917
|
+
`,ia=ue.div`
|
|
918
918
|
position: relative;
|
|
919
919
|
z-index: 9;
|
|
920
920
|
.specialty {
|
|
@@ -938,20 +938,20 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
938
938
|
p {
|
|
939
939
|
max-width: 100%;
|
|
940
940
|
}
|
|
941
|
-
`;
|
|
941
|
+
`;ue.span`
|
|
942
942
|
display: flex;
|
|
943
943
|
flex-direction: column;
|
|
944
944
|
justify-content: center;
|
|
945
945
|
margin: 0 0.4em;
|
|
946
946
|
color: ${e=>e.theme.colors.neutral300};
|
|
947
|
-
`,
|
|
947
|
+
`,ue.div`
|
|
948
948
|
display: inline-block;
|
|
949
949
|
width: 3px;
|
|
950
950
|
height: 3px;
|
|
951
951
|
margin: 0;
|
|
952
952
|
background-color: ${e=>e.theme.colors.gray400};
|
|
953
953
|
border-radius: 50%;
|
|
954
|
-
`,
|
|
954
|
+
`,ue.div`
|
|
955
955
|
display: flex;
|
|
956
956
|
margin-top: 8px;
|
|
957
957
|
|
|
@@ -959,7 +959,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
959
959
|
width: 24px;
|
|
960
960
|
height: 24px;
|
|
961
961
|
}
|
|
962
|
-
`;const
|
|
962
|
+
`;const la=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=ce.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=E(),[g,v]=l(null),[h,b]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){b(!0);try{v(null),z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:V[i]}),"get").then((e=>{v(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}b(!1)}}),[e,n,null==g?void 0:g.id]);const f=(null==g?void 0:g.specialties)||[],y=c((()=>f.map((e=>e.name))),[f]);return o.createElement(o.Fragment,null,o.createElement(aa,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},h||!g?o.createElement(Ye,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:qt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(na,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(we,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",backupSrc:m}),o.createElement("img",{className:"badge-avatar",src:_t,alt:"badge",loading:"lazy"})))),o.createElement(ia,null,o.createElement(Le,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},f&&o.createElement(Le,{size:"p4",color:k.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(Le,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(ia,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"s3",color:k.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(Le,{size:"p2",color:k.colors.gray500},g.about),r?o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(Le,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":B(i)+D({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(oa,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};var ra="_2UKyiK1",sa="E5ga-tI",ca="_8Y2nWXX",da="d0T7kSP";const ma=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=E();return o.createElement(He,Object.assign({className:ra,opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end"},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"},content:{maxHeight:"100%",height:"100%",borderRadius:0}},title:"Profile"},n),o.createElement("div",{className:sa},o.createElement("div",{className:ca},i("profilePanel.modal.heading")),o.createElement("div",{className:da,onClick:t},o.createElement(_e,null))),a)};pe.extend(We);const pa=n({}),ua=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:m,title:p,userType:h="user",expertId:b,specialty:f,organisation:y,isMarryBaby:w,doctorId:x,hospitalId:C,hasQuickBooking:A,handleMakeAppointment:T,communityTrackingAttr:z,isAnonymous:P,showDetailPopup:I,subLine:S,authActionWrapper:L,profileProps:M,profileModalProps:j,extendEle:B,avatarProps:F,hideInfo:O,timeText:R,onCloseFromPost:V,avatarIcon:D,badgeIconSize:U,hideBackground:W,children:H,styles:q,dataEventCategory:_,dataEventAction:G,dataEventLabel:Q}=e,{data:{locale:X,router:K,env:{isMarryBaby:$,togetherBasePath:Y}}}=i(N),{isMobile:J}=Z(),{t:ee}=E(),{classes:te}=Vt(void 0,{name:"CardAuthor",styles:q}),ae="boolean"==typeof w?w:$,oe=ae?"marryBaby":"helloSites",ne=P?ee("cardPost.anonymous"):n||r||"",ie=P?ce.getAssetPath("avatar.jpg"):d,le=P?void 0:m,[re,se]=l(!1),{asPath:de}=K||{},pe=`https://${me[X]}${de}`,ue=()=>{if(P||"chatbot"===h)return!1;I?ve(!0):c&&(window.location.href=c)};s((()=>{be(re)}),[re]);const[ge,ve]=l(!1),he="expert"===(null==e?void 0:e.role),fe=Boolean(x||C),ye=["expert"===le&&y&&o.createElement("span",null,y),"expert"===le&&f&&o.createElement("span",null,f),!("expert"===le&&f&&y)&&(null==a?void 0:a.name)&&o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${Y}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},z),`${null==a?void 0:a.name}`),R&&o.createElement("span",null,R)].filter(Boolean),[we,Ce]=l(null);return s((()=>{ge&&!we&&Promise.resolve().then((function(){return Wn})).then((e=>{Ce((()=>e.ProfileDetail))}))}),[ge]),o.createElement(pa.Provider,{value:{handleMakeAppointment:T,doctorId:x,hospitalId:C,currentUrl:pe}},o.createElement(ma,{open:ge,onClose:()=>ve(!1),profileModalProps:j},we&&o.createElement(we,Object.assign({currentPageUrl:Q,authActionWrapper:L,onCloseFromPost:()=>{ve(!1),null==V||V()}},M,{authorProps:Object.assign({userId:null==e?void 0:e.userId,avatar:ie,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title,doctorId:x,hospitalId:C,hasQuickBooking:A},null==M?void 0:M.authorProps)}))),"expert"===le&&b?o.createElement(ta,{isOpen:re,onClose:()=>se(!1),expertId:b}):null,"expert"===le&&x?o.createElement(Gt,{isOpen:re,onClose:()=>se(!1),doctorId:x,locale:X}):null,"expert"===le&&C?o.createElement(la,{isOpen:re,onClose:()=>se(!1),hospitalId:C,locale:X}):null,o.createElement("div",{className:`hhg-card-author ${te.root} ${t} ${he?"expert-author":""}`,"data-background":!W&&he,"data-is-marrybaby":ae},o.createElement(Rt,{dataEventCategory:_,dataEventAction:G,dataEventLabel:Q,onAvatarClick:ue,avatarProps:Object.assign(Object.assign({avatar:P?ce.getAssetPath(ae?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):ie,username:ne},F),{style:{cursor:P||!c&&!I?"default":"pointer"}}),avatarIcon:D||he&&o.createElement(Nt,{size:U||15})},H?o.createElement("div",{onClick:ue},H):!O&&o.createElement(Rt.Row,null,o.createElement(Rt.ColLeft,null,o.createElement(u,{align:"center",onClick:ue},o.createElement(Rt.MainText,{onClick:ue},ne,"chatbot"===h?o.createElement(o.Fragment,null," ",o.createElement(At,{color:k.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):le&&o.createElement(xe,{className:te.authorBadge,siteType:oe,role:le,title:p,style:{verticalAlign:"bottom"}}))),S||o.createElement(Rt.SubTextRow,{style:A?{position:"relative"}:{}},ye.map(((e,t)=>o.createElement(o.Fragment,null,0!==t&&o.createElement(Rt.SubDivider,null),o.createElement(Rt.SubText,null,e)))),A&&fe&&o.createElement(g,{sx:{marginTop:v(5)}},o.createElement(Ee,{bookingId:x||C,bookingType:x?"doctor":C?"hospital":void 0,size:J?"xs":"sm"})))))),B&&B))};ua.MainText=Rt.MainText,ua.SubText=Rt.SubText,ua.SubTextRow=Rt.SubTextRow,ua.SubDivider=Rt.SubDivider;const ga=e=>({message:e("notification.failure"),type:"danger"}),va=ue.div`
|
|
963
963
|
position: relative;
|
|
964
964
|
display: flex;
|
|
965
965
|
height: 100%;
|
|
@@ -1065,7 +1065,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1065
1065
|
margin-left: 10px;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
`,
|
|
1068
|
+
`,ha=ue.div`
|
|
1069
1069
|
display: flex;
|
|
1070
1070
|
width: 100%;
|
|
1071
1071
|
align-items: center;
|
|
@@ -1083,7 +1083,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1083
1083
|
gap: 12px;
|
|
1084
1084
|
}
|
|
1085
1085
|
margin-bottom: 12px;
|
|
1086
|
-
`,
|
|
1086
|
+
`,ba=ue.div`
|
|
1087
1087
|
margin-bottom: 12px;
|
|
1088
1088
|
color: ${k.colors.red700};
|
|
1089
1089
|
svg {
|
|
@@ -1093,7 +1093,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1093
1093
|
span {
|
|
1094
1094
|
vertical-align: middle;
|
|
1095
1095
|
}
|
|
1096
|
-
`;var
|
|
1096
|
+
`;var fa="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%23FE921D'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const ya=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,wa=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,xa=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,Ea=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,Ca=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ka=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,Na=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,Aa=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,Ta=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,za=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,Pa=({url:e,text:t,method:a})=>{const o=t.indexOf(t.trimStart()),n=t.trimEnd().length,i=t.substring(0,o),l=t.substring(o,n),r=t.substring(n);return"edit"===a?`${i}<mocka data-href="${e}" data-url="true">${l}</mocka>${r}`:"display"===a&&(e.startsWith("http://")||e.startsWith("https://"))?`${i}<a href="${e}" target="_blank">${l}</a>${r}`:t},Ia=(e,t)=>e.replace(xa,((e,a,o)=>Pa({text:o||a,url:a,method:t}))).replace(Ta,((e,a,o)=>Pa({text:o||a,url:a,method:t}))),Sa=(e,t=[])=>e.replace(ka,((e,a,o)=>{const n=t.find((e=>String(e.id)===a));if(!n){if(!o)return"";let e="";return o.replace(/\+name="([^<"]+)"/i,((t,a)=>(e=a,t))),`<mention data-id="${a}" data-name="${e}">${e}</mention>`}return`<mention data-id="${a}" data-name="${n.name}">${n.name}</mention>`})),La=e=>{const t=[];return e.replace(/(\&)+/g,"&").replace(wa,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},Ma=(e,t)=>{const a=[];return e.replace(Ea,((e,t)=>(a.push(t),e))).replace(ka,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},ja=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ba=e=>e.replace(za,"$1"),Fa=(e,t=(e=>e))=>((e,t=(e=>e))=>{var a;return t(null===(a=e.replace(/(\ )+/g," ").replace(/(\&)+/g,"&"))||void 0===a?void 0:a.replace(/(\u200c|‌)+/g,"").replace(wa,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(ya,((e,t,a)=>{var o;const n=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return n?`<a href="${n}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(Ea,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Ba(e)),t),Oa=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Ra=e=>e.match(Aa)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Va=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Ba(e).replace(new RegExp(`\\b(${a.map((e=>ja(e))).join("|")})\\b`,"gi"),((e,t)=>{const a=document.createElement("mocka");return a.setAttribute("data-bad-word",t),a.setAttribute("data-error","true"),a.innerText=t,`${a.outerHTML}`}))}return e},Da=(t,a,o)=>"string"==typeof t?Promise.resolve(t):e(void 0,void 0,void 0,(function*(){var e;const n=new FormData;if(t.type.startsWith("image/gif"))n.append("image",t);else{const e=yield import("browser-image-compression"),a=yield e.default(t,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});n.append("image",a)}const i=o?_:G,l=yield i(P(o?q.COMMENT.IMAGE_UPLOAD:I.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),Ua=(e,t)=>{const[a,o]=l(e||[]);return{onSelectImages:n=>{const i=n.target.files;if(i)if(t&&e){t((e||a).concat(Array.from(i)))}else o((a=>{const o=e||a;return t&&t(o.concat(Array.from(i))),o.concat(Array.from(i))}))},onRemoveImage:a=>{if(t&&e){const o=e;o.splice(a,1),t(o.slice())}else o((o=>{const n=e||o;return n.splice(a,1),t&&t(n.slice()),n.slice()}))},onRemoveAllImages:()=>{t?t([]):o([])},imageSrcs:c((()=>(e||a).map((e=>"string"==typeof e?e:URL.createObjectURL(e)))),[e,a]),imageFiles:e||a}},Wa=ue.div`
|
|
1097
1097
|
input:focus,
|
|
1098
1098
|
textarea:focus,
|
|
1099
1099
|
[contenteditable='true'] {
|
|
@@ -1212,7 +1212,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1212
1212
|
margin-right: 8px;
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
`,
|
|
1215
|
+
`,Ha=ue.div`
|
|
1216
1216
|
height: 100%;
|
|
1217
1217
|
position: relative;
|
|
1218
1218
|
width: 100%;
|
|
@@ -1411,7 +1411,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
`;let Ha=null;function Za(e){var t,a;let o=-1;if(void 0!==window.getSelection){const n=window.getSelection();if((null==n?void 0:n.rangeCount)&&(null==n?void 0:n.rangeCount)>0){const n=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(n){const t=n.cloneRange();t.selectNodeContents(e),t.setEnd(n.endContainer,n.endOffset),o=qa(t.cloneContents().childNodes,o);const i=null===(a=n.endContainer.parentElement)||void 0===a?void 0:a.closest("mocka"),l=n.endContainer.nodeValue||n.endContainer.outerHTML;i&&(null==l?void 0:l.length)&&(o=o-n.endOffset+(i.outerHTML.length-(null==i?void 0:i.outerHTML.lastIndexOf(l))))}}}return o}function qa(e,t){return e.forEach(((a,o)=>{const n=o+1===e.length;if(a.nodeType===Node.ELEMENT_NODE){const e=a.outerHTML;if(!n)return void(t+=e.length);t+=e.indexOf(">")+1,t=qa(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").length)})),t}e(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield import("react-quill");Ha=e.default;const t=e.Quill||Ha.Quill;t.register("modules/preserveWhiteSpace",class{constructor(e,t){this.quill=e,this.options=t,e.container.style.whiteSpace="pre-line"}});const a=t.import("blots/inline");class o extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return o.setNodeConfigurations(t,e),t}static formats(e){return!(!e.innerText||!(e.getAttribute("data-href")||e.getAttribute("data-url")||e.getAttribute("data-error")||e.getAttribute("data-bad-word")))&&{"data-bad-word":e.getAttribute("data-bad-word"),"data-error":e.getAttribute("data-error"),"data-href":e.getAttribute("data-href"),"data-url":e.getAttribute("data-url"),"data-text":e.innerText||e.getAttribute("data-href")}}static setNodeConfigurations(e,t){var a,o;t&&(null===(o=null===(a=null==t?void 0:t["data-text"])||void 0===a?void 0:a.replace(/(\ )+/g," "))||void 0===o?void 0:o.replace(/(\u200c|‌)+/g,""))&&(t["data-bad-word"]&&e.setAttribute("data-bad-word",t["data-bad-word"]),t["data-href"]&&e.setAttribute("data-href",t["data-href"]),t["data-error"]&&e.setAttribute("data-error",t["data-error"]),t["data-url"]&&e.setAttribute("data-url",t["data-url"]))}}o.blotName="mocka1",o.tagName="mocka",t.register(o);class n extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return n.setNodeConfigurations(t,e),t}static formats(e){return!(!e.getAttribute("data-name")||!e.getAttribute("data-id"))&&{"data-name":e.getAttribute("data-name"),"data-id":e.getAttribute("data-id")}}static setNodeConfigurations(e,t){var a,o;t&&t["data-id"]&&(null===(o=null===(a=null==t?void 0:t["data-name"])||void 0===a?void 0:a.replace(/(\ )+/g," "))||void 0===o?void 0:o.replace(/(\u200c|‌)+/g,""))&&(t["data-id"]&&e.setAttribute("data-id",t["data-id"]),t["data-name"]&&e.setAttribute("data-name",t["data-name"]))}}n.blotName="mention",n.tagName="mention",t.register(n)}));const _a=(e,t)=>{var a;const{formatUrl:o,bannedWords:n=[]}=t||{},i=e.replace(/<font [^\>]*>(.+)<\/font>/gim,((e,t)=>t.replace(/<u[^\>]*>(.+)<\/u>/gim,"$1"))).replace(Ea,((e,t,a,o)=>{if(o!==a){const e=a.split(" "),n=e.findIndex(((t,a)=>{const n=e.slice(0,a+1).join(" ");return!o.startsWith(n)}));if(0===n)return`@${o}`;{const a=(n<0?e:e.slice(0,n)).join(" "),i=o.slice(a.length).trim();return console.log(n,a,i),`<mention data-id="${t}" data-name="${a}">${a}</mention> ${i} `}}return e}));if(!o)return{value:Ra(i,n)};let l=(e=>e.replace(Ta,((e,t)=>{const a=document.createElement("div");a.innerHTML=e;const o=a.firstChild;return(null==o?void 0:o.innerText)!==(null==o?void 0:o.getAttribute("data-bad-word"))?t:e})))((e=>{var t,a;return null===(a=null===(t=e.replace(/(\ )+/g," "))||void 0===t?void 0:t.replace(/(\u200c|‌)+/g,""))||void 0===a?void 0:a.replace(fa,((e,t,a)=>{var o;const n=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return!n||n===a||a.match(ka)?a:n?`<a href="${n}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(ya,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return za({text:t,url:t,method:"edit"})}return e})).replace(Aa,((e,t,a)=>za({text:a||t,url:t,method:"edit"})))})(i));const r=(e=>{var t;return[...Sa(e),...(null===(t=e.match(fa))||void 0===t?void 0:t.map((e=>{var t,a;const o=null===(t=e.match(/data-href="([^"]*)"/im))||void 0===t?void 0:t[1],n=null===(a=e.match(/>(.*?)<\/mocka>/im))||void 0===a?void 0:a[1];return o||n})))||[]].filter((e=>!!e))})(i);if(r){const e=[];let t="";return r.forEach((t=>{if(t)try{const a=new URL(t);Fa.some((e=>a.origin.endsWith(e)))||e.push(t)}catch(a){e.push(t)}})),e.length>0&&(l=l.replace(new RegExp(`data-url="true">(${e.map(Ma).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Ma).join("|")})" data-url="true">`,"gi"),'data-href="$1" data-error="true" data-url="true">')),t=null===(a=r.filter((t=>-1===e.indexOf(t))))||void 0===a?void 0:a[0],{invalidUrls:e,previewUrl:t,value:Ra(l,n)}}return{value:Ra(l,n)}},Ga=({html:t,onChange:a,className:n,style:c,onImagePickerClick:m,bannedWords:p=[],onInvalidUrlsChange:u,onPreviewUrlChange:g,setEditorRef:v,isReplying:h})=>{var b,f,y,w;const x=r([]);x.current=p;const[E,C]=l([]),[k,T]=l(null),{data:{locale:S}}=i(N),L=(null==p?void 0:p.join(","))||"";s((()=>{var e,t;const a=null===(t=null===(e=D.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;B(a)}),[L]);const M=e=>{k&&k.url===e||(T({url:e,isFetching:!0}),z(P(I.FETCH_PREVIEW,{_locale:S}),"POST",{data:{link:e}}).then((t=>{var a,o,n,i;T({title:null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.title,description:null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.description,image:(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.image)||(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.logo),url:e})})).catch((()=>{T(null)})))},j=r(M);j.current=M;const B=d(Me((e=>{if(e){const t=_a(e,{bannedWords:x.current,formatUrl:!0}),{invalidUrls:o,previewUrl:n,value:i}=t;o&&C(o),n?j.current(n):T(null),i!==e&&(null==a||a(i))}}),500),[]);s((()=>{u&&u(E)}),[E]),s((()=>{g&&((null==k?void 0:k.url)?g({title:k.title||"",url:k.url||"",image:k.image||"",description:k.description||""}):g(null))}),[k]);const F=r(m);F.current=m;const O=He(),R=r({toolbar:{handlers:{image:()=>{var e;return null===(e=F.current)||void 0===e?void 0:e.call(F)},link:()=>!1},container:"#toolbar-"+O},preserveWhiteSpace:!0}),V=r(-1),D=r(null);v&&(null===(f=null===(b=D.current)||void 0===b?void 0:b.getEditor())||void 0===f?void 0:f.root)&&v(null===(w=null===(y=D.current)||void 0===y?void 0:y.getEditor())||void 0===w?void 0:w.root);const U=()=>{var e,t,a,o,n,i,l,r;if(null===(t=null===(e=D.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Za(null===(o=null===(a=D.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(i=null===(n=D.current)||void 0===n?void 0:n.getEditor())||void 0===i?void 0:i.root.innerHTML;if(e>=0&&e<t.length){if(La(t,!0).length<30-(h?1:0)){const e=function(e){var t,a;let o=null;if(void 0!==window.getSelection){const n=window.getSelection();if((null==n?void 0:n.rangeCount)&&(null==n?void 0:n.rangeCount)>0){const n=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(n){const t=n.cloneRange();t.selectNodeContents(e),t.setEnd(n.endContainer,n.endOffset);const i=(t.endContainer.nodeValue||"").substring(0,n.endOffset),l=i.lastIndexOf("@");if(l+1<i.length&&(0===l||" @"===i.slice(l-1,l+1))){const e=null===(a=i.slice(l+1))||void 0===a?void 0:a.trim();if(e){t.setStart(n.endContainer,l);const a=t.cloneRange();a.setStart(a.endContainer,l),o={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return o}(null===(r=null===(l=D.current)||void 0===l?void 0:l.getEditor())||void 0===r?void 0:r.root);e?(X(e.name,e.rect),Y.current=e.replaceRange):(Y.current=null,X("",null))}else Y.current=null,X("",null);V.current=e}}else H([])},[W,H]=l([]),[Z,Q]=l({top:0,left:0}),X=d(Me(((t,a,o)=>e(void 0,void 0,void 0,(function*(){var e,n,i,l;if(!t||!DOMRect)return H([]);const r=yield((null===(e=Oe(A))||void 0===e?void 0:e.length)||0)>0?G(P(I.SEARCH_USER,{_locale:S,name:t}),"get"):_(P(q.SEARCH_USER,{_locale:S,name:t}),"get");te(0),H(null===(i=null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.users)||void 0===i?void 0:i.filter((e=>!(null==o?void 0:o.includes(String(e.id))))));const s=a,c=null===(l=$.current)||void 0===l?void 0:l.getBoundingClientRect();if(s&&c){const e=343,t=256,a={top:s.bottom-c.top,width:"min(343px, 100%)",maxHeight:t};c.width-(s.left-c.left)<e?a.right=0:a.left=s.left-c.left,Q(a)}}))),500),[]),K=(e,t)=>{var a,o,n;if(Y.current){Y.current.deleteContents();const i=document.createElement("mention");i.setAttribute("data-id",e),i.setAttribute("data-name",t),i.innerText=t;const l=document.createTextNode(" ");Y.current.insertNode(l),Y.current.insertNode(i);(null===(o=null===(a=D.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root).focus();const r=null===(n=window.getSelection())||void 0===n?void 0:n.getRangeAt(0);null==r||r.setStart(Y.current.endContainer,Y.current.endOffset),null==r||r.setEnd(Y.current.endContainer,Y.current.endOffset)}H([])},$=r(null),Y=r(null),J=r(null),[ee,te]=l(0);return s((()=>{if(J.current){const e=J.current,t=e.children.item(ee);if(t){const a=e.getBoundingClientRect(),o=t.getBoundingClientRect();t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:t.offsetTop+o.height>e.scrollTop+a.height&&(e.scrollTop=t.offsetTop-a.height+o.height)}}}),[ee]),s((()=>{const e=function(e){var t;(null===(t=$.current)||void 0===t?void 0:t.contains(e.target))||H([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),o.createElement(Wa,{ref:$,className:n,style:c,onKeyDownCapture:e=>{if(null==W?void 0:W.length){let t=!1;if("ArrowDown"===e.key)t=!0,te((e=>e+1>=W.length?0:e+1));else if("Escape"===e.key)t=!0,te(0),H([]);else if("ArrowUp"===e.key)t=!0,te((e=>e-1<0?W.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=W[ee];e&&(t=!0,K(e.id,e.name))}if(t)return e.preventDefault(),!1}}},o.createElement(Qa,{id:O,onAddLink:(e,t)=>{var o,n;const i=V.current+1,l=null===(n=null===(o=D.current)||void 0===o?void 0:o.getEditor())||void 0===n?void 0:n.root.innerHTML,r=((null==l?void 0:l.substring(0,i))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==l?void 0:l.substring(i))||"");null==a||a(r),B(r)}}),Ha&&o.createElement(Ha,{ref:D,theme:"snow",value:t,onChange:e=>{null==a||a(e),B(e),U()},onChangeSelection:()=>{U()},modules:R.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==W?void 0:W.length)&&o.createElement("div",{ref:J,className:"mention-search-container",style:Z},W.map(((e,t)=>o.createElement("div",{className:"mention-search-item "+(ee===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),K(e.id,e.name)},onMouseEnter:()=>{te(t)}},o.createElement(De,{className:"search-avatar",username:e.name,avatar:e.avatar}),o.createElement("div",null,o.createElement(Se,{size:"p2"},e.name),o.createElement(Se,{size:"p4",color:"#595959"},"@",e.username)))))))},Qa=({onAddLink:e,id:t})=>o.createElement("div",{id:"toolbar-"+t,onClick:e=>{e.preventDefault(),e.stopPropagation()}},o.createElement("span",{className:"ql-formats"},o.createElement("button",{className:"ql-bold",type:"button"}),o.createElement("button",{className:"ql-italic",type:"button"}),o.createElement("button",{className:"ql-underline",type:"button"})),o.createElement("span",{className:"ql-formats"},o.createElement("button",{className:"ql-list",value:"ordered",type:"button"}),o.createElement("button",{className:"ql-list",value:"bullet",type:"button"})),o.createElement("span",{className:"ql-formats"},o.createElement("button",{className:"ql-image",type:"button"}),e&&o.createElement(yt,{className:"link-tool-wrapper",toggleButtonContent:o.createElement("img",{className:"link-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.54545 16H7.09091C6.55368 16 6.02172 15.8965 5.52539 15.6955C5.02905 15.4945 4.57808 15.1999 4.1982 14.8284C3.43101 14.0783 3 13.0609 3 12C3 10.9391 3.43101 9.92172 4.1982 9.17157C4.96539 8.42143 6.00593 8 7.09091 8H9.54545M13.9256 8H16.9091C17.4463 8 17.9783 8.10346 18.4746 8.30448C18.9709 8.5055 19.4219 8.80014 19.8018 9.17157C20.1817 9.54301 20.483 9.98396 20.6886 10.4693C20.8942 10.9546 21 11.4747 21 12C21 12.5253 20.8942 13.0454 20.6886 13.5307C20.483 14.016 20.1817 14.457 19.8018 14.8284C19.4219 15.1999 18.9709 15.4945 18.4746 15.6955C17.9783 15.8965 17.4463 16 16.9091 16H13.9256' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9 12H15' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),buttonProps:{size:"md",color:"transparent"},align:"end"},(({setShow:t})=>o.createElement(Ka,{onAddUrl:e,setShow:t}))))),Xa=["notification.limitUrlDomain","notification.urlWrongFormat"],Ka=({onAddUrl:e,setShow:t})=>{const{data:{env:{isMarryBaby:a}}}=i(N),{t:n}=E(),[r,s]=l(""),[c,d]=l(""),[m,p]=l(-1),u=r.trim()&&c.trim()&&m<0;return o.createElement("div",{className:"link-tool-popover"},o.createElement(Le,{name:"url",value:r,size:"md",label:"URL",placeholder:n("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{s(e),(e=>{const t=Oa(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Fa.some((t=>e.origin.endsWith("/"+t)||e.origin.endsWith("."+t)))?(p(-1),!0):(p(0),!1):(p(1),!1)}catch(e){return p(1),!1}})(e)}}),m>=0&&o.createElement(Se,{size:"c2",className:"error-text"},n(Xa[m])),o.createElement(Le,{name:"text",value:c,size:"md",label:n("createPost.urlText"),placeholder:n("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>d(e)}),o.createElement("div",{"data-is-marrybaby":a,className:"link-input-button-wrapper"},o.createElement(Be,{theme:a?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{u&&(e(c.trim(),Oa(r.trim())),t&&t(!1))},isDisabled:!u},n("insert"))))};var $a="data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 22.9844C17.5228 22.9844 22 18.5072 22 12.9844C22 7.46153 17.5228 2.98438 12 2.98438C6.47715 2.98438 2 7.46153 2 12.9844C2 18.5072 6.47715 22.9844 12 22.9844Z' fill='%23262626'/%3e%3cpath d='M14.8281 10.1562L9.17127 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.17188 10.1562L14.8287 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Ya=({className:e,style:t,bannedWords:a=[],value:n,onChange:i,onPreviewUrlChange:c,onInvalidUrlsChange:d,onImageFilesChange:m,imageFiles:p,isReplying:u})=>{const{t:g}=E(),[v,h]=l(null),b=r(null),{onSelectImages:f,onRemoveImage:y,imageSrcs:w}=Da(p,m);return s((()=>{c&&((null==v?void 0:v.url)?c({title:v.title||"",url:v.url||"",image:v.image||"",description:v.description||""}):c(null))}),[v]),o.createElement(Ua,{className:e,style:t},o.createElement(Se,{size:"p4",className:"description-label"},g("createPost.popup.description")),o.createElement("div",{className:"textarea-control"},o.createElement("div",{className:"textarea-wrapper"},o.createElement(Ga,{html:n||"",onChange:i,bannedWords:a,onImagePickerClick:()=>{var e;return null===(e=b.current)||void 0===e?void 0:e.click()},onPreviewUrlChange:h,onInvalidUrlsChange:d,isReplying:u}))),o.createElement(Se,{size:"p4",className:"count-string"},g("character"),": ",C(n||"").length),(!w||0===w.length)&&v&&o.createElement("div",{className:"link-preview-wrapper"},v.isFetching?o.createElement($e,null):o.createElement(o.Fragment,null,o.createElement(Je,{title:v.title,url:v.url||"#",image:v.image,noRefetch:!0}),o.createElement("img",{src:$a,className:"icon-close",onClick:()=>h(null),loading:"lazy"}))),o.createElement("input",{ref:b,type:"file",accept:"image/png, image/gif, image/jpeg",multiple:!0,style:{display:"none"},onChange:f}),w.length>Q?o.createElement("div",{className:"input-notification"},o.createElement("img",{src:ba,loading:"lazy"}),o.createElement(Se,{size:"p4",color:k.colors.alertWarning},g("createPost.popup.warningImage"))):null,w.length>0&&o.createElement("div",{className:"image-gallery"},w.map(((e,t)=>o.createElement("div",{key:t,className:"image-item"},o.createElement("img",{src:e,loading:"lazy"}),o.createElement("img",{className:"close-btn",src:$a,onClick:()=>y(t),loading:"lazy"}))))))},Ja=pe.div`
|
|
1414
|
+
`;let Za=null;function qa(e){var t,a;let o=-1;if(void 0!==window.getSelection){const n=window.getSelection();if((null==n?void 0:n.rangeCount)&&(null==n?void 0:n.rangeCount)>0){const n=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(n){const t=n.cloneRange();t.selectNodeContents(e),t.setEnd(n.endContainer,n.endOffset),o=_a(t.cloneContents().childNodes,o);const i=null===(a=n.endContainer.parentElement)||void 0===a?void 0:a.closest("mocka"),l=n.endContainer.nodeValue||n.endContainer.outerHTML;i&&(null==l?void 0:l.length)&&(o=o-n.endOffset+(i.outerHTML.length-(null==i?void 0:i.outerHTML.lastIndexOf(l))))}}}return o}function _a(e,t){return e.forEach(((a,o)=>{const n=o+1===e.length;if(a.nodeType===Node.ELEMENT_NODE){const e=a.outerHTML;if(!n)return void(t+=e.length);t+=e.indexOf(">")+1,t=_a(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").length)})),t}e(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield import("react-quill");Za=e.default;const t=e.Quill||Za.Quill;t.register("modules/preserveWhiteSpace",class{constructor(e,t){this.quill=e,this.options=t,e.container.style.whiteSpace="pre-line"}});const a=t.import("blots/inline");class o extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return o.setNodeConfigurations(t,e),t}static formats(e){return!(!e.innerText||!(e.getAttribute("data-href")||e.getAttribute("data-url")||e.getAttribute("data-error")||e.getAttribute("data-bad-word")))&&{"data-bad-word":e.getAttribute("data-bad-word"),"data-error":e.getAttribute("data-error"),"data-href":e.getAttribute("data-href"),"data-url":e.getAttribute("data-url"),"data-text":e.innerText||e.getAttribute("data-href")}}static setNodeConfigurations(e,t){var a,o;t&&(null===(o=null===(a=null==t?void 0:t["data-text"])||void 0===a?void 0:a.replace(/(\ )+/g," "))||void 0===o?void 0:o.replace(/(\u200c|‌)+/g,""))&&(t["data-bad-word"]&&e.setAttribute("data-bad-word",t["data-bad-word"]),t["data-href"]&&e.setAttribute("data-href",t["data-href"]),t["data-error"]&&e.setAttribute("data-error",t["data-error"]),t["data-url"]&&e.setAttribute("data-url",t["data-url"]))}}o.blotName="mocka1",o.tagName="mocka",t.register(o);class n extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return n.setNodeConfigurations(t,e),t}static formats(e){return!(!e.getAttribute("data-name")||!e.getAttribute("data-id"))&&{"data-name":e.getAttribute("data-name"),"data-id":e.getAttribute("data-id")}}static setNodeConfigurations(e,t){var a,o;t&&t["data-id"]&&(null===(o=null===(a=null==t?void 0:t["data-name"])||void 0===a?void 0:a.replace(/(\ )+/g," "))||void 0===o?void 0:o.replace(/(\u200c|‌)+/g,""))&&(t["data-id"]&&e.setAttribute("data-id",t["data-id"]),t["data-name"]&&e.setAttribute("data-name",t["data-name"]))}}n.blotName="mention",n.tagName="mention",t.register(n)}));const Ga=(e,t)=>{var a;const{formatUrl:o,bannedWords:n=[]}=t||{},i=e.replace(/<font [^\>]*>(.+)<\/font>/gim,((e,t)=>t.replace(/<u[^\>]*>(.+)<\/u>/gim,"$1"))).replace(Ca,((e,t,a,o)=>{if(o!==a){const e=a.split(" "),n=e.findIndex(((t,a)=>{const n=e.slice(0,a+1).join(" ");return!o.startsWith(n)}));if(0===n)return`@${o}`;{const a=(n<0?e:e.slice(0,n)).join(" "),i=o.slice(a.length).trim();return console.log(n,a,i),`<mention data-id="${t}" data-name="${a}">${a}</mention> ${i} `}}return e}));if(!o)return{value:Va(i,n)};let l=(e=>e.replace(za,((e,t)=>{const a=document.createElement("div");a.innerHTML=e;const o=a.firstChild;return(null==o?void 0:o.innerText)!==(null==o?void 0:o.getAttribute("data-bad-word"))?t:e})))((e=>{var t,a;return null===(a=null===(t=e.replace(/(\ )+/g," "))||void 0===t?void 0:t.replace(/(\u200c|‌)+/g,""))||void 0===a?void 0:a.replace(ya,((e,t,a)=>{var o;const n=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return!n||n===a||a.match(Na)?a:n?`<a href="${n}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(wa,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return Pa({text:t,url:t,method:"edit"})}return e})).replace(Ta,((e,t,a)=>Pa({text:a||t,url:t,method:"edit"})))})(i));const r=(e=>{var t;return[...La(e),...(null===(t=e.match(ya))||void 0===t?void 0:t.map((e=>{var t,a;const o=null===(t=e.match(/data-href="([^"]*)"/im))||void 0===t?void 0:t[1],n=null===(a=e.match(/>(.*?)<\/mocka>/im))||void 0===a?void 0:a[1];return o||n})))||[]].filter((e=>!!e))})(i);if(r){const e=[];let t="";return r.forEach((t=>{if(t)try{const a=new URL(t);Oa.some((e=>a.origin.endsWith(e)))||e.push(t)}catch(a){e.push(t)}})),e.length>0&&(l=l.replace(new RegExp(`data-url="true">(${e.map(ja).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(ja).join("|")})" data-url="true">`,"gi"),'data-href="$1" data-error="true" data-url="true">')),t=null===(a=r.filter((t=>-1===e.indexOf(t))))||void 0===a?void 0:a[0],{invalidUrls:e,previewUrl:t,value:Va(l,n)}}return{value:Va(l,n)}},Qa=({html:t,onChange:a,className:n,style:c,onImagePickerClick:m,bannedWords:p=[],onInvalidUrlsChange:u,onPreviewUrlChange:g,setEditorRef:v,isReplying:h})=>{var b,f,y,w;const x=r([]);x.current=p;const[E,C]=l([]),[k,T]=l(null),{data:{locale:S}}=i(N),L=(null==p?void 0:p.join(","))||"";s((()=>{var e,t;const a=null===(t=null===(e=D.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;B(a)}),[L]);const M=e=>{k&&k.url===e||(T({url:e,isFetching:!0}),z(P(I.FETCH_PREVIEW,{_locale:S}),"POST",{data:{link:e}}).then((t=>{var a,o,n,i;T({title:null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.title,description:null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.description,image:(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.image)||(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.logo),url:e})})).catch((()=>{T(null)})))},j=r(M);j.current=M;const B=d(je((e=>{if(e){const t=Ga(e,{bannedWords:x.current,formatUrl:!0}),{invalidUrls:o,previewUrl:n,value:i}=t;o&&C(o),n?j.current(n):T(null),i!==e&&(null==a||a(i))}}),500),[]);s((()=>{u&&u(E)}),[E]),s((()=>{g&&((null==k?void 0:k.url)?g({title:k.title||"",url:k.url||"",image:k.image||"",description:k.description||""}):g(null))}),[k]);const F=r(m);F.current=m;const O=Ze(),R=r({toolbar:{handlers:{image:()=>{var e;return null===(e=F.current)||void 0===e?void 0:e.call(F)},link:()=>!1},container:"#toolbar-"+O},preserveWhiteSpace:!0}),V=r(-1),D=r(null);v&&(null===(f=null===(b=D.current)||void 0===b?void 0:b.getEditor())||void 0===f?void 0:f.root)&&v(null===(w=null===(y=D.current)||void 0===y?void 0:y.getEditor())||void 0===w?void 0:w.root);const U=()=>{var e,t,a,o,n,i,l,r;if(null===(t=null===(e=D.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=qa(null===(o=null===(a=D.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(i=null===(n=D.current)||void 0===n?void 0:n.getEditor())||void 0===i?void 0:i.root.innerHTML;if(e>=0&&e<t.length){if(Ma(t,!0).length<30-(h?1:0)){const e=function(e){var t,a;let o=null;if(void 0!==window.getSelection){const n=window.getSelection();if((null==n?void 0:n.rangeCount)&&(null==n?void 0:n.rangeCount)>0){const n=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(n){const t=n.cloneRange();t.selectNodeContents(e),t.setEnd(n.endContainer,n.endOffset);const i=(t.endContainer.nodeValue||"").substring(0,n.endOffset),l=i.lastIndexOf("@");if(l+1<i.length&&(0===l||" @"===i.slice(l-1,l+1))){const e=null===(a=i.slice(l+1))||void 0===a?void 0:a.trim();if(e){t.setStart(n.endContainer,l);const a=t.cloneRange();a.setStart(a.endContainer,l),o={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return o}(null===(r=null===(l=D.current)||void 0===l?void 0:l.getEditor())||void 0===r?void 0:r.root);e?(X(e.name,e.rect),Y.current=e.replaceRange):(Y.current=null,X("",null))}else Y.current=null,X("",null);V.current=e}}else H([])},[W,H]=l([]),[Z,Q]=l({top:0,left:0}),X=d(je(((t,a,o)=>e(void 0,void 0,void 0,(function*(){var e,n,i,l;if(!t||!DOMRect)return H([]);const r=yield((null===(e=Re(A))||void 0===e?void 0:e.length)||0)>0?G(P(I.SEARCH_USER,{_locale:S,name:t}),"get"):_(P(q.SEARCH_USER,{_locale:S,name:t}),"get");te(0),H(null===(i=null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.users)||void 0===i?void 0:i.filter((e=>!(null==o?void 0:o.includes(String(e.id))))));const s=a,c=null===(l=$.current)||void 0===l?void 0:l.getBoundingClientRect();if(s&&c){const e=343,t=256,a={top:s.bottom-c.top,width:"min(343px, 100%)",maxHeight:t};c.width-(s.left-c.left)<e?a.right=0:a.left=s.left-c.left,Q(a)}}))),500),[]),K=(e,t)=>{var a,o,n;if(Y.current){Y.current.deleteContents();const i=document.createElement("mention");i.setAttribute("data-id",e),i.setAttribute("data-name",t),i.innerText=t;const l=document.createTextNode(" ");Y.current.insertNode(l),Y.current.insertNode(i);(null===(o=null===(a=D.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root).focus();const r=null===(n=window.getSelection())||void 0===n?void 0:n.getRangeAt(0);null==r||r.setStart(Y.current.endContainer,Y.current.endOffset),null==r||r.setEnd(Y.current.endContainer,Y.current.endOffset)}H([])},$=r(null),Y=r(null),J=r(null),[ee,te]=l(0);return s((()=>{if(J.current){const e=J.current,t=e.children.item(ee);if(t){const a=e.getBoundingClientRect(),o=t.getBoundingClientRect();t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:t.offsetTop+o.height>e.scrollTop+a.height&&(e.scrollTop=t.offsetTop-a.height+o.height)}}}),[ee]),s((()=>{const e=function(e){var t;(null===(t=$.current)||void 0===t?void 0:t.contains(e.target))||H([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),o.createElement(Ha,{ref:$,className:n,style:c,onKeyDownCapture:e=>{if(null==W?void 0:W.length){let t=!1;if("ArrowDown"===e.key)t=!0,te((e=>e+1>=W.length?0:e+1));else if("Escape"===e.key)t=!0,te(0),H([]);else if("ArrowUp"===e.key)t=!0,te((e=>e-1<0?W.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=W[ee];e&&(t=!0,K(e.id,e.name))}if(t)return e.preventDefault(),!1}}},o.createElement(Xa,{id:O,onAddLink:(e,t)=>{var o,n;const i=V.current+1,l=null===(n=null===(o=D.current)||void 0===o?void 0:o.getEditor())||void 0===n?void 0:n.root.innerHTML,r=((null==l?void 0:l.substring(0,i))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==l?void 0:l.substring(i))||"");null==a||a(r),B(r)}}),Za&&o.createElement(Za,{ref:D,theme:"snow",value:t,onChange:e=>{null==a||a(e),B(e),U()},onChangeSelection:()=>{U()},modules:R.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==W?void 0:W.length)&&o.createElement("div",{ref:J,className:"mention-search-container",style:Z},W.map(((e,t)=>o.createElement("div",{className:"mention-search-item "+(ee===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),K(e.id,e.name)},onMouseEnter:()=>{te(t)}},o.createElement(Ue,{className:"search-avatar",username:e.name,avatar:e.avatar}),o.createElement("div",null,o.createElement(Le,{size:"p2"},e.name),o.createElement(Le,{size:"p4",color:"#595959"},"@",e.username)))))))},Xa=({onAddLink:e,id:t})=>o.createElement("div",{id:"toolbar-"+t,onClick:e=>{e.preventDefault(),e.stopPropagation()}},o.createElement("span",{className:"ql-formats"},o.createElement("button",{className:"ql-bold",type:"button"}),o.createElement("button",{className:"ql-italic",type:"button"}),o.createElement("button",{className:"ql-underline",type:"button"})),o.createElement("span",{className:"ql-formats"},o.createElement("button",{className:"ql-list",value:"ordered",type:"button"}),o.createElement("button",{className:"ql-list",value:"bullet",type:"button"})),o.createElement("span",{className:"ql-formats"},o.createElement("button",{className:"ql-image",type:"button"}),e&&o.createElement(wt,{className:"link-tool-wrapper",toggleButtonContent:o.createElement("img",{className:"link-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.54545 16H7.09091C6.55368 16 6.02172 15.8965 5.52539 15.6955C5.02905 15.4945 4.57808 15.1999 4.1982 14.8284C3.43101 14.0783 3 13.0609 3 12C3 10.9391 3.43101 9.92172 4.1982 9.17157C4.96539 8.42143 6.00593 8 7.09091 8H9.54545M13.9256 8H16.9091C17.4463 8 17.9783 8.10346 18.4746 8.30448C18.9709 8.5055 19.4219 8.80014 19.8018 9.17157C20.1817 9.54301 20.483 9.98396 20.6886 10.4693C20.8942 10.9546 21 11.4747 21 12C21 12.5253 20.8942 13.0454 20.6886 13.5307C20.483 14.016 20.1817 14.457 19.8018 14.8284C19.4219 15.1999 18.9709 15.4945 18.4746 15.6955C17.9783 15.8965 17.4463 16 16.9091 16H13.9256' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9 12H15' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),buttonProps:{size:"md",color:"transparent"},align:"end"},(({setShow:t})=>o.createElement($a,{onAddUrl:e,setShow:t}))))),Ka=["notification.limitUrlDomain","notification.urlWrongFormat"],$a=({onAddUrl:e,setShow:t})=>{const{data:{env:{isMarryBaby:a}}}=i(N),{t:n}=E(),[r,s]=l(""),[c,d]=l(""),[m,p]=l(-1),u=r.trim()&&c.trim()&&m<0;return o.createElement("div",{className:"link-tool-popover"},o.createElement(Me,{name:"url",value:r,size:"md",label:"URL",placeholder:n("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{s(e),(e=>{const t=Ra(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Oa.some((t=>e.origin.endsWith("/"+t)||e.origin.endsWith("."+t)))?(p(-1),!0):(p(0),!1):(p(1),!1)}catch(e){return p(1),!1}})(e)}}),m>=0&&o.createElement(Le,{size:"c2",className:"error-text"},n(Ka[m])),o.createElement(Me,{name:"text",value:c,size:"md",label:n("createPost.urlText"),placeholder:n("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>d(e)}),o.createElement("div",{"data-is-marrybaby":a,className:"link-input-button-wrapper"},o.createElement(Fe,{theme:a?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{u&&(e(c.trim(),Ra(r.trim())),t&&t(!1))},isDisabled:!u},n("insert"))))};var Ya="data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 22.9844C17.5228 22.9844 22 18.5072 22 12.9844C22 7.46153 17.5228 2.98438 12 2.98438C6.47715 2.98438 2 7.46153 2 12.9844C2 18.5072 6.47715 22.9844 12 22.9844Z' fill='%23262626'/%3e%3cpath d='M14.8281 10.1562L9.17127 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.17188 10.1562L14.8287 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Ja=({className:e,style:t,bannedWords:a=[],value:n,onChange:i,onPreviewUrlChange:c,onInvalidUrlsChange:d,onImageFilesChange:m,imageFiles:p,isReplying:u})=>{const{t:g}=E(),[v,h]=l(null),b=r(null),{onSelectImages:f,onRemoveImage:y,imageSrcs:w}=Ua(p,m);return s((()=>{c&&((null==v?void 0:v.url)?c({title:v.title||"",url:v.url||"",image:v.image||"",description:v.description||""}):c(null))}),[v]),o.createElement(Wa,{className:e,style:t},o.createElement(Le,{size:"p4",className:"description-label"},g("createPost.popup.description")),o.createElement("div",{className:"textarea-control"},o.createElement("div",{className:"textarea-wrapper"},o.createElement(Qa,{html:n||"",onChange:i,bannedWords:a,onImagePickerClick:()=>{var e;return null===(e=b.current)||void 0===e?void 0:e.click()},onPreviewUrlChange:h,onInvalidUrlsChange:d,isReplying:u}))),o.createElement(Le,{size:"p4",className:"count-string"},g("character"),": ",C(n||"").length),(!w||0===w.length)&&v&&o.createElement("div",{className:"link-preview-wrapper"},v.isFetching?o.createElement(Ye,null):o.createElement(o.Fragment,null,o.createElement(et,{title:v.title,url:v.url||"#",image:v.image,noRefetch:!0}),o.createElement("img",{src:Ya,className:"icon-close",onClick:()=>h(null),loading:"lazy"}))),o.createElement("input",{ref:b,type:"file",accept:"image/png, image/gif, image/jpeg",multiple:!0,style:{display:"none"},onChange:f}),w.length>Q?o.createElement("div",{className:"input-notification"},o.createElement("img",{src:fa,loading:"lazy"}),o.createElement(Le,{size:"p4",color:k.colors.alertWarning},g("createPost.popup.warningImage"))):null,w.length>0&&o.createElement("div",{className:"image-gallery"},w.map(((e,t)=>o.createElement("div",{key:t,className:"image-item"},o.createElement("img",{src:e,loading:"lazy"}),o.createElement("img",{className:"close-btn",src:Ya,onClick:()=>y(t),loading:"lazy"}))))))},eo=ue.div`
|
|
1415
1415
|
input:focus,
|
|
1416
1416
|
textarea:focus,
|
|
1417
1417
|
[contenteditable='true'] {
|
|
@@ -1469,7 +1469,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1469
1469
|
font-size: 11px;
|
|
1470
1470
|
text-align: right;
|
|
1471
1471
|
}
|
|
1472
|
-
`,
|
|
1472
|
+
`,to=(e,t)=>{if(!t)return e;const{limit:a,bannedWords:o=[]}=t,n="number"==typeof a&&a>=0?e.substring(0,a):e;return Va(n,o)},ao=({className:e,style:t,bannedWords:a=[],value:n,onChange:i})=>{var c;const{t:m}=E(),[p,u]=l(""),g=r(null);s((()=>{if(g.current){const e=e=>{var t;e.preventDefault();const a=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/plain");document.execCommand("insertHTML",!1,a)},t=g.current;return t.addEventListener("paste",e,{passive:!0}),()=>t.removeEventListener("paste",e)}}),[g]);const v=(null==a?void 0:a.join(","))||"";s((()=>{var e;if(v){const t=null===(e=g.current)||void 0===e?void 0:e.innerText;if(t){const e=Va(t,a);e!==t&&(i&&i(e),u(e))}}}),[v]);const h=d(je((()=>{if(g.current){const e=to(g.current.innerText,{limit:120,bannedWords:a});i&&i(e),u(e)}}),300),[]);return s((()=>{setTimeout((()=>{var e;null===(e=g.current)||void 0===e||e.focus()}),500)}),[]),o.createElement(eo,{className:e,style:t},o.createElement(Me,{name:"title",value:n||p,size:"md",label:m("createPost.title"),CustomInput:o.createElement(Be,{innerRef:g,html:n||p,onChange:()=>{if(g.current&&g.current.innerText!==(n||p)){const e=to(g.current.innerText,{bannedWords:a});i&&i(e),u(e),h()}},className:"title-input"})}),o.createElement(Le,{size:"p4",className:"count-string"},m("createPost.popup.wordCount",{count:(null===(c=g.current)||void 0===c?void 0:c.innerText.length)||0,max:120})))},oo=ue.div`
|
|
1473
1473
|
display: flex;
|
|
1474
1474
|
width: 100%;
|
|
1475
1475
|
flex-wrap: wrap;
|
|
@@ -1518,7 +1518,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
|
-
`,oo=({className:t,style:a,topics:n,communityId:d,onChange:m,isLoading:p,disabled:u,forceTopics:g,selectedTopics:v,noFetch:h,dataEventCategory:b,dataEventAction:f,dataEventLabel:y})=>{const{data:{locale:w,env:{isMarryBaby:x}}}=i(N),[E,C]=l(n?[...n]:[]),[k,A]=l(v?[...v]:[]),[T,S]=l(!1),L=r(n);L.current=n,s((()=>{var t;!d||h||(null===(t=L.current)||void 0===t?void 0:t.length)||(C([]),S(!0),e(void 0,void 0,void 0,(function*(){var e;try{const t=yield z(P(I.TOPIC.LIST,{communityId:d,_locale:w}),"GET"),a=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.topics;Array.isArray(a)&&C((()=>(null==a?void 0:a.map(ke).sort(((e,t)=>(e.order||0)-(t.order||0))))||[]))}catch(e){console.log(e),S(!1)}S(!1)})))}),[d,h]);const M=null==n?void 0:n.map((e=>e.id)).join("-"),j=null==E?void 0:E.map((e=>e.id)).join("-"),B=null==g?void 0:g.map((e=>e.id)).join("-");s((()=>{n&&void 0!==M&&M!==j&&C(n)}),[n,M,j]);const F=c((()=>E.filter((e=>!(null==g?void 0:g.some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)))))),[j,B]);return o.createElement(ao,{"data-is-marrybaby":x,className:t,style:a},g.map((e=>o.createElement(no,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:!0,selected:!0,dataEventAction:f,dataEventCategory:b,dataEventLabel:y}))),F.map((e=>o.createElement(no,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:u,selected:(v||k).some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)),onClick:()=>{const t=v||k,a=t.findIndex((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId));-1!==a?t.splice(a,1):t.push(e),m&&v?m(t.slice()):(m&&m(t.slice()),A(t.slice()))},dataEventAction:f,dataEventCategory:b,dataEventLabel:y}))),(p||T)&&o.createElement($e,{className:"topic-spinner"}))},no=e=>{var{topic:a,disabled:n,selected:i,onClick:l}=e,r=t(e,["topic","disabled","selected","onClick"]);return o.createElement("div",Object.assign({className:"tag-item"+(i?" --active":""),"data-disabled":n,onClick:n?void 0:l},r),a.name)},io=({className:t,style:a,onPostCreatedEdited:n,onClose:r,communities:c=[],forceSelectCommunity:d,forceSelectTopics:m,articleId:p,optionalTopic:u,editPostData:g,defaultCommunity:v,defaultTopics:b,noFetchTopic:f,hideTopicList:y,selectAskDoctor:w,showAskDoctorOptions:A,currentPageUrl:T})=>{const z=!!(null==g?void 0:g.id),{data:{locale:S,env:{isMarryBaby:L}},action:{pushNotifications:M,sanitizeFunction:j}}=i(N),{t:B}=E(),[O,R]=l(!1),[V,D]=l(w),[U,W]=l(!1),[H,Z]=l(!1),[q,_]=l(!1),[Y,J]=l(""),[ee,te]=l(""),[ae,oe]=l(d?{label:d.name,value:`${d.id||""}-${d.mappedCategoryId||""}`}:{label:B("community.choose"),value:""}),[ne,ie]=l([...m]||[]),[le,re]=l([]),[ce,de]=l([]),me=d||c.find((e=>`${e.id||""}-${e.mappedCategoryId||""}`===ae.value)),pe=d?[d]:c.filter((e=>e.isActive)).sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),[ue,ge]=l(null),[ve,he]=l([]),fe=Y&&!H&&C(ee)&&(u||!u&&ne.length>0)&&me&&(!le||le.length<=Q)&&!(null==ve?void 0:ve.length)&&!q;s((()=>{if(g){const e=g;J(e.title||""),te(Ia(Pa(e.description||"","edit"),e.mentions)),oe({label:e.community.name,value:`${e.community.id||""}-${e.community.mappedCategoryId||""}`}),ie(e.topics||[]),re(e.photos||[]),R(!!e.isAnonymous||!1),D(!!e.isAskDoctor||!1)}else v&&oe({label:v.name,value:`${v.id||""}-${v.mappedCategoryId||""}`}),b&&ie(b)}),[]),s((()=>{Z(""!==Y&&!/[a-zA-Z]/.test(Y))}),[Y]);const ye=()=>e(void 0,void 0,void 0,(function*(){var t,a,o,i,l,s,c,d,m;if(A&&void 0===V)return W(!0),!1;const u=yield(({title:t,description:a,communityId:o,imageFiles:n,previewUrl:i,topicIds:l,locale:r,sanitizeFunction:s,categoryCommunityId:c,categoryTopicIds:d,introUrl:m,bannerUrl:p,scheduleTime:u,isAnonymous:g,isAskDoctor:v})=>e(void 0,void 0,void 0,(function*(){const e=new FormData,h=ja(a),b=ja(t),f=La(h);if(e.append("title",b),e.append("description",Ba(h,s)),c?e.append("category_community",String(c)):o&&e.append("community_id",String(o)),e.append("is_anonymous",g?"1":"0"),e.append("is_question",v?"1":"0"),(null==i?void 0:i.title)&&e.append("preview_title",i.title),(null==i?void 0:i.description)&&e.append("preview_description",i.description),(null==i?void 0:i.url)&&e.append("preview_link",be(i.url)),(null==i?void 0:i.image)&&e.append("preview_image",be(i.image)),null==l||l.forEach((t=>{e.append("topics[]",String(t||""))})),null==d||d.forEach((t=>{e.append("category_topics[]",String(t||""))})),null==n?void 0:n.length){const t=yield Promise.all(n.map(((e,t)=>new Promise((a=>{setTimeout((()=>{a(Va(e,r))}),2e3*t)})))));null==t||t.filter(Boolean).slice(0,Q).forEach(((t,a)=>{e.append(`images[${a}]`,t)}))}else e.append("images","");return null==f||f.forEach((t=>{e.append("mention_ids[]",t)})),e.append("intro_url",m||""),e.append("banner",p||""),u&&(e.append("post_type","scheduled"),e.append("schedule_datetime",u)),e})))({title:Y,description:ee,communityId:String((null==me?void 0:me.id)||""),imageFiles:le,previewUrl:ue,topicIds:null==ne?void 0:ne.map((e=>String(e.id||""))).filter(Boolean),locale:S,sanitizeFunction:j,categoryCommunityId:String((null==me?void 0:me.mappedCategoryId)||""),categoryTopicIds:null==ne?void 0:ne.map((e=>String(e.mappedCategoryId||""))).filter(Boolean),isAnonymous:O?1:0,isAskDoctor:V?1:0});let v;p&&u.append("article_id",p),z?(null==g?void 0:g.id)&&(v=yield(({id:t,locale:a,formData:o})=>e(void 0,void 0,void 0,(function*(){return yield G(P(I.POST.UPDATE,{id:t,_locale:a}),"POST",{data:o})})))({id:g.id,formData:u,locale:S})):v=yield(({locale:t,formData:a,isArticleComment:o})=>e(void 0,void 0,void 0,(function*(){return yield G(P(o?I.POST.CREATE_ARTICLE_COMMENT:I.POST.CREATE,{_locale:t}),"POST",{data:a})})))({formData:u,locale:S,isArticleComment:!(null==me?void 0:me.id)&&!!(null==me?void 0:me.mappedCategoryId)});const h=null==v?void 0:v.data;(null==h?void 0:h.id)&&!(null===(a=null===(t=null==v?void 0:v.messages)||void 0===t?void 0:t.moderation)||void 0===a?void 0:a.type)?(M({message:B("createPost.popup.success"),type:"success"}),(e=>{n&&n(Ne(e),z),r&&r()})(h)):"banned"===(null===(i=null===(o=null==v?void 0:v.messages)||void 0===o?void 0:o.moderation)||void 0===i?void 0:i.type)?(M({title:B("notification.post.blocked.title"),message:B("notification.post.blocked.message"),type:"danger"}),v.messages.moderation.words&&de(v.messages.moderation.words)):"suspect"===(null===(s=null===(l=null==v?void 0:v.messages)||void 0===l?void 0:l.moderation)||void 0===s?void 0:s.type)?(M({title:B("notification.post.suspect.title"),message:B("notification.post.suspect.message"),type:"warning"}),r&&r()):(null===(d=null===(c=null==v?void 0:v.messages)||void 0===c?void 0:c.find)||void 0===d?void 0:d.call(c,(e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(M({message:B("notification.suspend.message"),type:"danger"}),r&&r()):M({message:(null===(m=null==v?void 0:v.messages)||void 0===m?void 0:m[0])||B("notification.failure"),type:"danger"})}));return o.createElement(ga,{className:t,style:a},o.createElement("div",{className:"input-group-container"},o.createElement(to,{className:"input-group",bannedWords:ce,value:Y,onChange:J}),H&&o.createElement(ha,null,o.createElement(X,{isSolid:!0,color:k.colors.red700,size:14}),o.createElement(F,{size:"p3",as:"span",color:k.colors.red700},B("createPost.popup.specialCharErr"))),o.createElement(Ya,{className:"input-group",bannedWords:ce,value:ee,onChange:te,onPreviewUrlChange:ge,onInvalidUrlsChange:he,onImageFilesChange:re,imageFiles:le}),A&&o.createElement(va,{"data-is-marry-baby":L},o.createElement("div",{className:"switch-label"},o.createElement(K,{isMarryBaby:L,size:L?32:24,color:k.colors.primaryBase,className:"label-icon"}),o.createElement("span",{className:"label-txt"},B("createPost.askDoctor"))),o.createElement(Ee,{value:V,choices:[{label:B("createPost.askDoctorChoice.yes"),value:!0,dataEventCategory:"Together",dataEventAction:"Write Post Click - Ask Doctor",dataEventLabel:T},{label:B("createPost.askDoctorChoice.no"),value:!1}],onChange:e=>{"boolean"==typeof e&&(W(!1),D(e))}})),U&&o.createElement(ha,null,o.createElement(X,{isSolid:!0,color:k.colors.red700,size:14}),o.createElement(F,{size:"p3",as:"span",color:k.colors.red700},B("createPost.message.askDoctorRequire"))),o.createElement("div",{className:"input-group"},o.createElement(F,{size:"p4",className:"input-group-label"},B("admin.community")),o.createElement(x,{options:(null==pe?void 0:pe.map((e=>({label:e.name,value:`${e.id||""}-${e.mappedCategoryId||""}`}))))||[],id:"community-picker",placeholder:B("community.choose"),value:ae,dropdownLabelTrackingAttributes:{"data-event-category":"Together","data-event-action":"Write Post Click - Choose Community/Topic","data-event-label":T},onChange:e=>{oe({label:e.label,value:String(e.value)}),ie([])},disabled:!!d}),o.createElement(F,{size:"sm",className:"warning",color:k.colors.gray400},"* ",B("commentPopup.warning.newPost"))),!y&&o.createElement("div",{className:"input-group"},o.createElement(F,{size:"p4",className:"input-group-label"},B("tab.topic")),o.createElement("div",{className:"input-notification"},o.createElement("img",{src:me?"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%232D87F3'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e":ba,loading:"lazy"}),o.createElement(F,{size:"base",color:k.colors.gray500},B(me?"createPost.popup.primary":"createPost.popup.warning"))),me&&o.createElement(oo,{className:"tag-list",communityId:me.id,forceTopics:m,onChange:ie,selectedTopics:ne,noFetch:f,dataEventCategory:"Together",dataEventAction:"Write Post Click - Choose Community/Topic",dataEventLabel:T}))),o.createElement("div",{className:"form-action"},o.createElement("div",{className:"input-group"},o.createElement(h,{className:"swich-input-group",labelPosition:"left",name:"PostAnonymous",checked:O,color:L?"pink":void 0,"data-event-category":"Together","data-event-action":"Write Post Click - Incognito","data-event-label":T,label:o.createElement("div",{className:"switch-label"},o.createElement("img",{className:"label-icon",src:se.getAssetPath("anomyous-avatar.svg"),alt:"anomyous avatar",style:{marginRight:"10px",width:"24px"},loading:"lazy"}),o.createElement("span",{className:"label-txt"},B("createPost.postAnonymous"))),value:"Post Anonymous",onChange:e=>R(e.currentTarget.checked),styles:{body:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},label:{display:"flex",alignItems:"center"}}})),o.createElement("div",{className:"input-group"},o.createElement($,{className:"submit-btn pointer-event-child-none",size:"lg","data-event-category":"Ask Doctor","data-event-action":"Submit Question","data-event-label":window.location.href,onClick:()=>e(void 0,void 0,void 0,(function*(){if(fe&&!q){_(!0);try{yield ye()}catch(e){console.error(e),M(ua(B))}_(!1)}})),disabled:!fe,loading:q},B("createPost.popup.submit")))))},lo=pe.div`
|
|
1521
|
+
`,no=({className:t,style:a,topics:n,communityId:d,onChange:m,isLoading:p,disabled:u,forceTopics:g,selectedTopics:v,noFetch:h,dataEventCategory:b,dataEventAction:f,dataEventLabel:y})=>{const{data:{locale:w,env:{isMarryBaby:x}}}=i(N),[E,C]=l(n?[...n]:[]),[k,A]=l(v?[...v]:[]),[T,S]=l(!1),L=r(n);L.current=n,s((()=>{var t;!d||h||(null===(t=L.current)||void 0===t?void 0:t.length)||(C([]),S(!0),e(void 0,void 0,void 0,(function*(){var e;try{const t=yield z(P(I.TOPIC.LIST,{communityId:d,_locale:w}),"GET"),a=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.topics;Array.isArray(a)&&C((()=>(null==a?void 0:a.map(Ne).sort(((e,t)=>(e.order||0)-(t.order||0))))||[]))}catch(e){console.log(e),S(!1)}S(!1)})))}),[d,h]);const M=null==n?void 0:n.map((e=>e.id)).join("-"),j=null==E?void 0:E.map((e=>e.id)).join("-"),B=null==g?void 0:g.map((e=>e.id)).join("-");s((()=>{n&&void 0!==M&&M!==j&&C(n)}),[n,M,j]);const F=c((()=>E.filter((e=>!(null==g?void 0:g.some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)))))),[j,B]);return o.createElement(oo,{"data-is-marrybaby":x,className:t,style:a},g.map((e=>o.createElement(io,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:!0,selected:!0,dataEventAction:f,dataEventCategory:b,dataEventLabel:y}))),F.map((e=>o.createElement(io,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:u,selected:(v||k).some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)),onClick:()=>{const t=v||k,a=t.findIndex((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId));-1!==a?t.splice(a,1):t.push(e),m&&v?m(t.slice()):(m&&m(t.slice()),A(t.slice()))},dataEventAction:f,dataEventCategory:b,dataEventLabel:y}))),(p||T)&&o.createElement(Ye,{className:"topic-spinner"}))},io=e=>{var{topic:a,disabled:n,selected:i,onClick:l}=e,r=t(e,["topic","disabled","selected","onClick"]);return o.createElement("div",Object.assign({className:"tag-item"+(i?" --active":""),"data-disabled":n,onClick:n?void 0:l},r),a.name)},lo=({className:t,style:a,onPostCreatedEdited:n,onClose:r,communities:c=[],forceSelectCommunity:d,forceSelectTopics:m,articleId:p,optionalTopic:u,editPostData:g,defaultCommunity:v,defaultTopics:b,noFetchTopic:f,hideTopicList:y,selectAskDoctor:w,showAskDoctorOptions:A,currentPageUrl:T})=>{const z=!!(null==g?void 0:g.id),{data:{locale:S,env:{isMarryBaby:L}},action:{pushNotifications:M,sanitizeFunction:j}}=i(N),{t:B}=E(),[O,R]=l(!1),[V,D]=l(w),[U,W]=l(!1),[H,Z]=l(!1),[q,_]=l(!1),[Y,J]=l(""),[ee,te]=l(""),[ae,oe]=l(d?{label:d.name,value:`${d.id||""}-${d.mappedCategoryId||""}`}:{label:B("community.choose"),value:""}),[ne,ie]=l([...m]||[]),[le,re]=l([]),[se,de]=l([]),me=d||c.find((e=>`${e.id||""}-${e.mappedCategoryId||""}`===ae.value)),pe=d?[d]:c.filter((e=>e.isActive)).sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),[ue,ge]=l(null),[ve,he]=l([]),be=Y&&!H&&C(ee)&&(u||!u&&ne.length>0)&&me&&(!le||le.length<=Q)&&!(null==ve?void 0:ve.length)&&!q;s((()=>{if(g){const e=g;J(e.title||""),te(Sa(Ia(e.description||"","edit"),e.mentions)),oe({label:e.community.name,value:`${e.community.id||""}-${e.community.mappedCategoryId||""}`}),ie(e.topics||[]),re(e.photos||[]),R(!!e.isAnonymous||!1),D(!!e.isAskDoctor||!1)}else v&&oe({label:v.name,value:`${v.id||""}-${v.mappedCategoryId||""}`}),b&&ie(b)}),[]),s((()=>{Z(""!==Y&&!/[a-zA-Z]/.test(Y))}),[Y]);const ye=()=>e(void 0,void 0,void 0,(function*(){var t,a,o,i,l,s,c,d,m;if(A&&void 0===V)return W(!0),!1;const u=yield(({title:t,description:a,communityId:o,imageFiles:n,previewUrl:i,topicIds:l,locale:r,sanitizeFunction:s,categoryCommunityId:c,categoryTopicIds:d,introUrl:m,bannerUrl:p,scheduleTime:u,isAnonymous:g,isAskDoctor:v})=>e(void 0,void 0,void 0,(function*(){const e=new FormData,h=Ba(a),b=Ba(t),f=Ma(h);if(e.append("title",b),e.append("description",Fa(h,s)),c?e.append("category_community",String(c)):o&&e.append("community_id",String(o)),e.append("is_anonymous",g?"1":"0"),e.append("is_question",v?"1":"0"),(null==i?void 0:i.title)&&e.append("preview_title",i.title),(null==i?void 0:i.description)&&e.append("preview_description",i.description),(null==i?void 0:i.url)&&e.append("preview_link",fe(i.url)),(null==i?void 0:i.image)&&e.append("preview_image",fe(i.image)),null==l||l.forEach((t=>{e.append("topics[]",String(t||""))})),null==d||d.forEach((t=>{e.append("category_topics[]",String(t||""))})),null==n?void 0:n.length){const t=yield Promise.all(n.map(((e,t)=>new Promise((a=>{setTimeout((()=>{a(Da(e,r))}),2e3*t)})))));null==t||t.filter(Boolean).slice(0,Q).forEach(((t,a)=>{e.append(`images[${a}]`,t)}))}else e.append("images","");return null==f||f.forEach((t=>{e.append("mention_ids[]",t)})),e.append("intro_url",m||""),e.append("banner",p||""),u&&(e.append("post_type","scheduled"),e.append("schedule_datetime",u)),e})))({title:Y,description:ee,communityId:String((null==me?void 0:me.id)||""),imageFiles:le,previewUrl:ue,topicIds:null==ne?void 0:ne.map((e=>String(e.id||""))).filter(Boolean),locale:S,sanitizeFunction:j,categoryCommunityId:String((null==me?void 0:me.mappedCategoryId)||""),categoryTopicIds:null==ne?void 0:ne.map((e=>String(e.mappedCategoryId||""))).filter(Boolean),isAnonymous:O?1:0,isAskDoctor:V?1:0});let v;p&&u.append("article_id",p),z?(null==g?void 0:g.id)&&(v=yield(({id:t,locale:a,formData:o})=>e(void 0,void 0,void 0,(function*(){return yield G(P(I.POST.UPDATE,{id:t,_locale:a}),"POST",{data:o})})))({id:g.id,formData:u,locale:S})):v=yield(({locale:t,formData:a,isArticleComment:o})=>e(void 0,void 0,void 0,(function*(){return yield G(P(o?I.POST.CREATE_ARTICLE_COMMENT:I.POST.CREATE,{_locale:t}),"POST",{data:a})})))({formData:u,locale:S,isArticleComment:!(null==me?void 0:me.id)&&!!(null==me?void 0:me.mappedCategoryId)});const h=null==v?void 0:v.data;(null==h?void 0:h.id)&&!(null===(a=null===(t=null==v?void 0:v.messages)||void 0===t?void 0:t.moderation)||void 0===a?void 0:a.type)?(M({message:B("createPost.popup.success"),type:"success"}),(e=>{n&&n(Ae(e),z),r&&r()})(h)):"banned"===(null===(i=null===(o=null==v?void 0:v.messages)||void 0===o?void 0:o.moderation)||void 0===i?void 0:i.type)?(M({title:B("notification.post.blocked.title"),message:B("notification.post.blocked.message"),type:"danger"}),v.messages.moderation.words&&de(v.messages.moderation.words)):"suspect"===(null===(s=null===(l=null==v?void 0:v.messages)||void 0===l?void 0:l.moderation)||void 0===s?void 0:s.type)?(M({title:B("notification.post.suspect.title"),message:B("notification.post.suspect.message"),type:"warning"}),r&&r()):(null===(d=null===(c=null==v?void 0:v.messages)||void 0===c?void 0:c.find)||void 0===d?void 0:d.call(c,(e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(M({message:B("notification.suspend.message"),type:"danger"}),r&&r()):M({message:(null===(m=null==v?void 0:v.messages)||void 0===m?void 0:m[0])||B("notification.failure"),type:"danger"})}));return o.createElement(va,{className:t,style:a},o.createElement("div",{className:"input-group-container"},o.createElement(ao,{className:"input-group",bannedWords:se,value:Y,onChange:J}),H&&o.createElement(ba,null,o.createElement(X,{isSolid:!0,color:k.colors.red700,size:14}),o.createElement(F,{size:"p3",as:"span",color:k.colors.red700},B("createPost.popup.specialCharErr"))),o.createElement(Ja,{className:"input-group",bannedWords:se,value:ee,onChange:te,onPreviewUrlChange:ge,onInvalidUrlsChange:he,onImageFilesChange:re,imageFiles:le}),A&&o.createElement(ha,{"data-is-marry-baby":L},o.createElement("div",{className:"switch-label"},o.createElement(K,{isMarryBaby:L,size:L?32:24,color:k.colors.primaryBase,className:"label-icon"}),o.createElement("span",{className:"label-txt"},B("createPost.askDoctor"))),o.createElement(Ce,{value:V,choices:[{label:B("createPost.askDoctorChoice.yes"),value:!0,dataEventCategory:"Together",dataEventAction:"Write Post Click - Ask Doctor",dataEventLabel:T},{label:B("createPost.askDoctorChoice.no"),value:!1}],onChange:e=>{"boolean"==typeof e&&(W(!1),D(e))}})),U&&o.createElement(ba,null,o.createElement(X,{isSolid:!0,color:k.colors.red700,size:14}),o.createElement(F,{size:"p3",as:"span",color:k.colors.red700},B("createPost.message.askDoctorRequire"))),o.createElement("div",{className:"input-group"},o.createElement(F,{size:"p4",className:"input-group-label"},B("admin.community")),o.createElement(x,{options:(null==pe?void 0:pe.map((e=>({label:e.name,value:`${e.id||""}-${e.mappedCategoryId||""}`}))))||[],id:"community-picker",placeholder:B("community.choose"),value:ae,dropdownLabelTrackingAttributes:{"data-event-category":"Together","data-event-action":"Write Post Click - Choose Community/Topic","data-event-label":T},onChange:e=>{oe({label:e.label,value:String(e.value)}),ie([])},disabled:!!d}),o.createElement(F,{size:"sm",className:"warning",color:k.colors.gray400},"* ",B("commentPopup.warning.newPost"))),!y&&o.createElement("div",{className:"input-group"},o.createElement(F,{size:"p4",className:"input-group-label"},B("tab.topic")),o.createElement("div",{className:"input-notification"},o.createElement("img",{src:me?"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%232D87F3'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e":fa,loading:"lazy"}),o.createElement(F,{size:"base",color:k.colors.gray500},B(me?"createPost.popup.primary":"createPost.popup.warning"))),me&&o.createElement(no,{className:"tag-list",communityId:me.id,forceTopics:m,onChange:ie,selectedTopics:ne,noFetch:f,dataEventCategory:"Together",dataEventAction:"Write Post Click - Choose Community/Topic",dataEventLabel:T}))),o.createElement("div",{className:"form-action"},o.createElement("div",{className:"input-group"},o.createElement(h,{className:"swich-input-group",labelPosition:"left",name:"PostAnonymous",checked:O,color:L?"pink":void 0,"data-event-category":"Together","data-event-action":"Write Post Click - Incognito","data-event-label":T,label:o.createElement("div",{className:"switch-label"},o.createElement("img",{className:"label-icon",src:ce.getAssetPath("anomyous-avatar.svg"),alt:"anomyous avatar",style:{marginRight:"10px",width:"24px"},loading:"lazy"}),o.createElement("span",{className:"label-txt"},B("createPost.postAnonymous"))),value:"Post Anonymous",onChange:e=>R(e.currentTarget.checked),styles:{body:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},label:{display:"flex",alignItems:"center"}}})),o.createElement("div",{className:"input-group"},o.createElement($,{className:"submit-btn pointer-event-child-none",size:"lg","data-event-category":"Ask Doctor","data-event-action":"Submit Question","data-event-label":window.location.href,onClick:()=>e(void 0,void 0,void 0,(function*(){if(be&&!q){_(!0);try{yield ye()}catch(e){console.error(e),M(ga(B))}_(!1)}})),disabled:!be,loading:q},B("createPost.popup.submit")))))},ro=ue.div`
|
|
1522
1522
|
[data-type='confirm'] {
|
|
1523
1523
|
width: min(360px, 100%);
|
|
1524
1524
|
height: auto;
|
|
@@ -1603,7 +1603,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1603
1603
|
overflow: hidden;
|
|
1604
1604
|
border-radius: 1rem;
|
|
1605
1605
|
&[data-open='true'] {
|
|
1606
|
-
${
|
|
1606
|
+
${he.mbDown} {
|
|
1607
1607
|
top: 100%;
|
|
1608
1608
|
transform: translate(-50%, -100%);
|
|
1609
1609
|
max-width: unset;
|
|
@@ -1615,12 +1615,12 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1615
1615
|
}
|
|
1616
1616
|
.popup-content {
|
|
1617
1617
|
.close-button {
|
|
1618
|
-
${
|
|
1618
|
+
${he.mbDown} {
|
|
1619
1619
|
display: none;
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
1622
|
.confirm-dialog {
|
|
1623
|
-
${
|
|
1623
|
+
${he.mbDown} {
|
|
1624
1624
|
background: unset;
|
|
1625
1625
|
position: relative;
|
|
1626
1626
|
overflow-x: hidden;
|
|
@@ -1640,7 +1640,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1640
1640
|
}
|
|
1641
1641
|
.confirm-content {
|
|
1642
1642
|
padding: 0 40px 40px;
|
|
1643
|
-
${
|
|
1643
|
+
${he.mbDown} {
|
|
1644
1644
|
padding-left: 1.5rem;
|
|
1645
1645
|
padding-right: 1.5rem;
|
|
1646
1646
|
}
|
|
@@ -1659,7 +1659,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
.thumbnail-container {
|
|
1662
|
-
${
|
|
1662
|
+
${he.mbDown} {
|
|
1663
1663
|
display: none;
|
|
1664
1664
|
}
|
|
1665
1665
|
&.is-icon {
|
|
@@ -1681,14 +1681,14 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1681
1681
|
height: 24px;
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
|
-
${
|
|
1684
|
+
${he.mbDown} {
|
|
1685
1685
|
display: flex;
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
|
-
`,
|
|
1691
|
+
`,so=e=>{var{size:a,color:n,isExpand:i,useCurrentColor:l,isActive:r,activeColor:s}=e,c=t(e,["size","color","isExpand","useCurrentColor","isActive","activeColor"]);const d=l?"currentColor":r?s:n,m=Object.assign({width:a,height:a},c);return i?o.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m),o.createElement("path",{d:"M15.1801 4C14.6212 4 14.3418 4.67561 14.7373 5.07108L16.0864 6.42229L6.42229 16.0864L5.07108 14.7373C4.67561 14.3418 4 14.6212 4 15.1801V19.3718C4 19.7187 4.28026 20 4.62617 20H8.81987C9.37881 20 9.6582 19.3244 9.26272 18.9289L7.91357 17.5777L17.5777 7.91357L18.9289 9.26272C19.3244 9.6582 20 9.37881 20 8.81987V4.62617C20 4.28026 19.7187 4 19.3718 4H15.1801Z",fill:d})):o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 14 14",fill:d,xmlns:"http://www.w3.org/2000/svg"},c),o.createElement("path",{d:"M9.64991 0.333008C9.18412 0.333008 8.9513 0.896013 9.28086 1.22558L10.4052 2.35159L2.35171 10.405L1.2257 9.28074C0.896135 8.95118 0.33313 9.184 0.33313 9.64979V13.1428C0.33313 13.432 0.566681 13.6663 0.854939 13.6663H4.34969C4.81547 13.6663 5.04829 13.1033 4.71873 12.7738L3.59444 11.6478L11.6479 3.59432L12.7739 4.71861C13.1035 5.04817 13.6665 4.81535 13.6665 4.34957V0.854817C13.6665 0.566559 13.4321 0.333008 13.1429 0.333008H9.64991Z"}))};so.defaultProps={size:24,color:k.colors.gray600,activeColor:k.colors.primaryBase};const co=ue.div`
|
|
1692
1692
|
[data-type='confirm'] {
|
|
1693
1693
|
max-width: 468px;
|
|
1694
1694
|
/* height: 486px; */
|
|
@@ -1736,7 +1736,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
|
|
1739
|
-
${e=>e.isExpand&&
|
|
1739
|
+
${e=>e.isExpand&&ve`
|
|
1740
1740
|
& > div[data-open] {
|
|
1741
1741
|
width: 100%;
|
|
1742
1742
|
height: 100%;
|
|
@@ -1745,16 +1745,16 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1745
1745
|
}
|
|
1746
1746
|
`}
|
|
1747
1747
|
|
|
1748
|
-
${e=>e.hasFullscreen&&
|
|
1748
|
+
${e=>e.hasFullscreen&&ve`
|
|
1749
1749
|
& > div[data-open] {
|
|
1750
1750
|
transition: all 0.5s ease-in-out, width 0s, height 0s;
|
|
1751
1751
|
}
|
|
1752
1752
|
`}
|
|
1753
|
-
`,
|
|
1753
|
+
`,mo=ue.div`
|
|
1754
1754
|
cursor: pointer;
|
|
1755
1755
|
display: flex;
|
|
1756
1756
|
align-items: center;
|
|
1757
|
-
`;var
|
|
1757
|
+
`;var po="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L6 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const uo=({className:e,style:t,closeIcon:a,heading:n="",children:i,isOpen:r=!1,hasFullscreen:s=!1,onClose:c=(()=>null)})=>{const[d,m]=l(!1);return o.createElement(co,{className:e,style:t,isExpand:d,hasFullscreen:s},o.createElement(Te,{type:"confirm",onClose:c,isOpen:r,closeIcon:a||o.createElement("img",{src:po,loading:"lazy"}),enableAnimation:!s},o.createElement("div",{className:"header"},o.createElement(L,{tag:"h5"},n),s&&o.createElement(mo,{onClick:()=>m(!d)},o.createElement(so,{size:14,isExpand:d}))),o.createElement("div",{className:"content"},"function"==typeof i?i(d):i)))},go=({className:e,isMarryBaby:t,style:a,title:n,description:r,acceptText:c,cancelText:d,onAccept:m,onCancel:p,thumbnail:u,isThumbnailIcon:g,onClose:v,acceptBtnTracking:h,acceptBtnProps:b,cancelBtnProps:f})=>{const{data:{env:{isMarryBaby:y}}}=i(N),w="boolean"==typeof t?t:y,[x,E]=l(!1);return s((()=>(be(!0),setTimeout((()=>E(!0)),0),()=>be(!1))),[]),"undefined"==typeof window?null:Ve.createPortal(o.createElement(ro,{"data-is-marrybaby":w,className:e,style:a,"data-open":x},o.createElement(uo,{className:"popup-frame",isOpen:x,onClose:v},o.createElement("div",{className:"confirm-dialog",onClick:e=>e.stopPropagation()},o.createElement("div",{className:"confirm-content"},u&&o.createElement("div",{className:"thumbnail-container "+(g?"is-icon":"")},o.createElement("img",{className:"thumbnail",src:u,loading:"lazy"})),o.createElement(L,{className:"title",tag:"h2"},n),o.createElement(Le,{className:"desc",size:"lg"},r),o.createElement("div",{className:"btn-group"},o.createElement(Fe,Object.assign({theme:w?"marryBaby":"helloSites",size:"md",color:"tertiary",onClick:()=>{null==m||m(),null==v||v()}},b,h),c),o.createElement(Fe,Object.assign({theme:w?"marryBaby":"helloSites",size:"md",onClick:()=>{null==p||p(),null==v||v()}},f),d)))),w&&u&&o.createElement("div",{className:"thumbnail-container is-mobile "+(g?"is-icon":"")},o.createElement("img",{className:"thumbnail",src:u,loading:"lazy"})))),ye())},vo=ue.div`
|
|
1758
1758
|
padding: 1rem;
|
|
1759
1759
|
border-top: 1px solid #f2f2f2;
|
|
1760
1760
|
&[data-is-reply='true'] {
|
|
@@ -1869,12 +1869,12 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1869
1869
|
.as-input {
|
|
1870
1870
|
font-size: 16px;
|
|
1871
1871
|
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
1872
|
-
${
|
|
1872
|
+
${he.mbDown} {
|
|
1873
1873
|
font-size: 22px;
|
|
1874
1874
|
line-height: 1.2;
|
|
1875
1875
|
}
|
|
1876
1876
|
|
|
1877
|
-
${
|
|
1877
|
+
${he.mbUp} {
|
|
1878
1878
|
font-size: 26px;
|
|
1879
1879
|
line-height: 1.2;
|
|
1880
1880
|
}
|
|
@@ -1884,12 +1884,12 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1884
1884
|
.as-input {
|
|
1885
1885
|
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
1886
1886
|
line-height: 22px;
|
|
1887
|
-
${
|
|
1887
|
+
${he.mbDown} {
|
|
1888
1888
|
font-size: 14px;
|
|
1889
1889
|
line-height: 1.2;
|
|
1890
1890
|
}
|
|
1891
1891
|
|
|
1892
|
-
${
|
|
1892
|
+
${he.mbUp} {
|
|
1893
1893
|
font-size: 16px;
|
|
1894
1894
|
line-height: 1.2;
|
|
1895
1895
|
}
|
|
@@ -1899,12 +1899,12 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1899
1899
|
.as-input {
|
|
1900
1900
|
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
1901
1901
|
line-height: 20px;
|
|
1902
|
-
${
|
|
1902
|
+
${he.mbDown} {
|
|
1903
1903
|
font-size: 13px;
|
|
1904
1904
|
line-height: 1.5;
|
|
1905
1905
|
}
|
|
1906
1906
|
|
|
1907
|
-
${
|
|
1907
|
+
${he.mbUp} {
|
|
1908
1908
|
font-size: 13px;
|
|
1909
1909
|
line-height: 1.5;
|
|
1910
1910
|
}
|
|
@@ -1974,11 +1974,11 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
|
-
`,
|
|
1977
|
+
`,ho=n({});const bo=({isReply:t,className:a,onClose:n,replyToName:c,style:d,replyingId:m,replyingUser:p,onPostSuccess:u,post:g,isMarryBaby:v})=>{const{action:{pushNotifications:h,sanitizeFunction:b},data:{userInfo:f,locale:y,env:{isMarryBaby:w}}}=i(N),x="boolean"==typeof v?v:w,{t:C}=E(),{onSelectImages:k,onRemoveImage:A,imageSrcs:T,onRemoveAllImages:z,imageFiles:S}=Ua(),[L,M]=l(""),{trigger:j}=i(ho),[B,F]=l(!1),O=r(null),R=r(null),V=r(null),[D,U]=l([]),[W,H]=l([]),[Z,q]=l(null);return s((()=>{var e;null===(e=V.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout((()=>{var e;null===(e=R.current)||void 0===e||e.focus()}),400)}),[j]),o.createElement(vo,{"data-is-reply":t,className:a,style:d},t&&o.createElement("div",{className:"reply-to-container"},o.createElement(Le,{size:"p4"},o.createElement("span",{dangerouslySetInnerHTML:{__html:C("inputComment.replyTo",{name:`<span style="color: #2D87F3; cursor: pointer">@${c||""}</span>`})}})),o.createElement("img",{src:"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8.00016' cy='8.50004' r='6.66667' fill='white' stroke='%23404040'/%3e%3cpath d='M10 6.5L6 10.5' stroke='%23404040' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6.5L10 10.5' stroke='%23404040' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",className:"icon-close-comment",onClick:()=>n&&n(),loading:"lazy"})),o.createElement("div",{className:"input-container",ref:V},o.createElement(Ue,{className:"avatar-wrapper "+(t?"avatar-wrapper-reply":""),avatar:(null==f?void 0:f.id)?f.avatar:Y,username:(null==f?void 0:f.name)||(null==f?void 0:f.username)}),o.createElement("input",{ref:O,onChange:k,type:"file",multiple:!0,accept:"image/png,image/jpeg",name:"images",style:{display:"none"}}),o.createElement(Me,{value:L,name:"input",size:"md",className:"input-wrapper",displayIcon:o.createElement("img",{src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.7543 4.85352H4.49227C4.01776 4.85352 3.56268 5.04201 3.22715 5.37754C2.89162 5.71307 2.70313 6.16815 2.70312 6.64266V19.1667C2.70313 19.6412 2.89162 20.0963 3.22715 20.4318C3.56268 20.7673 4.01776 20.9558 4.49227 20.9558H17.0163C17.4908 20.9558 17.9459 20.7673 18.2814 20.4318C18.6169 20.0963 18.8054 19.6412 18.8054 19.1667V12.9047' stroke='%232D87F3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M17.4633 3.51187C17.8192 3.15599 18.3019 2.95605 18.8052 2.95605C19.3085 2.95605 19.7912 3.15599 20.147 3.51187C20.5029 3.86775 20.7029 4.35044 20.7029 4.85373C20.7029 5.35702 20.5029 5.83971 20.147 6.19559L11.6486 14.694L8.07031 15.5886L8.96489 12.0103L17.4633 3.51187Z' stroke='%232D87F3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),CustomInput:o.createElement("div",{className:"as-input"},o.createElement(Qa,{className:"textarea",html:L,onChange:M,onImagePickerClick:()=>{var e;return null===(e=O.current)||void 0===e?void 0:e.click()},bannedWords:W,onPreviewUrlChange:q,onInvalidUrlsChange:U,setEditorRef:e=>R.current=e,isReplying:t}))}),o.createElement(Fe,{theme:x?"marryBaby":"helloSites",className:"send-button",size:"sm",onClick:()=>e(void 0,void 0,void 0,(function*(){var a,o,i,l,r,s,c,d,v;if((null==g?void 0:g.id)&&!B){F(!0);try{const f=e=>{M(""),z(),n&&n();const t=ze(e.data);"string"==typeof t.images&&(t.images=JSON.parse(t.images)),u&&u(t)},w=yield(({postId:t,message:a,photos:o,link:n,locale:i,sanitizeFunction:l,replyingUserId:r,replyingUserName:s,replyingId:c})=>e(void 0,void 0,void 0,(function*(){const e=new FormData;let d=Fa(a.replace(/(\ )+/g," "),l);const m=Ma(d);return o&&o.length>0&&(yield Promise.all(null==o?void 0:o.map((e=>Da(e,i))))).filter(Boolean).slice(0,Q).forEach((t=>{e.append("images[]",t)})),n&&e.append("link",n),null==m||m.forEach((t=>{e.append("mention_ids[]",t)})),e.append("post_id",t),c&&e.append("parent_id",c),r&&(m.unshift(r),d=`[mention+id="${r}"+name="${(s||"").replace('"',"'")}"]${d}`,e.append("parent_user_id",String(r))),e.append("content",d),e.append("content",d),e})))(Object.assign({message:L,photos:S,postId:String(g.id),link:null==Z?void 0:Z.url,sanitizeFunction:b,locale:y},t&&m?{replyingUserId:String((null==p?void 0:p.id)||(null===(a=null==g?void 0:g.author)||void 0===a?void 0:a.id)||""),replyingId:m,replyingUserName:(null==p?void 0:p.name)||(null==p?void 0:p.username)||""}:{})),x=yield t&&m?((t,a)=>e(void 0,void 0,void 0,(function*(){return G(P(I.COMMENT.REPLY,{_locale:a}),"POST",{data:t})})))(w,y):((t,a)=>e(void 0,void 0,void 0,(function*(){return G(P(I.COMMENT.CREATE,{_locale:a}),"POST",{data:t})})))(w,y),E=null==x?void 0:x.data;(null==E?void 0:E.id)&&!(null===(i=null===(o=null==x?void 0:x.messages)||void 0===o?void 0:o.moderation)||void 0===i?void 0:i.type)?f(x):"banned"===(null===(r=null===(l=null==x?void 0:x.messages)||void 0===l?void 0:l.moderation)||void 0===r?void 0:r.type)?(h({title:C("notification.comment.blocked.title"),message:C("notification.comment.blocked.message"),type:"danger"}),x.messages.moderation.words&&H(x.messages.moderation.words)):"suspect"===(null===(c=null===(s=null==x?void 0:x.messages)||void 0===s?void 0:s.moderation)||void 0===c?void 0:c.type)?(h({title:C("notification.comment.suspect.title"),message:C("notification.comment.suspect.message"),type:"warning"}),M(""),z(),n&&n()):(null===(d=null==x?void 0:x.messages)||void 0===d?void 0:d.find((e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(h({message:C("notification.suspend.message"),type:"warning"}),M(""),z(),n&&n()):h({title:"",message:(null===(v=null==x?void 0:x.messages)||void 0===v?void 0:v[0])||C("notification.comment.somethingWrong"),type:"danger"})}catch(e){h({title:"",message:C("notification.comment.somethingWrong"),type:"danger"})}F(!1)}})),isLoading:B,isDisabled:!!(null==D?void 0:D.length)||B||!L||(null==L?void 0:L.length)<2||!L.trim()},o.createElement("img",{src:"data:image/svg+xml,%3csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.5 9.73438L3.75 13.4844L7.5 17.2344' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M16.25 4.73438L16.25 10.3026C16.25 11.1464 15.9208 11.9557 15.3347 12.5524C14.7487 13.1491 13.9538 13.4844 13.125 13.4844L3.75 13.4844' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",className:"icon-enter",loading:"lazy"}))),(null==D?void 0:D.length)?o.createElement("div",{className:"error-text"},C("notification.limitUrlDomain")):null,(!T||0===T.length)&&Z&&o.createElement("div",{className:"link-preview-wrapper"},Z.isFetching?o.createElement(Ye,null):o.createElement(o.Fragment,null,o.createElement(et,{title:Z.title,url:Z.url||"#",image:Z.image,noRefetch:!0}),o.createElement("img",{src:Ya,className:"icon-close",onClick:()=>q(null),loading:"lazy"}))),T&&T.length>0&&o.createElement("div",{className:"preview-images-container"},T.map(((e,t)=>o.createElement("div",{key:t,className:"image-src-wrapper"},o.createElement("img",{className:"preview-image",src:e,loading:"lazy"}),o.createElement("img",{src:Ya,className:"icon-close-circle",onClick:()=>A(t),loading:"lazy"}))))))},fo=ue.a`
|
|
1978
1978
|
* {
|
|
1979
1979
|
pointer-events: none;
|
|
1980
1980
|
}
|
|
1981
|
-
`,
|
|
1981
|
+
`,yo=ue.div`
|
|
1982
1982
|
padding: 1rem;
|
|
1983
1983
|
.share__social {
|
|
1984
1984
|
display: flex;
|
|
@@ -1986,7 +1986,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
1986
1986
|
align-items: center;
|
|
1987
1987
|
justify-content: center;
|
|
1988
1988
|
|
|
1989
|
-
& > ${
|
|
1989
|
+
& > ${fo} {
|
|
1990
1990
|
margin: 0 7px;
|
|
1991
1991
|
|
|
1992
1992
|
& > img {
|
|
@@ -2066,7 +2066,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2066
2066
|
}
|
|
2067
2067
|
|
|
2068
2068
|
&[data-is-marrybaby='true'] {
|
|
2069
|
-
${
|
|
2069
|
+
${he.mbDown} {
|
|
2070
2070
|
padding: 0.5rem;
|
|
2071
2071
|
}
|
|
2072
2072
|
.share__social {
|
|
@@ -2077,7 +2077,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2077
2077
|
align-items: center;
|
|
2078
2078
|
justify-content: center;
|
|
2079
2079
|
text-align: center;
|
|
2080
|
-
${
|
|
2080
|
+
${he.mbDown} {
|
|
2081
2081
|
margin: 0;
|
|
2082
2082
|
}
|
|
2083
2083
|
& > img {
|
|
@@ -2114,7 +2114,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2114
2114
|
}
|
|
2115
2115
|
}
|
|
2116
2116
|
}
|
|
2117
|
-
`;const yo=({className:e,trackingCategory:t="Together",style:a,shareUrl:n,title:c})=>{const{action:{pushNotifications:d},data:{env:{isMarryBaby:m}}}=i(N),{t:p}=E(),u=r(null),[g,v]=l(!1),h=()=>{if(!(null==u?void 0:u.current))return;const e=document.createElement("textarea");e.value=u.current.value,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),u.current.focus(),v(!0),d({title:"",message:p("share.linkCopied"),type:"success"})};s((()=>{h(),navigator.share&&navigator.share({title:c||"Read This Post",url:n}).then((()=>{d({title:"",message:p("share.linkShared"),type:"success"})})).catch(console.error)}),[]);const b=((e,t)=>t?[{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 9.58333V30.4167C35 32.9417 32.9417 35 30.4167 35H25.8333V23.3333H28.85C29.275 23.3333 29.6333 23.0167 29.6833 22.6L29.9917 20.1C30.025 19.8667 29.95 19.625 29.7917 19.45C29.6333 19.2667 29.4083 19.1667 29.1667 19.1667H25.8333V16.25C25.8333 15.3333 26.5833 14.5833 27.5 14.5833H29.1667C29.625 14.5833 30 14.2083 30 13.75V10.9333C30 10.5083 29.6667 10.15 29.2417 10.1083C29.1917 10.1 28.0167 10 26.525 10C22.8583 10 20.8333 12.1833 20.8333 16.1417V19.1667H17.5C17.0417 19.1667 16.6667 19.5417 16.6667 20V22.5C16.6667 22.9583 17.0417 23.3333 17.5 23.3333H20.8333V35H9.58333C7.05833 35 5 32.9417 5 30.4167V9.58333C5 7.05833 7.05833 5 9.58333 5H30.4167C32.9417 5 35 7.05833 35 9.58333Z' fill='url(%23paint0_linear)'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='20' y1='5' x2='20' y2='35' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%234DABF7'/%3e%3cstop offset='1' stop-color='%232668DA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAzTSURBVHgB7Z0JdFTVGce/776ZCQkBElLCksga9kU2FQQRSlGo1AYUKwpuVA91xdZqtVTx1ONyrIpKBesC1AO1WHsiPQcsoIig1oNgEEEMKonsIQkhk2WWd+/X+96YTEK2+2beSJJ5v3Nyst25c9/3v/f7vru8NwAODg4ODg4ODg4ODg4ODvEEgt0sohTwQbb86VJZ+0gQ1Ft+Tzm7WNeOIJZeA/ya0eCGlkspIuYTQC5xvk3TtBz5eynYiH0CLJSGBrEICG9syOC1GZ4BYt0CgAHdgEFrA3GVbPSjhjBgA9ELYPR4PzwCRItUil82GPzrbgV3h3at0Pi1YIhLpQj3QpREJ4DZ62ErgPm9WeaMAv2NW0BzazFwfeeGfCnElGhGQ+S98FYaCRaMf+X54Ft5E7A2ZHyD3oJoa4BMW0REZMaw2POHdAf+yf3AkhPalPFrE/FIiHQEKBs/NQnEOwvbtPENzJFARClWX2hdgN/Qc6rGBwJ6dg5A3y5t2vjV9JZfj4BFrBnGdD10SLX45UNA/88doGkYFwKYSFfUx4orsjgCxBLVkjLNFM/PAYwn4xsIIZTS8WrUBTDyfZCTLEXmjgXq3xU0iDcQb7QSC9QFCC0vKOFiQH+cEV89vxYpnHNlW1lwQWKyasnZI0HPTG3dM91oQE27VLWsupEQz1ctuviKuO39JmhhYqYugDDTrGYZ0BX40O7ggjiGQM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D0uQVcjkzqvARKyrnVHiG45kqYEQUk1FEHPrAm33yVctbVzrSUWDAg3IknJBmEW3y5ASReB7W9rP06GLrhgh9SM/nyk9QPxvSBVYck06A2tqzhfJpTZ8+YBHra0FLzU8RmiK1y4dIQBejpG5GltSWdsrypeuZAhEQ2WLcCml8DrMiFoF5XJTUVcYrbAsP+csnkraw4Pdr86N+iE89uE/GhCIZE3hrjQmhnh+h8Q2iW442RsIKlH6PnodI0Npp1C5NjoLW546MgEsVMCoa4xvY/UFuSywtV1QTrOToKzKeI9SyRwJCqVxhWQ2CLY3W8OEq7abmowzFZBloz2/sowzrEagIoL+oZe0dGAYnY2ENc+Ug3QZeyIGcPsornQ4ODg4ODg4ODg4ODg4ODmfzfz5w/2ZW/n9aAAAAAElFTkSuQmCC",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 30.8333C35 33.135 33.1342 35 30.8333 35H9.16667C6.865 35 5 33.135 5 30.8333V9.16667C5 6.865 6.865 5 9.16667 5H30.8333C33.1342 5 35 6.865 35 9.16667V30.8333Z' fill='%2303A9F4'/%3e%3cpath d='M30 14.2667C29.265 14.5925 28.3342 14.8983 27.5 15C28.3483 14.4967 29.6942 13.4483 30 12.5C29.2075 12.9658 27.7742 13.4633 26.8392 13.6433C26.0925 12.8517 25.0275 12.5 23.8475 12.5C21.5808 12.5 20 14.4208 20 16.6667V18.3333C16.6667 18.3333 13.4167 15.7942 11.3942 13.3333C11.0383 13.9342 10.8383 14.6375 10.8383 15.3808C10.8383 16.8967 12.2308 18.435 13.3333 19.1667C12.6608 19.1458 11.3875 18.6325 10.8333 18.3333C10.8333 18.3467 10.8333 18.3633 10.8333 18.3808C10.8333 20.3533 12.2175 21.6925 14.0933 22.0658C13.7508 22.16 13.3333 22.5 11.7267 22.5C12.2483 24.1125 14.8708 24.965 16.6667 25C15.2617 26.0892 12.7567 26.6667 10.8333 26.6667C10.5008 26.6667 10.3208 26.685 10 26.6475C11.815 27.7975 14.35 28.3333 16.6667 28.3333C24.2142 28.3333 28.3333 22.5683 28.3333 17.1917C28.3333 17.015 28.3275 16.4233 28.3183 16.25C29.125 15.6817 29.4517 15.0867 30 14.2667Z' fill='white'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/svg+xml,%3csvg width='41' height='40' viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35.5 30.8333C35.5 33.135 33.635 35 31.3333 35H9.66667C7.36583 35 5.5 33.135 5.5 30.8333V9.16667C5.5 6.865 7.36583 5 9.66667 5H31.3333C33.635 5 35.5 6.865 35.5 9.16667V30.8333Z' fill='%230078D4'/%3e%3cpath opacity='0.05' d='M25.4993 30.8327V22.4168C25.4993 21.0093 24.8168 20.1685 23.6727 20.1685C22.9935 20.1685 22.4943 20.551 22.1902 21.3052C22.176 21.3585 22.156 21.576 22.1643 22.2335L22.166 30.8327H16.3327V14.9993H22.166V15.8835C23.0177 15.296 24.0618 14.9993 25.281 14.9993C29.0702 14.9993 31.3318 17.5768 31.3318 21.8943L31.3327 30.8327H25.4993ZM9.66602 30.8327V14.9993H12.5468C10.8777 14.9993 9.66602 13.7727 9.66602 12.0818C9.66602 10.3927 10.8977 9.16602 12.5943 9.16602C14.271 9.16602 15.4652 10.3585 15.4993 12.0652C15.4993 13.7685 14.2668 14.9993 12.5702 14.9993H15.4993V30.8327H9.66602Z' fill='black'/%3e%3cpath opacity='0.07' d='M25.9173 30.4173V22.4182C25.9173 20.774 25.0582 19.7532 23.674 19.7532C22.5948 19.7532 22.0615 20.5132 21.8048 21.1507C21.7365 21.3165 21.7457 21.9748 21.749 22.2557L21.7507 30.4173H16.7507V15.4173H21.7507V16.7823C22.4132 16.0965 23.4798 15.4173 25.2823 15.4173C28.8098 15.4173 30.9165 17.839 30.9165 21.8957L30.9173 30.4173H25.9173ZM10.084 30.4173V15.4173H15.084V30.4173H10.084ZM12.5482 14.584C11.1207 14.584 10.084 13.5323 10.084 12.0832C10.084 10.6348 11.1407 9.58398 12.5957 9.58398C14.0323 9.58398 15.0548 10.6082 15.084 12.0748C15.084 13.5323 14.0273 14.584 12.5715 14.584H12.5482Z' fill='black'/%3e%3cpath d='M10.5 15.8333H14.6667V30H10.5V15.8333ZM12.5708 14.1667H12.5475C11.3042 14.1667 10.5 13.24 10.5 12.0825C10.5 10.9 11.3292 10 12.595 10C13.8625 10 14.6433 10.9 14.6667 12.0825C14.6667 13.2392 13.8625 14.1667 12.5708 14.1667ZM30.5 30H26.3333V22.4175C26.3333 20.5858 25.3125 19.3358 23.6733 19.3358C22.4225 19.3358 21.7458 20.1792 21.4175 20.9942C21.2975 21.2858 21.3333 22.0925 21.3333 22.5V30H17.1667V15.8333H21.3333V18.0133C21.9342 17.0833 22.875 15.8333 25.2817 15.8333C28.2633 15.8333 30.4992 17.7083 30.4992 21.895L30.5 30Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='url(%23a)' d='M36.667 19.584c0 8.975-7.458 16.25-16.666 16.25a16.97 16.97 0 0 1-3.987-.47 1.68 1.68 0 0 0-1.15.12l-3.647 1.825a1.417 1.417 0 0 1-2.05-1.267v-3.355c0-.479-.214-.925-.567-1.249-3.245-2.966-5.266-7.179-5.266-11.854 0-8.975 7.458-16.25 16.667-16.25 9.208 0 16.666 7.275 16.666 16.25Z'/%3e%3cpath fill='black' d='M29.16 14.41c-.357 0-.703.118-1 .343l-4.745 3.512a.594.594 0 0 1-.363.125.565.565 0 0 1-.341-.113l-3.31-2.492a3.821 3.821 0 0 0-2.298-.765c-1.313 0-2.52.66-3.23 1.764l-1.009 1.575-3.433 5.58a1.633 1.633 0 0 0-.06 1.678c.299.545.862.883 1.47.883.357 0 .703-.118 1-.342l4.746-3.513a.594.594 0 0 1 .362-.125c.125 0 .243.04.342.114l3.31 2.491a3.819 3.819 0 0 0 2.297.765c1.314 0 2.521-.659 3.23-1.763l1.01-1.576 3.433-5.58a1.633 1.633 0 0 0 .059-1.678 1.682 1.682 0 0 0-1.47-.883Z' opacity='.05'/%3e%3cpath fill='black' d='M29.161 14.826c-.266 0-.525.09-.75.258L23.665 18.6c-.18.136-.39.207-.61.207a.98.98 0 0 1-.591-.197l-3.311-2.492a3.405 3.405 0 0 0-2.048-.68c-1.17 0-2.246.587-2.879 1.572l-1.008 1.575-3.43 5.574c-.247.387-.266.86-.048 1.259.222.405.656.667 1.104.667.266 0 .525-.09.75-.259l4.747-3.515c.18-.136.39-.206.61-.206a.98.98 0 0 1 .592.196l3.31 2.493c.6.446 1.307.68 2.048.68 1.171 0 2.247-.587 2.88-1.572l1.008-1.576 3.429-5.573c.247-.387.267-.86.048-1.26a1.281 1.281 0 0 0-1.104-.666Z' opacity='.07'/%3e%3cpath fill='white' d='m28.663 15.417-4.75 3.516c-.509.384-1.2.384-1.7.009L18.9 16.449a3.004 3.004 0 0 0-4.325.784l-1.008 1.575-3.425 5.566c-.5.784.458 1.675 1.2 1.117l4.75-3.517a1.412 1.412 0 0 1 1.7-.008l3.311 2.492a3.004 3.004 0 0 0 4.325-.783l1.009-1.575 3.425-5.567c.5-.783-.459-1.675-1.2-1.116Z'/%3e%3cdefs%3e%3cradialGradient id='a' cx='0' cy='0' r='1' gradientTransform='translate(9.24 35.816) scale(39.6767)' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%231292FF'/%3e%3cstop offset='.079' stop-color='%232982FF'/%3e%3cstop offset='.23' stop-color='%234E69FF'/%3e%3cstop offset='.351' stop-color='%236559FF'/%3e%3cstop offset='.428' stop-color='%236D53FF'/%3e%3cstop offset='.754' stop-color='%23DF47AA'/%3e%3cstop offset='.946' stop-color='%23FF6257'/%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e",name:"Messenger",href:`https://www.facebook.com/sharer.php?u=${e}`}]:[{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M30.7336 6.21933e-10H2.2536C1.28305 0.00703318 0.499975 0.795821 0.5 1.7664V30.2464C0.507033 31.217 1.29582 32 2.2664 32H17.5944V19.6256H13.4344V14.7808H17.5944V11.216C17.5944 7.0848 20.1192 4.832 23.8056 4.832C25.0498 4.8267 26.2933 4.8908 27.5304 5.024V9.344H24.9896C22.9832 9.344 22.5928 10.304 22.5928 11.696V14.7808H27.38L26.74 19.6256H22.58V32H30.7336C31.7092 32 32.5 31.2092 32.5 30.2336V1.7536C32.493 0.783047 31.7042 -2.54822e-05 30.7336 6.21933e-10Z' fill='%233B5998'/%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAMAAAAKqCSwAAAC/VBMVEUAAAD////3+fwAcrIAgMcAcrH//v7+//8AcbEAf8b9/v37/P0BcbAAfsT9/f36/P38/f4Af8UDcrEBfMD//v/5+/0CcbDz+foAcrAAfcb2+/wFcrABfcP9/f73/P0BfMIAfsMHca/y+Pvr9fgEcq/5+/wBc7Hg8PUFc7H6/f74+/sAc7T1+vvv+PoIc7ACcrAQda/2+vzM4+0Kc68Lcq37/v3m8vfi7/UAd7oAdbYHca39///v9/loqs0QdrAWd68Ae74Ber0Adrj6/fu01OQEf8UifrMKdLEMdK/x+Prt9vjp8/fe7fMFfsMAeLsPc64CcK3I4Ot7s9EBe8AcerD4/f3f7/Xc7PMTe7UUd7AAebwXebEHcq7x+vzt9/rY6/TR5u+51+apzOCDttJ/tNFdn8UTg8MMgcM1irs6i7kmgLQJbqnz+vzB3eqJutQeh8JLlL5Ckb0zhrbh8fbW6fHU5/DF3+ujzOKpzuGmzOGeyN2cxt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rmg6ur6nt6p56pFceDncMqRGHjvqmuqNKoQpYTCZv0qRJPJ47jyeV8nhMagM7/fUZ5C53d3gyWD01yc8v1c+P/Al8Qi5qBH/00y01n/bjN+EqZgrVUf29VXut9bUFPJLa6qexcBQInj8k/a3zSaGv9EMFzSqFOk4DVetGtLgPqs81UHH1Q43VAxUgrkJUx9EG12kNVLHWrnuYARgNquZz2FH1f35Q9aqtYd8fNKyjDa5rarp+D4vOeJNihWEVWnUcdDaD6lb/h0VzNMyqhQqCiiF1uv9z+FHNB5srR9VgD9AIUK/d/7x4S01WCpU060TgqwZF/VvrcfHoKE1WasYaoILUGrAa0FmvaXKhOl5t8MOboGcNMysqBDANZddbp3W93QK978UW5uRQpUGj1a1rWi+MoMTRfg3HW3C8ArAOv7veuvX3tdP3AYlH4stNjJzV8hFNoUb8ehtLo3+3VR/pSH5plJG+iks80l9wZnSwJOggsBxjiQUUKC2toV9xiOvi/A/lszrbhFX1MAAAAABJRU5ErkJggg==",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3crect width='32' height='32' x='.5' fill='%231FA1F3' rx='4'/%3e%3cpath fill='white' fill-rule='evenodd' d='m16.23 13.235.04.634-.673-.077c-2.455-.298-4.6-1.308-6.42-3.004l-.89-.842-.23.622c-.486 1.385-.175 2.848.836 3.832.54.544.418.621-.512.298-.324-.104-.607-.181-.634-.143-.095.091.229 1.27.485 1.735.35.648 1.066 1.282 1.848 1.657l.66.298-.781.013c-.756 0-.783.013-.702.285.27.841 1.335 1.735 2.523 2.123l.836.272-.729.414a7.893 7.893 0 0 1-3.614.958c-.607.013-1.106.065-1.106.104 0 .13 1.645.854 2.603 1.14 2.873.84 6.285.478 8.848-.959 1.82-1.023 3.641-3.055 4.491-5.023.459-1.049.917-2.965.917-3.884 0-.596.04-.673.796-1.385.445-.415.863-.868.944-.997.135-.246.122-.246-.566-.026-1.147.388-1.309.337-.742-.246.418-.414.917-1.165.917-1.385 0-.04-.202.026-.432.142-.242.13-.782.324-1.187.44l-.728.22-.66-.427c-.365-.233-.877-.492-1.147-.57-.688-.18-1.74-.155-2.36.052-1.687.583-2.752 2.085-2.63 3.729Z' clip-rule='evenodd'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAACqCAMAAADlak+OAAAC+lBMVEUAAAAqtkD3+fz5+fn////8/P39/v4ptT8psj5CxFIqtD8+wlBMy1opsD4tuEKQ1537/Pv9/f76+/opsz9DxVQvukRKyVlGx1ZPzF1Tz2BX0WNJyFgrt0FSzl9FxlU4vkpQzV45v0wxu0X3+fg8wU46wE1Vz2E2vUkzu0dOy1worj1AwlFW0GL2+PcntD01u0j8/v1IyFc9wU9ExlQ7v035+vkvt0MttkIlszz1+PUsskEorDz3/PhFv1cnqTv09/Tt9e/5/PkrsEDy9/Po8+ovsUP5+v3r9O0yuEVZ0GQmpjrz+fTr9+zw9fFRyV7k9OZNyFswtUXc8t/G6cz2+/ft+O4ztEf2+vY2tEots0L0+/Xv9/He7+FAwFHi8+Wr4LR50IZYzmMroT7R7dXv+fFTy2FFwlU7vE3h8OTZ7tyi2aqP3JeC14xIxFg+vlD6/fry+vPm8ujd8eTZ8tvA6cV+0opczmdMvl1LuFwzskcrrD/o9urJ7M5izm9dxm9cwWxTxWLV8NnN7tG96MK75MG557+m3a+O1Zl31IE8tU/m9ujf9OLT6tav4LeK2JNtzXpGvFk7uE4ksjsmozrV7dnO6tLH58zC58jA4MWG1pB7zIhoynZf0WpZymcqqD7E68mt5LOi4amc1qWc36SU2J5tx3tOxl1LwltDvVQ/uFI5skw2uEoxq0QmnznR79XL6dDM5NCx5biw3beX1qCI0ZR2yoRbx2pbvGo5o0k0uEfb7N235L2137u05rqi0amW3p6S1Z1914d2wIJt0XhqwXdYxWdQv2JFuFdDtVUwoUIrpT7W6tq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hYYXXUNLfrUcPWVQqQMMOW6mr1xVKTCwMhDbLDQurisJiQ4+n94C90WdwggZwrgVw2TryTCBeOIzQaUWMojTiOKyyELW4k5ShuO+IgzsBNp97FeC7xv4vxBUzFmCaxFDSrAAAAAElFTkSuQmCC",name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='0.5' width='32' height='32' rx='4' fill='%230077B5'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`}])(n||"",m);return o.createElement(fo,{"data-is-marrybaby":m,className:e,style:a},o.createElement("div",{className:"share__social"},b.map(((e,a)=>o.createElement(bo,{key:a,"data-event-category":t,"data-event-action":`Social Share - ${e.name}`,"data-event-label":n,href:e.href,target:"_blank",rel:"noreferrer"},o.createElement(ye,{alt:`share to ${e}`,src:e.icon}),o.createElement(Se,{className:"__label",size:"label2",type:"regular"},e.name))))),o.createElement("div",{className:"share__copy-link"},o.createElement(Se,{className:"__label",color:k.colors.gray500,size:"p4",type:"regular"},p("orCopyLink")),o.createElement("div",{className:"__input-group"},o.createElement("input",{ref:u,type:"text",value:n,readOnly:!0,onFocus:e=>e.target.select()}),o.createElement("button",{className:"__copy",onClick:()=>h()},m?o.createElement(ye,{alt:"copy share link",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' xmlns:v='https://vecta.io/nano'%3e%3cg fill='%233e3f58'%3e%3cpath d='M19.726 8.537l-.632.151.632-.151zm0 4.65l-.632-.151.632.151zm-9.097-8.918l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm1.303 11.983a.65.65 0 1 0 .649 1.126l-.649-1.126zM6.041 7.23a.65.65 0 0 0 1.182.541L6.041 7.23zm13.053 1.459c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-8.32-3.786a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm4.452 0c1.925.443 3.419 1.913 3.867 3.786l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zm2.099 12.476c1.505-.868 2.62-2.314 3.033-4.04l-1.264-.303c-.327 1.368-1.213 2.521-2.418 3.217l.649 1.126zM10.482 3.636c-1.988.457-3.62 1.799-4.442 3.594l1.182.541c.652-1.425 1.954-2.501 3.551-2.868l-.291-1.267z'/%3e%3cpath d='M3.274 16.187l-.632.151.632-.151zm0-4.65l-.632-.151.632.151zm13.451 0l-.632.151.632-.151zm0 4.65l.632.151-.632-.151zm-4.354 4.268l-.146-.633.146.633zm-4.744 0l-.146.634.146-.634zm0-13.186l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm-8.465 8.767c-.342-1.43-.342-2.918 0-4.348l-1.264-.303c-.39 1.629-.39 3.324 0 4.953l1.264-.303zm12.187-4.348c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-3.867 8.133a9.94 9.94 0 0 1-4.452 0l-.291 1.267a11.24 11.24 0 0 0 5.035 0l-.291-1.267zM7.774 7.903a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm0 11.919c-1.925-.443-3.419-1.913-3.867-3.786l-1.264.303c.565 2.363 2.445 4.199 4.84 4.75l.291-1.267zm4.744 1.267c2.395-.551 4.275-2.387 4.84-4.75l-1.264-.303c-.448 1.872-1.942 3.343-3.867 3.786l.291 1.267zm-.291-13.186c1.925.443 3.419 1.913 3.867 3.785l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zM7.482 6.636c-2.395.551-4.275 2.387-4.84 4.75l1.264.303c.448-1.872 1.942-3.343 3.867-3.785l-.291-1.267zM12.268 21l.083-2.523c.079-.573.221-.867.433-1.075l-.91-.928c-.499.489-.712 1.104-.811 1.827-.096.702-.095 1.596-.095 2.699h1.3zm4.205-5.409c-1.126 0-2.035-.001-2.748.093-.731.096-1.354.303-1.85.79l.91.928c.214-.21.519-.352 1.11-.43.609-.08 1.416-.082 2.579-.082v-1.3z'/%3e%3c/g%3e%3cpath d='M7 11h3m-3 3h5' stroke='%233e3f58' stroke-width='1.3' stroke-linecap='round'/%3e%3c/svg%3e"}):p(g?"copied":"copy")))))},wo=({trackingCategory:e,className:t,style:a,url:n,avatar:r,text:c,onClose:d})=>{const{data:{env:{isMarryBaby:m}}}=i(N),{t:p}=E(),[u,g]=l(!1);return s((()=>(he(!0),setTimeout((()=>g(!0)),0),()=>he(!1))),[]),o.createElement(b,null,o.createElement(xo,{"data-is-marrybaby":m,className:t,style:a},o.createElement(po,{className:"share-popup",isOpen:u,onClose:d,heading:p("bottomBar.share")},m?o.createElement(Se,{className:"share-mb-text",size:"sm"},p("article.shareOn")):o.createElement("div",{className:"custom-share__header"},r&&o.createElement("div",{className:"custom-share__header-image"},o.createElement("img",{src:r,loading:"lazy"})),o.createElement("div",{className:"custom-share__header-info"},o.createElement(L,{tag:"h4"},c),o.createElement(Se,{className:"desc",size:"md"},n))),u&&o.createElement(yo,{trackingCategory:e,shareUrl:n||("undefined"!=typeof window?window.location.href:""),title:c}))))},xo=pe.div`
|
|
2117
|
+
`;const wo=({className:e,trackingCategory:t="Together",style:a,shareUrl:n,title:c})=>{const{action:{pushNotifications:d},data:{env:{isMarryBaby:m}}}=i(N),{t:p}=E(),u=r(null),[g,v]=l(!1),h=()=>{if(!(null==u?void 0:u.current))return;const e=document.createElement("textarea");e.value=u.current.value,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),u.current.focus(),v(!0),d({title:"",message:p("share.linkCopied"),type:"success"})};s((()=>{h(),navigator.share&&navigator.share({title:c||"Read This Post",url:n}).then((()=>{d({title:"",message:p("share.linkShared"),type:"success"})})).catch(console.error)}),[]);const b=((e,t)=>t?[{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 9.58333V30.4167C35 32.9417 32.9417 35 30.4167 35H25.8333V23.3333H28.85C29.275 23.3333 29.6333 23.0167 29.6833 22.6L29.9917 20.1C30.025 19.8667 29.95 19.625 29.7917 19.45C29.6333 19.2667 29.4083 19.1667 29.1667 19.1667H25.8333V16.25C25.8333 15.3333 26.5833 14.5833 27.5 14.5833H29.1667C29.625 14.5833 30 14.2083 30 13.75V10.9333C30 10.5083 29.6667 10.15 29.2417 10.1083C29.1917 10.1 28.0167 10 26.525 10C22.8583 10 20.8333 12.1833 20.8333 16.1417V19.1667H17.5C17.0417 19.1667 16.6667 19.5417 16.6667 20V22.5C16.6667 22.9583 17.0417 23.3333 17.5 23.3333H20.8333V35H9.58333C7.05833 35 5 32.9417 5 30.4167V9.58333C5 7.05833 7.05833 5 9.58333 5H30.4167C32.9417 5 35 7.05833 35 9.58333Z' fill='url(%23paint0_linear)'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='20' y1='5' x2='20' y2='35' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%234DABF7'/%3e%3cstop offset='1' stop-color='%232668DA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAzTSURBVHgB7Z0JdFTVGce/776ZCQkBElLCksga9kU2FQQRSlGo1AYUKwpuVA91xdZqtVTx1ONyrIpKBesC1AO1WHsiPQcsoIig1oNgEEEMKonsIQkhk2WWd+/X+96YTEK2+2beSJJ5v3Nyst25c9/3v/f7vru8NwAODg4ODg4ODg4ODg4ODvEEgt0sohTwQbb86VJZ+0gQ1Ft+Tzm7WNeOIJZeA/ya0eCGlkspIuYTQC5xvk3TtBz5eynYiH0CLJSGBrEICG9syOC1GZ4BYt0CgAHdgEFrA3GVbPSjhjBgA9ELYPR4PzwCRItUil82GPzrbgV3h3at0Pi1YIhLpQj3QpREJ4DZ62ErgPm9WeaMAv2NW0BzazFwfeeGfCnElGhGQ+S98FYaCRaMf+X54Ft5E7A2ZHyD3oJoa4BMW0REZMaw2POHdAf+yf3AkhPalPFrE/FIiHQEKBs/NQnEOwvbtPENzJFARClWX2hdgN/Qc6rGBwJ6dg5A3y5t2vjV9JZfj4BFrBnGdD10SLX45UNA/88doGkYFwKYSFfUx4orsjgCxBLVkjLNFM/PAYwn4xsIIZTS8WrUBTDyfZCTLEXmjgXq3xU0iDcQb7QSC9QFCC0vKOFiQH+cEV89vxYpnHNlW1lwQWKyasnZI0HPTG3dM91oQE27VLWsupEQz1ctuviKuO39JmhhYqYugDDTrGYZ0BX40O7ggjiGQM1WBhZGACgFloWTpFQOMQjCapXR1EHx7X6sYqsAQzNAHxbn7scqtgpw5QjH/VjFVgEu6QcecLCEbQKgXHgb2gM4OFjCNgHk/q7okeL4f6vYJsDwHkb662AV2wQY1iN+lx6iwTaXkZYMrYLTlURlPjTnKl2S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AhEQ2WLcCml8DrMiFoF5XJTUVcYrbAsP+csnkraw4Pdr86N+iE89uE/GhCIZE3hrjQmhnh+h8Q2iW442RsIKlH6PnodI0Npp1C5NjoLW546MgEsVMCoa4xvY/UFuSywtV1QTrOToKzKeI9SyRwJCqVxhWQ2CLY3W8OEq7abmowzFZBloz2/sowzrEagIoL+oZe0dGAYnY2ENc+Ug3QZeyIGcPsornQ4ODg4ODg4ODg4ODg4ODmfzfz5w/2ZW/n9aAAAAAElFTkSuQmCC",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 30.8333C35 33.135 33.1342 35 30.8333 35H9.16667C6.865 35 5 33.135 5 30.8333V9.16667C5 6.865 6.865 5 9.16667 5H30.8333C33.1342 5 35 6.865 35 9.16667V30.8333Z' fill='%2303A9F4'/%3e%3cpath d='M30 14.2667C29.265 14.5925 28.3342 14.8983 27.5 15C28.3483 14.4967 29.6942 13.4483 30 12.5C29.2075 12.9658 27.7742 13.4633 26.8392 13.6433C26.0925 12.8517 25.0275 12.5 23.8475 12.5C21.5808 12.5 20 14.4208 20 16.6667V18.3333C16.6667 18.3333 13.4167 15.7942 11.3942 13.3333C11.0383 13.9342 10.8383 14.6375 10.8383 15.3808C10.8383 16.8967 12.2308 18.435 13.3333 19.1667C12.6608 19.1458 11.3875 18.6325 10.8333 18.3333C10.8333 18.3467 10.8333 18.3633 10.8333 18.3808C10.8333 20.3533 12.2175 21.6925 14.0933 22.0658C13.7508 22.16 13.3333 22.5 11.7267 22.5C12.2483 24.1125 14.8708 24.965 16.6667 25C15.2617 26.0892 12.7567 26.6667 10.8333 26.6667C10.5008 26.6667 10.3208 26.685 10 26.6475C11.815 27.7975 14.35 28.3333 16.6667 28.3333C24.2142 28.3333 28.3333 22.5683 28.3333 17.1917C28.3333 17.015 28.3275 16.4233 28.3183 16.25C29.125 15.6817 29.4517 15.0867 30 14.2667Z' fill='white'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/svg+xml,%3csvg width='41' height='40' viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35.5 30.8333C35.5 33.135 33.635 35 31.3333 35H9.66667C7.36583 35 5.5 33.135 5.5 30.8333V9.16667C5.5 6.865 7.36583 5 9.66667 5H31.3333C33.635 5 35.5 6.865 35.5 9.16667V30.8333Z' fill='%230078D4'/%3e%3cpath opacity='0.05' d='M25.4993 30.8327V22.4168C25.4993 21.0093 24.8168 20.1685 23.6727 20.1685C22.9935 20.1685 22.4943 20.551 22.1902 21.3052C22.176 21.3585 22.156 21.576 22.1643 22.2335L22.166 30.8327H16.3327V14.9993H22.166V15.8835C23.0177 15.296 24.0618 14.9993 25.281 14.9993C29.0702 14.9993 31.3318 17.5768 31.3318 21.8943L31.3327 30.8327H25.4993ZM9.66602 30.8327V14.9993H12.5468C10.8777 14.9993 9.66602 13.7727 9.66602 12.0818C9.66602 10.3927 10.8977 9.16602 12.5943 9.16602C14.271 9.16602 15.4652 10.3585 15.4993 12.0652C15.4993 13.7685 14.2668 14.9993 12.5702 14.9993H15.4993V30.8327H9.66602Z' fill='black'/%3e%3cpath opacity='0.07' d='M25.9173 30.4173V22.4182C25.9173 20.774 25.0582 19.7532 23.674 19.7532C22.5948 19.7532 22.0615 20.5132 21.8048 21.1507C21.7365 21.3165 21.7457 21.9748 21.749 22.2557L21.7507 30.4173H16.7507V15.4173H21.7507V16.7823C22.4132 16.0965 23.4798 15.4173 25.2823 15.4173C28.8098 15.4173 30.9165 17.839 30.9165 21.8957L30.9173 30.4173H25.9173ZM10.084 30.4173V15.4173H15.084V30.4173H10.084ZM12.5482 14.584C11.1207 14.584 10.084 13.5323 10.084 12.0832C10.084 10.6348 11.1407 9.58398 12.5957 9.58398C14.0323 9.58398 15.0548 10.6082 15.084 12.0748C15.084 13.5323 14.0273 14.584 12.5715 14.584H12.5482Z' fill='black'/%3e%3cpath d='M10.5 15.8333H14.6667V30H10.5V15.8333ZM12.5708 14.1667H12.5475C11.3042 14.1667 10.5 13.24 10.5 12.0825C10.5 10.9 11.3292 10 12.595 10C13.8625 10 14.6433 10.9 14.6667 12.0825C14.6667 13.2392 13.8625 14.1667 12.5708 14.1667ZM30.5 30H26.3333V22.4175C26.3333 20.5858 25.3125 19.3358 23.6733 19.3358C22.4225 19.3358 21.7458 20.1792 21.4175 20.9942C21.2975 21.2858 21.3333 22.0925 21.3333 22.5V30H17.1667V15.8333H21.3333V18.0133C21.9342 17.0833 22.875 15.8333 25.2817 15.8333C28.2633 15.8333 30.4992 17.7083 30.4992 21.895L30.5 30Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='url(%23a)' d='M36.667 19.584c0 8.975-7.458 16.25-16.666 16.25a16.97 16.97 0 0 1-3.987-.47 1.68 1.68 0 0 0-1.15.12l-3.647 1.825a1.417 1.417 0 0 1-2.05-1.267v-3.355c0-.479-.214-.925-.567-1.249-3.245-2.966-5.266-7.179-5.266-11.854 0-8.975 7.458-16.25 16.667-16.25 9.208 0 16.666 7.275 16.666 16.25Z'/%3e%3cpath fill='black' d='M29.16 14.41c-.357 0-.703.118-1 .343l-4.745 3.512a.594.594 0 0 1-.363.125.565.565 0 0 1-.341-.113l-3.31-2.492a3.821 3.821 0 0 0-2.298-.765c-1.313 0-2.52.66-3.23 1.764l-1.009 1.575-3.433 5.58a1.633 1.633 0 0 0-.06 1.678c.299.545.862.883 1.47.883.357 0 .703-.118 1-.342l4.746-3.513a.594.594 0 0 1 .362-.125c.125 0 .243.04.342.114l3.31 2.491a3.819 3.819 0 0 0 2.297.765c1.314 0 2.521-.659 3.23-1.763l1.01-1.576 3.433-5.58a1.633 1.633 0 0 0 .059-1.678 1.682 1.682 0 0 0-1.47-.883Z' opacity='.05'/%3e%3cpath fill='black' d='M29.161 14.826c-.266 0-.525.09-.75.258L23.665 18.6c-.18.136-.39.207-.61.207a.98.98 0 0 1-.591-.197l-3.311-2.492a3.405 3.405 0 0 0-2.048-.68c-1.17 0-2.246.587-2.879 1.572l-1.008 1.575-3.43 5.574c-.247.387-.266.86-.048 1.259.222.405.656.667 1.104.667.266 0 .525-.09.75-.259l4.747-3.515c.18-.136.39-.206.61-.206a.98.98 0 0 1 .592.196l3.31 2.493c.6.446 1.307.68 2.048.68 1.171 0 2.247-.587 2.88-1.572l1.008-1.576 3.429-5.573c.247-.387.267-.86.048-1.26a1.281 1.281 0 0 0-1.104-.666Z' opacity='.07'/%3e%3cpath fill='white' d='m28.663 15.417-4.75 3.516c-.509.384-1.2.384-1.7.009L18.9 16.449a3.004 3.004 0 0 0-4.325.784l-1.008 1.575-3.425 5.566c-.5.784.458 1.675 1.2 1.117l4.75-3.517a1.412 1.412 0 0 1 1.7-.008l3.311 2.492a3.004 3.004 0 0 0 4.325-.783l1.009-1.575 3.425-5.567c.5-.783-.459-1.675-1.2-1.116Z'/%3e%3cdefs%3e%3cradialGradient id='a' cx='0' cy='0' r='1' gradientTransform='translate(9.24 35.816) scale(39.6767)' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%231292FF'/%3e%3cstop offset='.079' stop-color='%232982FF'/%3e%3cstop offset='.23' stop-color='%234E69FF'/%3e%3cstop offset='.351' stop-color='%236559FF'/%3e%3cstop offset='.428' stop-color='%236D53FF'/%3e%3cstop offset='.754' stop-color='%23DF47AA'/%3e%3cstop offset='.946' stop-color='%23FF6257'/%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e",name:"Messenger",href:`https://www.facebook.com/sharer.php?u=${e}`}]:[{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M30.7336 6.21933e-10H2.2536C1.28305 0.00703318 0.499975 0.795821 0.5 1.7664V30.2464C0.507033 31.217 1.29582 32 2.2664 32H17.5944V19.6256H13.4344V14.7808H17.5944V11.216C17.5944 7.0848 20.1192 4.832 23.8056 4.832C25.0498 4.8267 26.2933 4.8908 27.5304 5.024V9.344H24.9896C22.9832 9.344 22.5928 10.304 22.5928 11.696V14.7808H27.38L26.74 19.6256H22.58V32H30.7336C31.7092 32 32.5 31.2092 32.5 30.2336V1.7536C32.493 0.783047 31.7042 -2.54822e-05 30.7336 6.21933e-10Z' fill='%233B5998'/%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAMAAAAKqCSwAAAC/VBMVEUAAAD////3+fwAcrIAgMcAcrH//v7+//8AcbEAf8b9/v37/P0BcbAAfsT9/f36/P38/f4Af8UDcrEBfMD//v/5+/0CcbDz+foAcrAAfcb2+/wFcrABfcP9/f73/P0BfMIAfsMHca/y+Pvr9fgEcq/5+/wBc7Hg8PUFc7H6/f74+/sAc7T1+vvv+PoIc7ACcrAQda/2+vzM4+0Kc68Lcq37/v3m8vfi7/UAd7oAdbYHca39///v9/loqs0QdrAWd68Ae74Ber0Adrj6/fu01OQEf8UifrMKdLEMdK/x+Prt9vjp8/fe7fMFfsMAeLsPc64CcK3I4Ot7s9EBe8AcerD4/f3f7/Xc7PMTe7UUd7AAebwXebEHcq7x+vzt9/rY6/TR5u+51+apzOCDttJ/tNFdn8UTg8MMgcM1irs6i7kmgLQJbqnz+vzB3eqJutQeh8JLlL5Ckb0zhrbh8fbW6fHU5/DF3+ujzOKpzuGmzOGeyN2cxtxlpMdhosdYncPr9vnj8fbL4ey83Oq82eeRv9eFuNR6sc5yrcxVmsIthrgsg7UOcqvl8fa11uan0OWsz+KWwtmOvdZ8stBwqspOl8EJfsFFkr8yir0/jrsZfLUffLIaerEDbqzl9PjP5e/N5O6s0+d7vOGiy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qFOk4DVetGtLgPqs81UHH1Q43VAxUgrkJUx9EG12kNVLHWrnuYARgNquZz2FH1f35Q9aqtYd8fNKyjDa5rarp+D4vOeJNihWEVWnUcdDaD6lb/h0VzNMyqhQqCiiF1uv9z+FHNB5srR9VgD9AIUK/d/7x4S01WCpU060TgqwZF/VvrcfHoKE1WasYaoILUGrAa0FmvaXKhOl5t8MOboGcNMysqBDANZddbp3W93QK978UW5uRQpUGj1a1rWi+MoMTRfg3HW3C8ArAOv7veuvX3tdP3AYlH4stNjJzV8hFNoUb8ehtLo3+3VR/pSH5plJG+iks80l9wZnSwJOggsBxjiQUUKC2toV9xiOvi/A/lszrbhFX1MAAAAABJRU5ErkJggg==",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3crect width='32' height='32' x='.5' fill='%231FA1F3' rx='4'/%3e%3cpath fill='white' fill-rule='evenodd' d='m16.23 13.235.04.634-.673-.077c-2.455-.298-4.6-1.308-6.42-3.004l-.89-.842-.23.622c-.486 1.385-.175 2.848.836 3.832.54.544.418.621-.512.298-.324-.104-.607-.181-.634-.143-.095.091.229 1.27.485 1.735.35.648 1.066 1.282 1.848 1.657l.66.298-.781.013c-.756 0-.783.013-.702.285.27.841 1.335 1.735 2.523 2.123l.836.272-.729.414a7.893 7.893 0 0 1-3.614.958c-.607.013-1.106.065-1.106.104 0 .13 1.645.854 2.603 1.14 2.873.84 6.285.478 8.848-.959 1.82-1.023 3.641-3.055 4.491-5.023.459-1.049.917-2.965.917-3.884 0-.596.04-.673.796-1.385.445-.415.863-.868.944-.997.135-.246.122-.246-.566-.026-1.147.388-1.309.337-.742-.246.418-.414.917-1.165.917-1.385 0-.04-.202.026-.432.142-.242.13-.782.324-1.187.44l-.728.22-.66-.427c-.365-.233-.877-.492-1.147-.57-.688-.18-1.74-.155-2.36.052-1.687.583-2.752 2.085-2.63 3.729Z' clip-rule='evenodd'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAACqCAMAAADlak+OAAAC+lBMVEUAAAAqtkD3+fz5+fn////8/P39/v4ptT8psj5CxFIqtD8+wlBMy1opsD4tuEKQ1537/Pv9/f76+/opsz9DxVQvukRKyVlGx1ZPzF1Tz2BX0WNJyFgrt0FSzl9FxlU4vkpQzV45v0wxu0X3+fg8wU46wE1Vz2E2vUkzu0dOy1worj1AwlFW0GL2+PcntD01u0j8/v1IyFc9wU9ExlQ7v035+vkvt0MttkIlszz1+PUsskEorDz3/PhFv1cnqTv09/Tt9e/5/PkrsEDy9/Po8+ovsUP5+v3r9O0yuEVZ0GQmpjrz+fTr9+zw9fFRyV7k9OZNyFswtUXc8t/G6cz2+/ft+O4ztEf2+vY2tEots0L0+/Xv9/He7+FAwFHi8+Wr4LR50IZYzmMroT7R7dXv+fFTy2FFwlU7vE3h8OTZ7tyi2aqP3JeC14xIxFg+vlD6/fry+vPm8ujd8eTZ8tvA6cV+0opczmdMvl1LuFwzskcrrD/o9urJ7M5izm9dxm9cwWxTxWLV8NnN7tG96MK75MG557+m3a+O1Zl31IE8tU/m9ujf9OLT6tav4LeK2JNtzXpGvFk7uE4ksjsmozrV7dnO6tLH58zC58jA4MWG1pB7zIhoynZf0WpZymcqqD7E68mt5LOi4amc1qWc36SU2J5tx3tOxl1LwltDvVQ/uFI5skw2uEoxq0QmnznR79XL6dDM5NCx5biw3beX1qCI0ZR2yoRbx2pbvGo5o0k0uEfb7N235L2137u05rqi0amW3p6S1Z1914d2wIJt0XhqwXdYxWdQv2JFuFdDtVUwoUIrpT7W6tqo1q+Aw4tlxnVhw3BezmpVwGZVvWVRuWI/pk84p0rF4cmo466e3aee2aeY26GQ0ZqJzJOE0I+Ay4x0zoFjyHFkt3FOw18mnDix2bes2bSFyJBz1X1vyX1l0nBds2pBrlI4rUq63cCi3at7wIZzxoBx0X1p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App",href:`https://wa.me/?text=${e}`},{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='0.5' width='32' height='32' rx='4' fill='%230077B5'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`}])(n||"",m);return o.createElement(yo,{"data-is-marrybaby":m,className:e,style:a},o.createElement("div",{className:"share__social"},b.map(((e,a)=>o.createElement(fo,{key:a,"data-event-category":t,"data-event-action":`Social Share - ${e.name}`,"data-event-label":n,href:e.href,target:"_blank",rel:"noreferrer"},o.createElement(we,{alt:`share to ${e}`,src:e.icon}),o.createElement(Le,{className:"__label",size:"label2",type:"regular"},e.name))))),o.createElement("div",{className:"share__copy-link"},o.createElement(Le,{className:"__label",color:k.colors.gray500,size:"p4",type:"regular"},p("orCopyLink")),o.createElement("div",{className:"__input-group"},o.createElement("input",{ref:u,type:"text",value:n,readOnly:!0,onFocus:e=>e.target.select()}),o.createElement("button",{className:"__copy",onClick:()=>h()},m?o.createElement(we,{alt:"copy share link",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' xmlns:v='https://vecta.io/nano'%3e%3cg fill='%233e3f58'%3e%3cpath d='M19.726 8.537l-.632.151.632-.151zm0 4.65l-.632-.151.632.151zm-9.097-8.918l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm1.303 11.983a.65.65 0 1 0 .649 1.126l-.649-1.126zM6.041 7.23a.65.65 0 0 0 1.182.541L6.041 7.23zm13.053 1.459c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-8.32-3.786a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm4.452 0c1.925.443 3.419 1.913 3.867 3.786l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zm2.099 12.476c1.505-.868 2.62-2.314 3.033-4.04l-1.264-.303c-.327 1.368-1.213 2.521-2.418 3.217l.649 1.126zM10.482 3.636c-1.988.457-3.62 1.799-4.442 3.594l1.182.541c.652-1.425 1.954-2.501 3.551-2.868l-.291-1.267z'/%3e%3cpath d='M3.274 16.187l-.632.151.632-.151zm0-4.65l-.632-.151.632.151zm13.451 0l-.632.151.632-.151zm0 4.65l.632.151-.632-.151zm-4.354 4.268l-.146-.633.146.633zm-4.744 0l-.146.634.146-.634zm0-13.186l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm-8.465 8.767c-.342-1.43-.342-2.918 0-4.348l-1.264-.303c-.39 1.629-.39 3.324 0 4.953l1.264-.303zm12.187-4.348c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-3.867 8.133a9.94 9.94 0 0 1-4.452 0l-.291 1.267a11.24 11.24 0 0 0 5.035 0l-.291-1.267zM7.774 7.903a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm0 11.919c-1.925-.443-3.419-1.913-3.867-3.786l-1.264.303c.565 2.363 2.445 4.199 4.84 4.75l.291-1.267zm4.744 1.267c2.395-.551 4.275-2.387 4.84-4.75l-1.264-.303c-.448 1.872-1.942 3.343-3.867 3.786l.291 1.267zm-.291-13.186c1.925.443 3.419 1.913 3.867 3.785l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zM7.482 6.636c-2.395.551-4.275 2.387-4.84 4.75l1.264.303c.448-1.872 1.942-3.343 3.867-3.785l-.291-1.267zM12.268 21l.083-2.523c.079-.573.221-.867.433-1.075l-.91-.928c-.499.489-.712 1.104-.811 1.827-.096.702-.095 1.596-.095 2.699h1.3zm4.205-5.409c-1.126 0-2.035-.001-2.748.093-.731.096-1.354.303-1.85.79l.91.928c.214-.21.519-.352 1.11-.43.609-.08 1.416-.082 2.579-.082v-1.3z'/%3e%3c/g%3e%3cpath d='M7 11h3m-3 3h5' stroke='%233e3f58' stroke-width='1.3' stroke-linecap='round'/%3e%3c/svg%3e"}):p(g?"copied":"copy")))))},xo=({trackingCategory:e,className:t,style:a,url:n,avatar:r,text:c,onClose:d})=>{const{data:{env:{isMarryBaby:m}}}=i(N),{t:p}=E(),[u,g]=l(!1);return s((()=>(be(!0),setTimeout((()=>g(!0)),0),()=>be(!1))),[]),o.createElement(b,null,o.createElement(Eo,{"data-is-marrybaby":m,className:t,style:a},o.createElement(uo,{className:"share-popup",isOpen:u,onClose:d,heading:p("bottomBar.share")},m?o.createElement(Le,{className:"share-mb-text",size:"sm"},p("article.shareOn")):o.createElement("div",{className:"custom-share__header"},r&&o.createElement("div",{className:"custom-share__header-image"},o.createElement("img",{src:r,loading:"lazy"})),o.createElement("div",{className:"custom-share__header-info"},o.createElement(L,{tag:"h4"},c),o.createElement(Le,{className:"desc",size:"md"},n))),u&&o.createElement(wo,{trackingCategory:e,shareUrl:n||("undefined"!=typeof window?window.location.href:""),title:c}))))},Eo=ue.div`
|
|
2118
2118
|
.share-popup {
|
|
2119
2119
|
> div:first-child {
|
|
2120
2120
|
height: unset;
|
|
@@ -2173,7 +2173,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2173
2173
|
overflow: hidden;
|
|
2174
2174
|
border-radius: 1rem;
|
|
2175
2175
|
&[data-open='true'] {
|
|
2176
|
-
${
|
|
2176
|
+
${he.mbDown} {
|
|
2177
2177
|
max-width: unset;
|
|
2178
2178
|
width: 100%;
|
|
2179
2179
|
top: 100%;
|
|
@@ -2201,7 +2201,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2201
2201
|
}
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
|
-
`,
|
|
2204
|
+
`,Co=ue.div`
|
|
2205
2205
|
padding: 0 8px;
|
|
2206
2206
|
margin-top: 18px;
|
|
2207
2207
|
|
|
@@ -2232,7 +2232,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2232
2232
|
&[data-is-marrybaby='true'] {
|
|
2233
2233
|
padding: 0 1rem 1rem;
|
|
2234
2234
|
}
|
|
2235
|
-
`;var
|
|
2235
|
+
`;var ko="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 5V8' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11H8.00708' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const No=({className:t,style:a,reason:n,reasonText:r,onClose:s,postId:c})=>{const{data:{locale:d,env:{isMarryBaby:m}},action:{pushNotifications:p}}=i(N),{t:u}=E(),[g,v]=l(!1);return o.createElement(Co,{"data-is-marrybaby":m,className:t,style:a},o.createElement("ul",{className:"report-list"},o.createElement("li",{className:"report-item"},o.createElement("img",{src:ko,loading:"lazy"}),o.createElement(Le,{className:"__label",color:k.colors.gray800,size:"p4"},r))),o.createElement(Fe,{theme:m?"marryBaby":"helloSites",className:"report-submit",size:"lg",color:"primary",isLoading:g,onClick:()=>e(void 0,void 0,void 0,(function*(){if(c&&!g){v(!0);try{const e=yield(({id:e,reason:t,locale:a})=>{const o=new FormData;return o.append("reason",t),G(P(I.POST.REPORT,{_locale:a,id:e}),"POST",{data:o})})({id:c,reason:n,locale:d});1===(null==e?void 0:e.status)&&(p({message:"Post reported",type:"success"}),s&&s())}catch(e){}v(!1)}}))},u("submit")))},Ao=ue.div`
|
|
2236
2236
|
padding: 0.5rem 1rem 1rem;
|
|
2237
2237
|
line-height: 1.5;
|
|
2238
2238
|
word-break: break-word;
|
|
@@ -2289,26 +2289,26 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
2291
|
}
|
|
2292
|
-
`;var
|
|
2292
|
+
`;var To=p((e=>({root:{mention:{color:e.fn.primaryColor()},a:{"&,&:visited,&:focus":{color:e.fn.primaryColor()}},".create-post-link":{display:"inline",color:e.fn.primaryColor(),cursor:"pointer"}}})));const zo=e=>{var{trackingCategory:a,url:n,className:d,style:m,replyingTo:p,mentionedUser:u,description:g,disableShortenContent:v,mentions:h=[],maxChars:b=1e3,hideShowAllBtn:y,styles:w,onClickCreatePostLink:x}=e,C=t(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn","styles","onClickCreatePostLink"]);const{classes:k,theme:A}=To(void 0,{name:"PostContent",styles:w}),[T,z]=l(!1),{t:P}=E(),{authActionWrapper:I}=Xe(),[S,L]=l(!1),M=Sa(Ia(g||"","display"),h),{action:{sanitizeFunction:j}}=i(N),B=c((()=>{const e=j(M||"");if(v||T)return{showContent:e,hasSeeMore:!1};const t=e.slice(0,b),a=b-27*((t.match(/<\/div>/g)||[]).length-1),o=(t||"").slice(0,a<40?40:a),n=j(o.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),i=n.length<e.length-10;return{showContent:i?n:e,hasSeeMore:i}}),[v,T,M]),F=(null==u?void 0:u.name)||p,O="expert"===(null==u?void 0:u.role)&&!!(null==u?void 0:u.partnerId),R=r(null),V=e=>{e.preventDefault(),null==x||x()};return s((()=>{var e;return null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.addEventListener("click",V,{passive:!0})})),()=>{var e;null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.removeEventListener("click",V,!1)}))}}),[v,T,M]),o.createElement(o.Fragment,null,O&&o.createElement(ta,{isOpen:S,onClose:()=>L(!1),expertId:String(null==u?void 0:u.partnerId)}),o.createElement(Ao,Object.assign({ref:R,className:`${k.root} ${d} no-replace-click`,style:m,mentionColor:A.fn.primaryColor()},C),F&&o.createElement(f,{onClick:()=>O&&L(!0),className:"post-content-replying"},"@",F),(null==g?void 0:g.startsWith("[mention+id="))&&o.createElement("span",{className:"post-content-replying tag-only",style:{color:A.fn.primaryColor()}},"@"),o.createElement("span",{dangerouslySetInnerHTML:{__html:B.showContent},className:"post-content "+(B.hasSeeMore?"has-see-more":"")}),B.hasSeeMore&&!T&&o.createElement("span",null,"... ",!y&&o.createElement(f,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),I((()=>z(!0)))},className:"see-more-text"},a?{"data-event-category":a,"data-event-action":"See More Post Click","data-event-label":n}:{}),P("post.seeMore")))))},Po=ue.div`
|
|
2293
2293
|
padding: 14px 16px 14px 17px;
|
|
2294
2294
|
background: ${e=>e.bgColor};
|
|
2295
2295
|
border-left: 3px solid ${e=>e.highlight};
|
|
2296
2296
|
|
|
2297
|
-
${
|
|
2297
|
+
${he.mbUp} {
|
|
2298
2298
|
padding: 12px 12px 12px 17px;
|
|
2299
2299
|
}
|
|
2300
|
-
`,
|
|
2300
|
+
`,Io=ue.div`
|
|
2301
2301
|
display: flex;
|
|
2302
|
-
`,
|
|
2302
|
+
`,So=ue.div`
|
|
2303
2303
|
font-size: 12px;
|
|
2304
2304
|
line-height: 18px;
|
|
2305
2305
|
|
|
2306
2306
|
&[data-has-icon='true'] {
|
|
2307
2307
|
margin-left: 10px;
|
|
2308
2308
|
}
|
|
2309
|
-
`,
|
|
2309
|
+
`,Lo=ue.div`
|
|
2310
2310
|
flex-shrink: 0;
|
|
2311
|
-
`,
|
|
2311
|
+
`,Mo=ue.div`
|
|
2312
2312
|
display: grid;
|
|
2313
2313
|
grid-gap: 3px;
|
|
2314
2314
|
grid-template-columns: 1fr 1fr;
|
|
@@ -2421,7 +2421,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
2424
|
-
`,
|
|
2424
|
+
`,jo=ue.div`
|
|
2425
2425
|
position: fixed;
|
|
2426
2426
|
z-index: 999;
|
|
2427
2427
|
top: 0;
|
|
@@ -2464,9 +2464,9 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2464
2464
|
object-fit: cover;
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
|
-
`,
|
|
2467
|
+
`,Bo=ue((e=>{var{icon:a,bgColor:n=k.colors.yellow50,highlightColor:i=k.colors.yellow800,message:l}=e,r=t(e,["icon","bgColor","highlightColor","message"]);return o.createElement(Po,Object.assign({bgColor:n,highlight:i},r),o.createElement(Io,null,a&&o.createElement(Lo,null,a),o.createElement(So,{"data-has-icon":Boolean(a)},l)))}))`
|
|
2468
2468
|
margin-bottom: 16px;
|
|
2469
|
-
`;const
|
|
2469
|
+
`;const Fo=({className:e,style:t,authorName:a,images:n,onClose:i,onOpenSingleView:r,alt:c})=>{const{t:d}=E(),[m,p]=l(!1);return s((()=>{setTimeout((()=>{p(!0)}),0)}),[]),o.createElement(b,null,o.createElement(jo,{className:e,style:t,"data-open":m},o.createElement("div",{className:"top-bar"},o.createElement("img",{className:"icon-arrow-left",src:"data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.0508 18.0607L4.00078 12.0367L10.0508 6.01172' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4.00195 12.0352L19.002 12.0352' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",onClick:i,alt:"go back",loading:"lazy"}),o.createElement(Le,{size:"p2",type:"bold",style:{textAlign:"center"}},d("previewPhotos.title",{name:a}))),o.createElement("div",{className:"container"},n.map(((e,t)=>o.createElement("img",{className:"img-preview",key:t,src:e,onClick:()=>null==r?void 0:r(t),alt:c,loading:"lazy"}))))),",")},Oo=ue.div`
|
|
2470
2470
|
position: fixed;
|
|
2471
2471
|
z-index: 999;
|
|
2472
2472
|
top: 0;
|
|
@@ -2483,7 +2483,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2483
2483
|
opacity: 1;
|
|
2484
2484
|
pointer-events: auto;
|
|
2485
2485
|
}
|
|
2486
|
-
`,
|
|
2486
|
+
`,Ro=ue.div`
|
|
2487
2487
|
padding: 1rem;
|
|
2488
2488
|
background: white;
|
|
2489
2489
|
.icon-close {
|
|
@@ -2491,7 +2491,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2491
2491
|
height: 26px;
|
|
2492
2492
|
cursor: pointer;
|
|
2493
2493
|
}
|
|
2494
|
-
`,
|
|
2494
|
+
`,Vo=ue.div`
|
|
2495
2495
|
position: relative;
|
|
2496
2496
|
flex: 1;
|
|
2497
2497
|
overflow: hidden;
|
|
@@ -2501,7 +2501,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2501
2501
|
object-fit: contain;
|
|
2502
2502
|
object-position: center;
|
|
2503
2503
|
}
|
|
2504
|
-
`,
|
|
2504
|
+
`,Do=ue.div`
|
|
2505
2505
|
--inner-padding: max(16px, 20%);
|
|
2506
2506
|
height: 100%;
|
|
2507
2507
|
position: absolute;
|
|
@@ -2521,7 +2521,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2521
2521
|
&[data-disabled='true'] {
|
|
2522
2522
|
cursor: not-allowed;
|
|
2523
2523
|
}
|
|
2524
|
-
`,
|
|
2524
|
+
`,Uo=ue.div`
|
|
2525
2525
|
border-radius: 50%;
|
|
2526
2526
|
background: rgba(0, 0, 0, 0.3);
|
|
2527
2527
|
display: flex;
|
|
@@ -2535,14 +2535,14 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2535
2535
|
opacity: 0.5;
|
|
2536
2536
|
}
|
|
2537
2537
|
}
|
|
2538
|
-
${
|
|
2538
|
+
${he.tdUp} {
|
|
2539
2539
|
padding: 8px;
|
|
2540
2540
|
> img {
|
|
2541
2541
|
width: 30px;
|
|
2542
2542
|
height: 30px;
|
|
2543
2543
|
}
|
|
2544
2544
|
}
|
|
2545
|
-
`;var
|
|
2545
|
+
`;var Wo="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12.8125L10 8.8125L6 4.8125' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Ho=({initialViewIndex:e,images:t,onClose:a,alt:n})=>{const[i,r]=l(e),[c,d]=l(!1);s((()=>{setTimeout((()=>{d(!0)}),0)}),[]);const m=null==t?void 0:t[i],p=0===i,u=!(null==t?void 0:t.length)||i===(null==t?void 0:t.length)-1;return o.createElement(b,null,o.createElement(Oo,{"data-open":c&&!!m},o.createElement(Ro,null,o.createElement("img",{src:po,className:"icon-close",onClick:a,alt:"close",loading:"lazy"})),m&&i>=0&&o.createElement(o.Fragment,null,o.createElement(Vo,null,o.createElement("img",{className:"img-preview",src:m,alt:n,loading:"lazy"}),o.createElement(Do,{"data-disabled":p,onClick:()=>!p&&r(i-1)},o.createElement(Uo,null,o.createElement("img",{src:Wo,style:{transform:"rotate(180deg)"},alt:"left arrow","data-disabled":p,loading:"lazy"}))),o.createElement(Do,{"data-right":!0,"data-disabled":u,onClick:()=>!u&&r(i+1)},o.createElement(Uo,null,o.createElement("img",{src:Wo,alt:"right arrow","data-disabled":u,loading:"lazy"})))))))},Zo="hhgcomp-sensitivemask-inner",qo=J(ue.div`
|
|
2546
2546
|
position: absolute;
|
|
2547
2547
|
top: 0;
|
|
2548
2548
|
right: 0;
|
|
@@ -2554,7 +2554,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2554
2554
|
align-items: center;
|
|
2555
2555
|
justify-content: center;
|
|
2556
2556
|
cursor: pointer;
|
|
2557
|
-
`,
|
|
2557
|
+
`,Zo),_o=ue.div``,Go=ue.div`
|
|
2558
2558
|
position: absolute;
|
|
2559
2559
|
bottom: 0;
|
|
2560
2560
|
left: 0;
|
|
@@ -2588,7 +2588,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2588
2588
|
background: transparent;
|
|
2589
2589
|
cursor: zoom-in;
|
|
2590
2590
|
|
|
2591
|
-
.${
|
|
2591
|
+
.${Zo} {
|
|
2592
2592
|
top: auto;
|
|
2593
2593
|
right: auto;
|
|
2594
2594
|
left: 8px;
|
|
@@ -2598,7 +2598,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2598
2598
|
justify-content: flex-start;
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
|
-
`,
|
|
2601
|
+
`,Qo=({image:e,showIcon:t=!0})=>{const[a,n]=l(!0);return o.createElement(Go,{"data-is-blurred":a,onClick:e=>a&&e.stopPropagation()},o.createElement("img",{loading:"lazy",className:"img-preview",src:e}),o.createElement(qo,{onClick:e=>{e.stopPropagation(),n(!a)}},t&&o.createElement(_o,null,a?o.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.71 2.5399C1.32 2.1499 1.32 1.5199 1.71 1.1299C2.1 0.739902 2.74 0.739902 3.13 1.1299L19.44 17.4599C19.83 17.8499 19.83 18.4799 19.44 18.8699C19.05 19.2599 18.42 19.2599 18.03 18.8699L15.31 16.1499C13.97 16.6699 12.52 16.9699 11 16.9699C6 16.9699 1.73 13.8599 0 9.4699C0.77 7.4999 2.06 5.7999 3.68 4.5099L1.71 2.5399ZM16 9.4699C16 6.7099 13.76 4.4699 11 4.4699C10.49 4.4699 10 4.5699 9.53 4.7099L7.36 2.5399C8.51 2.1699 9.73 1.9699 11 1.9699C16 1.9699 20.27 5.0799 22 9.4599C21.31 11.2199 20.21 12.7599 18.82 13.9899L15.76 10.9299C15.9 10.4699 16 9.9799 16 9.4699ZM11 14.4699C8.24 14.4699 6 12.2299 6 9.4699C6 8.6999 6.18 7.9699 6.49 7.3299L8.06 8.8999C8.03 9.0799 8 9.2699 8 9.4699C8 11.1299 9.34 12.4699 11 12.4699C11.2 12.4699 11.38 12.4399 11.57 12.3999L13.14 13.9699C12.49 14.2899 11.77 14.4699 11 14.4699ZM13.97 9.1399C13.82 7.7399 12.72 6.6499 11.33 6.4999L13.97 9.1399Z",fill:"white"})):o.createElement("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M11.9999 0C5.14188 0 1.88558 5.87864 1.09558 7.55664C0.963582 7.83664 0.963582 8.16141 1.09558 8.44141C1.88558 10.1204 5.14188 16 11.9999 16C18.8339 16 22.0924 10.1629 22.8964 8.46094C23.0344 8.16794 23.0344 7.83206 22.8964 7.53906C22.0924 5.83706 18.8339 0 11.9999 0ZM11.9999 3C14.7609 3 16.9999 5.239 16.9999 8C16.9999 10.761 14.7609 13 11.9999 13C9.23888 13 6.99988 10.761 6.99988 8C6.99988 5.239 9.23888 3 11.9999 3ZM11.9999 5C11.2042 5 10.4412 5.31607 9.87856 5.87868C9.31595 6.44129 8.99988 7.20435 8.99988 8C8.99988 8.79565 9.31595 9.55871 9.87856 10.1213C10.4412 10.6839 11.2042 11 11.9999 11C12.7955 11 13.5586 10.6839 14.1212 10.1213C14.6838 9.55871 14.9999 8.79565 14.9999 8C14.9999 7.20435 14.6838 6.44129 14.1212 5.87868C13.5586 5.31607 12.7955 5 11.9999 5Z",fill:"#2D87F3"})))))},Xo=({className:e,images:t=[],style:a,authorName:n,isSensitive:c=!1,alt:d})=>{const{data:{env:{isMarryBaby:m}}}=i(N),{t:p}=E(),u="+ "+((t.length||0)-4),[g,v]=l(!1),[h,b]=l(-1),f=t.length>5,y=r(!1);return s((()=>()=>{y.current&&be(!1)}),[]),s((()=>{g||h>=0?(be(!0),y.current=!0):(be(!1),y.current=!1)}),[g,h]),o.createElement(o.Fragment,null,c&&o.createElement(Bo,{message:p("sensitiveMask.contentWarningDescription"),icon:o.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00002 0.666748C4.40002 0.666748 0.666687 4.40008 0.666687 9.00008C0.666687 13.6001 4.40002 17.3334 9.00002 17.3334C13.6 17.3334 17.3334 13.6001 17.3334 9.00008C17.3334 4.40008 13.6 0.666748 9.00002 0.666748ZM9.00002 9.83341C8.54169 9.83341 8.16669 9.45841 8.16669 9.00008V5.66675C8.16669 5.20842 8.54169 4.83342 9.00002 4.83342C9.45835 4.83342 9.83335 5.20842 9.83335 5.66675V9.00008C9.83335 9.45841 9.45835 9.83341 9.00002 9.83341ZM8.16669 11.5001V13.1667H9.83335V11.5001H8.16669Z",fill:"#FE921D"}))}),o.createElement(Mo,{className:e,style:a,"data-image-count":f?5:t.length||0,"data-is-marrybaby":m,"data-cursor-pointer":!c},null==t?void 0:t.slice(0,5).map(((e,t)=>{const a=4===t&&f;return o.createElement("div",{className:"img-wrapper",key:t,onClick:()=>{t>=4&&f?v(!0):b(t)}},c&&o.createElement(Qo,{image:e,showIcon:!a}),!m&&o.createElement("img",{loading:"lazy",className:"img-preview-blur",src:e,alt:d}),o.createElement("img",{loading:"lazy",className:"img-preview",src:e,alt:d}),a&&o.createElement("div",{className:"img-more-overlay"},o.createElement(L,{tag:"h1",as:"h2",color:"white"},u)))}))),g&&o.createElement(Fo,{authorName:n||"",images:t,onClose:()=>v(!1),onOpenSingleView:b,alt:d}),h>=0&&o.createElement(Ho,{images:t,initialViewIndex:h,onClose:()=>b(-1),alt:d}))},Ko=ue.div`
|
|
2602
2602
|
.link-info-container {
|
|
2603
2603
|
padding: 0.5rem 1rem;
|
|
2604
2604
|
background: ${e=>e.color||"#f4faff"};
|
|
@@ -2634,7 +2634,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2634
2634
|
overflow: hidden;
|
|
2635
2635
|
border-radius: 1rem;
|
|
2636
2636
|
}
|
|
2637
|
-
`,Ko=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(N),[g,v]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return v(null);v((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),z(P(I.FETCH_PREVIEW,{_locale:u}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;v({url:t,image:(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.image)||(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.logo)})})).catch((()=>{v(null)}))}}))}),[t,a]);const h=a||(null==g?void 0:g.image),b=(null==g?void 0:g.url)||t,f=c((()=>(e=>{var t;return e.includes("youtu")&&(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""})(b)),[b]),y=c((()=>b.includes("facebook.com")||b.includes("fb.watch")),[b]),w=r(0),x=r(0),[E,C]=l(!1);s((()=>{const e=()=>{var e;const t=null===(e=k.current)||void 0===e?void 0:e.getBoundingClientRect();let a=!1;t&&(!w.current||Math.abs((w.current-t.width)/(null==t?void 0:t.width))>.2)&&(w.current=Math.floor(t.width),a=!0),t&&(!x.current||Math.abs((x.current-t.height)/(null==t?void 0:t.height))>.2)&&(x.current=Math.floor(t.height),a=!0),a&&C((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const k=r(null),A=m();return o.createElement(Xo,{className:`${n} no-replace-click`,style:d,ref:k,color:A.colors[A.primaryColor][0]},a||!f&&!y?o.createElement("a",{href:b,target:"_blank",rel:"noreferrer"},o.createElement("div",{className:"link-image-wrapper "+((null==g?void 0:g.isFetching)?"fetching":"")},(null==g?void 0:g.isFetching)?o.createElement($e,{className:"loading-spinner"}):o.createElement(ye,{className:"link-image",src:h||S,backupSrc:S,alt:b}))):o.createElement("div",{className:"link-image-wrapper"},f?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${f}?&autoplay=${p?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"},loading:"lazy"}):y?o.createElement("iframe",{key:String(E),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(b)}&autoplay=${p?1:0}&show_text=false&t=0&width=${w.current}&height=${x.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:x.current,width:w.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null))};var $o="PD6nRZX";const Yo=({className:e,size:t="md"})=>{const{t:a}=E();return o.createElement("div",{className:`${$o} ${e}`},o.createElement(Be,{size:t,color:"transparent",isLoading:!0},a("loading")))},Jo=n({});var en="l5fL1xL",tn="L-aGKo7";const an=({children:e,className:t=""})=>o.createElement("div",{className:`${en} ${t}`},e),on=({children:e,className:t=""})=>o.createElement("div",{className:`${tn} ${t}`},e);var nn="eaR8ATZ",ln="xM-7K0a",rn="DZmf3s7";const sn=({src:e,defaultSrc:t=se.getAssetPath("logo/logomark.png"),ratio:a=1,size:n=80,radius:i=8,alt:l,className:r=""})=>o.createElement("div",{className:r},o.createElement("div",{className:rn,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(ye,{src:e,backupSrc:t,alt:l}))),cn=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${nn} ${i}`},o.createElement(sn,{src:a}),o.createElement("div",{className:ln},n||o.createElement("div",null,e&&o.createElement(an,null,e),t&&o.createElement(on,null,t))));cn.CategoryText=an,cn.Title=on;const dn=({featureImage:e,postTitle:t,author:a,categories:n,isReview:i,className:l=""})=>{var r;const s=i?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return o.createElement(cn,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(cn.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(cn.Title,null,t),o.createElement(Ot,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(Ot.SubDivider,null),"Dec 12, 2022")})))};var mn={container:"SFSgnOz",header:"Tf3aoVa",heading:"TOt4QXl",headingIcon:"_5XYN1KT",accBodyGroup:"yE-tZRj",accBodyGroupItem:"LXiGuGT",accBodyGroupDesc:"r4rx-6v",subTitle:"XrHh8-C",subIcon:"c5-Yecd",group:"UBj6nWr",groupBody:"_2vptVBd",articleCardLink:"ZPDAwiR",relatedList:"_6wJn-NR",socialItem:"_21XDdFv",mbChevronWrapper:"LSyr3Zo"};const pn=({className:e=""})=>{var t,a,n,l,r;const{t:s}=E(),{info:c,isMarryBaby:d,currentPageUrl:m}=i(Jo),p=null==c?void 0:c.data,g=[{type:"linkedin",icon:se.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:se.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:se.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:se.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:se.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],v=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:se.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:o.createElement("div",{className:mn.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:mn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:mn.accBodyGroupTitle},e.title),o.createElement("div",{className:mn.accBodyGroupDesc},o.createElement("p",null,e.organization),o.createElement("p",null,e.duration))))))}]:[],...((null==c?void 0:c.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:se.getAssetPath(d?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:o.createElement("div",{className:mn.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:mn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:mn.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:mn.accBodyGroupDesc},o.createElement("p",null,e.study),o.createElement("p",null,e.completedYear))))))}]:[],...((null==c?void 0:c.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:se.getAssetPath(d?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:o.createElement("div",{className:mn.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:mn.accBodyGroupTitle,key:t},e.title))))}]:[]],h=(null==c?void 0:c.relatedPosts)||[],b=g.filter((e=>e.url));return o.createElement("div",{className:`${mn.container} ${e}`,"data-is-marrybaby":d},v.length>0&&o.createElement(y,{defaultValue:v[0].key,chevron:d?o.createElement("div",{className:mn.mbChevronWrapper},o.createElement(ee,{size:12,color:k.mbColors.midGray})):o.createElement(ee,{color:k.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},v.map((e=>o.createElement(y.Item,{key:e.key,value:e.key},o.createElement(y.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},o.createElement("div",{className:mn.header},o.createElement("div",{className:mn.headingIcon},o.createElement("img",{src:e.iconSrc,loading:"lazy"})),o.createElement("div",{className:mn.heading},e.heading))),o.createElement(y.Panel,null,e.panel))))),h.length>0&&o.createElement("div",{className:mn.group},o.createElement("div",{className:mn.subTitle},o.createElement("img",{className:mn.subIcon,src:se.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${mn.relatedList}`},null==c?void 0:c.relatedPosts.map((e=>o.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:mn.articleCardLink},o.createElement(dn,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==p?void 0:p.name,avatar:null==p?void 0:p.avatar}}),{isReview:!0}))))))),b.length>0&&o.createElement("div",{className:mn.group},o.createElement("div",{className:mn.subTitle},o.createElement("img",{className:mn.subIcon,src:se.getAssetPath(d?"social-mb.svg":"social.svg"),loading:"lazy"}),s("profilePanel.socialLinks")),o.createElement("div",{className:mn.groupBody},o.createElement(u,null,g.map(((e,t)=>e.url&&o.createElement("div",{className:mn.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m})))))))))};var un={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const gn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=E(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(N),{authActionWrapper:v,authorProps:h,currentPageUrl:b}=i(Jo),f=`${window.location.origin}${g}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${un.container} ${t}`},o.createElement("div",{className:un.header},o.createElement("div",{className:un.question},p("profilePanel.question")," ",o.createElement(te,{className:un.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==v||v((()=>window.location.href=f))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:un.community},null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.name," - ",null==e?void 0:e.createdTime)),o.createElement("div",{className:un.questionCard},o.createElement(pa,Object.assign({className:"card-author"},h,{role:"user",avatarIcon:o.createElement(kt,null),subLine:o.createElement(pa.SubTextRow,null,o.createElement(pa.SubText,null,null===(s=null===(r=null===(l=null==e?void 0:e.expertAnswer)||void 0===l?void 0:l.answer)||void 0===r?void 0:r[0])||void 0===s?void 0:s.createdTime))})),o.createElement(To,{className:"post-content-wrapper",description:(null===(m=null===(d=null===(c=null==e?void 0:e.expertAnswer)||void 0===c?void 0:c.answer)||void 0===d?void 0:d[0])||void 0===m?void 0:m.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),o.createElement($,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":b,size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=f:null==v||v((()=>window.location.href=f))}},p("profilePanel.anserwing.viewFull")))};var vn="MrdoES3",hn="_8fd7YMs",bn="DomiQfw",fn="-b2qnfL";const yn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(Jo);return o.createElement("div",{className:hn},o.createElement("div",{className:bn},o.createElement("img",{src:a||se.getAssetPath(r?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&o.createElement("div",{className:fn},e),t&&o.createElement(Be,{size:"md",theme:l,color:"secondary",onClick:n},t))},wn=({id:t})=>{const{t:a}=E(),{data:{locale:n}}=i(N),{authorProps:r}=i(Jo),[c,d]=l(null),[m,p]=l(!1);return s((()=>{t&&e(void 0,void 0,void 0,(function*(){var e;p(!0);const a=yield z(P(I.USER.LIST_ANSWERS,{_locale:n,id:t}),"GET"),o=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.replies)||[]).map(Ne);d(o),p(!1)}))}),[]),o.createElement("div",{className:vn},m?o.createElement(Yo,null):null!==c&&(c.length>0?c.map((e=>o.createElement(gn,{className:"post-card",key:e.id,post:e}))):o.createElement(yn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},xn=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{d:"M9.99983 9.14326L6.94303 12.2001C6.61183 12.5313 6.07423 12.5313 5.74303 12.2001C5.41183 11.8689 5.41183 11.3313 5.74303 11.0001L9.43423 7.30886C9.74703 6.99606 10.2534 6.99606 10.5654 7.30886L14.2566 11.0001C14.5878 11.3313 14.5878 11.8689 14.2566 12.2001C13.9254 12.5313 13.3878 12.5313 13.0566 12.2001L9.99983 9.14326Z",fill:n}))};xn.defaultProps={size:24,color:k.colors.gray600};var En="toEutn7",Cn="drdisHs";const kn=e=>{var a,n,l,r,{post:s}=e,c=t(e,["post"]);const{data:{env:{togetherBasePath:d}}}=i(N);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},c,{className:`${En} ${(null==c?void 0:c.className)||""}`}),o.createElement(pa,{className:"card-author",avatar:null===(a=null==s?void 0:s.author)||void 0===a?void 0:a.avatar,name:(null===(n=null==s?void 0:s.author)||void 0===n?void 0:n.name)||(null===(l=null==s?void 0:s.author)||void 0===l?void 0:l.username),isAnonymous:Boolean(null==s?void 0:s.isAnonymous),subLine:o.createElement(pa.SubTextRow,null,o.createElement(pa.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(te,{href:`${window.location.origin}${d}/${null===(r=null==s?void 0:s.community)||void 0===r?void 0:r.slug}/${null==s?void 0:s.slug}`,className:Cn,rel:"noreferrer"},null==s?void 0:s.title)))};var Nn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const An=()=>{var t,a;const{t:n}=E(),{data:{locale:r,userInfo:c}}=i(N),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(Jo),[u,g]=l(),[v,h]=l([]),[b,f]=l(!1),w=null==c?void 0:c.id;s((()=>{w&&e(void 0,void 0,void 0,(function*(){var e;f(!0);const t=yield G(P(I.USER.LIST_QUESTION_NEED_REPLY,{_locale:r}),"GET"),a=[],o=Object.create({});((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.communities)||[]).filter((e=>((null==e?void 0:e.question)||[]).length>0)).map((e=>{o[e.id]=e.question.map(Ne),delete e.question,a.push(ze(e))})),h(a),g(o),f(!1)}))}),[]);const x=({id:e,communityId:t})=>{if(e&&t&&u){const a=Object.assign(Object.assign({},u),{[t]:[...((null==u?void 0:u[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),g(a),p(Object.assign(Object.assign({},m),{total_question:o})),null==d||d(o)}};return o.createElement("div",{className:Nn.container},b?o.createElement(Yo,null):(null==m?void 0:m.total_question)>0?v.length>0&&o.createElement(y,{className:Nn.accordion,defaultValue:String((null===(a=v[null===(t=Object.keys(v))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},label:{padding:0},item:{marginBottom:"16px"}}),chevron:o.createElement("div",{className:Nn.chevron},o.createElement(xn,{color:k.colors.gray600,size:20}))},v.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(y.Item,{key:e.id,value:String(e.id)},o.createElement(y.Control,null,o.createElement("div",{className:Nn.header},o.createElement("div",{className:Nn.headingIcon},o.createElement("img",{src:e.thumbnail,loading:"lazy"})),o.createElement("div",{className:Nn.heading},e.name))),o.createElement(y.Panel,null,o.createElement("div",{className:Nn.body},t.map((e=>o.createElement(kn,{className:"question-card",key:e.id,post:e,onSkip:x}))))))}))):o.createElement(yn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:se.getAssetPath("questions.svg")}))};var Tn="GA-zc-O",zn="A18McWD",Pn="IB049vj",In="_8I--vEV";const Sn=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(N),{authActionWrapper:r,authorProps:s}=i(Jo),c=`${window.location.origin}${l}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${Tn} ${t}`},o.createElement("div",{className:Pn},o.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":c,className:In,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(Ot,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(pa.MainText,{className:zn},null==e?void 0:e.title),o.createElement(pa.SubTextRow,null,o.createElement(pa.SubText,null,null==e?void 0:e.createdTime))),o.createElement(To,{className:"post-content-wrapper",description:null==e?void 0:e.description,mentions:null==e?void 0:e.mentions,maxChars:200,"data-testid":"Content of the Post"})))};var Ln="TSMHoEM";const Mn=()=>{const{t:t}=E(),{data:{locale:a}}=i(N),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(Jo),[m,p]=l(null),[u,g]=l(!1);return s((()=>{n&&e(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield z(P(I.USER.LIST_POST,{_locale:a,id:n,isAnonymous:0}),"GET"),o=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(Ne);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Ln},u?o.createElement(Yo,null):null!==m&&(m.length>0?m.map((e=>o.createElement(Sn,{className:"post-card",key:e.id,post:e}))):o.createElement(yn,{message:t("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:c&&t("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var jn="_4Vekw96",Bn="DIJdGcB",Fn="aQSt4-Q";const On=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Rn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var Vn,Dn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(Vn||(Vn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Dn||(Dn={}));const Un=a=>{var n,{authorProps:r,selectedTab:c,authActionWrapper:d,onSkipQuestion:m,onCloseFromPost:p,hideQuestionTab:u,hideAnswerTab:g,showSkipQuestionTag:v,rolesToShowQuestionsTab:h=["expert"],currentPageUrl:b}=a,f=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:y,userInfo:w,env:{isMarryBaby:x}}}=i(N),{t:C}=E(),k=null==r?void 0:r.role,A=null==w?void 0:w.role,T=String(null==r?void 0:r.userId),[S,L]=l(),[M,j]=l(!1),[B,F]=l(),O=(null==w?void 0:w._togetherUserId)===(null==r?void 0:r.userId),R=[...-1!==h.indexOf(k)?[{value:Vn.About,text:C("profilePanel.tabs.highlight"),content:o.createElement(pn,{id:T,info:B}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:b}]:[],{value:Vn.Posts,text:C("profilePanel.tabs.posts"),content:o.createElement(Mn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...u||-1===h.indexOf(A)||(null==w?void 0:w._togetherUserId)!==(null==r?void 0:r.userId)?[]:[{value:Vn.Care,text:`${C("profilePanel.tabs.care")}`,content:o.createElement(An,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:b}],...g||-1===h.indexOf(k)?[]:[{value:Vn.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:o.createElement(wn,{id:T}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:b}]],[V,D]=l(null),[U,W]=l(null),H={value:String(U),dataList:V,onTabChange:e=>W(Number(e))},Z=null==R?void 0:R.filter((e=>null==e?void 0:e.hasCountResult));s((()=>{e(void 0,void 0,void 0,(function*(){var e,t,a,o,n,i,l,r,s,d;j(!0);const m=yield Promise.all([z(P(I.USER.DETAIL,{_locale:y,id:T}),"GET"),...Z.map((e=>z(P(I.USER.COUNT_TABS,{_locale:y,id:T,[e.keyOfCountApi]:1}),"GET")))]),[p]=m,u={data:null==p?void 0:p.data,experiences:((null===(t=null===(e=null==p?void 0:p.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(On),relatedPosts:((null===(a=null==p?void 0:p.data)||void 0===a?void 0:a.related_post)||[]).map((e=>Pe(e.post))),educations:((null===(n=null===(o=null==p?void 0:p.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(Rn),awards:(null===(l=null===(i=null==p?void 0:p.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==p?void 0:p.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};1===(null==p?void 0:p.status)&&F(u);const g=(null==u?void 0:u.relatedPosts)||[],v=Object.keys(u.contact).map((e=>{var t;return""!==(null===(t=null==u?void 0:u.contact)||void 0===t?void 0:t[e])})),h=[...(null==u?void 0:u.experiences)||[],...(null==u?void 0:u.educations)||[],...(null==u?void 0:u.awards)||[]],b=g.length>0||v.length>0||h.length>0,f={},w=Z.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=m[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===n?void 0:n[e.keyOfResult])||0;return i>0?(f[e.keyOfResult]=i,e):-1!==[Vn.Care,Vn.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),x=R.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==w.indexOf(t.value)?t:void 0:t.value===Vn.About?b&&t:t})).filter(Boolean);D(x),W(c||(null===(d=null==x?void 0:x[0])||void 0===d?void 0:d.value)),L(f),j(!1)}))}),[]);const q=null==B?void 0:B.data;return o.createElement(Jo.Provider,{value:{isMarryBaby:x,siteType:x?"marryBaby":"helloSites",authorId:String((null==r?void 0:r.userId)||""),authActionWrapper:d,onSkipQuestion:m,info:B,authorProps:r,onCloseFromPost:p,countValues:S,setCountValues:L,isAuthorLogin:O,showSkipQuestionTag:v,currentPageUrl:b}},o.createElement("div",Object.assign({},f,{className:`${jn} ${(null==f?void 0:f.className)||""}`,"data-is-marrybaby":x}),M?o.createElement(Yo,null):o.createElement(o.Fragment,null,o.createElement(pa,Object.assign({},r,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==r?void 0:r.role)?(null==q?void 0:q.specialty)&&(null==q?void 0:q.organisation)&&o.createElement(pa.SubTextRow,null,(null==q?void 0:q.specialty)&&o.createElement(o.Fragment,null,o.createElement(pa.SubText,null,null==q?void 0:q.specialty),o.createElement(pa.SubDivider,null)),o.createElement(pa.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&o.createElement(pa.SubTextRow,null,o.createElement(pa.SubText,null,C("profilePanel.joined")," ",me(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===k&&o.createElement("div",{className:Bn,dangerouslySetInnerHTML:{__html:null===(n=null==B?void 0:B.data)||void 0===n?void 0:n.description}}),null!==V&&null!==U&&(V.length>0?o.createElement("div",{className:Fn},o.createElement(ae,Object.assign({},H))):o.createElement(yn,{message:C("profilePanel.emptyPostMess.content",{text:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""})})))))};var Wn=Object.freeze({__proto__:null,get TabName(){return Vn},get UserType(){return Dn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Un}),Hn="KsWg8i6",Zn="_9tS0EUN",qn="kyyRKlb",_n="-Uqqka-";const Gn=a=>{var{post:n,onSkip:r,btnText:s,currentPageUrl:c}=a,p=t(a,["post","onSkip","btnText","currentPageUrl"]);const{t:u}=E(),{data:{locale:g},action:{pushNotifications:v}}=i(N),[h,b]=l(!1),[f,y]=l(!1),x=m(),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;y(!0);const t=yield G(P(I.USER.SKIP_QUESTION,{_locale:g,id:null==n?void 0:n.id}),"PUT");1===(null==t?void 0:t.status)?(null==r||r({id:(null==n?void 0:n.id)||"",communityId:(null===(e=null==n?void 0:n.community)||void 0===e?void 0:e.id)||""}),b(!1),v({title:"",message:"Skip success",type:"success"})):v({title:"",message:null==t?void 0:t.messages,type:"danger"}),y(!1)}))),[]);return o.createElement(w,{width:327,withArrow:!0,shadow:"md",opened:h},o.createElement(w.Target,null,o.createElement("div",Object.assign({className:`${Hn} ${(null==p?void 0:p.className)||""}`,onClick:()=>b(!0)},p),s||u("profilePanel.questionNotClear"))),o.createElement(w.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:Zn},u("profilePanel.skipQuestion.heading")),o.createElement("div",{className:qn},u("profilePanel.skipQuestion.content")),o.createElement("div",{className:_n},o.createElement($,{size:"md",variant:"secondary",leftIcon:o.createElement(oe,{color:x.fn.primaryColor(),size:24}),onClick:()=>b(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement($,{variant:"primary",size:"md",leftIcon:o.createElement(ne,{color:"white",size:24}),onClick:C,loading:f,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":c,styles:()=>({leftIcon:{marginRight:0}})})))))};var Qn="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10Z' fill='%233E3F58'/%3e %3cpath d='M19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10Z' fill='%233E3F58'/%3e %3cpath d='M12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z' fill='%233E3F58'/%3e %3c/svg%3e",Xn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='%23595959' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Kn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",$n="data:image/svg+xml,%3csvg width='3' height='13' viewBox='0 0 3 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1.58326' cy='6.41663' r='1.25' transform='rotate(89.9997 1.58326 6.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='1.41663' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 1.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='11.4166' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 11.4166)' fill='%23595959'/%3e%3c/svg%3e",Yn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 5.33337C13.1046 5.33337 14 4.43794 14 3.33337C14 2.2288 13.1046 1.33337 12 1.33337C10.8954 1.33337 10 2.2288 10 3.33337C10 4.43794 10.8954 5.33337 12 5.33337Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4 10C5.10457 10 6 9.10457 6 8C6 6.89543 5.10457 6 4 6C2.89543 6 2 6.89543 2 8C2 9.10457 2.89543 10 4 10Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12 14.6666C13.1046 14.6666 14 13.7712 14 12.6666C14 11.5621 13.1046 10.6666 12 10.6666C10.8954 10.6666 10 11.5621 10 12.6666C10 13.7712 10.8954 14.6666 12 14.6666Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.72668 9.00665L10.28 11.66' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.2734 4.33997L5.72668 6.9933' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Jn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 4H3.33333H14' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33334 3.99992V2.66659C5.33334 2.31296 5.47382 1.97382 5.72387 1.72378C5.97392 1.47373 6.31305 1.33325 6.66668 1.33325H9.33334C9.68697 1.33325 10.0261 1.47373 10.2762 1.72378C10.5262 1.97382 10.6667 2.31296 10.6667 2.66659V3.99992M12.6667 3.99992V13.3333C12.6667 13.6869 12.5262 14.026 12.2762 14.2761C12.0261 14.5261 11.687 14.6666 11.3333 14.6666H4.66668C4.31305 14.6666 3.97392 14.5261 3.72387 14.2761C3.47382 14.026 3.33334 13.6869 3.33334 13.3333V3.99992H12.6667Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.66666 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.33334 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const ei=({authorEmail:t,onDeletePost:a,shareUrl:n,post:r,className:s="",popoverClassName:c="",onBookmark:d,onRemoveBookmark:m,onEditPost:p})=>{const{data:{locale:u,userInfo:g,togetherUserId:v,env:{isMarryBaby:h}},action:{pushNotifications:b}}=i(N),{t:f}=E(),[y,w]=l(!1),[x,C]=l(!1),[k,A]=l(!1),{authActionWrapper:T}=Qe(),z=t&&(null==g?void 0:g.email)&&t===String(null==g?void 0:g.email);return o.createElement("div",{className:s,onClick:e=>{e.preventDefault(),e.stopPropagation()}},k&&o.createElement(wo,{url:n,text:null==r?void 0:r.title,onClose:()=>A(!1)}),x&&o.createElement(uo,{thumbnail:se.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:f("popup.deletePost.title"),description:f("popup.deletePost.description"),acceptText:f("popup.deletePost.accept"),cancelText:f("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){if((null==r?void 0:r.id)&&!y){w(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield G(P(I.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}w(!1)}})),onClose:()=>C(!1)}),o.createElement(wt,{className:c,toggleButtonContent:o.createElement("img",{src:h?Qn:$n,loading:"lazy"}),position:"bottom",align:"end",buttonProps:{isLoading:y},data:z?{isShowheader:!1,type:"list",list:[{icon:Yn,label:f("morePopover.share"),onClick:()=>A(!0)},{icon:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.16952 3.2356H2.99484C2.6785 3.2356 2.37512 3.36126 2.15143 3.58495C1.92774 3.80863 1.80208 4.11202 1.80208 4.42836V12.7777C1.80208 13.094 1.92774 13.3974 2.15143 13.6211C2.37512 13.8448 2.6785 13.9705 2.99484 13.9705H11.3442C11.6605 13.9705 11.9639 13.8448 12.1876 13.6211C12.4113 13.3974 12.537 13.094 12.537 12.7777V8.60303' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M11.6425 2.341C11.8798 2.10375 12.2016 1.97046 12.5371 1.97046C12.8726 1.97046 13.1944 2.10375 13.4317 2.341C13.6689 2.57826 13.8022 2.90005 13.8022 3.23558C13.8022 3.57111 13.6689 3.89289 13.4317 4.13015L7.76607 9.79578L5.38054 10.3922L5.97692 8.00663L11.6425 2.341Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",label:f("actionPopover.edit"),onClick:p},{icon:Jn,label:f("actionPopover.delete"),onClick:()=>{T((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Yn,label:f("morePopover.share"),onClick:()=>A(!0)},{icon:(null==r?void 0:r.bookmarked)?Xn:Kn,label:(null==r?void 0:r.bookmarked)?f("morePopover.unsavePost"):f("morePopover.savePost"),onClick:()=>{T((()=>e(void 0,void 0,void 0,(function*(){if((null==g?void 0:g.id)&&(null==r?void 0:r.id))if(null==r?void 0:r.bookmarked){const e=yield G(P(I.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(r.id)}});1===(null==e?void 0:e.status)?(b({title:"",message:"Removed saved post",type:"success",displayIcon:Kn}),m&&m()):b({title:"",message:"Remove failed",type:"danger",displayIcon:Kn})}else{const e=yield G(P(I.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:v||g.id,post_id:r.id}});1===(null==e?void 0:e.status)?(b({title:"",message:"Post saved",type:"success",displayIcon:Xn}),d&&d()):b({title:"",message:"Post saved failed",type:"danger",displayIcon:Kn})}}))))}},{icon:Co,label:f("morePopover.report"),subTree:{title:f("morePopover.report.title"),description:f("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(ie).map((e=>({label:ie[e].label,reason:ie[e].reportReasonText,reasonValue:e}))).map((e=>({label:f(e.label),subTree:{title:f("morePopover.reportSubmit.title"),description:f("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>o.createElement(ko,{reason:e.reasonValue,reasonText:f(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},ti=pe.div`
|
|
2637
|
+
`,$o=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(N),[g,v]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return v(null);v((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),z(P(I.FETCH_PREVIEW,{_locale:u}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;v({url:t,image:(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.image)||(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.logo)})})).catch((()=>{v(null)}))}}))}),[t,a]);const h=a||(null==g?void 0:g.image),b=(null==g?void 0:g.url)||t,f=c((()=>(e=>{var t;return e.includes("youtu")&&(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""})(b)),[b]),y=c((()=>b.includes("facebook.com")||b.includes("fb.watch")),[b]),w=r(0),x=r(0),[E,C]=l(!1);s((()=>{const e=()=>{var e;const t=null===(e=k.current)||void 0===e?void 0:e.getBoundingClientRect();let a=!1;t&&(!w.current||Math.abs((w.current-t.width)/(null==t?void 0:t.width))>.2)&&(w.current=Math.floor(t.width),a=!0),t&&(!x.current||Math.abs((x.current-t.height)/(null==t?void 0:t.height))>.2)&&(x.current=Math.floor(t.height),a=!0),a&&C((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const k=r(null),A=m();return o.createElement(Ko,{className:`${n} no-replace-click`,style:d,ref:k,color:A.colors[A.primaryColor][0]},a||!f&&!y?o.createElement("a",{href:b,target:"_blank",rel:"noreferrer"},o.createElement("div",{className:"link-image-wrapper "+((null==g?void 0:g.isFetching)?"fetching":"")},(null==g?void 0:g.isFetching)?o.createElement(Ye,{className:"loading-spinner"}):o.createElement(we,{className:"link-image",src:h||S,backupSrc:S,alt:b}))):o.createElement("div",{className:"link-image-wrapper"},f?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${f}?&autoplay=${p?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"},loading:"lazy"}):y?o.createElement("iframe",{key:String(E),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(b)}&autoplay=${p?1:0}&show_text=false&t=0&width=${w.current}&height=${x.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:x.current,width:w.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null))};var Yo="PD6nRZX";const Jo=({className:e,size:t="md"})=>{const{t:a}=E();return o.createElement("div",{className:`${Yo} ${e}`},o.createElement(Fe,{size:t,color:"transparent",isLoading:!0},a("loading")))},en=n({});var tn="l5fL1xL",an="L-aGKo7";const on=({children:e,className:t=""})=>o.createElement("div",{className:`${tn} ${t}`},e),nn=({children:e,className:t=""})=>o.createElement("div",{className:`${an} ${t}`},e);var ln="eaR8ATZ",rn="xM-7K0a",sn="DZmf3s7";const cn=({src:e,defaultSrc:t=ce.getAssetPath("logo/logomark.png"),ratio:a=1,size:n=80,radius:i=8,alt:l,className:r=""})=>o.createElement("div",{className:r},o.createElement("div",{className:sn,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(we,{src:e,backupSrc:t,alt:l}))),dn=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${ln} ${i}`},o.createElement(cn,{src:a}),o.createElement("div",{className:rn},n||o.createElement("div",null,e&&o.createElement(on,null,e),t&&o.createElement(nn,null,t))));dn.CategoryText=on,dn.Title=nn;const mn=({featureImage:e,postTitle:t,author:a,categories:n,isReview:i,className:l=""})=>{var r;const s=i?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return o.createElement(dn,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(dn.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(dn.Title,null,t),o.createElement(Rt,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(Rt.SubDivider,null),"Dec 12, 2022")})))};var pn={container:"SFSgnOz",header:"Tf3aoVa",heading:"TOt4QXl",headingIcon:"_5XYN1KT",accBodyGroup:"yE-tZRj",accBodyGroupItem:"LXiGuGT",accBodyGroupDesc:"r4rx-6v",subTitle:"XrHh8-C",subIcon:"c5-Yecd",group:"UBj6nWr",groupBody:"_2vptVBd",articleCardLink:"ZPDAwiR",relatedList:"_6wJn-NR",socialItem:"_21XDdFv",mbChevronWrapper:"LSyr3Zo"};const un=({className:e=""})=>{var t,a,n,l,r;const{t:s}=E(),{info:c,isMarryBaby:d,currentPageUrl:m}=i(en),p=null==c?void 0:c.data,g=[{type:"linkedin",icon:ce.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:ce.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:ce.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:ce.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:ce.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],v=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:ce.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:o.createElement("div",{className:pn.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:pn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:pn.accBodyGroupTitle},e.title),o.createElement("div",{className:pn.accBodyGroupDesc},o.createElement("p",null,e.organization),o.createElement("p",null,e.duration))))))}]:[],...((null==c?void 0:c.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:ce.getAssetPath(d?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:o.createElement("div",{className:pn.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:pn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:pn.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:pn.accBodyGroupDesc},o.createElement("p",null,e.study),o.createElement("p",null,e.completedYear))))))}]:[],...((null==c?void 0:c.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:ce.getAssetPath(d?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:o.createElement("div",{className:pn.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:pn.accBodyGroupTitle,key:t},e.title))))}]:[]],h=(null==c?void 0:c.relatedPosts)||[],b=g.filter((e=>e.url));return o.createElement("div",{className:`${pn.container} ${e}`,"data-is-marrybaby":d},v.length>0&&o.createElement(y,{defaultValue:v[0].key,chevron:d?o.createElement("div",{className:pn.mbChevronWrapper},o.createElement(ee,{size:12,color:k.mbColors.midGray})):o.createElement(ee,{color:k.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},v.map((e=>o.createElement(y.Item,{key:e.key,value:e.key},o.createElement(y.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},o.createElement("div",{className:pn.header},o.createElement("div",{className:pn.headingIcon},o.createElement("img",{src:e.iconSrc,loading:"lazy"})),o.createElement("div",{className:pn.heading},e.heading))),o.createElement(y.Panel,null,e.panel))))),h.length>0&&o.createElement("div",{className:pn.group},o.createElement("div",{className:pn.subTitle},o.createElement("img",{className:pn.subIcon,src:ce.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${pn.relatedList}`},null==c?void 0:c.relatedPosts.map((e=>o.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:pn.articleCardLink},o.createElement(mn,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==p?void 0:p.name,avatar:null==p?void 0:p.avatar}}),{isReview:!0}))))))),b.length>0&&o.createElement("div",{className:pn.group},o.createElement("div",{className:pn.subTitle},o.createElement("img",{className:pn.subIcon,src:ce.getAssetPath(d?"social-mb.svg":"social.svg"),loading:"lazy"}),s("profilePanel.socialLinks")),o.createElement("div",{className:pn.groupBody},o.createElement(u,null,g.map(((e,t)=>e.url&&o.createElement("div",{className:pn.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m})))))))))};var gn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const vn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=E(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(N),{authActionWrapper:v,authorProps:h,currentPageUrl:b}=i(en),f=`${window.location.origin}${g}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${gn.container} ${t}`},o.createElement("div",{className:gn.header},o.createElement("div",{className:gn.question},p("profilePanel.question")," ",o.createElement(te,{className:gn.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==v||v((()=>window.location.href=f))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:gn.community},null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.name," - ",null==e?void 0:e.createdTime)),o.createElement("div",{className:gn.questionCard},o.createElement(ua,Object.assign({className:"card-author"},h,{role:"user",avatarIcon:o.createElement(Nt,null),subLine:o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null===(s=null===(r=null===(l=null==e?void 0:e.expertAnswer)||void 0===l?void 0:l.answer)||void 0===r?void 0:r[0])||void 0===s?void 0:s.createdTime))})),o.createElement(zo,{className:"post-content-wrapper",description:(null===(m=null===(d=null===(c=null==e?void 0:e.expertAnswer)||void 0===c?void 0:c.answer)||void 0===d?void 0:d[0])||void 0===m?void 0:m.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),o.createElement($,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":b,size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=f:null==v||v((()=>window.location.href=f))}},p("profilePanel.anserwing.viewFull")))};var hn="MrdoES3",bn="_8fd7YMs",fn="DomiQfw",yn="-b2qnfL";const wn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(en);return o.createElement("div",{className:bn},o.createElement("div",{className:fn},o.createElement("img",{src:a||ce.getAssetPath(r?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&o.createElement("div",{className:yn},e),t&&o.createElement(Fe,{size:"md",theme:l,color:"secondary",onClick:n},t))},xn=({id:t})=>{const{t:a}=E(),{data:{locale:n}}=i(N),{authorProps:r}=i(en),[c,d]=l(null),[m,p]=l(!1);return s((()=>{t&&e(void 0,void 0,void 0,(function*(){var e;p(!0);const a=yield z(P(I.USER.LIST_ANSWERS,{_locale:n,id:t}),"GET"),o=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.replies)||[]).map(Ae);d(o),p(!1)}))}),[]),o.createElement("div",{className:hn},m?o.createElement(Jo,null):null!==c&&(c.length>0?c.map((e=>o.createElement(vn,{className:"post-card",key:e.id,post:e}))):o.createElement(wn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))};var En="toEutn7",Cn="drdisHs";const kn=e=>{var a,n,l,r,{post:s}=e,c=t(e,["post"]);const{data:{env:{togetherBasePath:d}}}=i(N);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},c,{className:`${En} ${(null==c?void 0:c.className)||""}`}),o.createElement(ua,{className:"card-author",avatar:null===(a=null==s?void 0:s.author)||void 0===a?void 0:a.avatar,name:(null===(n=null==s?void 0:s.author)||void 0===n?void 0:n.name)||(null===(l=null==s?void 0:s.author)||void 0===l?void 0:l.username),isAnonymous:Boolean(null==s?void 0:s.isAnonymous),subLine:o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(te,{href:`${window.location.origin}${d}/${null===(r=null==s?void 0:s.community)||void 0===r?void 0:r.slug}/${null==s?void 0:s.slug}`,className:Cn,rel:"noreferrer"},null==s?void 0:s.title)))};var Nn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const An=()=>{var t,a;const{t:n}=E(),{data:{locale:r,userInfo:c}}=i(N),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(en),[u,g]=l(),[v,h]=l([]),[b,f]=l(!1),w=null==c?void 0:c.id;s((()=>{w&&e(void 0,void 0,void 0,(function*(){var e;f(!0);const t=yield G(P(I.USER.LIST_QUESTION_NEED_REPLY,{_locale:r}),"GET"),a=[],o=Object.create({});((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.communities)||[]).filter((e=>((null==e?void 0:e.question)||[]).length>0)).map((e=>{o[e.id]=e.question.map(Ae),delete e.question,a.push(Pe(e))})),h(a),g(o),f(!1)}))}),[]);const x=({id:e,communityId:t})=>{if(e&&t&&u){const a=Object.assign(Object.assign({},u),{[t]:[...((null==u?void 0:u[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),g(a),p(Object.assign(Object.assign({},m),{total_question:o})),null==d||d(o)}};return o.createElement("div",{className:Nn.container},b?o.createElement(Jo,null):(null==m?void 0:m.total_question)>0?v.length>0&&o.createElement(y,{className:Nn.accordion,defaultValue:String((null===(a=v[null===(t=Object.keys(v))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},label:{padding:0},item:{marginBottom:"16px"}}),chevron:o.createElement("div",{className:Nn.chevron},o.createElement(ae,{color:k.colors.gray600,size:20}))},v.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(y.Item,{key:e.id,value:String(e.id)},o.createElement(y.Control,null,o.createElement("div",{className:Nn.header},o.createElement("div",{className:Nn.headingIcon},o.createElement("img",{src:e.thumbnail,loading:"lazy"})),o.createElement("div",{className:Nn.heading},e.name))),o.createElement(y.Panel,null,o.createElement("div",{className:Nn.body},t.map((e=>o.createElement(kn,{className:"question-card",key:e.id,post:e,onSkip:x}))))))}))):o.createElement(wn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:ce.getAssetPath("questions.svg")}))};var Tn="GA-zc-O",zn="A18McWD",Pn="IB049vj",In="_8I--vEV";const Sn=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(N),{authActionWrapper:r,authorProps:s}=i(en),c=`${window.location.origin}${l}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${Tn} ${t}`},o.createElement("div",{className:Pn},o.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":c,className:In,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(Rt,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(ua.MainText,{className:zn},null==e?void 0:e.title),o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null==e?void 0:e.createdTime))),o.createElement(zo,{className:"post-content-wrapper",description:null==e?void 0:e.description,mentions:null==e?void 0:e.mentions,maxChars:200,"data-testid":"Content of the Post"})))};var Ln="TSMHoEM";const Mn=()=>{const{t:t}=E(),{data:{locale:a}}=i(N),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(en),[m,p]=l(null),[u,g]=l(!1);return s((()=>{n&&e(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield z(P(I.USER.LIST_POST,{_locale:a,id:n,isAnonymous:0}),"GET"),o=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(Ae);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Ln},u?o.createElement(Jo,null):null!==m&&(m.length>0?m.map((e=>o.createElement(Sn,{className:"post-card",key:e.id,post:e}))):o.createElement(wn,{message:t("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:c&&t("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var jn="_4Vekw96",Bn="DIJdGcB",Fn="aQSt4-Q";const On=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Rn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var Vn,Dn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(Vn||(Vn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Dn||(Dn={}));const Un=a=>{var n,{authorProps:r,selectedTab:c,authActionWrapper:d,onSkipQuestion:m,onCloseFromPost:p,hideQuestionTab:u,hideAnswerTab:g,showSkipQuestionTag:v,rolesToShowQuestionsTab:h=["expert"],currentPageUrl:b}=a,f=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:y,userInfo:w,env:{isMarryBaby:x}}}=i(N),{t:C}=E(),k=null==r?void 0:r.role,A=null==w?void 0:w.role,T=String(null==r?void 0:r.userId),[S,L]=l(),[M,j]=l(!1),[B,F]=l(),O=(null==w?void 0:w._togetherUserId)===(null==r?void 0:r.userId),R=[...-1!==h.indexOf(k)?[{value:Vn.About,text:C("profilePanel.tabs.highlight"),content:o.createElement(un,{id:T,info:B}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:b}]:[],{value:Vn.Posts,text:C("profilePanel.tabs.posts"),content:o.createElement(Mn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...u||-1===h.indexOf(A)||(null==w?void 0:w._togetherUserId)!==(null==r?void 0:r.userId)?[]:[{value:Vn.Care,text:`${C("profilePanel.tabs.care")}`,content:o.createElement(An,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:b}],...g||-1===h.indexOf(k)?[]:[{value:Vn.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:o.createElement(xn,{id:T}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:b}]],[V,D]=l(null),[U,W]=l(null),H={value:String(U),dataList:V,onTabChange:e=>W(Number(e))},Z=null==R?void 0:R.filter((e=>null==e?void 0:e.hasCountResult));s((()=>{e(void 0,void 0,void 0,(function*(){var e,t,a,o,n,i,l,r,s,d;j(!0);const m=yield Promise.all([z(P(I.USER.DETAIL,{_locale:y,id:T}),"GET"),...Z.map((e=>z(P(I.USER.COUNT_TABS,{_locale:y,id:T,[e.keyOfCountApi]:1}),"GET")))]),[p]=m,u={data:null==p?void 0:p.data,experiences:((null===(t=null===(e=null==p?void 0:p.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(On),relatedPosts:((null===(a=null==p?void 0:p.data)||void 0===a?void 0:a.related_post)||[]).map((e=>Ie(e.post))),educations:((null===(n=null===(o=null==p?void 0:p.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(Rn),awards:(null===(l=null===(i=null==p?void 0:p.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==p?void 0:p.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};1===(null==p?void 0:p.status)&&F(u);const g=(null==u?void 0:u.relatedPosts)||[],v=Object.keys(u.contact).map((e=>{var t;return""!==(null===(t=null==u?void 0:u.contact)||void 0===t?void 0:t[e])})),h=[...(null==u?void 0:u.experiences)||[],...(null==u?void 0:u.educations)||[],...(null==u?void 0:u.awards)||[]],b=g.length>0||v.length>0||h.length>0,f={},w=Z.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=m[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===n?void 0:n[e.keyOfResult])||0;return i>0?(f[e.keyOfResult]=i,e):-1!==[Vn.Care,Vn.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),x=R.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==w.indexOf(t.value)?t:void 0:t.value===Vn.About?b&&t:t})).filter(Boolean);D(x),W(c||(null===(d=null==x?void 0:x[0])||void 0===d?void 0:d.value)),L(f),j(!1)}))}),[]);const q=null==B?void 0:B.data;return o.createElement(en.Provider,{value:{isMarryBaby:x,siteType:x?"marryBaby":"helloSites",authorId:String((null==r?void 0:r.userId)||""),authActionWrapper:d,onSkipQuestion:m,info:B,authorProps:r,onCloseFromPost:p,countValues:S,setCountValues:L,isAuthorLogin:O,showSkipQuestionTag:v,currentPageUrl:b}},o.createElement("div",Object.assign({},f,{className:`${jn} ${(null==f?void 0:f.className)||""}`,"data-is-marrybaby":x}),M?o.createElement(Jo,null):o.createElement(o.Fragment,null,o.createElement(ua,Object.assign({},r,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==r?void 0:r.role)?(null==q?void 0:q.specialty)&&(null==q?void 0:q.organisation)&&o.createElement(ua.SubTextRow,null,(null==q?void 0:q.specialty)&&o.createElement(o.Fragment,null,o.createElement(ua.SubText,null,null==q?void 0:q.specialty),o.createElement(ua.SubDivider,null)),o.createElement(ua.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,C("profilePanel.joined")," ",pe(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===k&&o.createElement("div",{className:Bn,dangerouslySetInnerHTML:{__html:null===(n=null==B?void 0:B.data)||void 0===n?void 0:n.description}}),null!==V&&null!==U&&(V.length>0?o.createElement("div",{className:Fn},o.createElement(oe,Object.assign({},H))):o.createElement(wn,{message:C("profilePanel.emptyPostMess.content",{text:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""})})))))};var Wn=Object.freeze({__proto__:null,get TabName(){return Vn},get UserType(){return Dn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Un}),Hn="KsWg8i6",Zn="_9tS0EUN",qn="kyyRKlb",_n="-Uqqka-";const Gn=a=>{var{post:n,onSkip:r,btnText:s,currentPageUrl:c}=a,p=t(a,["post","onSkip","btnText","currentPageUrl"]);const{t:u}=E(),{data:{locale:g},action:{pushNotifications:v}}=i(N),[h,b]=l(!1),[f,y]=l(!1),x=m(),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;y(!0);const t=yield G(P(I.USER.SKIP_QUESTION,{_locale:g,id:null==n?void 0:n.id}),"PUT");1===(null==t?void 0:t.status)?(null==r||r({id:(null==n?void 0:n.id)||"",communityId:(null===(e=null==n?void 0:n.community)||void 0===e?void 0:e.id)||""}),b(!1),v({title:"",message:"Skip success",type:"success"})):v({title:"",message:null==t?void 0:t.messages,type:"danger"}),y(!1)}))),[]);return o.createElement(w,{width:327,withArrow:!0,shadow:"md",opened:h},o.createElement(w.Target,null,o.createElement("div",Object.assign({className:`${Hn} ${(null==p?void 0:p.className)||""}`,onClick:()=>b(!0)},p),s||u("profilePanel.questionNotClear"))),o.createElement(w.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:Zn},u("profilePanel.skipQuestion.heading")),o.createElement("div",{className:qn},u("profilePanel.skipQuestion.content")),o.createElement("div",{className:_n},o.createElement($,{size:"md",variant:"secondary",leftIcon:o.createElement(ne,{color:x.fn.primaryColor(),size:24}),onClick:()=>b(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement($,{variant:"primary",size:"md",leftIcon:o.createElement(ie,{color:"white",size:24}),onClick:C,loading:f,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":c,styles:()=>({leftIcon:{marginRight:0}})})))))};var Qn="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10Z' fill='%233E3F58'/%3e %3cpath d='M19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10Z' fill='%233E3F58'/%3e %3cpath d='M12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z' fill='%233E3F58'/%3e %3c/svg%3e",Xn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='%23595959' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Kn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",$n="data:image/svg+xml,%3csvg width='3' height='13' viewBox='0 0 3 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1.58326' cy='6.41663' r='1.25' transform='rotate(89.9997 1.58326 6.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='1.41663' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 1.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='11.4166' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 11.4166)' fill='%23595959'/%3e%3c/svg%3e",Yn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 5.33337C13.1046 5.33337 14 4.43794 14 3.33337C14 2.2288 13.1046 1.33337 12 1.33337C10.8954 1.33337 10 2.2288 10 3.33337C10 4.43794 10.8954 5.33337 12 5.33337Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4 10C5.10457 10 6 9.10457 6 8C6 6.89543 5.10457 6 4 6C2.89543 6 2 6.89543 2 8C2 9.10457 2.89543 10 4 10Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12 14.6666C13.1046 14.6666 14 13.7712 14 12.6666C14 11.5621 13.1046 10.6666 12 10.6666C10.8954 10.6666 10 11.5621 10 12.6666C10 13.7712 10.8954 14.6666 12 14.6666Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.72668 9.00665L10.28 11.66' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.2734 4.33997L5.72668 6.9933' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Jn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 4H3.33333H14' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33334 3.99992V2.66659C5.33334 2.31296 5.47382 1.97382 5.72387 1.72378C5.97392 1.47373 6.31305 1.33325 6.66668 1.33325H9.33334C9.68697 1.33325 10.0261 1.47373 10.2762 1.72378C10.5262 1.97382 10.6667 2.31296 10.6667 2.66659V3.99992M12.6667 3.99992V13.3333C12.6667 13.6869 12.5262 14.026 12.2762 14.2761C12.0261 14.5261 11.687 14.6666 11.3333 14.6666H4.66668C4.31305 14.6666 3.97392 14.5261 3.72387 14.2761C3.47382 14.026 3.33334 13.6869 3.33334 13.3333V3.99992H12.6667Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.66666 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.33334 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const ei=({authorEmail:t,onDeletePost:a,shareUrl:n,post:r,className:s="",popoverClassName:c="",onBookmark:d,onRemoveBookmark:m,onEditPost:p})=>{const{data:{locale:u,userInfo:g,togetherUserId:v,env:{isMarryBaby:h}},action:{pushNotifications:b}}=i(N),{t:f}=E(),[y,w]=l(!1),[x,C]=l(!1),[k,A]=l(!1),{authActionWrapper:T}=Xe(),z=t&&(null==g?void 0:g.email)&&t===String(null==g?void 0:g.email);return o.createElement("div",{className:s,onClick:e=>{e.preventDefault(),e.stopPropagation()}},k&&o.createElement(xo,{url:n,text:null==r?void 0:r.title,onClose:()=>A(!1)}),x&&o.createElement(go,{thumbnail:ce.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:f("popup.deletePost.title"),description:f("popup.deletePost.description"),acceptText:f("popup.deletePost.accept"),cancelText:f("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){if((null==r?void 0:r.id)&&!y){w(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield G(P(I.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}w(!1)}})),onClose:()=>C(!1)}),o.createElement(xt,{className:c,toggleButtonContent:o.createElement("img",{src:h?Qn:$n,loading:"lazy"}),position:"bottom",align:"end",buttonProps:{isLoading:y},data:z?{isShowheader:!1,type:"list",list:[{icon:Yn,label:f("morePopover.share"),onClick:()=>A(!0)},{icon:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.16952 3.2356H2.99484C2.6785 3.2356 2.37512 3.36126 2.15143 3.58495C1.92774 3.80863 1.80208 4.11202 1.80208 4.42836V12.7777C1.80208 13.094 1.92774 13.3974 2.15143 13.6211C2.37512 13.8448 2.6785 13.9705 2.99484 13.9705H11.3442C11.6605 13.9705 11.9639 13.8448 12.1876 13.6211C12.4113 13.3974 12.537 13.094 12.537 12.7777V8.60303' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M11.6425 2.341C11.8798 2.10375 12.2016 1.97046 12.5371 1.97046C12.8726 1.97046 13.1944 2.10375 13.4317 2.341C13.6689 2.57826 13.8022 2.90005 13.8022 3.23558C13.8022 3.57111 13.6689 3.89289 13.4317 4.13015L7.76607 9.79578L5.38054 10.3922L5.97692 8.00663L11.6425 2.341Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",label:f("actionPopover.edit"),onClick:p},{icon:Jn,label:f("actionPopover.delete"),onClick:()=>{T((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Yn,label:f("morePopover.share"),onClick:()=>A(!0)},{icon:(null==r?void 0:r.bookmarked)?Xn:Kn,label:(null==r?void 0:r.bookmarked)?f("morePopover.unsavePost"):f("morePopover.savePost"),onClick:()=>{T((()=>e(void 0,void 0,void 0,(function*(){if((null==g?void 0:g.id)&&(null==r?void 0:r.id))if(null==r?void 0:r.bookmarked){const e=yield G(P(I.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(r.id)}});1===(null==e?void 0:e.status)?(b({title:"",message:"Removed saved post",type:"success",displayIcon:Kn}),m&&m()):b({title:"",message:"Remove failed",type:"danger",displayIcon:Kn})}else{const e=yield G(P(I.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:v||g.id,post_id:r.id}});1===(null==e?void 0:e.status)?(b({title:"",message:"Post saved",type:"success",displayIcon:Xn}),d&&d()):b({title:"",message:"Post saved failed",type:"danger",displayIcon:Kn})}}))))}},{icon:ko,label:f("morePopover.report"),subTree:{title:f("morePopover.report.title"),description:f("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(le).map((e=>({label:le[e].label,reason:le[e].reportReasonText,reasonValue:e}))).map((e=>({label:f(e.label),subTree:{title:f("morePopover.reportSubmit.title"),description:f("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>o.createElement(No,{reason:e.reasonValue,reasonText:f(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},ti=ue.div`
|
|
2638
2638
|
position: relative;
|
|
2639
2639
|
margin-bottom: 24px;
|
|
2640
2640
|
background: white;
|
|
@@ -2644,7 +2644,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2644
2644
|
text-decoration: none;
|
|
2645
2645
|
}
|
|
2646
2646
|
|
|
2647
|
-
${
|
|
2647
|
+
${he.mbDown} {
|
|
2648
2648
|
margin-bottom: 8px;
|
|
2649
2649
|
}
|
|
2650
2650
|
&.flat-top {
|
|
@@ -2667,7 +2667,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2667
2667
|
width: 40px;
|
|
2668
2668
|
height: 40px;
|
|
2669
2669
|
font-size: 20px;
|
|
2670
|
-
${
|
|
2670
|
+
${he.mbDown} {
|
|
2671
2671
|
width: 32px;
|
|
2672
2672
|
height: 32px;
|
|
2673
2673
|
font-size: 16px;
|
|
@@ -2723,7 +2723,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2723
2723
|
}
|
|
2724
2724
|
&[data-most-engaging='true'] {
|
|
2725
2725
|
border: none;
|
|
2726
|
-
${
|
|
2726
|
+
${he.mbDown} {
|
|
2727
2727
|
margin: 1rem;
|
|
2728
2728
|
border: 1px solid #e4e8ec;
|
|
2729
2729
|
}
|
|
@@ -2771,7 +2771,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2771
2771
|
.popover-menu__btn {
|
|
2772
2772
|
width: 24px;
|
|
2773
2773
|
height: 24px;
|
|
2774
|
-
${
|
|
2774
|
+
${he.mbDown} {
|
|
2775
2775
|
width: 18px;
|
|
2776
2776
|
height: 18px;
|
|
2777
2777
|
}
|
|
@@ -2783,7 +2783,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2783
2783
|
right: 1rem;
|
|
2784
2784
|
}
|
|
2785
2785
|
width: 350px;
|
|
2786
|
-
${
|
|
2786
|
+
${he.mbDown} {
|
|
2787
2787
|
max-width: calc(320px - 2rem);
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
@@ -2805,15 +2805,15 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2805
2805
|
transform: translateX(-50%);
|
|
2806
2806
|
}
|
|
2807
2807
|
}
|
|
2808
|
-
${
|
|
2808
|
+
${he.mbDown} {
|
|
2809
2809
|
margin-bottom: 12px;
|
|
2810
2810
|
}
|
|
2811
2811
|
}
|
|
2812
|
-
`;const ai=({onDeleteComment:t,commentId:a,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:c},action:{pushNotifications:d}}=i(N),{t:m}=E(),[p,u]=l(!1),{authActionWrapper:g}=
|
|
2812
|
+
`;const ai=({onDeleteComment:t,commentId:a,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:c},action:{pushNotifications:d}}=i(N),{t:m}=E(),[p,u]=l(!1),{authActionWrapper:g}=Xe();return o.createElement("div",{className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()}},p&&o.createElement(go,{thumbnail:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cg stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' clip-path='url(%23clip0)'%3e%3cpath d='M2 4.008h12M5.333 4.008V2.675a1.333 1.333 0 0 1 1.334-1.333h2.666a1.333 1.333 0 0 1 1.334 1.333v1.333m2 0v9.334a1.333 1.333 0 0 1-1.334 1.333H4.667a1.333 1.333 0 0 1-1.334-1.333V4.008h9.334ZM6.667 7.342v4M9.333 7.342v4'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0'%3e%3cpath fill='white' d='M0 .008h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",isThumbnailIcon:!0,title:m("popup.deleteComment.title"),description:m("popup.deleteComment.description"),acceptText:m("popup.deletePost.accept"),cancelText:m("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){var e;if(!a)return;const o=yield(({id:e,locale:t})=>G(P(I.COMMENT.DELETE,{_locale:t,id:e}),"DELETE"))({id:a,locale:c});1===(null==o?void 0:o.status)?(t&&t(),d({title:"",message:m("notification.success"),type:"success"})):d({title:"",message:(null===(e=null==o?void 0:o.messages)||void 0===e?void 0:e[0])||m("notification.failure"),type:"danger"})})),onClose:()=>u(!1)}),o.createElement(xt,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:Jn,label:m("actionPopover.delete"),onClick:()=>{g((()=>{u(!0)}))}}]},className:r,toggleButtonContent:o.createElement("img",{src:s?Qn:$n,loading:"lazy"}),buttonProps:{}}))},oi=ue.div`
|
|
2813
2813
|
.add-link {
|
|
2814
2814
|
color: ${k.colors.primaryBase};
|
|
2815
2815
|
}
|
|
2816
|
-
`,ni=
|
|
2816
|
+
`,ni=ue.div`
|
|
2817
2817
|
margin: 16px 0;
|
|
2818
2818
|
background: ${k.colors.yellow50};
|
|
2819
2819
|
padding: 5px 10px;
|
|
@@ -2824,38 +2824,38 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2824
2824
|
vertical-align: middle;
|
|
2825
2825
|
margin-right: 6px;
|
|
2826
2826
|
}
|
|
2827
|
-
`,ii=
|
|
2827
|
+
`,ii=ue.div`
|
|
2828
2828
|
display: flex;
|
|
2829
2829
|
align-items: center;
|
|
2830
2830
|
gap: 8px;
|
|
2831
|
-
`,li=
|
|
2831
|
+
`,li=ue.div`
|
|
2832
2832
|
padding: 8px 16px;
|
|
2833
|
-
`,ri=
|
|
2833
|
+
`,ri=ue.div`
|
|
2834
2834
|
margin-bottom: 12px;
|
|
2835
2835
|
width: 100%;
|
|
2836
|
-
`,si=
|
|
2836
|
+
`,si=ue.div``,ci=ue.div`
|
|
2837
2837
|
margin-bottom: 16px;
|
|
2838
|
-
`,di=
|
|
2838
|
+
`,di=ue.div`
|
|
2839
2839
|
display: flex;
|
|
2840
2840
|
flex-wrap: wrap;
|
|
2841
2841
|
row-gap: 16px;
|
|
2842
|
-
${
|
|
2842
|
+
${he.tdUp} {
|
|
2843
2843
|
align-items: center;
|
|
2844
2844
|
column-gap: 24px;
|
|
2845
2845
|
}
|
|
2846
|
-
`,mi=
|
|
2846
|
+
`,mi=ue.a`
|
|
2847
2847
|
display: flex;
|
|
2848
2848
|
align-items: center;
|
|
2849
2849
|
gap: 16px;
|
|
2850
|
-
${
|
|
2850
|
+
${he.mbDown} {
|
|
2851
2851
|
width: 100%;
|
|
2852
2852
|
justify-content: space-between;
|
|
2853
2853
|
}
|
|
2854
|
-
`,pi=
|
|
2854
|
+
`,pi=ue.div`
|
|
2855
2855
|
display: flex;
|
|
2856
2856
|
align-items: center;
|
|
2857
2857
|
gap: 16px;
|
|
2858
|
-
`,ui=
|
|
2858
|
+
`,ui=ue.div`
|
|
2859
2859
|
border-radius: ${e=>e.theme.borderRadius};
|
|
2860
2860
|
overflow: hidden;
|
|
2861
2861
|
width: 48px;
|
|
@@ -2865,7 +2865,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2865
2865
|
width: 100%;
|
|
2866
2866
|
height: 100%;
|
|
2867
2867
|
}
|
|
2868
|
-
`,gi=({categories:e})=>{const{t:t}=E(),{data:{locale:a,env:{isMarryBaby:n}}}=i(N),l=
|
|
2868
|
+
`,gi=({categories:e})=>{const{t:t}=E(),{data:{locale:a,env:{isMarryBaby:n}}}=i(N),l=qe(a,n);return o.createElement(si,null,o.createElement(ci,null,o.createElement(L,{tag:"h6",as:"h5"},t("cardReply.recommentCategories.heading"))),o.createElement(di,null,e.map((e=>o.createElement(mi,{href:l+e.permalink,key:String(e.termId),target:"_blank"},o.createElement(pi,null,o.createElement(ui,null,o.createElement("img",{src:e.featureImage||ce.getAssetPath(n?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),o.createElement(Le,{size:"s3",type:"bold"},e.displayName)),o.createElement(j.ArrowRight,{size:20,color:k.colors.gray400}))))))},vi=ue.a`
|
|
2869
2869
|
padding: 12px 0;
|
|
2870
2870
|
display: flex;
|
|
2871
2871
|
flex-direction: column;
|
|
@@ -2876,7 +2876,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2876
2876
|
&:first-child {
|
|
2877
2877
|
border-top: 0;
|
|
2878
2878
|
}
|
|
2879
|
-
`,hi=
|
|
2879
|
+
`,hi=ue.div``,bi=({postTitle:e,articleReviewed:t,modifiedTime:a,href:n})=>{const{t:i}=E(),l=(()=>{const{expert:e,editor:a,is_author:o}=t;if(e){const t={name:e.display_name,role:"expert",avatar:e.avatar};return o?Object.assign({title:i("articleAuthor.title.written-by")},t):"expert"===e.role?Object.assign({title:i("articleAuthor.title.expert")},t):Object.assign({title:i("articleAuthor.title.medical")},t)}if(a)return{title:i("articleAuthor.title.fact-check"),name:a.display_name,avatar:a.avatar}})();return o.createElement(vi,{href:n,title:e,target:"_blank"},o.createElement(Le,{size:"s3",as:"h5",type:"bold"},e),o.createElement(hi,null,o.createElement(ua,{avatar:null==l?void 0:l.avatar,avatarProps:{size:32},name:null==l?void 0:l.name,role:null==l?void 0:l.role,hideBackground:!0},o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null==l?void 0:l.title," ",o.createElement("span",{style:{color:k.colors.gray800}},null==l?void 0:l.name)),o.createElement(ua.SubDivider,null),o.createElement(ua.SubText,null,a)))))};var fi="F4mmgSy",yi="A7QrQ7A";const wi=a=>{var{listUrl:n,categorySlug:i,editMode:r,onListChange:c,isMarryBaby:d}=a,m=t(a,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:p}=E(),[u,g]=l(n||[]),[v,h]=l([]),[b,f]=l([]),[w,x]=l(!1);s((()=>{e(void 0,void 0,void 0,(function*(){x(!0);const e=u.map((e=>{const t=new URL(e),a=String(t.pathname).split("/").filter((e=>""!=e));return{isMarrySite:-1!==t.origin.search("marrybaby.vn"),path:a[a.length-1],href:e}})),t=[...e.map((e=>z(e.isMarrySite?re(H.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):W(H.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],a=yield Promise.all(t);h(a.map(((t,a)=>{var o,n;return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.post)&&Object.assign(Object.assign({},Ie(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.post)),{href:e[a].href})})).filter(Boolean)),x(!1)}))}),[]),s((()=>{0===(null==v?void 0:v.length)&&i&&e(void 0,void 0,void 0,(function*(){var e;const t=yield z(d?re(H.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0):W(H.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0),"GET");(null==t?void 0:t.data)&&f([Se(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[v]);return s((()=>{null==c||c(u)}),[u]),o.createElement("div",Object.assign({},m),!r&&o.createElement(ni,null,o.createElement("img",{className:"icon",src:ce.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),o.createElement(Le,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:p("cardReply.disclaimer")}})),w?o.createElement(Ye,null):v.length>0||r?o.createElement(oi,null,o.createElement(y,{defaultValue:"accordion",styles:{control:{border:`1px solid ${k.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${k.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:o.createElement("div",{className:yi},o.createElement(ae,{color:k.colors.gray600,size:20}))},o.createElement(y.Item,{value:"accordion"},o.createElement(y.Control,null,o.createElement("div",{className:fi},o.createElement(L,{as:"h4",tag:"h6"},p("cardReply.source")))),o.createElement(y.Panel,null,o.createElement(li,null,(v||[]).map(((e,t)=>o.createElement(ii,{key:String(t)},"object"==typeof e?o.createElement(bi,Object.assign({},e)):o.createElement(ri,null,o.createElement(Me,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{g((a=>{const o=[...a];return o[t]=e,o})),h((a=>{const o=[...a];return o[t]=e,o}))}})),r&&o.createElement(Fe,{size:"md",color:"transparent",icon:o.createElement(j.Trash,null),onClick:()=>(e=>{g((t=>{const a=[...t];return a.splice(e,1),a})),h((t=>{const a=[...t];return a.splice(e,1),a}))})(t)})))),r&&o.createElement(Fe,{className:"add-link",color:"transparent",size:"md",icon:o.createElement(j.Plus,{color:k.colors.primaryBase,size:18}),onClick:()=>{g((e=>[...e,""])),h((e=>[...e,""]))}},"Add source")))))):o.createElement(gi,{categories:b}))},xi=ue.div`
|
|
2880
2880
|
position: relative;
|
|
2881
2881
|
margin-bottom: 0;
|
|
2882
2882
|
background: white;
|
|
@@ -2894,7 +2894,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2894
2894
|
width: 40px;
|
|
2895
2895
|
height: 40px;
|
|
2896
2896
|
font-size: 20px;
|
|
2897
|
-
${
|
|
2897
|
+
${he.mbDown} {
|
|
2898
2898
|
width: 32px;
|
|
2899
2899
|
height: 32px;
|
|
2900
2900
|
font-size: 16px;
|
|
@@ -2999,12 +2999,12 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
2999
2999
|
}
|
|
3000
3000
|
|
|
3001
3001
|
margin-left: 56px;
|
|
3002
|
-
${
|
|
3002
|
+
${he.mbDown} {
|
|
3003
3003
|
margin-left: 40px;
|
|
3004
3004
|
}
|
|
3005
3005
|
> .post-author {
|
|
3006
3006
|
margin-left: -56px;
|
|
3007
|
-
${
|
|
3007
|
+
${he.mbDown} {
|
|
3008
3008
|
margin-left: -40px;
|
|
3009
3009
|
}
|
|
3010
3010
|
.author-info {
|
|
@@ -3022,7 +3022,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
3022
3022
|
width: 40px;
|
|
3023
3023
|
height: 40px;
|
|
3024
3024
|
font-size: 20px;
|
|
3025
|
-
${
|
|
3025
|
+
${he.mbDown} {
|
|
3026
3026
|
width: 24px;
|
|
3027
3027
|
height: 24px;
|
|
3028
3028
|
font-size: 12px;
|
|
@@ -3035,7 +3035,7 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
3035
3035
|
width: 40px;
|
|
3036
3036
|
height: 40px;
|
|
3037
3037
|
font-size: 20px;
|
|
3038
|
-
${
|
|
3038
|
+
${he.mbDown} {
|
|
3039
3039
|
width: 24px;
|
|
3040
3040
|
height: 24px;
|
|
3041
3041
|
font-size: 12px;
|
|
@@ -3063,16 +3063,16 @@ import{a as e,_ as t}from"./tslib.es6-681566ab.js";import*as a from"react";impor
|
|
|
3063
3063
|
.post-content-wrapper {
|
|
3064
3064
|
padding-top: 0;
|
|
3065
3065
|
padding-bottom: 0;
|
|
3066
|
-
${
|
|
3066
|
+
${he.mbDown} {
|
|
3067
3067
|
padding-left: 0.5rem;
|
|
3068
3068
|
}
|
|
3069
3069
|
}
|
|
3070
3070
|
|
|
3071
|
-
${
|
|
3071
|
+
${he.mbDown} {
|
|
3072
3072
|
margin-bottom: 12px;
|
|
3073
3073
|
}
|
|
3074
3074
|
}
|
|
3075
|
-
`,Ei=
|
|
3075
|
+
`,Ei=ue(wi)`
|
|
3076
3076
|
margin-top: 12px;
|
|
3077
3077
|
padding: 0.5rem 1rem 1rem;
|
|
3078
|
-
`;var Ci="-dzIuHr";const ki=({userId:e,avatar:t,name:a,role:n,title:i,className:r})=>{const{t:s}=E(),[c,d]=l(!1);return o.createElement(o.Fragment,null,o.createElement(Be,{className:`${Ci} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(j.Endorse,{isSolid:!0,size:18,color:k.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(da,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Un,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))};const Ni=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:v,hasQuickBookingEnable:h,handleMakeAppointment:b,cardAuthorProps:f,maxChars:y=600,disableShortenContent:w})=>{var x,C,k,A,T,S,L,M,j,B,F,V,D;const{data:{locale:U,userInfo:W,env:{isMarryBaby:H}}}=i(N),{t:Z}=E(),[q,_]=l(n||null),{id:Q,countLikes:X,content:K,replies:$=[],images:Y=[],author:J,liked:ee,link:te,mentionedUser:ae,mentions:oe}=q,{text:ne,replyingTo:ie}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})(K),{authActionWrapper:le}=Qe({_joinCommunityIds:[null===(x=null==u?void 0:u.community)||void 0===x?void 0:x.id],_joinTopicIds:null===(C=null==u?void 0:u.topics)||void 0===C?void 0:C.map((e=>e.id))}),[re,se]=l(4),ce=!!(null==W?void 0:W.id)&&(null==$?void 0:$.some((e=>e.author.id===W.id))),me=e=>{_((t=>{if(!t.replies.find((t=>t.id===e.id))){t.replies.unshift(e);const a=Object.assign(Object.assign({},t),{replies:t.replies.slice(),countReplies:t.countReplies+1});return v&&v(a),a}return t}))},[pe,ue]=l(!1),ge=c((()=>"comment"===r&&$&&0!=$.length?$.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):$),[r,$]),ve=(null==$?void 0:$.length)||0,he=String(null==J?void 0:J.email)&&(null==W?void 0:W.email)&&String(null==J?void 0:J.email)===String(null==W?void 0:W.email),be=(null==J?void 0:J.name)||(null==J?void 0:J.username)||"",fe=(null==J?void 0:J.username)||(null==J?void 0:J.name)||"",ye=null==J?void 0:J.avatar,we=(null==u?void 0:u.isAnonymous)||null==J?void 0:J.role,xe=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(k=null==u?void 0:u.author)||void 0===k?void 0:k.id)||0,name:Z("cardPost.anonymous")}]:[],...oe||[]],[Ee,ke]=l(null),[Ne,Ae]=l(null);s((()=>{if(null==J?void 0:J.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:de[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&ke(null==a?void 0:a._data.branch)}));t(J.hospitalId)}if(null==J?void 0:J.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_DOCTOR_INFO,{doctorId:t,website_url:de[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Ae(null==a?void 0:a._data.doctor)}));t(J.doctorId)}}),[J.hospitalId,J.doctorId]);const Te=(null==Ne?void 0:Ne.valid_outpatient)||(null==Ne?void 0:Ne.valid_telemedicine),ze=((null==Ee?void 0:Ee.total_available_service)||(null==Ee?void 0:Ee.total_available_doctor))>0,Pe=h&&(Te||ze),Ie="chatbot"===(null===(A=null==q?void 0:q.author)||void 0===A?void 0:A.type);return o.createElement(Ge,{defaultParams:{_joinCommunityIds:[null===(T=null==u?void 0:u.community)||void 0===T?void 0:T.id],_joinTopicIds:null===(S=null==u?void 0:u.topics)||void 0===S?void 0:S.map((e=>e.id))}},o.createElement(xi,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":H,"data-has-booking":Pe},"reply"===r&&o.createElement(Ce,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(pa,Object.assign({avatar:ye,name:be,username:fe,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(he?"with-popover":""),type:r,userId:null==J?void 0:J.id,role:we,expertId:null==J?void 0:J.partnerId,title:null==J?void 0:J.title,doctorId:null==J?void 0:J.doctorId,hospitalId:null==J?void 0:J.hospitalId,hasQuickBooking:Pe,handleMakeAppointment:b,isAnonymous:(null==q?void 0:q.isAnonymous)||Boolean(null==u?void 0:u.isAnonymous)&&(null===(L=null==u?void 0:u.author)||void 0===L?void 0:L.username)===(null==J?void 0:J.username),hideBackground:Ie,userType:null==J?void 0:J.type},f)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&o.createElement(ki,{title:null===(M=null==q?void 0:q.userVerify)||void 0===M?void 0:M.title,name:null===(j=null==q?void 0:q.userVerify)||void 0===j?void 0:j.name,userId:null===(B=null==q?void 0:q.userVerify)||void 0===B?void 0:B.id,role:null===(F=null==q?void 0:q.userVerify)||void 0===F?void 0:F.role,avatar:null===(V=null==q?void 0:q.userVerify)||void 0===V?void 0:V.avatar,className:"verify-tag"})),o.createElement(To,{className:"post-content-wrapper",replyingTo:ie,mentionedUser:ae,description:ne,mentions:xe,maxChars:y,disableShortenContent:w}),o.createElement("span",null),o.createElement("span",null),Y&&Y.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Qo,{images:Y,authorName:null==J?void 0:J.username})):null,Y&&0!==Y.length||!te?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(Je,{url:te})),"most-engaging"!==r?o.createElement(o.Fragment,null,Ie&&o.createElement(Ei,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),o.createElement(mt,{type:it.reply,loveCount:X,replyCount:ve,className:"post-reaction",liked:ee,isReplied:ce,hideCommentIcon:"reply"===r||Ie,hasShare:!1,onCommentClick:()=>le((()=>ue((e=>!e)))),onCommentCountClick:()=>le((()=>{ue(!0)})),onLikeClick:()=>le((()=>e(void 0,void 0,void 0,(function*(){if(Q){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return G(P(a?I.COMMENT.LIKE:I.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:Q,setLike:!ee,locale:U});1===t.status&&_((e=>Object.assign(Object.assign({},e),{liked:!ee,countLikes:e.countLikes+(ee?-1:1)})))}}))))}),pe&&o.createElement(ho,{replyingId:m||q.id,replyToName:be,isReply:!0,onClose:()=>ue(!1),onPostSuccess:e=>{"reply"===r?p&&p(e):me(e)},post:u,replyingUser:J}),"comment"===r&&$&&$.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(D=null==ge?void 0:ge.slice(0,re))||void 0===D?void 0:D.map((e=>o.createElement(Ni,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:Q,onPostCommentSuccess:me,post:u,onDeleteComment:()=>{_((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:b,hasQuickBookingEnable:h}))),ve>re&&o.createElement(o.Fragment,null,o.createElement(Ce,{className:"top-divider",type:"solid"}),o.createElement(Be,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>se((e=>e+4))},Z("comment.seeMoreReplies",{count:ve-re}),o.createElement("img",{className:"chevron-right",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12L10 8L6 4' stroke='%232D87F3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"})))):null):null,he&&o.createElement(ai,{onDeleteComment:g,className:"popover",commentId:q.id})))},Ai=(t,a)=>e(void 0,void 0,void 0,(function*(){var e,o,n;const i=yield re(P(I.COMMENT.LIST,{postId:t,_locale:a,sort:"popularity",perPage:1,withoutReply:1}),"GET");return null===(n=null===(o=null===(e=null==i?void 0:i.data)||void 0===e?void 0:e.comments)||void 0===o?void 0:o.map(Te))||void 0===n?void 0:n[0]})),Ti=({className:t,style:a,hideViewMoreComment:n,showMostEngaging:r,onCommentClick:c,onCommentCountClick:d,onMostEngagingCommentClick:m,onPostCommentSuccess:p,disableCardLink:u,disableShortenContent:g,onDeletePost:v,onEditPost:h,post:b,mostEngagingComment:f,onDeleteComment:y,showInputComment:w,InlineCommentsComponent:x,hasQuickBookingEnable:k,handleMakeAppointment:A,cardAuthorProps:T})=>{const[M,j]=l(b),[F,D]=l(!1),[U,W]=l(f),{community:H,topics:Z,author:q,slug:_,isPin:Q,liked:X,photos:K,mentions:$,title:Y,description:J,previewUrl:ee,likesCount:te,commentsCount:ae,id:oe,commented:ne}=M,{data:{locale:ie,env:{isMarryBaby:le,togetherBasePath:re}},action:{pushNotifications:se}}=i(N),{t:ce}=E(),[de,me]=l(w),pe=`${re}/${(null==H?void 0:H.slug)||"_"}/${_||""}`,ue=`${B(ie)}${pe}`,{authActionWrapper:ge}=Qe((null==H?void 0:H.slug)?{_joinCommunityIds:[H.id],_joinTopicIds:null==Z?void 0:Z.map((e=>e.id))}:void 0),[ve,he]=l(!1);s((()=>{me(w)}),[w]);const be=(null==q?void 0:q.name)||(null==q?void 0:q.username)||"",fe=(null==q?void 0:q.username)||(null==q?void 0:q.name)||"",ye=null==q?void 0:q.avatar,we=(null==M?void 0:M.isAnonymous)||null==q?void 0:q.role,[xe,Ee]=l(null),[Ce,ke]=l(null);s((()=>{if(null==q?void 0:q.hospitalId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:V[ie]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ee(null==a?void 0:a._data.branch)})))(q.hospitalId)}if(null==q?void 0:q.doctorId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_DOCTOR_INFO,{doctorId:t,website_url:V[ie]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&ke(null==a?void 0:a._data.doctor)})))(q.doctorId)}}),[q.hospitalId,q.doctorId]);const Ne=(null==Ce?void 0:Ce.valid_outpatient)||(null==Ce?void 0:Ce.valid_telemedicine),Ae=((null==xe?void 0:xe.total_available_service)||(null==xe?void 0:xe.total_available_doctor))>0,Te=k&&(Ne||Ae);s((()=>{e(void 0,void 0,void 0,(function*(){if(oe&&ae&&r&&!(null==f?void 0:f.id)){const e=yield Ai(oe,ie);W(e)}}))}),[oe,ie,ae,r,null==f?void 0:f.id]),s((()=>{W(f)}),[null==f?void 0:f.id]);const ze=t=>e(void 0,void 0,void 0,(function*(){if(ae>1&&(null==U?void 0:U.id)&&(null==U?void 0:U.id)===(null==t?void 0:t.id)){const e=yield Ai(oe,ie);W(e)}j((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),y&&y(t)}));return o.createElement(Ge,{defaultParams:(null==H?void 0:H.slug)?{_joinCommunityIds:[H.id],_joinTopicIds:null==Z?void 0:Z.map((e=>e.id))}:void 0},F&&o.createElement(wo,{url:ue,avatar:S,text:Y,onClose:()=>D(!1)}),o.createElement(ti,{className:t,style:a,"data-is-marrybaby":le},Q?o.createElement(ht,{className:"post-pin"}):null,o.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},o.createElement(pa,Object.assign({avatar:ye,name:be,username:fe,url:u?void 0:pe,community:H,timeText:null==M?void 0:M.createdTime,className:"post-author",role:we,userId:null==q?void 0:q.id,expertId:null==q?void 0:q.partnerId,doctorId:null==q?void 0:q.doctorId,hospitalId:null==q?void 0:q.hospitalId,title:null==q?void 0:q.title,hasQuickBooking:Te,handleMakeAppointment:A,"data-testid":"name",isAnonymous:!!(null==M?void 0:M.isAnonymous),extendEle:o.createElement(ei,{authorEmail:String(null==q?void 0:q.email),onDeletePost:v,shareUrl:ue,post:M,className:"popover",onEditPost:h})},T))),o.createElement("a",{href:u?void 0:pe,className:"post-content-link-wrapper"},Y&&o.createElement(L,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},C(Y)),o.createElement(To,{className:"post-content-wrapper",description:J,disableShortenContent:g,mentions:$,"data-testid":"Content of the Post"})),o.createElement("span",null),o.createElement("span",null),o.createElement("div",{key:"tag-topic"},Z&&Z.length>0?o.createElement(ut,{topics:Z,className:"post-topics"}):null),o.createElement("div",{key:"social-preview"},(null==M?void 0:M.introUrl)?o.createElement("div",{className:"social-preview-wrapper "+((null==K?void 0:K.length)?"has-image":"")},o.createElement(Ko,{url:M.introUrl,image:M.bannerImage})):null),o.createElement("div",{key:"image-preview"},(null==K?void 0:K.length)?o.createElement("div",{className:"image-preview-wrapper"},o.createElement(Qo,{images:K,authorName:null==q?void 0:q.name})):null),o.createElement("div",{key:"link-preview"},(null==M?void 0:M.introUrl)||(null==K?void 0:K.length)||!(null==ee?void 0:ee.url)?null:o.createElement("div",{className:"link-preview-wrapper"},o.createElement(Je,{title:ee.title,url:ee.url,image:ee.image}))),o.createElement(mt,{isMarryBaby:le,type:it.post,loveCount:te,replyCount:ae,className:"post-reaction "+((null==K?void 0:K.length)||(null==ee?void 0:ee.url)?"hide-top-border":""),liked:ve?!X:X,isReplied:ne,onCommentClick:()=>ge((()=>{c?c():me((e=>!e))})),onCommentCountClick:()=>{ge((()=>{le?me(!0):d?d():!u&&(window.location.href=pe)}))},onShareClick:()=>{D(!0)},onLikeClick:()=>e(void 0,void 0,void 0,(function*(){if(oe&&!ve){he(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield G(P(I.POST.LIKE,{id:t,_locale:a}),"GET")})))({id:oe,locale:ie});1!==(null==t?void 0:t.status)?se(ua(ce)):j((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){se(ua(ce))}he(!1)}})),showingMostEngaging:!(!r||!(null==U?void 0:U.id))}),de&&o.createElement(ho,{isMainCmt:!w,onClose:()=>me(!1),onPostSuccess:e=>{0!==ae||(null==U?void 0:U.id)||W(e),j((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount+1,commented:!0}))),p&&p(e)},post:M}),r&&(null==U?void 0:U.id)?o.createElement("div",{className:"most-engaging-wrapper",onClick:e=>{m?(e.stopPropagation(),m()):window.location.href=pe}},o.createElement(Ni,{hasQuickBookingEnable:k,handleMakeAppointment:A,comment:U,post:M,onDeleteComment:()=>{ze&&ze(U)},className:"most-engaging-comment",type:"most-engaging",key:U.id,cardAuthorProps:T}),ae>1&&!n&&o.createElement(Be,{className:"see-more-comments",color:"ghost",size:"md"},ce("comment.seeMoreComments",{count:ae-1}))):null,x))};var zi=Object.freeze({__proto__:null});export{Vn as A,Gn as B,Je as C,Ti as D,ei as E,Ni as F,ai as G,yt as H,ho as I,wi as J,qe as K,$e as L,uo as P,wo as S,_e as T,ki as V,Ge as a,mt as b,ut as c,vt as d,ht as e,Ct as f,pa as g,io as h,Ya as i,to as j,ea as k,_t as l,ia as m,oo as n,po as o,ko as p,yo as q,To as r,Bo as s,zi as t,Qe as u,Wo as v,Qo as w,Ko as x,da as y,Un as z};
|
|
3078
|
+
`;var Ci="-dzIuHr";const ki=({userId:e,avatar:t,name:a,role:n,title:i,className:r})=>{const{t:s}=E(),[c,d]=l(!1);return o.createElement(o.Fragment,null,o.createElement(Fe,{className:`${Ci} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(j.Endorse,{isSolid:!0,size:18,color:k.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(ma,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Un,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))};const Ni=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:v,hasQuickBookingEnable:h,handleMakeAppointment:b,cardAuthorProps:f,maxChars:y=600,disableShortenContent:w})=>{var x,C,k,A,T,S,L,M,j,B,F,V,D;const{data:{locale:U,userInfo:W,env:{isMarryBaby:H}}}=i(N),{t:Z}=E(),[q,_]=l(n||null),{id:Q,countLikes:X,content:K,replies:$=[],images:Y=[],author:J,liked:ee,link:te,mentionedUser:ae,mentions:oe}=q,{text:ne,replyingTo:ie}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})(K),{authActionWrapper:le}=Xe({_joinCommunityIds:[null===(x=null==u?void 0:u.community)||void 0===x?void 0:x.id],_joinTopicIds:null===(C=null==u?void 0:u.topics)||void 0===C?void 0:C.map((e=>e.id))}),[re,se]=l(4),ce=!!(null==W?void 0:W.id)&&(null==$?void 0:$.some((e=>e.author.id===W.id))),de=e=>{_((t=>{if(!t.replies.find((t=>t.id===e.id))){t.replies.unshift(e);const a=Object.assign(Object.assign({},t),{replies:t.replies.slice(),countReplies:t.countReplies+1});return v&&v(a),a}return t}))},[pe,ue]=l(!1),ge=c((()=>"comment"===r&&$&&0!=$.length?$.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):$),[r,$]),ve=(null==$?void 0:$.length)||0,he=String(null==J?void 0:J.email)&&(null==W?void 0:W.email)&&String(null==J?void 0:J.email)===String(null==W?void 0:W.email),be=(null==J?void 0:J.name)||(null==J?void 0:J.username)||"",fe=(null==J?void 0:J.username)||(null==J?void 0:J.name)||"",ye=null==J?void 0:J.avatar,we=(null==u?void 0:u.isAnonymous)||null==J?void 0:J.role,xe=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(k=null==u?void 0:u.author)||void 0===k?void 0:k.id)||0,name:Z("cardPost.anonymous")}]:[],...oe||[]],[Ee,Ce]=l(null),[Ne,Ae]=l(null);s((()=>{if(null==J?void 0:J.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:me[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ce(null==a?void 0:a._data.branch)}));t(J.hospitalId)}if(null==J?void 0:J.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_DOCTOR_INFO,{doctorId:t,website_url:me[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Ae(null==a?void 0:a._data.doctor)}));t(J.doctorId)}}),[J.hospitalId,J.doctorId]);const Te=(null==Ne?void 0:Ne.valid_outpatient)||(null==Ne?void 0:Ne.valid_telemedicine),ze=((null==Ee?void 0:Ee.total_available_service)||(null==Ee?void 0:Ee.total_available_doctor))>0,Pe=h&&(Te||ze),Ie="chatbot"===(null===(A=null==q?void 0:q.author)||void 0===A?void 0:A.type);return o.createElement(Qe,{defaultParams:{_joinCommunityIds:[null===(T=null==u?void 0:u.community)||void 0===T?void 0:T.id],_joinTopicIds:null===(S=null==u?void 0:u.topics)||void 0===S?void 0:S.map((e=>e.id))}},o.createElement(xi,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":H,"data-has-booking":Pe},"reply"===r&&o.createElement(ke,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(ua,Object.assign({avatar:ye,name:be,username:fe,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(he?"with-popover":""),type:r,userId:null==J?void 0:J.id,role:we,expertId:null==J?void 0:J.partnerId,title:null==J?void 0:J.title,doctorId:null==J?void 0:J.doctorId,hospitalId:null==J?void 0:J.hospitalId,hasQuickBooking:Pe,handleMakeAppointment:b,isAnonymous:(null==q?void 0:q.isAnonymous)||Boolean(null==u?void 0:u.isAnonymous)&&(null===(L=null==u?void 0:u.author)||void 0===L?void 0:L.username)===(null==J?void 0:J.username),hideBackground:Ie,userType:null==J?void 0:J.type},f)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&o.createElement(ki,{title:null===(M=null==q?void 0:q.userVerify)||void 0===M?void 0:M.title,name:null===(j=null==q?void 0:q.userVerify)||void 0===j?void 0:j.name,userId:null===(B=null==q?void 0:q.userVerify)||void 0===B?void 0:B.id,role:null===(F=null==q?void 0:q.userVerify)||void 0===F?void 0:F.role,avatar:null===(V=null==q?void 0:q.userVerify)||void 0===V?void 0:V.avatar,className:"verify-tag"})),o.createElement(zo,{className:"post-content-wrapper",replyingTo:ie,mentionedUser:ae,description:ne,mentions:xe,maxChars:y,disableShortenContent:w}),o.createElement("span",null),o.createElement("span",null),Y&&Y.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Xo,{images:Y,authorName:null==J?void 0:J.username})):null,Y&&0!==Y.length||!te?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(et,{url:te})),"most-engaging"!==r?o.createElement(o.Fragment,null,Ie&&o.createElement(Ei,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),o.createElement(pt,{type:lt.reply,loveCount:X,replyCount:ve,className:"post-reaction",liked:ee,isReplied:ce,hideCommentIcon:"reply"===r||Ie,hasShare:!1,onCommentClick:()=>le((()=>ue((e=>!e)))),onCommentCountClick:()=>le((()=>{ue(!0)})),onLikeClick:()=>le((()=>e(void 0,void 0,void 0,(function*(){if(Q){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return G(P(a?I.COMMENT.LIKE:I.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:Q,setLike:!ee,locale:U});1===t.status&&_((e=>Object.assign(Object.assign({},e),{liked:!ee,countLikes:e.countLikes+(ee?-1:1)})))}}))))}),pe&&o.createElement(bo,{replyingId:m||q.id,replyToName:be,isReply:!0,onClose:()=>ue(!1),onPostSuccess:e=>{"reply"===r?p&&p(e):de(e)},post:u,replyingUser:J}),"comment"===r&&$&&$.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(D=null==ge?void 0:ge.slice(0,re))||void 0===D?void 0:D.map((e=>o.createElement(Ni,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:Q,onPostCommentSuccess:de,post:u,onDeleteComment:()=>{_((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:b,hasQuickBookingEnable:h}))),ve>re&&o.createElement(o.Fragment,null,o.createElement(ke,{className:"top-divider",type:"solid"}),o.createElement(Fe,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>se((e=>e+4))},Z("comment.seeMoreReplies",{count:ve-re}),o.createElement("img",{className:"chevron-right",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12L10 8L6 4' stroke='%232D87F3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"})))):null):null,he&&o.createElement(ai,{onDeleteComment:g,className:"popover",commentId:q.id})))},Ai=(t,a)=>e(void 0,void 0,void 0,(function*(){var e,o,n;const i=yield se(P(I.COMMENT.LIST,{postId:t,_locale:a,sort:"popularity",perPage:1,withoutReply:1}),"GET");return null===(n=null===(o=null===(e=null==i?void 0:i.data)||void 0===e?void 0:e.comments)||void 0===o?void 0:o.map(ze))||void 0===n?void 0:n[0]})),Ti=({className:t,style:a,hideViewMoreComment:n,showMostEngaging:r,onCommentClick:c,onCommentCountClick:d,onMostEngagingCommentClick:m,onPostCommentSuccess:p,disableCardLink:u,disableShortenContent:g,onDeletePost:v,onEditPost:h,post:b,mostEngagingComment:f,onDeleteComment:y,showInputComment:w,InlineCommentsComponent:x,hasQuickBookingEnable:k,handleMakeAppointment:A,cardAuthorProps:T})=>{const[M,j]=l(b),[F,D]=l(!1),[U,W]=l(f),{community:H,topics:Z,author:q,slug:_,isPin:Q,liked:X,photos:K,mentions:$,title:Y,description:J,previewUrl:ee,likesCount:te,commentsCount:ae,id:oe,commented:ne}=M,{data:{locale:ie,env:{isMarryBaby:le,togetherBasePath:re}},action:{pushNotifications:se}}=i(N),{t:ce}=E(),[de,me]=l(w),pe=`${re}/${(null==H?void 0:H.slug)||"_"}/${_||""}`,ue=`${B(ie)}${pe}`,{authActionWrapper:ge}=Xe((null==H?void 0:H.slug)?{_joinCommunityIds:[H.id],_joinTopicIds:null==Z?void 0:Z.map((e=>e.id))}:void 0),[ve,he]=l(!1);s((()=>{me(w)}),[w]);const be=(null==q?void 0:q.name)||(null==q?void 0:q.username)||"",fe=(null==q?void 0:q.username)||(null==q?void 0:q.name)||"",ye=null==q?void 0:q.avatar,we=(null==M?void 0:M.isAnonymous)||null==q?void 0:q.role,[xe,Ee]=l(null),[Ce,ke]=l(null);s((()=>{if(null==q?void 0:q.hospitalId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:V[ie]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ee(null==a?void 0:a._data.branch)})))(q.hospitalId)}if(null==q?void 0:q.doctorId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_DOCTOR_INFO,{doctorId:t,website_url:V[ie]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&ke(null==a?void 0:a._data.doctor)})))(q.doctorId)}}),[q.hospitalId,q.doctorId]);const Ne=(null==Ce?void 0:Ce.valid_outpatient)||(null==Ce?void 0:Ce.valid_telemedicine),Ae=((null==xe?void 0:xe.total_available_service)||(null==xe?void 0:xe.total_available_doctor))>0,Te=k&&(Ne||Ae);s((()=>{e(void 0,void 0,void 0,(function*(){if(oe&&ae&&r&&!(null==f?void 0:f.id)){const e=yield Ai(oe,ie);W(e)}}))}),[oe,ie,ae,r,null==f?void 0:f.id]),s((()=>{W(f)}),[null==f?void 0:f.id]);const ze=t=>e(void 0,void 0,void 0,(function*(){if(ae>1&&(null==U?void 0:U.id)&&(null==U?void 0:U.id)===(null==t?void 0:t.id)){const e=yield Ai(oe,ie);W(e)}j((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),y&&y(t)}));return o.createElement(Qe,{defaultParams:(null==H?void 0:H.slug)?{_joinCommunityIds:[H.id],_joinTopicIds:null==Z?void 0:Z.map((e=>e.id))}:void 0},F&&o.createElement(xo,{url:ue,avatar:S,text:Y,onClose:()=>D(!1)}),o.createElement(ti,{className:t,style:a,"data-is-marrybaby":le},Q?o.createElement(bt,{className:"post-pin"}):null,o.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},o.createElement(ua,Object.assign({avatar:ye,name:be,username:fe,url:u?void 0:pe,community:H,timeText:null==M?void 0:M.createdTime,className:"post-author",role:we,userId:null==q?void 0:q.id,expertId:null==q?void 0:q.partnerId,doctorId:null==q?void 0:q.doctorId,hospitalId:null==q?void 0:q.hospitalId,title:null==q?void 0:q.title,hasQuickBooking:Te,handleMakeAppointment:A,"data-testid":"name",isAnonymous:!!(null==M?void 0:M.isAnonymous),extendEle:o.createElement(ei,{authorEmail:String(null==q?void 0:q.email),onDeletePost:v,shareUrl:ue,post:M,className:"popover",onEditPost:h})},T))),o.createElement("a",{href:u?void 0:pe,className:"post-content-link-wrapper"},Y&&o.createElement(L,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},C(Y)),o.createElement(zo,{className:"post-content-wrapper",description:J,disableShortenContent:g,mentions:$,"data-testid":"Content of the Post"})),o.createElement("span",null),o.createElement("span",null),o.createElement("div",{key:"tag-topic"},Z&&Z.length>0?o.createElement(gt,{topics:Z,className:"post-topics"}):null),o.createElement("div",{key:"social-preview"},(null==M?void 0:M.introUrl)?o.createElement("div",{className:"social-preview-wrapper "+((null==K?void 0:K.length)?"has-image":"")},o.createElement($o,{url:M.introUrl,image:M.bannerImage})):null),o.createElement("div",{key:"image-preview"},(null==K?void 0:K.length)?o.createElement("div",{className:"image-preview-wrapper"},o.createElement(Xo,{images:K,authorName:null==q?void 0:q.name})):null),o.createElement("div",{key:"link-preview"},(null==M?void 0:M.introUrl)||(null==K?void 0:K.length)||!(null==ee?void 0:ee.url)?null:o.createElement("div",{className:"link-preview-wrapper"},o.createElement(et,{title:ee.title,url:ee.url,image:ee.image}))),o.createElement(pt,{isMarryBaby:le,type:lt.post,loveCount:te,replyCount:ae,className:"post-reaction "+((null==K?void 0:K.length)||(null==ee?void 0:ee.url)?"hide-top-border":""),liked:ve?!X:X,isReplied:ne,onCommentClick:()=>ge((()=>{c?c():me((e=>!e))})),onCommentCountClick:()=>{ge((()=>{le?me(!0):d?d():!u&&(window.location.href=pe)}))},onShareClick:()=>{D(!0)},onLikeClick:()=>e(void 0,void 0,void 0,(function*(){if(oe&&!ve){he(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield G(P(I.POST.LIKE,{id:t,_locale:a}),"GET")})))({id:oe,locale:ie});1!==(null==t?void 0:t.status)?se(ga(ce)):j((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){se(ga(ce))}he(!1)}})),showingMostEngaging:!(!r||!(null==U?void 0:U.id))}),de&&o.createElement(bo,{isMainCmt:!w,onClose:()=>me(!1),onPostSuccess:e=>{0!==ae||(null==U?void 0:U.id)||W(e),j((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount+1,commented:!0}))),p&&p(e)},post:M}),r&&(null==U?void 0:U.id)?o.createElement("div",{className:"most-engaging-wrapper",onClick:e=>{m?(e.stopPropagation(),m()):window.location.href=pe}},o.createElement(Ni,{hasQuickBookingEnable:k,handleMakeAppointment:A,comment:U,post:M,onDeleteComment:()=>{ze&&ze(U)},className:"most-engaging-comment",type:"most-engaging",key:U.id,cardAuthorProps:T}),ae>1&&!n&&o.createElement(Fe,{className:"see-more-comments",color:"ghost",size:"md"},ce("comment.seeMoreComments",{count:ae-1}))):null,x))};var zi=Object.freeze({__proto__:null});export{Vn as A,Gn as B,et as C,Ti as D,ei as E,Ni as F,ai as G,wt as H,bo as I,wi as J,_e as K,Ye as L,go as P,xo as S,Ge as T,ki as V,Qe as a,pt as b,gt as c,ht as d,bt as e,kt as f,ua as g,lo as h,Ja as i,ao as j,ta as k,Gt as l,la as m,no as n,uo as o,No as p,wo as q,zo as r,Fo as s,zi as t,Xe as u,Ho as v,Xo as w,$o as x,ma as y,Un as z};
|