@hhgtech/hhg-components 1.26.47 → 1.26.49
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 +8 -8
- 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-d742b10d.js → core-aa82f22d.js} +1 -1
- package/build/{dataTransform-42c63750.js → dataTransform-06354173.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-595bcf4d.js +1 -0
- package/build/esm/{dataTransform-7ab2795e.js → dataTransform-5520acf8.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-9b2c9fe7.js → getDynamicHealthTool-09c2746a.js} +1 -1
- package/build/esm/{getSocialList-1fa5fec7.js → getSocialList-0f6a34bf.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-14030092.js → index-087931a6.js} +1 -1
- package/build/esm/index-11fc1ac3.js +1 -0
- package/build/esm/{index-70991db5.js → index-3a5d3e59.js} +1 -1
- package/build/esm/index-3f32e6a9.js +1 -0
- package/build/esm/{index-6d64213e.js → index-4a3d29c4.js} +1 -1
- package/build/esm/{index-04557413.js → index-51a5bf48.js} +1 -1
- package/build/esm/{index-13fa3c3c.js → index-56fb75ed.js} +1 -1
- package/build/esm/{index-fdbd8a95.js → index-60f52533.js} +1 -1
- package/build/esm/{index-dde659c5.js → index-6ac394f1.js} +1 -1
- package/build/esm/{index-b82ba278.js → index-70cad85a.js} +1 -1
- package/build/esm/{index-201083f4.js → index-78a98966.js} +1 -1
- package/build/esm/{index-8eddb23c.js → index-84e845ba.js} +1 -1
- package/build/esm/{index-af6975f1.js → index-8c53a16d.js} +1 -1
- package/build/esm/{index-7f47c599.js → index-8d0df027.js} +1 -1
- package/build/esm/{index-8b5620b5.js → index-a4327cda.js} +1 -1
- package/build/esm/{index-cfbaee71.js → index-ad37be83.js} +1 -1
- package/build/esm/{index-48aa075b.js → index-b028cab1.js} +1 -1
- package/build/esm/{index-2084f38e.js → index-bbbe5f88.js} +1 -1
- package/build/esm/{index-85f521a9.js → index-bf136cf1.js} +1 -1
- package/build/esm/index-db4b92fd.js +1 -0
- package/build/esm/{index-3951f16f.js → index-df31d73e.js} +1 -1
- package/build/esm/{index-195bd85e.js → index-eb832162.js} +1 -1
- package/build/esm/{index-63bf87b2.js → index-eff0df8e.js} +1 -1
- package/build/esm/{index-4ddbbe9d.js → index-f4fe0723.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-3efa6992.js → index.styled-020376b0.js} +1 -1
- package/build/esm/index.styled-07f440a9.js +50 -0
- package/build/esm/{index.styled-84bc5316.js → index.styled-0bdc8420.js} +1 -1
- package/build/esm/{index.styled-26450f21.js → index.styled-9e7169a2.js} +1 -1
- package/build/esm/{index.styled-c143f567.js → index.styled-c0b31749.js} +2 -2
- 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/pwg.js +5 -5
- package/build/esm/{routing-fad43d6c.js → routing-efea57a9.js} +1 -1
- package/build/esm/{screenSizeContext-c22bf062.js → screenSizeContext-f1bba2ea.js} +3 -3
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-ab0cbfb7.js → translationsProvider-a6064c47.js} +1 -1
- package/build/esm/{types-782b9f61.js → types-08abc357.js} +1 -1
- package/build/esm/{types-91b689cd.js → types-433f4233.js} +20 -20
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-1e83a5b3.js +1 -0
- package/build/esm/{useRafState-60b4750d.js → useRafState-7bb5b9b8.js} +1 -1
- package/build/esm/{useTranslations-6c3a27d0.js → useTranslations-fe338e8b.js} +1 -1
- package/build/esm/{utils-ab5ddd5c.js → utils-9d710f80.js} +6 -6
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-78ee57ed.js +1 -0
- package/build/{getSocialList-3489614e.js → getSocialList-caf338ee.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-07732bf6.js → index-02e3350a.js} +1 -1
- package/build/{index-19bd973c.js → index-105a1dd4.js} +1 -1
- package/build/{index-91c6d88e.js → index-14d668c2.js} +1 -1
- package/build/index-14d70cd4.js +1 -0
- package/build/{index-2f6e6b26.js → index-163b0077.js} +1 -1
- package/build/{index-194b4eeb.js → index-363f09b6.js} +1 -1
- package/build/{index-89df147e.js → index-43ca1f65.js} +1 -1
- package/build/index-47b971f8.js +1 -0
- package/build/{index-427379b5.js → index-5695c49a.js} +1 -1
- package/build/{index-037151a2.js → index-65facaac.js} +1 -1
- package/build/{index-0545ba06.js → index-65ff5470.js} +1 -1
- package/build/{index-f8fb4be0.js → index-84947b2b.js} +11 -11
- package/build/{index-92c1a9fd.js → index-996b5b43.js} +1 -1
- package/build/index-ab8f4178.js +1 -0
- package/build/{index-3cbab339.js → index-b4268fc4.js} +1 -1
- package/build/{index-7ea5912c.js → index-c3859500.js} +1 -1
- package/build/{index-770cc597.js → index-c5790b56.js} +1 -1
- package/build/{index-c07c9e32.js → index-c7df10ab.js} +1 -1
- package/build/index-cc470edb.js +1 -0
- package/build/{index-cc54416b.js → index-d1e00cfe.js} +1 -1
- package/build/{index-e879b87b.js → index-eadd8dfa.js} +1 -1
- package/build/{index-5a679122.js → index-ecfbed49.js} +1 -1
- package/build/{index-1563c415.js → index-f0a6616e.js} +1 -1
- package/build/{index-d0403649.js → index-fec8a813.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-084e789f.js → index.styled-018962a7.js} +8 -8
- package/build/{index.styled-a64f1259.js → index.styled-16a4af07.js} +1 -1
- package/build/{index.styled-4b47369e.js → index.styled-4b8eb8ec.js} +5 -5
- package/build/{index.styled-568b4909.js → index.styled-775b9225.js} +1 -1
- package/build/{index.styled-7fe95709.js → index.styled-da4ea854.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/pwg.js +1 -1
- package/build/{routing-1775644e.js → routing-70beeefa.js} +1 -1
- package/build/screenSizeContext-0386fe5e.js +81 -0
- package/build/together.js +1 -1
- package/build/{translationsProvider-1da71d75.js → translationsProvider-711da90d.js} +1 -1
- package/build/{types-6bb76b5f.js → types-705aa774.js} +1 -1
- package/build/{types-d1a4abe1.js → types-f04f6563.js} +37 -37
- package/build/types.js +1 -1
- package/build/{useHealthToolCache-682d0642.js → useHealthToolCache-e9a44fbe.js} +1 -1
- package/build/{useRafState-f92c392b.js → useRafState-a7e3cbd9.js} +1 -1
- package/build/useTranslations-73da8632.js +1 -0
- package/build/{utils-26fc0ea0.js → utils-c0399b37.js} +12 -12
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/esm/core-5a07e8e6.js +0 -1
- package/build/esm/index-3de9319d.js +0 -1
- package/build/esm/index-602076f9.js +0 -1
- package/build/esm/index-6b7241c3.js +0 -1
- package/build/esm/index.styled-4ccc12ae.js +0 -50
- package/build/esm/useHealthToolCache-01931a91.js +0 -1
- package/build/getDynamicHealthTool-e0840af4.js +0 -1
- package/build/index-13c09d9b.js +0 -1
- package/build/index-20dd87e5.js +0 -1
- package/build/index-38360431.js +0 -1
- package/build/index-e5b6b4af.js +0 -1
- package/build/screenSizeContext-c7b0af97.js +0 -81
- package/build/useTranslations-72b4c128.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-0e86dd63.js → BMI_BOYS.percentile.monthly-399b84aa.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-8b072097.js → BMI_BOYS.percentile.weekly-0bc71239.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0e450b78.js → BMI_BOYS.percentile.yearly-2b6435e8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-50d9bb0c.js → BMI_BOYS.zscore.monthly-27abfab4.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-0557168f.js → BMI_BOYS.zscore.weekly-cc315f38.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-2ef3d952.js → BMI_BOYS.zscore.yearly-36625a61.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-d0443228.js → BMI_GIRLS.percentile.monthly-a525c975.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-30ead403.js → BMI_GIRLS.percentile.weekly-36d9e1e3.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-4b41218f.js → BMI_GIRLS.percentile.yearly-47b00e72.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-c73041c7.js → BMI_GIRLS.zscore.monthly-320be8f8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-e826d726.js → BMI_GIRLS.zscore.weekly-7ad1ac27.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-014a06eb.js → BMI_GIRLS.zscore.yearly-71b3fad8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-c43d85ea.js → HEAD CIRCUM_BOYS.percentile.monthly-817c03cf.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c568cfd7.js → HEAD CIRCUM_BOYS.percentile.weekly-9f1bf51a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-3013e6ae.js → HEAD CIRCUM_BOYS.percentile.yearly-7a7de917.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-8d9778d5.js → HEAD CIRCUM_BOYS.zscore.monthly-d6652da5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-1497f8b6.js → HEAD CIRCUM_BOYS.zscore.weekly-9dcbbad9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-ed64da27.js → HEAD CIRCUM_BOYS.zscore.yearly-c5d0ac4a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-e1d6f67e.js → HEAD CIRCUM_GIRLS.percentile.monthly-f8433f69.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-ab1b01d2.js → HEAD CIRCUM_GIRLS.percentile.weekly-04cdb059.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-008a54b7.js → HEAD CIRCUM_GIRLS.percentile.yearly-8a79db16.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-e514e90e.js → HEAD CIRCUM_GIRLS.zscore.monthly-e02a6424.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-6f5d58f0.js → HEAD CIRCUM_GIRLS.zscore.weekly-5140e9ad.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-e9bc5ad2.js → HEAD CIRCUM_GIRLS.zscore.yearly-3f17cc41.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-7180df76.js → HEIGHT_BOYS.percentile.monthly-2b0f7293.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-5e758abc.js → HEIGHT_BOYS.percentile.weekly-ad38ca2c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-c275cd1b.js → HEIGHT_BOYS.percentile.yearly-d5e6b161.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-3ffe0ab4.js → HEIGHT_BOYS.zscore.monthly-96f0088f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-0cf7601c.js → HEIGHT_BOYS.zscore.weekly-86c792d9.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-760c02ec.js → HEIGHT_BOYS.zscore.yearly-2c4fd117.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-4afa8008.js → HEIGHT_GIRLS.percentile.monthly-59114e29.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-64d4dd71.js → HEIGHT_GIRLS.percentile.weekly-d38e6ddf.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-0c690952.js → HEIGHT_GIRLS.percentile.yearly-d21097fb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-822164f1.js → HEIGHT_GIRLS.zscore.monthly-e9331c0c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-bae1cf4d.js → HEIGHT_GIRLS.zscore.weekly-205ff621.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-677747ca.js → HEIGHT_GIRLS.zscore.yearly-cf977c62.js} +0 -0
- /package/build/{Onboarding-7fc78247.js → Onboarding-8e02d06e.js} +0 -0
- /package/build/{Visible-e22842af.js → Visible-ea0b522e.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-d052cf7c.js → WEIGHT_BOYS.percentile.monthly-986c6322.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-f1972c14.js → WEIGHT_BOYS.percentile.weekly-73344572.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-a20f0072.js → WEIGHT_BOYS.percentile.yearly-f2ec98a4.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-7b4c2efe.js → WEIGHT_BOYS.zscore.monthly-ee3122fb.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-92a9a4ad.js → WEIGHT_BOYS.zscore.weekly-baecd8e1.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-f0ab1042.js → WEIGHT_BOYS.zscore.yearly-1c5d4c1c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-d4d27ec9.js → WEIGHT_GIRLS.percentile.monthly-317da827.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-18ba862b.js → WEIGHT_GIRLS.percentile.weekly-bcaac227.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-668b2dce.js → WEIGHT_GIRLS.percentile.yearly-614b81e0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-b6585b57.js → WEIGHT_GIRLS.zscore.monthly-f19518a6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-5ac2d96b.js → WEIGHT_GIRLS.zscore.weekly-259fc8d8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-3e940621.js → WEIGHT_GIRLS.zscore.yearly-f9c34291.js} +0 -0
- /package/build/{constants-1ea1d5a1.js → constants-72963891.js} +0 -0
- /package/build/{cookieHelper-aa0546b2.js → cookieHelper-b6f86e18.js} +0 -0
- /package/build/{dataTransform-aa7d1a65.js → dataTransform-e524c84e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-c759e6dc.js → BMI_BOYS.percentile.monthly-1218b597.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-401adb84.js → BMI_BOYS.percentile.weekly-9969f52a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-9e9f494b.js → BMI_BOYS.percentile.yearly-cd198a98.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-4b804367.js → BMI_BOYS.zscore.monthly-e950035d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-1d562738.js → BMI_BOYS.zscore.weekly-2e10635d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-45db88c5.js → BMI_BOYS.zscore.yearly-3c098831.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-beff9986.js → BMI_GIRLS.percentile.monthly-ed129929.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-5686108d.js → BMI_GIRLS.percentile.weekly-0ae6c821.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-a7e320ec.js → BMI_GIRLS.percentile.yearly-d4eef43c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-c0cdbe4d.js → BMI_GIRLS.zscore.monthly-479dbdeb.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-c2d00b3d.js → BMI_GIRLS.zscore.weekly-fe9363b7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-80c111a3.js → BMI_GIRLS.zscore.yearly-2d4291da.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-e160feec.js → HEAD CIRCUM_BOYS.percentile.monthly-ad3d6e35.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-74a45ac1.js → HEAD CIRCUM_BOYS.percentile.weekly-5f860a4f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-a26e2945.js → HEAD CIRCUM_BOYS.percentile.yearly-eafc7da1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-6d26c72b.js → HEAD CIRCUM_BOYS.zscore.monthly-352ea622.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-826d9494.js → HEAD CIRCUM_BOYS.zscore.weekly-938ad251.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-4359015b.js → HEAD CIRCUM_BOYS.zscore.yearly-0505adee.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-c9cc720d.js → HEAD CIRCUM_GIRLS.percentile.monthly-0bf8d35c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-87b3630f.js → HEAD CIRCUM_GIRLS.percentile.weekly-dae596dd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-0f5157ee.js → HEAD CIRCUM_GIRLS.percentile.yearly-7e7362c4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-1d4c17f2.js → HEAD CIRCUM_GIRLS.zscore.monthly-8acc1b56.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-547d0d4d.js → HEAD CIRCUM_GIRLS.zscore.weekly-056f464e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-5824bb0f.js → HEAD CIRCUM_GIRLS.zscore.yearly-64979eee.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b30aa5b8.js → HEIGHT_BOYS.percentile.monthly-b0c3897b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1cbab889.js → HEIGHT_BOYS.percentile.weekly-5ebfd032.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-5c23eaa9.js → HEIGHT_BOYS.percentile.yearly-6e8b7750.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-49395f49.js → HEIGHT_BOYS.zscore.monthly-79e5dde8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-4d54a3b7.js → HEIGHT_BOYS.zscore.weekly-207390b1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-48675828.js → HEIGHT_BOYS.zscore.yearly-365ef81a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-f5ed3b87.js → HEIGHT_GIRLS.percentile.monthly-403c4062.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-34c2fb42.js → HEIGHT_GIRLS.percentile.weekly-aff3790b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-c63e4127.js → HEIGHT_GIRLS.percentile.yearly-55be0409.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-0175f9ae.js → HEIGHT_GIRLS.zscore.monthly-117cb1ba.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-55c61386.js → HEIGHT_GIRLS.zscore.weekly-c9c51e03.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c6c3eaa2.js → HEIGHT_GIRLS.zscore.yearly-46c69cf4.js} +0 -0
- /package/build/esm/{Onboarding-b077ce55.js → Onboarding-833526af.js} +0 -0
- /package/build/esm/{Visible-ec0c3328.js → Visible-b06745ae.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-4da9bc61.js → WEIGHT_BOYS.percentile.monthly-5c4074c7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ad6dd455.js → WEIGHT_BOYS.percentile.weekly-72797f2c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-f0aa1965.js → WEIGHT_BOYS.percentile.yearly-0a35757a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-5d331bd5.js → WEIGHT_BOYS.zscore.monthly-6106b734.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-f76314f4.js → WEIGHT_BOYS.zscore.weekly-4afd785f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-51f83392.js → WEIGHT_BOYS.zscore.yearly-0911b027.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-6deb7630.js → WEIGHT_GIRLS.percentile.monthly-00a0649d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-78f478d2.js → WEIGHT_GIRLS.percentile.weekly-a63326ba.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-25362eb1.js → WEIGHT_GIRLS.percentile.yearly-082cffc9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-e926b12e.js → WEIGHT_GIRLS.zscore.monthly-a8587e61.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-8a334e71.js → WEIGHT_GIRLS.zscore.weekly-20c79a62.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-a958b09f.js → WEIGHT_GIRLS.zscore.yearly-9dc88b96.js} +0 -0
- /package/build/esm/{constants-b7bafcf9.js → constants-e27161a6.js} +0 -0
- /package/build/esm/{cookieHelper-8763f84b.js → cookieHelper-cd788e51.js} +0 -0
- /package/build/esm/{dataTransform-32c6ecd5.js → dataTransform-a14bc8d4.js} +0 -0
- /package/build/esm/{index-9628d5b9.js → index-6c2d080e.js} +0 -0
- /package/build/esm/{index-6ea33705.js → index-c5e49781.js} +0 -0
- /package/build/esm/{isProduction-3ada6ac4.js → isProduction-35c0745f.js} +0 -0
- /package/build/esm/{localizeNumberFormat-0400410d.js → localizeNumberFormat-5c5e9ac0.js} +0 -0
- /package/build/esm/{normalizeLink-46378d8e.js → normalizeLink-2067cfb2.js} +0 -0
- /package/build/esm/{theme-7dc943b4.js → theme-987dd626.js} +0 -0
- /package/build/esm/{translationsContext-55083b52.js → translationsContext-48956132.js} +0 -0
- /package/build/esm/{tslib.es6-2a5d84e5.js → tslib.es6-08a12abc.js} +0 -0
- /package/build/esm/{types-ebb24fa1.js → types-7053f9a2.js} +0 -0
- /package/build/esm/{useIsInit-d01aad89.js → useIsInit-c0f1178b.js} +0 -0
- /package/build/esm/{useOutsideClick-c02041b7.js → useOutsideClick-9c888831.js} +0 -0
- /package/build/esm/{useScrollbarSize-c19e775c.js → useScrollbarSize-2a82c0f3.js} +0 -0
- /package/build/esm/{useUniqueId-745b51e7.js → useUniqueId-645c64f5.js} +0 -0
- /package/build/esm/{utils-eb350c26.js → utils-8b3122df.js} +0 -0
- /package/build/{index-13100273.js → index-26c45de4.js} +0 -0
- /package/build/{index-9c81fd39.js → index-e3047a5b.js} +0 -0
- /package/build/{isProduction-93e5ea18.js → isProduction-2ecb111d.js} +0 -0
- /package/build/{localizeNumberFormat-9d8b4889.js → localizeNumberFormat-47d55269.js} +0 -0
- /package/build/{normalizeLink-511d9ab1.js → normalizeLink-147f7926.js} +0 -0
- /package/build/{theme-40c2df2c.js → theme-41ffdcdb.js} +0 -0
- /package/build/{translationsContext-8c5b06c8.js → translationsContext-bada923b.js} +0 -0
- /package/build/{tslib.es6-e20492f7.js → tslib.es6-cb700ea9.js} +0 -0
- /package/build/{types-e1886613.js → types-4c1ef97e.js} +0 -0
- /package/build/{useIsInit-5a32bd7f.js → useIsInit-d9d74800.js} +0 -0
- /package/build/{useOutsideClick-ca74bb4b.js → useOutsideClick-5c42761f.js} +0 -0
- /package/build/{useScrollbarSize-fe283706.js → useScrollbarSize-7af7a32d.js} +0 -0
- /package/build/{useUniqueId-b0649c95.js → useUniqueId-a63b0de5.js} +0 -0
- /package/build/{utils-7f5bb19b.js → utils-b4ee662d.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-08a12abc.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,Checkbox as g,Portal as h,Anchor as v,Accordion as f,Popover as b}from"@mantine/core";import{a as y}from"./index.styled-020376b0.js";import{u as w}from"./useTranslations-fe338e8b.js";import x from"innertext";import{t as E}from"./theme-987dd626.js";import{H as C,O as k,aa as N,a5 as A,D as L,af as T,$ as P,C as I,ac as S}from"./index.styled-9e7169a2.js";import{CommonGAssets as M}from"./gAssets.js";import"@mantine/dates";import{d as z}from"./index-087931a6.js";import"./Onboarding-833526af.js";import{f as j,A as F}from"./index-4a3d29c4.js";import{B}from"./index-3f32e6a9.js";import O from"dayjs";import"./screenSizeContext-f1bba2ea.js";import R,{keyframes as V,css as D}from"styled-components";import{M as U,t as W,c as Z,a as H}from"./utils-8b3122df.js";import"./isProduction-35c0745f.js";import"./index-a4327cda.js";import"@mantine/hooks";import{T as q,au as _,av as G,aw as Q,ax as X,ay as K,az as $,aA as Y,U as J,aB as ee,aC as te,aD as ae,aE as oe,aF as ne,aG as ie,aH as le,aI as re,aJ as se,aK as ce,aL as de,aM as me,aN as pe,aO as ue,aP as ge}from"./index.styled-c0b31749.js";import{I as he,A as ve,B as fe,T as be,D as ye}from"./index-3a5d3e59.js";import{e as we,c as xe,P as Ee,g as Ce,b as ke,h as Ne,i as Ae}from"./dataTransform-5520acf8.js";import{T as Le}from"./index-11fc1ac3.js";import{I as Te}from"./index-70cad85a.js";import Pe from"lodash/debounce";import Ie from"react-contenteditable";import{I as Se,C as Me,a as ze}from"./index-78a98966.js";import{B as je}from"./index-f4fe0723.js";import{d as Fe,g as Be}from"./cookieHelper-cd788e51.js";import*as Oe from"react-dom";import"./index-84e845ba.js";import"./index-b028cab1.js";import"./index.styled-0bdc8420.js";import"./index-c5e49781.js";import"date-fns";import"react-day-picker/DayPickerInput";import"./index-6ac394f1.js";import"lodash/throttle";import"keen-slider/react";import"./types-7053f9a2.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-07f440a9.js";import"string-format";import Re from"dayjs/plugin/relativeTime";import{M as Ve}from"./index-eff0df8e.js";import{a as De}from"./useUniqueId-645c64f5.js";import"./translationsContext-48956132.js";import{g as Ue}from"./routing-efea57a9.js";const We=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"})),Ze=n({}),He=({children:e,defaultParams:t})=>o.createElement(Ze.Provider,{value:{defaultParams:t}},e),qe=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(q),{defaultParams:o}=i(Ze)||{},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||Fe(_),(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=G(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},_e=R.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
@@ -94,7 +94,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`,Ke=({title:t,url:a,image:n,logo:c,className:d,style:p,noRefetch:u})=>{const{data:{locale:g,env:{isMarryBaby:h}}}=i(q),[v,
|
|
97
|
+
`,Ke=({title:t,url:a,image:n,logo:c,className:d,style:p,noRefetch:u})=>{const{data:{locale:g,env:{isMarryBaby:h}}}=i(q),[v,f]=l(!1),b=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}))),Q(X(K.FETCH_PREVIEW,{_locale:g}),"POST",{data:{link:a},headers:{"Content-Type":"application/json"}}).then((e=>{var t,o,n;f(!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,k=(null==w?void 0:w.title)||t,N=(null==w?void 0:w.logo)||c,A=(null==w?void 0:w.url)||a,L=A.replace("http://","").replace("https://","").split(/[/?#]/)[0],T=r(!1);return o.createElement(Xe,{"data-is-marrybaby":h,className:`${d} no-replace-click`,style:p,color:b.colors[b.primaryColor][0]},o.createElement("a",{href:A,target:"_blank",rel:"noreferrer"},E&&o.createElement("div",{className:"link-image-wrapper"},!h&&o.createElement("img",{className:"link-image-blur",src:E,onError:e=>{T.current||(T.current=!0,e.currentTarget.src=$)}}),o.createElement("img",{className:"link-image",src:E,onError:e=>{T.current||(T.current=!0,e.currentTarget.src=$)}})),o.createElement("div",{className:"link-info-container"},o.createElement(Le,{size:"n1"},h&&N&&!v&&o.createElement("img",{className:"link-logo",src:N,onError:()=>f(!0)}),L),o.createElement(C,{tag:"h6"},k))))},$e=n({});var Ye="vvR-m49";const Je=({children:e,className:t=""})=>{const{isReplied:a,trackingCategory:n,trackingLabel:l,onLikeClick:r}=i($e);return o.createElement("div",{className:`${Ye} ${t}`,"data-event-category":n,"data-event-action":a?"Like Comment Click":"Like Post Click","data-event-label":l,onClick:()=>{null==r||r()}},e)},et=({children:e,className:t=""})=>{const{trackingCategory:a,trackingLabel:n,onShareClick:l}=i($e);return o.createElement("div",{className:`${Ye} ${t}`,onClick:()=>{null==l||l()},"data-event-category":a,"data-event-action":"Share Icon Click","data-event-label":n},e)},tt=({children:e,className:t=""})=>{const{isReplied:a,trackingCategory:n,trackingLabel:l,onCommentClick:r}=i($e);return o.createElement("div",{className:`${Ye} ${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 at,ot="UhiT4m5",nt="oEfeTkV",it="OlbikxJ",lt="_9GXHCn3",rt="MV3lNuh";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(at||(at={}));const st=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:h,showingMostEngaging:v,isMarryBaby:f,hasShare:b=!0,hasCountLike:y=!0,trackingCategory:x="Together",trackingLabel:C="",children:N}=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:L}}}=i(q),T=Boolean(f)?f:L,{t:P}=w();return o.createElement($e.Provider,{value:{liked:s,loveCount:n,trackingCategory:x,trackingLabel:C,isReplied:c,onLikeClick:m,onShareClick:p,onCommentClick:d}},N||o.createElement("div",Object.assign({className:`${ot} ${u}`,"data-show-most-engaging":v,"data-type":a===at.post?"post":"reply","data-reply-padding":a===at.reply&&r,"data-is-marrybaby":T,style:g},A),o.createElement("div",{className:nt},o.createElement("div",{className:it},o.createElement(Je,null,o.createElement(Le,{className:lt,style:{marginRight:"25px"},size:"p3",as:"div"},o.createElement(k,{className:"txt-icon",isMarryBaby:T,isSolid:s,color:s?T?E.mbColors.pink:E.colors.red800:"#737373"}),y&&o.createElement("div",{className:rt},n))),b&&o.createElement(et,null,o.createElement(Le,{size:"p3",className:lt,as:"div"},o.createElement(Se.Share,{isMarryBaby:T})))),!h&&o.createElement(tt,null,o.createElement(Le,{size:"p3",className:lt,as:"div"},c?o.createElement(Se.Reply,{className:"txt-icon"}):o.createElement(Se.Comment,{className:"txt-icon",isMarryBaby:T}),c?P("cardReactions.reply"):o.createElement("div",{className:rt},P("post.commentCount",{count:l})))))))};st.LikeWrapper=Je,st.ShareWrapper=et,st.CommentWrapper=tt;const ct=p((e=>({wrapper:{display:"flex",width:"100%",padding:"0.5rem 0",cursor:"grab",overflowX:"auto","::-webkit-scrollbar":{width:0},"&.sliding":{cursor:"grabbing",userSelect:"none",a:{pointerEvents:"none"}}},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",marginLeft:"0.5rem","*":{pointerEvents:"none"},"&:first-child":{marginLeft:0}},text:{}}))),dt=e=>{var{topics:a,onClick:n,className:s,style:c,trackingCategory:d="Together",locale:m,classNames:p,styles:u,unstyled:g}=e,h=t(e,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled"]);const{classes:v}=ct(void 0,{name:"TagTopic",classNames:p,styles:u,unstyled:g}),{sliding:f,mouseDownHandler:b,sliderRef:y}=(()=>{const[e,t]=l(!1),a=r(null),o=r(null),n=r();return{sliding:e,mouseDownHandler:function(e){if(a.current){n.current=setTimeout((()=>{t(!0)}),500),o.current={left:a.current.scrollLeft,x:e.clientX};const i=function(e){const t=o.current;if(t){const o=e.clientX-t.x;a.current&&(a.current.scrollLeft=t.left-o)}},l=function(){n.current&&(clearTimeout(n.current),n.current=void 0),t(!1),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",l)};document.addEventListener("mousemove",i,{passive:!0}),document.addEventListener("mouseup",l,{passive:!0})}},sliderRef:a,pos:o}})(),{data:{env:{togetherBasePath:w}},action:{sanitizeFunction:x}}=i(q);return o.createElement("div",Object.assign({ref:y,onClick:n,onMouseDown:e=>b(e),className:`${v.wrapper} ${s} ${f?"sliding":""}`,style:c},h),a.map(((e,t)=>o.createElement("a",{className:v.item,key:t,"data-event-category":d,"data-event-action":"Topic in Post Click","data-event-label":`${Y(m)}${w}${e.url}`,href:e.isActive&&!e.isHidden?`${w}${e.url}`:void 0},o.createElement(Le,{size:"p4"},o.createElement("span",{dangerouslySetInnerHTML:{__html:(null==x?void 0:x(e.name))||e.name}}))))))},mt=R.div`
|
|
98
98
|
display: flex;
|
|
99
99
|
align-items: center;
|
|
100
100
|
justify-content: space-between;
|
|
@@ -473,7 +473,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
`,vt=({className:e,style:t,toggleButtonContent:a,position:n="bottom",align:c="end",children:d,buttonProps:m})=>{const{data:{env:{isMarryBaby:p}}}=i(q),[u,g]=l(!1),h=r(null),v=r(u);return s((()=>{var e;v.current=u,u&&(null===(e=h.current)||void 0===e||e.focus())}),[u]),s((()=>{const e=e=>{var t;!(null===(t=h.current)||void 0===t?void 0:t.contains(e.target))&&v.current&&g(!1)};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),o.createElement(gt,{"data-is-marrybaby":p,className:e,style:t},o.createElement(je,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:h,className:`popover-menu__content --position-${n} --align-${c}`,tabIndex:0,onClick:e=>e.stopPropagation()},"function"==typeof d?d({setShow:g}):d):null)};const
|
|
476
|
+
`,vt=({className:e,style:t,toggleButtonContent:a,position:n="bottom",align:c="end",children:d,buttonProps:m})=>{const{data:{env:{isMarryBaby:p}}}=i(q),[u,g]=l(!1),h=r(null),v=r(u);return s((()=>{var e;v.current=u,u&&(null===(e=h.current)||void 0===e||e.focus())}),[u]),s((()=>{const e=e=>{var t;!(null===(t=h.current)||void 0===t?void 0:t.contains(e.target))&&v.current&&g(!1)};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),o.createElement(gt,{"data-is-marrybaby":p,className:e,style:t},o.createElement(je,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:h,className:`popover-menu__content --position-${n} --align-${c}`,tabIndex:0,onClick:e=>e.stopPropagation()},"function"==typeof d?d({setShow:g}):d):null)};const ft=e=>{var{data:a}=e,n=t(e,["data"]);return o.createElement(vt,Object.assign({},n),(({setShow:e})=>o.createElement(bt,{data:a,setShow:e})))},bt=({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(ht,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(".")))}):null,r.title?o.createElement(C,{className:"__title",tag:"h6"},r.title):null):null,r.description?o.createElement(Le,{className:"tree-text-description",color:E.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}),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"}):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"}):null))):null):null))};var yt;!function(e){e.latest="latest",e.oldest="oldest",e.popular="popular"}(yt||(yt={}));const wt=({onChange:e,className:t,style:a,leftLabel:n,rightLabel:l,color:r,value:s,choices:c})=>{const{data:{env:{isMarryBaby:d}}}=i(q);return o.createElement(pt,{label:n,rightLabel:o.createElement(ft,{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"}}))}),color:"gray",className:t,style:a})},xt=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"}))};var Et="dZWeHns",Ct="tMiOKib",kt="uDcqD-2",Nt="pDlsows",At="m-HVXw1";const Lt=({children:e,className:t=""})=>o.createElement("div",{className:`${Ct} ${t}`},e),Tt=({children:e,className:t=""})=>o.createElement("div",{className:`${kt} ${t}`},e);var Pt="sTU4T4I",It="tCql9Je",St="_3j7uYhH",Mt="PHABgoT";const zt=({avatarProps:e,title:t,subTitle:a,children:n,className:i="",style:l,onAvatarClick:r,avatarIcon:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>o.createElement("div",{className:`${Pt} ${i}`,style:l},o.createElement("div",{className:St,onClick:r,"data-event-category":c,"data-event-action":d,"data-event-label":m},o.createElement(J,Object.assign({},e)),s&&o.createElement("div",{className:Mt},s)),o.createElement("div",{className:`${It} ${i}`},n||o.createElement(o.Fragment,null,t&&o.createElement(Lt,null,t),a&&o.createElement(Tt,null,a))));zt.MainText=Lt,zt.SubText=Tt,zt.SubDivider=({className:e=""})=>o.createElement("span",{className:`${At} ${e}`}),zt.Row=({children:e,className:t=""})=>o.createElement("div",{className:`${Et} ${t} row`},e),zt.ColLeft=({children:e,className:t=""})=>o.createElement("div",{className:`${t} col-left`},e),zt.ColRight=({children:e,className:t=""})=>o.createElement("div",{className:`${t} col-right`},e),zt.SubTextRow=({children:e,className:t=""})=>o.createElement("div",{className:`${Nt} ${t}`},e);const jt=R.div`
|
|
477
477
|
position: fixed;
|
|
478
478
|
left: 50%;
|
|
479
479
|
width: 343px;
|
|
@@ -641,7 +641,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
641
641
|
li {
|
|
642
642
|
list-style-type: disc;
|
|
643
643
|
}
|
|
644
|
-
`;var Vt="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",Dt="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 Ut=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,doctorId:n,locale:i,isMobile:r,overwriteProfileProps:c,avatarFallback:d=M.getAssetPath("avatar.jpg"),trackingCategory:m="Together"})=>{var p,u,g;const{t:h}=w(),[v,
|
|
644
|
+
`;var Vt="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",Dt="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 Ut=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,doctorId:n,locale:i,isMobile:r,overwriteProfileProps:c,avatarFallback:d=M.getAssetPath("avatar.jpg"),trackingCategory:m="Together"})=>{var p,u,g;const{t:h}=w(),[v,f]=l(null),[b,y]=l(!1);s((()=>{if(e&&n&&String(null==v?void 0:v.id)!==String(n)){y(!0);try{f(null),Q(ee(te.GET_DOCTOR_INFO,{doctorId:n,website_url:ae[i]}),"get").then((e=>{f(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),c))}))}catch(e){console.error(e)}y(!1)}}),[e,n,null==v?void 0:v.id]);const x=(null==v?void 0:v.experiences)||[],C=((null==v?void 0:v.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),k=x.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(jt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},b||!v?o.createElement(Qe,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Vt,style:{width:20,height:20},alt:"close-icon"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Bt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(he,{src:null==v?void 0:v.avatar,fallbackSrc:d,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:Dt,alt:"badge"})))),o.createElement(Ot,null,o.createElement(Le,{size:"s3",type:"semiBold",className:"full-name"},null==v?void 0:v.name),o.createElement("div",{className:"specialty"},C&&o.createElement(o.Fragment,null,o.createElement(Le,{size:"p4",color:E.colors.gray800},C," • ")),o.createElement("a",{href:oe({id:null===(p=null==v?void 0:v.organization)||void 0===p?void 0:p.id,name:null===(u=null==v?void 0:v.organization)||void 0===u?void 0:u.name,slug:null===(g=null==v?void 0:v.organization)||void 0===g?void 0:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(Le,{size:"p4",className:"organisation",color:E.colors.gray800,style:{textDecoration:"underline"}},null==v?void 0:v.organization.name))))),!r&&o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:ne({name:v.name,id:v.id,locale:i})},o.createElement(je,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment"))))),k&&o.createElement(Ot,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"s3",color:E.colors.gray800,style:{paddingBottom:16}},h("expert.content.description").toUpperCase()),o.createElement(Rt,null,k.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:ne({name:v.name,id:v.id,locale:i})},o.createElement(je,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment")))):o.createElement("a",{href:ne({name:v.name,id:v.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":Y(i)+ne({name:v.name,id:v.id,locale:i})},h("home.seeExpert"))))))),o.createElement(Ft,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},Wt=R.div`
|
|
645
645
|
position: fixed;
|
|
646
646
|
left: 50%;
|
|
647
647
|
width: 343px;
|
|
@@ -959,7 +959,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
959
959
|
width: 24px;
|
|
960
960
|
height: 24px;
|
|
961
961
|
}
|
|
962
|
-
`;const Jt=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=M.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=w(),[g,h]=l(null),[v,b]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){b(!0);try{h(null),Q(ee(te.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:ae[i]}),"get").then((e=>{h(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(Xt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},v||!g?o.createElement(Qe,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Vt,style:{width:20,height:20},alt:"close-icon"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement($t,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(he,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",fallbackSrc:m}),o.createElement("img",{className:"badge-avatar",src:Dt,alt:"badge"})))),o.createElement(Yt,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:E.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:oe({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:E.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:oe({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(je,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(Yt,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"s3",color:E.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(Le,{size:"p2",color:E.colors.gray500},g.about),r?o.createElement("a",{href:oe({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(je,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:oe({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":Y(i)+oe({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(Kt,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};var ea="_2UKyiK1",ta="E5ga-tI",aa="_8Y2nWXX",oa="d0T7kSP";const na=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=w();return o.createElement(Ve,Object.assign({className:ea,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:ta},o.createElement("div",{className:aa},i("profilePanel.modal.heading")),o.createElement("div",{className:oa,onClick:t},o.createElement(We,null))),a)};var ia=p((()=>({root:{},authorBadge:{background:"yellow"}})));O.extend(Re);const la=n({}),ra=({siteType:e})=>{const{t:t}=w(),{handleMakeAppointment:a,doctorId:n,hospitalId:l,currentUrl:r}=i(la);return o.createElement(je,{theme:e,color:"primary",size:"xs",onClick:e=>{null==a||a(n,l),e.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:r,icon:o.createElement(A,{className:"buttonIcon",size:18}),iconPosition:"right",style:{whiteSpace:"nowrap"}},o.createElement("span",null,t("careBooking.bookAnAppointment")))},sa=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:m,title:p,userType:g="user",expertId:h,isMarryBaby:v,doctorId:b,hospitalId:f,hasQuickBooking:y,handleMakeAppointment:x,communityTrackingAttr:C,isAnonymous:k,showDetailPopup:A,subLine:L,authActionWrapper:T,profileProps:P,profileModalProps:I,extendEle:S,avatarProps:j,hideInfo:F,timeText:B,onCloseFromPost:O,avatarIcon:R,badgeIconSize:V,hideBackground:D,children:U,styles:Z,dataEventCategory:H,dataEventAction:_,dataEventLabel:G}=e,{data:{locale:Q,router:X,env:{isMarryBaby:K,togetherBasePath:$}}}=i(q),{t:Y}=w(),{classes:J}=ia(void 0,{name:"CardAuthor",styles:Z}),ee="boolean"==typeof v?v:K,te=ee?"marryBaby":"helloSites",ae=k?Y("cardPost.anonymous"):n||r||"",oe=k?M.getAssetPath("avatar.jpg"):d,ne=k?void 0:m,[ie,le]=l(!1),{asPath:re}=X||{},se=`https://${z[Q]}${re}`,ce=()=>{if(k||"chatbot"===g)return!1;A?me(!0):c&&(window.location.href=c)};s((()=>{W(ie)}),[ie]);const[de,me]=l(!1),pe="expert"===(null==e?void 0:e.role),[ue,ge]=l(null);return s((()=>{de&&!ue&&Promise.resolve().then((function(){return On})).then((e=>{ge((()=>e.ProfileDetail))}))}),[de]),o.createElement(la.Provider,{value:{handleMakeAppointment:x,doctorId:b,hospitalId:f,currentUrl:se}},o.createElement(na,{open:de,onClose:()=>me(!1),profileModalProps:I},ue&&o.createElement(ue,Object.assign({currentPageUrl:G,authorProps:{userId:null==e?void 0:e.userId,avatar:oe,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title},authActionWrapper:T,onCloseFromPost:()=>{me(!1),null==O||O()}},P))),"expert"===ne&&h?o.createElement(Qt,{isOpen:ie,onClose:()=>le(!1),expertId:h}):null,"expert"===ne&&b?o.createElement(Ut,{isOpen:ie,onClose:()=>le(!1),doctorId:b,locale:Q}):null,"expert"===ne&&f?o.createElement(Jt,{isOpen:ie,onClose:()=>le(!1),hospitalId:f,locale:Q}):null,o.createElement("div",{className:`hhg-card-author ${J.root} ${t} ${pe?"expert-author":""}`,"data-background":!D&&pe,"data-is-marrybaby":ee},o.createElement(zt,{dataEventCategory:H,dataEventAction:_,dataEventLabel:G,onAvatarClick:ce,avatarProps:Object.assign(Object.assign({avatar:k?M.getAssetPath(ee?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):oe,username:ae},j),{style:{cursor:k||!c&&!A?"default":"pointer"}}),avatarIcon:R||pe&&o.createElement(xt,{size:V||15})},U?o.createElement("div",{onClick:ce},U):!F&&o.createElement(zt.Row,null,o.createElement(zt.ColLeft,null,o.createElement(u,{align:"center",onClick:ce},o.createElement(zt.MainText,{onClick:ce},ae,"chatbot"===g?o.createElement(o.Fragment,null," ",o.createElement(N,{color:E.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):ne&&o.createElement(ve,{className:J.authorBadge,siteType:te,role:ne,title:p,style:{verticalAlign:"bottom"}}))),L||o.createElement(zt.SubTextRow,null,(null==a?void 0:a.name)&&o.createElement(zt.SubText,null,o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${$}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},C),`${null==a?void 0:a.name}`)),B&&o.createElement(o.Fragment,null,o.createElement(zt.SubDivider,null),o.createElement(zt.SubText,{className:"time-text"},B)))),y&&o.createElement(zt.ColRight,null,o.createElement(ra,{siteType:te})))),S&&S))};sa.BookingBtn=ra,sa.MainText=zt.MainText,sa.SubText=zt.SubText,sa.SubTextRow=zt.SubTextRow,sa.SubDivider=zt.SubDivider;const ca=e=>({message:e("notification.failure"),type:"danger"});var da="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 ma=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,pa=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,ua=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,ga=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ha=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,va=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,ba=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,fa=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ya=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,wa=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,xa=({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},Ea=(e,t)=>e.replace(ua,((e,a,o)=>xa({text:o||a,url:a,method:t}))).replace(ya,((e,a,o)=>xa({text:o||a,url:a,method:t}))),Ca=(e,t=[])=>e.replace(va,((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>`})),ka=e=>{const t=[];return e.replace(/(\&)+/g,"&").replace(pa,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},Na=(e,t)=>{const a=[];return e.replace(ga,((e,t)=>(a.push(t),e))).replace(va,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Aa=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),La=e=>e.replace(wa,"$1"),Ta=(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(pa,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(ma,((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(ga,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(La(e)),t),Pa=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Ia=e=>e.match(fa)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Sa=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return La(e).replace(new RegExp(`\\b(${a.map((e=>Aa(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},Ma=(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?se:ce,l=yield i(X(o?re.COMMENT.IMAGE_UPLOAD:K.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),za=(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}},ja=R.div`
|
|
962
|
+
`;const Jt=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=M.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=w(),[g,h]=l(null),[v,f]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){f(!0);try{h(null),Q(ee(te.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:ae[i]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}f(!1)}}),[e,n,null==g?void 0:g.id]);const b=(null==g?void 0:g.specialties)||[],y=c((()=>b.map((e=>e.name))),[b]);return o.createElement(o.Fragment,null,o.createElement(Xt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},v||!g?o.createElement(Qe,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Vt,style:{width:20,height:20},alt:"close-icon"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement($t,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(he,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",fallbackSrc:m}),o.createElement("img",{className:"badge-avatar",src:Dt,alt:"badge"})))),o.createElement(Yt,null,o.createElement(Le,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},b&&o.createElement(Le,{size:"p4",color:E.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:oe({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:E.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:oe({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(je,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(Yt,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"s3",color:E.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(Le,{size:"p2",color:E.colors.gray500},g.about),r?o.createElement("a",{href:oe({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(je,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:oe({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":Y(i)+oe({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(Kt,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};var ea="_2UKyiK1",ta="E5ga-tI",aa="_8Y2nWXX",oa="d0T7kSP";const na=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=w();return o.createElement(Ve,Object.assign({className:ea,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:ta},o.createElement("div",{className:aa},i("profilePanel.modal.heading")),o.createElement("div",{className:oa,onClick:t},o.createElement(We,null))),a)};var ia=p((()=>({root:{},authorBadge:{background:"yellow"}})));O.extend(Re);const la=n({}),ra=({siteType:e})=>{const{t:t}=w(),{handleMakeAppointment:a,doctorId:n,hospitalId:l,currentUrl:r}=i(la);return o.createElement(je,{theme:e,color:"primary",size:"xs",onClick:e=>{null==a||a(n,l),e.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:r,icon:o.createElement(A,{className:"buttonIcon",size:18}),iconPosition:"right",style:{whiteSpace:"nowrap"}},o.createElement("span",null,t("careBooking.bookAnAppointment")))},sa=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:m,title:p,userType:g="user",expertId:h,isMarryBaby:v,doctorId:f,hospitalId:b,hasQuickBooking:y,handleMakeAppointment:x,communityTrackingAttr:C,isAnonymous:k,showDetailPopup:A,subLine:L,authActionWrapper:T,profileProps:P,profileModalProps:I,extendEle:S,avatarProps:j,hideInfo:F,timeText:B,onCloseFromPost:O,avatarIcon:R,badgeIconSize:V,hideBackground:D,children:U,styles:Z,dataEventCategory:H,dataEventAction:_,dataEventLabel:G}=e,{data:{locale:Q,router:X,env:{isMarryBaby:K,togetherBasePath:$}}}=i(q),{t:Y}=w(),{classes:J}=ia(void 0,{name:"CardAuthor",styles:Z}),ee="boolean"==typeof v?v:K,te=ee?"marryBaby":"helloSites",ae=k?Y("cardPost.anonymous"):n||r||"",oe=k?M.getAssetPath("avatar.jpg"):d,ne=k?void 0:m,[ie,le]=l(!1),{asPath:re}=X||{},se=`https://${z[Q]}${re}`,ce=()=>{if(k||"chatbot"===g)return!1;A?me(!0):c&&(window.location.href=c)};s((()=>{W(ie)}),[ie]);const[de,me]=l(!1),pe="expert"===(null==e?void 0:e.role),[ue,ge]=l(null);return s((()=>{de&&!ue&&Promise.resolve().then((function(){return On})).then((e=>{ge((()=>e.ProfileDetail))}))}),[de]),o.createElement(la.Provider,{value:{handleMakeAppointment:x,doctorId:f,hospitalId:b,currentUrl:se}},o.createElement(na,{open:de,onClose:()=>me(!1),profileModalProps:I},ue&&o.createElement(ue,Object.assign({currentPageUrl:G,authorProps:{userId:null==e?void 0:e.userId,avatar:oe,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title},authActionWrapper:T,onCloseFromPost:()=>{me(!1),null==O||O()}},P))),"expert"===ne&&h?o.createElement(Qt,{isOpen:ie,onClose:()=>le(!1),expertId:h}):null,"expert"===ne&&f?o.createElement(Ut,{isOpen:ie,onClose:()=>le(!1),doctorId:f,locale:Q}):null,"expert"===ne&&b?o.createElement(Jt,{isOpen:ie,onClose:()=>le(!1),hospitalId:b,locale:Q}):null,o.createElement("div",{className:`hhg-card-author ${J.root} ${t} ${pe?"expert-author":""}`,"data-background":!D&&pe,"data-is-marrybaby":ee},o.createElement(zt,{dataEventCategory:H,dataEventAction:_,dataEventLabel:G,onAvatarClick:ce,avatarProps:Object.assign(Object.assign({avatar:k?M.getAssetPath(ee?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):oe,username:ae},j),{style:{cursor:k||!c&&!A?"default":"pointer"}}),avatarIcon:R||pe&&o.createElement(xt,{size:V||15})},U?o.createElement("div",{onClick:ce},U):!F&&o.createElement(zt.Row,null,o.createElement(zt.ColLeft,null,o.createElement(u,{align:"center",onClick:ce},o.createElement(zt.MainText,{onClick:ce},ae,"chatbot"===g?o.createElement(o.Fragment,null," ",o.createElement(N,{color:E.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):ne&&o.createElement(ve,{className:J.authorBadge,siteType:te,role:ne,title:p,style:{verticalAlign:"bottom"}}))),L||o.createElement(zt.SubTextRow,null,(null==a?void 0:a.name)&&o.createElement(zt.SubText,null,o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${$}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},C),`${null==a?void 0:a.name}`)),B&&o.createElement(o.Fragment,null,o.createElement(zt.SubDivider,null),o.createElement(zt.SubText,{className:"time-text"},B)))),y&&o.createElement(zt.ColRight,null,o.createElement(ra,{siteType:te})))),S&&S))};sa.BookingBtn=ra,sa.MainText=zt.MainText,sa.SubText=zt.SubText,sa.SubTextRow=zt.SubTextRow,sa.SubDivider=zt.SubDivider;const ca=e=>({message:e("notification.failure"),type:"danger"});var da="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 ma=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,pa=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,ua=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,ga=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ha=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,va=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,fa=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ba=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ya=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,wa=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,xa=({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},Ea=(e,t)=>e.replace(ua,((e,a,o)=>xa({text:o||a,url:a,method:t}))).replace(ya,((e,a,o)=>xa({text:o||a,url:a,method:t}))),Ca=(e,t=[])=>e.replace(va,((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>`})),ka=e=>{const t=[];return e.replace(/(\&)+/g,"&").replace(pa,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},Na=(e,t)=>{const a=[];return e.replace(ga,((e,t)=>(a.push(t),e))).replace(va,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Aa=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),La=e=>e.replace(wa,"$1"),Ta=(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(pa,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(ma,((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(ga,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(La(e)),t),Pa=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Ia=e=>e.match(ba)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Sa=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return La(e).replace(new RegExp(`\\b(${a.map((e=>Aa(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},Ma=(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?se:ce,l=yield i(X(o?re.COMMENT.IMAGE_UPLOAD:K.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),za=(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}},ja=R.div`
|
|
963
963
|
input:focus,
|
|
964
964
|
textarea:focus,
|
|
965
965
|
[contenteditable='true'] {
|
|
@@ -1277,7 +1277,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
`;let Ba=null;function Oa(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=Ra(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 Ra(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=Ra(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");Ba=e.default;const t=e.Quill||Ba.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 Va=(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(ha,((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:Sa(i,n)};let l=(e=>e.replace(wa,((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(ma,((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(ba)?a:n?`<a href="${n}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(pa,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return xa({text:t,url:t,method:"edit"})}return e})).replace(ya,((e,t,a)=>xa({text:a||t,url:t,method:"edit"})))})(i));const r=(e=>{var t;return[...ka(e),...(null===(t=e.match(ma))||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);Pa.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(Aa).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Aa).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:Sa(l,n)}}return{value:Sa(l,n)}},Da=({html:t,onChange:a,className:n,style:c,onImagePickerClick:m,bannedWords:p=[],onInvalidUrlsChange:u,onPreviewUrlChange:g,setEditorRef:h,isReplying:v})=>{var b,f,y,w;const x=r([]);x.current=p;const[E,C]=l([]),[k,N]=l(null),{data:{locale:A}}=i(q),L=(null==p?void 0:p.join(","))||"";s((()=>{var e,t;const a=null===(t=null===(e=F.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;I(a)}),[L]);const T=e=>{k&&k.url===e||(N({url:e,isFetching:!0}),Q(X(K.FETCH_PREVIEW,{_locale:A}),"POST",{data:{link:e}}).then((t=>{var a,o,n,i;N({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((()=>{N(null)})))},P=r(T);P.current=T;const I=d(Pe((e=>{if(e){const t=Va(e,{bannedWords:x.current,formatUrl:!0}),{invalidUrls:o,previewUrl:n,value:i}=t;o&&C(o),n?P.current(n):N(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 S=r(m);S.current=m;const M=De(),z=r({toolbar:{handlers:{image:()=>{var e;return null===(e=S.current)||void 0===e?void 0:e.call(S)},link:()=>!1},container:"#toolbar-"+M},preserveWhiteSpace:!0}),j=r(-1),F=r(null);h&&(null===(f=null===(b=F.current)||void 0===b?void 0:b.getEditor())||void 0===f?void 0:f.root)&&h(null===(w=null===(y=F.current)||void 0===y?void 0:y.getEditor())||void 0===w?void 0:w.root);const B=()=>{var e,t,a,o,n,i,l,r;if(null===(t=null===(e=F.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Oa(null===(o=null===(a=F.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(i=null===(n=F.current)||void 0===n?void 0:n.getEditor())||void 0===i?void 0:i.root.innerHTML;if(e>=0&&e<t.length){if(Na(t,!0).length<30-(v?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=F.current)||void 0===l?void 0:l.getEditor())||void 0===r?void 0:r.root);e?(U(e.name,e.rect),H.current=e.replaceRange):(H.current=null,U("",null))}else H.current=null,U("",null);j.current=e}}else R([])},[O,R]=l([]),[V,D]=l({top:0,left:0}),U=d(Pe(((t,a,o)=>e(void 0,void 0,void 0,(function*(){var e,n,i,l;if(!t||!DOMRect)return R([]);const r=yield((null===(e=Be(_))||void 0===e?void 0:e.length)||0)>0?ce(X(K.SEARCH_USER,{_locale:A,name:t}),"get"):se(X(re.SEARCH_USER,{_locale:A,name:t}),"get");Y(0),R(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=Z.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,D(a)}}))),500),[]),W=(e,t)=>{var a,o,n;if(H.current){H.current.deleteContents();const i=document.createElement("mention");i.setAttribute("data-id",e),i.setAttribute("data-name",t),i.innerText=t;const l=document.createTextNode(" ");H.current.insertNode(l),H.current.insertNode(i);(null===(o=null===(a=F.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(H.current.endContainer,H.current.endOffset),null==r||r.setEnd(H.current.endContainer,H.current.endOffset)}R([])},Z=r(null),H=r(null),G=r(null),[$,Y]=l(0);return s((()=>{if(G.current){const e=G.current,t=e.children.item($);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)}}}),[$]),s((()=>{const e=function(e){var t;(null===(t=Z.current)||void 0===t?void 0:t.contains(e.target))||R([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),o.createElement(Fa,{ref:Z,className:n,style:c,onKeyDownCapture:e=>{if(null==O?void 0:O.length){let t=!1;if("ArrowDown"===e.key)t=!0,Y((e=>e+1>=O.length?0:e+1));else if("Escape"===e.key)t=!0,Y(0),R([]);else if("ArrowUp"===e.key)t=!0,Y((e=>e-1<0?O.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=O[$];e&&(t=!0,W(e.id,e.name))}if(t)return e.preventDefault(),!1}}},o.createElement(Ua,{id:M,onAddLink:(e,t)=>{var o,n;const i=j.current+1,l=null===(n=null===(o=F.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),I(r)}}),Ba&&o.createElement(Ba,{ref:F,theme:"snow",value:t,onChange:e=>{null==a||a(e),I(e),B()},onChangeSelection:()=>{B()},modules:z.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==O?void 0:O.length)&&o.createElement("div",{ref:G,className:"mention-search-container",style:V},O.map(((e,t)=>o.createElement("div",{className:"mention-search-item "+($===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),W(e.id,e.name)},onMouseEnter:()=>{Y(t)}},o.createElement(J,{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)))))))},Ua=({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(vt,{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"}),buttonProps:{size:"md",color:"transparent"},align:"end"},(({setShow:t})=>o.createElement(Za,{onAddUrl:e,setShow:t}))))),Wa=["notification.limitUrlDomain","notification.urlWrongFormat"],Za=({onAddUrl:e,setShow:t})=>{const{data:{env:{isMarryBaby:a}}}=i(q),{t:n}=w(),[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(Te,{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=Ia(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Pa.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(Wa[m])),o.createElement(Te,{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(je,{theme:a?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{u&&(e(c.trim(),Ia(r.trim())),t&&t(!1))},isDisabled:!u},n("insert"))))};var Ha="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 qa=({className:e,style:t,bannedWords:a=[],value:n,onChange:i,onPreviewUrlChange:c,onInvalidUrlsChange:d,onImageFilesChange:m,imageFiles:p,isReplying:u})=>{const{t:g}=w(),[h,v]=l(null),b=r(null),{onSelectImages:f,onRemoveImage:y,imageSrcs:C}=za(p,m);return s((()=>{c&&((null==h?void 0:h.url)?c({title:h.title||"",url:h.url||"",image:h.image||"",description:h.description||""}):c(null))}),[h]),o.createElement(ja,{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(Da,{html:n||"",onChange:i,bannedWords:a,onImagePickerClick:()=>{var e;return null===(e=b.current)||void 0===e?void 0:e.click()},onPreviewUrlChange:v,onInvalidUrlsChange:d,isReplying:u}))),o.createElement(Le,{size:"p4",className:"count-string"},g("character"),": ",x(n||"").length),(!C||0===C.length)&&h&&o.createElement("div",{className:"link-preview-wrapper"},h.isFetching?o.createElement(Qe,null):o.createElement(o.Fragment,null,o.createElement(Ke,{title:h.title,url:h.url||"#",image:h.image,noRefetch:!0}),o.createElement("img",{src:Ha,className:"icon-close",onClick:()=>v(null)}))),o.createElement("input",{ref:b,type:"file",accept:"image/png, image/gif, image/jpeg",multiple:!0,style:{display:"none"},onChange:f}),C.length>de?o.createElement("div",{className:"input-notification"},o.createElement("img",{src:da}),o.createElement(Le,{size:"p4",color:E.colors.alertWarning},g("createPost.popup.warningImage"))):null,C.length>0&&o.createElement("div",{className:"image-gallery"},C.map(((e,t)=>o.createElement("div",{key:t,className:"image-item"},o.createElement("img",{src:e}),o.createElement("img",{className:"close-btn",src:Ha,onClick:()=>y(t)}))))))},_a=R.div`
|
|
1280
|
+
`;let Ba=null;function Oa(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=Ra(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 Ra(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=Ra(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");Ba=e.default;const t=e.Quill||Ba.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 Va=(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(ha,((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:Sa(i,n)};let l=(e=>e.replace(wa,((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(ma,((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(fa)?a:n?`<a href="${n}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(pa,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return xa({text:t,url:t,method:"edit"})}return e})).replace(ya,((e,t,a)=>xa({text:a||t,url:t,method:"edit"})))})(i));const r=(e=>{var t;return[...ka(e),...(null===(t=e.match(ma))||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);Pa.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(Aa).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Aa).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:Sa(l,n)}}return{value:Sa(l,n)}},Da=({html:t,onChange:a,className:n,style:c,onImagePickerClick:m,bannedWords:p=[],onInvalidUrlsChange:u,onPreviewUrlChange:g,setEditorRef:h,isReplying:v})=>{var f,b,y,w;const x=r([]);x.current=p;const[E,C]=l([]),[k,N]=l(null),{data:{locale:A}}=i(q),L=(null==p?void 0:p.join(","))||"";s((()=>{var e,t;const a=null===(t=null===(e=F.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;I(a)}),[L]);const T=e=>{k&&k.url===e||(N({url:e,isFetching:!0}),Q(X(K.FETCH_PREVIEW,{_locale:A}),"POST",{data:{link:e}}).then((t=>{var a,o,n,i;N({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((()=>{N(null)})))},P=r(T);P.current=T;const I=d(Pe((e=>{if(e){const t=Va(e,{bannedWords:x.current,formatUrl:!0}),{invalidUrls:o,previewUrl:n,value:i}=t;o&&C(o),n?P.current(n):N(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 S=r(m);S.current=m;const M=De(),z=r({toolbar:{handlers:{image:()=>{var e;return null===(e=S.current)||void 0===e?void 0:e.call(S)},link:()=>!1},container:"#toolbar-"+M},preserveWhiteSpace:!0}),j=r(-1),F=r(null);h&&(null===(b=null===(f=F.current)||void 0===f?void 0:f.getEditor())||void 0===b?void 0:b.root)&&h(null===(w=null===(y=F.current)||void 0===y?void 0:y.getEditor())||void 0===w?void 0:w.root);const B=()=>{var e,t,a,o,n,i,l,r;if(null===(t=null===(e=F.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Oa(null===(o=null===(a=F.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(i=null===(n=F.current)||void 0===n?void 0:n.getEditor())||void 0===i?void 0:i.root.innerHTML;if(e>=0&&e<t.length){if(Na(t,!0).length<30-(v?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=F.current)||void 0===l?void 0:l.getEditor())||void 0===r?void 0:r.root);e?(U(e.name,e.rect),H.current=e.replaceRange):(H.current=null,U("",null))}else H.current=null,U("",null);j.current=e}}else R([])},[O,R]=l([]),[V,D]=l({top:0,left:0}),U=d(Pe(((t,a,o)=>e(void 0,void 0,void 0,(function*(){var e,n,i,l;if(!t||!DOMRect)return R([]);const r=yield((null===(e=Be(_))||void 0===e?void 0:e.length)||0)>0?ce(X(K.SEARCH_USER,{_locale:A,name:t}),"get"):se(X(re.SEARCH_USER,{_locale:A,name:t}),"get");Y(0),R(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=Z.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,D(a)}}))),500),[]),W=(e,t)=>{var a,o,n;if(H.current){H.current.deleteContents();const i=document.createElement("mention");i.setAttribute("data-id",e),i.setAttribute("data-name",t),i.innerText=t;const l=document.createTextNode(" ");H.current.insertNode(l),H.current.insertNode(i);(null===(o=null===(a=F.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(H.current.endContainer,H.current.endOffset),null==r||r.setEnd(H.current.endContainer,H.current.endOffset)}R([])},Z=r(null),H=r(null),G=r(null),[$,Y]=l(0);return s((()=>{if(G.current){const e=G.current,t=e.children.item($);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)}}}),[$]),s((()=>{const e=function(e){var t;(null===(t=Z.current)||void 0===t?void 0:t.contains(e.target))||R([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),o.createElement(Fa,{ref:Z,className:n,style:c,onKeyDownCapture:e=>{if(null==O?void 0:O.length){let t=!1;if("ArrowDown"===e.key)t=!0,Y((e=>e+1>=O.length?0:e+1));else if("Escape"===e.key)t=!0,Y(0),R([]);else if("ArrowUp"===e.key)t=!0,Y((e=>e-1<0?O.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=O[$];e&&(t=!0,W(e.id,e.name))}if(t)return e.preventDefault(),!1}}},o.createElement(Ua,{id:M,onAddLink:(e,t)=>{var o,n;const i=j.current+1,l=null===(n=null===(o=F.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),I(r)}}),Ba&&o.createElement(Ba,{ref:F,theme:"snow",value:t,onChange:e=>{null==a||a(e),I(e),B()},onChangeSelection:()=>{B()},modules:z.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==O?void 0:O.length)&&o.createElement("div",{ref:G,className:"mention-search-container",style:V},O.map(((e,t)=>o.createElement("div",{className:"mention-search-item "+($===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),W(e.id,e.name)},onMouseEnter:()=>{Y(t)}},o.createElement(J,{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)))))))},Ua=({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(vt,{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"}),buttonProps:{size:"md",color:"transparent"},align:"end"},(({setShow:t})=>o.createElement(Za,{onAddUrl:e,setShow:t}))))),Wa=["notification.limitUrlDomain","notification.urlWrongFormat"],Za=({onAddUrl:e,setShow:t})=>{const{data:{env:{isMarryBaby:a}}}=i(q),{t:n}=w(),[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(Te,{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=Ia(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Pa.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(Wa[m])),o.createElement(Te,{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(je,{theme:a?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{u&&(e(c.trim(),Ia(r.trim())),t&&t(!1))},isDisabled:!u},n("insert"))))};var Ha="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 qa=({className:e,style:t,bannedWords:a=[],value:n,onChange:i,onPreviewUrlChange:c,onInvalidUrlsChange:d,onImageFilesChange:m,imageFiles:p,isReplying:u})=>{const{t:g}=w(),[h,v]=l(null),f=r(null),{onSelectImages:b,onRemoveImage:y,imageSrcs:C}=za(p,m);return s((()=>{c&&((null==h?void 0:h.url)?c({title:h.title||"",url:h.url||"",image:h.image||"",description:h.description||""}):c(null))}),[h]),o.createElement(ja,{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(Da,{html:n||"",onChange:i,bannedWords:a,onImagePickerClick:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.click()},onPreviewUrlChange:v,onInvalidUrlsChange:d,isReplying:u}))),o.createElement(Le,{size:"p4",className:"count-string"},g("character"),": ",x(n||"").length),(!C||0===C.length)&&h&&o.createElement("div",{className:"link-preview-wrapper"},h.isFetching?o.createElement(Qe,null):o.createElement(o.Fragment,null,o.createElement(Ke,{title:h.title,url:h.url||"#",image:h.image,noRefetch:!0}),o.createElement("img",{src:Ha,className:"icon-close",onClick:()=>v(null)}))),o.createElement("input",{ref:f,type:"file",accept:"image/png, image/gif, image/jpeg",multiple:!0,style:{display:"none"},onChange:b}),C.length>de?o.createElement("div",{className:"input-notification"},o.createElement("img",{src:da}),o.createElement(Le,{size:"p4",color:E.colors.alertWarning},g("createPost.popup.warningImage"))):null,C.length>0&&o.createElement("div",{className:"image-gallery"},C.map(((e,t)=>o.createElement("div",{key:t,className:"image-item"},o.createElement("img",{src:e}),o.createElement("img",{className:"close-btn",src:Ha,onClick:()=>y(t)}))))))},_a=R.div`
|
|
1281
1281
|
input:focus,
|
|
1282
1282
|
textarea:focus,
|
|
1283
1283
|
[contenteditable='true'] {
|
|
@@ -1384,7 +1384,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
`,Ka=({className:t,style:a,topics:n,communityId:d,onChange:m,isLoading:p,disabled:u,forceTopics:g,selectedTopics:h,noFetch:v,dataEventCategory:
|
|
1387
|
+
`,Ka=({className:t,style:a,topics:n,communityId:d,onChange:m,isLoading:p,disabled:u,forceTopics:g,selectedTopics:h,noFetch:v,dataEventCategory:f,dataEventAction:b,dataEventLabel:y})=>{const{data:{locale:w,env:{isMarryBaby:x}}}=i(q),[E,C]=l(n?[...n]:[]),[k,N]=l(h?[...h]:[]),[A,L]=l(!1),T=r(n);T.current=n,s((()=>{var t;!d||v||(null===(t=T.current)||void 0===t?void 0:t.length)||(C([]),L(!0),e(void 0,void 0,void 0,(function*(){var e;try{const t=yield Q(X(K.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(we).sort(((e,t)=>(e.order||0)-(t.order||0))))||[]))}catch(e){console.log(e),L(!1)}L(!1)})))}),[d,v]);const P=null==n?void 0:n.map((e=>e.id)).join("-"),I=null==E?void 0:E.map((e=>e.id)).join("-"),S=null==g?void 0:g.map((e=>e.id)).join("-");s((()=>{n&&void 0!==P&&P!==I&&C(n)}),[n,P,I]);const M=c((()=>E.filter((e=>!(null==g?void 0:g.some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)))))),[I,S]);return o.createElement(Xa,{"data-is-marrybaby":x,className:t,style:a},g.map((e=>o.createElement($a,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:!0,selected:!0,dataEventAction:b,dataEventCategory:f,dataEventLabel:y}))),M.map((e=>o.createElement($a,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:u,selected:(h||k).some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)),onClick:()=>{const t=h||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&&h?m(t.slice()):(m&&m(t.slice()),N(t.slice()))},dataEventAction:b,dataEventCategory:f,dataEventLabel:y}))),(p||A)&&o.createElement(Qe,{className:"topic-spinner"}))},$a=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)},Ya=R.div`
|
|
1388
1388
|
position: relative;
|
|
1389
1389
|
display: flex;
|
|
1390
1390
|
height: 100%;
|
|
@@ -1519,7 +1519,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
1519
1519
|
display: inline-block;
|
|
1520
1520
|
vertical-align: middle;
|
|
1521
1521
|
}
|
|
1522
|
-
`,to=({className:t,style:a,onPostCreatedEdited:n,onClose:r,communities:c=[],forceSelectCommunity:d,forceSelectTopics:m,articleId:p,optionalTopic:u,editPostData:h,defaultCommunity:v,defaultTopics:
|
|
1522
|
+
`,to=({className:t,style:a,onPostCreatedEdited:n,onClose:r,communities:c=[],forceSelectCommunity:d,forceSelectTopics:m,articleId:p,optionalTopic:u,editPostData:h,defaultCommunity:v,defaultTopics:f,noFetchTopic:b,hideTopicList:C,selectAskDoctor:k,showAskDoctorOptions:N,currentPageUrl:A})=>{const P=!!(null==h?void 0:h.id),{data:{locale:I,env:{isMarryBaby:S}},action:{pushNotifications:z,sanitizeFunction:F}}=i(q),{t:O}=w(),[R,V]=l(!1),[D,U]=l(k),[W,H]=l(!1),[_,G]=l(!1),[Q,$]=l(""),[Y,J]=l(""),[ee,te]=l(d?{label:d.name,value:`${d.id||""}-${d.mappedCategoryId||""}`}:{label:O("community.choose"),value:""}),[ae,oe]=l([...m]||[]),[ne,ie]=l([]),[le,re]=l([]),se=d||c.find((e=>`${e.id||""}-${e.mappedCategoryId||""}`===ee.value)),me=d?[d]:c.filter((e=>e.isActive)).sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),[pe,ue]=l(null),[ge,he]=l([]),ve=Q&&x(Y)&&(u||!u&&ae.length>0)&&se&&(!ne||ne.length<=de)&&!(null==ge?void 0:ge.length)&&!_;s((()=>{if(h){const e=h;$(e.title||""),J(Ca(Ea(e.description||"","edit"),e.mentions)),te({label:e.community.name,value:`${e.community.id||""}-${e.community.mappedCategoryId||""}`}),oe(e.topics||[]),ie(e.photos||[]),V(!!e.isAnonymous||!1),U(!!e.isAskDoctor||!1)}else v&&te({label:v.name,value:`${v.id||""}-${v.mappedCategoryId||""}`}),f&&oe(f)}),[]);const be=()=>e(void 0,void 0,void 0,(function*(){var t,a,o,i,l,s,c,d,m;if(N&&void 0===D)return H(!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:h})=>e(void 0,void 0,void 0,(function*(){const e=new FormData,v=La(a),f=La(t),b=Na(v);if(e.append("title",f),e.append("description",Ta(v,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",h?"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",Z(i.url)),(null==i?void 0:i.image)&&e.append("preview_image",Z(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(Ma(e,r))}),2e3*t)})))));null==t||t.filter(Boolean).slice(0,de).forEach(((t,a)=>{e.append(`images[${a}]`,t)}))}else e.append("images","");return null==b||b.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:Q,description:Y,communityId:String((null==se?void 0:se.id)||""),imageFiles:ne,previewUrl:pe,topicIds:null==ae?void 0:ae.map((e=>String(e.id||""))).filter(Boolean),locale:I,sanitizeFunction:F,categoryCommunityId:String((null==se?void 0:se.mappedCategoryId)||""),categoryTopicIds:null==ae?void 0:ae.map((e=>String(e.mappedCategoryId||""))).filter(Boolean),isAnonymous:R?1:0,isAskDoctor:D?1:0});let g;p&&u.append("article_id",p),P?(null==h?void 0:h.id)&&(g=yield(({id:t,locale:a,formData:o})=>e(void 0,void 0,void 0,(function*(){return yield ce(X(K.POST.UPDATE,{id:t,_locale:a}),"POST",{data:o})})))({id:h.id,formData:u,locale:I})):g=yield(({locale:t,formData:a,isArticleComment:o})=>e(void 0,void 0,void 0,(function*(){return yield ce(X(o?K.POST.CREATE_ARTICLE_COMMENT:K.POST.CREATE,{_locale:t}),"POST",{data:a})})))({formData:u,locale:I,isArticleComment:!(null==se?void 0:se.id)&&!!(null==se?void 0:se.mappedCategoryId)});const v=null==g?void 0:g.data;(null==v?void 0:v.id)&&!(null===(a=null===(t=null==g?void 0:g.messages)||void 0===t?void 0:t.moderation)||void 0===a?void 0:a.type)?(z({message:O("createPost.popup.success"),type:"success"}),(e=>{n&&n(xe(e),P),r&&r()})(v)):"banned"===(null===(i=null===(o=null==g?void 0:g.messages)||void 0===o?void 0:o.moderation)||void 0===i?void 0:i.type)?(z({title:O("notification.post.blocked.title"),message:O("notification.post.blocked.message"),type:"danger"}),g.messages.moderation.words&&re(g.messages.moderation.words)):"suspect"===(null===(s=null===(l=null==g?void 0:g.messages)||void 0===l?void 0:l.moderation)||void 0===s?void 0:s.type)?(z({title:O("notification.post.suspect.title"),message:O("notification.post.suspect.message"),type:"warning"}),r&&r()):(null===(d=null===(c=null==g?void 0:g.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"))})))?(z({message:O("notification.suspend.message"),type:"danger"}),r&&r()):z({message:(null===(m=null==g?void 0:g.messages)||void 0===m?void 0:m[0])||O("notification.failure"),type:"danger"})}));return o.createElement(Ya,{className:t,style:a},o.createElement("div",{className:"input-group-container"},o.createElement(Qa,{className:"input-group",bannedWords:le,value:Q,onChange:$}),o.createElement(qa,{className:"input-group",bannedWords:le,value:Y,onChange:J,onPreviewUrlChange:ue,onInvalidUrlsChange:he,onImageFilesChange:ie,imageFiles:ne}),N&&o.createElement(Ja,{"data-is-marry-baby":S},o.createElement("div",{className:"switch-label"},o.createElement(L,{isMarryBaby:S,size:S?32:24,color:E.colors.primaryBase,className:"label-icon"}),o.createElement("span",{className:"label-txt"},O("createPost.askDoctor"))),o.createElement(fe,{value:D,choices:[{label:O("createPost.askDoctorChoice.yes"),value:!0,dataEventCategory:"Together",dataEventAction:"Write Post Click - Ask Doctor",dataEventLabel:A},{label:O("createPost.askDoctorChoice.no"),value:!1}],onChange:e=>{"boolean"==typeof e&&(H(!1),U(e))}})),W&&o.createElement(eo,null,o.createElement(T,{isSolid:!0,color:E.colors.red700,size:14}),o.createElement(j,{size:"p3",as:"span",color:E.colors.red700},O("createPost.message.askDoctorRequire"))),o.createElement("div",{className:"input-group"},o.createElement(j,{size:"p4",className:"input-group-label"},O("admin.community")),o.createElement(y,{options:(null==me?void 0:me.map((e=>({label:e.name,value:`${e.id||""}-${e.mappedCategoryId||""}`}))))||[],id:"community-picker",placeholder:O("community.choose"),value:ee,dropdownLabelTrackingAttributes:{"data-event-category":"Together","data-event-action":"Write Post Click - Choose Community/Topic","data-event-label":A},onChange:e=>{te({label:e.label,value:String(e.value)}),oe([])},disabled:!!d}),o.createElement(j,{size:"sm",className:"warning",color:E.colors.gray400},"* ",O("commentPopup.warning.newPost"))),!C&&o.createElement("div",{className:"input-group"},o.createElement(j,{size:"p4",className:"input-group-label"},O("tab.topic")),o.createElement("div",{className:"input-notification"},o.createElement("img",{src:se?"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":da}),o.createElement(j,{size:"base",color:E.colors.gray500},O(se?"createPost.popup.primary":"createPost.popup.warning"))),se&&o.createElement(Ka,{className:"tag-list",communityId:se.id,forceTopics:m,onChange:oe,selectedTopics:ae,noFetch:b,dataEventCategory:"Together",dataEventAction:"Write Post Click - Choose Community/Topic",dataEventLabel:A}))),o.createElement("div",{className:"form-action"},o.createElement("div",{className:"input-group"},o.createElement(g,{className:"swich-input-group",labelPosition:"left",name:"PostAnonymous",checked:R,color:S?"pink":void 0,"data-event-category":"Together","data-event-action":"Write Post Click - Incognito","data-event-label":A,label:o.createElement("div",{className:"switch-label"},o.createElement("img",{className:"label-icon",src:M.getAssetPath("anomyous-avatar.svg"),alt:"anomyous avatar",style:{marginRight:"10px",width:"24px"}}),o.createElement("span",{className:"label-txt"},O("createPost.postAnonymous"))),value:"Post Anonymous",onChange:e=>V(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(B,{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(ve&&!_){G(!0);try{yield be()}catch(e){console.error(e),z(ca(O))}G(!1)}})),disabled:!ve,loading:_},O("createPost.popup.submit")))))},ao=R.div`
|
|
1523
1523
|
[data-type='confirm'] {
|
|
1524
1524
|
width: min(360px, 100%);
|
|
1525
1525
|
height: auto;
|
|
@@ -1755,7 +1755,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
1755
1755
|
cursor: pointer;
|
|
1756
1756
|
display: flex;
|
|
1757
1757
|
align-items: center;
|
|
1758
|
-
`;var io="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 lo=({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(oo,{className:e,style:t,isExpand:d,hasFullscreen:s},o.createElement(Ee,{type:"confirm",onClose:c,isOpen:r,closeIcon:a||o.createElement("img",{src:io}),enableAnimation:!s},o.createElement("div",{className:"header"},o.createElement(C,{tag:"h5"},n),s&&o.createElement(no,{onClick:()=>m(!d)},o.createElement(P,{size:14,isExpand:d}))),o.createElement("div",{className:"content"},"function"==typeof i?i(d):i)))},ro=({className:e,isMarryBaby:t,style:a,title:n,description:r,acceptText:c,cancelText:d,onAccept:m,onCancel:p,thumbnail:u,isThumbnailIcon:g,onClose:h,acceptBtnTracking:v,acceptBtnProps:
|
|
1758
|
+
`;var io="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 lo=({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(oo,{className:e,style:t,isExpand:d,hasFullscreen:s},o.createElement(Ee,{type:"confirm",onClose:c,isOpen:r,closeIcon:a||o.createElement("img",{src:io}),enableAnimation:!s},o.createElement("div",{className:"header"},o.createElement(C,{tag:"h5"},n),s&&o.createElement(no,{onClick:()=>m(!d)},o.createElement(P,{size:14,isExpand:d}))),o.createElement("div",{className:"content"},"function"==typeof i?i(d):i)))},ro=({className:e,isMarryBaby:t,style:a,title:n,description:r,acceptText:c,cancelText:d,onAccept:m,onCancel:p,thumbnail:u,isThumbnailIcon:g,onClose:h,acceptBtnTracking:v,acceptBtnProps:f,cancelBtnProps:b})=>{const{data:{env:{isMarryBaby:y}}}=i(q),w="boolean"==typeof t?t:y,[x,E]=l(!1);return s((()=>(W(!0),setTimeout((()=>E(!0)),0),()=>W(!1))),[]),"undefined"==typeof window?null:Oe.createPortal(o.createElement(ao,{"data-is-marrybaby":w,className:e,style:a,"data-open":x},o.createElement(lo,{className:"popup-frame",isOpen:x,onClose:h},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})),o.createElement(C,{className:"title",tag:"h2"},n),o.createElement(Le,{className:"desc",size:"lg"},r),o.createElement("div",{className:"btn-group"},o.createElement(je,Object.assign({theme:w?"marryBaby":"helloSites",size:"md",color:"tertiary",onClick:()=>{null==m||m(),null==h||h()}},f,v),c),o.createElement(je,Object.assign({theme:w?"marryBaby":"helloSites",size:"md",onClick:()=>{null==p||p(),null==h||h()}},b),d)))),w&&u&&o.createElement("div",{className:"thumbnail-container is-mobile "+(g?"is-icon":"")},o.createElement("img",{className:"thumbnail",src:u})))),H())},so=R.div`
|
|
1759
1759
|
padding: 1rem;
|
|
1760
1760
|
border-top: 1px solid #f2f2f2;
|
|
1761
1761
|
&[data-is-reply='true'] {
|
|
@@ -1975,7 +1975,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
|
-
`,co=n({});const mo=({isReply:t,className:a,onClose:n,replyToName:c,style:d,replyingId:m,replyingUser:p,onPostSuccess:u,post:g,isMarryBaby:h})=>{const{action:{pushNotifications:v,sanitizeFunction:
|
|
1978
|
+
`,co=n({});const mo=({isReply:t,className:a,onClose:n,replyToName:c,style:d,replyingId:m,replyingUser:p,onPostSuccess:u,post:g,isMarryBaby:h})=>{const{action:{pushNotifications:v,sanitizeFunction:f},data:{userInfo:b,locale:y,env:{isMarryBaby:x}}}=i(q),E="boolean"==typeof h?h:x,{t:C}=w(),{onSelectImages:k,onRemoveImage:N,imageSrcs:A,onRemoveAllImages:L,imageFiles:T}=za(),[P,I]=l(""),{trigger:S}=i(co),[M,z]=l(!1),j=r(null),F=r(null),B=r(null),[O,R]=l([]),[V,D]=l([]),[U,W]=l(null);return s((()=>{var e;null===(e=B.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout((()=>{var e;null===(e=F.current)||void 0===e||e.focus()}),400)}),[S]),o.createElement(so,{"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()})),o.createElement("div",{className:"input-container",ref:B},o.createElement(J,{className:"avatar-wrapper "+(t?"avatar-wrapper-reply":""),avatar:(null==b?void 0:b.id)?b.avatar:me,username:(null==b?void 0:b.name)||(null==b?void 0:b.username)}),o.createElement("input",{ref:j,onChange:k,type:"file",multiple:!0,accept:"image/png,image/jpeg",name:"images",style:{display:"none"}}),o.createElement(Te,{value:P,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"}),CustomInput:o.createElement("div",{className:"as-input"},o.createElement(Da,{className:"textarea",html:P,onChange:I,onImagePickerClick:()=>{var e;return null===(e=j.current)||void 0===e?void 0:e.click()},bannedWords:V,onPreviewUrlChange:W,onInvalidUrlsChange:R,setEditorRef:e=>F.current=e,isReplying:t}))}),o.createElement(je,{theme:E?"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,h;if((null==g?void 0:g.id)&&!M){z(!0);try{const b=e=>{I(""),L(),n&&n();const t=Ce(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=Ta(a.replace(/(\ )+/g," "),l);const m=Na(d);return o&&o.length>0&&(yield Promise.all(null==o?void 0:o.map((e=>Ma(e,i))))).filter(Boolean).slice(0,de).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:P,photos:T,postId:String(g.id),link:null==U?void 0:U.url,sanitizeFunction:f,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 ce(X(K.COMMENT.REPLY,{_locale:a}),"POST",{data:t})})))(w,y):((t,a)=>e(void 0,void 0,void 0,(function*(){return ce(X(K.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)?b(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)?(v({title:C("notification.comment.blocked.title"),message:C("notification.comment.blocked.message"),type:"danger"}),x.messages.moderation.words&&D(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)?(v({title:C("notification.comment.suspect.title"),message:C("notification.comment.suspect.message"),type:"warning"}),I(""),L(),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"))})))?(v({message:C("notification.suspend.message"),type:"warning"}),I(""),L(),n&&n()):v({title:"",message:(null===(h=null==x?void 0:x.messages)||void 0===h?void 0:h[0])||C("notification.comment.somethingWrong"),type:"danger"})}catch(e){v({title:"",message:C("notification.comment.somethingWrong"),type:"danger"})}z(!1)}})),isLoading:M,isDisabled:!!(null==O?void 0:O.length)||M||!P||(null==P?void 0:P.length)<2||!P.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"}))),(null==O?void 0:O.length)?o.createElement("div",{className:"error-text"},C("notification.limitUrlDomain")):null,(!A||0===A.length)&&U&&o.createElement("div",{className:"link-preview-wrapper"},U.isFetching?o.createElement(Qe,null):o.createElement(o.Fragment,null,o.createElement(Ke,{title:U.title,url:U.url||"#",image:U.image,noRefetch:!0}),o.createElement("img",{src:Ha,className:"icon-close",onClick:()=>W(null)}))),A&&A.length>0&&o.createElement("div",{className:"preview-images-container"},A.map(((e,t)=>o.createElement("div",{key:t,className:"image-src-wrapper"},o.createElement("img",{className:"preview-image",src:e}),o.createElement("img",{src:Ha,className:"icon-close-circle",onClick:()=>N(t)}))))))},po=R.a`
|
|
1979
1979
|
* {
|
|
1980
1980
|
pointer-events: none;
|
|
1981
1981
|
}
|
|
@@ -2115,7 +2115,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
2115
2115
|
}
|
|
2116
2116
|
}
|
|
2117
2117
|
}
|
|
2118
|
-
`;const go=({className:e,trackingCategory:t="Together",style:a,shareUrl:n,title:c})=>{const{action:{pushNotifications:d},data:{env:{isMarryBaby:m}}}=i(q),{t:p}=w(),u=r(null),[g,h]=l(!1),v=()=>{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(),h(!0),d({title:"",message:p("share.linkCopied"),type:"success"})};s((()=>{v(),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+lx6iw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1y4dIQBejpG5GltSWdsrypeuZAhEQ2WLcCml8DrMiFoF5XJTUVcYrbAsP+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 width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M36.6673 19.584C36.6673 28.559 29.209 35.834 20.0007 35.834C18.6248 35.834 17.2923 35.6723 16.014 35.364C15.6265 35.2707 15.2215 35.3065 14.8648 35.4848L11.2173 37.309C10.2757 37.7798 9.16732 37.0948 9.16732 36.0415V32.6873C9.16732 32.2082 8.95315 31.7615 8.59982 31.4382C5.35482 28.4715 3.33398 24.259 3.33398 19.584C3.33398 10.609 10.7923 3.33398 20.0007 3.33398C29.209 3.33398 36.6673 10.609 36.6673 19.584Z' fill='url(%23paint0_radial)'/%3e%3cpath opacity='0.05' d='M29.16 14.4102C28.8033 14.4102 28.4575 14.5285 28.16 14.7527L23.415 18.2652C23.3041 18.3485 23.1816 18.3902 23.0525 18.3902C22.9275 18.3902 22.81 18.351 22.7108 18.2768L19.4008 15.7852C18.7275 15.2843 17.9341 15.0202 17.1033 15.0202C15.79 15.0202 14.5825 15.6793 13.8733 16.7835L12.8641 18.3593L9.43081 23.9385C9.10414 24.4502 9.07914 25.0818 9.37164 25.6168C9.66998 26.1618 10.2333 26.5002 10.8416 26.5002C11.1983 26.5002 11.5441 26.3818 11.8416 26.1577L16.5866 22.6452C16.6975 22.5618 16.82 22.5202 16.9491 22.5202C17.0741 22.5202 17.1916 22.5593 17.2908 22.6335L20.6008 25.1252C21.275 25.6268 22.0675 25.8902 22.8983 25.8902C24.2116 25.8902 25.4191 25.231 26.1283 24.1268L27.1375 22.551L30.5708 16.9718C30.8975 16.4602 30.9225 15.8285 30.63 15.2935C30.3316 14.7485 29.7683 14.4102 29.16 14.4102Z' fill='black'/%3e%3cpath opacity='0.07' d='M29.161 14.8262C28.8952 14.8262 28.636 14.9153 28.4118 15.0845L23.6643 18.5995C23.4843 18.7353 23.2743 18.8062 23.0543 18.8062C22.8385 18.8062 22.6343 18.7378 22.4627 18.6095L19.1518 16.117C18.5527 15.6712 17.8452 15.4362 17.1043 15.4362C15.9335 15.4362 14.8577 16.0237 14.2252 17.0087L13.2168 18.5845L9.78766 24.1578C9.54016 24.5453 9.52099 25.0187 9.73933 25.417C9.96099 25.822 10.3952 26.0837 10.8435 26.0837C11.1093 26.0837 11.3685 25.9945 11.5927 25.8253L16.3402 22.3103C16.5202 22.1745 16.7302 22.1037 16.9502 22.1037C17.166 22.1037 17.3702 22.172 17.5418 22.3003L20.8527 24.7928C21.4518 25.2387 22.1593 25.4737 22.9002 25.4737C24.071 25.4737 25.1468 24.8862 25.7793 23.9012L26.7877 22.3253L30.2168 16.752C30.4643 16.3645 30.4835 15.8912 30.2652 15.4928C30.0435 15.0878 29.6102 14.8262 29.161 14.8262Z' fill='black'/%3e%3cpath d='M28.6625 15.4168L23.9125 18.9334C23.4042 19.3168 22.7125 19.3168 22.2125 18.9418L18.9008 16.4493C17.5008 15.4076 15.5175 15.7659 14.5758 17.2326L13.5675 18.8076L10.1425 24.3743C9.64248 25.1576 10.6008 26.0493 11.3425 25.4909L16.0925 21.9743C16.6008 21.5909 17.2925 21.5909 17.7925 21.9659L21.1041 24.4584C22.5041 25.5001 24.4875 25.1418 25.4291 23.6751L26.4375 22.1001L29.8625 16.5334C30.3625 15.7501 29.4042 14.8584 28.6625 15.4168Z' fill='white'/%3e%3cdefs%3e%3cradialGradient id='paint0_radial' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(9.23982 35.8157) scale(39.6767)'%3e%3cstop stop-color='%231292FF'/%3e%3cstop offset='0.079' stop-color='%232982FF'/%3e%3cstop offset='0.23' stop-color='%234E69FF'/%3e%3cstop offset='0.351' stop-color='%236559FF'/%3e%3cstop offset='0.428' stop-color='%236D53FF'/%3e%3cstop offset='0.754' stop-color='%23DF47AA'/%3e%3cstop offset='0.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+/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OzEIcgdEOtVCGPU4QG5e5bjxVef7OidiwXR9x1Xdw3HVMfvzO+VmnlgcIwdJFbwT4stIfqXAG/gaMVKEHOexx3ZhxpXHn8dhj4CpqzKGjggAw0enrdy7zPYQSSwmUgxDsC3T1iZ5RsTin+cKJWBHcF9RfYOGRNDzwQlfj6nme5Y/Z28k8LAmw6f2kPwrlf5IDisPBg29X57tpZdGs3ObW47G2PBZTi3PIVp2467eDs/dlgX3qcZ4rPefGFdVfmdWeW1Ma2uZny+XqvCxpYq4ote14WdeNhtmLs+JmRPukp0kkCWA7pWRPOviicfWLq4o7m+8cb/OTirgMqAdFfRL6amz8kRd3fFjaffPmze7DH+5oCQ2MBfvDmTR2GM0UuIvCJiTHH5l6uKu2Zv3BpnWNHY3rmg6ur6nt6p56pFceDncMqRGHjvqmuqNKoQpYTCZv0qRJPJ47jyeV8nhMagM7/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 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='%231FA1F3'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.2304 13.2349L16.2709 13.8692L15.5965 13.7916C13.1417 13.4938 10.9972 12.484 9.17636 10.788L8.28615 9.94646L8.05688 10.5679C7.57128 11.9532 7.88154 13.4161 8.8931 14.4001C9.43262 14.9438 9.3112 15.0215 8.38057 14.6978C8.05688 14.5943 7.77362 14.5166 7.74662 14.5554C7.6522 14.646 7.97596 15.8241 8.23222 16.2902C8.58291 16.9376 9.29771 17.5719 10.08 17.9474L10.7409 18.2452L9.95865 18.2581C9.20329 18.2581 9.17636 18.271 9.25728 18.5429C9.52704 19.3844 10.5925 20.2777 11.7795 20.6661L12.6157 20.938L11.8873 21.3523C10.8084 21.9478 9.54054 22.2844 8.27265 22.3103C7.6657 22.3232 7.16667 22.375 7.16667 22.4139C7.16667 22.5433 8.81217 23.2684 9.76981 23.5531C12.6427 24.3947 16.0551 24.0322 18.6177 22.5951C20.4385 21.5724 22.2594 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.8221 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.9011 11.0598 25.8876 11.0598 25.1997 11.28C24.0532 11.6683 23.8914 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7007 9.92061 24.1612 10.1148 23.7565 10.2313L23.0282 10.4514L22.3673 10.0241C22.0031 9.79112 21.4906 9.53219 21.2208 9.45452C20.533 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.109 11.5907 16.2304 13.2349Z' fill='white'/%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+wlBMy1opsD4tu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Y3C2QtSArHYJ/FuTojMpCeHkWoowC6aOpEQd1k0aKqKGwQqPGJFZ43EZ63xgmtNhBmrxPqhMqjgyFU+oAVlxxfolx72B8lymZbVH42pT0TTFrJ+2BDIfF81EqA07k2aBxVBDZD3qC55VUaoV9c6gqmgFkWWTrFhQqj29kmIWYY0LFX1qKkgaTs8ULNcioawQqCADZ2/SbSqiCOM5AlzFHI/0iirNq9woI6Vy7c7AbBqXpBhqSKy7cIJ1JhLP1U47gws7UMr5yFUsZofbnUwhXYkQmPxgcKnBGYUVgRBJaPVHYzCLLundLX783PuYhokEgZ4PoD4No4ycDx05uEm2bCjNKvBasipIEgFeB5XhJSElV9odu7qp2UMaJuvjo9VWztKdieQUKHJGqCiuUwuFAvBeDOp/z9oHRcuyisVhXz8f9SZgBjc1u6SIGl6uL+v1cVXTkJO2bqPN0NyGdG64Di8Aa5p2AlKUE1uabcaqAe+Cmfq4h+STYYg0EgSlnJ62dMibZEHipWA7iVXjg/Qe92XA2Dc4ERSEuC4vJUaBl5pdN1r9sM7o+4jBwvBzOJGW4kZwuqHAi240h84K3y6OdAsohgui0w1FvVfuoH0f5/X+tAEwTh/dNCkjugP2/rze//XJzff5urKCQnMA/a/uDE4ACGEgyAV8Swryew1YwKUGC7D2AxEuiZxfN9NAliXvHTMCvN+qHbcOUsy4MqmHxSObrLd+AjSKHdhm5HHl7IwLhFtsoQ8vL2hYYXXUNLfrUcPWVQqQMMOW6mr1xVKTCwMhDbLDQurisJiQ4+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(uo,{"data-is-marrybaby":m,className:e,style:a},o.createElement("div",{className:"share__social"},b.map(((e,a)=>o.createElement(po,{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("img",{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:E.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:()=>v()},m?o.createElement("img",{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")))))},ho=({trackingCategory:e,className:t,style:a,url:n,avatar:r,text:c,onClose:d})=>{const{data:{env:{isMarryBaby:m}}}=i(q),{t:p}=w(),[u,g]=l(!1);return s((()=>(W(!0),setTimeout((()=>g(!0)),0),()=>W(!1))),[]),o.createElement(h,null,o.createElement(vo,{"data-is-marrybaby":m,className:t,style:a},o.createElement(lo,{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})),o.createElement("div",{className:"custom-share__header-info"},o.createElement(C,{tag:"h4"},c),o.createElement(Le,{className:"desc",size:"md"},n))),u&&o.createElement(go,{trackingCategory:e,shareUrl:n||("undefined"!=typeof window?window.location.href:""),title:c}))))},vo=R.div`
|
|
2118
|
+
`;const go=({className:e,trackingCategory:t="Together",style:a,shareUrl:n,title:c})=>{const{action:{pushNotifications:d},data:{env:{isMarryBaby:m}}}=i(q),{t:p}=w(),u=r(null),[g,h]=l(!1),v=()=>{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(),h(!0),d({title:"",message:p("share.linkCopied"),type:"success"})};s((()=>{v(),navigator.share&&navigator.share({title:c||"Read This Post",url:n}).then((()=>{d({title:"",message:p("share.linkShared"),type:"success"})})).catch(console.error)}),[]);const f=((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/f7vru8NwA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FCQMTWtU9xt4qTg+/XSZWbvNiua/eIQDlB3yrXzSDfCmC0oOIZK8XIlgplm/hPiF3ZU95uetoCZcpKYet+31M5+HTzVv3+9mOvJPiF6MS9UfnpMDg7u4WLcSZKkGvvl/OX9zshSPFemNtzQdFLGxJ8lVWHtoHJARWndSBB5RjQIIbxeUjkvhvZyTjxIHtWpQQ/iDRMxvKgi9t9monzvAmsxwCXAVret8MCli4SPaBrFpdAGSMEtMZVkoRRFDpfeRFsvW7Kowv6Jfu1n89pb2YOyGZZaZq50SMcj/RjgM+/tIWL23eW+UKcsWEgmgbKKI+AozHVlbRIStxwERwYySQFCHi+cDA7u7A7Iva07ShCS4pDGR01mIyt6gMEB0t1mF7nj9odIKNe/wuLshyqi4dbCqs6qMUByw+OZcvlS+5B6widC5FML5HbbgEF9KgHu7gRVkeNqZvAmWkuFhaMtKQzARon6A2omVcoiOlPPjNMZ2dLOPswPFAcOe3fu3zgiCekr9DFHe9WHE/YPmNLD66uA6GCJWFBBSMmTtJSWKB9I4MftJB0xI9yBkD0uQVcjkzqvARKyrnVHiG45kqYEQUk1FEHPrAm33yVctbVzrSUWDAg3IknJBmEW3y5ASReB7W9rP06GLrhgh9SM/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 width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M36.6673 19.584C36.6673 28.559 29.209 35.834 20.0007 35.834C18.6248 35.834 17.2923 35.6723 16.014 35.364C15.6265 35.2707 15.2215 35.3065 14.8648 35.4848L11.2173 37.309C10.2757 37.7798 9.16732 37.0948 9.16732 36.0415V32.6873C9.16732 32.2082 8.95315 31.7615 8.59982 31.4382C5.35482 28.4715 3.33398 24.259 3.33398 19.584C3.33398 10.609 10.7923 3.33398 20.0007 3.33398C29.209 3.33398 36.6673 10.609 36.6673 19.584Z' fill='url(%23paint0_radial)'/%3e%3cpath opacity='0.05' d='M29.16 14.4102C28.8033 14.4102 28.4575 14.5285 28.16 14.7527L23.415 18.2652C23.3041 18.3485 23.1816 18.3902 23.0525 18.3902C22.9275 18.3902 22.81 18.351 22.7108 18.2768L19.4008 15.7852C18.7275 15.2843 17.9341 15.0202 17.1033 15.0202C15.79 15.0202 14.5825 15.6793 13.8733 16.7835L12.8641 18.3593L9.43081 23.9385C9.10414 24.4502 9.07914 25.0818 9.37164 25.6168C9.66998 26.1618 10.2333 26.5002 10.8416 26.5002C11.1983 26.5002 11.5441 26.3818 11.8416 26.1577L16.5866 22.6452C16.6975 22.5618 16.82 22.5202 16.9491 22.5202C17.0741 22.5202 17.1916 22.5593 17.2908 22.6335L20.6008 25.1252C21.275 25.6268 22.0675 25.8902 22.8983 25.8902C24.2116 25.8902 25.4191 25.231 26.1283 24.1268L27.1375 22.551L30.5708 16.9718C30.8975 16.4602 30.9225 15.8285 30.63 15.2935C30.3316 14.7485 29.7683 14.4102 29.16 14.4102Z' fill='black'/%3e%3cpath opacity='0.07' d='M29.161 14.8262C28.8952 14.8262 28.636 14.9153 28.4118 15.0845L23.6643 18.5995C23.4843 18.7353 23.2743 18.8062 23.0543 18.8062C22.8385 18.8062 22.6343 18.7378 22.4627 18.6095L19.1518 16.117C18.5527 15.6712 17.8452 15.4362 17.1043 15.4362C15.9335 15.4362 14.8577 16.0237 14.2252 17.0087L13.2168 18.5845L9.78766 24.1578C9.54016 24.5453 9.52099 25.0187 9.73933 25.417C9.96099 25.822 10.3952 26.0837 10.8435 26.0837C11.1093 26.0837 11.3685 25.9945 11.5927 25.8253L16.3402 22.3103C16.5202 22.1745 16.7302 22.1037 16.9502 22.1037C17.166 22.1037 17.3702 22.172 17.5418 22.3003L20.8527 24.7928C21.4518 25.2387 22.1593 25.4737 22.9002 25.4737C24.071 25.4737 25.1468 24.8862 25.7793 23.9012L26.7877 22.3253L30.2168 16.752C30.4643 16.3645 30.4835 15.8912 30.2652 15.4928C30.0435 15.0878 29.6102 14.8262 29.161 14.8262Z' fill='black'/%3e%3cpath d='M28.6625 15.4168L23.9125 18.9334C23.4042 19.3168 22.7125 19.3168 22.2125 18.9418L18.9008 16.4493C17.5008 15.4076 15.5175 15.7659 14.5758 17.2326L13.5675 18.8076L10.1425 24.3743C9.64248 25.1576 10.6008 26.0493 11.3425 25.4909L16.0925 21.9743C16.6008 21.5909 17.2925 21.5909 17.7925 21.9659L21.1041 24.4584C22.5041 25.5001 24.4875 25.1418 25.4291 23.6751L26.4375 22.1001L29.8625 16.5334C30.3625 15.7501 29.4042 14.8584 28.6625 15.4168Z' fill='white'/%3e%3cdefs%3e%3cradialGradient id='paint0_radial' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(9.23982 35.8157) scale(39.6767)'%3e%3cstop stop-color='%231292FF'/%3e%3cstop offset='0.079' stop-color='%232982FF'/%3e%3cstop offset='0.23' stop-color='%234E69FF'/%3e%3cstop offset='0.351' stop-color='%236559FF'/%3e%3cstop offset='0.428' stop-color='%236D53FF'/%3e%3cstop offset='0.754' stop-color='%23DF47AA'/%3e%3cstop offset='0.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+vzB3eqJutQeh8JLlL5Ckb0zhrbh8fbW6fHU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vCJiTHH5l6uKu2Zv3BpnWNHY3rmg6ur6nt6p56pFceDncMqRGHjvqmuqNKoQpYTCZv0qRJPJ47jyeV8nhMagM7/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 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='%231FA1F3'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.2304 13.2349L16.2709 13.8692L15.5965 13.7916C13.1417 13.4938 10.9972 12.484 9.17636 10.788L8.28615 9.94646L8.05688 10.5679C7.57128 11.9532 7.88154 13.4161 8.8931 14.4001C9.43262 14.9438 9.3112 15.0215 8.38057 14.6978C8.05688 14.5943 7.77362 14.5166 7.74662 14.5554C7.6522 14.646 7.97596 15.8241 8.23222 16.2902C8.58291 16.9376 9.29771 17.5719 10.08 17.9474L10.7409 18.2452L9.95865 18.2581C9.20329 18.2581 9.17636 18.271 9.25728 18.5429C9.52704 19.3844 10.5925 20.2777 11.7795 20.6661L12.6157 20.938L11.8873 21.3523C10.8084 21.9478 9.54054 22.2844 8.27265 22.3103C7.6657 22.3232 7.16667 22.375 7.16667 22.4139C7.16667 22.5433 8.81217 23.2684 9.76981 23.5531C12.6427 24.3947 16.0551 24.0322 18.6177 22.5951C20.4385 21.5724 22.2594 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.8221 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.9011 11.0598 25.8876 11.0598 25.1997 11.28C24.0532 11.6683 23.8914 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7007 9.92061 24.1612 10.1148 23.7565 10.2313L23.0282 10.4514L22.3673 10.0241C22.0031 9.79112 21.4906 9.53219 21.2208 9.45452C20.533 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.109 11.5907 16.2304 13.2349Z' fill='white'/%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+fFTy2FFwlU7vE3h8OTZ7tyi2aqP3JeC14xI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UKHJGqCiuUwuFAvBeDOp/z9oHRcuyisVhXz8f9SZgBjc1u6SIGl6uL+v1cVXTkJO2bqPN0NyGdG64Di8Aa5p2AlKUE1uabcaqAe+Cmfq4h+STYYg0EgSlnJ62dMibZEHipWA7iVXjg/Qe92XA2Dc4ERSEuC4vJUaBl5pdN1r9sM7o+4jBwvBzOJGW4kZwuqHAi240h84K3y6OdAsohgui0w1FvVfuoH0f5/X+tAEwTh/dNCkjugP2/rze//XJzff5urKCQnMA/a/uDE4ACGEgyAV8Swryew1YwKUGC7D2AxEuiZxfN9NAliXvHTMCvN+qHbcOUsy4MqmHxSObrLd+AjSKHdhm5HHl7IwLhFtsoQ8vL2hYYXXUNLfrUcPWVQqQMMOW6mr1xVKTCwMhDbLDQurisJiQ4+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(uo,{"data-is-marrybaby":m,className:e,style:a},o.createElement("div",{className:"share__social"},f.map(((e,a)=>o.createElement(po,{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("img",{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:E.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:()=>v()},m?o.createElement("img",{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")))))},ho=({trackingCategory:e,className:t,style:a,url:n,avatar:r,text:c,onClose:d})=>{const{data:{env:{isMarryBaby:m}}}=i(q),{t:p}=w(),[u,g]=l(!1);return s((()=>(W(!0),setTimeout((()=>g(!0)),0),()=>W(!1))),[]),o.createElement(h,null,o.createElement(vo,{"data-is-marrybaby":m,className:t,style:a},o.createElement(lo,{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})),o.createElement("div",{className:"custom-share__header-info"},o.createElement(C,{tag:"h4"},c),o.createElement(Le,{className:"desc",size:"md"},n))),u&&o.createElement(go,{trackingCategory:e,shareUrl:n||("undefined"!=typeof window?window.location.href:""),title:c}))))},vo=R.div`
|
|
2119
2119
|
.share-popup {
|
|
2120
2120
|
> div:first-child {
|
|
2121
2121
|
height: unset;
|
|
@@ -2202,7 +2202,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
|
-
`,
|
|
2205
|
+
`,fo=R.div`
|
|
2206
2206
|
padding: 0 8px;
|
|
2207
2207
|
margin-top: 18px;
|
|
2208
2208
|
|
|
@@ -2233,7 +2233,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
2233
2233
|
&[data-is-marrybaby='true'] {
|
|
2234
2234
|
padding: 0 1rem 1rem;
|
|
2235
2235
|
}
|
|
2236
|
-
`;var
|
|
2236
|
+
`;var bo="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 yo=({className:t,style:a,reason:n,reasonText:r,onClose:s,postId:c})=>{const{data:{locale:d,env:{isMarryBaby:m}},action:{pushNotifications:p}}=i(q),{t:u}=w(),[g,h]=l(!1);return o.createElement(fo,{"data-is-marrybaby":m,className:t,style:a},o.createElement("ul",{className:"report-list"},o.createElement("li",{className:"report-item"},o.createElement("img",{src:bo}),o.createElement(Le,{className:"__label",color:E.colors.gray800,size:"p4"},r))),o.createElement(je,{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){h(!0);try{const e=yield(({id:e,reason:t,locale:a})=>{const o=new FormData;return o.append("reason",t),ce(X(K.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){}h(!1)}}))},u("submit")))},wo=R.div`
|
|
2237
2237
|
padding: 0.5rem 1rem 1rem;
|
|
2238
2238
|
line-height: 1.5;
|
|
2239
2239
|
word-break: break-word;
|
|
@@ -2290,7 +2290,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
2290
2290
|
}
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
|
-
`;var xo=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 Eo=e=>{var{trackingCategory:a,url:n,className:d,style:m,replyingTo:p,mentionedUser:u,description:g,disableShortenContent:h,mentions:
|
|
2293
|
+
`;var xo=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 Eo=e=>{var{trackingCategory:a,url:n,className:d,style:m,replyingTo:p,mentionedUser:u,description:g,disableShortenContent:h,mentions:f=[],maxChars:b=1e3,hideShowAllBtn:y,styles:x,onClickCreatePostLink:E}=e,C=t(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn","styles","onClickCreatePostLink"]);const{classes:k,theme:N}=xo(void 0,{name:"PostContent",styles:x}),[A,L]=l(!1),{t:T}=w(),{authActionWrapper:P}=qe(),[I,S]=l(!1),M=Ca(Ea(g||"","display"),f),{action:{sanitizeFunction:z}}=i(q),j=c((()=>{const e=z(M||"");if(h||A)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=z(o.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),i=n.length<e.length-10;return{showContent:i?n:e,hasSeeMore:i}}),[h,A,M]),F=(null==u?void 0:u.name)||p,B="expert"===(null==u?void 0:u.role)&&!!(null==u?void 0:u.partnerId),O=r(null),R=e=>{e.preventDefault(),null==E||E()};return s((()=>{var e;return null===(e=null==O?void 0:O.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.addEventListener("click",R,{passive:!0})})),()=>{var e;null===(e=null==O?void 0:O.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.removeEventListener("click",R,!1)}))}}),[h,A,M]),o.createElement(o.Fragment,null,B&&o.createElement(Qt,{isOpen:I,onClose:()=>S(!1),expertId:String(null==u?void 0:u.partnerId)}),o.createElement(wo,Object.assign({ref:O,className:`${k.root} ${d} no-replace-click`,style:m,mentionColor:N.fn.primaryColor()},C),F&&o.createElement(v,{onClick:()=>B&&S(!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:N.fn.primaryColor()}},"@"),o.createElement("span",{dangerouslySetInnerHTML:{__html:j.showContent},className:"post-content "+(j.hasSeeMore?"has-see-more":"")}),j.hasSeeMore&&!A&&o.createElement("span",null,"... ",!y&&o.createElement(v,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),P((()=>L(!0)))},className:"see-more-text"},a?{"data-event-category":a,"data-event-action":"See More Post Click","data-event-label":n}:{}),T("post.seeMore")))))},Co=R.div`
|
|
2294
2294
|
padding: 14px 16px 14px 17px;
|
|
2295
2295
|
background: ${e=>e.bgColor};
|
|
2296
2296
|
border-left: 3px solid ${e=>e.highlight};
|
|
@@ -2599,7 +2599,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
2599
2599
|
justify-content: flex-start;
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
2602
|
-
`,Wo=({image:e,showIcon:t=!0})=>{const[a,n]=l(!0);return o.createElement(Uo,{"data-is-blurred":a,onClick:e=>a&&e.stopPropagation()},o.createElement("img",{loading:"lazy",className:"img-preview",src:e}),o.createElement(Vo,{onClick:e=>{e.stopPropagation(),n(!a)}},t&&o.createElement(Do,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"})))))},Zo=({className:e,images:t=[],style:a,authorName:n,isSensitive:c=!1})=>{const{data:{env:{isMarryBaby:d}}}=i(q),{t:m}=w(),p="+ "+((t.length||0)-4),[u,g]=l(!1),[h,v]=l(-1),
|
|
2602
|
+
`,Wo=({image:e,showIcon:t=!0})=>{const[a,n]=l(!0);return o.createElement(Uo,{"data-is-blurred":a,onClick:e=>a&&e.stopPropagation()},o.createElement("img",{loading:"lazy",className:"img-preview",src:e}),o.createElement(Vo,{onClick:e=>{e.stopPropagation(),n(!a)}},t&&o.createElement(Do,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"})))))},Zo=({className:e,images:t=[],style:a,authorName:n,isSensitive:c=!1})=>{const{data:{env:{isMarryBaby:d}}}=i(q),{t:m}=w(),p="+ "+((t.length||0)-4),[u,g]=l(!1),[h,v]=l(-1),f=t.length>5,b=r(!1);return s((()=>()=>{b.current&&W(!1)}),[]),s((()=>{u||h>=0?(W(!0),b.current=!0):(W(!1),b.current=!1)}),[u,h]),o.createElement(o.Fragment,null,c&&o.createElement(Po,{message:m("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(Lo,{className:e,style:a,"data-image-count":f?5:t.length||0,"data-is-marrybaby":d,"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?g(!0):v(t)}},c&&o.createElement(Wo,{image:e,showIcon:!a}),!d&&o.createElement("img",{loading:"lazy",className:"img-preview-blur",src:e}),o.createElement("img",{loading:"lazy",className:"img-preview",src:e}),a&&o.createElement("div",{className:"img-more-overlay"},o.createElement(C,{tag:"h1",as:"h2",color:"white"},p)))}))),u&&o.createElement(Io,{authorName:n||"",images:t,onClose:()=>g(!1),onOpenSingleView:v}),h>=0&&o.createElement(Oo,{images:t,initialViewIndex:h,onClose:()=>v(-1)}))},Ho=R.div`
|
|
2603
2603
|
.link-info-container {
|
|
2604
2604
|
padding: 0.5rem 1rem;
|
|
2605
2605
|
background: ${e=>e.color||"#f4faff"};
|
|
@@ -2635,7 +2635,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
2635
2635
|
overflow: hidden;
|
|
2636
2636
|
border-radius: 1rem;
|
|
2637
2637
|
}
|
|
2638
|
-
`,qo=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(q),[g,h]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return h(null);h((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),Q(X(K.FETCH_PREVIEW,{_locale:u}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;h({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((()=>{h(null)}))}}))}),[t,a]);const v=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),N=r(!1),A=m();return o.createElement(Ho,{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(Qe,{className:"loading-spinner"}):o.createElement("img",{className:"link-image",src:v||$,onError:e=>{N.current||(N.current=!0,e.currentTarget.src=$)}}))):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"}}):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"}):null))};var _o="PD6nRZX";const Go=({className:e,size:t="md"})=>{const{t:a}=w();return o.createElement("div",{className:`${_o} ${e}`},o.createElement(je,{size:t,color:"transparent",isLoading:!0},a("loading")))},Qo=n({});var Xo="l5fL1xL",Ko="L-aGKo7";const $o=({children:e,className:t=""})=>o.createElement("div",{className:`${Xo} ${t}`},e),Yo=({children:e,className:t=""})=>o.createElement("div",{className:`${Ko} ${t}`},e);var Jo="eaR8ATZ",en="xM-7K0a",tn="DZmf3s7";const an=({src:e,defaultSrc:t=M.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:tn,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(he,{src:e,fallbackSrc:t,alt:l}))),on=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${Jo} ${i}`},o.createElement(an,{src:a}),o.createElement("div",{className:en},n||o.createElement("div",null,e&&o.createElement($o,null,e),t&&o.createElement(Yo,null,t))));on.CategoryText=$o,on.Title=Yo;const nn=({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(on,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(on.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(on.Title,null,t),o.createElement(zt,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(zt.SubDivider,null),"Dec 12, 2022")})))};var ln={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 rn=({className:e=""})=>{var t,a,n,l,r;const{t:s}=w(),{info:c,isMarryBaby:d,currentPageUrl:m}=i(Qo),p=null==c?void 0:c.data,g=[{type:"linkedin",icon:M.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:M.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:M.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:M.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:M.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],h=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:M.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupItem,key:String(t)},o.createElement("div",{className:ln.accBodyGroupTitle},e.title),o.createElement("div",{className:ln.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:M.getAssetPath(d?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupItem,key:String(t)},o.createElement("div",{className:ln.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:ln.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:M.getAssetPath(d?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupTitle,key:t},e.title))))}]:[]],v=(null==c?void 0:c.relatedPosts)||[],f=g.filter((e=>e.url));return o.createElement("div",{className:`${ln.container} ${e}`,"data-is-marrybaby":d},h.length>0&&o.createElement(b,{defaultValue:h[0].key,chevron:d?o.createElement("div",{className:ln.mbChevronWrapper},o.createElement(S,{size:12,color:E.mbColors.midGray})):o.createElement(S,{color:E.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"}}}},h.map((e=>o.createElement(b.Item,{key:e.key,value:e.key},o.createElement(b.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},o.createElement("div",{className:ln.header},o.createElement("div",{className:ln.headingIcon},o.createElement("img",{src:e.iconSrc})),o.createElement("div",{className:ln.heading},e.heading))),o.createElement(b.Panel,null,e.panel))))),v.length>0&&o.createElement("div",{className:ln.group},o.createElement("div",{className:ln.subTitle},o.createElement("img",{className:ln.subIcon,src:M.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg")}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${ln.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:ln.articleCardLink},o.createElement(nn,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}))))))),f.length>0&&o.createElement("div",{className:ln.group},o.createElement("div",{className:ln.subTitle},o.createElement("img",{className:ln.subIcon,src:M.getAssetPath(d?"social-mb.svg":"social.svg")}),s("profilePanel.socialLinks")),o.createElement("div",{className:ln.groupBody},o.createElement(u,null,g.map(((e,t)=>e.url&&o.createElement("div",{className:ln.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 sn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const cn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=w(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(q),{authActionWrapper:h,authorProps:v,currentPageUrl:b}=i(Qo),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:`${sn.container} ${t}`},o.createElement("div",{className:sn.header},o.createElement("div",{className:sn.question},p("profilePanel.question")," ",o.createElement(F,{className:sn.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=f))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:sn.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:sn.questionCard},o.createElement(sa,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:o.createElement(xt,null),subLine:o.createElement(sa.SubTextRow,null,o.createElement(sa.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(Eo,{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(B,{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==h||h((()=>window.location.href=f))}},p("profilePanel.anserwing.viewFull")))};var dn="MrdoES3",mn="_8fd7YMs",pn="DomiQfw",un="-b2qnfL";const gn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(Qo);return o.createElement("div",{className:mn},o.createElement("div",{className:pn},o.createElement("img",{src:a||M.getAssetPath(r?"comments-mb.svg":"comments.svg")})),e&&o.createElement("div",{className:un},e),t&&o.createElement(je,{size:"md",theme:l,color:"secondary",onClick:n},t))},hn=({id:t})=>{const{t:a}=w(),{data:{locale:n}}=i(q),{authorProps:r}=i(Qo),[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 Q(X(K.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(xe);d(o),p(!1)}))}),[]),o.createElement("div",{className:dn},m?o.createElement(Go,null):null!==c&&(c.length>0?c.map((e=>o.createElement(cn,{className:"post-card",key:e.id,post:e}))):o.createElement(gn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},vn=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}))};vn.defaultProps={size:24,color:E.colors.gray600};var bn="toEutn7",fn="drdisHs";const yn=e=>{var a,n,l,r,{post:s}=e,c=t(e,["post"]);const{data:{env:{togetherBasePath:d}}}=i(q);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},c,{className:`${bn} ${(null==c?void 0:c.className)||""}`}),o.createElement(sa,{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(sa.SubTextRow,null,o.createElement(sa.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(F,{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:fn,rel:"noreferrer"},null==s?void 0:s.title)))};var wn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const xn=()=>{var t,a;const{t:n}=w(),{data:{locale:r,userInfo:c}}=i(q),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(Qo),[u,g]=l(),[h,v]=l([]),[f,y]=l(!1),x=null==c?void 0:c.id;s((()=>{x&&e(void 0,void 0,void 0,(function*(){var e;y(!0);const t=yield ce(X(K.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(xe),delete e.question,a.push(ke(e))})),v(a),g(o),y(!1)}))}),[]);const C=({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:wn.container},f?o.createElement(Go,null):(null==m?void 0:m.total_question)>0?h.length>0&&o.createElement(b,{className:wn.accordion,defaultValue:String((null===(a=h[null===(t=Object.keys(h))||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},item:{marginBottom:"16px"}}),chevron:o.createElement("div",{className:wn.chevron},o.createElement(vn,{color:E.colors.gray600,size:20}))},h.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(b.Item,{key:e.id,value:String(e.id)},o.createElement(b.Control,null,o.createElement("div",{className:wn.header},o.createElement("div",{className:wn.headingIcon},o.createElement("img",{src:e.thumbnail})),o.createElement("div",{className:wn.heading},e.name))),o.createElement(b.Panel,null,o.createElement("div",{className:wn.body},t.map((e=>o.createElement(yn,{className:"question-card",key:e.id,post:e,onSkip:C}))))))}))):o.createElement(gn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:M.getAssetPath("questions.svg")}))};var En="GA-zc-O",Cn="A18McWD",kn="IB049vj",Nn="_8I--vEV";const An=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(q),{authActionWrapper:r,authorProps:s}=i(Qo),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:`${En} ${t}`},o.createElement("div",{className:kn},o.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":c,className:Nn,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(zt,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(sa.MainText,{className:Cn},null==e?void 0:e.title),o.createElement(sa.SubTextRow,null,o.createElement(sa.SubText,null,null==e?void 0:e.createdTime))),o.createElement(Eo,{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 Tn=()=>{const{t:t}=w(),{data:{locale:a}}=i(q),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(Qo),[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 Q(X(K.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(xe);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Ln},u?o.createElement(Go,null):null!==m&&(m.length>0?m.map((e=>o.createElement(An,{className:"post-card",key:e.id,post:e}))):o.createElement(gn,{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 Pn="_4Vekw96",In="DIJdGcB",Sn="aQSt4-Q";const Mn=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},zn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var jn,Fn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(jn||(jn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Fn||(Fn={}));const Bn=a=>{var n,r,{authorProps:c,selectedTab:d,authActionWrapper:m,onSkipQuestion:p,onCloseFromPost:u,hideQuestionTab:g,hideAnswerTab:h,showSkipQuestionTag:v,rolesToShowQuestionsTab:b=["expert"],currentPageUrl:f}=a,y=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:x,userInfo:E,env:{isMarryBaby:C}}}=i(q),{t:k}=w(),N=null==c?void 0:c.role,A=null==E?void 0:E.role,L=String(null==c?void 0:c.userId),[T,P]=l(),[I,S]=l(!1),[M,z]=l(),j=(null==E?void 0:E._togetherUserId)===(null==c?void 0:c.userId),F=[...-1!==b.indexOf(N)?[{key:jn.About,name:k("profilePanel.tabs.highlight"),component:o.createElement(rn,{id:L,info:M}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:f}]:[{key:jn.Posts,name:k("profilePanel.tabs.posts"),component:o.createElement(Tn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"}],...g||-1===b.indexOf(A)||(null==E?void 0:E._togetherUserId)!==(null==c?void 0:c.userId)?[]:[{key:jn.Care,name:`${k("profilePanel.tabs.care")}`,component:o.createElement(xn,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:f}],...h||-1===b.indexOf(N)?[]:[{key:jn.Answer,name:`${k("profilePanel.tabs.expertAnswer")}`,component:o.createElement(hn,{id:L}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:f}]],[B,R]=l(null),[V,D]=l(null),U={initialTab:V,tabContent:B,onChange:e=>D(e),styles:e=>({label:{fontSize:e.fontSizes.sm,fontWeight:600}})},W=null==F?void 0:F.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;S(!0);const c=yield Promise.all([Q(X(K.USER.DETAIL,{_locale:x,id:L}),"GET"),...W.map((e=>Q(X(K.USER.COUNT_TABS,{_locale:x,id:L,[e.keyOfCountApi]:1}),"GET")))]),[m]=c,p={data:null==m?void 0:m.data,experiences:((null===(t=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(Mn),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>Ne(e.post))),educations:((null===(n=null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(zn),awards:(null===(l=null===(i=null==m?void 0:m.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==m?void 0:m.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};1===(null==m?void 0:m.status)&&z(p);const u=(null==p?void 0:p.relatedPosts)||[],g=Object.keys(p.contact).map((e=>{var t;return""!==(null===(t=null==p?void 0:p.contact)||void 0===t?void 0:t[e])})),h=[...(null==p?void 0:p.experiences)||[],...(null==p?void 0:p.educations)||[],...(null==p?void 0:p.awards)||[]],v=u.length>0||g.length>0||h.length>0,b={},f=W.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=c[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?(b[e.keyOfResult]=i,e):-1!==[jn.Care,jn.Posts].indexOf(e.key)?e:void 0})).filter(Boolean).map((e=>e.key)),y=F.map((e=>{const t=Object.assign(Object.assign({},e),{name:e.name+(e.keyOfResult?` (${(null==b?void 0:b[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==f.indexOf(t.key)?t:void 0:t.key===jn.About?v&&t:t})).filter(Boolean);R(y),D((()=>{if(!d)return 0;const e=null==y?void 0:y.findIndex((e=>e.key===d));return-1!==e?e:0})()),P(b),S(!1)}))}),[]);const Z=null==M?void 0:M.data;return o.createElement(Qo.Provider,{value:{isMarryBaby:C,siteType:C?"marryBaby":"helloSites",authorId:String((null==c?void 0:c.userId)||""),authActionWrapper:m,onSkipQuestion:p,info:M,authorProps:c,onCloseFromPost:u,countValues:T,setCountValues:P,isAuthorLogin:j,showSkipQuestionTag:v,currentPageUrl:f}},o.createElement("div",Object.assign({},y,{className:`${Pn} ${(null==y?void 0:y.className)||""}`,"data-is-marrybaby":C}),I?o.createElement(Go,null):o.createElement(o.Fragment,null,o.createElement(sa,Object.assign({},c,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==c?void 0:c.role)?(null==Z?void 0:Z.specialty)&&(null==Z?void 0:Z.organisation)&&o.createElement(sa.SubTextRow,null,(null==Z?void 0:Z.specialty)&&o.createElement(o.Fragment,null,o.createElement(sa.SubText,null,null==Z?void 0:Z.specialty),o.createElement(sa.SubDivider,null)),o.createElement(sa.SubText,null,null==Z?void 0:Z.organisation)):(null==Z?void 0:Z.created_at)&&o.createElement(sa.SubTextRow,null,o.createElement(sa.SubText,null,k("profilePanel.joined")," ",O(null==Z?void 0:Z.created_at).toNow(!0)))})),"expert"===N&&o.createElement("div",{className:In,dangerouslySetInnerHTML:{__html:null===(n=null==M?void 0:M.data)||void 0===n?void 0:n.description}}),null!==B&&null!==V&&(B.length>0?o.createElement("div",{className:Sn},o.createElement(fe,Object.assign({},U)),null===(r=null==B?void 0:B[V])||void 0===r?void 0:r.component):o.createElement(gn,{message:k("profilePanel.emptyPostMess.content",{name:(null==c?void 0:c.name)||(null==c?void 0:c.username)||""})})))))};var On=Object.freeze({__proto__:null,get TabName(){return jn},get UserType(){return Fn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Bn}),Rn="KsWg8i6",Vn="_9tS0EUN",Dn="kyyRKlb",Un="-Uqqka-";const Wn=a=>{var{post:n,onSkip:r,btnText:s,currentPageUrl:c}=a,p=t(a,["post","onSkip","btnText","currentPageUrl"]);const{t:u}=w(),{data:{locale:g},action:{pushNotifications:h}}=i(q),[v,b]=l(!1),[y,x]=l(!1),E=m(),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield ce(X(K.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),h({title:"",message:"Skip success",type:"success"})):h({title:"",message:null==t?void 0:t.messages,type:"danger"}),x(!1)}))),[]);return o.createElement(f,{width:327,withArrow:!0,shadow:"md",opened:v},o.createElement(f.Target,null,o.createElement("div",Object.assign({className:`${Rn} ${(null==p?void 0:p.className)||""}`,onClick:()=>b(!0)},p),s||u("profilePanel.questionNotClear"))),o.createElement(f.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:Vn},u("profilePanel.skipQuestion.heading")),o.createElement("div",{className:Dn},u("profilePanel.skipQuestion.content")),o.createElement("div",{className:Un},o.createElement(B,{size:"md",variant:"secondary",leftIcon:o.createElement(Me,{color:E.fn.primaryColor(),size:24}),onClick:()=>b(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement(B,{variant:"primary",size:"md",leftIcon:o.createElement(ze,{color:"white",size:24}),onClick:C,loading:y,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":c,styles:()=>({leftIcon:{marginRight:0}})})))))};var Zn="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",Hn="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",qn="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",Gn="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",Qn="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 Xn=({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:h,env:{isMarryBaby:v}},action:{pushNotifications:b}}=i(q),{t:f}=w(),[y,x]=l(!1),[E,C]=l(!1),[k,N]=l(!1),{authActionWrapper:A}=qe(),L=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(ho,{url:n,text:null==r?void 0:r.title,onClose:()=>N(!1)}),E&&o.createElement(ro,{thumbnail:M.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){x(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield ce(X(K.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}x(!1)}})),onClose:()=>C(!1)}),o.createElement(bt,{className:c,toggleButtonContent:o.createElement("img",{src:v?Zn:_n}),position:"bottom",align:"end",buttonProps:{isLoading:y},data:L?{isShowheader:!1,type:"list",list:[{icon:Gn,label:f("morePopover.share"),onClick:()=>N(!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:Qn,label:f("actionPopover.delete"),onClick:()=>{A((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Gn,label:f("morePopover.share"),onClick:()=>N(!0)},{icon:(null==r?void 0:r.bookmarked)?Hn:qn,label:(null==r?void 0:r.bookmarked)?f("morePopover.unsavePost"):f("morePopover.savePost"),onClick:()=>{A((()=>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 ce(X(K.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:qn}),m&&m()):b({title:"",message:"Remove failed",type:"danger",displayIcon:qn})}else{const e=yield ce(X(K.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:h||g.id,post_id:r.id}});1===(null==e?void 0:e.status)?(b({title:"",message:"Post saved",type:"success",displayIcon:Hn}),d&&d()):b({title:"",message:"Post saved failed",type:"danger",displayIcon:qn})}}))))}},{icon:fo,label:f("morePopover.report"),subTree:{title:f("morePopover.report.title"),description:f("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(pe).map((e=>({label:pe[e].label,reason:pe[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(yo,{reason:e.reasonValue,reasonText:f(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},Kn=R.div`
|
|
2638
|
+
`,qo=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(q),[g,h]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return h(null);h((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),Q(X(K.FETCH_PREVIEW,{_locale:u}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;h({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((()=>{h(null)}))}}))}),[t,a]);const v=a||(null==g?void 0:g.image),f=(null==g?void 0:g.url)||t,b=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])||""})(f)),[f]),y=c((()=>f.includes("facebook.com")||f.includes("fb.watch")),[f]),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),N=r(!1),A=m();return o.createElement(Ho,{className:`${n} no-replace-click`,style:d,ref:k,color:A.colors[A.primaryColor][0]},a||!b&&!y?o.createElement("a",{href:f,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(Qe,{className:"loading-spinner"}):o.createElement("img",{className:"link-image",src:v||$,onError:e=>{N.current||(N.current=!0,e.currentTarget.src=$)}}))):o.createElement("div",{className:"link-image-wrapper"},b?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${b}?&autoplay=${p?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"}}):y?o.createElement("iframe",{key:String(E),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(f)}&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"}):null))};var _o="PD6nRZX";const Go=({className:e,size:t="md"})=>{const{t:a}=w();return o.createElement("div",{className:`${_o} ${e}`},o.createElement(je,{size:t,color:"transparent",isLoading:!0},a("loading")))},Qo=n({});var Xo="l5fL1xL",Ko="L-aGKo7";const $o=({children:e,className:t=""})=>o.createElement("div",{className:`${Xo} ${t}`},e),Yo=({children:e,className:t=""})=>o.createElement("div",{className:`${Ko} ${t}`},e);var Jo="eaR8ATZ",en="xM-7K0a",tn="DZmf3s7";const an=({src:e,defaultSrc:t=M.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:tn,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(he,{src:e,fallbackSrc:t,alt:l}))),on=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${Jo} ${i}`},o.createElement(an,{src:a}),o.createElement("div",{className:en},n||o.createElement("div",null,e&&o.createElement($o,null,e),t&&o.createElement(Yo,null,t))));on.CategoryText=$o,on.Title=Yo;const nn=({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(on,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(on.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(on.Title,null,t),o.createElement(zt,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(zt.SubDivider,null),"Dec 12, 2022")})))};var ln={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 rn=({className:e=""})=>{var t,a,n,l,r;const{t:s}=w(),{info:c,isMarryBaby:d,currentPageUrl:m}=i(Qo),p=null==c?void 0:c.data,g=[{type:"linkedin",icon:M.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:M.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:M.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:M.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:M.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],h=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:M.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupItem,key:String(t)},o.createElement("div",{className:ln.accBodyGroupTitle},e.title),o.createElement("div",{className:ln.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:M.getAssetPath(d?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupItem,key:String(t)},o.createElement("div",{className:ln.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:ln.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:M.getAssetPath(d?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupTitle,key:t},e.title))))}]:[]],v=(null==c?void 0:c.relatedPosts)||[],b=g.filter((e=>e.url));return o.createElement("div",{className:`${ln.container} ${e}`,"data-is-marrybaby":d},h.length>0&&o.createElement(f,{defaultValue:h[0].key,chevron:d?o.createElement("div",{className:ln.mbChevronWrapper},o.createElement(S,{size:12,color:E.mbColors.midGray})):o.createElement(S,{color:E.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"}}}},h.map((e=>o.createElement(f.Item,{key:e.key,value:e.key},o.createElement(f.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},o.createElement("div",{className:ln.header},o.createElement("div",{className:ln.headingIcon},o.createElement("img",{src:e.iconSrc})),o.createElement("div",{className:ln.heading},e.heading))),o.createElement(f.Panel,null,e.panel))))),v.length>0&&o.createElement("div",{className:ln.group},o.createElement("div",{className:ln.subTitle},o.createElement("img",{className:ln.subIcon,src:M.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg")}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${ln.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:ln.articleCardLink},o.createElement(nn,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:ln.group},o.createElement("div",{className:ln.subTitle},o.createElement("img",{className:ln.subIcon,src:M.getAssetPath(d?"social-mb.svg":"social.svg")}),s("profilePanel.socialLinks")),o.createElement("div",{className:ln.groupBody},o.createElement(u,null,g.map(((e,t)=>e.url&&o.createElement("div",{className:ln.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 sn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const cn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=w(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(q),{authActionWrapper:h,authorProps:v,currentPageUrl:f}=i(Qo),b=`${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:`${sn.container} ${t}`},o.createElement("div",{className:sn.header},o.createElement("div",{className:sn.question},p("profilePanel.question")," ",o.createElement(F,{className:sn.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=b))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:sn.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:sn.questionCard},o.createElement(sa,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:o.createElement(xt,null),subLine:o.createElement(sa.SubTextRow,null,o.createElement(sa.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(Eo,{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(B,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":f,size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=b:null==h||h((()=>window.location.href=b))}},p("profilePanel.anserwing.viewFull")))};var dn="MrdoES3",mn="_8fd7YMs",pn="DomiQfw",un="-b2qnfL";const gn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(Qo);return o.createElement("div",{className:mn},o.createElement("div",{className:pn},o.createElement("img",{src:a||M.getAssetPath(r?"comments-mb.svg":"comments.svg")})),e&&o.createElement("div",{className:un},e),t&&o.createElement(je,{size:"md",theme:l,color:"secondary",onClick:n},t))},hn=({id:t})=>{const{t:a}=w(),{data:{locale:n}}=i(q),{authorProps:r}=i(Qo),[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 Q(X(K.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(xe);d(o),p(!1)}))}),[]),o.createElement("div",{className:dn},m?o.createElement(Go,null):null!==c&&(c.length>0?c.map((e=>o.createElement(cn,{className:"post-card",key:e.id,post:e}))):o.createElement(gn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},vn=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}))};vn.defaultProps={size:24,color:E.colors.gray600};var fn="toEutn7",bn="drdisHs";const yn=e=>{var a,n,l,r,{post:s}=e,c=t(e,["post"]);const{data:{env:{togetherBasePath:d}}}=i(q);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},c,{className:`${fn} ${(null==c?void 0:c.className)||""}`}),o.createElement(sa,{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(sa.SubTextRow,null,o.createElement(sa.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(F,{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:bn,rel:"noreferrer"},null==s?void 0:s.title)))};var wn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const xn=()=>{var t,a;const{t:n}=w(),{data:{locale:r,userInfo:c}}=i(q),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(Qo),[u,g]=l(),[h,v]=l([]),[b,y]=l(!1),x=null==c?void 0:c.id;s((()=>{x&&e(void 0,void 0,void 0,(function*(){var e;y(!0);const t=yield ce(X(K.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(xe),delete e.question,a.push(ke(e))})),v(a),g(o),y(!1)}))}),[]);const C=({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:wn.container},b?o.createElement(Go,null):(null==m?void 0:m.total_question)>0?h.length>0&&o.createElement(f,{className:wn.accordion,defaultValue:String((null===(a=h[null===(t=Object.keys(h))||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},item:{marginBottom:"16px"}}),chevron:o.createElement("div",{className:wn.chevron},o.createElement(vn,{color:E.colors.gray600,size:20}))},h.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(f.Item,{key:e.id,value:String(e.id)},o.createElement(f.Control,null,o.createElement("div",{className:wn.header},o.createElement("div",{className:wn.headingIcon},o.createElement("img",{src:e.thumbnail})),o.createElement("div",{className:wn.heading},e.name))),o.createElement(f.Panel,null,o.createElement("div",{className:wn.body},t.map((e=>o.createElement(yn,{className:"question-card",key:e.id,post:e,onSkip:C}))))))}))):o.createElement(gn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:M.getAssetPath("questions.svg")}))};var En="GA-zc-O",Cn="A18McWD",kn="IB049vj",Nn="_8I--vEV";const An=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(q),{authActionWrapper:r,authorProps:s}=i(Qo),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:`${En} ${t}`},o.createElement("div",{className:kn},o.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":c,className:Nn,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(zt,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(sa.MainText,{className:Cn},null==e?void 0:e.title),o.createElement(sa.SubTextRow,null,o.createElement(sa.SubText,null,null==e?void 0:e.createdTime))),o.createElement(Eo,{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 Tn=()=>{const{t:t}=w(),{data:{locale:a}}=i(q),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(Qo),[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 Q(X(K.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(xe);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Ln},u?o.createElement(Go,null):null!==m&&(m.length>0?m.map((e=>o.createElement(An,{className:"post-card",key:e.id,post:e}))):o.createElement(gn,{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 Pn="_4Vekw96",In="DIJdGcB",Sn="aQSt4-Q";const Mn=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},zn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var jn,Fn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(jn||(jn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Fn||(Fn={}));const Bn=a=>{var n,r,{authorProps:c,selectedTab:d,authActionWrapper:m,onSkipQuestion:p,onCloseFromPost:u,hideQuestionTab:g,hideAnswerTab:h,showSkipQuestionTag:v,rolesToShowQuestionsTab:f=["expert"],currentPageUrl:b}=a,y=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:x,userInfo:E,env:{isMarryBaby:C}}}=i(q),{t:k}=w(),N=null==c?void 0:c.role,A=null==E?void 0:E.role,L=String(null==c?void 0:c.userId),[T,P]=l(),[I,S]=l(!1),[M,z]=l(),j=(null==E?void 0:E._togetherUserId)===(null==c?void 0:c.userId),F=[...-1!==f.indexOf(N)?[{key:jn.About,name:k("profilePanel.tabs.highlight"),component:o.createElement(rn,{id:L,info:M}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:b}]:[{key:jn.Posts,name:k("profilePanel.tabs.posts"),component:o.createElement(Tn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"}],...g||-1===f.indexOf(A)||(null==E?void 0:E._togetherUserId)!==(null==c?void 0:c.userId)?[]:[{key:jn.Care,name:`${k("profilePanel.tabs.care")}`,component:o.createElement(xn,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:b}],...h||-1===f.indexOf(N)?[]:[{key:jn.Answer,name:`${k("profilePanel.tabs.expertAnswer")}`,component:o.createElement(hn,{id:L}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:b}]],[B,R]=l(null),[V,D]=l(null),U={initialTab:V,tabContent:B,onChange:e=>D(e),styles:e=>({label:{fontSize:e.fontSizes.sm,fontWeight:600}})},W=null==F?void 0:F.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;S(!0);const c=yield Promise.all([Q(X(K.USER.DETAIL,{_locale:x,id:L}),"GET"),...W.map((e=>Q(X(K.USER.COUNT_TABS,{_locale:x,id:L,[e.keyOfCountApi]:1}),"GET")))]),[m]=c,p={data:null==m?void 0:m.data,experiences:((null===(t=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(Mn),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>Ne(e.post))),educations:((null===(n=null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(zn),awards:(null===(l=null===(i=null==m?void 0:m.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==m?void 0:m.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};1===(null==m?void 0:m.status)&&z(p);const u=(null==p?void 0:p.relatedPosts)||[],g=Object.keys(p.contact).map((e=>{var t;return""!==(null===(t=null==p?void 0:p.contact)||void 0===t?void 0:t[e])})),h=[...(null==p?void 0:p.experiences)||[],...(null==p?void 0:p.educations)||[],...(null==p?void 0:p.awards)||[]],v=u.length>0||g.length>0||h.length>0,f={},b=W.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=c[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!==[jn.Care,jn.Posts].indexOf(e.key)?e:void 0})).filter(Boolean).map((e=>e.key)),y=F.map((e=>{const t=Object.assign(Object.assign({},e),{name:e.name+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==b.indexOf(t.key)?t:void 0:t.key===jn.About?v&&t:t})).filter(Boolean);R(y),D((()=>{if(!d)return 0;const e=null==y?void 0:y.findIndex((e=>e.key===d));return-1!==e?e:0})()),P(f),S(!1)}))}),[]);const Z=null==M?void 0:M.data;return o.createElement(Qo.Provider,{value:{isMarryBaby:C,siteType:C?"marryBaby":"helloSites",authorId:String((null==c?void 0:c.userId)||""),authActionWrapper:m,onSkipQuestion:p,info:M,authorProps:c,onCloseFromPost:u,countValues:T,setCountValues:P,isAuthorLogin:j,showSkipQuestionTag:v,currentPageUrl:b}},o.createElement("div",Object.assign({},y,{className:`${Pn} ${(null==y?void 0:y.className)||""}`,"data-is-marrybaby":C}),I?o.createElement(Go,null):o.createElement(o.Fragment,null,o.createElement(sa,Object.assign({},c,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==c?void 0:c.role)?(null==Z?void 0:Z.specialty)&&(null==Z?void 0:Z.organisation)&&o.createElement(sa.SubTextRow,null,(null==Z?void 0:Z.specialty)&&o.createElement(o.Fragment,null,o.createElement(sa.SubText,null,null==Z?void 0:Z.specialty),o.createElement(sa.SubDivider,null)),o.createElement(sa.SubText,null,null==Z?void 0:Z.organisation)):(null==Z?void 0:Z.created_at)&&o.createElement(sa.SubTextRow,null,o.createElement(sa.SubText,null,k("profilePanel.joined")," ",O(null==Z?void 0:Z.created_at).toNow(!0)))})),"expert"===N&&o.createElement("div",{className:In,dangerouslySetInnerHTML:{__html:null===(n=null==M?void 0:M.data)||void 0===n?void 0:n.description}}),null!==B&&null!==V&&(B.length>0?o.createElement("div",{className:Sn},o.createElement(be,Object.assign({},U)),null===(r=null==B?void 0:B[V])||void 0===r?void 0:r.component):o.createElement(gn,{message:k("profilePanel.emptyPostMess.content",{name:(null==c?void 0:c.name)||(null==c?void 0:c.username)||""})})))))};var On=Object.freeze({__proto__:null,get TabName(){return jn},get UserType(){return Fn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Bn}),Rn="KsWg8i6",Vn="_9tS0EUN",Dn="kyyRKlb",Un="-Uqqka-";const Wn=a=>{var{post:n,onSkip:r,btnText:s,currentPageUrl:c}=a,p=t(a,["post","onSkip","btnText","currentPageUrl"]);const{t:u}=w(),{data:{locale:g},action:{pushNotifications:h}}=i(q),[v,f]=l(!1),[y,x]=l(!1),E=m(),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield ce(X(K.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)||""}),f(!1),h({title:"",message:"Skip success",type:"success"})):h({title:"",message:null==t?void 0:t.messages,type:"danger"}),x(!1)}))),[]);return o.createElement(b,{width:327,withArrow:!0,shadow:"md",opened:v},o.createElement(b.Target,null,o.createElement("div",Object.assign({className:`${Rn} ${(null==p?void 0:p.className)||""}`,onClick:()=>f(!0)},p),s||u("profilePanel.questionNotClear"))),o.createElement(b.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:Vn},u("profilePanel.skipQuestion.heading")),o.createElement("div",{className:Dn},u("profilePanel.skipQuestion.content")),o.createElement("div",{className:Un},o.createElement(B,{size:"md",variant:"secondary",leftIcon:o.createElement(Me,{color:E.fn.primaryColor(),size:24}),onClick:()=>f(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement(B,{variant:"primary",size:"md",leftIcon:o.createElement(ze,{color:"white",size:24}),onClick:C,loading:y,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":c,styles:()=>({leftIcon:{marginRight:0}})})))))};var Zn="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",Hn="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",qn="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",Gn="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",Qn="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 Xn=({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:h,env:{isMarryBaby:v}},action:{pushNotifications:f}}=i(q),{t:b}=w(),[y,x]=l(!1),[E,C]=l(!1),[k,N]=l(!1),{authActionWrapper:A}=qe(),L=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(ho,{url:n,text:null==r?void 0:r.title,onClose:()=>N(!1)}),E&&o.createElement(ro,{thumbnail:M.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:b("popup.deletePost.title"),description:b("popup.deletePost.description"),acceptText:b("popup.deletePost.accept"),cancelText:b("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){if((null==r?void 0:r.id)&&!y){x(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield ce(X(K.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}x(!1)}})),onClose:()=>C(!1)}),o.createElement(ft,{className:c,toggleButtonContent:o.createElement("img",{src:v?Zn:_n}),position:"bottom",align:"end",buttonProps:{isLoading:y},data:L?{isShowheader:!1,type:"list",list:[{icon:Gn,label:b("morePopover.share"),onClick:()=>N(!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:b("actionPopover.edit"),onClick:p},{icon:Qn,label:b("actionPopover.delete"),onClick:()=>{A((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Gn,label:b("morePopover.share"),onClick:()=>N(!0)},{icon:(null==r?void 0:r.bookmarked)?Hn:qn,label:(null==r?void 0:r.bookmarked)?b("morePopover.unsavePost"):b("morePopover.savePost"),onClick:()=>{A((()=>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 ce(X(K.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(r.id)}});1===(null==e?void 0:e.status)?(f({title:"",message:"Removed saved post",type:"success",displayIcon:qn}),m&&m()):f({title:"",message:"Remove failed",type:"danger",displayIcon:qn})}else{const e=yield ce(X(K.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:h||g.id,post_id:r.id}});1===(null==e?void 0:e.status)?(f({title:"",message:"Post saved",type:"success",displayIcon:Hn}),d&&d()):f({title:"",message:"Post saved failed",type:"danger",displayIcon:qn})}}))))}},{icon:bo,label:b("morePopover.report"),subTree:{title:b("morePopover.report.title"),description:b("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(pe).map((e=>({label:pe[e].label,reason:pe[e].reportReasonText,reasonValue:e}))).map((e=>({label:b(e.label),subTree:{title:b("morePopover.reportSubmit.title"),description:b("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>o.createElement(yo,{reason:e.reasonValue,reasonText:b(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},Kn=R.div`
|
|
2639
2639
|
position: relative;
|
|
2640
2640
|
margin-bottom: 24px;
|
|
2641
2641
|
background: white;
|
|
@@ -2810,7 +2810,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
2810
2810
|
margin-bottom: 12px;
|
|
2811
2811
|
}
|
|
2812
2812
|
}
|
|
2813
|
-
`;const $n=({onDeleteComment:t,commentId:a,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:c},action:{pushNotifications:d}}=i(q),{t:m}=w(),[p,u]=l(!1),{authActionWrapper:g}=qe();return o.createElement("div",{className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()}},p&&o.createElement(ro,{thumbnail:"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0)'%3e%3cpath d='M2 4.00781H3.33333H14' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33337 4.00846V2.67513C5.33337 2.32151 5.47385 1.98237 5.7239 1.73232C5.97395 1.48227 6.31309 1.3418 6.66671 1.3418H9.33337C9.687 1.3418 10.0261 1.48227 10.2762 1.73232C10.5262 1.98237 10.6667 2.32151 10.6667 2.67513V4.00846M12.6667 4.00846V13.3418C12.6667 13.6954 12.5262 14.0346 12.2762 14.2846C12.0261 14.5347 11.687 14.6751 11.3334 14.6751H4.66671C4.31309 14.6751 3.97395 14.5347 3.7239 14.2846C3.47385 14.0346 3.33337 13.6954 3.33337 13.3418V4.00846H12.6667Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.66663 7.3418V11.3418' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.33337 7.3418V11.3418' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0'%3e%3crect width='16' height='16' fill='white' transform='translate(0 0.0078125)'/%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})=>ce(X(K.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(
|
|
2813
|
+
`;const $n=({onDeleteComment:t,commentId:a,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:c},action:{pushNotifications:d}}=i(q),{t:m}=w(),[p,u]=l(!1),{authActionWrapper:g}=qe();return o.createElement("div",{className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()}},p&&o.createElement(ro,{thumbnail:"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0)'%3e%3cpath d='M2 4.00781H3.33333H14' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33337 4.00846V2.67513C5.33337 2.32151 5.47385 1.98237 5.7239 1.73232C5.97395 1.48227 6.31309 1.3418 6.66671 1.3418H9.33337C9.687 1.3418 10.0261 1.48227 10.2762 1.73232C10.5262 1.98237 10.6667 2.32151 10.6667 2.67513V4.00846M12.6667 4.00846V13.3418C12.6667 13.6954 12.5262 14.0346 12.2762 14.2846C12.0261 14.5347 11.687 14.6751 11.3334 14.6751H4.66671C4.31309 14.6751 3.97395 14.5347 3.7239 14.2846C3.47385 14.0346 3.33337 13.6954 3.33337 13.3418V4.00846H12.6667Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.66663 7.3418V11.3418' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.33337 7.3418V11.3418' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0'%3e%3crect width='16' height='16' fill='white' transform='translate(0 0.0078125)'/%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})=>ce(X(K.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(ft,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:Qn,label:m("actionPopover.delete"),onClick:()=>{g((()=>{u(!0)}))}}]},className:r,toggleButtonContent:o.createElement("img",{src:s?Zn:_n}),buttonProps:{}}))},Yn=R.div`
|
|
2814
2814
|
.add-link {
|
|
2815
2815
|
color: ${E.colors.primaryBase};
|
|
2816
2816
|
}
|
|
@@ -2877,7 +2877,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
2877
2877
|
&:first-child {
|
|
2878
2878
|
border-top: 0;
|
|
2879
2879
|
}
|
|
2880
|
-
`,mi=R.div``,pi=({postTitle:e,articleReviewed:t,modifiedTime:a,href:n})=>{const{t:i}=w(),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(di,{href:n,title:e,target:"_blank"},o.createElement(Le,{size:"s3",as:"h5",type:"bold"},e),o.createElement(mi,null,o.createElement(sa,{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(sa.SubTextRow,null,o.createElement(sa.SubText,null,null==l?void 0:l.title," ",o.createElement("span",{style:{color:E.colors.gray800}},null==l?void 0:l.name)),o.createElement(sa.SubDivider,null),o.createElement(sa.SubText,null,a)))))};var ui="F4mmgSy",gi="A7QrQ7A";const hi=a=>{var{listUrl:n,categorySlug:i,editMode:r,onListChange:c,isMarryBaby:d}=a,m=t(a,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:p}=w(),[u,g]=l(n||[]),[h,v]=l([]),[
|
|
2880
|
+
`,mi=R.div``,pi=({postTitle:e,articleReviewed:t,modifiedTime:a,href:n})=>{const{t:i}=w(),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(di,{href:n,title:e,target:"_blank"},o.createElement(Le,{size:"s3",as:"h5",type:"bold"},e),o.createElement(mi,null,o.createElement(sa,{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(sa.SubTextRow,null,o.createElement(sa.SubText,null,null==l?void 0:l.title," ",o.createElement("span",{style:{color:E.colors.gray800}},null==l?void 0:l.name)),o.createElement(sa.SubDivider,null),o.createElement(sa.SubText,null,a)))))};var ui="F4mmgSy",gi="A7QrQ7A";const hi=a=>{var{listUrl:n,categorySlug:i,editMode:r,onListChange:c,isMarryBaby:d}=a,m=t(a,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:p}=w(),[u,g]=l(n||[]),[h,v]=l([]),[b,y]=l([]),[x,k]=l(!1);s((()=>{e(void 0,void 0,void 0,(function*(){k(!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=>Q(e.isMarrySite?ue(le.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):ie(le.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],a=yield Promise.all(t);v(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({},Ne(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.post)),{href:e[a].href})})).filter(Boolean)),k(!1)}))}),[]),s((()=>{0===(null==h?void 0:h.length)&&i&&e(void 0,void 0,void 0,(function*(){var e;const t=yield Q(d?ue(le.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0):ie(le.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0),"GET");(null==t?void 0:t.data)&&y([Ae(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[h]);return s((()=>{null==c||c(u)}),[u]),o.createElement("div",Object.assign({},m),!r&&o.createElement(Jn,null,o.createElement("img",{className:"icon",src:M.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"}}),o.createElement(Le,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:p("cardReply.disclaimer")}})),x?o.createElement(Qe,null):h.length>0||r?o.createElement(Yn,null,o.createElement(f,{defaultValue:"accordion",styles:{control:{border:`1px solid ${E.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${E.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:o.createElement("div",{className:gi},o.createElement(vn,{color:E.colors.gray600,size:20}))},o.createElement(f.Item,{value:"accordion"},o.createElement(f.Control,null,o.createElement("div",{className:ui},o.createElement(C,{as:"h4",tag:"h6"},p("cardReply.source")))),o.createElement(f.Panel,null,o.createElement(ti,null,(h||[]).map(((e,t)=>o.createElement(ei,{key:String(t)},"object"==typeof e?o.createElement(pi,Object.assign({},e)):o.createElement(ai,null,o.createElement(Te,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{g((a=>{const o=[...a];return o[t]=e,o})),v((a=>{const o=[...a];return o[t]=e,o}))}})),r&&o.createElement(je,{size:"md",color:"transparent",icon:o.createElement(Se.Trash,null),onClick:()=>(e=>{g((t=>{const a=[...t];return a.splice(e,1),a})),v((t=>{const a=[...t];return a.splice(e,1),a}))})(t)})))),r&&o.createElement(je,{className:"add-link",color:"transparent",size:"md",icon:o.createElement(Se.Plus,{color:E.colors.primaryBase,size:18}),onClick:()=>{g((e=>[...e,""])),v((e=>[...e,""]))}},"Add source")))))):o.createElement(ci,{categories:b}))},vi=R.div`
|
|
2881
2881
|
position: relative;
|
|
2882
2882
|
margin-bottom: 0;
|
|
2883
2883
|
background: white;
|
|
@@ -3073,7 +3073,7 @@ import{a as e,_ as t}from"./tslib.es6-2a5d84e5.js";import*as a from"react";impor
|
|
|
3073
3073
|
margin-bottom: 12px;
|
|
3074
3074
|
}
|
|
3075
3075
|
}
|
|
3076
|
-
`,
|
|
3076
|
+
`,fi=R(hi)`
|
|
3077
3077
|
margin-top: 12px;
|
|
3078
3078
|
padding: 0.5rem 1rem 1rem;
|
|
3079
|
-
`;var fi="-dzIuHr";const yi=({userId:e,avatar:t,name:a,role:n,title:i,className:r})=>{const{t:s}=w(),[c,d]=l(!1);return o.createElement(o.Fragment,null,o.createElement(je,{className:`${fi} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(Se.Endorse,{isSolid:!0,size:18,color:E.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(na,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Bn,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))};const wi=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:h,hasQuickBookingEnable:v,handleMakeAppointment:b,cardAuthorProps:f,maxChars:y=600,disableShortenContent:x})=>{var E,C,k,N,A,L,T,P,I,S,M,j;const{data:{locale:F,userInfo:B,env:{isMarryBaby:O}}}=i(q),{t:R}=w(),[V,D]=l(n||null),{id:U,countLikes:W,content:Z,replies:H=[],images:_=[],author:G,liked:$,link:Y,mentionedUser:J,mentions:ae}=V,{text:oe,replyingTo:ne}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})(Z),{authActionWrapper:ie}=qe({_joinCommunityIds:[null===(E=null==u?void 0:u.community)||void 0===E?void 0:E.id],_joinTopicIds:null===(C=null==u?void 0:u.topics)||void 0===C?void 0:C.map((e=>e.id))}),[le,re]=l(4),se=!!(null==B?void 0:B.id)&&(null==H?void 0:H.some((e=>e.author.id===B.id))),de=e=>{D((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 h&&h(a),a}return t}))},[me,pe]=l(!1),ue=c((()=>"comment"===r&&H&&0!=H.length?H.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):H),[r,H]),ge=(null==H?void 0:H.length)||0,he=String(null==G?void 0:G.email)&&(null==B?void 0:B.email)&&String(null==G?void 0:G.email)===String(null==B?void 0:B.email),ve=(null==G?void 0:G.name)||(null==G?void 0:G.username)||"",be=(null==G?void 0:G.username)||(null==G?void 0:G.name)||"",fe=null==G?void 0:G.avatar,we=(null==u?void 0:u.isAnonymous)||null==G?void 0:G.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:R("cardPost.anonymous")}]:[],...ae||[]],[Ee,Ce]=l(null),[ke,Ne]=l(null);s((()=>{if(null==G?void 0:G.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield Q(ee(te.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:z[F]}),"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(G.hospitalId)}if(null==G?void 0:G.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield Q(ee(te.GET_DOCTOR_INFO,{doctorId:t,website_url:z[F]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Ne(null==a?void 0:a._data.doctor)}));t(G.doctorId)}}),[G.hospitalId,G.doctorId]);const Ae=(null==ke?void 0:ke.valid_outpatient)||(null==ke?void 0:ke.valid_telemedicine),Le=((null==Ee?void 0:Ee.total_available_service)||(null==Ee?void 0:Ee.total_available_doctor))>0,Te=v&&(Ae||Le),Pe="chatbot"===(null===(N=null==V?void 0:V.author)||void 0===N?void 0:N.type);return o.createElement(He,{defaultParams:{_joinCommunityIds:[null===(A=null==u?void 0:u.community)||void 0===A?void 0:A.id],_joinTopicIds:null===(L=null==u?void 0:u.topics)||void 0===L?void 0:L.map((e=>e.id))}},o.createElement(vi,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":O,"data-has-booking":Te},"reply"===r&&o.createElement(ye,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(sa,Object.assign({avatar:fe,name:ve,username:be,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(he?"with-popover":""),type:r,userId:null==G?void 0:G.id,role:we,expertId:null==G?void 0:G.partnerId,title:null==G?void 0:G.title,doctorId:null==G?void 0:G.doctorId,hospitalId:null==G?void 0:G.hospitalId,hasQuickBooking:Te,handleMakeAppointment:b,isAnonymous:!!(null==u?void 0:u.isAnonymous),hideBackground:Pe,userType:null==G?void 0:G.type},f)),Boolean(null==V?void 0:V.isVerify)&&!Boolean(null==V?void 0:V.isOppose)&&o.createElement(yi,{title:null===(T=null==V?void 0:V.userVerify)||void 0===T?void 0:T.title,name:null===(P=null==V?void 0:V.userVerify)||void 0===P?void 0:P.name,userId:null===(I=null==V?void 0:V.userVerify)||void 0===I?void 0:I.id,role:null===(S=null==V?void 0:V.userVerify)||void 0===S?void 0:S.role,avatar:null===(M=null==V?void 0:V.userVerify)||void 0===M?void 0:M.avatar,className:"verify-tag"})),o.createElement(Eo,{className:"post-content-wrapper",replyingTo:ne,mentionedUser:J,description:oe,mentions:xe,maxChars:y,disableShortenContent:x}),o.createElement("span",null),o.createElement("span",null),_&&_.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Zo,{images:_,authorName:null==G?void 0:G.username})):null,_&&0!==_.length||!Y?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(Ke,{url:Y})),"most-engaging"!==r?o.createElement(o.Fragment,null,Pe&&o.createElement(bi,{listUrl:null==V?void 0:V.source,categorySlug:null==V?void 0:V.categorySlug}),o.createElement(st,{type:at.reply,loveCount:W,replyCount:ge,className:"post-reaction",liked:$,isReplied:se,hideCommentIcon:"reply"===r||Pe,hasShare:!1,onCommentClick:()=>ie((()=>pe((e=>!e)))),onCommentCountClick:()=>ie((()=>{pe(!0)})),onLikeClick:()=>ie((()=>e(void 0,void 0,void 0,(function*(){if(U){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return ce(X(a?K.COMMENT.LIKE:K.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:U,setLike:!$,locale:F});1===t.status&&D((e=>Object.assign(Object.assign({},e),{liked:!$,countLikes:e.countLikes+($?-1:1)})))}}))))}),me&&o.createElement(mo,{replyingId:m||V.id,replyToName:ve,isReply:!0,onClose:()=>pe(!1),onPostSuccess:e=>{"reply"===r?p&&p(e):de(e)},post:u,replyingUser:G}),"comment"===r&&H&&H.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(j=null==ue?void 0:ue.slice(0,le))||void 0===j?void 0:j.map((e=>o.createElement(wi,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:U,onPostCommentSuccess:de,post:u,onDeleteComment:()=>{D((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:b,hasQuickBookingEnable:v}))),ge>le&&o.createElement(o.Fragment,null,o.createElement(ye,{className:"top-divider",type:"solid"}),o.createElement(je,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>re((e=>e+4))},R("comment.seeMoreReplies",{count:ge-le}),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"})))):null):null,he&&o.createElement($n,{onDeleteComment:g,className:"popover",commentId:V.id})))},xi=(t,a)=>e(void 0,void 0,void 0,(function*(){var e,o,n;const i=yield ge(X(K.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(Ce))||void 0===n?void 0:n[0]})),Ei=({className:t,style:a,hideViewMoreComment:n,showMostEngaging:r,onCommentClick:c,onCommentCountClick:d,onMostEngagingCommentClick:m,onPostCommentSuccess:p,disableCardLink:u,disableShortenContent:g,onDeletePost:h,onEditPost:v,post:b,mostEngagingComment:f,onDeleteComment:y,showInputComment:E,InlineCommentsComponent:k,hasQuickBookingEnable:N,handleMakeAppointment:A,cardAuthorProps:L})=>{const[T,P]=l(b),[I,S]=l(!1),[M,z]=l(f),{community:j,topics:F,author:B,slug:O,isPin:R,liked:V,photos:D,mentions:U,title:W,description:Z,previewUrl:H,likesCount:_,commentsCount:G,id:J,commented:oe}=T,{data:{locale:ne,env:{isMarryBaby:ie,togetherBasePath:le}},action:{pushNotifications:re}}=i(q),{t:se}=w(),[de,me]=l(E),pe=`${le}/${(null==j?void 0:j.slug)||"_"}/${O||""}`,ue=`${Y(ne)}${pe}`,{authActionWrapper:ge}=qe((null==j?void 0:j.slug)?{_joinCommunityIds:[j.id],_joinTopicIds:null==F?void 0:F.map((e=>e.id))}:void 0),[he,ve]=l(!1);s((()=>{me(E)}),[E]);const be=(null==B?void 0:B.name)||(null==B?void 0:B.username)||"",fe=(null==B?void 0:B.username)||(null==B?void 0:B.name)||"",ye=null==B?void 0:B.avatar,we=(null==T?void 0:T.isAnonymous)||null==B?void 0:B.role,[xe,Ee]=l(null),[Ce,ke]=l(null);s((()=>{if(null==B?void 0:B.hospitalId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield Q(ee(te.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:ae[ne]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ee(null==a?void 0:a._data.branch)})))(B.hospitalId)}if(null==B?void 0:B.doctorId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield Q(ee(te.GET_DOCTOR_INFO,{doctorId:t,website_url:ae[ne]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&ke(null==a?void 0:a._data.doctor)})))(B.doctorId)}}),[B.hospitalId,B.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,Le=N&&(Ne||Ae);s((()=>{e(void 0,void 0,void 0,(function*(){if(J&&G&&r&&!(null==f?void 0:f.id)){const e=yield xi(J,ne);z(e)}}))}),[J,ne,G,r,null==f?void 0:f.id]),s((()=>{z(f)}),[null==f?void 0:f.id]);const Te=t=>e(void 0,void 0,void 0,(function*(){if(G>1&&(null==M?void 0:M.id)&&(null==M?void 0:M.id)===(null==t?void 0:t.id)){const e=yield xi(J,ne);z(e)}P((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),y&&y(t)}));return o.createElement(He,{defaultParams:(null==j?void 0:j.slug)?{_joinCommunityIds:[j.id],_joinTopicIds:null==F?void 0:F.map((e=>e.id))}:void 0},I&&o.createElement(ho,{url:ue,avatar:$,text:W,onClose:()=>S(!1)}),o.createElement(Kn,{className:t,style:a,"data-is-marrybaby":ie},R?o.createElement(ut,{className:"post-pin"}):null,o.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},o.createElement(sa,Object.assign({avatar:ye,name:be,username:fe,url:u?void 0:pe,community:j,timeText:null==T?void 0:T.createdTime,className:"post-author",role:we,userId:null==B?void 0:B.id,expertId:null==B?void 0:B.partnerId,doctorId:null==B?void 0:B.doctorId,hospitalId:null==B?void 0:B.hospitalId,title:null==B?void 0:B.title,hasQuickBooking:Le,handleMakeAppointment:A,"data-testid":"name",isAnonymous:!!(null==T?void 0:T.isAnonymous),extendEle:o.createElement(Xn,{authorEmail:String(null==B?void 0:B.email),onDeletePost:h,shareUrl:ue,post:T,className:"popover",onEditPost:v})},L))),o.createElement("a",{href:u?void 0:pe,className:"post-content-link-wrapper"},W&&o.createElement(C,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},x(W)),o.createElement(Eo,{className:"post-content-wrapper",description:Z,disableShortenContent:g,mentions:U,"data-testid":"Content of the Post"})),o.createElement("span",null),o.createElement("span",null),o.createElement("div",{key:"tag-topic"},F&&F.length>0?o.createElement(dt,{topics:F,className:"post-topics"}):null),o.createElement("div",{key:"social-preview"},(null==T?void 0:T.introUrl)?o.createElement("div",{className:"social-preview-wrapper "+((null==D?void 0:D.length)?"has-image":"")},o.createElement(qo,{url:T.introUrl,image:T.bannerImage})):null),o.createElement("div",{key:"image-preview"},(null==D?void 0:D.length)?o.createElement("div",{className:"image-preview-wrapper"},o.createElement(Zo,{images:D,authorName:null==B?void 0:B.name})):null),o.createElement("div",{key:"link-preview"},(null==T?void 0:T.introUrl)||(null==D?void 0:D.length)||!(null==H?void 0:H.url)?null:o.createElement("div",{className:"link-preview-wrapper"},o.createElement(Ke,{title:H.title,url:H.url,image:H.image}))),o.createElement(st,{isMarryBaby:ie,type:at.post,loveCount:_,replyCount:G,className:"post-reaction "+((null==D?void 0:D.length)||(null==H?void 0:H.url)?"hide-top-border":""),liked:he?!V:V,isReplied:oe,onCommentClick:()=>ge((()=>{c?c():me((e=>!e))})),onCommentCountClick:()=>{ge((()=>{ie?me(!0):d?d():!u&&(window.location.href=pe)}))},onShareClick:()=>{S(!0)},onLikeClick:()=>e(void 0,void 0,void 0,(function*(){if(J&&!he){ve(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield ce(X(K.POST.LIKE,{id:t,_locale:a}),"GET")})))({id:J,locale:ne});1!==(null==t?void 0:t.status)?re(ca(se)):P((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){re(ca(se))}ve(!1)}})),showingMostEngaging:!(!r||!(null==M?void 0:M.id))}),de&&o.createElement(mo,{isMainCmt:!E,onClose:()=>me(!1),onPostSuccess:e=>{0!==G||(null==M?void 0:M.id)||z(e),P((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount+1,commented:!0}))),p&&p(e)},post:T}),r&&(null==M?void 0:M.id)?o.createElement("div",{className:"most-engaging-wrapper",onClick:e=>{m?(e.stopPropagation(),m()):window.location.href=pe}},o.createElement(wi,{hasQuickBookingEnable:N,handleMakeAppointment:A,comment:M,post:T,onDeleteComment:()=>{Te&&Te(M)},className:"most-engaging-comment",type:"most-engaging",key:M.id,cardAuthorProps:L}),G>1&&!n&&o.createElement(je,{className:"see-more-comments",color:"ghost",size:"md"},se("comment.seeMoreComments",{count:G-1}))):null,k))};var Ci=Object.freeze({__proto__:null});export{jn as A,Wn as B,Ke as C,Ei as D,Xn as E,wi as F,$n as G,vt as H,mo as I,hi as J,We as K,Qe as L,ro as P,ho as S,Ze as T,yi as V,He as a,st as b,dt as c,pt as d,ut as e,wt as f,sa as g,to as h,qa as i,Qa as j,Qt as k,Ut as l,Jt as m,Ka as n,lo as o,yo as p,go as q,Eo as r,Io as s,Ci as t,qe as u,Oo as v,Zo as w,qo as x,na as y,Bn as z};
|
|
3079
|
+
`;var bi="-dzIuHr";const yi=({userId:e,avatar:t,name:a,role:n,title:i,className:r})=>{const{t:s}=w(),[c,d]=l(!1);return o.createElement(o.Fragment,null,o.createElement(je,{className:`${bi} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(Se.Endorse,{isSolid:!0,size:18,color:E.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(na,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Bn,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))};const wi=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:h,hasQuickBookingEnable:v,handleMakeAppointment:f,cardAuthorProps:b,maxChars:y=600,disableShortenContent:x})=>{var E,C,k,N,A,L,T,P,I,S,M,j;const{data:{locale:F,userInfo:B,env:{isMarryBaby:O}}}=i(q),{t:R}=w(),[V,D]=l(n||null),{id:U,countLikes:W,content:Z,replies:H=[],images:_=[],author:G,liked:$,link:Y,mentionedUser:J,mentions:ae}=V,{text:oe,replyingTo:ne}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})(Z),{authActionWrapper:ie}=qe({_joinCommunityIds:[null===(E=null==u?void 0:u.community)||void 0===E?void 0:E.id],_joinTopicIds:null===(C=null==u?void 0:u.topics)||void 0===C?void 0:C.map((e=>e.id))}),[le,re]=l(4),se=!!(null==B?void 0:B.id)&&(null==H?void 0:H.some((e=>e.author.id===B.id))),de=e=>{D((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 h&&h(a),a}return t}))},[me,pe]=l(!1),ue=c((()=>"comment"===r&&H&&0!=H.length?H.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):H),[r,H]),ge=(null==H?void 0:H.length)||0,he=String(null==G?void 0:G.email)&&(null==B?void 0:B.email)&&String(null==G?void 0:G.email)===String(null==B?void 0:B.email),ve=(null==G?void 0:G.name)||(null==G?void 0:G.username)||"",fe=(null==G?void 0:G.username)||(null==G?void 0:G.name)||"",be=null==G?void 0:G.avatar,we=(null==u?void 0:u.isAnonymous)||null==G?void 0:G.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:R("cardPost.anonymous")}]:[],...ae||[]],[Ee,Ce]=l(null),[ke,Ne]=l(null);s((()=>{if(null==G?void 0:G.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield Q(ee(te.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:z[F]}),"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(G.hospitalId)}if(null==G?void 0:G.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield Q(ee(te.GET_DOCTOR_INFO,{doctorId:t,website_url:z[F]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Ne(null==a?void 0:a._data.doctor)}));t(G.doctorId)}}),[G.hospitalId,G.doctorId]);const Ae=(null==ke?void 0:ke.valid_outpatient)||(null==ke?void 0:ke.valid_telemedicine),Le=((null==Ee?void 0:Ee.total_available_service)||(null==Ee?void 0:Ee.total_available_doctor))>0,Te=v&&(Ae||Le),Pe="chatbot"===(null===(N=null==V?void 0:V.author)||void 0===N?void 0:N.type);return o.createElement(He,{defaultParams:{_joinCommunityIds:[null===(A=null==u?void 0:u.community)||void 0===A?void 0:A.id],_joinTopicIds:null===(L=null==u?void 0:u.topics)||void 0===L?void 0:L.map((e=>e.id))}},o.createElement(vi,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":O,"data-has-booking":Te},"reply"===r&&o.createElement(ye,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(sa,Object.assign({avatar:be,name:ve,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==G?void 0:G.id,role:we,expertId:null==G?void 0:G.partnerId,title:null==G?void 0:G.title,doctorId:null==G?void 0:G.doctorId,hospitalId:null==G?void 0:G.hospitalId,hasQuickBooking:Te,handleMakeAppointment:f,isAnonymous:!!(null==u?void 0:u.isAnonymous),hideBackground:Pe,userType:null==G?void 0:G.type},b)),Boolean(null==V?void 0:V.isVerify)&&!Boolean(null==V?void 0:V.isOppose)&&o.createElement(yi,{title:null===(T=null==V?void 0:V.userVerify)||void 0===T?void 0:T.title,name:null===(P=null==V?void 0:V.userVerify)||void 0===P?void 0:P.name,userId:null===(I=null==V?void 0:V.userVerify)||void 0===I?void 0:I.id,role:null===(S=null==V?void 0:V.userVerify)||void 0===S?void 0:S.role,avatar:null===(M=null==V?void 0:V.userVerify)||void 0===M?void 0:M.avatar,className:"verify-tag"})),o.createElement(Eo,{className:"post-content-wrapper",replyingTo:ne,mentionedUser:J,description:oe,mentions:xe,maxChars:y,disableShortenContent:x}),o.createElement("span",null),o.createElement("span",null),_&&_.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Zo,{images:_,authorName:null==G?void 0:G.username})):null,_&&0!==_.length||!Y?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(Ke,{url:Y})),"most-engaging"!==r?o.createElement(o.Fragment,null,Pe&&o.createElement(fi,{listUrl:null==V?void 0:V.source,categorySlug:null==V?void 0:V.categorySlug}),o.createElement(st,{type:at.reply,loveCount:W,replyCount:ge,className:"post-reaction",liked:$,isReplied:se,hideCommentIcon:"reply"===r||Pe,hasShare:!1,onCommentClick:()=>ie((()=>pe((e=>!e)))),onCommentCountClick:()=>ie((()=>{pe(!0)})),onLikeClick:()=>ie((()=>e(void 0,void 0,void 0,(function*(){if(U){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return ce(X(a?K.COMMENT.LIKE:K.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:U,setLike:!$,locale:F});1===t.status&&D((e=>Object.assign(Object.assign({},e),{liked:!$,countLikes:e.countLikes+($?-1:1)})))}}))))}),me&&o.createElement(mo,{replyingId:m||V.id,replyToName:ve,isReply:!0,onClose:()=>pe(!1),onPostSuccess:e=>{"reply"===r?p&&p(e):de(e)},post:u,replyingUser:G}),"comment"===r&&H&&H.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(j=null==ue?void 0:ue.slice(0,le))||void 0===j?void 0:j.map((e=>o.createElement(wi,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:U,onPostCommentSuccess:de,post:u,onDeleteComment:()=>{D((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:f,hasQuickBookingEnable:v}))),ge>le&&o.createElement(o.Fragment,null,o.createElement(ye,{className:"top-divider",type:"solid"}),o.createElement(je,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>re((e=>e+4))},R("comment.seeMoreReplies",{count:ge-le}),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"})))):null):null,he&&o.createElement($n,{onDeleteComment:g,className:"popover",commentId:V.id})))},xi=(t,a)=>e(void 0,void 0,void 0,(function*(){var e,o,n;const i=yield ge(X(K.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(Ce))||void 0===n?void 0:n[0]})),Ei=({className:t,style:a,hideViewMoreComment:n,showMostEngaging:r,onCommentClick:c,onCommentCountClick:d,onMostEngagingCommentClick:m,onPostCommentSuccess:p,disableCardLink:u,disableShortenContent:g,onDeletePost:h,onEditPost:v,post:f,mostEngagingComment:b,onDeleteComment:y,showInputComment:E,InlineCommentsComponent:k,hasQuickBookingEnable:N,handleMakeAppointment:A,cardAuthorProps:L})=>{const[T,P]=l(f),[I,S]=l(!1),[M,z]=l(b),{community:j,topics:F,author:B,slug:O,isPin:R,liked:V,photos:D,mentions:U,title:W,description:Z,previewUrl:H,likesCount:_,commentsCount:G,id:J,commented:oe}=T,{data:{locale:ne,env:{isMarryBaby:ie,togetherBasePath:le}},action:{pushNotifications:re}}=i(q),{t:se}=w(),[de,me]=l(E),pe=`${le}/${(null==j?void 0:j.slug)||"_"}/${O||""}`,ue=`${Y(ne)}${pe}`,{authActionWrapper:ge}=qe((null==j?void 0:j.slug)?{_joinCommunityIds:[j.id],_joinTopicIds:null==F?void 0:F.map((e=>e.id))}:void 0),[he,ve]=l(!1);s((()=>{me(E)}),[E]);const fe=(null==B?void 0:B.name)||(null==B?void 0:B.username)||"",be=(null==B?void 0:B.username)||(null==B?void 0:B.name)||"",ye=null==B?void 0:B.avatar,we=(null==T?void 0:T.isAnonymous)||null==B?void 0:B.role,[xe,Ee]=l(null),[Ce,ke]=l(null);s((()=>{if(null==B?void 0:B.hospitalId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield Q(ee(te.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:ae[ne]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ee(null==a?void 0:a._data.branch)})))(B.hospitalId)}if(null==B?void 0:B.doctorId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield Q(ee(te.GET_DOCTOR_INFO,{doctorId:t,website_url:ae[ne]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&ke(null==a?void 0:a._data.doctor)})))(B.doctorId)}}),[B.hospitalId,B.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,Le=N&&(Ne||Ae);s((()=>{e(void 0,void 0,void 0,(function*(){if(J&&G&&r&&!(null==b?void 0:b.id)){const e=yield xi(J,ne);z(e)}}))}),[J,ne,G,r,null==b?void 0:b.id]),s((()=>{z(b)}),[null==b?void 0:b.id]);const Te=t=>e(void 0,void 0,void 0,(function*(){if(G>1&&(null==M?void 0:M.id)&&(null==M?void 0:M.id)===(null==t?void 0:t.id)){const e=yield xi(J,ne);z(e)}P((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),y&&y(t)}));return o.createElement(He,{defaultParams:(null==j?void 0:j.slug)?{_joinCommunityIds:[j.id],_joinTopicIds:null==F?void 0:F.map((e=>e.id))}:void 0},I&&o.createElement(ho,{url:ue,avatar:$,text:W,onClose:()=>S(!1)}),o.createElement(Kn,{className:t,style:a,"data-is-marrybaby":ie},R?o.createElement(ut,{className:"post-pin"}):null,o.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},o.createElement(sa,Object.assign({avatar:ye,name:fe,username:be,url:u?void 0:pe,community:j,timeText:null==T?void 0:T.createdTime,className:"post-author",role:we,userId:null==B?void 0:B.id,expertId:null==B?void 0:B.partnerId,doctorId:null==B?void 0:B.doctorId,hospitalId:null==B?void 0:B.hospitalId,title:null==B?void 0:B.title,hasQuickBooking:Le,handleMakeAppointment:A,"data-testid":"name",isAnonymous:!!(null==T?void 0:T.isAnonymous),extendEle:o.createElement(Xn,{authorEmail:String(null==B?void 0:B.email),onDeletePost:h,shareUrl:ue,post:T,className:"popover",onEditPost:v})},L))),o.createElement("a",{href:u?void 0:pe,className:"post-content-link-wrapper"},W&&o.createElement(C,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},x(W)),o.createElement(Eo,{className:"post-content-wrapper",description:Z,disableShortenContent:g,mentions:U,"data-testid":"Content of the Post"})),o.createElement("span",null),o.createElement("span",null),o.createElement("div",{key:"tag-topic"},F&&F.length>0?o.createElement(dt,{topics:F,className:"post-topics"}):null),o.createElement("div",{key:"social-preview"},(null==T?void 0:T.introUrl)?o.createElement("div",{className:"social-preview-wrapper "+((null==D?void 0:D.length)?"has-image":"")},o.createElement(qo,{url:T.introUrl,image:T.bannerImage})):null),o.createElement("div",{key:"image-preview"},(null==D?void 0:D.length)?o.createElement("div",{className:"image-preview-wrapper"},o.createElement(Zo,{images:D,authorName:null==B?void 0:B.name})):null),o.createElement("div",{key:"link-preview"},(null==T?void 0:T.introUrl)||(null==D?void 0:D.length)||!(null==H?void 0:H.url)?null:o.createElement("div",{className:"link-preview-wrapper"},o.createElement(Ke,{title:H.title,url:H.url,image:H.image}))),o.createElement(st,{isMarryBaby:ie,type:at.post,loveCount:_,replyCount:G,className:"post-reaction "+((null==D?void 0:D.length)||(null==H?void 0:H.url)?"hide-top-border":""),liked:he?!V:V,isReplied:oe,onCommentClick:()=>ge((()=>{c?c():me((e=>!e))})),onCommentCountClick:()=>{ge((()=>{ie?me(!0):d?d():!u&&(window.location.href=pe)}))},onShareClick:()=>{S(!0)},onLikeClick:()=>e(void 0,void 0,void 0,(function*(){if(J&&!he){ve(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield ce(X(K.POST.LIKE,{id:t,_locale:a}),"GET")})))({id:J,locale:ne});1!==(null==t?void 0:t.status)?re(ca(se)):P((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){re(ca(se))}ve(!1)}})),showingMostEngaging:!(!r||!(null==M?void 0:M.id))}),de&&o.createElement(mo,{isMainCmt:!E,onClose:()=>me(!1),onPostSuccess:e=>{0!==G||(null==M?void 0:M.id)||z(e),P((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount+1,commented:!0}))),p&&p(e)},post:T}),r&&(null==M?void 0:M.id)?o.createElement("div",{className:"most-engaging-wrapper",onClick:e=>{m?(e.stopPropagation(),m()):window.location.href=pe}},o.createElement(wi,{hasQuickBookingEnable:N,handleMakeAppointment:A,comment:M,post:T,onDeleteComment:()=>{Te&&Te(M)},className:"most-engaging-comment",type:"most-engaging",key:M.id,cardAuthorProps:L}),G>1&&!n&&o.createElement(je,{className:"see-more-comments",color:"ghost",size:"md"},se("comment.seeMoreComments",{count:G-1}))):null,k))};var Ci=Object.freeze({__proto__:null});export{jn as A,Wn as B,Ke as C,Ei as D,Xn as E,wi as F,$n as G,vt as H,mo as I,hi as J,We as K,Qe as L,ro as P,ho as S,Ze as T,yi as V,He as a,st as b,dt as c,pt as d,ut as e,wt as f,sa as g,to as h,qa as i,Qa as j,Qt as k,Ut as l,Jt as m,Ka as n,lo as o,yo as p,go as q,Eo as r,Io as s,Ci as t,qe as u,Oo as v,Zo as w,qo as x,na as y,Bn as z};
|