@hhgtech/hhg-components 1.25.2 → 1.25.4
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 +17 -17
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/authorBadge/index.d.ts +6 -3
- package/build/components/atoms/authorBadge/index.styles.d.ts +6 -0
- package/build/components/atoms/btnChoice/index.d.ts +1 -2
- package/build/components/mantine/CentralCarousel/index.d.ts +2 -1
- package/build/components/mantine/anchor/index.d.ts +7 -0
- package/build/components/mantine/button/index.d.ts +1 -1
- package/build/components/mantine/index.d.ts +3 -1
- package/build/components/mantine/theme/button.d.ts +0 -2
- package/build/components/mantine/theme/index.d.ts +14 -0
- package/build/components/molecules/index.d.ts +0 -10
- package/build/components/molecules/tabs/index.styles.d.ts +6 -0
- package/build/components/vaccination/index.d.ts +10 -0
- package/build/components/{molecules/babyVaccineCard/index.d.ts → vaccination/vaccineCard/_deprecated_index.d.ts} +4 -6
- package/build/components/vaccination/vaccineCard/icon.d.ts +8 -0
- package/build/components/vaccination/vaccineCard/index.d.ts +10 -0
- package/build/components/{molecules/babyVaccineCard → vaccination/vaccineCard}/index.styled.d.ts +1 -1
- package/build/components/vaccination/vaccineCard/status.d.ts +9 -0
- package/build/components/{molecules/babyVaccineDetailPopup → vaccination/vaccineDetailPopup}/index.styled.d.ts +1 -1
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-59b2ba21.js +1 -0
- package/build/{dataTransform-14e3774c.js → dataTransform-a2f97527.js} +1 -1
- package/build/esm/babyGrowth.js +27 -27
- 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-e112a32e.js → core-72ebbbdd.js} +1 -1
- package/build/esm/{dataTransform-af537a1d.js → dataTransform-8a818753.js} +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-2bde09a4.js +1 -0
- package/build/esm/{getSocialList-c3e31126.js → getSocialList-9f731038.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-04c67297.js +1 -0
- package/build/esm/{index-ae9398af.js → index-0916f86d.js} +1 -1
- package/build/esm/{index-d9629646.js → index-0a033513.js} +1 -1
- package/build/esm/{index-ab94aa69.js → index-0e346451.js} +1 -1
- package/build/esm/index-26859940.js +1 -0
- package/build/esm/{index-b3b89fa9.js → index-455424f3.js} +1 -1
- package/build/esm/{index-d3fc1a3f.js → index-4a91f35d.js} +1 -1
- package/build/esm/index-5e2d55be.js +1 -0
- package/build/esm/index-61a52967.js +1 -0
- package/build/esm/{index-5b5df230.js → index-7d0eedd6.js} +1 -1
- package/build/esm/{index-64c8bed9.js → index-7f49e9c2.js} +1 -1
- package/build/esm/index-86966a6a.js +31 -0
- package/build/esm/index-a6dd8773.js +128 -0
- package/build/esm/index-a886cf11.js +1 -0
- package/build/esm/index-b0c184a2.js +1 -0
- package/build/esm/index-b120df4a.js +1 -0
- package/build/esm/{index-08cf1684.js → index-b7c86641.js} +1 -1
- package/build/esm/index-baf6a1c3.js +1 -0
- package/build/esm/index-c7fcc51b.js +1 -0
- package/build/esm/{index-0e263d0f.js → index-d16d039e.js} +1 -1
- package/build/esm/index-d61c2518.js +1 -0
- package/build/esm/{index-db74af60.js → index-d898e60e.js} +1 -1
- package/build/esm/{index-4db77c5a.js → index-e6e4ffe6.js} +1 -1
- package/build/esm/index-faad8bf5.js +1 -0
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-d220e9d7.js → index.styled-2bb6deb5.js} +61 -61
- package/build/esm/{index.styled-52954cc1.js → index.styled-3686a0fc.js} +1 -1
- package/build/esm/{index.styled-41e2f289.js → index.styled-4e81a91a.js} +1 -1
- package/build/esm/{index.styled-9bb60204.js → index.styled-5f53f420.js} +1 -1
- package/build/esm/{index.styled-010e7312.js → index.styled-6668480f.js} +162 -655
- package/build/esm/{index.styled-dbcd7869.js → index.styled-aab8f843.js} +10 -5
- package/build/esm/index.styled-e5673d78.js +147 -0
- package/build/esm/{index.styled-df9600e8.js → index.styled-edb2d504.js} +16 -16
- package/build/esm/index.styles-dee0eea8.js +1 -0
- 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 +2 -2
- package/build/esm/{routing-43a872db.js → routing-e7d8175e.js} +1 -1
- package/build/esm/{screenSizeContext-dab3286e.js → screenSizeContext-a3df6c10.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/translationsProvider-c8e3640d.js +1 -0
- package/build/esm/{types-6854edac.js → types-84571d89.js} +131 -172
- package/build/esm/{types-22430cac.js → types-fc22f4eb.js} +37 -37
- package/build/esm/types.js +1 -1
- package/build/esm/{useHealthToolCache-408611cc.js → useHealthToolCache-922757ac.js} +1 -1
- package/build/esm/{useRafState-babdd5eb.js → useRafState-ace4fb63.js} +1 -1
- package/build/esm/useTranslations-e7780483.js +1 -0
- package/build/esm/vaccination.js +380 -0
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-98540fe6.js +1 -0
- package/build/{getSocialList-08bc57c1.js → getSocialList-e701abc1.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index-00dc766f.js +1 -0
- package/build/index-0bb82fa6.js +1 -0
- package/build/{index-f4c19c79.js → index-179083f6.js} +1 -1
- package/build/{index-f8247486.js → index-20b484c9.js} +1 -1
- package/build/{index-c0a35fd0.js → index-2f2caafd.js} +1 -1
- package/build/{index-3fc3706a.js → index-3c4909a1.js} +1 -1
- package/build/index-407a12ab.js +1 -0
- package/build/{index-66cafbb3.js → index-4f084805.js} +1 -1
- package/build/index-68ffdb52.js +128 -0
- package/build/{index-0d42db3e.js → index-6d6fec13.js} +1 -1
- package/build/index-733062aa.js +1 -0
- package/build/index-79bd4f94.js +1 -0
- package/build/index-829a5f87.js +31 -0
- package/build/index-89778fab.js +1 -0
- package/build/index-9f6816c2.js +1 -0
- package/build/index-b6ec603a.js +1 -0
- package/build/{index-32ee05ca.js → index-b93baaf0.js} +1 -1
- package/build/{index-fe30b44e.js → index-c1b0d87f.js} +1 -1
- package/build/{index-8f5dcd30.js → index-c6bc15a1.js} +1 -1
- package/build/index-ce3cb870.js +1 -0
- package/build/index-d1731f73.js +1 -0
- package/build/index-e00ee8cf.js +1 -0
- package/build/index-e49f75a4.js +1 -0
- package/build/{index-99bda660.js → index-ea42d8c0.js} +1 -1
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/index.styled-1a5ac19a.js +147 -0
- package/build/{index.styled-82bf0f81.js → index.styled-284f900d.js} +1 -1
- package/build/{index.styled-85e056bb.js → index.styled-384a4e75.js} +1 -1
- package/build/index.styled-569ed3c9.js +1249 -0
- package/build/{index.styled-635f43fe.js → index.styled-9c4558b9.js} +4 -4
- package/build/{index.styled-ec5f762d.js → index.styled-a83dc20a.js} +306 -799
- package/build/{index.styled-8209d37d.js → index.styled-b955ba8a.js} +1 -1
- package/build/{index.styled-d81bd7f6.js → index.styled-f06383ca.js} +9 -4
- package/build/index.styles-e2f46472.js +1 -0
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +3 -3
- package/build/{routing-7b2893db.js → routing-f980cabd.js} +1 -1
- package/build/{screenSizeContext-5ff9df7c.js → screenSizeContext-c4ee67f2.js} +10 -10
- package/build/together/components/atoms/cardLink/index.styled.d.ts +3 -1
- package/build/together/components/atoms/tagTopic/index.d.ts +9 -2
- package/build/together/components/molecules/cardAuthor/index.d.ts +6 -2
- package/build/together/components/molecules/cardAuthor/index.styles.d.ts +6 -0
- package/build/together/components/molecules/socialLinkPreview/index.styled.d.ts +3 -1
- package/build/together.js +1 -1
- package/build/{translationsProvider-70942b9e.js → translationsProvider-ce755972.js} +1 -1
- package/build/{types-56ad5b6c.js → types-aed996b2.js} +78 -119
- package/build/{types-305cd3fb.js → types-f693ac4c.js} +1 -1
- package/build/types.js +1 -1
- package/build/useHealthToolCache-10a7a9b7.js +1 -0
- package/build/{useRafState-3cc20b02.js → useRafState-13f4ccab.js} +1 -1
- package/build/{useTranslations-42a0f046.js → useTranslations-48ecf80b.js} +1 -1
- package/build/vaccination.js +380 -0
- package/package.json +5 -2
- package/build/Vietnam-9801f3cc.js +0 -1
- package/build/core-e42d47e5.js +0 -1
- package/build/esm/Vietnam-ea32232b.js +0 -1
- package/build/esm/getDynamicHealthTool-80b1725c.js +0 -1
- package/build/esm/index-182e5993.js +0 -1
- package/build/esm/index-655acf9a.js +0 -31
- package/build/esm/index-741edf49.js +0 -77
- package/build/esm/index-7afa0991.js +0 -1
- package/build/esm/index-9088a344.js +0 -1
- package/build/esm/index-9c720514.js +0 -1
- package/build/esm/index-9d9bb7e1.js +0 -177
- package/build/esm/index-9e4d483a.js +0 -1
- package/build/esm/index-9e7d01ce.js +0 -1
- package/build/esm/index-f26f47bd.js +0 -1
- package/build/esm/index.styled-ff6f334c.js +0 -23
- package/build/esm/translationsProvider-bbb93ed4.js +0 -1
- package/build/esm/useTranslations-01cdc4e8.js +0 -1
- package/build/getDynamicHealthTool-d1f12e90.js +0 -1
- package/build/index-016da465.js +0 -1
- package/build/index-2ace5ac4.js +0 -177
- package/build/index-3ca41e0b.js +0 -1
- package/build/index-543c2501.js +0 -1
- package/build/index-68dcbbcf.js +0 -1
- package/build/index-75c7973f.js +0 -31
- package/build/index-7fbad258.js +0 -77
- package/build/index-d3856a13.js +0 -1
- package/build/index-f1fe6f04.js +0 -1
- package/build/index-ff508398.js +0 -1
- package/build/index-fff4e663.js +0 -1
- package/build/index.styled-2520eaa4.js +0 -23
- package/build/index.styled-d058a1a3.js +0 -1249
- package/build/useHealthToolCache-f2e7cb7a.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-d3427989.js → BMI_BOYS.percentile.monthly-a56e0ffc.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-0ec351dc.js → BMI_BOYS.percentile.weekly-920fc973.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-754488a3.js → BMI_BOYS.percentile.yearly-d4c8f4ce.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-bdd181fe.js → BMI_BOYS.zscore.monthly-6e1e0d25.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-96c57cf9.js → BMI_BOYS.zscore.weekly-1fee23b9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-b14095bd.js → BMI_BOYS.zscore.yearly-29f4033d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-32e7420f.js → BMI_GIRLS.percentile.monthly-10215417.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d8d208ec.js → BMI_GIRLS.percentile.weekly-d2354ffe.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-7aa21d03.js → BMI_GIRLS.percentile.yearly-f1015a6a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-e4d6d979.js → BMI_GIRLS.zscore.monthly-a11c0c53.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-2e4e8fa5.js → BMI_GIRLS.zscore.weekly-2287e24d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-a6641c8d.js → BMI_GIRLS.zscore.yearly-146e0c5f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b69ed5d6.js → HEAD CIRCUM_BOYS.percentile.monthly-d1799081.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-72d106a3.js → HEAD CIRCUM_BOYS.percentile.weekly-8f964474.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-fc5b1751.js → HEAD CIRCUM_BOYS.percentile.yearly-59b65ec5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-21a4f827.js → HEAD CIRCUM_BOYS.zscore.monthly-fc27d692.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-fa5007c3.js → HEAD CIRCUM_BOYS.zscore.weekly-1158ba05.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-feb10e6e.js → HEAD CIRCUM_BOYS.zscore.yearly-f47b520a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-393575bb.js → HEAD CIRCUM_GIRLS.percentile.monthly-b23cb9f6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-43acee1c.js → HEAD CIRCUM_GIRLS.percentile.weekly-f0e341b5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-688ea68e.js → HEAD CIRCUM_GIRLS.percentile.yearly-28084fe2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-d47cefd1.js → HEAD CIRCUM_GIRLS.zscore.monthly-c0eaaeee.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-295ec109.js → HEAD CIRCUM_GIRLS.zscore.weekly-95a83e89.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-6c3a785f.js → HEAD CIRCUM_GIRLS.zscore.yearly-8578890f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-896d82bf.js → HEIGHT_BOYS.percentile.monthly-b67bb830.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-4e3c3546.js → HEIGHT_BOYS.percentile.weekly-1440c30b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-920d50b7.js → HEIGHT_BOYS.percentile.yearly-c86254c3.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-1f753679.js → HEIGHT_BOYS.zscore.monthly-540d1084.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-4673d843.js → HEIGHT_BOYS.zscore.weekly-a4a2e241.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-2887dbc5.js → HEIGHT_BOYS.zscore.yearly-60dd3974.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-88f3b1da.js → HEIGHT_GIRLS.percentile.monthly-4d7f27c9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-baf61139.js → HEIGHT_GIRLS.percentile.weekly-28c64bb8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-4e533444.js → HEIGHT_GIRLS.percentile.yearly-c1902fc1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-1dfbb0fb.js → HEIGHT_GIRLS.zscore.monthly-abceb60c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-08c692c5.js → HEIGHT_GIRLS.zscore.weekly-f5183f91.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-782015ed.js → HEIGHT_GIRLS.zscore.yearly-6b7f3caf.js} +0 -0
- /package/build/{Onboarding-9a9432d2.js → Onboarding-98039f0a.js} +0 -0
- /package/build/{Visible-47cffadb.js → Visible-ed4d6c3d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-dfb644f8.js → WEIGHT_BOYS.percentile.monthly-4b1cd7c7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-2308d475.js → WEIGHT_BOYS.percentile.weekly-ef5265de.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-3773af2c.js → WEIGHT_BOYS.percentile.yearly-679f6d7b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-b9597ecd.js → WEIGHT_BOYS.zscore.monthly-5895b6d9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-44737023.js → WEIGHT_BOYS.zscore.weekly-12ed7d25.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-e9aafbe4.js → WEIGHT_BOYS.zscore.yearly-351774d9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-cbfb95ad.js → WEIGHT_GIRLS.percentile.monthly-1baea9ae.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-1aba3d57.js → WEIGHT_GIRLS.percentile.weekly-e9d5c6e3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-3ec0fa52.js → WEIGHT_GIRLS.percentile.yearly-7c7a80bd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-cbb236e5.js → WEIGHT_GIRLS.zscore.monthly-712454e1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-fbaa864c.js → WEIGHT_GIRLS.zscore.weekly-a0b122b7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-2ff098a3.js → WEIGHT_GIRLS.zscore.yearly-3342afa6.js} +0 -0
- /package/build/components/{molecules/babyVaccineDetailPopup → vaccination/vaccineDetailPopup}/index.d.ts +0 -0
- /package/build/components/{molecules/babyVaccineImmunization → vaccination/vaccineImmunization}/index.d.ts +0 -0
- /package/build/components/{molecules/babyVaccineImmunization → vaccination/vaccineImmunization}/index.styled.d.ts +0 -0
- /package/build/components/{molecules/babyVaccineRecordsByAgeGroup → vaccination/vaccineRecordsByAgeGroup}/index.d.ts +0 -0
- /package/build/components/{molecules/babyVaccineRecordsByAgeGroup → vaccination/vaccineRecordsByAgeGroup}/index.styled.d.ts +0 -0
- /package/build/components/{molecules/babyVaccineTimelineBanner → vaccination/vaccineTimelineBanner}/index.d.ts +0 -0
- /package/build/components/{molecules/babyVaccineTimelineBanner → vaccination/vaccineTimelineBanner}/index.styled.d.ts +0 -0
- /package/build/{constants-0b27e3db.js → constants-ad6a50a2.js} +0 -0
- /package/build/{cookieHelper-418609fb.js → cookieHelper-51db0cbc.js} +0 -0
- /package/build/{dataTransform-e8f86c49.js → dataTransform-ee9003d8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-41ffe7ba.js → BMI_BOYS.percentile.monthly-48a59c0f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-9ef33b2d.js → BMI_BOYS.percentile.weekly-5c34d410.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-06b06c09.js → BMI_BOYS.percentile.yearly-e26bf39d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-7c2ee0a7.js → BMI_BOYS.zscore.monthly-08e2f101.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-e6f01c8e.js → BMI_BOYS.zscore.weekly-3a67ae6c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-5902d6ed.js → BMI_BOYS.zscore.yearly-53213ae1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-8987c997.js → BMI_GIRLS.percentile.monthly-c550bbf8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-304152b9.js → BMI_GIRLS.percentile.weekly-d12e5d7a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-0fc7475b.js → BMI_GIRLS.percentile.yearly-cabb6fc4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-20e7717d.js → BMI_GIRLS.zscore.monthly-175b1df0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-4d3f00ce.js → BMI_GIRLS.zscore.weekly-ba0b5a33.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-a94d6af8.js → BMI_GIRLS.zscore.yearly-ce6e75ca.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c7b1280b.js → HEAD CIRCUM_BOYS.percentile.monthly-1cc8fe64.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2456c7d8.js → HEAD CIRCUM_BOYS.percentile.weekly-22c2ad09.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-b532ca5e.js → HEAD CIRCUM_BOYS.percentile.yearly-ddff346d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-866eaaf8.js → HEAD CIRCUM_BOYS.zscore.monthly-27d0a48e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-0ea88a8f.js → HEAD CIRCUM_BOYS.zscore.weekly-460ba008.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-f6493cc3.js → HEAD CIRCUM_BOYS.zscore.yearly-c31ca8b2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-35e5b698.js → HEAD CIRCUM_GIRLS.percentile.monthly-b26f3b02.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-c499851a.js → HEAD CIRCUM_GIRLS.percentile.weekly-2af5ee2e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a9d97d79.js → HEAD CIRCUM_GIRLS.percentile.yearly-a5eb5073.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8ee8f414.js → HEAD CIRCUM_GIRLS.zscore.monthly-0f19c675.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-ee8512c4.js → HEAD CIRCUM_GIRLS.zscore.weekly-23a4d5ad.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-df7216dd.js → HEAD CIRCUM_GIRLS.zscore.yearly-0689d8d3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0320b0e3.js → HEIGHT_BOYS.percentile.monthly-9755d9d0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5868cb4b.js → HEIGHT_BOYS.percentile.weekly-02b57c85.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-9daf1f86.js → HEIGHT_BOYS.percentile.yearly-5b083a4f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-ca460ebe.js → HEIGHT_BOYS.zscore.monthly-b3d4365a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-f894c82a.js → HEIGHT_BOYS.zscore.weekly-a0994ec4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-fa4b676b.js → HEIGHT_BOYS.zscore.yearly-495823ae.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-48b19621.js → HEIGHT_GIRLS.percentile.monthly-1a0b845f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5b27f86f.js → HEIGHT_GIRLS.percentile.weekly-24af8af8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-d3997af7.js → HEIGHT_GIRLS.percentile.yearly-ba1a52e8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-eaae6616.js → HEIGHT_GIRLS.zscore.monthly-80e71dd3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-50d01252.js → HEIGHT_GIRLS.zscore.weekly-4e0c97e3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-89ac47d4.js → HEIGHT_GIRLS.zscore.yearly-279d1506.js} +0 -0
- /package/build/esm/{Onboarding-51892bac.js → Onboarding-9dd2740f.js} +0 -0
- /package/build/esm/{Visible-e31fd719.js → Visible-e63cdb53.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-8d8a71bf.js → WEIGHT_BOYS.percentile.monthly-51b2563d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-7bab37bc.js → WEIGHT_BOYS.percentile.weekly-e5b4bd04.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-f9687f80.js → WEIGHT_BOYS.percentile.yearly-59964992.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-81550a2f.js → WEIGHT_BOYS.zscore.monthly-892e298c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-984b38ad.js → WEIGHT_BOYS.zscore.weekly-5539413f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-eae2b8d4.js → WEIGHT_BOYS.zscore.yearly-f9c177f5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-2798e313.js → WEIGHT_GIRLS.percentile.monthly-f2954679.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-cbfad565.js → WEIGHT_GIRLS.percentile.weekly-9360fddd.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9dda126c.js → WEIGHT_GIRLS.percentile.yearly-63c4cc3b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9e0950eb.js → WEIGHT_GIRLS.zscore.monthly-1104bf5c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-af368ea8.js → WEIGHT_GIRLS.zscore.weekly-8eac3339.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d1664233.js → WEIGHT_GIRLS.zscore.yearly-fdafee53.js} +0 -0
- /package/build/esm/{constants-01216acb.js → constants-753ecb82.js} +0 -0
- /package/build/esm/{cookieHelper-1e48dd9d.js → cookieHelper-bdffdaf5.js} +0 -0
- /package/build/esm/{dataTransform-ea5d03ac.js → dataTransform-8890482c.js} +0 -0
- /package/build/esm/{index-61cb9b2f.js → index-c2644c09.js} +0 -0
- /package/build/esm/{isProduction-b684ea82.js → isProduction-56a1ab21.js} +0 -0
- /package/build/esm/{localizeNumberFormat-9c59aec8.js → localizeNumberFormat-997b0451.js} +0 -0
- /package/build/esm/{normalizeLink-cc3f9039.js → normalizeLink-9fab0337.js} +0 -0
- /package/build/esm/{theme-4cc44a21.js → theme-3cc56b19.js} +0 -0
- /package/build/esm/{translationsContext-a6196da1.js → translationsContext-e355ebc2.js} +0 -0
- /package/build/esm/{tslib.es6-d95a42ea.js → tslib.es6-1c928943.js} +0 -0
- /package/build/esm/{useIsInit-848679ea.js → useIsInit-921391c4.js} +0 -0
- /package/build/esm/{useOutsideClick-72a5f765.js → useOutsideClick-ed65f565.js} +0 -0
- /package/build/esm/{useScrollbarSize-375fca3a.js → useScrollbarSize-e0680143.js} +0 -0
- /package/build/esm/{useUniqueId-30ff697e.js → useUniqueId-4c5fdbcf.js} +0 -0
- /package/build/esm/{utils-1dfb7635.js → utils-92451b4a.js} +0 -0
- /package/build/{index-559bcc96.js → index-ac23b103.js} +0 -0
- /package/build/{isProduction-465d9514.js → isProduction-4ff91841.js} +0 -0
- /package/build/{localizeNumberFormat-23e42bce.js → localizeNumberFormat-1808c912.js} +0 -0
- /package/build/{normalizeLink-b3800c9c.js → normalizeLink-59da41bf.js} +0 -0
- /package/build/{theme-94d7d992.js → theme-9cdc8da0.js} +0 -0
- /package/build/{translationsContext-abe85d33.js → translationsContext-c2431a05.js} +0 -0
- /package/build/{tslib.es6-ea77f1ae.js → tslib.es6-f995bf64.js} +0 -0
- /package/build/{useIsInit-46d1c0d2.js → useIsInit-860ebc9b.js} +0 -0
- /package/build/{useOutsideClick-d3b3cf8f.js → useOutsideClick-a2d86f46.js} +0 -0
- /package/build/{useScrollbarSize-b745013d.js → useScrollbarSize-420cf0d2.js} +0 -0
- /package/build/{useUniqueId-60f45a13.js → useUniqueId-84c98b51.js} +0 -0
- /package/build/{utils-be064f59.js → utils-6b23688f.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-1c928943.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{B as w}from"./index-455424f3.js";import{T as x}from"./index-7f49e9c2.js";import{a as y}from"./index.styled-6668480f.js";import{u as E}from"./useTranslations-e7780483.js";import C from"innertext";import{t as k}from"./theme-3cc56b19.js";import{N,a9 as A,a4 as L,D as T,_ as I,C as S,ab as P}from"./index.styled-2bb6deb5.js";import{CommonGAssets as M}from"./gAssets.js";import{T as z,au as j,av as F,aw as B,ax as O,ay as V,az as R,aA as D,U,aB as W,aC as Z,aD as H,aE as q,aF as _,aG as G,aH as Q,aI as X,aJ as K,aK as $,aL as Y,aM as J,aN as ee,aO as te,aP as ae}from"./index.styled-4e81a91a.js";import{A as oe,B as ne,D as ie}from"./index-5e2d55be.js";import{e as le,c as re,P as se,g as ce,b as de,h as me,i as pe}from"./dataTransform-8a818753.js";import{I as ue}from"./index-e6e4ffe6.js";import ge from"lodash/debounce";import he from"react-contenteditable";import{H as ve}from"./index-b7c86641.js";import{d as fe,g as be}from"./cookieHelper-bdffdaf5.js";import{M as we,t as xe,c as ye,a as Ee}from"./utils-92451b4a.js";import Ce,{keyframes as ke,css as Ne}from"styled-components";import"./index.styled-3686a0fc.js";import"./index-0916f86d.js";import{I as Ae,C as Le,c as Te}from"./index.styled-e5673d78.js";import"./index.styled-5f53f420.js";import"./index-c2644c09.js";import"./index-a6dd8773.js";import Ie from"dayjs";import"./screenSizeContext-a3df6c10.js";import{d as Se}from"./index-0a033513.js";import"./isProduction-56a1ab21.js";import"./Onboarding-9dd2740f.js";import"./index-baf6a1c3.js";import"@mantine/hooks";import"date-fns";import"react-day-picker/DayPickerInput";import*as Pe from"react-dom";import"lodash/throttle";import"keen-slider/react";import"./index.styles-dee0eea8.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-aab8f843.js";import"string-format";import Me from"dayjs/plugin/relativeTime";import{M as ze}from"./index-d61c2518.js";import{a as je}from"./useUniqueId-4c5fdbcf.js";import"./translationsContext-e355ebc2.js";import{g as Fe}from"./routing-e7d8175e.js";import{T as Be}from"./index-b0c184a2.js";import{B as Oe}from"./index-b120df4a.js";const Ve=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"})),Re=n({}),De=({children:e,defaultParams:t})=>o.createElement(Re.Provider,{value:{defaultParams:t}},e),Ue=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(z),{defaultParams:o}=i(Re)||{},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(j),(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=F(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},We=Ce.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
@@ -6,14 +6,14 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
6
6
|
button {
|
|
7
7
|
position: relative;
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,Ze=ke`
|
|
10
10
|
0% {
|
|
11
11
|
transform: rotate(0deg);
|
|
12
12
|
}
|
|
13
13
|
100% {
|
|
14
14
|
transform: rotate(360deg);
|
|
15
15
|
}
|
|
16
|
-
`;
|
|
16
|
+
`;Ce.div`
|
|
17
17
|
display: flex;
|
|
18
18
|
width: fit-content;
|
|
19
19
|
width: -moz-fit-content;
|
|
@@ -29,15 +29,15 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
29
29
|
width: 24px;
|
|
30
30
|
height: 24px;
|
|
31
31
|
margin-bottom: 0.5rem;
|
|
32
|
-
animation: ${
|
|
32
|
+
animation: ${Ze} 1.2s linear infinite;
|
|
33
33
|
}
|
|
34
34
|
&[data-is-marrybaby='true'] {
|
|
35
35
|
box-shadow: none;
|
|
36
36
|
}
|
|
37
|
-
`;const
|
|
37
|
+
`;const He=({className:e,size:t="md"})=>{const{t:a}=E();return o.createElement(We,{className:e},o.createElement(w,{size:t,color:"transparent",isLoading:!0},a("loading")))},qe=Ce.div`
|
|
38
38
|
.link-info-container {
|
|
39
39
|
padding: 0.5rem 1rem;
|
|
40
|
-
background: #f4faff;
|
|
40
|
+
background: ${e=>e.color||"#f4faff"};
|
|
41
41
|
}
|
|
42
42
|
.link-image-wrapper {
|
|
43
43
|
position: relative;
|
|
@@ -76,7 +76,6 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
76
76
|
border-radius: 1rem;
|
|
77
77
|
.link-info-container {
|
|
78
78
|
padding-bottom: 1rem;
|
|
79
|
-
background: #f3f3f3;
|
|
80
79
|
p {
|
|
81
80
|
color: #2661ad;
|
|
82
81
|
}
|
|
@@ -95,42 +94,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
|
-
`,
|
|
99
|
-
display: flex;
|
|
100
|
-
width: 100%;
|
|
101
|
-
padding: 0.5rem 0;
|
|
102
|
-
cursor: grab;
|
|
103
|
-
overflow-x: auto;
|
|
104
|
-
.tag-link-item {
|
|
105
|
-
position: relative;
|
|
106
|
-
white-space: nowrap;
|
|
107
|
-
padding: 5px 12px;
|
|
108
|
-
border: 1px solid #e4e8ec;
|
|
109
|
-
background: white;
|
|
110
|
-
border-radius: 2rem;
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
-webkit-user-drag: none;
|
|
113
|
-
user-select: none;
|
|
114
|
-
|
|
115
|
-
* {
|
|
116
|
-
pointer-events: none;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
.tag-link-item:not(:first-child) {
|
|
120
|
-
margin-left: 0.5rem;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
::-webkit-scrollbar {
|
|
124
|
-
width: 0;
|
|
125
|
-
}
|
|
126
|
-
&.sliding {
|
|
127
|
-
cursor: grabbing;
|
|
128
|
-
user-select: none;
|
|
129
|
-
a {
|
|
130
|
-
pointer-events: none;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
`,tt=e=>{var{topics:a,onClick:n,className:s,style:c,trackingCategory:d="Together",locale:m}=e,p=t(e,["topics","onClick","className","style","trackingCategory","locale"]);const{sliding:u,mouseDownHandler:g,sliderRef:h}=(()=>{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:v}},action:{sanitizeFunction:f}}=i(S);return o.createElement(et,Object.assign({ref:h,onClick:n,onMouseDown:e=>g(e),className:`${s} ${u?"sliding":""}`,style:c},p),a.map(((e,t)=>o.createElement("a",{className:"tag-link-item",key:t,"data-event-category":d,"data-event-action":"Topic in Post Click","data-event-label":`${O(m)}${v}${e.url}`,href:e.isActive&&!e.isHidden?`${v}${e.url}`:void 0},o.createElement(b,{size:"p3"},o.createElement("span",{dangerouslySetInnerHTML:{__html:(null==f?void 0:f(e.name))||e.name}}))))))},at=ye.div`
|
|
97
|
+
`,_e=({title:t,url:a,image:n,logo:c,className:d,style:p,noRefetch:u})=>{const{data:{locale:g,env:{isMarryBaby:h}}}=i(z),[v,f]=l(!1),b=m(),w=r(u);w.current=u;const[y,E]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!w.current){if(!a)return E(null);E((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),B(O(V.FETCH_PREVIEW,{_locale:g}),"POST",{data:{link:a}}).then((e=>{var t,o,n;f(!1),E({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((()=>{E(null)}))}}))}),[a]);const C=(null==y?void 0:y.image)||n,k=(null==y?void 0:y.title)||t,N=(null==y?void 0:y.logo)||c,A=(null==y?void 0:y.url)||a,L=A.replace("http://","").replace("https://","").split(/[/?#]/)[0],T=r(!1);return o.createElement(qe,{"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"},C&&o.createElement("div",{className:"link-image-wrapper"},!h&&o.createElement("img",{className:"link-image-blur",src:C,onError:e=>{T.current||(T.current=!0,e.currentTarget.src=R)}}),o.createElement("img",{className:"link-image",src:C,onError:e=>{T.current||(T.current=!0,e.currentTarget.src=R)}})),o.createElement("div",{className:"link-info-container"},o.createElement(x,{size:"n1"},h&&N&&!v&&o.createElement("img",{className:"link-logo",src:N,onError:e=>f(!0)}),L),o.createElement(ve,{tag:"h6"},k))))},Ge=n({});var Qe="vvR-m49";const Xe=({children:e,className:t=""})=>{const{isReplied:a,trackingCategory:n,trackingLabel:l,onLikeClick:r}=i(Ge);return o.createElement("div",{className:`${Qe} ${t}`,"data-event-category":n,"data-event-action":a?"Like Comment Click":"Like Post Click","data-event-label":l,onClick:()=>{null==r||r()}},e)},Ke=({children:e,className:t=""})=>{const{trackingCategory:a,trackingLabel:n,onShareClick:l}=i(Ge);return o.createElement("div",{className:`${Qe} ${t}`,onClick:()=>{null==l||l()},"data-event-category":a,"data-event-action":"Share Icon Click","data-event-label":n},e)},$e=({children:e,className:t=""})=>{const{isReplied:a,trackingCategory:n,trackingLabel:l,onCommentClick:r}=i(Ge);return o.createElement("div",{className:`${Qe} ${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 Ye,Je="UhiT4m5",et="oEfeTkV",tt="OlbikxJ",at="_9GXHCn3",ot="MV3lNuh";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(Ye||(Ye={}));const nt=e=>{var{type:a,loveCount:n=0,replyCount:l=0,replyPadding:r,liked:s,isReplied:c,onCommentClick:d,onLikeClick:m,onCommentCountClick:p,onShareClick:u,className:g,style:h,hideCommentIcon:v,showingMostEngaging:f,isMarryBaby:b,hasShare:w=!0,hasCountLike:y=!0,trackingCategory:C="Together",trackingLabel:A="",children:L}=e,T=t(e,["type","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onCommentCountClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:I}}}=i(z),S=Boolean(b)?b:I,{t:P}=E();return o.createElement(Ge.Provider,{value:{liked:s,loveCount:n,trackingCategory:C,trackingLabel:A,isReplied:c,onLikeClick:m,onShareClick:u,onCommentClick:d}},L||o.createElement("div",Object.assign({className:`${Je} ${g}`,"data-show-most-engaging":f,"data-type":a===Ye.post?"post":"reply","data-reply-padding":a===Ye.reply&&r,"data-is-marrybaby":S,style:h},T),o.createElement("div",{className:et},o.createElement("div",{className:tt},o.createElement(Xe,null,o.createElement(x,{className:at,style:{marginRight:"25px"},size:"p3",as:"div"},o.createElement(N,{className:"txt-icon",isMarryBaby:S,isSolid:s,color:s?S?k.mbColors.pink:k.colors.red800:"#737373"}),y&&o.createElement("div",{className:ot},n))),w&&o.createElement(Ke,null,o.createElement(x,{size:"p3",className:at,as:"div"},o.createElement(Ae.Share,{isMarryBaby:S})))),!v&&o.createElement($e,null,o.createElement(x,{size:"p3",className:at,as:"div"},c?o.createElement(Ae.Reply,{className:"txt-icon"}):o.createElement(Ae.Comment,{className:"txt-icon",isMarryBaby:S}),c?P("cardReactions.reply"):o.createElement("div",{className:ot},P("post.commentCount",{count:l})))))))};nt.LikeWrapper=Xe,nt.ShareWrapper=Ke,nt.CommentWrapper=$e;const it=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:{}}))),lt=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,cx:f}=it(void 0,{name:"TagTopic",classNames:p,styles:u,unstyled:g}),{sliding:b,mouseDownHandler:w,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:E}},action:{sanitizeFunction:C}}=i(z);return o.createElement("div",Object.assign({ref:y,onClick:n,onMouseDown:e=>w(e),className:`${v.wrapper} ${s} ${b?"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":`${D(m)}${E}${e.url}`,href:e.isActive&&!e.isHidden?`${E}${e.url}`:void 0},o.createElement(x,{size:"p4"},o.createElement("span",{dangerouslySetInnerHTML:{__html:(null==C?void 0:C(e.name))||e.name}}))))))},rt=Ce.div`
|
|
134
98
|
display: flex;
|
|
135
99
|
align-items: center;
|
|
136
100
|
justify-content: space-between;
|
|
@@ -197,13 +161,13 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
197
161
|
}
|
|
198
162
|
}
|
|
199
163
|
&.label-sorting {
|
|
200
|
-
${
|
|
164
|
+
${we.tdUp} {
|
|
201
165
|
padding-bottom: 1.5rem;
|
|
202
166
|
margin-bottom: -0.75rem;
|
|
203
167
|
}
|
|
204
168
|
}
|
|
205
169
|
}
|
|
206
|
-
`,
|
|
170
|
+
`,st=({label:e,rightLabel:t,onClick:a,color:n,className:l,style:r})=>{const{data:{env:{isMarryBaby:s}}}=i(z);return o.createElement(rt,{"data-is-marrybaby":s,"data-color":n,onClick:a,className:l,style:r},o.createElement(x,{className:"label-sort-pin-heading",size:s?"p4":"p3",type:"bold"},e),t)};const ct=({onClick:e,color:t,className:a,style:n})=>{const{data:{env:{isMarryBaby:l}}}=i(z),{t:r}=E();return o.createElement(st,{label:o.createElement(o.Fragment,null,l&&o.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M3.5 19.9999L7.87 15.6299' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.95634 11.294C4.56534 11.685 4.56534 12.318 4.95634 12.708L7.87434 15.626L10.7923 18.544C11.1833 18.935 11.8163 18.935 12.2063 18.544L13.3813 17.369C13.5693 17.181 13.6743 16.927 13.6743 16.662V12.726L16.5743 9.82597L18.8833 9.94897C19.1663 9.96397 19.4433 9.85797 19.6433 9.65797L20.2173 9.08397C20.6083 8.69297 20.6083 8.05997 20.2173 7.66997L15.8313 3.28397C15.4403 2.89297 14.8073 2.89297 14.4173 3.28397L13.8433 3.85797C13.6423 4.05897 13.5363 4.33497 13.5523 4.61797L13.6753 6.92697L10.7753 9.82697H6.83834C6.57334 9.82697 6.31834 9.93197 6.13134 10.12L4.95634 11.294V11.294Z' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16.5699 9.83018L13.6699 6.93018' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e"})," ",r("label.pinnedPost")),rightLabel:!l&&o.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='7.18605' y1='7.68219' x2='3.68219' y2='13.8139' stroke='%23FEA21E' stroke-linecap='round'/%3e%3cpath d='M3.24591 7.78426C3.21275 7.84168 3.20376 7.90993 3.22092 7.97398C3.23808 8.03803 3.27998 8.09264 3.3374 8.12579L8.78429 11.2706C8.90385 11.3396 9.05674 11.2986 9.12578 11.1791C9.71191 10.1641 9.71348 8.97262 9.23682 7.99339L10.8583 5.18521C11.5115 5.00603 12.0982 4.57973 12.4638 3.94629C12.5328 3.82672 12.4919 3.67383 12.3723 3.6048L8.18237 1.18584C8.12494 1.15268 8.0567 1.1437 7.99265 1.16086C7.92861 1.17803 7.874 1.21993 7.84086 1.27736C7.47521 1.91077 7.39934 2.63194 7.57065 3.28723L5.94919 6.09545C4.86323 6.1723 3.83201 6.76934 3.24591 7.78426Z' fill='%23FEA21E' stroke='%23FEA21E' stroke-width='0.5' stroke-linejoin='round'/%3e%3c/svg%3e"}),onClick:e,color:"white",className:`label-pinned ${a}`,style:n})};const dt=Ce.div`
|
|
207
171
|
position: relative;
|
|
208
172
|
display: content;
|
|
209
173
|
|
|
@@ -369,7 +333,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
369
333
|
} */
|
|
370
334
|
}
|
|
371
335
|
}
|
|
372
|
-
`,
|
|
336
|
+
`,mt=Ce.div`
|
|
373
337
|
display: flex;
|
|
374
338
|
/* max-height: 300px; */
|
|
375
339
|
flex-direction: column;
|
|
@@ -509,7 +473,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
509
473
|
}
|
|
510
474
|
}
|
|
511
475
|
}
|
|
512
|
-
`,
|
|
476
|
+
`,pt=({className:e,style:t,toggleButtonContent:a,position:n="bottom",align:c="end",children:d,buttonProps:m})=>{const{data:{env:{isMarryBaby:p}}}=i(z),[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(dt,{"data-is-marrybaby":p,className:e,style:t},o.createElement(w,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)},ut=e=>{var{data:a}=e,n=t(e,["data"]);return o.createElement(pt,Object.assign({},n),(({setShow:e})=>o.createElement(gt,{data:a,setShow:e})))},gt=({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(mt,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(ve,{className:"__title",tag:"h6"},r.title):null):null,r.description?o.createElement(x,{className:"tree-text-description",color:k.colors.gray600,size:"p3",type:"regular"},r.description):null,o.createElement("div",{className:"__content"},"jsx"===r.type?null===(a=null==r?void 0:r.jsxRenderer)||void 0===a?void 0:a.call(r,t):null,"list"===r.type?o.createElement("ul",{className:"__list"},Array.isArray(r.list)?r.list.map(((e,a)=>o.createElement("li",{key:a,style:e.style,className:`__item ${e.className}`}," ",o.createElement("div",{className:"__btn "+(e.selected?"--checked":""),onClick:()=>((e,{subTree:a,onClick:o=(()=>null)})=>{o&&o(),a?i((t=>t.split(".").concat(String(e)).join("."))):t&&t(!1)})(a,e),"data-event-category":e.dataEventCategory,"data-event-action":e.dataEventAction,"data-event-label":e.dataEventLabel},e.icon&&o.createElement("img",{className:"__icon",src:e.icon}),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 ht;!function(e){e.latest="latest",e.oldest="oldest",e.popular="popular"}(ht||(ht={}));const vt=({onChange:e,className:t,style:a,leftLabel:n,rightLabel:l,color:r,value:s,choices:c})=>{const{data:{env:{isMarryBaby:d}}}=i(z);return o.createElement(st,{label:n,rightLabel:o.createElement(ut,{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(x,{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})},ft=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 bt="dZWeHns",wt="tMiOKib",xt="uDcqD-2",yt="pDlsows",Et="m-HVXw1";const Ct=({children:e,className:t=""})=>o.createElement("div",{className:`${wt} ${t}`},e),kt=({children:e,className:t=""})=>o.createElement("div",{className:`${xt} ${t}`},e);var Nt="sTU4T4I",At="tCql9Je",Lt="_3j7uYhH",Tt="PHABgoT";const It=({avatarProps:e,title:t,subTitle:a,children:n,className:i="",style:l,onAvatarClick:r,avatarIcon:s})=>o.createElement("div",{className:`${Nt} ${i}`,style:l},o.createElement("div",{className:Lt,onClick:r},o.createElement(U,Object.assign({},e)),s&&o.createElement("div",{className:Tt},s)),o.createElement("div",{className:`${At} ${i}`},n||o.createElement(o.Fragment,null,t&&o.createElement(Ct,null,t),a&&o.createElement(kt,null,a))));It.MainText=Ct,It.SubText=kt,It.SubDivider=({className:e=""})=>o.createElement("span",{className:`${Et} ${e}`}),It.Row=({children:e,className:t=""})=>o.createElement("div",{className:`${bt} ${t} row`},e),It.ColLeft=({children:e,className:t=""})=>o.createElement("div",{className:`${t} col-left`},e),It.ColRight=({children:e,className:t=""})=>o.createElement("div",{className:`${t} col-right`},e),It.SubTextRow=({children:e,className:t=""})=>o.createElement("div",{className:`${yt} ${t}`},e);const St=e=>{var{fallbackSrc:a=M.getAssetPath("avatar.jpg")}=e,n=t(e,["fallbackSrc"]);const i=r(null),l=n.src||a||"",c=r(!1);s((()=>{l!==a&&i.current&&(i.current.src=l)}),[]),s((()=>{c.current=!1}),[l]);return o.createElement("img",Object.assign({ref:i},n,{src:l,onError:e=>{var t;c.current||(e.currentTarget.src=a||"",c.current=!0),null===(t=n.onError)||void 0===t||t.call(n,e)}}))};var Pt="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",Mt="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 zt=Ce.div`
|
|
513
477
|
position: fixed;
|
|
514
478
|
left: 50%;
|
|
515
479
|
width: 343px;
|
|
@@ -519,7 +483,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
519
483
|
transform: translate(-50%, -50%);
|
|
520
484
|
transition: all 0.5s ease-in-out;
|
|
521
485
|
|
|
522
|
-
${
|
|
486
|
+
${we.tdUp} {
|
|
523
487
|
width: 750px;
|
|
524
488
|
}
|
|
525
489
|
|
|
@@ -539,7 +503,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
539
503
|
}
|
|
540
504
|
|
|
541
505
|
.popup-content {
|
|
542
|
-
${
|
|
506
|
+
${we.mbDown} {
|
|
543
507
|
display: block;
|
|
544
508
|
}
|
|
545
509
|
display: flex;
|
|
@@ -584,7 +548,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
584
548
|
text-align: center;
|
|
585
549
|
}
|
|
586
550
|
}
|
|
587
|
-
`,
|
|
551
|
+
`,jt=Ce.div`
|
|
588
552
|
position: fixed;
|
|
589
553
|
z-index: 110;
|
|
590
554
|
top: 0;
|
|
@@ -597,7 +561,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
597
561
|
&[data-open='false'] {
|
|
598
562
|
display: none;
|
|
599
563
|
}
|
|
600
|
-
`,
|
|
564
|
+
`,Ft=Ce.div`
|
|
601
565
|
.image-container {
|
|
602
566
|
.badge-avatar {
|
|
603
567
|
position: absolute;
|
|
@@ -622,7 +586,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
622
586
|
width: 24px;
|
|
623
587
|
height: 24px;
|
|
624
588
|
}
|
|
625
|
-
`,
|
|
589
|
+
`,Bt=Ce.div`
|
|
626
590
|
position: relative;
|
|
627
591
|
z-index: 9;
|
|
628
592
|
.specialty {
|
|
@@ -651,20 +615,20 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
651
615
|
text-overflow: ellipsis;
|
|
652
616
|
overflow: hidden;
|
|
653
617
|
}
|
|
654
|
-
`;
|
|
618
|
+
`;Ce.span`
|
|
655
619
|
display: flex;
|
|
656
620
|
flex-direction: column;
|
|
657
621
|
justify-content: center;
|
|
658
622
|
margin: 0 0.4em;
|
|
659
623
|
color: ${e=>e.theme.colors.neutral300};
|
|
660
|
-
`,
|
|
624
|
+
`,Ce.div`
|
|
661
625
|
display: inline-block;
|
|
662
626
|
width: 3px;
|
|
663
627
|
height: 3px;
|
|
664
628
|
margin: 0;
|
|
665
629
|
background-color: ${e=>e.theme.colors.gray400};
|
|
666
630
|
border-radius: 50%;
|
|
667
|
-
`,
|
|
631
|
+
`,Ce.div`
|
|
668
632
|
display: flex;
|
|
669
633
|
margin-top: 8px;
|
|
670
634
|
|
|
@@ -672,12 +636,12 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
672
636
|
width: 24px;
|
|
673
637
|
height: 24px;
|
|
674
638
|
}
|
|
675
|
-
`;const
|
|
639
|
+
`;const Ot=Ce.ul`
|
|
676
640
|
padding-left: 18px;
|
|
677
641
|
li {
|
|
678
642
|
list-style-type: disc;
|
|
679
643
|
}
|
|
680
|
-
`,
|
|
644
|
+
`,Vt=({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}=E(),[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),B(W(Z.GET_DOCTOR_INFO,{doctorId:n,website_url:H[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 C=(null==v?void 0:v.experiences)||[],N=((null==v?void 0:v.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),A=C.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(zt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},b||!v?o.createElement(He,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Pt,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(Ft,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(St,{src:null==v?void 0:v.avatar,fallbackSrc:d,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:Mt,alt:"badge"})))),o.createElement(Bt,null,o.createElement(x,{size:"s3",type:"semiBold",className:"full-name"},null==v?void 0:v.name),o.createElement("div",{className:"specialty"},N&&o.createElement(o.Fragment,null,o.createElement(x,{size:"p4",color:k.colors.gray800},N," • ")),o.createElement("a",{href:q({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(x,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==v?void 0:v.organization.name))))),!r&&o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:_({name:v.name,id:v.id,locale:i})},o.createElement(w,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment"))))),A&&o.createElement(Bt,null,o.createElement("div",{className:"experience"},o.createElement(x,{type:"bold",size:"s3",color:k.colors.gray800,style:{paddingBottom:16}},h("expert.content.description").toUpperCase()),o.createElement(Ot,null,A.map(((e,t)=>o.createElement("li",{key:t},o.createElement(x,{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:_({name:v.name,id:v.id,locale:i})},o.createElement(w,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment")))):o.createElement("a",{href:_({name:v.name,id:v.id,locale:i})},o.createElement(x,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":m,"data-event-action":"See Full Doctor Profile","data-event-label":D(i)+_({name:v.name,id:v.id,locale:i})},h("home.seeExpert"))))))),o.createElement(jt,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};const Rt=Ce.div`
|
|
681
645
|
position: fixed;
|
|
682
646
|
left: 50%;
|
|
683
647
|
width: 343px;
|
|
@@ -687,7 +651,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
687
651
|
transform: translate(-50%, -50%);
|
|
688
652
|
transition: all 0.5s ease-in-out;
|
|
689
653
|
|
|
690
|
-
${
|
|
654
|
+
${we.tdUp} {
|
|
691
655
|
width: 750px;
|
|
692
656
|
}
|
|
693
657
|
|
|
@@ -707,7 +671,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
707
671
|
}
|
|
708
672
|
|
|
709
673
|
.popup-content {
|
|
710
|
-
${
|
|
674
|
+
${we.mbDown} {
|
|
711
675
|
display: block;
|
|
712
676
|
}
|
|
713
677
|
display: flex;
|
|
@@ -749,7 +713,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
749
713
|
text-align: center;
|
|
750
714
|
}
|
|
751
715
|
}
|
|
752
|
-
`,
|
|
716
|
+
`,Dt=Ce.div`
|
|
753
717
|
position: fixed;
|
|
754
718
|
z-index: 110;
|
|
755
719
|
top: 0;
|
|
@@ -762,7 +726,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
762
726
|
&[data-open='false'] {
|
|
763
727
|
display: none;
|
|
764
728
|
}
|
|
765
|
-
`,
|
|
729
|
+
`,Ut=Ce.div`
|
|
766
730
|
.image-container {
|
|
767
731
|
.badge-avatar {
|
|
768
732
|
position: absolute;
|
|
@@ -787,7 +751,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
787
751
|
width: 24px;
|
|
788
752
|
height: 24px;
|
|
789
753
|
}
|
|
790
|
-
`,
|
|
754
|
+
`,Wt=Ce.div`
|
|
791
755
|
position: relative;
|
|
792
756
|
z-index: 9;
|
|
793
757
|
.specialty {
|
|
@@ -816,20 +780,20 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
816
780
|
text-overflow: ellipsis;
|
|
817
781
|
overflow: hidden;
|
|
818
782
|
}
|
|
819
|
-
`;
|
|
783
|
+
`;Ce.span`
|
|
820
784
|
display: flex;
|
|
821
785
|
flex-direction: column;
|
|
822
786
|
justify-content: center;
|
|
823
787
|
margin: 0 0.4em;
|
|
824
788
|
color: ${e=>e.theme.colors.neutral300};
|
|
825
|
-
`,
|
|
789
|
+
`,Ce.div`
|
|
826
790
|
display: inline-block;
|
|
827
791
|
width: 3px;
|
|
828
792
|
height: 3px;
|
|
829
793
|
margin: 0;
|
|
830
794
|
background-color: ${e=>e.theme.colors.gray400};
|
|
831
795
|
border-radius: 50%;
|
|
832
|
-
`;const
|
|
796
|
+
`;const Zt=Ce.div`
|
|
833
797
|
display: flex;
|
|
834
798
|
margin-top: 8px;
|
|
835
799
|
|
|
@@ -837,7 +801,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
837
801
|
width: 24px;
|
|
838
802
|
height: 24px;
|
|
839
803
|
}
|
|
840
|
-
`,
|
|
804
|
+
`,Ht={author:"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='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%2345A4FF'/%3e%3cpath d='M23.9998 11.9995C23.9998 11.4024 23.9561 10.8154 23.8719 10.2417L18.7952 5.16504L5.04102 18.9585L9.89867 23.8162C10.5809 23.9366 11.283 23.9995 11.9998 23.9995C18.6272 23.9995 23.9998 18.6269 23.9998 11.9995Z' fill='%232D87F3'/%3e%3cpath d='M9.01377 17.824L5.04102 18.9591L6.17609 14.9863L8.54445 15.4556L9.01377 17.824Z' fill='white'/%3e%3cpath d='M8.54399 15.4561L5.04102 18.9591L9.01321 17.824L8.54399 15.4561Z' fill='%23F7F9FC'/%3e%3cpath d='M6.46714 18.5518L5.4485 17.5332L5.04102 18.9593L6.46714 18.5518Z' fill='%23E4E8EC'/%3e%3cpath d='M5.95747 18.043L5.04102 18.9595L6.46659 18.5521L5.95747 18.043Z' fill='%23D2D6DC'/%3e%3cpath d='M15.8281 5.33105L18.6654 8.16829L9.01365 17.82L6.17641 14.9828L15.8281 5.33105Z' fill='%23FFD658'/%3e%3cpath d='M7.59375 16.4043L17.2455 6.75259L18.6638 8.17094L9.0121 17.8226L7.59375 16.4043Z' fill='%23FFC326'/%3e%3cpath d='M18.3123 8.52499L15.4746 5.68737L16.5983 4.56359C17.0386 4.12334 17.7524 4.12334 18.1927 4.56359L19.436 5.8069C19.8763 6.24715 19.8763 6.96096 19.436 7.40121L18.3123 8.52499Z' fill='%23FF5331'/%3e%3cpath d='M18.8155 5.18555L16.8945 7.10648L18.3131 8.52497L19.4368 7.40119C19.877 6.96094 19.877 6.24713 19.4368 5.80688L18.8155 5.18555Z' fill='%23F44D2C'/%3e%3c/svg%3e",edtior:"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='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%2345A4FF'/%3e%3cpath d='M23.9998 11.9995C23.9998 11.4024 23.9561 10.8154 23.8719 10.2417L18.7952 5.16504L5.04102 18.9585L9.89867 23.8162C10.5809 23.9366 11.283 23.9995 11.9998 23.9995C18.6272 23.9995 23.9998 18.6269 23.9998 11.9995Z' fill='%232D87F3'/%3e%3cpath d='M9.01377 17.824L5.04102 18.9591L6.17609 14.9863L8.54445 15.4556L9.01377 17.824Z' fill='white'/%3e%3cpath d='M8.54399 15.4561L5.04102 18.9591L9.01321 17.824L8.54399 15.4561Z' fill='%23F7F9FC'/%3e%3cpath d='M6.46714 18.5518L5.4485 17.5332L5.04102 18.9593L6.46714 18.5518Z' fill='%23E4E8EC'/%3e%3cpath d='M5.95747 18.043L5.04102 18.9595L6.46659 18.5521L5.95747 18.043Z' fill='%23D2D6DC'/%3e%3cpath d='M15.8281 5.33105L18.6654 8.16829L9.01365 17.82L6.17641 14.9828L15.8281 5.33105Z' fill='%23FFD658'/%3e%3cpath d='M7.59375 16.4043L17.2455 6.75259L18.6638 8.17094L9.0121 17.8226L7.59375 16.4043Z' fill='%23FFC326'/%3e%3cpath d='M18.3123 8.52499L15.4746 5.68737L16.5983 4.56359C17.0386 4.12334 17.7524 4.12334 18.1927 4.56359L19.436 5.8069C19.8763 6.24715 19.8763 6.96096 19.436 7.40121L18.3123 8.52499Z' fill='%23FF5331'/%3e%3cpath d='M18.8155 5.18555L16.8945 7.10648L18.3131 8.52497L19.4368 7.40119C19.877 6.96094 19.877 6.24713 19.4368 5.80688L18.8155 5.18555Z' fill='%23F44D2C'/%3e%3c/svg%3e",expert:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath d='M11.443 5.13654C11.6446 4.63466 12.355 4.63466 12.5566 5.13654L13.9931 8.71375C14.0789 8.92747 14.2795 9.0732 14.5093 9.08878L18.3553 9.34957C18.8949 9.38615 19.1145 10.0619 18.6994 10.4086L15.7412 12.8802C15.5645 13.0279 15.4878 13.2637 15.544 13.4871L16.4845 17.2254C16.6164 17.7499 16.0417 18.1676 15.5836 17.88L12.3188 15.8303C12.1238 15.7079 11.8758 15.7079 11.6808 15.8303L8.41599 17.88C7.95794 18.1676 7.38314 17.7499 7.51509 17.2254L8.45556 13.4871C8.51175 13.2637 8.43513 13.0279 8.25839 12.8802L5.30017 10.4086C4.88514 10.0619 5.10469 9.38615 5.64429 9.34957L9.49031 9.08878C9.7201 9.0732 9.92068 8.92747 10.0065 8.71375L11.443 5.13654Z' fill='white'/%3e%3c/svg%3e","fact-check":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z' fill='%2300C076'/%3e%3cpath d='M11.9456 5.46631L6.66562 10.2663L4.26562 8.08449' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",medical:Mt},qt=({trackingCategory:e="Together",locale:t,isOpen:a=!0,onClose:n,enableAnimation:i=!0,expertId:r,overwriteProfileProps:c,avatarFallback:d=M.getAssetPath("avatar.jpg")})=>{const{t:m}=E(),[p,u]=l(null),[g,h]=l(!1);return s((()=>{if(a&&r&&String(null==p?void 0:p.user_id)!==String(r)){h(!0);try{u(null),B(G(Q.GET_EXPERT_BY_ID,{id:r}),"get").then((e=>{u(Object.assign(Object.assign({},null==e?void 0:e.data),c))}))}catch(e){console.error(e)}h(!1)}}),[a,r,null==p?void 0:p.user_id]),o.createElement(o.Fragment,null,o.createElement(Rt,{"data-open":a,"data-animation":i,onClick:e=>e.stopPropagation()},g||!p?o.createElement(He,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:n},o.createElement("img",{src:Pt,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(Ut,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(St,{src:null==p?void 0:p.avatar,className:"profile-image",alt:"avatar",fallbackSrc:d}),o.createElement("img",{className:"badge-avatar",src:Ht[null==p?void 0:p.role],alt:"badge"})))),o.createElement(Wt,null,o.createElement(x,{size:"s3",className:"full-name",type:"semiBold"},null==p?void 0:p.display_name),o.createElement("div",null,o.createElement(x,{size:"p4",color:k.colors.gray800},null==p?void 0:p.specialty," • "),o.createElement("a",{href:null==p?void 0:p.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(x,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==p?void 0:p.organisation)))))),o.createElement(Wt,null,o.createElement("div",{className:"experience"},o.createElement(x,{type:"bold",size:"p4",color:k.colors.gray800,style:{paddingBottom:16}},m("expert.content.description").toUpperCase()),o.createElement("div",{className:"list-items"},!!(null==p?void 0:p.experiences)&&p.experiences.filter((e=>!(!e||!e.title&&!e.organization))).slice(0,3).map(((e,t)=>o.createElement(Zt,{key:t},o.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point"}),o.createElement("div",{className:"text-contain"},o.createElement(ve,{tag:"h6",color:k.colors.gray800},null==e?void 0:e.title),o.createElement(x,{size:"p2",color:k.colors.gray500},null==e?void 0:e.organization)))))),o.createElement("a",{href:null==p?void 0:p.profile_url,style:{display:"inline-block",paddingTop:24}},o.createElement(x,{as:"span",size:"s4",color:"#2D87F3","data-event-category":e,"data-event-action":"See Full Doctor Profile","data-event-label":D(t)+(null==p?void 0:p.profile_url)},m("home.seeExpert"))))))),o.createElement(Dt,{"data-open":a,onClick:e=>{e.stopPropagation(),n()}}))},_t=Ce.div`
|
|
841
805
|
position: fixed;
|
|
842
806
|
left: 50%;
|
|
843
807
|
width: 343px;
|
|
@@ -847,7 +811,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
847
811
|
transform: translate(-50%, -50%);
|
|
848
812
|
transition: all 0.5s ease-in-out;
|
|
849
813
|
|
|
850
|
-
${
|
|
814
|
+
${we.tdUp} {
|
|
851
815
|
width: 750px;
|
|
852
816
|
}
|
|
853
817
|
|
|
@@ -867,7 +831,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
867
831
|
}
|
|
868
832
|
|
|
869
833
|
.popup-content {
|
|
870
|
-
${
|
|
834
|
+
${we.mbDown} {
|
|
871
835
|
display: block;
|
|
872
836
|
}
|
|
873
837
|
display: flex;
|
|
@@ -912,7 +876,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
912
876
|
text-align: center;
|
|
913
877
|
}
|
|
914
878
|
}
|
|
915
|
-
`,
|
|
879
|
+
`,Gt=Ce.div`
|
|
916
880
|
position: fixed;
|
|
917
881
|
z-index: 110;
|
|
918
882
|
top: 0;
|
|
@@ -925,7 +889,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
925
889
|
&[data-open='false'] {
|
|
926
890
|
display: none;
|
|
927
891
|
}
|
|
928
|
-
`,
|
|
892
|
+
`,Qt=Ce.div`
|
|
929
893
|
.image-container {
|
|
930
894
|
.badge-avatar {
|
|
931
895
|
position: absolute;
|
|
@@ -950,7 +914,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
950
914
|
width: 24px;
|
|
951
915
|
height: 24px;
|
|
952
916
|
}
|
|
953
|
-
`,
|
|
917
|
+
`,Xt=Ce.div`
|
|
954
918
|
position: relative;
|
|
955
919
|
z-index: 9;
|
|
956
920
|
.specialty {
|
|
@@ -974,20 +938,20 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
974
938
|
p {
|
|
975
939
|
max-width: 100%;
|
|
976
940
|
}
|
|
977
|
-
`;
|
|
941
|
+
`;Ce.span`
|
|
978
942
|
display: flex;
|
|
979
943
|
flex-direction: column;
|
|
980
944
|
justify-content: center;
|
|
981
945
|
margin: 0 0.4em;
|
|
982
946
|
color: ${e=>e.theme.colors.neutral300};
|
|
983
|
-
`,
|
|
947
|
+
`,Ce.div`
|
|
984
948
|
display: inline-block;
|
|
985
949
|
width: 3px;
|
|
986
950
|
height: 3px;
|
|
987
951
|
margin: 0;
|
|
988
952
|
background-color: ${e=>e.theme.colors.gray400};
|
|
989
953
|
border-radius: 50%;
|
|
990
|
-
`,
|
|
954
|
+
`,Ce.div`
|
|
991
955
|
display: flex;
|
|
992
956
|
margin-top: 8px;
|
|
993
957
|
|
|
@@ -995,7 +959,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
995
959
|
width: 24px;
|
|
996
960
|
height: 24px;
|
|
997
961
|
}
|
|
998
|
-
`;const qt=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=I.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=w(),[g,h]=l(null),[f,x]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){x(!0);try{h(null),z(R(D.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:U[i]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}x(!1)}}),[e,n,null==g?void 0:g.id]);const E=(null==g?void 0:g.specialties)||[],C=c((()=>E.map((e=>e.name))),[E]);return o.createElement(o.Fragment,null,o.createElement(Ut,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},f||!g?o.createElement(Re,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:At,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(Zt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(Nt,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",fallbackSrc:m}),o.createElement("img",{className:"badge-avatar",src:Lt,alt:"badge"})))),o.createElement(Ht,null,o.createElement(b,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},E&&o.createElement(b,{size:"p4",color:y.colors.gray800},C.join(" • "),"•"),o.createElement("a",{href:W({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(b,{size:"p4",className:"organisation",color:y.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:W({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(v,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(Ht,null,o.createElement("div",{className:"experience"},o.createElement(b,{type:"bold",size:"s3",color:y.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(b,{size:"p2",color:y.colors.gray500},g.about),r?o.createElement("a",{href:W({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(v,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:W({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(b,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":O(i)+W({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(Wt,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},Gt=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"}));var _t="_2UKyiK1",Qt="E5ga-tI",Xt="_8Y2nWXX",Kt="d0T7kSP";const $t=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=w();return o.createElement(Pe,Object.assign({className:_t,opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end",borderRadius:0},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"}},title:"Profile"},n),o.createElement("div",{className:Qt},o.createElement("div",{className:Xt},i("profilePanel.modal.heading")),o.createElement("div",{className:Kt,onClick:t},o.createElement(Gt,null))),a)};var Yt="Gp63Agi",Jt="uJl3XVQ",ea="eeCHPMW";Te.extend(Se);const ta=n({}),aa=({siteType:e})=>{const{t:t}=w(),{handleMakeAppointment:a,doctorId:n,hospitalId:l,currentUrl:r}=i(ta);return o.createElement(v,{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(k,{className:"buttonIcon",size:18}),iconPosition:"right",style:{whiteSpace:"nowrap"}},o.createElement("span",null,t("careBooking.bookAnAppointment")))},oa=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:p,title:u,userType:g="user",expertId:h,isMarryBaby:v,doctorId:b,hospitalId:f,hasQuickBooking:x,handleMakeAppointment:E,communityTrackingAttr:k,isAnonymous:N,showDetailPopup:A,subLine:L,authActionWrapper:T,profileProps:P,profileModalProps:M,extendEle:z,avatarProps:j,hideInfo:B,timeText:F,onCloseFromPost:O,avatarIcon:V,badgeIconSize:R,hideBackground:D,children:U}=e,{data:{locale:W,router:Z,env:{isMarryBaby:H,togetherBasePath:q}}}=i(S),{t:G}=w(),_="boolean"==typeof v?v:H,Q=_?"marryBaby":"helloSites",X=N?G("cardPost.anonymous"):n||r||"",K=N?I.getAssetPath("avatar.jpg"):d,$=N?void 0:p,[Y,J]=l(!1),{asPath:te}=Z||{},ae=`https://${Ie[W]}${te}`,oe=e=>{if(N||"chatbot"===g)return!1;A?ie(!0):c&&(window.location.href=c)};s((()=>{fe(Y)}),[Y]);const[ne,ie]=l(!1),le="expert"===(null==e?void 0:e.role),[re,se]=l(null);return s((()=>{ne&&!re&&Promise.resolve().then((function(){return Vn})).then((e=>{se((()=>e.ProfileDetail))}))}),[ne]),o.createElement(ta.Provider,{value:{handleMakeAppointment:E,doctorId:b,hospitalId:f,currentUrl:ae}},o.createElement($t,{open:ne,onClose:()=>ie(!1),profileModalProps:M},re&&o.createElement(re,Object.assign({authorProps:{userId:null==e?void 0:e.userId,avatar:K,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title},authActionWrapper:T,onCloseFromPost:()=>{ie(!1),null==O||O()}},P))),"expert"===$&&h?o.createElement(Dt,{isOpen:Y,onClose:()=>J(!1),expertId:h}):null,"expert"===$&&b?o.createElement(zt,{isOpen:Y,onClose:()=>J(!1),doctorId:b,locale:W}):null,"expert"===$&&f?o.createElement(qt,{isOpen:Y,onClose:()=>J(!1),hospitalId:f,locale:W}):null,o.createElement("div",{className:`hhg-card-author ${Yt} ${t} ${le?"expert-author":""}`,"data-background":!D&&le,"data-is-marrybaby":_,style:{background:!D&&le&&(_?y.mbColors.toneBlue:y.colors.primary50)}},o.createElement(kt,{onAvatarClick:oe,avatarProps:Object.assign(Object.assign({avatar:K,username:X},j),{style:{cursor:N||!c&&!A?"default":"pointer"}}),avatarIcon:V||le&&o.createElement(pt,{size:R||15})},U||!B&&o.createElement(kt.Row,{className:ea},o.createElement(kt.ColLeft,null,o.createElement(m,{align:"center",onClick:oe},o.createElement(kt.MainText,{onClick:oe,className:Jt},X,"chatbot"===g?o.createElement(o.Fragment,null," ",o.createElement(C,{color:y.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):$&&o.createElement(ee,{siteType:Q,role:$,title:u,style:{verticalAlign:"bottom"}}))),L||o.createElement(kt.SubTextRow,null,(null==a?void 0:a.name)&&o.createElement(kt.SubText,null,o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${q}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},k),`${null==a?void 0:a.name}`)),F&&o.createElement(o.Fragment,null,o.createElement(kt.SubDivider,null),o.createElement(kt.SubText,{className:"time-text"},F)))),x&&o.createElement(kt.ColRight,null,o.createElement(aa,{siteType:Q})))),z&&z))};oa.BookingBtn=aa,oa.MainText=kt.MainText,oa.SubText=kt.SubText,oa.SubTextRow=kt.SubTextRow,oa.SubDivider=kt.SubDivider;const na=e=>({message:e("notification.failure"),type:"danger"}),ia=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99967 1.33331C4.31967 1.33331 1.33301 4.31998 1.33301 7.99998C1.33301 11.68 4.31967 14.6666 7.99967 14.6666C11.6797 14.6666 14.6663 11.68 14.6663 7.99998C14.6663 4.31998 11.6797 1.33331 7.99967 1.33331ZM7.99967 8.66665C7.63301 8.66665 7.33301 8.36665 7.33301 7.99998V5.33331C7.33301 4.96665 7.63301 4.66665 7.99967 4.66665C8.36634 4.66665 8.66634 4.96665 8.66634 5.33331V7.99998C8.66634 8.36665 8.36634 8.66665 7.99967 8.66665ZM7.33301 9.99998V11.3333H8.66634V9.99998H7.33301Z",fill:n}))};ia.defaultProps={size:24,color:y.colors.gray600};var la="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 ra=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,sa=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,ca=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,da=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ma=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,pa=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,ua=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ga=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ha=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,va=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,ba=({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},fa=(e,t)=>e.replace(ca,((e,a,o)=>ba({text:o||a,url:a,method:t}))).replace(ha,((e,a,o)=>ba({text:o||a,url:a,method:t}))),wa=(e,t=[])=>e.replace(pa,((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>`})),xa=e=>{const t=[];return e.replace(/(\&)+/g,"&").replace(sa,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},ya=(e,t)=>{const a=[];return e.replace(da,((e,t)=>(a.push(t),e))).replace(pa,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Ea=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ca=e=>e.replace(va,"$1"),ka=(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(sa,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(ra,((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(da,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Ca(e)),t),Na=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Aa=e=>e.match(ga)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",La=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Ca(e).replace(new RegExp(`\\b(${a.map((e=>Ea(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},Ta=(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?_:Q,l=yield i(j(o?G.COMMENT.IMAGE_UPLOAD:B.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),Ia=(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}};var Sa="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 Pa=ye.div`
|
|
962
|
+
`;const Kt=({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}=E(),[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),B(W(Z.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:H[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(_t,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},v||!g?o.createElement(He,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Pt,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(Qt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(St,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",fallbackSrc:m}),o.createElement("img",{className:"badge-avatar",src:Mt,alt:"badge"})))),o.createElement(Xt,null,o.createElement(x,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},b&&o.createElement(x,{size:"p4",color:k.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(x,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(w,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(Xt,null,o.createElement("div",{className:"experience"},o.createElement(x,{type:"bold",size:"s3",color:k.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(x,{size:"p2",color:k.colors.gray500},g.about),r?o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(w,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(x,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":D(i)+q({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(Gt,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};var $t="_2UKyiK1",Yt="E5ga-tI",Jt="_8Y2nWXX",ea="d0T7kSP";const ta=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=E();return o.createElement(ze,Object.assign({className:$t,opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end",borderRadius:0},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"}},title:"Profile"},n),o.createElement("div",{className:Yt},o.createElement("div",{className:Jt},i("profilePanel.modal.heading")),o.createElement("div",{className:ea,onClick:t},o.createElement(Ve,null))),a)};var aa=p(((e,t)=>({root:{},authorBadge:{background:"yellow"}})));Ie.extend(Me);const oa=n({}),na=({siteType:e})=>{const{t:t}=E(),{handleMakeAppointment:a,doctorId:n,hospitalId:l,currentUrl:r}=i(oa);return o.createElement(w,{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(L,{className:"buttonIcon",size:18}),iconPosition:"right",style:{whiteSpace:"nowrap"}},o.createElement("span",null,t("careBooking.bookAnAppointment")))},ia=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:w,handleMakeAppointment:x,communityTrackingAttr:y,isAnonymous:C,showDetailPopup:N,subLine:L,authActionWrapper:T,profileProps:I,profileModalProps:S,extendEle:P,avatarProps:j,hideInfo:F,timeText:B,onCloseFromPost:O,avatarIcon:V,badgeIconSize:R,hideBackground:D,children:U,styles:W}=e,{data:{locale:Z,router:H,env:{isMarryBaby:q,togetherBasePath:_}}}=i(z),{t:G}=E(),{classes:Q}=aa(void 0,{name:"CardAuthor",styles:W}),X="boolean"==typeof v?v:q,K=X?"marryBaby":"helloSites",$=C?G("cardPost.anonymous"):n||r||"",Y=C?M.getAssetPath("avatar.jpg"):d,J=C?void 0:m,[ee,te]=l(!1),{asPath:ae}=H||{},ne=`https://${Se[Z]}${ae}`,ie=e=>{if(C||"chatbot"===g)return!1;N?re(!0):c&&(window.location.href=c)};s((()=>{xe(ee)}),[ee]);const[le,re]=l(!1),se="expert"===(null==e?void 0:e.role),[ce,de]=l(null);return s((()=>{le&&!ce&&Promise.resolve().then((function(){return Dn})).then((e=>{de((()=>e.ProfileDetail))}))}),[le]),o.createElement(oa.Provider,{value:{handleMakeAppointment:x,doctorId:f,hospitalId:b,currentUrl:ne}},o.createElement(ta,{open:le,onClose:()=>re(!1),profileModalProps:S},ce&&o.createElement(ce,Object.assign({authorProps:{userId:null==e?void 0:e.userId,avatar:Y,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title},authActionWrapper:T,onCloseFromPost:()=>{re(!1),null==O||O()}},I))),"expert"===J&&h?o.createElement(qt,{isOpen:ee,onClose:()=>te(!1),expertId:h}):null,"expert"===J&&f?o.createElement(Vt,{isOpen:ee,onClose:()=>te(!1),doctorId:f,locale:Z}):null,"expert"===J&&b?o.createElement(Kt,{isOpen:ee,onClose:()=>te(!1),hospitalId:b,locale:Z}):null,o.createElement("div",{className:`hhg-card-author ${Q.root} ${t} ${se?"expert-author":""}`,"data-background":!D&&se,"data-is-marrybaby":X,style:{background:!D&&se&&(X?k.mbColors.toneBlue:k.colors.primary50)}},o.createElement(It,{onAvatarClick:ie,avatarProps:Object.assign(Object.assign({avatar:Y,username:$},j),{style:{cursor:C||!c&&!N?"default":"pointer"}}),avatarIcon:V||se&&o.createElement(ft,{size:R||15})},U||!F&&o.createElement(It.Row,null,o.createElement(It.ColLeft,null,o.createElement(u,{align:"center",onClick:ie},o.createElement(It.MainText,{onClick:ie},$,"chatbot"===g?o.createElement(o.Fragment,null," ",o.createElement(A,{color:k.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):J&&o.createElement(oe,{className:Q.authorBadge,siteType:K,role:J,title:p,style:{verticalAlign:"bottom"}}))),L||o.createElement(It.SubTextRow,null,(null==a?void 0:a.name)&&o.createElement(It.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"},y),`${null==a?void 0:a.name}`)),B&&o.createElement(o.Fragment,null,o.createElement(It.SubDivider,null),o.createElement(It.SubText,{className:"time-text"},B)))),w&&o.createElement(It.ColRight,null,o.createElement(na,{siteType:K})))),P&&P))};ia.BookingBtn=na,ia.MainText=It.MainText,ia.SubText=It.SubText,ia.SubTextRow=It.SubTextRow,ia.SubDivider=It.SubDivider;const la=e=>({message:e("notification.failure"),type:"danger"}),ra=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99967 1.33331C4.31967 1.33331 1.33301 4.31998 1.33301 7.99998C1.33301 11.68 4.31967 14.6666 7.99967 14.6666C11.6797 14.6666 14.6663 11.68 14.6663 7.99998C14.6663 4.31998 11.6797 1.33331 7.99967 1.33331ZM7.99967 8.66665C7.63301 8.66665 7.33301 8.36665 7.33301 7.99998V5.33331C7.33301 4.96665 7.63301 4.66665 7.99967 4.66665C8.36634 4.66665 8.66634 4.96665 8.66634 5.33331V7.99998C8.66634 8.36665 8.36634 8.66665 7.99967 8.66665ZM7.33301 9.99998V11.3333H8.66634V9.99998H7.33301Z",fill:n}))};ra.defaultProps={size:24,color:k.colors.gray600};var sa="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 ca=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,da=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,ma=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,pa=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ua=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ga=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,ha=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,va=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,fa=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,ba=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,wa=({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},xa=(e,t)=>e.replace(ma,((e,a,o)=>wa({text:o||a,url:a,method:t}))).replace(fa,((e,a,o)=>wa({text:o||a,url:a,method:t}))),ya=(e,t=[])=>e.replace(ga,((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>`})),Ea=e=>{const t=[];return e.replace(/(\&)+/g,"&").replace(da,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},Ca=(e,t)=>{const a=[];return e.replace(pa,((e,t)=>(a.push(t),e))).replace(ga,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},ka=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Na=e=>e.replace(ba,"$1"),Aa=(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(da,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(ca,((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(pa,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Na(e)),t),La=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Ta=e=>e.match(va)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Ia=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Na(e).replace(new RegExp(`\\b(${a.map((e=>ka(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},Sa=(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?K:$,l=yield i(O(o?X.COMMENT.IMAGE_UPLOAD:V.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),Pa=(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}};var Ma="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 za=Ce.div`
|
|
999
963
|
input:focus,
|
|
1000
964
|
textarea:focus,
|
|
1001
965
|
[contenteditable='true'] {
|
|
@@ -1114,7 +1078,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1114
1078
|
margin-right: 8px;
|
|
1115
1079
|
}
|
|
1116
1080
|
}
|
|
1117
|
-
`,
|
|
1081
|
+
`,ja=Ce.div`
|
|
1118
1082
|
height: 100%;
|
|
1119
1083
|
position: relative;
|
|
1120
1084
|
width: 100%;
|
|
@@ -1313,7 +1277,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1313
1277
|
}
|
|
1314
1278
|
}
|
|
1315
1279
|
}
|
|
1316
|
-
`;let za=null;function ja(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=Ba(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 Ba(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=Ba(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").length)})),t}e(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield import("react-quill");za=e.default;const t=e.Quill||za.Quill;t.register("modules/preserveWhiteSpace",class{constructor(e,t){this.quill=e,this.options=t,e.container.style.whiteSpace="pre-line"}});const a=t.import("blots/inline");class o extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return o.setNodeConfigurations(t,e),t}static formats(e){return!(!e.innerText||!(e.getAttribute("data-href")||e.getAttribute("data-url")||e.getAttribute("data-error")||e.getAttribute("data-bad-word")))&&{"data-bad-word":e.getAttribute("data-bad-word"),"data-error":e.getAttribute("data-error"),"data-href":e.getAttribute("data-href"),"data-url":e.getAttribute("data-url"),"data-text":e.innerText||e.getAttribute("data-href")}}static setNodeConfigurations(e,t){var a,o;t&&(null===(o=null===(a=null==t?void 0:t["data-text"])||void 0===a?void 0:a.replace(/(\ )+/g," "))||void 0===o?void 0:o.replace(/(\u200c|‌)+/g,""))&&(t["data-bad-word"]&&e.setAttribute("data-bad-word",t["data-bad-word"]),t["data-href"]&&e.setAttribute("data-href",t["data-href"]),t["data-error"]&&e.setAttribute("data-error",t["data-error"]),t["data-url"]&&e.setAttribute("data-url",t["data-url"]))}}o.blotName="mocka1",o.tagName="mocka",t.register(o);class n extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return n.setNodeConfigurations(t,e),t}static formats(e){return!(!e.getAttribute("data-name")||!e.getAttribute("data-id"))&&{"data-name":e.getAttribute("data-name"),"data-id":e.getAttribute("data-id")}}static setNodeConfigurations(e,t){var a,o;t&&t["data-id"]&&(null===(o=null===(a=null==t?void 0:t["data-name"])||void 0===a?void 0:a.replace(/(\ )+/g," "))||void 0===o?void 0:o.replace(/(\u200c|‌)+/g,""))&&(t["data-id"]&&e.setAttribute("data-id",t["data-id"]),t["data-name"]&&e.setAttribute("data-name",t["data-name"]))}}n.blotName="mention",n.tagName="mention",t.register(n)}));const Fa=(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(ma,((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:La(i,n)};let l=(e=>e.replace(va,((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(ra,((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(ua)?a:n?`<a href="${n}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(sa,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return ba({text:t,url:t,method:"edit"})}return e})).replace(ha,((e,t,a)=>ba({text:a||t,url:t,method:"edit"})))})(i));const r=(e=>{var t;return[...xa(e),...(null===(t=e.match(ra))||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);Na.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(Ea).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Ea).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:La(l,n)}}return{value:La(l,n)}},Oa=({html:t,onChange:a,className:n,style:c,onImagePickerClick:m,bannedWords:p=[],onInvalidUrlsChange:u,onPreviewUrlChange:g,setEditorRef:h,isReplying:v})=>{var f,w,x,y;const E=r([]);E.current=p;const[C,k]=l([]),[N,A]=l(null),{data:{locale:L}}=i(S),T=(null==p?void 0:p.join(","))||"";s((()=>{var e,t;const a=null===(t=null===(e=W.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;F(a)}),[T]);const I=e=>{N&&N.url===e||(A({url:e,isFetching:!0}),z(j(B.FETCH_PREVIEW,{_locale:L}),"POST",{data:{link:e}}).then((t=>{var a,o,n,i;A({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((()=>{A(null)})))},M=r(I);M.current=I;const F=d(pe((e=>{if(e){const t=Fa(e,{bannedWords:E.current,formatUrl:!0}),{invalidUrls:o,previewUrl:n,value:i}=t;o&&k(o),n?M.current(n):A(null),i!==e&&(null==a||a(i))}}),500),[]);s((()=>{u&&u(C)}),[C]),s((()=>{g&&((null==N?void 0:N.url)?g({title:N.title||"",url:N.url||"",image:N.image||"",description:N.description||""}):g(null))}),[N]);const O=r(m);O.current=m;const R=Me(),D=r({toolbar:{handlers:{image:()=>{var e;return null===(e=O.current)||void 0===e?void 0:e.call(O)},link:()=>!1},container:"#toolbar-"+R},preserveWhiteSpace:!0}),U=r(-1),W=r(null);h&&(null===(w=null===(f=W.current)||void 0===f?void 0:f.getEditor())||void 0===w?void 0:w.root)&&h(null===(y=null===(x=W.current)||void 0===x?void 0:x.getEditor())||void 0===y?void 0:y.root);const Z=()=>{var e,t,a,o,n,i,l,r;if(null===(t=null===(e=W.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=ja(null===(o=null===(a=W.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(i=null===(n=W.current)||void 0===n?void 0:n.getEditor())||void 0===i?void 0:i.root.innerHTML;if(e>=0&&e<t.length){if(ya(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=W.current)||void 0===l?void 0:l.getEditor())||void 0===r?void 0:r.root);e?($(e.name,e.rect),ee.current=e.replaceRange):(ee.current=null,$("",null))}else ee.current=null,$("",null);U.current=e}}else q([])},[H,q]=l([]),[X,K]=l({top:0,left:0}),$=d(pe(((t,a,o)=>e(void 0,void 0,void 0,(function*(){var e,n,i,l;if(!t||!DOMRect)return q([]);const r=yield((null===(e=ve(P))||void 0===e?void 0:e.length)||0)>0?Q(j(B.SEARCH_USER,{_locale:L,name:t}),"get"):_(j(G.SEARCH_USER,{_locale:L,name:t}),"get");oe(0),q(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=J.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,K(a)}}))),500),[]),Y=(e,t)=>{var a,o,n;if(ee.current){ee.current.deleteContents();const i=document.createElement("mention");i.setAttribute("data-id",e),i.setAttribute("data-name",t),i.innerText=t;const l=document.createTextNode(" ");ee.current.insertNode(l),ee.current.insertNode(i);(null===(o=null===(a=W.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(ee.current.endContainer,ee.current.endOffset),null==r||r.setEnd(ee.current.endContainer,ee.current.endOffset)}q([])},J=r(null),ee=r(null),te=r(null),[ae,oe]=l(0);return s((()=>{if(te.current){const e=te.current,t=e.children.item(ae);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)}}}),[ae]),s((()=>{const e=function(e){var t;(null===(t=J.current)||void 0===t?void 0:t.contains(e.target))||q([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),o.createElement(Ma,{ref:J,className:n,style:c,onKeyDownCapture:e=>{if(null==H?void 0:H.length){let t=!1;if("ArrowDown"===e.key)t=!0,oe((e=>e+1>=H.length?0:e+1));else if("Escape"===e.key)t=!0,oe(0),q([]);else if("ArrowUp"===e.key)t=!0,oe((e=>e-1<0?H.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=H[ae];e&&(t=!0,Y(e.id,e.name))}if(t)return e.preventDefault(),!1}}},o.createElement(Va,{id:R,onAddLink:(e,t)=>{var o,n;const i=U.current+1,l=null===(n=null===(o=W.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),F(r)}}),za&&o.createElement(za,{ref:W,theme:"snow",value:t,onChange:e=>{null==a||a(e),F(e),Z()},onChangeSelection:()=>{Z()},modules:D.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==H?void 0:H.length)&&o.createElement("div",{ref:te,className:"mention-search-container",style:X},H.map(((e,t)=>o.createElement("div",{className:"mention-search-item "+(ae===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),Y(e.id,e.name)},onMouseEnter:()=>{oe(t)}},o.createElement(V,{className:"search-avatar",username:e.name,avatar:e.avatar}),o.createElement("div",null,o.createElement(b,{size:"p2"},e.name),o.createElement(b,{size:"p4",color:"#595959"},"@",e.username)))))))},Va=({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(rt,{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(Da,{onAddUrl:e,setShow:t}))))),Ra=["notification.limitUrlDomain","notification.urlWrongFormat"],Da=({onAddUrl:e,setShow:t})=>{const{data:{env:{isMarryBaby:a}}}=i(S),{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(me,{name:"url",value:r,size:"md",label:"URL",placeholder:n("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{s(e),(e=>{const t=Aa(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Na.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(b,{size:"c2",className:"error-text"},n(Ra[m])),o.createElement(me,{name:"text",value:c,size:"md",label:n("createPost.urlText"),placeholder:n("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>d(e)}),o.createElement("div",{"data-is-marrybaby":a,className:"link-input-button-wrapper"},o.createElement(v,{theme:a?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{u&&(e(c.trim(),Aa(r.trim())),t&&t(!1))},isDisabled:!u},n("insert"))))},Ua=({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:E,onRemoveImage:C,imageSrcs:k}=Ia(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(Pa,{className:e,style:t},o.createElement(b,{size:"p4",className:"description-label"},g("createPost.popup.description")),o.createElement("div",{className:"textarea-control"},o.createElement("div",{className:"textarea-wrapper"},o.createElement(Oa,{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(b,{size:"p4",className:"count-string"},g("character"),": ",x(n||"").length),(!k||0===k.length)&&h&&o.createElement("div",{className:"link-preview-wrapper"},h.isFetching?o.createElement(Re,null):o.createElement(o.Fragment,null,o.createElement(Ue,{title:h.title,url:h.url||"#",image:h.image,noRefetch:!0}),o.createElement("img",{src:Sa,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:E}),k.length>X?o.createElement("div",{className:"input-notification"},o.createElement("img",{src:la}),o.createElement(b,{size:"p4",color:y.colors.alertWarning},g("createPost.popup.warningImage"))):null,k.length>0&&o.createElement("div",{className:"image-gallery"},k.map(((e,t)=>o.createElement("div",{key:t,className:"image-item"},o.createElement("img",{src:e}),o.createElement("img",{className:"close-btn",src:Sa,onClick:()=>C(t)}))))))},Wa=ye.div`
|
|
1280
|
+
`;let Fa=null;function Ba(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=Oa(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 Oa(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=Oa(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");Fa=e.default;const t=e.Quill||Fa.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(ua,((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:Ia(i,n)};let l=(e=>e.replace(ba,((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(ca,((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(ha)?a:n?`<a href="${n}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(da,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return wa({text:t,url:t,method:"edit"})}return e})).replace(fa,((e,t,a)=>wa({text:a||t,url:t,method:"edit"})))})(i));const r=(e=>{var t;return[...Ea(e),...(null===(t=e.match(ca))||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);La.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(ka).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(ka).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:Ia(l,n)}}return{value:Ia(l,n)}},Ra=({html:t,onChange:a,className:n,style:c,onImagePickerClick:m,bannedWords:p=[],onInvalidUrlsChange:u,onPreviewUrlChange:g,setEditorRef:h,isReplying:v})=>{var f,b,w,y;const E=r([]);E.current=p;const[C,k]=l([]),[N,A]=l(null),{data:{locale:L}}=i(z),T=(null==p?void 0:p.join(","))||"";s((()=>{var e,t;const a=null===(t=null===(e=W.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;P(a)}),[T]);const I=e=>{N&&N.url===e||(A({url:e,isFetching:!0}),B(O(V.FETCH_PREVIEW,{_locale:L}),"POST",{data:{link:e}}).then((t=>{var a,o,n,i;A({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((()=>{A(null)})))},S=r(I);S.current=I;const P=d(ge((e=>{if(e){const t=Va(e,{bannedWords:E.current,formatUrl:!0}),{invalidUrls:o,previewUrl:n,value:i}=t;o&&k(o),n?S.current(n):A(null),i!==e&&(null==a||a(i))}}),500),[]);s((()=>{u&&u(C)}),[C]),s((()=>{g&&((null==N?void 0:N.url)?g({title:N.title||"",url:N.url||"",image:N.image||"",description:N.description||""}):g(null))}),[N]);const M=r(m);M.current=m;const F=je(),R=r({toolbar:{handlers:{image:()=>{var e;return null===(e=M.current)||void 0===e?void 0:e.call(M)},link:()=>!1},container:"#toolbar-"+F},preserveWhiteSpace:!0}),D=r(-1),W=r(null);h&&(null===(b=null===(f=W.current)||void 0===f?void 0:f.getEditor())||void 0===b?void 0:b.root)&&h(null===(y=null===(w=W.current)||void 0===w?void 0:w.getEditor())||void 0===y?void 0:y.root);const Z=()=>{var e,t,a,o,n,i,l,r;if(null===(t=null===(e=W.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Ba(null===(o=null===(a=W.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(i=null===(n=W.current)||void 0===n?void 0:n.getEditor())||void 0===i?void 0:i.root.innerHTML;if(e>=0&&e<t.length){if(Ca(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=W.current)||void 0===l?void 0:l.getEditor())||void 0===r?void 0:r.root);e?(Q(e.name,e.rect),ee.current=e.replaceRange):(ee.current=null,Q("",null))}else ee.current=null,Q("",null);D.current=e}}else q([])},[H,q]=l([]),[_,G]=l({top:0,left:0}),Q=d(ge(((t,a,o)=>e(void 0,void 0,void 0,(function*(){var e,n,i,l;if(!t||!DOMRect)return q([]);const r=yield((null===(e=be(j))||void 0===e?void 0:e.length)||0)>0?$(O(V.SEARCH_USER,{_locale:L,name:t}),"get"):K(O(X.SEARCH_USER,{_locale:L,name:t}),"get");oe(0),q(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=J.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,G(a)}}))),500),[]),Y=(e,t)=>{var a,o,n;if(ee.current){ee.current.deleteContents();const i=document.createElement("mention");i.setAttribute("data-id",e),i.setAttribute("data-name",t),i.innerText=t;const l=document.createTextNode(" ");ee.current.insertNode(l),ee.current.insertNode(i);(null===(o=null===(a=W.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(ee.current.endContainer,ee.current.endOffset),null==r||r.setEnd(ee.current.endContainer,ee.current.endOffset)}q([])},J=r(null),ee=r(null),te=r(null),[ae,oe]=l(0);return s((()=>{if(te.current){const e=te.current,t=e.children.item(ae);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)}}}),[ae]),s((()=>{const e=function(e){var t;(null===(t=J.current)||void 0===t?void 0:t.contains(e.target))||q([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),o.createElement(ja,{ref:J,className:n,style:c,onKeyDownCapture:e=>{if(null==H?void 0:H.length){let t=!1;if("ArrowDown"===e.key)t=!0,oe((e=>e+1>=H.length?0:e+1));else if("Escape"===e.key)t=!0,oe(0),q([]);else if("ArrowUp"===e.key)t=!0,oe((e=>e-1<0?H.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=H[ae];e&&(t=!0,Y(e.id,e.name))}if(t)return e.preventDefault(),!1}}},o.createElement(Da,{id:F,onAddLink:(e,t)=>{var o,n;const i=D.current+1,l=null===(n=null===(o=W.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),P(r)}}),Fa&&o.createElement(Fa,{ref:W,theme:"snow",value:t,onChange:e=>{null==a||a(e),P(e),Z()},onChangeSelection:()=>{Z()},modules:R.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==H?void 0:H.length)&&o.createElement("div",{ref:te,className:"mention-search-container",style:_},H.map(((e,t)=>o.createElement("div",{className:"mention-search-item "+(ae===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),Y(e.id,e.name)},onMouseEnter:()=>{oe(t)}},o.createElement(U,{className:"search-avatar",username:e.name,avatar:e.avatar}),o.createElement("div",null,o.createElement(x,{size:"p2"},e.name),o.createElement(x,{size:"p4",color:"#595959"},"@",e.username)))))))},Da=({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(pt,{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(Wa,{onAddUrl:e,setShow:t}))))),Ua=["notification.limitUrlDomain","notification.urlWrongFormat"],Wa=({onAddUrl:e,setShow:t})=>{const{data:{env:{isMarryBaby:a}}}=i(z),{t:n}=E(),[r,s]=l(""),[c,d]=l(""),[m,p]=l(-1),u=r.trim()&&c.trim()&&m<0;return o.createElement("div",{className:"link-tool-popover"},o.createElement(ue,{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=Ta(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?La.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(x,{size:"c2",className:"error-text"},n(Ua[m])),o.createElement(ue,{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(w,{theme:a?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{u&&(e(c.trim(),Ta(r.trim())),t&&t(!1))},isDisabled:!u},n("insert"))))},Za=({className:e,style:t,bannedWords:a=[],value:n,onChange:i,onPreviewUrlChange:c,onInvalidUrlsChange:d,onImageFilesChange:m,imageFiles:p,isReplying:u})=>{const{t:g}=E(),[h,v]=l(null),f=r(null),{onSelectImages:b,onRemoveImage:w,imageSrcs:y}=Pa(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(za,{className:e,style:t},o.createElement(x,{size:"p4",className:"description-label"},g("createPost.popup.description")),o.createElement("div",{className:"textarea-control"},o.createElement("div",{className:"textarea-wrapper"},o.createElement(Ra,{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(x,{size:"p4",className:"count-string"},g("character"),": ",C(n||"").length),(!y||0===y.length)&&h&&o.createElement("div",{className:"link-preview-wrapper"},h.isFetching?o.createElement(He,null):o.createElement(o.Fragment,null,o.createElement(_e,{title:h.title,url:h.url||"#",image:h.image,noRefetch:!0}),o.createElement("img",{src:Ma,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}),y.length>Y?o.createElement("div",{className:"input-notification"},o.createElement("img",{src:sa}),o.createElement(x,{size:"p4",color:k.colors.alertWarning},g("createPost.popup.warningImage"))):null,y.length>0&&o.createElement("div",{className:"image-gallery"},y.map(((e,t)=>o.createElement("div",{key:t,className:"image-item"},o.createElement("img",{src:e}),o.createElement("img",{className:"close-btn",src:Ma,onClick:()=>w(t)}))))))},Ha=Ce.div`
|
|
1317
1281
|
input:focus,
|
|
1318
1282
|
textarea:focus,
|
|
1319
1283
|
[contenteditable='true'] {
|
|
@@ -1371,7 +1335,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1371
1335
|
font-size: 11px;
|
|
1372
1336
|
text-align: right;
|
|
1373
1337
|
}
|
|
1374
|
-
`,
|
|
1338
|
+
`,qa=(e,t)=>{if(!t)return e;const{limit:a,bannedWords:o=[]}=t,n="number"==typeof a&&a>=0?e.substring(0,a):e;return Ia(n,o)},_a=({className:e,style:t,bannedWords:a=[],value:n,onChange:i})=>{var c;const{t:m}=E(),[p,u]=l(""),g=r(null);s((()=>{if(g.current){const e=e=>{var t;e.preventDefault();const a=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/plain");document.execCommand("insertHTML",!1,a)},t=g.current;return t.addEventListener("paste",e,{passive:!0}),()=>t.removeEventListener("paste",e)}}),[g]);const h=(null==a?void 0:a.join(","))||"";s((()=>{var e;if(h){const t=null===(e=g.current)||void 0===e?void 0:e.innerText;if(t){const e=Ia(t,a);e!==t&&(i&&i(e),u(e))}}}),[h]);const v=d(ge((e=>{if(g.current){const e=qa(g.current.innerText,{limit:120,bannedWords:a});i&&i(e),u(e)}}),300),[]);return s((()=>{setTimeout((()=>{var e;null===(e=g.current)||void 0===e||e.focus()}),500)}),[]),o.createElement(Ha,{className:e,style:t},o.createElement(ue,{name:"title",value:n||p,size:"md",label:m("createPost.title"),CustomInput:o.createElement(he,{innerRef:g,html:n||p,onChange:e=>{if(g.current&&g.current.innerText!==(n||p)){const e=qa(g.current.innerText,{bannedWords:a});i&&i(e),u(e),v(g.current.innerText)}},className:"title-input"})}),o.createElement(x,{size:"p4",className:"count-string"},m("createPost.popup.wordCount",{count:(null===(c=g.current)||void 0===c?void 0:c.innerText.length)||0,max:120})))},Ga=Ce.div`
|
|
1375
1339
|
display: flex;
|
|
1376
1340
|
width: 100%;
|
|
1377
1341
|
flex-wrap: wrap;
|
|
@@ -1420,7 +1384,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1420
1384
|
}
|
|
1421
1385
|
}
|
|
1422
1386
|
}
|
|
1423
|
-
`,
|
|
1387
|
+
`,Qa=({className:t,style:a,topics:n,communityId:d,onChange:m,isLoading:p,disabled:u,forceTopics:g,selectedTopics:h,noFetch:v})=>{const{data:{locale:f,env:{isMarryBaby:b}}}=i(z),[w,x]=l(n?[...n]:[]),[y,E]=l(h?[...h]:[]),[C,k]=l(!1),N=r(n);N.current=n,s((()=>{var t;!d||v||(null===(t=N.current)||void 0===t?void 0:t.length)||(x([]),k(!0),e(void 0,void 0,void 0,(function*(){var e;try{const t=yield B(O(V.TOPIC.LIST,{communityId:d,_locale:f}),"GET"),a=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.topics;Array.isArray(a)&&x((()=>(null==a?void 0:a.map(le).sort(((e,t)=>(e.order||0)-(t.order||0))))||[]))}catch(e){console.log(e),k(!1)}k(!1)})))}),[d,v]);const A=null==n?void 0:n.map((e=>e.id)).join("-"),L=null==w?void 0:w.map((e=>e.id)).join("-"),T=null==g?void 0:g.map((e=>e.id)).join("-");s((()=>{n&&void 0!==A&&A!==L&&x(n)}),[n,A,L]);const I=c((()=>w.filter((e=>!(null==g?void 0:g.some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)))))),[L,T]);return o.createElement(Ga,{"data-is-marrybaby":b,className:t,style:a},g.map((e=>o.createElement(Xa,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:!0,selected:!0}))),I.map((e=>o.createElement(Xa,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:u,selected:(h||y).some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)),onClick:()=>{const t=h||y,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()),E(t.slice()))}}))),(p||C)&&o.createElement(He,{className:"topic-spinner"}))},Xa=({topic:e,disabled:t,selected:a,onClick:n})=>o.createElement("div",{className:"tag-item"+(a?" --active":""),"data-disabled":t,onClick:t?void 0:n},e.name),Ka=Ce.div`
|
|
1424
1388
|
position: relative;
|
|
1425
1389
|
display: flex;
|
|
1426
1390
|
height: 100%;
|
|
@@ -1498,12 +1462,12 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1498
1462
|
.swich-input-group {
|
|
1499
1463
|
padding: 12px 16px;
|
|
1500
1464
|
border-radius: 8px;
|
|
1501
|
-
background: ${
|
|
1465
|
+
background: ${k.colors.neutral50};
|
|
1502
1466
|
|
|
1503
1467
|
&.askdoctor-switch {
|
|
1504
|
-
background: ${
|
|
1468
|
+
background: ${k.colors.primary50};
|
|
1505
1469
|
&.mb-color {
|
|
1506
|
-
background: ${
|
|
1470
|
+
background: ${k.mbColors.tonePink};
|
|
1507
1471
|
}
|
|
1508
1472
|
|
|
1509
1473
|
|
|
@@ -1522,21 +1486,21 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1522
1486
|
.label-txt {
|
|
1523
1487
|
font-weight: normal;
|
|
1524
1488
|
font-size: 14px;
|
|
1525
|
-
color: ${
|
|
1489
|
+
color: ${k.colors.gray800};
|
|
1526
1490
|
margin-left: 10px;
|
|
1527
1491
|
}
|
|
1528
1492
|
}
|
|
1529
|
-
|
|
1493
|
+
`,$a=Ce.div`
|
|
1530
1494
|
display: flex;
|
|
1531
1495
|
width: 100%;
|
|
1532
1496
|
align-items: center;
|
|
1533
1497
|
justify-content: space-between;
|
|
1534
1498
|
padding: 12px 16px;
|
|
1535
1499
|
border-radius: 8px;
|
|
1536
|
-
background: ${
|
|
1500
|
+
background: ${k.colors.primary50};
|
|
1537
1501
|
|
|
1538
1502
|
&[data-is-marry-baby='true'] {
|
|
1539
|
-
background: ${
|
|
1503
|
+
background: ${k.mbColors.tonePink};
|
|
1540
1504
|
}
|
|
1541
1505
|
.switch-label {
|
|
1542
1506
|
display: flex;
|
|
@@ -1544,9 +1508,9 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1544
1508
|
gap: 12px;
|
|
1545
1509
|
}
|
|
1546
1510
|
margin-bottom: 12px;
|
|
1547
|
-
`,
|
|
1511
|
+
`,Ya=Ce.div`
|
|
1548
1512
|
margin-bottom: 12px;
|
|
1549
|
-
color: ${
|
|
1513
|
+
color: ${k.colors.red700};
|
|
1550
1514
|
svg {
|
|
1551
1515
|
margin-right: 5px;
|
|
1552
1516
|
}
|
|
@@ -1555,7 +1519,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1555
1519
|
display: inline-block;
|
|
1556
1520
|
vertical-align: middle;
|
|
1557
1521
|
}
|
|
1558
|
-
|
|
1522
|
+
`,Ja=({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:N,selectAskDoctor:A,showAskDoctorOptions:L})=>{const I=!!(null==h?void 0:h.id),{data:{locale:S,env:{isMarryBaby:P}},action:{pushNotifications:j,sanitizeFunction:F}}=i(z),{t:B}=E(),[R,D]=l(!1),[U,W]=l(A),[Z,H]=l(!1),[q,_]=l(!1),[G,Q]=l(""),[X,K]=l(""),[J,ee]=l(d?{label:d.name,value:`${d.id||""}-${d.mappedCategoryId||""}`}:{label:B("community.choose"),value:""}),[te,ae]=l([...m]||[]),[oe,ie]=l([]),[le,se]=l([]),ce=d||c.find((e=>`${e.id||""}-${e.mappedCategoryId||""}`===J.value)),de=d?[d]:c.filter((e=>e.isActive)).sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),[me,pe]=l(null),[ue,ge]=l([]),he=G&&C(X)&&(u||!u&&te.length>0)&&ce&&(!oe||oe.length<=Y)&&!(null==ue?void 0:ue.length)&&!q;s((()=>{if(h){const e=h;Q(e.title||""),K(ya(xa(e.description||"","edit"),e.mentions)),ee({label:e.community.name,value:`${e.community.id||""}-${e.community.mappedCategoryId||""}`}),ae(e.topics||[]),ie(e.photos||[]),D(!!e.isAnonymous||!1),W(!!e.isAskDoctor||!1)}else v&&ee({label:v.name,value:`${v.id||""}-${v.mappedCategoryId||""}`}),f&&ae(f)}),[]);const ve=()=>e(void 0,void 0,void 0,(function*(){var t,a,o,i,l,s,c,d,m;if(L&&void 0===U)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=Na(a),f=Na(t),b=Ca(v);if(e.append("title",f),e.append("description",Aa(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",ye(i.url)),(null==i?void 0:i.image)&&e.append("preview_image",ye(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(Sa(e,r))}),2e3*t)})))));null==t||t.filter(Boolean).slice(0,Y).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:G,description:X,communityId:String((null==ce?void 0:ce.id)||""),imageFiles:oe,previewUrl:me,topicIds:null==te?void 0:te.map((e=>String(e.id||""))).filter(Boolean),locale:S,sanitizeFunction:F,categoryCommunityId:String((null==ce?void 0:ce.mappedCategoryId)||""),categoryTopicIds:null==te?void 0:te.map((e=>String(e.mappedCategoryId||""))).filter(Boolean),isAnonymous:R?1:0,isAskDoctor:U?1:0});let g;p&&u.append("article_id",p),I?(null==h?void 0:h.id)&&(g=yield(({id:t,locale:a,formData:o})=>e(void 0,void 0,void 0,(function*(){return yield $(O(V.POST.UPDATE,{id:t,_locale:a}),"POST",{data:o})})))({id:h.id,formData:u,locale:S})):g=yield(({locale:t,formData:a,isArticleComment:o})=>e(void 0,void 0,void 0,(function*(){return yield $(O(o?V.POST.CREATE_ARTICLE_COMMENT:V.POST.CREATE,{_locale:t}),"POST",{data:a})})))({formData:u,locale:S,isArticleComment:!(null==ce?void 0:ce.id)&&!!(null==ce?void 0:ce.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)?(j({message:B("createPost.popup.success"),type:"success"}),(e=>{n&&n(re(e),I),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)?(j({title:B("notification.post.blocked.title"),message:B("notification.post.blocked.message"),type:"danger"}),g.messages.moderation.words&&se(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)?(j({title:B("notification.post.suspect.title"),message:B("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"))})))?(j({message:B("notification.suspend.message"),type:"danger"}),r&&r()):j({message:(null===(m=null==g?void 0:g.messages)||void 0===m?void 0:m[0])||B("notification.failure"),type:"danger"})}));return o.createElement(Ka,{className:t,style:a},o.createElement("div",{className:"input-group-container"},o.createElement(_a,{className:"input-group",bannedWords:le,value:G,onChange:Q}),o.createElement(Za,{className:"input-group",bannedWords:le,value:X,onChange:K,onPreviewUrlChange:pe,onInvalidUrlsChange:ge,onImageFilesChange:ie,imageFiles:oe}),L&&o.createElement($a,{"data-is-marry-baby":P},o.createElement("div",{className:"switch-label"},o.createElement(T,{isMarryBaby:P,size:P?32:24,color:k.colors.primaryBase,className:"label-icon"}),o.createElement("span",{className:"label-txt"},B("createPost.askDoctor"))),o.createElement(ne,{value:U,choices:[{label:B("createPost.askDoctorChoice.yes"),value:!0},{label:B("createPost.askDoctorChoice.no"),value:!1}],onChange:e=>{"boolean"==typeof e&&(H(!1),W(e))}})),Z&&o.createElement(Ya,null,o.createElement(ra,{color:k.colors.red700,size:14}),o.createElement(x,{size:"p3",as:"span",color:k.colors.red700},B("createPost.message.askDoctorRequire"))),o.createElement("div",{className:"input-group"},o.createElement(x,{size:"p4",className:"input-group-label"},B("admin.community")),o.createElement(y,{options:(null==de?void 0:de.map(((e,t)=>({label:e.name,value:`${e.id||""}-${e.mappedCategoryId||""}`}))))||[],id:"community-picker",placeholder:B("community.choose"),value:J,onChange:e=>{ee({label:e.label,value:String(e.value)}),ae([])},disabled:!!d}),o.createElement(x,{size:"sm",className:"warning",color:k.colors.gray400},"* ",B("commentPopup.warning.newPost"))),!N&&o.createElement("div",{className:"input-group"},o.createElement(x,{size:"p4",className:"input-group-label"},B("tab.topic")),o.createElement("div",{className:"input-notification"},o.createElement("img",{src:ce?"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":sa}),o.createElement(x,{size:"base",color:k.colors.gray500},B(ce?"createPost.popup.primary":"createPost.popup.warning"))),ce&&o.createElement(Qa,{className:"tag-list",communityId:ce.id,forceTopics:m,onChange:ae,selectedTopics:te,noFetch:b}))),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:P?"pink":void 0,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"},B("createPost.postAnonymous"))),value:"Post Anonymous",onChange:e=>D(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(w,{theme:P?"marryBaby":"helloSites",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(he&&!q){_(!0);try{yield ve()}catch(e){console.error(e),j(la(B))}_(!1)}})),isDisabled:!he,isLoading:q},B("createPost.popup.submit")))))};var eo="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 to=Ce.div`
|
|
1559
1523
|
[data-type='confirm'] {
|
|
1560
1524
|
max-width: 468px;
|
|
1561
1525
|
height: 486px;
|
|
@@ -1602,7 +1566,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1602
1566
|
}
|
|
1603
1567
|
}
|
|
1604
1568
|
|
|
1605
|
-
${e=>e.isExpand&&
|
|
1569
|
+
${e=>e.isExpand&&Ne`
|
|
1606
1570
|
& > div[data-open] {
|
|
1607
1571
|
width: 100%;
|
|
1608
1572
|
height: 100%;
|
|
@@ -1611,16 +1575,16 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1611
1575
|
}
|
|
1612
1576
|
`}
|
|
1613
1577
|
|
|
1614
|
-
${e=>e.hasFullscreen&&
|
|
1578
|
+
${e=>e.hasFullscreen&&Ne`
|
|
1615
1579
|
& > div[data-open] {
|
|
1616
1580
|
transition: all 0.5s ease-in-out, width 0s, height 0s;
|
|
1617
1581
|
}
|
|
1618
1582
|
`}
|
|
1619
|
-
`,
|
|
1583
|
+
`,ao=Ce.div`
|
|
1620
1584
|
cursor: pointer;
|
|
1621
1585
|
display: flex;
|
|
1622
1586
|
align-items: center;
|
|
1623
|
-
`,
|
|
1587
|
+
`,oo=({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(to,{className:e,style:t,isExpand:d,hasFullscreen:s},o.createElement(se,{type:"confirm",onClose:c,isOpen:r,closeIcon:a||o.createElement("img",{src:eo}),enableAnimation:!s},o.createElement("div",{className:"header"},o.createElement(ve,{tag:"h5"},n),s&&o.createElement(ao,{onClick:()=>m(!d)},o.createElement(I,{size:14,isExpand:d}))),o.createElement("div",{className:"content"},"function"==typeof i?i(d):i)))},no=Ce.div`
|
|
1624
1588
|
[data-type='confirm'] {
|
|
1625
1589
|
width: min(360px, 100%);
|
|
1626
1590
|
height: auto;
|
|
@@ -1705,7 +1669,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1705
1669
|
overflow: hidden;
|
|
1706
1670
|
border-radius: 1rem;
|
|
1707
1671
|
&[data-open='true'] {
|
|
1708
|
-
${
|
|
1672
|
+
${we.mbDown} {
|
|
1709
1673
|
top: 100%;
|
|
1710
1674
|
transform: translate(-50%, -100%);
|
|
1711
1675
|
max-width: unset;
|
|
@@ -1717,12 +1681,12 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1717
1681
|
}
|
|
1718
1682
|
.popup-content {
|
|
1719
1683
|
.close-button {
|
|
1720
|
-
${
|
|
1684
|
+
${we.mbDown} {
|
|
1721
1685
|
display: none;
|
|
1722
1686
|
}
|
|
1723
1687
|
}
|
|
1724
1688
|
.confirm-dialog {
|
|
1725
|
-
${
|
|
1689
|
+
${we.mbDown} {
|
|
1726
1690
|
background: unset;
|
|
1727
1691
|
position: relative;
|
|
1728
1692
|
overflow-x: hidden;
|
|
@@ -1742,7 +1706,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1742
1706
|
}
|
|
1743
1707
|
.confirm-content {
|
|
1744
1708
|
padding: 0 40px 40px;
|
|
1745
|
-
${
|
|
1709
|
+
${we.mbDown} {
|
|
1746
1710
|
padding-left: 1.5rem;
|
|
1747
1711
|
padding-right: 1.5rem;
|
|
1748
1712
|
}
|
|
@@ -1761,7 +1725,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1761
1725
|
}
|
|
1762
1726
|
}
|
|
1763
1727
|
.thumbnail-container {
|
|
1764
|
-
${
|
|
1728
|
+
${we.mbDown} {
|
|
1765
1729
|
display: none;
|
|
1766
1730
|
}
|
|
1767
1731
|
&.is-icon {
|
|
@@ -1783,14 +1747,14 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1783
1747
|
height: 24px;
|
|
1784
1748
|
}
|
|
1785
1749
|
}
|
|
1786
|
-
${
|
|
1750
|
+
${we.mbDown} {
|
|
1787
1751
|
display: flex;
|
|
1788
1752
|
}
|
|
1789
1753
|
}
|
|
1790
1754
|
}
|
|
1791
1755
|
}
|
|
1792
1756
|
}
|
|
1793
|
-
`,
|
|
1757
|
+
`,io=({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(z),E="boolean"==typeof t?t:y,[C,k]=l(!1);return s((()=>(xe(!0),setTimeout((()=>k(!0)),0),()=>xe(!1))),[]),"undefined"==typeof window?null:Pe.createPortal(o.createElement(no,{"data-is-marrybaby":E,className:e,style:a,"data-open":C},o.createElement(oo,{className:"popup-frame",isOpen:C,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(ve,{className:"title",tag:"h2"},n),o.createElement(x,{className:"desc",size:"lg"},r),o.createElement("div",{className:"btn-group"},o.createElement(w,Object.assign({theme:E?"marryBaby":"helloSites",size:"md",color:"tertiary",onClick:()=>{null==m||m(),null==h||h()}},f,v),c),o.createElement(w,Object.assign({theme:E?"marryBaby":"helloSites",size:"md",onClick:()=>{null==p||p(),null==h||h()}},b),d)))),E&&u&&o.createElement("div",{className:"thumbnail-container is-mobile "+(g?"is-icon":"")},o.createElement("img",{className:"thumbnail",src:u})))),Ee())};const lo=Ce.div`
|
|
1794
1758
|
padding: 1rem;
|
|
1795
1759
|
border-top: 1px solid #f2f2f2;
|
|
1796
1760
|
&[data-is-reply='true'] {
|
|
@@ -1905,12 +1869,12 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1905
1869
|
.as-input {
|
|
1906
1870
|
font-size: 16px;
|
|
1907
1871
|
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
1908
|
-
${
|
|
1872
|
+
${we.mbDown} {
|
|
1909
1873
|
font-size: 22px;
|
|
1910
1874
|
line-height: 1.2;
|
|
1911
1875
|
}
|
|
1912
1876
|
|
|
1913
|
-
${
|
|
1877
|
+
${we.mbUp} {
|
|
1914
1878
|
font-size: 26px;
|
|
1915
1879
|
line-height: 1.2;
|
|
1916
1880
|
}
|
|
@@ -1920,12 +1884,12 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1920
1884
|
.as-input {
|
|
1921
1885
|
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
1922
1886
|
line-height: 22px;
|
|
1923
|
-
${
|
|
1887
|
+
${we.mbDown} {
|
|
1924
1888
|
font-size: 14px;
|
|
1925
1889
|
line-height: 1.2;
|
|
1926
1890
|
}
|
|
1927
1891
|
|
|
1928
|
-
${
|
|
1892
|
+
${we.mbUp} {
|
|
1929
1893
|
font-size: 16px;
|
|
1930
1894
|
line-height: 1.2;
|
|
1931
1895
|
}
|
|
@@ -1935,12 +1899,12 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
1935
1899
|
.as-input {
|
|
1936
1900
|
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
1937
1901
|
line-height: 20px;
|
|
1938
|
-
${
|
|
1902
|
+
${we.mbDown} {
|
|
1939
1903
|
font-size: 13px;
|
|
1940
1904
|
line-height: 1.5;
|
|
1941
1905
|
}
|
|
1942
1906
|
|
|
1943
|
-
${
|
|
1907
|
+
${we.mbUp} {
|
|
1944
1908
|
font-size: 13px;
|
|
1945
1909
|
line-height: 1.5;
|
|
1946
1910
|
}
|
|
@@ -2010,11 +1974,11 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2010
1974
|
}
|
|
2011
1975
|
}
|
|
2012
1976
|
}
|
|
2013
|
-
`,
|
|
1977
|
+
`,ro=n({}),so=({isReply:t,className:a,onClose:n,replyToName:c,style:d,replyingId:m,replyingUser:p,onPostSuccess:u,isMainCmt:g=!1,post:h,isMarryBaby:v})=>{const{action:{pushNotifications:f,sanitizeFunction:b},data:{userInfo:y,locale:C,env:{isMarryBaby:k}}}=i(z),N="boolean"==typeof v?v:k,{t:A}=E(),{onSelectImages:L,onRemoveImage:T,imageSrcs:I,onRemoveAllImages:S,imageFiles:P}=Pa(),[M,j]=l(""),{trigger:F}=i(ro),[B,R]=l(!1),D=r(null),W=r(null),Z=r(null),[H,q]=l([]),[_,G]=l([]),[Q,X]=l(null);return s((()=>{var e;null===(e=Z.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout((()=>{var e;null===(e=W.current)||void 0===e||e.focus()}),400)}),[F]),o.createElement(lo,{"data-is-reply":t,className:a,style:d},t&&o.createElement("div",{className:"reply-to-container"},o.createElement(x,{size:"p4"},o.createElement("span",{dangerouslySetInnerHTML:{__html:A("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:Z},o.createElement(U,{className:"avatar-wrapper "+(t?"avatar-wrapper-reply":""),avatar:(null==y?void 0:y.id)?y.avatar:J,username:(null==y?void 0:y.name)||(null==y?void 0:y.username)}),o.createElement("input",{ref:D,onChange:L,type:"file",multiple:!0,accept:"image/png,image/jpeg",name:"images",style:{display:"none"}}),o.createElement(ue,{value:M,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(Ra,{className:"textarea",html:M,onChange:j,onImagePickerClick:()=>{var e;return null===(e=D.current)||void 0===e?void 0:e.click()},bannedWords:_,onPreviewUrlChange:X,onInvalidUrlsChange:q,setEditorRef:e=>W.current=e,isReplying:t}))}),o.createElement(w,{theme:N?"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,g;if((null==h?void 0:h.id)&&!B){R(!0);try{const v=e=>{j(""),S(),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=Aa(a.replace(/(\ )+/g," "),l);const m=Ca(d);return o&&o.length>0&&(yield Promise.all(null==o?void 0:o.map((e=>Sa(e,i))))).filter(Boolean).slice(0,Y).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:M,photos:P,postId:String(h.id),link:null==Q?void 0:Q.url,sanitizeFunction:b,locale:C},t&&m?{replyingUserId:String((null==p?void 0:p.id)||(null===(a=null==h?void 0:h.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 $(O(V.COMMENT.REPLY,{_locale:a}),"POST",{data:t})})))(w,C):((t,a)=>e(void 0,void 0,void 0,(function*(){return $(O(V.COMMENT.CREATE,{_locale:a}),"POST",{data:t})})))(w,C),y=null==x?void 0:x.data;(null==y?void 0:y.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)?v(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)?(f({title:A("notification.comment.blocked.title"),message:A("notification.comment.blocked.message"),type:"danger"}),x.messages.moderation.words&&G(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)?(f({title:A("notification.comment.suspect.title"),message:A("notification.comment.suspect.message"),type:"warning"}),j(""),S(),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"))})))?(f({message:A("notification.suspend.message"),type:"warning"}),j(""),S(),n&&n()):f({title:"",message:(null===(g=null==x?void 0:x.messages)||void 0===g?void 0:g[0])||A("notification.comment.somethingWrong"),type:"danger"})}catch(e){f({title:"",message:A("notification.comment.somethingWrong"),type:"danger"})}R(!1)}})),isLoading:B,isDisabled:!!(null==H?void 0:H.length)||B||!M||(null==M?void 0:M.length)<2||!M.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==H?void 0:H.length)?o.createElement("div",{className:"error-text"},A("notification.limitUrlDomain")):null,(!I||0===I.length)&&Q&&o.createElement("div",{className:"link-preview-wrapper"},Q.isFetching?o.createElement(He,null):o.createElement(o.Fragment,null,o.createElement(_e,{title:Q.title,url:Q.url||"#",image:Q.image,noRefetch:!0}),o.createElement("img",{src:Ma,className:"icon-close",onClick:()=>X(null)}))),I&&I.length>0&&o.createElement("div",{className:"preview-images-container"},I.map(((e,t)=>o.createElement("div",{key:t,className:"image-src-wrapper"},o.createElement("img",{className:"preview-image",src:e}),o.createElement("img",{src:Ma,className:"icon-close-circle",onClick:()=>T(t)}))))))};const co=Ce.a`
|
|
2014
1978
|
* {
|
|
2015
1979
|
pointer-events: none;
|
|
2016
1980
|
}
|
|
2017
|
-
`,
|
|
1981
|
+
`,mo=Ce.div`
|
|
2018
1982
|
padding: 1rem;
|
|
2019
1983
|
.share__social {
|
|
2020
1984
|
display: flex;
|
|
@@ -2022,7 +1986,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2022
1986
|
align-items: center;
|
|
2023
1987
|
justify-content: center;
|
|
2024
1988
|
|
|
2025
|
-
& > ${
|
|
1989
|
+
& > ${co} {
|
|
2026
1990
|
margin: 0 7px;
|
|
2027
1991
|
|
|
2028
1992
|
& > img {
|
|
@@ -2102,7 +2066,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2102
2066
|
}
|
|
2103
2067
|
|
|
2104
2068
|
&[data-is-marrybaby='true'] {
|
|
2105
|
-
${
|
|
2069
|
+
${we.mbDown} {
|
|
2106
2070
|
padding: 0.5rem;
|
|
2107
2071
|
}
|
|
2108
2072
|
.share__social {
|
|
@@ -2113,7 +2077,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2113
2077
|
align-items: center;
|
|
2114
2078
|
justify-content: center;
|
|
2115
2079
|
text-align: center;
|
|
2116
|
-
${
|
|
2080
|
+
${we.mbDown} {
|
|
2117
2081
|
margin: 0;
|
|
2118
2082
|
}
|
|
2119
2083
|
& > img {
|
|
@@ -2150,7 +2114,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2150
2114
|
}
|
|
2151
2115
|
}
|
|
2152
2116
|
}
|
|
2153
|
-
`,co=({className:e,trackingCategory:t="Together",style:a,shareUrl:n,title:c})=>{const{action:{pushNotifications:d},data:{env:{isMarryBaby:m}}}=i(S),{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((e=>{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/f7vru8NwAODg4ODg4ODg4ODg4ODvEEgt0sohTwQbb86VJZ+0gQ1Ft+Tzm7WNeOIJZeA/ya0eCGlkspIuYTQC5xvk3TtBz5eynYiH0CLJSGBrEICG9syOC1GZ4BYt0Cg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KkGvvl/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+vzB3eqJutQeh8JLlL5Ckb0zhrbh8fbW6fHU5/DF3+ujzOKpzuGmzOGeyN2cxtxlpMdhosdYncPr9vnj8fbL4ey83Oq82eeRv9eFuNR6sc5yrcxVmsIthrgsg7UOcqvl8fa11uan0OWsz+KWwtmOvdZ8stBwqsp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H/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+fFTy2FFwlU7vE3h8OTZ7tyi2aqP3JeC14xIxFg+vlD6/fry+vPm8ujd8eTZ8tvA6cV+0opczmdMvl1LuFwzskcrrD/o9urJ7M5izm9dxm9cwWxTxWLV8NnN7tG96MK75MG557+m3a+O1Zl31IE8tU/m9ujf9OLT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J62dMibZEHipWA7iVXjg/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(so,{"data-is-marrybaby":m,className:e,style:a},o.createElement("div",{className:"share__social"},f.map(((e,a)=>o.createElement(ro,{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(b,{className:"__label",size:"label2",type:"regular"},e.name))))),o.createElement("div",{className:"share__copy-link"},o.createElement(b,{className:"__label",color:y.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")))))},mo=({trackingCategory:e,className:t,style:a,url:n,avatar:r,text:c,onClose:d})=>{const{data:{env:{isMarryBaby:m}}}=i(S),{t:p}=w(),[g,h]=l(!1);return s((()=>(fe(!0),setTimeout((()=>h(!0)),0),()=>fe(!1))),[]),o.createElement(u,null,o.createElement(po,{"data-is-marrybaby":m,className:t,style:a},o.createElement(to,{className:"share-popup",isOpen:g,onClose:d,heading:p("bottomBar.share")},m?o.createElement(b,{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(ge,{tag:"h4"},c),o.createElement(b,{className:"desc",size:"md"},n))),g&&o.createElement(co,{trackingCategory:e,shareUrl:n||("undefined"!=typeof window?window.location.href:""),title:c}))))},po=ye.div`
|
|
2117
|
+
`,po=({className:e,trackingCategory:t="Together",style:a,shareUrl:n,title:c})=>{const{action:{pushNotifications:d},data:{env:{isMarryBaby:m}}}=i(z),{t:p}=E(),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((e=>{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/f7vru8NwAODg4ODg4ODg4ODg4ODvEEgt0sohTwQbb86VJZ+0gQ1Ft+Tzm7WNeOIJZeA/ya0eCGlkspIuYTQC5xvk3TtBz5eynYiH0CLJSGBrEICG9syOC1GZ4BYt0CgAHdgEFrA3GVbPSjhjBgA9ELYPR4PzwCRItUil82GPzrbgV3h3at0Pi1YIhLpQj3QpREJ4DZ62ErgPm9WeaMAv2NW0BzazFwfeeGfCnElGhGQ+S98FYaCRaMf+X54Ft5E7A2ZHyD3oJoa4BMW0REZMaw2POHdAf+yf3AkhPalPFrE/FIiHQEKBs/NQnEOwvbtPENzJFARClWX2hdgN/Qc6rGBwJ6dg5A3y5t2vjV9JZfj4BFrBnGdD10SLX45UNA/88doGkYFwKYSFfUx4orsjgCxBLVkjLNFM/PAYwn4xsIIZTS8WrUBTDyfZCTLEXmjgXq3xU0iDcQb7QSC9QFCC0vKOFiQH+cEV89vxYpnHNlW1lwQWKyasnZI0HPTG3dM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9DFHe9WHE/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+vzB3eqJutQeh8JLlL5Ckb0zhrbh8fbW6fHU5/DF3+ujzOKpzuGmzOGeyN2cxtxlpMdhosdYncPr9vnj8fbL4ey83Oq82eeRv9eFuNR6sc5yrcxVmsIthrgsg7UOcqvl8fa11uan0OWsz+KWwtmOvdZ8stBwqspOl8EJfsFFkr8yir0/jrsZfLUffLIaerEDbqzl9PjP5e/N5O6s0+d7vOGiyt+kyd2YxdtUo892rs1pp8kYhcTn9PjZ6vGy0uOHuNJlqMxpqss8lsogicRRlr84jbxCjroFdLImfrH0+/zA2+iv0eKYw9pkrNRvrM0IgcZBkb8ogrYgf7YMdrIcd60Vdaz8///S6fK52OmQw9+Au9qTwdmMu9VtqMkqgbMTd7Ehe6/p9fmx1OV0tdh7ttdrr9Ufj85rqswkjMhJlcAeg71Hkbs3h7bC4O652+6w1eiMwd6FvtxCmcxGm8o8j74Gc7IugK/M5fB9udo+ntR2sNBaptBJnc5ipswvj8VRnMQNf8Akg7fI4u622uuay+icyuKWx+AtkMkrjsZ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xjiQUUKC2toV9xiOvi/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+fFTy2FFwlU7vE3h8OTZ7tyi2aqP3JeC14xIxFg+vlD6/fry+vPm8ujd8eTZ8tvA6cV+0opczmdMvl1LuFwzskcrrD/o9urJ7M5izm9dxm9cwWxTxWLV8NnN7tG96MK75MG557+m3a+O1Zl31IE8tU/m9ujf9OLT6tav4LeK2JNtzXpGvFk7uE4ksjsmozrV7dnO6tLH58zC58jA4MWG1pB7zIhoynZf0WpZymcqqD7E68mt5LOi4amc1qWc36SU2J5tx3tOxl1LwltDvVQ/uFI5skw2uEoxq0QmnznR79XL6dDM5NCx5biw3beX1qCI0ZR2yoRbx2pbvGo5o0k0uEfb7N235L2137u05rqi0amW3p6S1Z1914d2wIJt0XhqwXdYxWdQv2JFuFdDtVUwoUIrpT7W6tqo1q+Aw4tlxnVhw3BezmpVwGZVvWVRuWI/pk84p0rF4cmo466e3aee2aeY26GQ0ZqJzJOE0I+Ay4x0zoFjyHFkt3FOw18mnDix2bes2bSFyJBz1X1vyX1l0nBds2pBrlI4rUq63cCi3at7w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mCC",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(mo,{"data-is-marrybaby":m,className:e,style:a},o.createElement("div",{className:"share__social"},f.map(((e,a)=>o.createElement(co,{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(x,{className:"__label",size:"label2",type:"regular"},e.name))))),o.createElement("div",{className:"share__copy-link"},o.createElement(x,{className:"__label",color:k.colors.gray500,size:"p4",type:"regular"},p("orCopyLink")),o.createElement("div",{className:"__input-group"},o.createElement("input",{ref:u,type:"text",value:n,readOnly:!0,onFocus:e=>e.target.select()}),o.createElement("button",{className:"__copy",onClick:()=>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")))))},uo=({trackingCategory:e,className:t,style:a,url:n,avatar:r,text:c,onClose:d})=>{const{data:{env:{isMarryBaby:m}}}=i(z),{t:p}=E(),[u,g]=l(!1);return s((()=>(xe(!0),setTimeout((()=>g(!0)),0),()=>xe(!1))),[]),o.createElement(h,null,o.createElement(go,{"data-is-marrybaby":m,className:t,style:a},o.createElement(oo,{className:"share-popup",isOpen:u,onClose:d,heading:p("bottomBar.share")},m?o.createElement(x,{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(ve,{tag:"h4"},c),o.createElement(x,{className:"desc",size:"md"},n))),u&&o.createElement(po,{trackingCategory:e,shareUrl:n||("undefined"!=typeof window?window.location.href:""),title:c}))))},go=Ce.div`
|
|
2154
2118
|
.share-popup {
|
|
2155
2119
|
> div:first-child {
|
|
2156
2120
|
height: unset;
|
|
@@ -2209,7 +2173,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2209
2173
|
overflow: hidden;
|
|
2210
2174
|
border-radius: 1rem;
|
|
2211
2175
|
&[data-open='true'] {
|
|
2212
|
-
${
|
|
2176
|
+
${we.mbDown} {
|
|
2213
2177
|
max-width: unset;
|
|
2214
2178
|
width: 100%;
|
|
2215
2179
|
top: 100%;
|
|
@@ -2237,7 +2201,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2237
2201
|
}
|
|
2238
2202
|
}
|
|
2239
2203
|
}
|
|
2240
|
-
`;var
|
|
2204
|
+
`;var ho="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 vo=Ce.div`
|
|
2241
2205
|
padding: 0 8px;
|
|
2242
2206
|
margin-top: 18px;
|
|
2243
2207
|
|
|
@@ -2268,13 +2232,12 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2268
2232
|
&[data-is-marrybaby='true'] {
|
|
2269
2233
|
padding: 0 1rem 1rem;
|
|
2270
2234
|
}
|
|
2271
|
-
`,
|
|
2235
|
+
`,fo=({className:t,style:a,reason:n,reasonText:r,onClose:s,postId:c})=>{const{data:{locale:d,env:{isMarryBaby:m}},action:{pushNotifications:p}}=i(z),{t:u}=E(),[g,h]=l(!1);return o.createElement(vo,{"data-is-marrybaby":m,className:t,style:a},o.createElement("ul",{className:"report-list"},o.createElement("li",{className:"report-item"},o.createElement("img",{src:ho}),o.createElement(x,{className:"__label",color:k.colors.gray800,size:"p4"},r))),o.createElement(w,{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),$(O(V.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")))},bo=Ce.div`
|
|
2272
2236
|
padding: 0.5rem 1rem 1rem;
|
|
2273
2237
|
line-height: 1.5;
|
|
2274
2238
|
word-break: break-word;
|
|
2275
2239
|
.post-content-replying {
|
|
2276
2240
|
margin-right: 5px;
|
|
2277
|
-
color: ${e=>e.theme.colors.primaryBase};
|
|
2278
2241
|
cursor: pointer;
|
|
2279
2242
|
display: inline-block;
|
|
2280
2243
|
&.tag-only {
|
|
@@ -2326,30 +2289,26 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2326
2289
|
}
|
|
2327
2290
|
}
|
|
2328
2291
|
}
|
|
2329
|
-
|
|
2330
|
-
color: #1890ff;
|
|
2331
|
-
cursor: pointer;
|
|
2332
|
-
}
|
|
2333
|
-
`,bo=e=>{var{trackingCategory:a,url:n,className:r,style:s,replyingTo:d,mentionedUser:m,description:p,disableShortenContent:u,mentions:g=[],maxChars:h=1e3,hideShowAllBtn:v}=e,b=t(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn"]);const[f,x]=l(!1),{t:y}=w(),{authActionWrapper:E}=Fe(),[C,k]=l(!1),N=wa(fa(p||"","display"),g),{action:{sanitizeFunction:A}}=i(S),L=c((()=>{const e=A(N||"");if(u||f)return{showContent:e,hasSeeMore:!1};const t=e.slice(0,h),a=h-27*((t.match(/<\/div>/g)||[]).length-1),o=(t||"").slice(0,a<40?40:a),n=A(o.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),i=n.length<e.length-10;return{showContent:i?n:e,hasSeeMore:i}}),[u,f,N]),T=(null==m?void 0:m.name)||d,I="expert"===(null==m?void 0:m.role)&&!!(null==m?void 0:m.partnerId);return o.createElement(o.Fragment,null,I&&o.createElement(Dt,{isOpen:C,onClose:()=>k(!1),expertId:String(null==m?void 0:m.partnerId)}),o.createElement(vo,Object.assign({className:`${r} no-replace-click`,style:s},b),T&&o.createElement("span",{onClick:()=>I&&k(!0),className:"post-content-replying"},"@",T),(null==p?void 0:p.startsWith("[mention+id="))&&o.createElement("span",{className:"post-content-replying tag-only"},"@"),o.createElement("span",{dangerouslySetInnerHTML:{__html:L.showContent},className:"post-content "+(L.hasSeeMore?"has-see-more":"")}),L.hasSeeMore&&!f&&o.createElement("span",null,"... ",!v&&o.createElement("span",Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),E((()=>x(!0)))},className:"see-more-text"},a?{"data-event-category":a,"data-event-action":"See More Post Click","data-event-label":n}:{}),y("post.seeMore")))))};const fo=ye.div`
|
|
2292
|
+
`,wo=e=>{var{trackingCategory:a,url:n,className:r,style:s,replyingTo:d,mentionedUser:m,description:p,disableShortenContent:u,mentions:g=[],maxChars:h=1e3,hideShowAllBtn:f}=e,b=t(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn"]);const[w,x]=l(!1),{t:y}=E(),{authActionWrapper:C}=Ue(),[k,N]=l(!1),A=ya(xa(p||"","display"),g),{action:{sanitizeFunction:L}}=i(z),T=c((()=>{const e=L(A||"");if(u||w)return{showContent:e,hasSeeMore:!1};const t=e.slice(0,h),a=h-27*((t.match(/<\/div>/g)||[]).length-1),o=(t||"").slice(0,a<40?40:a),n=L(o.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),i=n.length<e.length-10;return{showContent:i?n:e,hasSeeMore:i}}),[u,w,A]),I=(null==m?void 0:m.name)||d,S="expert"===(null==m?void 0:m.role)&&!!(null==m?void 0:m.partnerId);return o.createElement(o.Fragment,null,S&&o.createElement(qt,{isOpen:k,onClose:()=>N(!1),expertId:String(null==m?void 0:m.partnerId)}),o.createElement(bo,Object.assign({className:`${r} no-replace-click`,style:s},b),I&&o.createElement(v,{onClick:()=>S&&N(!0),className:"post-content-replying"},"@",I),(null==p?void 0:p.startsWith("[mention+id="))&&o.createElement("span",{className:"post-content-replying tag-only"},"@"),o.createElement("span",{dangerouslySetInnerHTML:{__html:T.showContent},className:"post-content "+(T.hasSeeMore?"has-see-more":"")}),T.hasSeeMore&&!w&&o.createElement("span",null,"... ",!f&&o.createElement(v,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),C((()=>x(!0)))},className:"see-more-text"},a?{"data-event-category":a,"data-event-action":"See More Post Click","data-event-label":n}:{}),y("post.seeMore")))))};const xo=Ce.div`
|
|
2334
2293
|
padding: 14px 16px 14px 17px;
|
|
2335
2294
|
background: ${e=>e.bgColor};
|
|
2336
2295
|
border-left: 3px solid ${e=>e.highlight};
|
|
2337
2296
|
|
|
2338
|
-
${
|
|
2297
|
+
${we.mbUp} {
|
|
2339
2298
|
padding: 12px 12px 12px 17px;
|
|
2340
2299
|
}
|
|
2341
|
-
`,
|
|
2300
|
+
`,yo=Ce.div`
|
|
2342
2301
|
display: flex;
|
|
2343
|
-
`,
|
|
2302
|
+
`,Eo=Ce.div`
|
|
2344
2303
|
font-size: 12px;
|
|
2345
2304
|
line-height: 18px;
|
|
2346
2305
|
|
|
2347
2306
|
&[data-has-icon='true'] {
|
|
2348
2307
|
margin-left: 10px;
|
|
2349
2308
|
}
|
|
2350
|
-
`,
|
|
2309
|
+
`,Co=Ce.div`
|
|
2351
2310
|
flex-shrink: 0;
|
|
2352
|
-
`,
|
|
2311
|
+
`,ko=Ce.div`
|
|
2353
2312
|
display: grid;
|
|
2354
2313
|
grid-gap: 3px;
|
|
2355
2314
|
grid-template-columns: 1fr 1fr;
|
|
@@ -2462,7 +2421,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2462
2421
|
}
|
|
2463
2422
|
}
|
|
2464
2423
|
}
|
|
2465
|
-
`,
|
|
2424
|
+
`,No=Ce.div`
|
|
2466
2425
|
position: fixed;
|
|
2467
2426
|
z-index: 999;
|
|
2468
2427
|
top: 0;
|
|
@@ -2505,9 +2464,9 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2505
2464
|
object-fit: cover;
|
|
2506
2465
|
}
|
|
2507
2466
|
}
|
|
2508
|
-
`,
|
|
2467
|
+
`,Ao=Ce((e=>{var{icon:a,bgColor:n=k.colors.yellow50,highlightColor:i=k.colors.yellow800,message:l}=e,r=t(e,["icon","bgColor","highlightColor","message"]);return o.createElement(xo,Object.assign({bgColor:n,highlight:i},r),o.createElement(yo,null,a&&o.createElement(Co,null,a),o.createElement(Eo,{"data-has-icon":Boolean(a)},l)))}))`
|
|
2509
2468
|
margin-bottom: 16px;
|
|
2510
|
-
`,
|
|
2469
|
+
`,Lo=({className:e,style:t,authorName:a,images:n,onClose:i,onOpenSingleView:r})=>{const{t:c}=E(),[d,m]=l(!1);return s((()=>{setTimeout((()=>{m(!0)}),0)}),[]),o.createElement(h,null,o.createElement(No,{className:e,style:t,"data-open":d},o.createElement("div",{className:"top-bar"},o.createElement("img",{className:"icon-arrow-left",src:"data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.0508 18.0607L4.00078 12.0367L10.0508 6.01172' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4.00195 12.0352L19.002 12.0352' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",onClick:i,alt:"go back"}),o.createElement(x,{size:"p2",type:"bold",style:{textAlign:"center"}},c("previewPhotos.title",{name:a}))),o.createElement("div",{className:"container"},n.map(((e,t)=>o.createElement("img",{className:"img-preview",key:t,src:e,onClick:()=>null==r?void 0:r(t),alt:"post img"}))))),",")};var To="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12.8125L10 8.8125L6 4.8125' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Io=Ce.div`
|
|
2511
2470
|
position: fixed;
|
|
2512
2471
|
z-index: 999;
|
|
2513
2472
|
top: 0;
|
|
@@ -2524,7 +2483,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2524
2483
|
opacity: 1;
|
|
2525
2484
|
pointer-events: auto;
|
|
2526
2485
|
}
|
|
2527
|
-
`,
|
|
2486
|
+
`,So=Ce.div`
|
|
2528
2487
|
padding: 1rem;
|
|
2529
2488
|
background: white;
|
|
2530
2489
|
.icon-close {
|
|
@@ -2532,7 +2491,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2532
2491
|
height: 26px;
|
|
2533
2492
|
cursor: pointer;
|
|
2534
2493
|
}
|
|
2535
|
-
`,
|
|
2494
|
+
`,Po=Ce.div`
|
|
2536
2495
|
position: relative;
|
|
2537
2496
|
flex: 1;
|
|
2538
2497
|
overflow: hidden;
|
|
@@ -2542,7 +2501,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2542
2501
|
object-fit: contain;
|
|
2543
2502
|
object-position: center;
|
|
2544
2503
|
}
|
|
2545
|
-
`,
|
|
2504
|
+
`,Mo=Ce.div`
|
|
2546
2505
|
--inner-padding: max(16px, 20%);
|
|
2547
2506
|
height: 100%;
|
|
2548
2507
|
position: absolute;
|
|
@@ -2562,7 +2521,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2562
2521
|
&[data-disabled='true'] {
|
|
2563
2522
|
cursor: not-allowed;
|
|
2564
2523
|
}
|
|
2565
|
-
`,
|
|
2524
|
+
`,zo=Ce.div`
|
|
2566
2525
|
border-radius: 50%;
|
|
2567
2526
|
background: rgba(0, 0, 0, 0.3);
|
|
2568
2527
|
display: flex;
|
|
@@ -2576,14 +2535,14 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2576
2535
|
opacity: 0.5;
|
|
2577
2536
|
}
|
|
2578
2537
|
}
|
|
2579
|
-
${
|
|
2538
|
+
${we.tdUp} {
|
|
2580
2539
|
padding: 8px;
|
|
2581
2540
|
> img {
|
|
2582
2541
|
width: 30px;
|
|
2583
2542
|
height: 30px;
|
|
2584
2543
|
}
|
|
2585
2544
|
}
|
|
2586
|
-
`,
|
|
2545
|
+
`,jo=({initialViewIndex:e,images:t,onClose:a})=>{const[n,i]=l(e),[r,c]=l(!1);s((()=>{setTimeout((()=>{c(!0)}),0)}),[]);const d=null==t?void 0:t[n],m=0===n,p=!(null==t?void 0:t.length)||n===(null==t?void 0:t.length)-1;return o.createElement(h,null,o.createElement(Io,{"data-open":r&&!!d},o.createElement(So,null,o.createElement("img",{src:eo,className:"icon-close",onClick:a,alt:"close"})),d&&n>=0&&o.createElement(o.Fragment,null,o.createElement(Po,null,o.createElement("img",{className:"img-preview",src:d,alt:"post img open"}),o.createElement(Mo,{"data-disabled":m,onClick:()=>!m&&i(n-1)},o.createElement(zo,null,o.createElement("img",{src:To,style:{transform:"rotate(180deg)"},alt:"left arrow","data-disabled":m}))),o.createElement(Mo,{"data-right":!0,"data-disabled":p,onClick:()=>!p&&i(n+1)},o.createElement(zo,null,o.createElement("img",{src:To,alt:"right arrow","data-disabled":p})))))))},Fo="hhgcomp-sensitivemask-inner",Bo=S(Ce.div`
|
|
2587
2546
|
position: absolute;
|
|
2588
2547
|
top: 0;
|
|
2589
2548
|
right: 0;
|
|
@@ -2595,7 +2554,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2595
2554
|
align-items: center;
|
|
2596
2555
|
justify-content: center;
|
|
2597
2556
|
cursor: pointer;
|
|
2598
|
-
`,
|
|
2557
|
+
`,Fo),Oo=Ce.div``,Vo=Ce.div`
|
|
2599
2558
|
position: absolute;
|
|
2600
2559
|
bottom: 0;
|
|
2601
2560
|
left: 0;
|
|
@@ -2629,7 +2588,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2629
2588
|
background: transparent;
|
|
2630
2589
|
cursor: zoom-in;
|
|
2631
2590
|
|
|
2632
|
-
.${
|
|
2591
|
+
.${Fo} {
|
|
2633
2592
|
top: auto;
|
|
2634
2593
|
right: auto;
|
|
2635
2594
|
left: 8px;
|
|
@@ -2639,10 +2598,10 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2639
2598
|
justify-content: flex-start;
|
|
2640
2599
|
}
|
|
2641
2600
|
}
|
|
2642
|
-
`,
|
|
2601
|
+
`,Ro=({image:e,showIcon:t=!0})=>{const[a,n]=l(!0);return o.createElement(Vo,{"data-is-blurred":a,onClick:e=>a&&e.stopPropagation()},o.createElement("img",{loading:"lazy",className:"img-preview",src:e}),o.createElement(Bo,{onClick:e=>{e.stopPropagation(),n(!a)}},t&&o.createElement(Oo,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"})))))},Do=({className:e,images:t=[],style:a,authorName:n,isSensitive:c=!1})=>{const{data:{env:{isMarryBaby:d}}}=i(z),{t:m}=E(),p="+ "+((t.length||0)-4),[u,g]=l(!1),[h,v]=l(-1),f=t.length>5,b=r(!1);return s((()=>()=>{b.current&&xe(!1)}),[]),s((()=>{u||h>=0?(xe(!0),b.current=!0):(xe(!1),b.current=!1)}),[u,h]),o.createElement(o.Fragment,null,c&&o.createElement(Ao,{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(ko,{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(Ro,{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(ve,{tag:"h1",as:"h2",color:"white"},p)))}))),u&&o.createElement(Lo,{authorName:n||"",images:t,onClose:()=>g(!1),onOpenSingleView:v}),h>=0&&o.createElement(jo,{images:t,initialViewIndex:h,onClose:()=>v(-1)}))},Uo=Ce.div`
|
|
2643
2602
|
.link-info-container {
|
|
2644
2603
|
padding: 0.5rem 1rem;
|
|
2645
|
-
background: #f4faff;
|
|
2604
|
+
background: ${e=>e.color||"#f4faff"};
|
|
2646
2605
|
}
|
|
2647
2606
|
.link-image-wrapper {
|
|
2648
2607
|
position: relative;
|
|
@@ -2675,13 +2634,13 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2675
2634
|
overflow: hidden;
|
|
2676
2635
|
border-radius: 1rem;
|
|
2677
2636
|
}
|
|
2678
|
-
`,Do=({url:t,image:a,className:n,style:d,autoPlay:m=!0})=>{const{data:{locale:p}}=i(S),[u,g]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return g(null);g((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),z(j(B.FETCH_PREVIEW,{_locale:p}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;g({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((()=>{g(null)}))}}))}),[t,a]);const h=a||(null==u?void 0:u.image),v=(null==u?void 0:u.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])||""})(v)),[v]),f=c((()=>v.includes("facebook.com")||v.includes("fb.watch")),[v]),w=r(0),x=r(0),[y,E]=l(!1);s((()=>{const e=()=>{var e;const t=null===(e=C.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&&E((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const C=r(null),k=r(!1);return o.createElement(Ro,{className:`${n} no-replace-click`,style:d,ref:C},a||!b&&!f?o.createElement("a",{href:v,target:"_blank",rel:"noreferrer"},o.createElement("div",{className:"link-image-wrapper "+((null==u?void 0:u.isFetching)?"fetching":"")},(null==u?void 0:u.isFetching)?o.createElement(Re,{className:"loading-spinner"}):o.createElement("img",{className:"link-image",src:h||F,onError:e=>{k.current||(k.current=!0,e.currentTarget.src=F)}}))):o.createElement("div",{className:"link-image-wrapper"},b?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${b}?&autoplay=${m?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"}}):f?o.createElement("iframe",{key:String(y),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(v)}&autoplay=${m?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 Uo="PD6nRZX";const Wo=({className:e,size:t="md"})=>{const{t:a}=w();return o.createElement("div",{className:`${Uo} ${e}`},o.createElement(v,{size:t,color:"transparent",isLoading:!0},a("loading")))},Zo=n({});var Ho="DZmf3s7";const qo=({src:e,defaultSrc:t=I.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:Ho,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(Nt,{src:e,fallbackSrc:t,alt:l})));var Go="l5fL1xL",_o="L-aGKo7";const Qo=({children:e,className:t=""})=>o.createElement("div",{className:`${Go} ${t}`},e),Xo=({children:e,className:t=""})=>o.createElement("div",{className:`${_o} ${t}`},e);var Ko="eaR8ATZ",$o="xM-7K0a";const Yo=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${Ko} ${i}`},o.createElement(qo,{src:a}),o.createElement("div",{className:$o},n||o.createElement("div",null,e&&o.createElement(Qo,null,e),t&&o.createElement(Xo,null,t))));Yo.CategoryText=Qo,Yo.Title=Xo;const Jo=({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(Yo,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(Yo.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(Yo.Title,null,t),o.createElement(kt,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(kt.SubDivider,null),"Dec 12, 2022")})))};var en={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 tn=({className:e=""})=>{var t,a,n,l,r;const{t:s}=w(),{info:c,isMarryBaby:d}=i(Zo),p=null==c?void 0:c.data,u=[{type:"linkedin",icon:I.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin},{type:"instagram",icon:I.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram},{type:"facebook",icon:I.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook},{type:"youtube",icon:I.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube},{type:"tiktok",icon:I.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok}],h=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:I.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),panel:o.createElement("div",{className:en.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:en.accBodyGroupItem,key:String(t)},o.createElement("div",{className:en.accBodyGroupTitle},e.title),o.createElement("div",{className:en.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:I.getAssetPath(d?"book-mb.svg":"book.svg"),panel:o.createElement("div",{className:en.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:en.accBodyGroupItem,key:String(t)},o.createElement("div",{className:en.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:en.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:I.getAssetPath(d?"award-mb.svg":"award.svg"),panel:o.createElement("div",{className:en.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:en.accBodyGroupTitle,key:t},e.title))))}]:[]],v=(null==c?void 0:c.relatedPosts)||[],b=u.filter((e=>e.url));return o.createElement("div",{className:`${en.container} ${e}`,"data-is-marrybaby":d},h.length>0&&o.createElement(g,{defaultValue:h[0].key,chevron:d?o.createElement("div",{className:en.mbChevronWrapper},o.createElement(T,{size:12,color:y.mbColors.midGray})):o.createElement(T,{color:y.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"}}}},h.map((e=>o.createElement(g.Item,{key:e.key,value:e.key},o.createElement(g.Control,null,o.createElement("div",{className:en.header},o.createElement("div",{className:en.headingIcon},o.createElement("img",{src:e.iconSrc})),o.createElement("div",{className:en.heading},e.heading))),o.createElement(g.Panel,null,e.panel))))),v.length>0&&o.createElement("div",{className:en.group},o.createElement("div",{className:en.subTitle},o.createElement("img",{className:en.subIcon,src:I.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg")}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${en.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:en.articleCardLink},o.createElement(Jo,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:en.group},o.createElement("div",{className:en.subTitle},o.createElement("img",{className:en.subIcon,src:I.getAssetPath(d?"social-mb.svg":"social.svg")}),s("profilePanel.socialLinks")),o.createElement("div",{className:en.groupBody},o.createElement(m,null,u.map(((e,t)=>e.url&&o.createElement("div",{className:en.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px"})))))))))};var an="_8fd7YMs",on="DomiQfw",nn="-b2qnfL";const ln=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(Zo);return o.createElement("div",{className:an},o.createElement("div",{className:on},o.createElement("img",{src:a||I.getAssetPath(r?"comments-mb.svg":"comments.svg")})),e&&o.createElement("div",{className:nn},e),t&&o.createElement(v,{size:"md",theme:l,color:"secondary",onClick:n},t))};var rn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const sn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=w(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(S),{authActionWrapper:h,authorProps:b,isMarryBaby:f}=i(Zo),x=`${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:`${rn.container} ${t}`},o.createElement("div",{className:rn.header},o.createElement("div",{className:rn.question},p("profilePanel.question")," ",o.createElement("span",{className:rn.questionTitle,style:{color:f?y.mbColors.pink:y.colors.primaryBase},onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=x))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:rn.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:rn.questionCard},o.createElement(oa,Object.assign({className:"card-author"},b,{role:"user",avatarIcon:o.createElement(pt,null),subLine:o.createElement(oa.SubTextRow,null,o.createElement(oa.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(bo,{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(v,{theme:f?"marryBaby":"helloSites",size:"md",color:"secondary",onClick:()=>{(null==u?void 0:u.id)?window.location.href=x:null==h||h((()=>window.location.href=x))}},p("profilePanel.anserwing.viewFull")))};var cn="MrdoES3";const dn=({id:t})=>{const{t:a}=w(),{data:{locale:n}}=i(S),{authorProps:r}=i(Zo),[c,d]=l(null),[m,p]=l(!1);return s((()=>{t&&e(void 0,void 0,void 0,(function*(){var e;p(!0);const a=yield z(j(B.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(ie);d(o),p(!1)}))}),[]),o.createElement("div",{className:cn},m?o.createElement(Wo,null):null!==c&&(c.length>0?c.map((e=>o.createElement(sn,{className:"post-card",key:e.id,post:e}))):o.createElement(ln,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},mn=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}))};mn.defaultProps={size:24,color:y.colors.gray600};var pn="KsWg8i6",un="_9tS0EUN",gn="kyyRKlb",hn="-Uqqka-";const vn=a=>{var{post:n,onSkip:r,siteType:s,btnText:c}=a,m=t(a,["post","onSkip","siteType","btnText"]);const{t:p}=w(),{data:{locale:u},action:{pushNotifications:g}}=i(S),[b,f]=l(!1),[x,E]=l(!1),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;E(!0);const t=yield Q(j(B.USER.SKIP_QUESTION,{_locale:u,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),g({title:"",message:"Skip success",type:"success"})):g({title:"",message:null==t?void 0:t.messages,type:"danger"}),E(!1)}))),[]);return o.createElement(h,{width:327,withArrow:!0,shadow:"md",opened:b},o.createElement(h.Target,null,o.createElement("div",Object.assign({className:`${pn} ${(null==m?void 0:m.className)||""}`,onClick:()=>f(!0)},m),c||p("profilePanel.questionNotClear"))),o.createElement(h.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:un},p("profilePanel.skipQuestion.heading")),o.createElement("div",{className:gn},p("profilePanel.skipQuestion.content")),o.createElement("div",{className:hn},o.createElement(v,{theme:s,size:"md",color:"secondary",icon:o.createElement(Ne,{color:y.colors.primaryBase,size:24}),onClick:()=>f(!1)}),o.createElement(v,{theme:s,size:"md",icon:o.createElement(Ae,{color:"white",size:24}),onClick:C,isLoading:x})))))};var bn="toEutn7",fn="drdisHs",wn="HNlhOdx";const xn=e=>{var a,n,l,r,{post:s,onSkip:c}=e,d=t(e,["post","onSkip"]);const{data:{env:{togetherBasePath:m}}}=i(S),{showSkipQuestionTag:p}=i(Zo);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},d,{className:`${bn} ${(null==d?void 0:d.className)||""}`}),o.createElement(oa,{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(oa.SubTextRow,null,o.createElement(oa.SubText,null,null==s?void 0:s.createdTime))}),o.createElement("a",{href:`${window.location.origin}${m}/${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),p&&o.createElement(vn,{className:wn,post:s,onSkip:c})))};var yn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m"};const En=()=>{var t,a;const{t:n}=w(),{data:{locale:r,userInfo:c}}=i(S),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(Zo),[u,h]=l(),[v,b]=l([]),[f,x]=l(!1),E=null==c?void 0:c.id;s((()=>{E&&e(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield Q(j(B.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(ie),delete e.question,a.push(se(e))})),b(a),h(o),x(!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)),h(a),p(Object.assign(Object.assign({},m),{total_question:o})),null==d||d(o)}};return o.createElement("div",{className:yn.container},f?o.createElement(Wo,null):(null==m?void 0:m.total_question)>0?v.length>0&&o.createElement(g,{className:yn.accordion,defaultValue:String((null===(a=v[null===(t=Object.keys(v))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles:{control:{padding:"16px",border:`1px solid ${y.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${y.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:o.createElement("div",{className:yn.chevron},o.createElement(mn,{color:y.colors.gray600,size:20}))},v.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(g.Item,{key:e.id,value:String(e.id)},o.createElement(g.Control,null,o.createElement("div",{className:yn.header},o.createElement("div",{className:yn.headingIcon},o.createElement("img",{src:e.thumbnail})),o.createElement("div",{className:yn.heading},e.name))),o.createElement(g.Panel,null,o.createElement("div",{className:yn.body},t.map((e=>o.createElement(xn,{className:"question-card",key:e.id,post:e,onSkip:C}))))))}))):o.createElement(ln,{message:n("profilePanel.emptyCareMess.content"),imgSrc:I.getAssetPath("questions.svg")}))};var Cn="GA-zc-O",kn="A18McWD",Nn="IB049vj",An="_8I--vEV";const Ln=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(S),{authActionWrapper:r,authorProps:s}=i(Zo),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:`${Cn} ${t}`},o.createElement("div",{className:Nn},o.createElement("a",{className:An,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(kt,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(oa.MainText,{className:kn},null==e?void 0:e.title),o.createElement(oa.SubTextRow,null,o.createElement(oa.SubText,null,null==e?void 0:e.createdTime))),o.createElement(bo,{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 Tn="TSMHoEM";const In=()=>{const{t:t}=w(),{data:{locale:a}}=i(S),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(Zo),[m,p]=l(null),[u,g]=l(!1);return s((()=>{n&&e(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield z(j(B.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(ie);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Tn},u?o.createElement(Wo,null):null!==m&&(m.length>0?m.map((e=>o.createElement(Ln,{className:"post-card",key:e.id,post:e}))):o.createElement(ln,{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 Sn="_4Vekw96",Pn="DIJdGcB",Mn="aQSt4-Q";const zn=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},jn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var Bn,Fn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(Bn||(Bn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Fn||(Fn={}));const On=a=>{var n,r,{authorProps:c,selectedTab:d,authActionWrapper:m,onSkipQuestion:p,onCloseFromPost:u,hideQuestionTab:g,hideAnswerTab:h,showSkipQuestionTag:v,rolesToShowQuestionsTab:b=["expert"]}=a,f=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab"]);const{data:{locale:x,userInfo:y,env:{isMarryBaby:E}}}=i(S),{t:C}=w(),k=null==c?void 0:c.role,N=null==y?void 0:y.role,A=String(null==c?void 0:c.userId),[L,T]=l(),[I,P]=l(!1),[M,F]=l(),O=(null==y?void 0:y._togetherUserId)===(null==c?void 0:c.userId),V=[...-1!==b.indexOf(k)?[{key:Bn.About,name:C("profilePanel.tabs.highlight"),component:o.createElement(tn,{id:A,info:M})}]:[{key:Bn.Posts,name:C("profilePanel.tabs.posts"),component:o.createElement(In,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"}],...g||-1===b.indexOf(N)||(null==y?void 0:y._togetherUserId)!==(null==c?void 0:c.userId)?[]:[{key:Bn.Care,name:`${C("profilePanel.tabs.care")}`,component:o.createElement(En,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question"}],...h||-1===b.indexOf(k)?[]:[{key:Bn.Answer,name:`${C("profilePanel.tabs.expertAnswer")}`,component:o.createElement(dn,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply"}]],[R,D]=l(null),[U,W]=l(null),Z={initialTab:U,tabContent:R,onChange:e=>W(e)},H=null==V?void 0:V.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;P(!0);const c=yield Promise.all([z(j(B.USER.DETAIL,{_locale:x,id:A}),"GET"),...H.map((e=>z(j(B.USER.COUNT_TABS,{_locale:x,id:A,[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(zn),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>ce(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(jn),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)&&F(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=H.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!==[Bn.Care,Bn.Posts].indexOf(e.key)?e:void 0})).filter(Boolean).map((e=>e.key)),w=V.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===Bn.About?v&&t:t})).filter(Boolean);D(w),W((()=>{if(!d)return 0;const e=null==w?void 0:w.findIndex((e=>e.key===d));return-1!==e?e:0})()),T(b),P(!1)}))}),[]);const q=null==M?void 0:M.data;return o.createElement(Zo.Provider,{value:{isMarryBaby:E,siteType:E?"marryBaby":"helloSites",authorId:String((null==c?void 0:c.userId)||""),authActionWrapper:m,onSkipQuestion:p,info:M,authorProps:c,onCloseFromPost:u,countValues:L,setCountValues:T,isAuthorLogin:O,showSkipQuestionTag:v}},o.createElement("div",Object.assign({},f,{className:`${Sn} ${(null==f?void 0:f.className)||""}`,"data-is-marrybaby":E}),I?o.createElement(Wo,null):o.createElement(o.Fragment,null,o.createElement(oa,Object.assign({},c,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==c?void 0:c.role)?(null==q?void 0:q.specialty)&&(null==q?void 0:q.organisation)&&o.createElement(oa.SubTextRow,null,(null==q?void 0:q.specialty)&&o.createElement(o.Fragment,null,o.createElement(oa.SubText,null,null==q?void 0:q.specialty),o.createElement(oa.SubDivider,null)),o.createElement(oa.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&o.createElement(oa.SubTextRow,null,o.createElement(oa.SubText,null,C("profilePanel.joined")," ",Te(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===k&&o.createElement("div",{className:Pn,dangerouslySetInnerHTML:{__html:null===(n=null==M?void 0:M.data)||void 0===n?void 0:n.description}}),null!==R&&null!==U&&(R.length>0?o.createElement("div",{className:Mn},o.createElement(ae,Object.assign({},Z,{className:"feature-tabs"})),null===(r=null==R?void 0:R[U])||void 0===r?void 0:r.component):o.createElement(ln,{message:C("profilePanel.emptyPostMess.content",{name:(null==c?void 0:c.name)||(null==c?void 0:c.username)||""})})))))};var Vn=Object.freeze({__proto__:null,get TabName(){return Bn},get UserType(){return Fn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:On}),Rn="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",Dn="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",Un="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 Wn=({onDeleteComment:t,commentId:a,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:c},action:{pushNotifications:d}}=i(S),{t:m}=w(),[p,u]=l(!1),{authActionWrapper:g}=Fe();return o.createElement("div",{className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()}},p&&o.createElement(oo,{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})=>Q(j(B.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(st,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:Un,label:m("actionPopover.delete"),onClick:()=>{g((()=>{u(!0)}))}}]},className:r,toggleButtonContent:o.createElement("img",{src:s?Rn:Dn}),buttonProps:{}}))},Zn=ye.div`
|
|
2637
|
+
`,Wo=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(z),[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}))),B(O(V.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]),w=c((()=>f.includes("facebook.com")||f.includes("fb.watch")),[f]),x=r(0),y=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&&(!x.current||Math.abs((x.current-t.width)/(null==t?void 0:t.width))>.2)&&(x.current=Math.floor(t.width),a=!0),t&&(!y.current||Math.abs((y.current-t.height)/(null==t?void 0:t.height))>.2)&&(y.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(Uo,{className:`${n} no-replace-click`,style:d,ref:k,color:A.colors[A.primaryColor][0]},a||!b&&!w?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(He,{className:"loading-spinner"}):o.createElement("img",{className:"link-image",src:v||R,onError:e=>{N.current||(N.current=!0,e.currentTarget.src=R)}}))):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"}}):w?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=${x.current}&height=${y.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:y.current,width:x.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"}):null))};var Zo="PD6nRZX";const Ho=({className:e,size:t="md"})=>{const{t:a}=E();return o.createElement("div",{className:`${Zo} ${e}`},o.createElement(w,{size:t,color:"transparent",isLoading:!0},a("loading")))},qo=n({});var _o="DZmf3s7";const Go=({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:_o,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(St,{src:e,fallbackSrc:t,alt:l})));var Qo="l5fL1xL",Xo="L-aGKo7";const Ko=({children:e,className:t=""})=>o.createElement("div",{className:`${Qo} ${t}`},e),$o=({children:e,className:t=""})=>o.createElement("div",{className:`${Xo} ${t}`},e);var Yo="eaR8ATZ",Jo="xM-7K0a";const en=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${Yo} ${i}`},o.createElement(Go,{src:a}),o.createElement("div",{className:Jo},n||o.createElement("div",null,e&&o.createElement(Ko,null,e),t&&o.createElement($o,null,t))));en.CategoryText=Ko,en.Title=$o;const tn=({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(en,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(en.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(en.Title,null,t),o.createElement(It,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(It.SubDivider,null),"Dec 12, 2022")})))};var an={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 on=({className:e=""})=>{var t,a,n,l,r;const{t:s}=E(),{info:c,isMarryBaby:d}=i(qo),m=null==c?void 0:c.data,p=[{type:"linkedin",icon:M.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin},{type:"instagram",icon:M.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram},{type:"facebook",icon:M.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook},{type:"youtube",icon:M.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube},{type:"tiktok",icon:M.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok}],g=[...((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"),panel:o.createElement("div",{className:an.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:an.accBodyGroupItem,key:String(t)},o.createElement("div",{className:an.accBodyGroupTitle},e.title),o.createElement("div",{className:an.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"),panel:o.createElement("div",{className:an.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:an.accBodyGroupItem,key:String(t)},o.createElement("div",{className:an.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:an.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"),panel:o.createElement("div",{className:an.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:an.accBodyGroupTitle,key:t},e.title))))}]:[]],h=(null==c?void 0:c.relatedPosts)||[],v=p.filter((e=>e.url));return o.createElement("div",{className:`${an.container} ${e}`,"data-is-marrybaby":d},g.length>0&&o.createElement(f,{defaultValue:g[0].key,chevron:d?o.createElement("div",{className:an.mbChevronWrapper},o.createElement(P,{size:12,color:k.mbColors.midGray})):o.createElement(P,{color:k.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"}}}},g.map((e=>o.createElement(f.Item,{key:e.key,value:e.key},o.createElement(f.Control,null,o.createElement("div",{className:an.header},o.createElement("div",{className:an.headingIcon},o.createElement("img",{src:e.iconSrc})),o.createElement("div",{className:an.heading},e.heading))),o.createElement(f.Panel,null,e.panel))))),h.length>0&&o.createElement("div",{className:an.group},o.createElement("div",{className:an.subTitle},o.createElement("img",{className:an.subIcon,src:M.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg")}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${an.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:an.articleCardLink},o.createElement(tn,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==m?void 0:m.name,avatar:null==m?void 0:m.avatar}}),{isReview:!0}))))))),v.length>0&&o.createElement("div",{className:an.group},o.createElement("div",{className:an.subTitle},o.createElement("img",{className:an.subIcon,src:M.getAssetPath(d?"social-mb.svg":"social.svg")}),s("profilePanel.socialLinks")),o.createElement("div",{className:an.groupBody},o.createElement(u,null,p.map(((e,t)=>e.url&&o.createElement("div",{className:an.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px"})))))))))};var nn="_8fd7YMs",ln="DomiQfw",rn="-b2qnfL";const sn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(qo);return o.createElement("div",{className:nn},o.createElement("div",{className:ln},o.createElement("img",{src:a||M.getAssetPath(r?"comments-mb.svg":"comments.svg")})),e&&o.createElement("div",{className:rn},e),t&&o.createElement(w,{size:"md",theme:l,color:"secondary",onClick:n},t))};var cn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const dn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=E(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(z),{authActionWrapper:h,authorProps:v,isMarryBaby: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:`${cn.container} ${t}`},o.createElement("div",{className:cn.header},o.createElement("div",{className:cn.question},p("profilePanel.question")," ",o.createElement("span",{className:cn.questionTitle,style:{color:f?k.mbColors.pink:k.colors.primaryBase},onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=b))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:cn.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:cn.questionCard},o.createElement(ia,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:o.createElement(ft,null),subLine:o.createElement(ia.SubTextRow,null,o.createElement(ia.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(wo,{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(Oe,{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 mn="MrdoES3";const pn=({id:t})=>{const{t:a}=E(),{data:{locale:n}}=i(z),{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 B(O(V.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(re);d(o),p(!1)}))}),[]),o.createElement("div",{className:mn},m?o.createElement(Ho,null):null!==c&&(c.length>0?c.map((e=>o.createElement(dn,{className:"post-card",key:e.id,post:e}))):o.createElement(sn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},un=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}))};un.defaultProps={size:24,color:k.colors.gray600};var gn="KsWg8i6",hn="_9tS0EUN",vn="kyyRKlb",fn="-Uqqka-";const bn=a=>{var{post:n,onSkip:r,siteType:s,btnText:c}=a,m=t(a,["post","onSkip","siteType","btnText"]);const{t:p}=E(),{data:{locale:u},action:{pushNotifications:g}}=i(z),[h,v]=l(!1),[f,x]=l(!1),y=d((()=>e(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield $(O(V.USER.SKIP_QUESTION,{_locale:u,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)||""}),v(!1),g({title:"",message:"Skip success",type:"success"})):g({title:"",message:null==t?void 0:t.messages,type:"danger"}),x(!1)}))),[]);return o.createElement(b,{width:327,withArrow:!0,shadow:"md",opened:h},o.createElement(b.Target,null,o.createElement("div",Object.assign({className:`${gn} ${(null==m?void 0:m.className)||""}`,onClick:()=>v(!0)},m),c||p("profilePanel.questionNotClear"))),o.createElement(b.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:hn},p("profilePanel.skipQuestion.heading")),o.createElement("div",{className:vn},p("profilePanel.skipQuestion.content")),o.createElement("div",{className:fn},o.createElement(w,{theme:s,size:"md",color:"secondary",icon:o.createElement(Le,{color:k.colors.primaryBase,size:24}),onClick:()=>v(!1)}),o.createElement(w,{theme:s,size:"md",icon:o.createElement(Te,{color:"white",size:24}),onClick:y,isLoading:f})))))};var wn="toEutn7",xn="drdisHs",yn="HNlhOdx";const En=e=>{var a,n,l,r,{post:s,onSkip:c}=e,d=t(e,["post","onSkip"]);const{data:{env:{togetherBasePath:m}}}=i(z),{showSkipQuestionTag:p}=i(qo);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},d,{className:`${wn} ${(null==d?void 0:d.className)||""}`}),o.createElement(ia,{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(ia.SubTextRow,null,o.createElement(ia.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(v,{href:`${window.location.origin}${m}/${null===(r=null==s?void 0:s.community)||void 0===r?void 0:r.slug}/${null==s?void 0:s.slug}`,className:xn,rel:"noreferrer"},null==s?void 0:s.title),p&&o.createElement(bn,{className:yn,post:s,onSkip:c})))};var Cn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m"};const kn=()=>{var t,a;const{t:n}=E(),{data:{locale:r,userInfo:c}}=i(z),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(qo),[u,g]=l(),[h,v]=l([]),[b,w]=l(!1),x=null==c?void 0:c.id;s((()=>{x&&e(void 0,void 0,void 0,(function*(){var e;w(!0);const t=yield $(O(V.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(re),delete e.question,a.push(de(e))})),v(a),g(o),w(!1)}))}),[]);const y=({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:Cn.container},b?o.createElement(Ho,null):(null==m?void 0:m.total_question)>0?h.length>0&&o.createElement(f,{className:Cn.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:{control:{padding:"16px",border:`1px solid ${k.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${k.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:o.createElement("div",{className:Cn.chevron},o.createElement(un,{color:k.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:Cn.header},o.createElement("div",{className:Cn.headingIcon},o.createElement("img",{src:e.thumbnail})),o.createElement("div",{className:Cn.heading},e.name))),o.createElement(f.Panel,null,o.createElement("div",{className:Cn.body},t.map((e=>o.createElement(En,{className:"question-card",key:e.id,post:e,onSkip:y}))))))}))):o.createElement(sn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:M.getAssetPath("questions.svg")}))};var Nn="GA-zc-O",An="A18McWD",Ln="IB049vj",Tn="_8I--vEV";const In=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(z),{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:`${Nn} ${t}`},o.createElement("div",{className:Ln},o.createElement("a",{className:Tn,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(It,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(ia.MainText,{className:An},null==e?void 0:e.title),o.createElement(ia.SubTextRow,null,o.createElement(ia.SubText,null,null==e?void 0:e.createdTime))),o.createElement(wo,{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 Sn="TSMHoEM";const Pn=()=>{const{t:t}=E(),{data:{locale:a}}=i(z),{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 B(O(V.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(re);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Sn},u?o.createElement(Ho,null):null!==m&&(m.length>0?m.map((e=>o.createElement(In,{className:"post-card",key:e.id,post:e}))):o.createElement(sn,{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 Mn="_4Vekw96",zn="DIJdGcB",jn="aQSt4-Q";const Fn=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Bn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var On,Vn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(On||(On={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Vn||(Vn={}));const Rn=a=>{var n,r,{authorProps:c,selectedTab:d,authActionWrapper:m,onSkipQuestion:p,onCloseFromPost:u,hideQuestionTab:g,hideAnswerTab:h,showSkipQuestionTag:v,rolesToShowQuestionsTab:f=["expert"]}=a,b=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab"]);const{data:{locale:w,userInfo:x,env:{isMarryBaby:y}}}=i(z),{t:C}=E(),k=null==c?void 0:c.role,N=null==x?void 0:x.role,A=String(null==c?void 0:c.userId),[L,T]=l(),[I,S]=l(!1),[P,M]=l(),j=(null==x?void 0:x._togetherUserId)===(null==c?void 0:c.userId),F=[...-1!==f.indexOf(k)?[{key:On.About,name:C("profilePanel.tabs.highlight"),component:o.createElement(on,{id:A,info:P})}]:[{key:On.Posts,name:C("profilePanel.tabs.posts"),component:o.createElement(Pn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"}],...g||-1===f.indexOf(N)||(null==x?void 0:x._togetherUserId)!==(null==c?void 0:c.userId)?[]:[{key:On.Care,name:`${C("profilePanel.tabs.care")}`,component:o.createElement(kn,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question"}],...h||-1===f.indexOf(k)?[]:[{key:On.Answer,name:`${C("profilePanel.tabs.expertAnswer")}`,component:o.createElement(pn,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply"}]],[R,D]=l(null),[U,W]=l(null),Z={initialTab:U,tabContent:R,onChange:e=>W(e)},H=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([B(O(V.USER.DETAIL,{_locale:w,id:A}),"GET"),...H.map((e=>B(O(V.USER.COUNT_TABS,{_locale:w,id:A,[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(Fn),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>me(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(Bn),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)&&M(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=H.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!==[On.Care,On.Posts].indexOf(e.key)?e:void 0})).filter(Boolean).map((e=>e.key)),x=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===On.About?v&&t:t})).filter(Boolean);D(x),W((()=>{if(!d)return 0;const e=null==x?void 0:x.findIndex((e=>e.key===d));return-1!==e?e:0})()),T(f),S(!1)}))}),[]);const q=null==P?void 0:P.data;return o.createElement(qo.Provider,{value:{isMarryBaby:y,siteType:y?"marryBaby":"helloSites",authorId:String((null==c?void 0:c.userId)||""),authActionWrapper:m,onSkipQuestion:p,info:P,authorProps:c,onCloseFromPost:u,countValues:L,setCountValues:T,isAuthorLogin:j,showSkipQuestionTag:v}},o.createElement("div",Object.assign({},b,{className:`${Mn} ${(null==b?void 0:b.className)||""}`,"data-is-marrybaby":y}),I?o.createElement(Ho,null):o.createElement(o.Fragment,null,o.createElement(ia,Object.assign({},c,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==c?void 0:c.role)?(null==q?void 0:q.specialty)&&(null==q?void 0:q.organisation)&&o.createElement(ia.SubTextRow,null,(null==q?void 0:q.specialty)&&o.createElement(o.Fragment,null,o.createElement(ia.SubText,null,null==q?void 0:q.specialty),o.createElement(ia.SubDivider,null)),o.createElement(ia.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&o.createElement(ia.SubTextRow,null,o.createElement(ia.SubText,null,C("profilePanel.joined")," ",Ie(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===k&&o.createElement("div",{className:zn,dangerouslySetInnerHTML:{__html:null===(n=null==P?void 0:P.data)||void 0===n?void 0:n.description}}),null!==R&&null!==U&&(R.length>0?o.createElement("div",{className:jn},o.createElement(Be,Object.assign({},Z,{className:"feature-tabs"})),null===(r=null==R?void 0:R[U])||void 0===r?void 0:r.component):o.createElement(sn,{message:C("profilePanel.emptyPostMess.content",{name:(null==c?void 0:c.name)||(null==c?void 0:c.username)||""})})))))};var Dn=Object.freeze({__proto__:null,get TabName(){return On},get UserType(){return Vn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Rn}),Un="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",Wn="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",Zn="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 Hn=({onDeleteComment:t,commentId:a,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:c},action:{pushNotifications:d}}=i(z),{t:m}=E(),[p,u]=l(!1),{authActionWrapper:g}=Ue();return o.createElement("div",{className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()}},p&&o.createElement(io,{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})=>$(O(V.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(ut,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:Zn,label:m("actionPopover.delete"),onClick:()=>{g((()=>{u(!0)}))}}]},className:r,toggleButtonContent:o.createElement("img",{src:s?Un:Wn}),buttonProps:{}}))},qn=Ce.div`
|
|
2679
2638
|
.add-link {
|
|
2680
|
-
color: ${
|
|
2639
|
+
color: ${k.colors.primaryBase};
|
|
2681
2640
|
}
|
|
2682
|
-
`,
|
|
2641
|
+
`,_n=Ce.div`
|
|
2683
2642
|
margin: 16px 0;
|
|
2684
|
-
background: ${
|
|
2643
|
+
background: ${k.colors.yellow50};
|
|
2685
2644
|
padding: 5px 10px;
|
|
2686
2645
|
border-radius: 2px;
|
|
2687
2646
|
|
|
@@ -2690,38 +2649,38 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2690
2649
|
vertical-align: middle;
|
|
2691
2650
|
margin-right: 6px;
|
|
2692
2651
|
}
|
|
2693
|
-
`,
|
|
2652
|
+
`,Gn=Ce.div`
|
|
2694
2653
|
display: flex;
|
|
2695
2654
|
align-items: center;
|
|
2696
2655
|
gap: 8px;
|
|
2697
|
-
`,
|
|
2656
|
+
`,Qn=Ce.div`
|
|
2698
2657
|
padding: 8px 16px;
|
|
2699
|
-
`,
|
|
2658
|
+
`,Xn=Ce.div`
|
|
2700
2659
|
margin-bottom: 12px;
|
|
2701
2660
|
width: 100%;
|
|
2702
|
-
`,
|
|
2661
|
+
`,Kn=Ce.div``,$n=Ce.div`
|
|
2703
2662
|
margin-bottom: 16px;
|
|
2704
|
-
`,
|
|
2663
|
+
`,Yn=Ce.div`
|
|
2705
2664
|
display: flex;
|
|
2706
2665
|
flex-wrap: wrap;
|
|
2707
2666
|
row-gap: 16px;
|
|
2708
|
-
${
|
|
2667
|
+
${we.tdUp} {
|
|
2709
2668
|
align-items: center;
|
|
2710
2669
|
column-gap: 24px;
|
|
2711
2670
|
}
|
|
2712
|
-
|
|
2671
|
+
`,Jn=Ce.a`
|
|
2713
2672
|
display: flex;
|
|
2714
2673
|
align-items: center;
|
|
2715
2674
|
gap: 16px;
|
|
2716
|
-
${
|
|
2675
|
+
${we.mbDown} {
|
|
2717
2676
|
width: 100%;
|
|
2718
2677
|
justify-content: space-between;
|
|
2719
2678
|
}
|
|
2720
|
-
`,
|
|
2679
|
+
`,ei=Ce.div`
|
|
2721
2680
|
display: flex;
|
|
2722
2681
|
align-items: center;
|
|
2723
2682
|
gap: 16px;
|
|
2724
|
-
`,
|
|
2683
|
+
`,ti=Ce.div`
|
|
2725
2684
|
border-radius: ${e=>e.theme.borderRadius};
|
|
2726
2685
|
overflow: hidden;
|
|
2727
2686
|
width: 48px;
|
|
@@ -2731,18 +2690,18 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2731
2690
|
width: 100%;
|
|
2732
2691
|
height: 100%;
|
|
2733
2692
|
}
|
|
2734
|
-
`,
|
|
2693
|
+
`,ai=({categories:e})=>{const{t:t}=E(),{data:{locale:a,env:{isMarryBaby:n}}}=i(z),l=Fe(a,n);return o.createElement(Kn,null,o.createElement($n,null,o.createElement(ve,{tag:"h6",as:"h5"},t("cardReply.recommentCategories.heading"))),o.createElement(Yn,null,e.map((e=>o.createElement(Jn,{href:l+e.permalink,key:String(e.termId),target:"_blank"},o.createElement(ei,null,o.createElement(ti,null,o.createElement("img",{src:e.featureImage||M.getAssetPath(n?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName})),o.createElement(x,{size:"s3",type:"bold"},e.displayName)),o.createElement(Ae.ArrowRight,{size:20,color:k.colors.gray400}))))))},oi=Ce.a`
|
|
2735
2694
|
padding: 12px 0;
|
|
2736
2695
|
display: flex;
|
|
2737
2696
|
flex-direction: column;
|
|
2738
2697
|
gap: 8px;
|
|
2739
|
-
border-top: 1px solid ${
|
|
2698
|
+
border-top: 1px solid ${k.colors.neutral100};
|
|
2740
2699
|
text-decoration: none;
|
|
2741
2700
|
|
|
2742
2701
|
&:first-child {
|
|
2743
2702
|
border-top: 0;
|
|
2744
2703
|
}
|
|
2745
|
-
`,
|
|
2704
|
+
`,ni=Ce.div``,ii=({postTitle:e,articleReviewed:t,modifiedTime:a,href:n})=>{const{t:i}=E(),l=(()=>{const{expert:e,editor:a,is_author:o}=t;if(e){const t={name:e.display_name,role:"expert",avatar:e.avatar};return o?Object.assign({title:i("articleAuthor.title.written-by")},t):"expert"===e.role?Object.assign({title:i("articleAuthor.title.expert")},t):Object.assign({title:i("articleAuthor.title.medical")},t)}if(a)return{title:i("articleAuthor.title.fact-check"),name:a.display_name,avatar:a.avatar}})();return o.createElement(oi,{href:n,title:e,target:"_blank"},o.createElement(x,{size:"s3",as:"h5",type:"bold"},e),o.createElement(ni,null,o.createElement(ia,{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(ia.SubTextRow,null,o.createElement(ia.SubText,null,null==l?void 0:l.title," ",o.createElement("span",{style:{color:k.colors.gray800}},null==l?void 0:l.name)),o.createElement(ia.SubDivider,null),o.createElement(ia.SubText,null,a)))))};var li="F4mmgSy",ri="A7QrQ7A";const si=a=>{var{listUrl:n,categorySlug:i,editMode:r,onListChange:c}=a,d=t(a,["listUrl","categorySlug","editMode","onListChange"]);const{t:m}=E(),[p,u]=l(n||[]),[g,h]=l([]),[v,b]=l([]),[y,C]=l(!1);s((()=>{e(void 0,void 0,void 0,(function*(){C(!0);const e=p.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=>B(e.isMarrySite?ee(Q.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):G(Q.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],a=yield Promise.all(t);h(a.map(((t,a)=>{var o,n;return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.post)&&Object.assign(Object.assign({},me(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.post)),{href:e[a].href})})).filter(Boolean)),C(!1)}))}),[]),s((()=>{0===(null==g?void 0:g.length)&&i&&e(void 0,void 0,void 0,(function*(){var e;const t=yield B(G(Q.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0),"GET");(null==t?void 0:t.data)&&b([pe(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[g]);return s((()=>{null==c||c(p)}),[p]),o.createElement("div",Object.assign({},d),!r&&o.createElement(_n,null,o.createElement("img",{className:"icon",src:M.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"}}),o.createElement(x,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:m("cardReply.disclaimer")}})),y?o.createElement(He,null):g.length>0||r?o.createElement(qn,null,o.createElement(f,{defaultValue:"accordion",styles:{control:{padding:"16px",border:`1px solid ${k.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${k.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:o.createElement("div",{className:ri},o.createElement(un,{color:k.colors.gray600,size:20}))},o.createElement(f.Item,{value:"accordion"},o.createElement(f.Control,null,o.createElement("div",{className:li},o.createElement(ve,{as:"h4",tag:"h6"},m("cardReply.source")))),o.createElement(f.Panel,null,o.createElement(Qn,null,(g||[]).map(((e,t)=>o.createElement(Gn,{key:String(t)},"object"==typeof e?o.createElement(ii,Object.assign({},e)):o.createElement(Xn,null,o.createElement(ue,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{u((a=>{const o=[...a];return o[t]=e,o})),h((a=>{const o=[...a];return o[t]=e,o}))}})),r&&o.createElement(w,{size:"md",color:"transparent",icon:o.createElement(Ae.Trash,null),onClick:()=>(e=>{u((t=>{const a=[...t];return a.splice(e,1),a})),h((t=>{const a=[...t];return a.splice(e,1),a}))})(t)})))),r&&o.createElement(w,{className:"add-link",color:"transparent",size:"md",icon:o.createElement(Ae.Plus,{color:k.colors.primaryBase,size:18}),onClick:()=>{u((e=>[...e,""])),h((e=>[...e,""]))}},"Add source")))))):o.createElement(ai,{categories:v}))},ci=Ce.div`
|
|
2746
2705
|
position: relative;
|
|
2747
2706
|
margin-bottom: 0;
|
|
2748
2707
|
background: white;
|
|
@@ -2760,7 +2719,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2760
2719
|
width: 40px;
|
|
2761
2720
|
height: 40px;
|
|
2762
2721
|
font-size: 20px;
|
|
2763
|
-
${
|
|
2722
|
+
${we.mbDown} {
|
|
2764
2723
|
width: 32px;
|
|
2765
2724
|
height: 32px;
|
|
2766
2725
|
font-size: 16px;
|
|
@@ -2865,12 +2824,12 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2865
2824
|
}
|
|
2866
2825
|
|
|
2867
2826
|
margin-left: 56px;
|
|
2868
|
-
${
|
|
2827
|
+
${we.mbDown} {
|
|
2869
2828
|
margin-left: 40px;
|
|
2870
2829
|
}
|
|
2871
2830
|
> .post-author {
|
|
2872
2831
|
margin-left: -56px;
|
|
2873
|
-
${
|
|
2832
|
+
${we.mbDown} {
|
|
2874
2833
|
margin-left: -40px;
|
|
2875
2834
|
}
|
|
2876
2835
|
.author-info {
|
|
@@ -2888,7 +2847,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2888
2847
|
width: 40px;
|
|
2889
2848
|
height: 40px;
|
|
2890
2849
|
font-size: 20px;
|
|
2891
|
-
${
|
|
2850
|
+
${we.mbDown} {
|
|
2892
2851
|
width: 24px;
|
|
2893
2852
|
height: 24px;
|
|
2894
2853
|
font-size: 12px;
|
|
@@ -2901,7 +2860,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2901
2860
|
width: 40px;
|
|
2902
2861
|
height: 40px;
|
|
2903
2862
|
font-size: 20px;
|
|
2904
|
-
${
|
|
2863
|
+
${we.mbDown} {
|
|
2905
2864
|
width: 24px;
|
|
2906
2865
|
height: 24px;
|
|
2907
2866
|
font-size: 12px;
|
|
@@ -2929,19 +2888,19 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2929
2888
|
.post-content-wrapper {
|
|
2930
2889
|
padding-top: 0;
|
|
2931
2890
|
padding-bottom: 0;
|
|
2932
|
-
${
|
|
2891
|
+
${we.mbDown} {
|
|
2933
2892
|
padding-left: 0.5rem;
|
|
2934
2893
|
}
|
|
2935
2894
|
}
|
|
2936
2895
|
|
|
2937
|
-
${
|
|
2896
|
+
${we.mbDown} {
|
|
2938
2897
|
margin-bottom: 12px;
|
|
2939
2898
|
}
|
|
2940
2899
|
}
|
|
2941
|
-
`,
|
|
2900
|
+
`,di=Ce(si)`
|
|
2942
2901
|
margin-top: 12px;
|
|
2943
2902
|
padding: 0.5rem 1rem 1rem;
|
|
2944
|
-
`;var ci="-dzIuHr";const di=({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(v,{className:`${ci} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(ke.Endorse,{isSolid:!0,size:18,color:y.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement($t,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(On,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))},mi=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:h,hasQuickBookingEnable:b,handleMakeAppointment:f,cardAuthorProps:x,maxChars:y=600,disableShortenContent:E})=>{var C,k,N,A,L,T,I,P,M,F,O,V;const{data:{locale:U,userInfo:W,env:{isMarryBaby:Z}}}=i(S),{t:H}=w(),[q,G]=l(n||null),{id:_,countReplies:X,countLikes:K,content:$,createdAt:Y,replies:J=[],images:ee=[],author:te,liked:ae,link:ne,mentionedUser:ie,mentions:le}=q,{text:re,replyingTo:se}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})($),{authActionWrapper:ce}=Fe({_joinCommunityIds:[null===(C=null==u?void 0:u.community)||void 0===C?void 0:C.id],_joinTopicIds:null===(k=null==u?void 0:u.topics)||void 0===k?void 0:k.map((e=>e.id))}),[de,me]=l(4),pe=!!(null==W?void 0:W.id)&&(null==J?void 0:J.some((e=>e.author.id===W.id))),ue=e=>{G((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}))},[ge,he]=l(!1),ve=c((()=>"comment"===r&&J&&0!=J.length?J.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):J),[r,J]),be=(null==J?void 0:J.length)||0,fe=String(null==te?void 0:te.email)&&(null==W?void 0:W.email)&&String(null==te?void 0:te.email)===String(null==W?void 0:W.email),we=(null==te?void 0:te.name)||(null==te?void 0:te.username)||"",xe=(null==te?void 0:te.username)||(null==te?void 0:te.name)||"",ye=null==te?void 0:te.avatar,Ee=(null==u?void 0:u.isAnonymous)||null==te?void 0:te.role,Ce=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(N=null==u?void 0:u.author)||void 0===N?void 0:N.id)||0,name:H("cardPost.anonymous")}]:[],...le||[]],[ke,Ne]=l(null),[Ae,Le]=l(null);s((()=>{if(null==te?void 0:te.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(R(D.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:Ie[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ne(null==a?void 0:a._data.branch)}));t(te.hospitalId)}if(null==te?void 0:te.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(R(D.GET_DOCTOR_INFO,{doctorId:t,website_url:Ie[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Le(null==a?void 0:a._data.doctor)}));t(te.doctorId)}}),[te.hospitalId,te.doctorId]);const Te=(null==Ae?void 0:Ae.valid_outpatient)||(null==Ae?void 0:Ae.valid_telemedicine),Se=((null==ke?void 0:ke.total_available_service)||(null==ke?void 0:ke.total_available_doctor))>0,Pe=b&&(Te||Se),Me="chatbot"===(null===(A=null==q?void 0:q.author)||void 0===A?void 0:A.type);return o.createElement(Be,{defaultParams:{_joinCommunityIds:[null===(L=null==u?void 0:u.community)||void 0===L?void 0:L.id],_joinTopicIds:null===(T=null==u?void 0:u.topics)||void 0===T?void 0:T.map((e=>e.id))}},o.createElement(ri,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":Z,"data-has-booking":Pe},"reply"===r&&o.createElement(oe,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(oa,Object.assign({avatar:ye,name:we,username:xe,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(fe?"with-popover":""),type:r,userId:null==te?void 0:te.id,role:Ee,expertId:null==te?void 0:te.partnerId,title:null==te?void 0:te.title,doctorId:null==te?void 0:te.doctorId,hospitalId:null==te?void 0:te.hospitalId,hasQuickBooking:Pe,handleMakeAppointment:f,isAnonymous:!!(null==u?void 0:u.isAnonymous),hideBackground:Me,userType:null==te?void 0:te.type},x)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&o.createElement(di,{title:null===(I=null==q?void 0:q.userVerify)||void 0===I?void 0:I.title,name:null===(P=null==q?void 0:q.userVerify)||void 0===P?void 0:P.name,userId:null===(M=null==q?void 0:q.userVerify)||void 0===M?void 0:M.id,role:null===(F=null==q?void 0:q.userVerify)||void 0===F?void 0:F.role,avatar:null===(O=null==q?void 0:q.userVerify)||void 0===O?void 0:O.avatar,className:"verify-tag"})),o.createElement(bo,{className:"post-content-wrapper",replyingTo:se,mentionedUser:ie,description:re,mentions:Ce,maxChars:y,disableShortenContent:E}),o.createElement("span",null),o.createElement("span",null),ee&&ee.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Vo,{images:ee,authorName:null==te?void 0:te.username})):null,ee&&0!==ee.length||!ne?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(Ue,{url:ne})),"most-engaging"!==r?o.createElement(o.Fragment,null,Me&&o.createElement(si,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),o.createElement(Je,{type:_e.reply,loveCount:K,replyCount:be,className:"post-reaction",liked:ae,isReplied:pe,hideCommentIcon:"reply"===r||Me,hasShare:!1,onCommentClick:()=>ce((()=>he((e=>!e)))),onCommentCountClick:()=>ce((()=>{he(!0)})),onLikeClick:()=>ce((()=>e(void 0,void 0,void 0,(function*(){if(_){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return Q(j(a?B.COMMENT.LIKE:B.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:_,setLike:!ae,locale:U});1===t.status&&G((e=>Object.assign(Object.assign({},e),{liked:!ae,countLikes:e.countLikes+(ae?-1:1)})))}}))))}),ge&&o.createElement(lo,{replyingId:m||q.id,replyToName:we,isReply:!0,onClose:()=>he(!1),onPostSuccess:e=>{"reply"===r?p&&p(e):ue(e)},post:u,replyingUser:te}),"comment"===r&&J&&J.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(V=null==ve?void 0:ve.slice(0,de))||void 0===V?void 0:V.map((e=>o.createElement(mi,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:_,onPostCommentSuccess:ue,post:u,onDeleteComment:()=>{G((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:f,hasQuickBookingEnable:b}))),be>de&&o.createElement(o.Fragment,null,o.createElement(oe,{className:"top-divider",type:"solid"}),o.createElement(v,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>me((e=>e+4))},H("comment.seeMoreReplies",{count:be-de}),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,fe&&o.createElement(Wn,{onDeleteComment:g,className:"popover",commentId:q.id})))};var pi="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",ui="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",gi="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";const hi=({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(S),{t:f}=w(),[x,y]=l(!1),[E,C]=l(!1),[k,N]=l(!1),{authActionWrapper:A}=Fe(),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(mo,{url:n,text:null==r?void 0:r.title,onClose:()=>N(!1)}),E&&o.createElement(oo,{thumbnail:I.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)&&!x){y(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield Q(j(B.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}y(!1)}})),onClose:()=>C(!1)}),o.createElement(st,{className:c,toggleButtonContent:o.createElement("img",{src:v?Rn:Dn}),position:"bottom",align:"end",buttonProps:{isLoading:x},data:L?{isShowheader:!1,type:"list",list:[{icon:gi,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:Un,label:f("actionPopover.delete"),onClick:()=>{A((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:gi,label:f("morePopover.share"),onClick:()=>N(!0)},{icon:(null==r?void 0:r.bookmarked)?pi:ui,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 Q(j(B.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:ui}),m&&m()):b({title:"",message:"Remove failed",type:"danger",displayIcon:ui})}else{const e=yield Q(j(B.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:pi}),d&&d()):b({title:"",message:"Post saved failed",type:"danger",displayIcon:ui})}}))))}},{icon:uo,label:f("morePopover.report"),subTree:{title:f("morePopover.report.title"),description:f("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(Y).map((e=>({label:Y[e].label,reason:Y[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(ho,{reason:e.reasonValue,reasonText:f(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},vi=ye.div`
|
|
2903
|
+
`;var mi="-dzIuHr";const pi=({userId:e,avatar:t,name:a,role:n,title:i,className:r})=>{const{t:s}=E(),[c,d]=l(!1);return o.createElement(o.Fragment,null,o.createElement(w,{className:`${mi} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(Ae.Endorse,{isSolid:!0,size:18,color:k.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(ta,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Rn,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))},ui=({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:x=600,disableShortenContent:y})=>{var C,k,N,A,L,T,I,S,P,M,j,F;const{data:{locale:R,userInfo:D,env:{isMarryBaby:U}}}=i(z),{t:H}=E(),[q,_]=l(n||null),{id:G,countReplies:Q,countLikes:X,content:K,createdAt:Y,replies:J=[],images:ee=[],author:te,liked:ae,link:oe,mentionedUser:ne,mentions:le}=q,{text:re,replyingTo:se}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})(K),{authActionWrapper:ce}=Ue({_joinCommunityIds:[null===(C=null==u?void 0:u.community)||void 0===C?void 0:C.id],_joinTopicIds:null===(k=null==u?void 0:u.topics)||void 0===k?void 0:k.map((e=>e.id))}),[de,me]=l(4),pe=!!(null==D?void 0:D.id)&&(null==J?void 0:J.some((e=>e.author.id===D.id))),ue=e=>{_((t=>{if(!t.replies.find((t=>t.id===e.id))){t.replies.unshift(e);const a=Object.assign(Object.assign({},t),{replies:t.replies.slice(),countReplies:t.countReplies+1});return h&&h(a),a}return t}))},[ge,he]=l(!1),ve=c((()=>"comment"===r&&J&&0!=J.length?J.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):J),[r,J]),fe=(null==J?void 0:J.length)||0,be=String(null==te?void 0:te.email)&&(null==D?void 0:D.email)&&String(null==te?void 0:te.email)===String(null==D?void 0:D.email),we=(null==te?void 0:te.name)||(null==te?void 0:te.username)||"",xe=(null==te?void 0:te.username)||(null==te?void 0:te.name)||"",ye=null==te?void 0:te.avatar,Ee=(null==u?void 0:u.isAnonymous)||null==te?void 0:te.role,Ce=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(N=null==u?void 0:u.author)||void 0===N?void 0:N.id)||0,name:H("cardPost.anonymous")}]:[],...le||[]],[ke,Ne]=l(null),[Ae,Le]=l(null);s((()=>{if(null==te?void 0:te.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield B(W(Z.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:Se[R]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ne(null==a?void 0:a._data.branch)}));t(te.hospitalId)}if(null==te?void 0:te.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield B(W(Z.GET_DOCTOR_INFO,{doctorId:t,website_url:Se[R]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Le(null==a?void 0:a._data.doctor)}));t(te.doctorId)}}),[te.hospitalId,te.doctorId]);const Te=(null==Ae?void 0:Ae.valid_outpatient)||(null==Ae?void 0:Ae.valid_telemedicine),Ie=((null==ke?void 0:ke.total_available_service)||(null==ke?void 0:ke.total_available_doctor))>0,Pe=v&&(Te||Ie),Me="chatbot"===(null===(A=null==q?void 0:q.author)||void 0===A?void 0:A.type);return o.createElement(De,{defaultParams:{_joinCommunityIds:[null===(L=null==u?void 0:u.community)||void 0===L?void 0:L.id],_joinTopicIds:null===(T=null==u?void 0:u.topics)||void 0===T?void 0:T.map((e=>e.id))}},o.createElement(ci,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":U,"data-has-booking":Pe},"reply"===r&&o.createElement(ie,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(ia,Object.assign({avatar:ye,name:we,username:xe,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(be?"with-popover":""),type:r,userId:null==te?void 0:te.id,role:Ee,expertId:null==te?void 0:te.partnerId,title:null==te?void 0:te.title,doctorId:null==te?void 0:te.doctorId,hospitalId:null==te?void 0:te.hospitalId,hasQuickBooking:Pe,handleMakeAppointment:f,isAnonymous:!!(null==u?void 0:u.isAnonymous),hideBackground:Me,userType:null==te?void 0:te.type},b)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&o.createElement(pi,{title:null===(I=null==q?void 0:q.userVerify)||void 0===I?void 0:I.title,name:null===(S=null==q?void 0:q.userVerify)||void 0===S?void 0:S.name,userId:null===(P=null==q?void 0:q.userVerify)||void 0===P?void 0:P.id,role:null===(M=null==q?void 0:q.userVerify)||void 0===M?void 0:M.role,avatar:null===(j=null==q?void 0:q.userVerify)||void 0===j?void 0:j.avatar,className:"verify-tag"})),o.createElement(wo,{className:"post-content-wrapper",replyingTo:se,mentionedUser:ne,description:re,mentions:Ce,maxChars:x,disableShortenContent:y}),o.createElement("span",null),o.createElement("span",null),ee&&ee.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Do,{images:ee,authorName:null==te?void 0:te.username})):null,ee&&0!==ee.length||!oe?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(_e,{url:oe})),"most-engaging"!==r?o.createElement(o.Fragment,null,Me&&o.createElement(di,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),o.createElement(nt,{type:Ye.reply,loveCount:X,replyCount:fe,className:"post-reaction",liked:ae,isReplied:pe,hideCommentIcon:"reply"===r||Me,hasShare:!1,onCommentClick:()=>ce((()=>he((e=>!e)))),onCommentCountClick:()=>ce((()=>{he(!0)})),onLikeClick:()=>ce((()=>e(void 0,void 0,void 0,(function*(){if(G){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return $(O(a?V.COMMENT.LIKE:V.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:G,setLike:!ae,locale:R});1===t.status&&_((e=>Object.assign(Object.assign({},e),{liked:!ae,countLikes:e.countLikes+(ae?-1:1)})))}}))))}),ge&&o.createElement(so,{replyingId:m||q.id,replyToName:we,isReply:!0,onClose:()=>he(!1),onPostSuccess:e=>{"reply"===r?p&&p(e):ue(e)},post:u,replyingUser:te}),"comment"===r&&J&&J.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(F=null==ve?void 0:ve.slice(0,de))||void 0===F?void 0:F.map((e=>o.createElement(ui,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:G,onPostCommentSuccess:ue,post:u,onDeleteComment:()=>{_((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:f,hasQuickBookingEnable:v}))),fe>de&&o.createElement(o.Fragment,null,o.createElement(ie,{className:"top-divider",type:"solid"}),o.createElement(w,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>me((e=>e+4))},H("comment.seeMoreReplies",{count:fe-de}),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,be&&o.createElement(Hn,{onDeleteComment:g,className:"popover",commentId:q.id})))};var gi="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",hi="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",vi="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";const fi=({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(z),{t:b}=E(),[w,x]=l(!1),[y,C]=l(!1),[k,N]=l(!1),{authActionWrapper:A}=Ue(),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(uo,{url:n,text:null==r?void 0:r.title,onClose:()=>N(!1)}),y&&o.createElement(io,{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)&&!w){x(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield $(O(V.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(ut,{className:c,toggleButtonContent:o.createElement("img",{src:v?Un:Wn}),position:"bottom",align:"end",buttonProps:{isLoading:w},data:L?{isShowheader:!1,type:"list",list:[{icon:vi,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:Zn,label:b("actionPopover.delete"),onClick:()=>{A((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:vi,label:b("morePopover.share"),onClick:()=>N(!0)},{icon:(null==r?void 0:r.bookmarked)?gi:hi,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 $(O(V.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:hi}),m&&m()):f({title:"",message:"Remove failed",type:"danger",displayIcon:hi})}else{const e=yield $(O(V.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:gi}),d&&d()):f({title:"",message:"Post saved failed",type:"danger",displayIcon:hi})}}))))}},{icon:ho,label:b("morePopover.report"),subTree:{title:b("morePopover.report.title"),description:b("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(te).map((e=>({label:te[e].label,reason:te[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(fo,{reason:e.reasonValue,reasonText:b(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},bi=Ce.div`
|
|
2945
2904
|
position: relative;
|
|
2946
2905
|
margin-bottom: 24px;
|
|
2947
2906
|
background: white;
|
|
@@ -2951,7 +2910,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2951
2910
|
text-decoration: none;
|
|
2952
2911
|
}
|
|
2953
2912
|
|
|
2954
|
-
${
|
|
2913
|
+
${we.mbDown} {
|
|
2955
2914
|
margin-bottom: 8px;
|
|
2956
2915
|
}
|
|
2957
2916
|
&.flat-top {
|
|
@@ -2974,7 +2933,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
2974
2933
|
width: 40px;
|
|
2975
2934
|
height: 40px;
|
|
2976
2935
|
font-size: 20px;
|
|
2977
|
-
${
|
|
2936
|
+
${we.mbDown} {
|
|
2978
2937
|
width: 32px;
|
|
2979
2938
|
height: 32px;
|
|
2980
2939
|
font-size: 16px;
|
|
@@ -3030,7 +2989,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
3030
2989
|
}
|
|
3031
2990
|
&[data-most-engaging='true'] {
|
|
3032
2991
|
border: none;
|
|
3033
|
-
${
|
|
2992
|
+
${we.mbDown} {
|
|
3034
2993
|
margin: 1rem;
|
|
3035
2994
|
border: 1px solid #e4e8ec;
|
|
3036
2995
|
}
|
|
@@ -3078,7 +3037,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
3078
3037
|
.popover-menu__btn {
|
|
3079
3038
|
width: 24px;
|
|
3080
3039
|
height: 24px;
|
|
3081
|
-
${
|
|
3040
|
+
${we.mbDown} {
|
|
3082
3041
|
width: 18px;
|
|
3083
3042
|
height: 18px;
|
|
3084
3043
|
}
|
|
@@ -3090,7 +3049,7 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
3090
3049
|
right: 1rem;
|
|
3091
3050
|
}
|
|
3092
3051
|
width: 350px;
|
|
3093
|
-
${
|
|
3052
|
+
${we.mbDown} {
|
|
3094
3053
|
max-width: calc(320px - 2rem);
|
|
3095
3054
|
}
|
|
3096
3055
|
}
|
|
@@ -3112,8 +3071,8 @@ import{a as e,_ as t}from"./tslib.es6-d95a42ea.js";import*as a from"react";impor
|
|
|
3112
3071
|
transform: translateX(-50%);
|
|
3113
3072
|
}
|
|
3114
3073
|
}
|
|
3115
|
-
${
|
|
3074
|
+
${we.mbDown} {
|
|
3116
3075
|
margin-bottom: 12px;
|
|
3117
3076
|
}
|
|
3118
3077
|
}
|
|
3119
|
-
`,
|
|
3078
|
+
`,wi=(t,a)=>e(void 0,void 0,void 0,(function*(){var e,o,n;const i=yield ae(O(V.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]})),xi=({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:x,showInputComment:y,InlineCommentsComponent:k,hasQuickBookingEnable:N,handleMakeAppointment:A,cardAuthorProps:L})=>{const[T,I]=l(f),[S,P]=l(!1),[M,j]=l(b),{community:F,topics:U,author:q,slug:_,isPin:G,liked:Q,scheduleDateTime:X,createdAt:K,photos:Y,mentions:J,title:ee,description:te,previewUrl:ae,likesCount:oe,commentsCount:ne,id:ie,commented:le}=T,{data:{locale:re,env:{isMarryBaby:se,togetherBasePath:ce}},action:{pushNotifications:de}}=i(z),{t:me}=E(),[pe,ue]=l(y),ge=`${ce}/${(null==F?void 0:F.slug)||"_"}/${_||""}`,he=`${D(re)}${ge}`,{authActionWrapper:fe}=Ue((null==F?void 0:F.slug)?{_joinCommunityIds:[F.id],_joinTopicIds:null==U?void 0:U.map((e=>e.id))}:void 0),[be,we]=l(!1);s((()=>{ue(y)}),[y]);const xe=(null==q?void 0:q.name)||(null==q?void 0:q.username)||"",ye=(null==q?void 0:q.username)||(null==q?void 0:q.name)||"",Ee=null==q?void 0:q.avatar,Ce=(null==T?void 0:T.isAnonymous)||null==q?void 0:q.role,[ke,Ne]=l(null),[Ae,Le]=l(null);s((()=>{if(null==q?void 0:q.hospitalId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield B(W(Z.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:H[re]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ne(null==a?void 0:a._data.branch)})))(q.hospitalId)}if(null==q?void 0:q.doctorId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield B(W(Z.GET_DOCTOR_INFO,{doctorId:t,website_url:H[re]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Le(null==a?void 0:a._data.doctor)})))(q.doctorId)}}),[q.hospitalId,q.doctorId]);const Te=(null==Ae?void 0:Ae.valid_outpatient)||(null==Ae?void 0:Ae.valid_telemedicine),Ie=((null==ke?void 0:ke.total_available_service)||(null==ke?void 0:ke.total_available_doctor))>0,Se=N&&(Te||Ie);s((()=>{e(void 0,void 0,void 0,(function*(){if(ie&&ne&&r&&!(null==b?void 0:b.id)){const e=yield wi(ie,re);j(e)}}))}),[ie,re,ne,r,null==b?void 0:b.id]),s((()=>{j(b)}),[null==b?void 0:b.id]);const Pe=t=>e(void 0,void 0,void 0,(function*(){if(ne>1&&(null==M?void 0:M.id)&&(null==M?void 0:M.id)===(null==t?void 0:t.id)){const e=yield wi(ie,re);j(e)}I((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),x&&x(t)}));return o.createElement(De,{defaultParams:(null==F?void 0:F.slug)?{_joinCommunityIds:[F.id],_joinTopicIds:null==U?void 0:U.map((e=>e.id))}:void 0},S&&o.createElement(uo,{url:he,avatar:R,text:ee,onClose:()=>P(!1)}),o.createElement(bi,{className:t,style:a,"data-is-marrybaby":se},G?o.createElement(ct,{className:"post-pin"}):null,o.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},o.createElement(ia,Object.assign({avatar:Ee,name:xe,username:ye,url:u?void 0:ge,community:F,timeText:null==T?void 0:T.createdTime,className:"post-author",role:Ce,userId:null==q?void 0:q.id,expertId:null==q?void 0:q.partnerId,doctorId:null==q?void 0:q.doctorId,hospitalId:null==q?void 0:q.hospitalId,title:null==q?void 0:q.title,hasQuickBooking:Se,handleMakeAppointment:A,"data-testid":"name",isAnonymous:!!(null==T?void 0:T.isAnonymous),extendEle:o.createElement(fi,{authorEmail:String(null==q?void 0:q.email),onDeletePost:h,shareUrl:he,post:T,className:"popover",onEditPost:v})},L))),o.createElement("a",{href:u?void 0:ge,className:"post-content-link-wrapper"},ee&&o.createElement(ve,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},C(ee)),o.createElement(wo,{className:"post-content-wrapper",description:te,disableShortenContent:g,mentions:J,"data-testid":"Content of the Post"})),o.createElement("span",null),o.createElement("span",null),o.createElement("div",{key:"tag-topic"},U&&U.length>0?o.createElement(lt,{topics:U,className:"post-topics"}):null),o.createElement("div",{key:"social-preview"},(null==T?void 0:T.introUrl)?o.createElement("div",{className:"social-preview-wrapper "+((null==Y?void 0:Y.length)?"has-image":"")},o.createElement(Wo,{url:T.introUrl,image:T.bannerImage})):null),o.createElement("div",{key:"image-preview"},(null==Y?void 0:Y.length)?o.createElement("div",{className:"image-preview-wrapper"},o.createElement(Do,{images:Y,authorName:null==q?void 0:q.name})):null),o.createElement("div",{key:"link-preview"},(null==T?void 0:T.introUrl)||(null==Y?void 0:Y.length)||!(null==ae?void 0:ae.url)?null:o.createElement("div",{className:"link-preview-wrapper"},o.createElement(_e,{title:ae.title,url:ae.url,image:ae.image}))),o.createElement(nt,{isMarryBaby:se,type:Ye.post,loveCount:oe,replyCount:ne,className:"post-reaction "+((null==Y?void 0:Y.length)||(null==ae?void 0:ae.url)?"hide-top-border":""),liked:be?!Q:Q,isReplied:le,onCommentClick:()=>fe((()=>{c?c():ue((e=>!e))})),onCommentCountClick:()=>{fe((()=>{se?ue(!0):d?d():!u&&(window.location.href=ge)}))},onShareClick:()=>{P(!0)},onLikeClick:()=>e(void 0,void 0,void 0,(function*(){if(ie&&!be){we(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield $(O(V.POST.LIKE,{id:t,_locale:a}),"GET")})))({id:ie,locale:re});1!==(null==t?void 0:t.status)?de(la(me)):I((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){de(la(me))}we(!1)}})),showingMostEngaging:!(!r||!(null==M?void 0:M.id))}),pe&&o.createElement(so,{isMainCmt:!y,onClose:()=>ue(!1),onPostSuccess:e=>{0!==ne||(null==M?void 0:M.id)||j(e),I((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=ge}},o.createElement(ui,{hasQuickBookingEnable:N,handleMakeAppointment:A,comment:M,post:T,onDeleteComment:()=>{Pe&&Pe(M)},className:"most-engaging-comment",type:"most-engaging",key:M.id,cardAuthorProps:L}),ne>1&&!n&&o.createElement(w,{className:"see-more-comments",color:"ghost",size:"md"},me("comment.seeMoreComments",{count:ne-1}))):null,k))};var yi=Object.freeze({__proto__:null});export{On as A,bn as B,_e as C,xi as D,fi as E,ui as F,Hn as G,pt as H,so as I,si as J,Ve as K,He as L,io as P,uo as S,Re as T,pi as V,De as a,nt as b,lt as c,st as d,ct as e,vt as f,ia as g,Ja as h,Za as i,_a as j,qt as k,Vt as l,Kt as m,Qa as n,oo as o,fo as p,po as q,wo as r,Lo as s,yi as t,Ue as u,jo as v,Do as w,Wo as x,ta as y,Rn as z};
|