@hhgtech/hhg-components 1.28.57 → 1.28.59
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/{Plus-29cf93ab.js → Plus-155fd41f.js} +1 -1
- package/build/{WhatsApp-0328afb7.js → WhatsApp-cbd2b870.js} +1 -1
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/{constants-accf73ad.js → constants-5f9a141f.js} +1 -1
- package/build/{constants-6df0e996.js → constants-6a8e6824.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-74527c16.js → core-b543f933.js} +1 -1
- package/build/{dataTransform-90c60ebb.js → dataTransform-9d1496b9.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/{Plus-f7c5618a.js → Plus-0795a68c.js} +1 -1
- package/build/esm/{WhatsApp-712a2952.js → WhatsApp-c7fd561d.js} +1 -1
- package/build/esm/babyGrowth.js +5 -5
- 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-0025e49b.js → constants-7b7e7784.js} +1 -1
- package/build/esm/{constants-2b9cc123.js → constants-d7aa1c1c.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-7df57a7b.js → core-87a3d383.js} +1 -1
- package/build/esm/{dataTransform-0387e8b3.js → dataTransform-9c92d261.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-f55ca837.js +1 -0
- package/build/esm/{getSocialList-73f474a8.js → getSocialList-be651baf.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-bd2dfaf4.js → index-03b6469c.js} +4 -4
- package/build/esm/{index-47defc94.js → index-09d9862b.js} +1 -1
- package/build/esm/index-0ce3ea30.js +113 -0
- package/build/esm/{index-11ddf8b9.js → index-1c858659.js} +1 -1
- package/build/esm/index-36467b48.js +1 -0
- package/build/esm/index-404bb127.js +1 -0
- package/build/esm/{index-ef286146.js → index-417dbb92.js} +1 -1
- package/build/esm/{index-0aa85299.js → index-47ab8d3d.js} +1 -1
- package/build/esm/index-47b11c19.js +1 -0
- package/build/esm/{index-bd890b36.js → index-4fa69484.js} +1 -1
- package/build/esm/{index-7bc42cef.js → index-5222461b.js} +1 -1
- package/build/esm/{index-3fcc7de2.js → index-5db9b9d7.js} +9 -9
- package/build/esm/{index-75ae81a1.js → index-64dc6b83.js} +1 -1
- package/build/esm/{index-6a968a24.js → index-77b369f0.js} +1 -1
- package/build/esm/{index-449bd04b.js → index-88f24735.js} +1 -1
- package/build/esm/{index-1979f711.js → index-a9cbc4b7.js} +1 -1
- package/build/esm/index-b6c758c5.js +2748 -0
- package/build/esm/{index-cbeaabc6.js → index-bfb36e6c.js} +1 -1
- package/build/esm/{index-49571e2c.js → index-cce4d6b6.js} +150 -150
- package/build/esm/{index-ac8ebb4a.js → index-ed7346f2.js} +1 -1
- package/build/esm/{index-495ffaf3.js → index-f047d212.js} +1 -1
- package/build/esm/{index-7ab2dba5.js → index-f76eef86.js} +1 -1
- package/build/esm/{index-27926bb9.js → index-fe314c0f.js} +2 -2
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-f2aff174.js → index.styled-500647b4.js} +1 -1
- package/build/esm/{index.styles-3ff4ce8e.js → index.styles-fa4052da.js} +1 -1
- package/build/esm/lead/index.d.ts +2 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +3 -3
- package/build/esm/pwg.js +2 -2
- package/build/esm/{routing-c72cf84b.js → routing-7c6d65ae.js} +1 -1
- package/build/esm/subot.js +1 -1
- package/build/esm/together/components/atoms/cardReactions/element/index.d.ts +6 -5
- package/build/esm/together/components/atoms/cardReactions/index.d.ts +3 -3
- package/build/esm/together/components/molecules/cardAuthor/authorBadgeItem/index.d.ts +3 -0
- package/build/esm/together/components/molecules/cardAuthor/authorBadgeItem/index.styles.d.ts +8 -0
- package/build/esm/together/components/molecules/cardAuthor/context.d.ts +13 -0
- package/build/esm/together/components/molecules/cardAuthor/displayName.d.ts +2 -0
- package/build/esm/together/components/molecules/cardAuthor/index.d.ts +12 -13
- package/build/esm/together/components/molecules/cardAuthor/index.styles.d.ts +0 -1
- package/build/esm/together/interfaces/types.d.ts +6 -0
- package/build/esm/together.js +1 -1
- package/build/esm/{types-65d7416d.js → types-8e137b89.js} +202 -202
- package/build/esm/{types-b1b4d47c.js → types-a8c76d05.js} +22 -22
- package/build/esm/types.js +1 -1
- package/build/esm/useCategory-21a9ba33.js +1 -0
- package/build/esm/{useHealthToolCache-251daff3.js → useHealthToolCache-148be933.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-4a1e0e57.js → usePlacesAutocomplete-96e52ce9.js} +1 -1
- package/build/esm/useTranslations-78d82c21.js +1 -0
- package/build/esm/{utils-f11e41fe.js → utils-3e125f1e.js} +2 -2
- package/build/esm/utils-5af9dad1.js +1 -0
- package/build/esm/{utils-0f6dd8a5.js → utils-f842970f.js} +1 -1
- package/build/esm/vaccination.js +3 -3
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-c60e68fa.js → getDynamicHealthTool-c3acf06a.js} +1 -1
- package/build/{getSocialList-630891ed.js → getSocialList-3e010454.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-84d7415b.js → index-046ee378.js} +3 -3
- package/build/{index-ea138477.js → index-14cdaffe.js} +1 -1
- package/build/{index-c9f86bff.js → index-222727c4.js} +171 -171
- package/build/{index-98bbfe57.js → index-296a0b5b.js} +1 -1
- package/build/index-2deaed20.js +113 -0
- package/build/{index-7d061022.js → index-30443c6e.js} +1 -1
- package/build/{index-c3fd1632.js → index-3f91ded6.js} +1 -1
- package/build/{index-3ead4f3b.js → index-48bcbf86.js} +1 -1
- package/build/{index-2ef72538.js → index-6f106161.js} +1 -1
- package/build/index-7feececd.js +1 -0
- package/build/{index-af31de20.js → index-80fbf9a2.js} +1 -1
- package/build/{index-03f3ee56.js → index-8199c76f.js} +1 -1
- package/build/{index-c070fdfc.js → index-86439785.js} +1 -1
- package/build/index-ae905846.js +1 -0
- package/build/{index-03b6e1bc.js → index-ba567cf6.js} +1 -1
- package/build/{index-61501e74.js → index-bbdde6e0.js} +1 -1
- package/build/{index-4af93720.js → index-e0c87872.js} +1 -1
- package/build/{index-be9cca2e.js → index-e4d32d14.js} +1 -1
- package/build/{index-8da5271e.js → index-eca857bd.js} +1 -1
- package/build/{index-3893e92a.js → index-f39724a1.js} +2 -2
- package/build/{index-fec5e458.js → index-f6cc5b05.js} +2 -2
- package/build/index-fecb8f45.js +2748 -0
- package/build/{index-4b4621fc.js → index-ffd92aea.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-c87d00c0.js → index.styled-3811edd9.js} +1 -1
- package/build/{index.styles-0f69a584.js → index.styles-b34ee290.js} +5 -5
- package/build/lead/index.d.ts +2 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-2fc7c708.js → routing-29d56eb6.js} +1 -1
- package/build/subot.js +1 -1
- package/build/together/components/atoms/cardReactions/element/index.d.ts +6 -5
- package/build/together/components/atoms/cardReactions/index.d.ts +3 -3
- package/build/together/components/molecules/cardAuthor/authorBadgeItem/index.d.ts +3 -0
- package/build/together/components/molecules/cardAuthor/authorBadgeItem/index.styles.d.ts +8 -0
- package/build/together/components/molecules/cardAuthor/context.d.ts +13 -0
- package/build/together/components/molecules/cardAuthor/displayName.d.ts +2 -0
- package/build/together/components/molecules/cardAuthor/index.d.ts +12 -13
- package/build/together/components/molecules/cardAuthor/index.styles.d.ts +0 -1
- package/build/together/interfaces/types.d.ts +6 -0
- package/build/together.js +1 -1
- package/build/{types-9c499972.js → types-341cbbd1.js} +1 -1
- package/build/{types-7e10aa4b.js → types-760db918.js} +70 -70
- package/build/types.js +1 -1
- package/build/useCategory-d3020719.js +1 -0
- package/build/{useHealthToolCache-26767afb.js → useHealthToolCache-728f118d.js} +1 -1
- package/build/{usePlacesAutocomplete-df148a7c.js → usePlacesAutocomplete-07a7b610.js} +1 -1
- package/build/useTranslations-d2cbefef.js +1 -0
- package/build/utils-1a351432.js +1 -0
- package/build/{utils-7b0b950b.js → utils-90cf77ff.js} +1 -1
- package/build/{utils-2424ad70.js → utils-af90797a.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +5 -3
- package/build/esm/getDynamicHealthTool-ae9dd594.js +0 -1
- package/build/esm/index-0e0b9e2d.js +0 -2748
- package/build/esm/index-8389442a.js +0 -1
- package/build/esm/index-a7a6f2f8.js +0 -1
- package/build/esm/index-c83e2c6d.js +0 -1
- package/build/esm/index-d0c1cd58.js +0 -113
- package/build/esm/index-e119a401.js +0 -1
- package/build/esm/useCategory-285c8929.js +0 -1
- package/build/esm/useTranslations-71150e1d.js +0 -1
- package/build/esm/useUniqueId-871437b9.js +0 -1
- package/build/esm/utils-b83897f9.js +0 -1
- package/build/index-33839bf2.js +0 -1
- package/build/index-65b1d890.js +0 -113
- package/build/index-6853c2df.js +0 -1
- package/build/index-6f3496ec.js +0 -2748
- package/build/index-cdf8d22b.js +0 -1
- package/build/useCategory-e37a5113.js +0 -1
- package/build/useTranslations-498d106f.js +0 -1
- package/build/useUniqueId-dcfc3871.js +0 -1
- package/build/utils-f53640d1.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-7c1f442a.js → BMI_BOYS.percentile.monthly-dc83dcf5.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-f35471bd.js → BMI_BOYS.percentile.weekly-e3dff055.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-747fddc8.js → BMI_BOYS.percentile.yearly-7b400a2c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-40ffab15.js → BMI_BOYS.zscore.monthly-22e88be5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-2558df4d.js → BMI_BOYS.zscore.weekly-7254d38e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-c50b7daf.js → BMI_BOYS.zscore.yearly-0ce1987c.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-930cc7b0.js → BMI_GIRLS.percentile.monthly-8f29513e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-abfe88eb.js → BMI_GIRLS.percentile.weekly-b13d593f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-ddb2fc4b.js → BMI_GIRLS.percentile.yearly-53368595.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-b07dabad.js → BMI_GIRLS.zscore.monthly-a453df29.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-7ff3b728.js → BMI_GIRLS.zscore.weekly-6a5afb2f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-23e39370.js → BMI_GIRLS.zscore.yearly-7e400eed.js} +0 -0
- /package/build/{ChevronDown-60dfaf68.js → ChevronDown-e3a06b59.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-49ee9158.js → HEAD CIRCUM_BOYS.percentile.monthly-3bf214c5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-3212dfa3.js → HEAD CIRCUM_BOYS.percentile.weekly-10c63505.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-a0bbf6a0.js → HEAD CIRCUM_BOYS.percentile.yearly-ec027f7c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e091094c.js → HEAD CIRCUM_BOYS.zscore.monthly-4b2f4e10.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-833459f8.js → HEAD CIRCUM_BOYS.zscore.weekly-5a6c7eed.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-1cfbeac4.js → HEAD CIRCUM_BOYS.zscore.yearly-c6d5d99a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-9849f834.js → HEAD CIRCUM_GIRLS.percentile.monthly-f38e143e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-5cb8c830.js → HEAD CIRCUM_GIRLS.percentile.weekly-961e9398.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f57b40e9.js → HEAD CIRCUM_GIRLS.percentile.yearly-fb89c9d5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-79102211.js → HEAD CIRCUM_GIRLS.zscore.monthly-f4be59eb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-4320a2b5.js → HEAD CIRCUM_GIRLS.zscore.weekly-b1435610.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-d122a505.js → HEAD CIRCUM_GIRLS.zscore.yearly-44f4bf7e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-246e47a4.js → HEIGHT_BOYS.percentile.monthly-9d116dae.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-df1d3933.js → HEIGHT_BOYS.percentile.weekly-af5e9330.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-2cf03f10.js → HEIGHT_BOYS.percentile.yearly-84c68900.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-35d6ff9d.js → HEIGHT_BOYS.zscore.monthly-3f6f7a60.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-e5b11239.js → HEIGHT_BOYS.zscore.weekly-191d8a50.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-5055ffc2.js → HEIGHT_BOYS.zscore.yearly-9e6a420d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-b557c0ed.js → HEIGHT_GIRLS.percentile.monthly-edbe76b4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-287247ba.js → HEIGHT_GIRLS.percentile.weekly-9656f527.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-cd0e7ffc.js → HEIGHT_GIRLS.percentile.yearly-d5e9646f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-33433a04.js → HEIGHT_GIRLS.zscore.monthly-7962a30f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-57e0bc18.js → HEIGHT_GIRLS.zscore.weekly-00091ba0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-c8cacc57.js → HEIGHT_GIRLS.zscore.yearly-3f3bdcf2.js} +0 -0
- /package/build/{Subot-52e94ede.js → Subot-da4770e7.js} +0 -0
- /package/build/{Visible-8835941a.js → Visible-bbf989e9.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-3917215a.js → WEIGHT_BOYS.percentile.monthly-0efda3d8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-6eb9a56d.js → WEIGHT_BOYS.percentile.weekly-da0ea954.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-29731535.js → WEIGHT_BOYS.percentile.yearly-f6da0f3e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e3123910.js → WEIGHT_BOYS.zscore.monthly-69b7c7f8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-694662de.js → WEIGHT_BOYS.zscore.weekly-288a675a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-0f990dad.js → WEIGHT_BOYS.zscore.yearly-74aa3f11.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-241403dd.js → WEIGHT_GIRLS.percentile.monthly-c507c65f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-137b3467.js → WEIGHT_GIRLS.percentile.weekly-f08c1806.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-e9aecc7d.js → WEIGHT_GIRLS.percentile.yearly-65e7c887.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-2cff2183.js → WEIGHT_GIRLS.zscore.monthly-545572f3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-0bfd7674.js → WEIGHT_GIRLS.zscore.weekly-0eb78b8f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-9c0a3370.js → WEIGHT_GIRLS.zscore.yearly-f82147f8.js} +0 -0
- /package/build/{animation-ce2ee519.js → animation-6d0e530d.js} +0 -0
- /package/build/{cookieHelper-1bbbf79c.js → cookieHelper-7d59b3e7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-c4a97c9a.js → BMI_BOYS.percentile.monthly-d5a8dcff.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-6339f482.js → BMI_BOYS.percentile.weekly-54a95b85.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-8c1ca6e2.js → BMI_BOYS.percentile.yearly-d2d8b110.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-3a5c8b0d.js → BMI_BOYS.zscore.monthly-0bd50ff3.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-97453c11.js → BMI_BOYS.zscore.weekly-c8593da1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-d9b1265b.js → BMI_BOYS.zscore.yearly-d5005236.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-c05fdcd4.js → BMI_GIRLS.percentile.monthly-e3884907.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-18663de0.js → BMI_GIRLS.percentile.weekly-1ed13a41.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-2f551a4c.js → BMI_GIRLS.percentile.yearly-e718de5e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-9a5c1809.js → BMI_GIRLS.zscore.monthly-358d226f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-23e3fe35.js → BMI_GIRLS.zscore.weekly-fcedba22.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-02d624e8.js → BMI_GIRLS.zscore.yearly-9ca47d29.js} +0 -0
- /package/build/esm/{ChevronDown-bd411290.js → ChevronDown-cc35428e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-6a86e966.js → HEAD CIRCUM_BOYS.percentile.monthly-f7558c8b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-99b4a304.js → HEAD CIRCUM_BOYS.percentile.weekly-7bc35bee.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-af69640c.js → HEAD CIRCUM_BOYS.percentile.yearly-77357f85.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d5a7fdb7.js → HEAD CIRCUM_BOYS.zscore.monthly-2714257f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cdcc57d4.js → HEAD CIRCUM_BOYS.zscore.weekly-62058fcf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1c6c655f.js → HEAD CIRCUM_BOYS.zscore.yearly-65649b30.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a4c62c65.js → HEAD CIRCUM_GIRLS.percentile.monthly-2e8f844b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-72020f04.js → HEAD CIRCUM_GIRLS.percentile.weekly-28edfa4f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-493f7cf8.js → HEAD CIRCUM_GIRLS.percentile.yearly-763567ce.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-066536b9.js → HEAD CIRCUM_GIRLS.zscore.monthly-cf6bb939.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-943658b2.js → HEAD CIRCUM_GIRLS.zscore.weekly-d6db86f2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-15ea58ed.js → HEAD CIRCUM_GIRLS.zscore.yearly-bd3add5c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-1e25737a.js → HEIGHT_BOYS.percentile.monthly-33050dfa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f8c953c4.js → HEIGHT_BOYS.percentile.weekly-790dde30.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-9f8f36d6.js → HEIGHT_BOYS.percentile.yearly-24a1ba96.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-22dc00c5.js → HEIGHT_BOYS.zscore.monthly-68f937ad.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-c7a8ae2b.js → HEIGHT_BOYS.zscore.weekly-5aafe365.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-12815978.js → HEIGHT_BOYS.zscore.yearly-ffefa912.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-2833c123.js → HEIGHT_GIRLS.percentile.monthly-72e94858.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0daf9f5b.js → HEIGHT_GIRLS.percentile.weekly-ce075c84.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4789a7e7.js → HEIGHT_GIRLS.percentile.yearly-ac92e23f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-de7243f8.js → HEIGHT_GIRLS.zscore.monthly-ea49be8c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4918bb2a.js → HEIGHT_GIRLS.zscore.weekly-59da335b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d4fd8ddd.js → HEIGHT_GIRLS.zscore.yearly-b16bfb36.js} +0 -0
- /package/build/esm/{Subot-56771801.js → Subot-e1ee8861.js} +0 -0
- /package/build/esm/{Visible-ace89781.js → Visible-5984bb59.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-264f8b1e.js → WEIGHT_BOYS.percentile.monthly-15ee1673.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b4944551.js → WEIGHT_BOYS.percentile.weekly-fc4985d2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-a8c6c2be.js → WEIGHT_BOYS.percentile.yearly-7fa505f0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4e623320.js → WEIGHT_BOYS.zscore.monthly-d56eab98.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1555670e.js → WEIGHT_BOYS.zscore.weekly-1d371a78.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-b26402ba.js → WEIGHT_BOYS.zscore.yearly-d87e6880.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-984185a1.js → WEIGHT_GIRLS.percentile.monthly-6f53bf1d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b0e99fd4.js → WEIGHT_GIRLS.percentile.weekly-caa0cf1b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-893995ec.js → WEIGHT_GIRLS.percentile.yearly-4c1432b0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-8dc61ee2.js → WEIGHT_GIRLS.zscore.monthly-1628b4dd.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-fe211553.js → WEIGHT_GIRLS.zscore.weekly-b240946e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-87882127.js → WEIGHT_GIRLS.zscore.yearly-f360fff3.js} +0 -0
- /package/build/esm/{animation-3f2b6f75.js → animation-70b8e1f2.js} +0 -0
- /package/build/esm/{cookieHelper-0c215a0b.js → cookieHelper-2017148d.js} +0 -0
- /package/build/esm/{index-7f1f7516.js → index-754b44fc.js} +0 -0
- /package/build/esm/{index-576a616c.js → index-86e92cc0.js} +0 -0
- /package/build/esm/{index-fa5073f3.js → index-cf6580dd.js} +0 -0
- /package/build/esm/{isProduction-6599ce88.js → isProduction-9fe75b7e.js} +0 -0
- /package/build/esm/{localizeNumberFormat-28d92a62.js → localizeNumberFormat-cd2532b2.js} +0 -0
- /package/build/esm/{normalizeLink-7c303f96.js → normalizeLink-bae43899.js} +0 -0
- /package/build/esm/{number-d5c1e150.js → number-07ae3046.js} +0 -0
- /package/build/esm/{paths-a1da3d54.js → paths-be7ff55f.js} +0 -0
- /package/build/esm/{theme-23782329.js → theme-dab2950f.js} +0 -0
- /package/build/esm/{translationsContext-5ab0d4b4.js → translationsContext-5a2101f0.js} +0 -0
- /package/build/esm/{tslib.es6-2cb84ad8.js → tslib.es6-16e6bdc9.js} +0 -0
- /package/build/esm/{types-69671356.js → types-27d242a7.js} +0 -0
- /package/build/esm/{useIsInit-f38f0d5c.js → useIsInit-aa198cba.js} +0 -0
- /package/build/esm/{useOutsideClick-f050c073.js → useOutsideClick-a88e81d5.js} +0 -0
- /package/build/esm/{useScrollbarSize-7f0be029.js → useScrollbarSize-81850e48.js} +0 -0
- /package/build/esm/{utils-1ad4f186.js → utils-f69a5c66.js} +0 -0
- /package/build/{index-ba62d856.js → index-49020afd.js} +0 -0
- /package/build/{index-aaeccb69.js → index-5caececd.js} +0 -0
- /package/build/{index-0790d5ae.js → index-d725f995.js} +0 -0
- /package/build/{isProduction-9e0e9225.js → isProduction-5ee9440e.js} +0 -0
- /package/build/{localizeNumberFormat-c501510d.js → localizeNumberFormat-d05fe4e0.js} +0 -0
- /package/build/{normalizeLink-91646273.js → normalizeLink-069cc041.js} +0 -0
- /package/build/{number-21ab8a99.js → number-b3bfb023.js} +0 -0
- /package/build/{paths-99000104.js → paths-24d6890e.js} +0 -0
- /package/build/{theme-533eba85.js → theme-571f5130.js} +0 -0
- /package/build/{translationsContext-b64cc287.js → translationsContext-dfb5d88d.js} +0 -0
- /package/build/{tslib.es6-0476eed4.js → tslib.es6-94b275ba.js} +0 -0
- /package/build/{types-5c712d9e.js → types-bf4f47c3.js} +0 -0
- /package/build/{useIsInit-2a888094.js → useIsInit-4db83cec.js} +0 -0
- /package/build/{useOutsideClick-3b96ab2e.js → useOutsideClick-51ce49df.js} +0 -0
- /package/build/{useScrollbarSize-bd02c351.js → useScrollbarSize-2e658fb6.js} +0 -0
- /package/build/{utils-381e90c1.js → utils-f2321c70.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import t,{createContext as a,useContext as o,useState as n,useRef as i,useEffect as l,useMemo as r,useCallback as s}from"react";import{T as c,P as d,C as m}from"./Plus-
|
|
1
|
+
import*as e from"react";import t,{createContext as a,useContext as o,useState as n,useRef as i,useEffect as l,useMemo as r,useCallback as s}from"react";import{T as c,P as d,C as m}from"./Plus-0795a68c.js";import"./translationsContext-5a2101f0.js";import"string-format";import{T as p,B as u,g,b as v,d as h,P as b,e as f,f as y,h as w,C as x,i as E,j as C,k,l as N,m as A,A as T,n as z,o as P,M as I,p as S,R as L,q as M,r as j}from"./utils-3e125f1e.js";import{a as B,_ as F}from"./tslib.es6-16e6bdc9.js";import{useMantineTheme as O,Box as R,createStyles as V,Flex as D,rem as U,Checkbox as W,Portal as H,Anchor as Z,Accordion as q,Popover as _}from"@mantine/core";import{D as G}from"./index-fe314c0f.js";import{u as Q,b as X}from"./useTranslations-78d82c21.js";import K from"innertext";import{t as $}from"./theme-dab2950f.js";import{I as Y,A as J,C as ee}from"./index-36467b48.js";import{H as te,I as ae}from"./WhatsApp-c7fd561d.js";import{I as oe,u as ne,B as ie,A as le,a as re,T as se}from"./index-0ce3ea30.js";import"@mantine/dates";import{D as ce,d as de}from"./index-1c858659.js";import{L as me}from"./Subot-e1ee8861.js";import{C as pe}from"./index-5222461b.js";import"@mantine/hooks";import{M as ue,t as ge,c as ve,a as he}from"./utils-f69a5c66.js";import{A as be,a as fe,B as ye,D as we}from"./index-a9cbc4b7.js";import{U as xe,f as Ee,a as Ce,P as ke,b as Ne,c as Ae,e as Te,g as ze}from"./index-5db9b9d7.js";import{I as Pe}from"./index-77b369f0.js";import Ie from"lodash/debounce";import Se from"react-contenteditable";import{B as Le}from"./index-ed7346f2.js";import{H as Me,g as je}from"./index.styles-fa4052da.js";import{d as Be,g as Fe}from"./cookieHelper-2017148d.js";import*as Oe from"react-dom";import Re,{keyframes as Ve}from"styled-components";import{a as De}from"./number-07ae3046.js";import{format as Ue}from"date-fns";import We from"dayjs";import He from"dayjs/plugin/relativeTime";import{M as Ze}from"./index-47b11c19.js";import{g as qe}from"./routing-7c6d65ae.js";import"./constants-d7aa1c1c.js";import"./utils-f842970f.js";import"./index.styled-500647b4.js";import"./index-754b44fc.js";const _e=t=>e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},t),e.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Ge=a({}),Qe=({children:e,defaultParams:a})=>t.createElement(Ge.Provider,{value:{defaultParams:a}},e),Xe=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=o(p),{defaultParams:n}=o(Ge)||{},i=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,o)=>{const r=Object.assign(Object.assign(Object.assign({},n),e),o);if(!i||l){i||Be(u),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=g(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},n),e)}},Ke=Re.div`
|
|
2
2
|
.link-info-container {
|
|
3
3
|
padding: 0.5rem 1rem;
|
|
4
4
|
background: ${e=>e.color||"#f4faff"};
|
|
@@ -58,18 +58,18 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
`,$e=({title:e,url:a,image:r,logo:s,className:d,style:m,noRefetch:u})=>{const{data:{locale:g,env:{isMarryBaby:y}}}=o(p),[w,x]=n(!1),E=O(),C=i(u);C.current=u;const[k,N]=n(null);l((()=>{B(void 0,void 0,void 0,(function*(){if(!C.current){if(!a)return N(null);N((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),v(h(b.FETCH_PREVIEW,{_locale:g}),"POST",{data:{link:a},headers:{"Content-Type":"application/json"}}).then((e=>{var t,o,n;x(!1),N({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((()=>{N(null)}))}}))}),[a]);const A=(null==k?void 0:k.image)||r,T=(null==k?void 0:k.title)||e,z=(null==k?void 0:k.logo)||s,P=(null==k?void 0:k.url)||a,I=P.replace("http://","").replace("https://","").split(/[/?#]/)[0],S=i(!1);return t.createElement(Ke,{"data-is-marrybaby":y,className:`${d} no-replace-click`,style:m,color:E.colors[E.primaryColor][0]},t.createElement("a",{href:P,target:"_blank",rel:"noreferrer"},A&&t.createElement("div",{className:"link-image-wrapper"},!y&&t.createElement("img",{className:"link-image-blur",src:A,onError:e=>{S.current||(S.current=!0,e.currentTarget.src=f)},loading:"lazy"}),t.createElement("img",{className:"link-image",src:A,onError:e=>{S.current||(S.current=!0,e.currentTarget.src=f)},loading:"lazy"})),t.createElement("div",{className:"link-info-container"},t.createElement(c,{size:"n1"},y&&z&&!w&&t.createElement("img",{className:"link-logo",src:z,onError:()=>x(!0),loading:"lazy"}),I),t.createElement(
|
|
61
|
+
`,$e=({title:e,url:a,image:r,logo:s,className:d,style:m,noRefetch:u})=>{const{data:{locale:g,env:{isMarryBaby:y}}}=o(p),[w,x]=n(!1),E=O(),C=i(u);C.current=u;const[k,N]=n(null);l((()=>{B(void 0,void 0,void 0,(function*(){if(!C.current){if(!a)return N(null);N((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),v(h(b.FETCH_PREVIEW,{_locale:g}),"POST",{data:{link:a},headers:{"Content-Type":"application/json"}}).then((e=>{var t,o,n;x(!1),N({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((()=>{N(null)}))}}))}),[a]);const A=(null==k?void 0:k.image)||r,T=(null==k?void 0:k.title)||e,z=(null==k?void 0:k.logo)||s,P=(null==k?void 0:k.url)||a,I=P.replace("http://","").replace("https://","").split(/[/?#]/)[0],S=i(!1);return t.createElement(Ke,{"data-is-marrybaby":y,className:`${d} no-replace-click`,style:m,color:E.colors[E.primaryColor][0]},t.createElement("a",{href:P,target:"_blank",rel:"noreferrer"},A&&t.createElement("div",{className:"link-image-wrapper"},!y&&t.createElement("img",{className:"link-image-blur",src:A,onError:e=>{S.current||(S.current=!0,e.currentTarget.src=f)},loading:"lazy"}),t.createElement("img",{className:"link-image",src:A,onError:e=>{S.current||(S.current=!0,e.currentTarget.src=f)},loading:"lazy"})),t.createElement("div",{className:"link-info-container"},t.createElement(c,{size:"n1"},y&&z&&!w&&t.createElement("img",{className:"link-logo",src:z,onError:()=>x(!0),loading:"lazy"}),I),t.createElement(Me,{tag:"h6"},T))))},Ye=a({});var Je="vvR-m49";const et=e=>{var{children:a,className:n=""}=e,i=F(e,["children","className"]);const{isReplied:l,trackingCategory:r,trackingLabel:s,onLikeClick:c}=o(Ye);return t.createElement(R,Object.assign({className:`${Je} ${n}`,"data-event-category":r,"data-event-action":l?"Like Comment Click":"Like Post Click","data-event-label":s},i,{onClick:()=>{null==c||c()}}),a)},tt=e=>{var{children:a,className:n=""}=e,i=F(e,["children","className"]);const{trackingCategory:l,trackingLabel:r,onShareClick:s}=o(Ye);return t.createElement(R,Object.assign({className:`${Je} ${n}`,"data-event-category":l,"data-event-action":"Share Icon Click","data-event-label":r},i,{onClick:()=>{null==s||s()}}),a)},at=e=>{var{children:a,className:n=""}=e,i=F(e,["children","className"]);const{isReplied:l,trackingCategory:r,trackingLabel:s,onCommentClick:c}=o(Ye);return t.createElement(R,Object.assign({className:`${Je} ${n}`,"data-event-category":r,"data-event-action":l?"Reply Comment Click":"Comment Text Click","data-event-label":s},i,{onClick:e=>{e.preventDefault(),e.stopPropagation(),null==c||c()}}),a)};var ot,nt="UhiT4m5",it="oEfeTkV",lt="OlbikxJ",rt="_9GXHCn3",st="HCsrR0N",ct="MV3lNuh";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(ot||(ot={}));const dt=e=>{var{type:a,viewCount:n,loveCount:i=0,replyCount:l=0,replyPadding:r,liked:s,isReplied:d,onCommentClick:m,onLikeClick:u,onShareClick:g,className:v,style:h,hideCommentIcon:b,showingMostEngaging:f,isMarryBaby:y,hasShare:w=!0,hasCountLike:x=!0,trackingCategory:E="Together",trackingLabel:C="",children:k}=e,N=F(e,["type","viewCount","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:A}}}=o(p),T=Boolean(y)?y:A,{t:z}=Q();return t.createElement(Ye.Provider,{value:{liked:s,loveCount:i,trackingCategory:E,trackingLabel:C,isReplied:d,onLikeClick:u,onShareClick:g,onCommentClick:m}},k||t.createElement("div",Object.assign({className:`${nt} ${v}`,"data-show-most-engaging":f,"data-type":a===ot.post?"post":"reply","data-reply-padding":a===ot.reply&&r,"data-is-marrybaby":T,style:h},N),t.createElement("div",{className:it},t.createElement("div",{className:lt},t.createElement(et,{className:st},t.createElement(c,{className:rt,size:"p3",as:"div"},t.createElement(te,{className:"txt-icon",isMarryBaby:T,isSolid:s,color:s?T?$.mbColors.pink:$.colors.red800:"#737373"}),x&&t.createElement("div",{className:ct},i))),w&&t.createElement(tt,{className:st},t.createElement(c,{size:"p3",className:rt,as:"div"},t.createElement(Y.Share,{isMarryBaby:T}))),void 0!==n&&t.createElement(c,{size:"p3",className:rt,as:"div"},t.createElement(Y.Eye,{isMarryBaby:T}),t.createElement("div",{className:ct},De(n)))),!b&&t.createElement(at,{className:st},t.createElement(c,{size:"p3",className:rt,as:"div"},d?t.createElement(Y.Reply,{className:"txt-icon"}):t.createElement(Y.Comment,{className:"txt-icon",isMarryBaby:T}),d?z("cardReactions.reply"):t.createElement("div",{className:ct},z("post.commentCount",{count:l})))))))};dt.LikeWrapper=et,dt.ShareWrapper=tt,dt.CommentWrapper=at;const mt=V((e=>({wrapper:{display:"flex",flexWrap:"wrap",width:"100%",padding:"0.5rem 0",gap:"0.5rem"},item:{position:"relative",whiteSpace:"nowrap",padding:"5px 12px",background:e.colors.gray[0],borderRadius:"2rem",cursor:"pointer","-webkit-user-drag":"none",userSelect:"none",textDecoration:"none","*":{pointerEvents:"none"},"&:first-child":{marginLeft:0}},text:{}}))),pt=e=>{var{topics:a=[],onClick:i,className:l,style:r,trackingCategory:s="Together",locale:d="vi-VN",classNames:m,styles:u,unstyled:g,shortenedNumber:v=3,shortenedStyle:h}=e,b=F(e,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:f}=Q(),{classes:w}=mt(void 0,{name:"TagTopic",classNames:m,styles:u,unstyled:g}),{data:{env:{togetherBasePath:x}},action:{sanitizeFunction:E}}=o(p),[C,k]=n(!h);return t.createElement("div",Object.assign({onClick:i,className:`${w.wrapper} ${l}`,style:r},b),(C?a:a.slice(0,v)).map(((e,a)=>{const o=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return t.createElement("a",{className:w.item,key:a,"data-event-category":s,"data-event-action":"Topic in Post Click","data-event-label":`${y(d)}${x}${e.url}`,href:e.isActive&&!e.isHidden?`${x}${e.url}/`:void 0},t.createElement(c,{size:"p4"},t.createElement("span",{style:Object.assign({},o&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:o?`${Ue(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:ce[d]})}${d===me.Vietnam?"/":" "}${null==e?void 0:e.dueDateYear}`:(null==E?void 0:E(e.name))||e.name}})))})),!C&&a.length>v&&t.createElement("a",{className:w.item,href:"#",onClick:e=>{e.preventDefault(),k(!0)}},t.createElement(c,{size:"p4"},"+",f("tagTopic.moreTopics",{number:a.length-v}))))},ut=Re.div`
|
|
62
62
|
display: flex;
|
|
63
63
|
align-items: center;
|
|
64
64
|
justify-content: space-between;
|
|
65
65
|
padding: 16px;
|
|
66
66
|
cursor: pointer;
|
|
67
67
|
&[data-color='gray'] {
|
|
68
|
-
background: ${
|
|
68
|
+
background: ${$.colors.neutral50};
|
|
69
69
|
}
|
|
70
70
|
&[data-color='white'] {
|
|
71
71
|
border-bottom: 1px solid #e4e8ec;
|
|
72
|
-
background: ${
|
|
72
|
+
background: ${$.colors.white};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.popover-menu__btn {
|
|
@@ -92,7 +92,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
&.label-pinned {
|
|
95
|
-
border-radius: ${
|
|
95
|
+
border-radius: ${$.borderRadius} 6px 0 0;
|
|
96
96
|
.label-sort-pin-icon {
|
|
97
97
|
width: 16px;
|
|
98
98
|
height: 16px;
|
|
@@ -125,13 +125,13 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
&.label-sorting {
|
|
128
|
-
${
|
|
128
|
+
${ue.tdUp} {
|
|
129
129
|
padding-bottom: 1.5rem;
|
|
130
130
|
margin-bottom: -0.75rem;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
`,gt=({label:e,rightLabel:a,onClick:n,color:i,className:l,style:r})=>{const{data:{env:{isMarryBaby:s}}}=o(p);return t.createElement(ut,{"data-is-marrybaby":s,"data-color":i,onClick:n,className:l,style:r},t.createElement(c,{className:"label-sort-pin-heading",size:s?"p4":"p3",weight:"bold"},e),a)};const vt=({onClick:e,color:a,className:n,style:i})=>{const{data:{env:{isMarryBaby:l}}}=o(p),{t:r}=Q();return t.createElement(gt,{label:t.createElement(t.Fragment,null,l&&t.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M3.5 19.9999L7.87 15.6299' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.95634 11.294C4.56534 11.685 4.56534 12.318 4.95634 12.708L7.87434 15.626L10.7923 18.544C11.1833 18.935 11.8163 18.935 12.2063 18.544L13.3813 17.369C13.5693 17.181 13.6743 16.927 13.6743 16.662V12.726L16.5743 9.82597L18.8833 9.94897C19.1663 9.96397 19.4433 9.85797 19.6433 9.65797L20.2173 9.08397C20.6083 8.69297 20.6083 8.05997 20.2173 7.66997L15.8313 3.28397C15.4403 2.89297 14.8073 2.89297 14.4173 3.28397L13.8433 3.85797C13.6423 4.05897 13.5363 4.33497 13.5523 4.61797L13.6753 6.92697L10.7753 9.82697H6.83834C6.57334 9.82697 6.31834 9.93197 6.13134 10.12L4.95634 11.294V11.294Z' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16.5699 9.83018L13.6699 6.93018' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e",loading:"lazy"})," ",r("label.pinnedPost")),rightLabel:!l&&t.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='7.18605' y1='7.68219' x2='3.68219' y2='13.8139' stroke='%23FEA21E' stroke-linecap='round'/%3e%3cpath d='M3.24591 7.78426C3.21275 7.84168 3.20376 7.90993 3.22092 7.97398C3.23808 8.03803 3.27998 8.09264 3.3374 8.12579L8.78429 11.2706C8.90385 11.3396 9.05674 11.2986 9.12578 11.1791C9.71191 10.1641 9.71348 8.97262 9.23682 7.99339L10.8583 5.18521C11.5115 5.00603 12.0982 4.57973 12.4638 3.94629C12.5328 3.82672 12.4919 3.67383 12.3723 3.6048L8.18237 1.18584C8.12494 1.15268 8.0567 1.1437 7.99265 1.16086C7.92861 1.17803 7.874 1.21993 7.84086 1.27736C7.47521 1.91077 7.39934 2.63194 7.57065 3.28723L5.94919 6.09545C4.86323 6.1723 3.83201 6.76934 3.24591 7.78426Z' fill='%23FEA21E' stroke='%23FEA21E' stroke-width='0.5' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),onClick:e,color:"white",className:`label-pinned ${n}`,style:i})};const ht=
|
|
134
|
+
`,gt=({label:e,rightLabel:a,onClick:n,color:i,className:l,style:r})=>{const{data:{env:{isMarryBaby:s}}}=o(p);return t.createElement(ut,{"data-is-marrybaby":s,"data-color":i,onClick:n,className:l,style:r},t.createElement(c,{className:"label-sort-pin-heading",size:s?"p4":"p3",weight:"bold"},e),a)};const vt=({onClick:e,color:a,className:n,style:i})=>{const{data:{env:{isMarryBaby:l}}}=o(p),{t:r}=Q();return t.createElement(gt,{label:t.createElement(t.Fragment,null,l&&t.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M3.5 19.9999L7.87 15.6299' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.95634 11.294C4.56534 11.685 4.56534 12.318 4.95634 12.708L7.87434 15.626L10.7923 18.544C11.1833 18.935 11.8163 18.935 12.2063 18.544L13.3813 17.369C13.5693 17.181 13.6743 16.927 13.6743 16.662V12.726L16.5743 9.82597L18.8833 9.94897C19.1663 9.96397 19.4433 9.85797 19.6433 9.65797L20.2173 9.08397C20.6083 8.69297 20.6083 8.05997 20.2173 7.66997L15.8313 3.28397C15.4403 2.89297 14.8073 2.89297 14.4173 3.28397L13.8433 3.85797C13.6423 4.05897 13.5363 4.33497 13.5523 4.61797L13.6753 6.92697L10.7753 9.82697H6.83834C6.57334 9.82697 6.31834 9.93197 6.13134 10.12L4.95634 11.294V11.294Z' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16.5699 9.83018L13.6699 6.93018' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e",loading:"lazy"})," ",r("label.pinnedPost")),rightLabel:!l&&t.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='7.18605' y1='7.68219' x2='3.68219' y2='13.8139' stroke='%23FEA21E' stroke-linecap='round'/%3e%3cpath d='M3.24591 7.78426C3.21275 7.84168 3.20376 7.90993 3.22092 7.97398C3.23808 8.03803 3.27998 8.09264 3.3374 8.12579L8.78429 11.2706C8.90385 11.3396 9.05674 11.2986 9.12578 11.1791C9.71191 10.1641 9.71348 8.97262 9.23682 7.99339L10.8583 5.18521C11.5115 5.00603 12.0982 4.57973 12.4638 3.94629C12.5328 3.82672 12.4919 3.67383 12.3723 3.6048L8.18237 1.18584C8.12494 1.15268 8.0567 1.1437 7.99265 1.16086C7.92861 1.17803 7.874 1.21993 7.84086 1.27736C7.47521 1.91077 7.39934 2.63194 7.57065 3.28723L5.94919 6.09545C4.86323 6.1723 3.83201 6.76934 3.24591 7.78426Z' fill='%23FEA21E' stroke='%23FEA21E' stroke-width='0.5' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),onClick:e,color:"white",className:`label-pinned ${n}`,style:i})};const ht=Re.div`
|
|
135
135
|
position: relative;
|
|
136
136
|
display: content;
|
|
137
137
|
|
|
@@ -297,7 +297,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
297
297
|
} */
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
`,bt=
|
|
300
|
+
`,bt=Re.div`
|
|
301
301
|
display: flex;
|
|
302
302
|
/* max-height: 300px; */
|
|
303
303
|
flex-direction: column;
|
|
@@ -359,7 +359,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
359
359
|
padding: 0 1rem;
|
|
360
360
|
border: none;
|
|
361
361
|
margin-bottom: 8px;
|
|
362
|
-
color: ${
|
|
362
|
+
color: ${$.colors.gray800};
|
|
363
363
|
cursor: pointer;
|
|
364
364
|
text-align: left;
|
|
365
365
|
transition: background 0.3s;
|
|
@@ -369,12 +369,12 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
369
369
|
pointer-events: none;
|
|
370
370
|
}
|
|
371
371
|
&.--checked {
|
|
372
|
-
color: ${
|
|
372
|
+
color: ${$.colors.gray500};
|
|
373
373
|
pointer-events: none;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
&:hover {
|
|
377
|
-
background: ${
|
|
377
|
+
background: ${$.colors.gray100};
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
.__icon {
|
|
@@ -431,23 +431,23 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
431
431
|
padding: 1rem;
|
|
432
432
|
margin-bottom: 0;
|
|
433
433
|
&:hover {
|
|
434
|
-
background: ${
|
|
434
|
+
background: ${$.mbColors.lightPink};
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
`,ft=({className:e,style:a,toggleButtonContent:r,position:s="bottom",align:c="end",children:d,buttonProps:m})=>{const{data:{env:{isMarryBaby:u}}}=o(p),[g,v]=n(!1),h=i(null),b=i(g);return l((()=>{var e;b.current=g,g&&(null===(e=h.current)||void 0===e||e.focus())}),[g]),l((()=>{const e=e=>{var t;!(null===(t=h.current)||void 0===t?void 0:t.contains(e.target))&&b.current&&v(!1)};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),t.createElement(ht,{"data-is-marrybaby":u,className:e,style:a},t.createElement(
|
|
440
|
+
`,ft=({className:e,style:a,toggleButtonContent:r,position:s="bottom",align:c="end",children:d,buttonProps:m})=>{const{data:{env:{isMarryBaby:u}}}=o(p),[g,v]=n(!1),h=i(null),b=i(g);return l((()=>{var e;b.current=g,g&&(null===(e=h.current)||void 0===e||e.focus())}),[g]),l((()=>{const e=e=>{var t;!(null===(t=h.current)||void 0===t?void 0:t.contains(e.target))&&b.current&&v(!1)};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),t.createElement(ht,{"data-is-marrybaby":u,className:e,style:a},t.createElement(Le,Object.assign({theme:u?"marryBaby":"helloSites",className:"popover-menu__btn",size:"md",color:"transparent",onClick:()=>v((e=>!e))},m),r),g?t.createElement("div",{ref:h,className:`popover-menu__content --position-${s} --align-${c}`,tabIndex:0,onClick:e=>e.stopPropagation()},"function"==typeof d?d({setShow:v}):d):null)};const yt=e=>{var{data:a}=e,o=F(e,["data"]);return t.createElement(ft,Object.assign({},o),(({setShow:e})=>t.createElement(wt,{data:a,setShow:e})))},wt=({data:e,setShow:a})=>{var o;const[i,l]=n(""),s=r((()=>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,i)),[e,i]);if(!e)return null;if(!s)return null;return t.createElement(bt,null,s.isShowheader?t.createElement("div",{className:"__header"},i?t.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:()=>l((e=>e.split(".").slice(0,-1).join("."))),loading:"lazy"}):null,s.title?t.createElement(Me,{className:"__title",tag:"h6"},s.title):null):null,s.description?t.createElement(c,{className:"tree-text-description",color:$.colors.gray600,size:"p3",weight:"regular"},s.description):null,t.createElement("div",{className:"__content"},"jsx"===s.type?null===(o=null==s?void 0:s.jsxRenderer)||void 0===o?void 0:o.call(s,a):null,"list"===s.type?t.createElement("ul",{className:"__list"},Array.isArray(s.list)?s.list.map(((e,o)=>t.createElement("li",{key:o,style:e.style,className:`__item ${e.className}`}," ",t.createElement("div",{className:"__btn "+(e.selected?"--checked":""),onClick:()=>((e,{subTree:t,onClick:o=(()=>null)})=>{o&&o(),t?l((t=>t.split(".").concat(String(e)).join("."))):a&&a(!1)})(o,e),"data-event-category":e.dataEventCategory,"data-event-action":e.dataEventAction,"data-event-label":e.dataEventLabel},e.icon&&t.createElement("img",{className:"__icon",src:e.icon,loading:"lazy"}),t.createElement("span",null,e.label)),e.subTree?t.createElement("img",{className:"__toggle",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12L10 8L6 4' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}):null,e.selected?t.createElement("img",{className:"__toggle",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.3334 4L6.00002 11.3333L2.66669 8' stroke='%238C8C8C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}):null))):null):null))};var xt;!function(e){e.latest="latest",e.oldest="oldest",e.popular="popular"}(xt||(xt={}));const Et=({onChange:e,className:a,style:n,leftLabel:i,rightLabel:l,color:r,value:s,choices:d})=>{const{data:{env:{isMarryBaby:m}}}=o(p);return t.createElement(gt,{label:i,rightLabel:t.createElement(yt,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:d.map((t=>({label:t.label,onClick:()=>e&&e(String(t.value)),selected:t.value===s,className:"bold-item"})))},toggleButtonContent:t.createElement("div",{style:{display:"flex"}},t.createElement(c,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},l),t.createElement("img",{src:m?"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M8 14L12 18L16 14' stroke='%233E3F58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16 10L12 6L8 10' stroke='%233E3F58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.49992 7H11.4998C11.6352 7 11.7525 6.94506 11.8514 6.83509C11.9502 6.72515 11.9999 6.59496 11.9999 6.44449C11.9999 6.29402 11.9503 6.16389 11.8514 6.0538L8.35141 2.16491C8.25252 2.05509 8.13538 2 7.99988 2C7.86437 2 7.74723 2.05509 7.64826 2.16491L4.1483 6.0538C4.04932 6.16377 3.99988 6.29402 3.99988 6.44449C3.99988 6.59493 4.04932 6.72515 4.1483 6.83509C4.24738 6.94506 4.36452 7 4.49992 7Z' fill='%238C8C8C'/%3e%3cpath d='M11.4998 9H4.49992C4.36441 9 4.24727 9.05497 4.1483 9.16482C4.04932 9.2748 3.99988 9.40496 3.99988 9.55543C3.99988 9.7059 4.04932 9.83616 4.1483 9.94607L7.64826 13.835C7.74734 13.9449 7.86448 14 7.99988 14C8.13527 14 8.25252 13.9449 8.35141 13.835L11.8514 9.94604C11.9502 9.83616 11.9999 9.7059 11.9999 9.5554C11.9999 9.40496 11.9503 9.2748 11.8514 9.16479C11.7525 9.05485 11.6352 9 11.4998 9Z' fill='%238C8C8C'/%3e%3c/svg%3e",style:{width:16,height:16,alignSelf:"center"},loading:"lazy"}))}),color:"gray",className:a,style:n})},Ct=e=>{var{size:a=15}=e,o=F(e,["size"]);return t.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 15 15",fill:"none"},o),t.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"}),t.createElement("path",{d:"M8.53125 6.34375V4.15625H6.34375V6.34375H4.15625V8.53125H6.34375V10.7188H8.53125V8.53125H10.7188V6.34375H8.53125Z",fill:"#FF5331"}))},kt=e=>{var{size:a,color:o}=e,n=F(e,["size","color"]);return t.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 16 16",fill:"none"},n),t.createElement("path",{d:"M7.29998 8.71005L6.24868 7.64851C6.14527 7.54509 6.02647 7.49338 5.89228 7.49338C5.75811 7.49338 5.63931 7.54509 5.53588 7.64851C5.43247 7.75192 5.38012 7.87179 5.37883 8.00811C5.37756 8.14444 5.42649 8.26217 5.52563 8.36131L6.8782 9.71386C6.99871 9.83437 7.13931 9.89463 7.29998 9.89463C7.46066 9.89463 7.60126 9.83437 7.72177 9.71386L10.4846 6.95105C10.588 6.84764 10.6397 6.72884 10.6397 6.59465C10.6397 6.46047 10.588 6.34167 10.4846 6.23825C10.3812 6.13484 10.2613 6.0842 10.125 6.08633C9.98866 6.08846 9.87093 6.1391 9.77178 6.23825L7.29998 8.71005ZM7.99998 14.2703H7.84293C7.79379 14.2703 7.74913 14.2592 7.70897 14.2369C6.34743 13.7857 5.22222 12.9235 4.33333 11.6504C3.44444 10.3773 3 8.96046 3 7.39978V4.39723C3 4.1451 3.07308 3.91754 3.21923 3.71455C3.36539 3.51155 3.55342 3.36432 3.78333 3.27288L7.5782 1.85621C7.72093 1.80494 7.86153 1.7793 7.99998 1.7793C8.13844 1.7793 8.27903 1.80494 8.42177 1.85621L12.2166 3.27288C12.4465 3.36432 12.6346 3.51155 12.7807 3.71455C12.9269 3.91754 13 4.1451 13 4.39723V7.39978C13 8.96046 12.5555 10.3773 11.6666 11.6504C10.7777 12.9235 9.65253 13.7857 8.291 14.2369C8.23972 14.2592 8.14272 14.2703 7.99998 14.2703Z",fill:o}))};kt.defaultProps={size:24,color:$.colors.gray600,activeColor:$.colors.primaryBase,isActive:!1};var Nt="dZWeHns",At="tMiOKib",Tt="uDcqD-2",zt="pDlsows",Pt="m-HVXw1";const It=({children:e,className:a=""})=>t.createElement("div",{className:`${At} ${a}`},e),St=({children:e,className:a=""})=>t.createElement("div",{className:`${Tt} ${a}`},e);var Lt="sTU4T4I",Mt="tCql9Je",jt="_3j7uYhH",Bt="PHABgoT";const Ft=({avatarProps:e,title:a,subTitle:o,children:n,className:i="",style:l,onAvatarClick:r,avatarIcon:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:m})=>t.createElement("div",{className:`${Lt} ${i}`,style:l},t.createElement("div",{className:jt,onClick:r,"data-event-category":c,"data-event-action":d,"data-event-label":m},t.createElement(xe,Object.assign({},e)),s&&t.createElement("div",{className:Bt},s)),t.createElement("div",{className:`${Mt} ${i}`,style:{minHeight:`${(null==e?void 0:e.size)||40}px`}},n||t.createElement(t.Fragment,null,a&&t.createElement(It,null,a),o&&t.createElement(St,null,o))));Ft.MainText=It,Ft.SubText=St,Ft.SubDivider=({className:e=""})=>t.createElement("span",{className:`${Pt} ${e}`}),Ft.Row=({children:e,className:a=""})=>t.createElement("div",{className:`${Nt} ${a} row`},e),Ft.ColLeft=({children:e,className:a=""})=>t.createElement("div",{className:`${a} col-left`},e),Ft.ColRight=({children:e,className:a=""})=>t.createElement("div",{className:`${a} col-right`},e),Ft.SubTextRow=e=>{var{children:a,className:o=""}=e,n=F(e,["children","className"]);return t.createElement("div",Object.assign({className:`${zt} ${o}`},n),a)};var Ot=V((()=>({root:{verticalAlign:"bottom"}})));const Rt=a({}),Vt=({styles:e,className:a,classNames:n})=>{const{role:i,siteType:l,title:r}=o(Rt),{cx:s,classes:c}=Ot(void 0,{name:"AuthorBadgeItem",styles:e,classNames:n});return i?t.createElement(be,{className:s(c.root,a),siteType:l,role:i,title:r}):null};var Dt=V((()=>({root:{}})));const Ut=Re.div`
|
|
441
441
|
position: fixed;
|
|
442
442
|
left: 50%;
|
|
443
443
|
width: 343px;
|
|
444
|
-
background-color: ${
|
|
445
|
-
border-radius: ${
|
|
446
|
-
box-shadow: 0px 0px 4px ${
|
|
444
|
+
background-color: ${$.colors.white};
|
|
445
|
+
border-radius: ${$.borderRadius};
|
|
446
|
+
box-shadow: 0px 0px 4px ${$.colors.gray200};
|
|
447
447
|
transform: translate(-50%, -50%);
|
|
448
448
|
transition: all 0.5s ease-in-out;
|
|
449
449
|
|
|
450
|
-
${
|
|
450
|
+
${ue.tdUp} {
|
|
451
451
|
width: 750px;
|
|
452
452
|
}
|
|
453
453
|
|
|
@@ -467,7 +467,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
.popup-content {
|
|
470
|
-
${
|
|
470
|
+
${ue.mbDown} {
|
|
471
471
|
display: block;
|
|
472
472
|
}
|
|
473
473
|
display: flex;
|
|
@@ -499,8 +499,8 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
499
499
|
|
|
500
500
|
.main-info {
|
|
501
501
|
padding-bottom: 32px;
|
|
502
|
-
background-color: ${
|
|
503
|
-
border-radius: ${
|
|
502
|
+
background-color: ${$.colors.primary50};
|
|
503
|
+
border-radius: ${$.borderRadius};
|
|
504
504
|
.btn-booking {
|
|
505
505
|
display: flex;
|
|
506
506
|
margin: 12px auto;
|
|
@@ -512,7 +512,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
512
512
|
text-align: center;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
`,
|
|
515
|
+
`,Wt=Re.div`
|
|
516
516
|
position: fixed;
|
|
517
517
|
z-index: 110;
|
|
518
518
|
top: 0;
|
|
@@ -525,7 +525,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
525
525
|
&[data-open='false'] {
|
|
526
526
|
display: none;
|
|
527
527
|
}
|
|
528
|
-
`,
|
|
528
|
+
`,Ht=Re.div`
|
|
529
529
|
.image-container {
|
|
530
530
|
.badge-avatar {
|
|
531
531
|
position: absolute;
|
|
@@ -550,7 +550,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
550
550
|
width: 24px;
|
|
551
551
|
height: 24px;
|
|
552
552
|
}
|
|
553
|
-
`,
|
|
553
|
+
`,Zt=Re.div`
|
|
554
554
|
position: relative;
|
|
555
555
|
z-index: 9;
|
|
556
556
|
.specialty {
|
|
@@ -579,12 +579,12 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
579
579
|
text-overflow: ellipsis;
|
|
580
580
|
overflow: hidden;
|
|
581
581
|
}
|
|
582
|
-
`,
|
|
582
|
+
`,qt=Re.ul`
|
|
583
583
|
padding-left: 18px;
|
|
584
584
|
li {
|
|
585
585
|
list-style-type: disc;
|
|
586
586
|
}
|
|
587
|
-
`;var
|
|
587
|
+
`;var _t="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",Gt="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 Qt=Re.div`
|
|
588
588
|
display: flex;
|
|
589
589
|
align-items: center;
|
|
590
590
|
justify-content: center;
|
|
@@ -592,14 +592,14 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
592
592
|
button {
|
|
593
593
|
position: relative;
|
|
594
594
|
}
|
|
595
|
-
`,
|
|
595
|
+
`,Xt=Ve`
|
|
596
596
|
0% {
|
|
597
597
|
transform: rotate(0deg);
|
|
598
598
|
}
|
|
599
599
|
100% {
|
|
600
600
|
transform: rotate(360deg);
|
|
601
601
|
}
|
|
602
|
-
`;
|
|
602
|
+
`;Re.div`
|
|
603
603
|
display: flex;
|
|
604
604
|
width: fit-content;
|
|
605
605
|
width: -moz-fit-content;
|
|
@@ -608,29 +608,29 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
608
608
|
justify-content: center;
|
|
609
609
|
padding: 1rem 2rem;
|
|
610
610
|
background: white;
|
|
611
|
-
border-radius: ${
|
|
611
|
+
border-radius: ${$.borderRadius};
|
|
612
612
|
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
|
|
613
613
|
-2px 2px 5px rgba(67, 86, 100, 0.123689);
|
|
614
614
|
.loading-spinner {
|
|
615
615
|
width: 24px;
|
|
616
616
|
height: 24px;
|
|
617
617
|
margin-bottom: 0.5rem;
|
|
618
|
-
animation: ${
|
|
618
|
+
animation: ${Xt} 1.2s linear infinite;
|
|
619
619
|
}
|
|
620
620
|
&[data-is-marrybaby='true'] {
|
|
621
621
|
box-shadow: none;
|
|
622
622
|
}
|
|
623
|
-
`;const
|
|
623
|
+
`;const Kt=({className:e,size:a="md"})=>{const{t:o}=Q();return t.createElement(Qt,{className:e},t.createElement(Le,{size:a,color:"transparent",isLoading:!0},o("loading")))},$t=({isOpen:e=!0,onClose:a,enableAnimation:o=!0,doctorId:i,locale:r,isMobile:s,overwriteProfileProps:d,avatarFallback:m=pe.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{var u,g,h;const{t:b}=Q(),[f,N]=n(null),[A,T]=n(!1);l((()=>{if(e&&i&&String(null==f?void 0:f.id)!==String(i)){T(!0);try{N(null),v(w(x.GET_DOCTOR_INFO,{doctorId:i,website_url:E[r]}),"get").then((e=>{N(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),d))}))}catch(e){console.error(e)}T(!1)}}),[e,i,null==f?void 0:f.id]);const z=(null==f?void 0:f.experiences)||[],P=((null==f?void 0:f.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),I=z.map((e=>{try{return JSON.parse(e.description)}catch(t){return e.description}})).filter((e=>e.content));return t.createElement(t.Fragment,null,t.createElement(Ut,{"data-open":e,"data-animation":o,onClick:e=>e.stopPropagation()},A||!f?t.createElement(Kt,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:a},t.createElement("img",{src:_t,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(Ht,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(oe,{src:null==f?void 0:f.avatar,backupSrc:m,className:"profile-image",alt:"avatar"}),t.createElement("img",{className:"badge-avatar",src:Gt,alt:"badge",loading:"lazy"})))),t.createElement(Zt,null,t.createElement(c,{size:"s3",weight:"semiBold",className:"full-name"},null==f?void 0:f.name),t.createElement("div",{className:"specialty"},P&&t.createElement(t.Fragment,null,t.createElement(c,{size:"p4",color:$.colors.gray800},P," • ")),t.createElement("a",{href:C({id:null===(u=null==f?void 0:f.organization)||void 0===u?void 0:u.id,name:null===(g=null==f?void 0:f.organization)||void 0===g?void 0:g.name,slug:null===(h=null==f?void 0:f.organization)||void 0===h?void 0:h.slug,locale:r}),className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(c,{size:"p4",className:"organisation",color:$.colors.gray800,style:{textDecoration:"underline"}},null==f?void 0:f.organization.name))))),!s&&t.createElement("div",{className:"btn-wrapper"},t.createElement("a",{href:k({name:f.name,id:f.id,locale:r})},t.createElement(Le,{color:"primary",size:"md",className:"btn-booking"},b("careBooking.bookAnAppointment"))))),I&&t.createElement(Zt,null,t.createElement("div",{className:"experience"},t.createElement(c,{weight:"bold",size:"s3",color:$.colors.gray800,style:{paddingBottom:16}},b("expert.content.description").toUpperCase()),t.createElement(qt,null,I.map(((e,a)=>t.createElement("li",{key:a},t.createElement(c,{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)))))),s?t.createElement("div",{className:"btn-wrapper"},t.createElement("a",{href:k({name:f.name,id:f.id,locale:r})},t.createElement(Le,{color:"primary",size:"md",className:"btn-booking"},b("careBooking.bookAnAppointment")))):t.createElement("a",{href:k({name:f.name,id:f.id,locale:r})},t.createElement(c,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":p,"data-event-action":"See Full Doctor Profile","data-event-label":y(r)+k({name:f.name,id:f.id,locale:r})},b("home.seeExpert"))))))),t.createElement(Wt,{"data-open":e,onClick:e=>{e.stopPropagation(),a()}}))},Yt=Re.div`
|
|
624
624
|
position: fixed;
|
|
625
625
|
left: 50%;
|
|
626
626
|
width: 343px;
|
|
627
|
-
background-color: ${
|
|
628
|
-
border-radius: ${
|
|
629
|
-
box-shadow: 0px 0px 4px ${
|
|
627
|
+
background-color: ${$.colors.white};
|
|
628
|
+
border-radius: ${$.borderRadius};
|
|
629
|
+
box-shadow: 0px 0px 4px ${$.colors.gray200};
|
|
630
630
|
transform: translate(-50%, -50%);
|
|
631
631
|
transition: all 0.5s ease-in-out;
|
|
632
632
|
|
|
633
|
-
${
|
|
633
|
+
${ue.tdUp} {
|
|
634
634
|
width: 750px;
|
|
635
635
|
}
|
|
636
636
|
|
|
@@ -650,7 +650,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
.popup-content {
|
|
653
|
-
${
|
|
653
|
+
${ue.mbDown} {
|
|
654
654
|
display: block;
|
|
655
655
|
}
|
|
656
656
|
display: flex;
|
|
@@ -682,8 +682,8 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
682
682
|
|
|
683
683
|
.main-info {
|
|
684
684
|
padding-bottom: 32px;
|
|
685
|
-
background-color: ${
|
|
686
|
-
border-radius: ${
|
|
685
|
+
background-color: ${$.colors.primary50};
|
|
686
|
+
border-radius: ${$.borderRadius};
|
|
687
687
|
|
|
688
688
|
.avatar-title {
|
|
689
689
|
position: relative;
|
|
@@ -692,7 +692,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
692
692
|
text-align: center;
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
`,
|
|
695
|
+
`,Jt=Re.div`
|
|
696
696
|
position: fixed;
|
|
697
697
|
z-index: 110;
|
|
698
698
|
top: 0;
|
|
@@ -705,7 +705,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
705
705
|
&[data-open='false'] {
|
|
706
706
|
display: none;
|
|
707
707
|
}
|
|
708
|
-
|
|
708
|
+
`,ea=Re.div`
|
|
709
709
|
.image-container {
|
|
710
710
|
.badge-avatar {
|
|
711
711
|
position: absolute;
|
|
@@ -730,7 +730,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
730
730
|
width: 24px;
|
|
731
731
|
height: 24px;
|
|
732
732
|
}
|
|
733
|
-
`,
|
|
733
|
+
`,ta=Re.div`
|
|
734
734
|
position: relative;
|
|
735
735
|
z-index: 9;
|
|
736
736
|
.specialty {
|
|
@@ -759,7 +759,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
759
759
|
text-overflow: ellipsis;
|
|
760
760
|
overflow: hidden;
|
|
761
761
|
}
|
|
762
|
-
`,
|
|
762
|
+
`,aa=Re.div`
|
|
763
763
|
display: flex;
|
|
764
764
|
margin-top: 8px;
|
|
765
765
|
|
|
@@ -767,17 +767,17 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
767
767
|
width: 24px;
|
|
768
768
|
height: 24px;
|
|
769
769
|
}
|
|
770
|
-
`;var
|
|
770
|
+
`;var oa="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath fill='%2345A4FF' d='M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Z'/%3e%3cpath fill='%232D87F3' d='M24 12a12.1 12.1 0 0 0-.128-1.758l-5.077-5.077L5.041 18.958l4.858 4.858c.682.12 1.384.184 2.1.184 6.628 0 12-5.373 12-12Z'/%3e%3cpath fill='white' d='M9.014 17.824 5.04 18.959l1.135-3.973 2.368.47.47 2.368Z'/%3e%3cpath fill='%23F7F9FC' d='M8.544 15.456 5.041 18.96l3.972-1.135-.469-2.368Z'/%3e%3cpath fill='%23E4E8EC' d='M6.467 18.552 5.45 17.533 5.04 18.96l1.426-.407Z'/%3e%3cpath fill='%23D2D6DC' d='m5.957 18.043-.916.916 1.426-.407-.51-.509Z'/%3e%3cpath fill='%23FFD658' d='m15.828 5.331 2.837 2.837-9.651 9.652-2.838-2.837 9.652-9.652Z'/%3e%3cpath fill='%23FFC326' d='m7.594 16.404 9.651-9.651 1.419 1.418-9.652 9.652-1.418-1.419Z'/%3e%3cpath fill='%23FF5331' d='m18.312 8.525-2.837-2.838 1.123-1.123c.44-.44 1.154-.44 1.595 0l1.243 1.243c.44.44.44 1.154 0 1.594l-1.124 1.124Z'/%3e%3cpath fill='%23F44D2C' d='m18.816 5.186-1.921 1.92 1.418 1.419 1.124-1.124c.44-.44.44-1.154 0-1.594l-.622-.621Z'/%3e%3c/svg%3e";const na={author:oa,edtior:oa,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:Gt},ia=({trackingCategory:e="Together",locale:a,isOpen:o=!0,onClose:i,enableAnimation:r=!0,expertId:s,overwriteProfileProps:d,avatarFallback:m=pe.getAssetPath("avatar.jpg")})=>{const{t:p}=Q(),[u,g]=n(null),[h,b]=n(!1);return l((()=>{if(o&&s&&String(null==u?void 0:u.user_id)!==String(s)){b(!0);try{g(null),v(N(A.GET_EXPERT_BY_ID,{id:s}),"get").then((e=>{g(Object.assign(Object.assign({},null==e?void 0:e.data),d))}))}catch(e){console.error(e)}b(!1)}}),[o,s,null==u?void 0:u.user_id]),t.createElement(t.Fragment,null,t.createElement(Yt,{"data-open":o,"data-animation":r,onClick:e=>e.stopPropagation()},h||!u?t.createElement(Kt,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:i},t.createElement("img",{src:_t,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(ea,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(oe,{src:null==u?void 0:u.avatar,className:"profile-image",alt:"avatar",backupSrc:m}),t.createElement("img",{className:"badge-avatar",src:na[null==u?void 0:u.role],alt:"badge",loading:"lazy"})))),t.createElement(ta,null,t.createElement(c,{size:"s3",className:"full-name",weight:"semiBold"},null==u?void 0:u.display_name),t.createElement("div",null,t.createElement(c,{size:"p4",color:$.colors.gray800},null==u?void 0:u.specialty," • "),t.createElement("a",{href:null==u?void 0:u.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(c,{size:"p4",className:"organisation",color:$.colors.gray800,style:{textDecoration:"underline"}},null==u?void 0:u.organisation)))))),t.createElement(ta,null,t.createElement("div",{className:"experience"},t.createElement(c,{weight:"bold",size:"p4",color:$.colors.gray800,style:{paddingBottom:16}},p("expert.content.description").toUpperCase()),t.createElement("div",{className:"list-items"},!!(null==u?void 0:u.experiences)&&u.experiences.filter((e=>!(!e||!e.title&&!e.organization))).slice(0,3).map(((e,a)=>t.createElement(aa,{key:a},t.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point",loading:"lazy"}),t.createElement("div",{className:"text-contain"},t.createElement(Me,{tag:"h6",color:$.colors.gray800},null==e?void 0:e.title),t.createElement(c,{size:"p2",color:$.colors.gray500},null==e?void 0:e.organization)))))),t.createElement("a",{href:null==u?void 0:u.profile_url,style:{display:"inline-block",paddingTop:24}},t.createElement(c,{as:"span",size:"s4",color:"#2D87F3","data-event-category":e,"data-event-action":"See Full Doctor Profile","data-event-label":y(a)+(null==u?void 0:u.profile_url)},p("home.seeExpert"))))))),t.createElement(Jt,{"data-open":o,onClick:e=>{e.stopPropagation(),i()}}))},la=Re.div`
|
|
771
771
|
position: fixed;
|
|
772
772
|
left: 50%;
|
|
773
773
|
width: 343px;
|
|
774
|
-
background-color: ${
|
|
775
|
-
border-radius: ${
|
|
776
|
-
box-shadow: 0px 0px 4px ${
|
|
774
|
+
background-color: ${$.colors.white};
|
|
775
|
+
border-radius: ${$.borderRadius};
|
|
776
|
+
box-shadow: 0px 0px 4px ${$.colors.gray200};
|
|
777
777
|
transform: translate(-50%, -50%);
|
|
778
778
|
transition: all 0.5s ease-in-out;
|
|
779
779
|
|
|
780
|
-
${
|
|
780
|
+
${ue.tdUp} {
|
|
781
781
|
width: 750px;
|
|
782
782
|
}
|
|
783
783
|
|
|
@@ -797,7 +797,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
797
797
|
}
|
|
798
798
|
|
|
799
799
|
.popup-content {
|
|
800
|
-
${
|
|
800
|
+
${ue.mbDown} {
|
|
801
801
|
display: block;
|
|
802
802
|
}
|
|
803
803
|
display: flex;
|
|
@@ -829,8 +829,8 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
829
829
|
|
|
830
830
|
.main-info {
|
|
831
831
|
padding-bottom: 32px;
|
|
832
|
-
background-color: ${
|
|
833
|
-
border-radius: ${
|
|
832
|
+
background-color: ${$.colors.primary50};
|
|
833
|
+
border-radius: ${$.borderRadius};
|
|
834
834
|
.btn-booking {
|
|
835
835
|
display: flex;
|
|
836
836
|
margin: 12px auto;
|
|
@@ -842,7 +842,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
842
842
|
text-align: center;
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
`,
|
|
845
|
+
`,ra=Re.div`
|
|
846
846
|
position: fixed;
|
|
847
847
|
z-index: 110;
|
|
848
848
|
top: 0;
|
|
@@ -855,7 +855,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
855
855
|
&[data-open='false'] {
|
|
856
856
|
display: none;
|
|
857
857
|
}
|
|
858
|
-
`,
|
|
858
|
+
`,sa=Re.div`
|
|
859
859
|
.image-container {
|
|
860
860
|
.badge-avatar {
|
|
861
861
|
position: absolute;
|
|
@@ -880,7 +880,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
880
880
|
width: 24px;
|
|
881
881
|
height: 24px;
|
|
882
882
|
}
|
|
883
|
-
`,
|
|
883
|
+
`,ca=Re.div`
|
|
884
884
|
position: relative;
|
|
885
885
|
z-index: 9;
|
|
886
886
|
.specialty {
|
|
@@ -904,7 +904,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
904
904
|
p {
|
|
905
905
|
max-width: 100%;
|
|
906
906
|
}
|
|
907
|
-
`,
|
|
907
|
+
`,da=({isOpen:e=!0,onClose:a,enableAnimation:o=!0,hospitalId:i,locale:s,isMobile:d,overwriteProfileProps:m,avatarFallback:p=pe.getAssetPath("avatar.jpg"),trackingCategory:u="Together"})=>{const{t:g}=Q(),[h,b]=n(null),[f,k]=n(!1);l((()=>{if(e&&i&&String(null==h?void 0:h.id)!==String(i)){k(!0);try{b(null),v(w(x.GET_HOSPITAL_INFO,{hospital_branch_id:i,website_url:E[s]}),"get").then((e=>{b(Object.assign(Object.assign({},null==e?void 0:e._data.branch),m))}))}catch(e){console.error(e)}k(!1)}}),[e,i,null==h?void 0:h.id]);const N=(null==h?void 0:h.specialties)||[],A=r((()=>N.map((e=>e.name))),[N]);return t.createElement(t.Fragment,null,t.createElement(la,{"data-open":e,"data-animation":o,onClick:e=>e.stopPropagation()},f||!h?t.createElement(Kt,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:a},t.createElement("img",{src:_t,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(sa,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(oe,{src:null==h?void 0:h.logo,className:"profile-image",alt:"avatar",backupSrc:p}),t.createElement("img",{className:"badge-avatar",src:Gt,alt:"badge",loading:"lazy"})))),t.createElement(ca,null,t.createElement(c,{size:"s3",weight:"semiBold",className:"full-name"},null==h?void 0:h.name),t.createElement("div",{className:"specialty"},N&&t.createElement(c,{size:"p4",color:$.colors.gray800},A.join(" • "),"•"),t.createElement("a",{href:C({id:h.id,name:h.name,slug:h.slug,locale:s}),className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(c,{size:"p4",className:"organisation",color:$.colors.gray800,style:{textDecoration:"underline"}},null==h?void 0:h.name))))),!d&&t.createElement("a",{href:C({id:h.id,name:h.name,slug:h.slug,locale:s})},t.createElement("div",{className:"btn-wrapper"},t.createElement(Le,{color:"primary",size:"md",className:"btn-booking"},g("careBooking.bookAnAppointment"))))),t.createElement(ca,null,t.createElement("div",{className:"experience"},t.createElement(c,{weight:"bold",size:"s3",color:$.colors.gray800,style:{paddingBottom:16}},g("hospital.content.description").toUpperCase()),t.createElement(c,{size:"p2",color:$.colors.gray500},h.about),d?t.createElement("a",{href:C({id:h.id,name:h.name,slug:h.slug,locale:s})},t.createElement("div",{className:"btn-wrapper"},t.createElement(Le,{color:"primary",size:"md",className:"btn-booking"},g("careBooking.bookAnAppointment")))):t.createElement("a",{href:C({id:h.id,name:h.name,slug:h.slug,locale:s})},t.createElement(c,{size:"s4",color:"#2D87F3",as:"span","data-event-category":u,"data-event-action":"See Full Hospital Profile","data-event-label":y(s)+C({id:h.id,name:h.name,slug:h.slug,locale:s})},g("home.seeHospital"))))))),t.createElement(ra,{"data-open":e,onClick:e=>{e.stopPropagation(),a()}}))};var ma="_2UKyiK1",pa="E5ga-tI",ua="_8Y2nWXX",ga="d0T7kSP";const va=({open:e,onClose:a,children:o,profileModalProps:n})=>{const{t:i}=Q();return t.createElement(Ze,Object.assign({className:ma,opened:e,onClose:a,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end"},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"},content:{maxHeight:"100%",height:"100%",borderRadius:0}},title:"Profile"},n),t.createElement("div",{className:pa},t.createElement("div",{className:ua},i("profilePanel.modal.heading")),t.createElement("div",{className:ga,onClick:a},t.createElement(_e,null))),o)};We.extend(He);const ha=e=>{const{className:a="",community:i,name:r,username:s,url:c,avatar:d,role:m,title:u,userType:g="user",expertId:v,specialty:h,organisation:b,isMarryBaby:f,doctorId:y,hospitalId:w,hasQuickBooking:x,handleMakeAppointment:E,communityTrackingAttr:C,isAnonymous:k,showDetailPopup:N,subLine:A,authActionWrapper:T,profileProps:z,profileModalProps:P,extendEle:I,avatarProps:S,hideInfo:L,timeText:M,onCloseFromPost:j,avatarIcon:B,badgeIconSize:F,hideBackground:O,children:V,styles:W,dataEventCategory:H,dataEventAction:Z,dataEventLabel:q}=e,{data:{locale:_,router:G,env:{isMarryBaby:X,togetherBasePath:K}}}=o(p),{isMobile:Y}=ne(),{t:J}=Q(),{classes:ee}=Dt(void 0,{name:"CardAuthor",styles:W}),te="boolean"==typeof f?f:X,ae=te?"marryBaby":"helloSites",oe=k?J("cardPost.anonymous"):r||s||"",ie=k?pe.getAssetPath("avatar.jpg"):d,le=k?void 0:m,[re,se]=n(!1),{asPath:ce}=G||{},me=`https://${de[_]}${ce}`,ue=()=>{if(k||"chatbot"===g)return!1;N?he(!0):c&&(window.location.href=c)};l((()=>{ge(re)}),[re]);const[ve,he]=n(!1),be="expert"===(null==e?void 0:e.role),ye=Boolean(y||w),we=["expert"===le&&b&&t.createElement("span",null,b),"expert"===le&&h&&t.createElement("span",null,h),!("expert"===le&&h&&b)&&(null==i?void 0:i.name)&&t.createElement("a",Object.assign({href:(null==i?void 0:i.slug)&&i.isActive&&!i.isHidden?`${K}/${null==i?void 0:i.slug}/`:void 0,className:"author-community-name"},C),`${null==i?void 0:i.name}`),M&&t.createElement("span",null,M)].filter(Boolean),[xe,Ee]=n(null);return l((()=>{ve&&!xe&&Promise.resolve().then((function(){return qn})).then((e=>{Ee((()=>e.ProfileDetail))}))}),[ve]),t.createElement(Rt.Provider,{value:{displayName:oe,title:u,role:le,siteType:ae,handleMakeAppointment:E,doctorId:y,hospitalId:w,currentUrl:me}},t.createElement(va,{open:ve,onClose:()=>he(!1),profileModalProps:P},xe&&t.createElement(xe,Object.assign({currentPageUrl:q,authActionWrapper:T,onCloseFromPost:()=>{he(!1),null==j||j()}},z,{authorProps:Object.assign({userId:null==e?void 0:e.userId,avatar:ie,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title,doctorId:y,hospitalId:w,hasQuickBooking:x},null==z?void 0:z.authorProps)}))),"expert"===le&&v?t.createElement(ia,{isOpen:re,onClose:()=>se(!1),expertId:v}):null,"expert"===le&&y?t.createElement($t,{isOpen:re,onClose:()=>se(!1),doctorId:y,locale:_}):null,"expert"===le&&w?t.createElement(da,{isOpen:re,onClose:()=>se(!1),hospitalId:w,locale:_}):null,t.createElement("div",{className:`hhg-card-author ${ee.root} ${a} ${be?"expert-author":""}`,"data-background":!O&&be,"data-is-marrybaby":te},t.createElement(Ft,{dataEventCategory:H,dataEventAction:Z,dataEventLabel:q,onAvatarClick:ue,avatarProps:Object.assign(Object.assign({avatar:k?pe.getAssetPath(te?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):ie,username:oe},S),{style:{cursor:k||!c&&!N?"default":"pointer"}}),avatarIcon:B||be&&t.createElement(Ct,{size:F||15})},V?t.createElement("div",{onClick:ue},V):!L&&t.createElement(Ft.Row,null,t.createElement(Ft.ColLeft,null,t.createElement(D,{align:"center",onClick:ue},t.createElement(Ft.MainText,{onClick:ue},oe,"chatbot"===g?t.createElement(t.Fragment,null," ",t.createElement(kt,{color:$.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):t.createElement(Vt,null))),A||t.createElement(Ft.SubTextRow,{style:x?{position:"relative"}:{}},we.map(((e,a)=>t.createElement(t.Fragment,null,0!==a&&t.createElement(Ft.SubDivider,null),t.createElement(Ft.SubText,null,e)))),x&&ye&&t.createElement(R,{sx:{marginTop:U(5)}},t.createElement(fe,{bookingId:y||w,bookingType:y?"doctor":w?"hospital":void 0,size:Y?"xs":"sm"})))))),I&&I))};ha.MainText=Ft.MainText,ha.SubText=Ft.SubText,ha.SubTextRow=Ft.SubTextRow,ha.SubDivider=Ft.SubDivider,ha.AuthorBadge=Vt,ha.DisplayName=()=>{const{displayName:e}=o(Rt);return t.createElement(R,null,e)};const ba=e=>({message:e("notification.failure"),type:"danger"}),fa=Re.div`
|
|
908
908
|
position: relative;
|
|
909
909
|
display: flex;
|
|
910
910
|
height: 100%;
|
|
@@ -937,7 +937,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
937
937
|
|
|
938
938
|
label {
|
|
939
939
|
margin-bottom: 5px;
|
|
940
|
-
color: ${
|
|
940
|
+
color: ${$.colors.gray600};
|
|
941
941
|
/* font-family: 'Open Sans', sans-serif; */
|
|
942
942
|
font-size: 13px;
|
|
943
943
|
font-weight: bold;
|
|
@@ -945,7 +945,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
945
945
|
|
|
946
946
|
.input-group-label {
|
|
947
947
|
margin-bottom: 5px;
|
|
948
|
-
color: ${
|
|
948
|
+
color: ${$.colors.gray600};
|
|
949
949
|
/* font-family: 'Open Sans', sans-serif; */
|
|
950
950
|
font-size: 13px;
|
|
951
951
|
font-weight: bold;
|
|
@@ -982,12 +982,12 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
982
982
|
.swich-input-group {
|
|
983
983
|
padding: 12px 16px;
|
|
984
984
|
border-radius: 8px;
|
|
985
|
-
background: ${
|
|
985
|
+
background: ${$.colors.neutral50};
|
|
986
986
|
|
|
987
987
|
&.askdoctor-switch {
|
|
988
|
-
background: ${
|
|
988
|
+
background: ${$.colors.primary50};
|
|
989
989
|
&.mb-color {
|
|
990
|
-
background: ${
|
|
990
|
+
background: ${$.mbColors.tonePink};
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
|
|
@@ -1006,21 +1006,21 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1006
1006
|
.label-txt {
|
|
1007
1007
|
font-weight: normal;
|
|
1008
1008
|
font-size: 14px;
|
|
1009
|
-
color: ${
|
|
1009
|
+
color: ${$.colors.gray800};
|
|
1010
1010
|
margin-left: 10px;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
`,
|
|
1013
|
+
`,ya=Re.div`
|
|
1014
1014
|
display: flex;
|
|
1015
1015
|
width: 100%;
|
|
1016
1016
|
align-items: center;
|
|
1017
1017
|
justify-content: space-between;
|
|
1018
1018
|
padding: 12px 16px;
|
|
1019
1019
|
border-radius: 8px;
|
|
1020
|
-
background: ${
|
|
1020
|
+
background: ${$.colors.primary50};
|
|
1021
1021
|
|
|
1022
1022
|
&[data-is-marry-baby='true'] {
|
|
1023
|
-
background: ${
|
|
1023
|
+
background: ${$.mbColors.tonePink};
|
|
1024
1024
|
}
|
|
1025
1025
|
.switch-label {
|
|
1026
1026
|
display: flex;
|
|
@@ -1028,9 +1028,9 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1028
1028
|
gap: 12px;
|
|
1029
1029
|
}
|
|
1030
1030
|
margin-bottom: 12px;
|
|
1031
|
-
`,
|
|
1031
|
+
`,wa=Re.div`
|
|
1032
1032
|
margin-bottom: 12px;
|
|
1033
|
-
color: ${
|
|
1033
|
+
color: ${$.colors.red700};
|
|
1034
1034
|
svg {
|
|
1035
1035
|
margin-right: 5px;
|
|
1036
1036
|
}
|
|
@@ -1038,7 +1038,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1038
1038
|
span {
|
|
1039
1039
|
vertical-align: middle;
|
|
1040
1040
|
}
|
|
1041
|
-
`;var
|
|
1041
|
+
`;var xa="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 Ea=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,Ca=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,ka=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,Na=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,Aa=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,Ta=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,za=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,Pa=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,Ia=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,Sa=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,La=({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},Ma=(e,t)=>e.replace(ka,((e,a,o)=>La({text:o||a,url:a,method:t}))).replace(Ia,((e,a,o)=>La({text:o||a,url:a,method:t}))),ja=(e,t=[])=>e.replace(Ta,((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>`})),Ba=e=>{const t=[];return e.replace(/(\&)+/g,"&").replace(Ca,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},Fa=(e,t)=>{const a=[];return e.replace(Na,((e,t)=>(a.push(t),e))).replace(Ta,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Oa=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ra=e=>e.replace(Sa,"$1"),Va=(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(Ca,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(Ea,((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(Na,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Ra(e)),t),Da=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Ua=e=>e.match(Pa)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Wa=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Ra(e).replace(new RegExp(`\\b(${a.map((e=>Oa(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},Ha=(e,t,a)=>"string"==typeof e?Promise.resolve(e):B(void 0,void 0,void 0,(function*(){var o;const n=new FormData;if(e.type.startsWith("image/gif"))n.append("image",e);else{const t=yield import("browser-image-compression"),a=yield t.default(e,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});n.append("image",a)}const i=a?z:P,l=yield i(h(a?T.COMMENT.IMAGE_UPLOAD:b.COMMENT.IMAGE_UPLOAD,{_locale:t}),"POST",{data:n});return(null===(o=null==l?void 0:l.data)||void 0===o?void 0:o.image)||""})),Za=(e,t)=>{const[a,o]=n(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:r((()=>(e||a).map((e=>"string"==typeof e?e:URL.createObjectURL(e)))),[e,a]),imageFiles:e||a}},qa=Re.div`
|
|
1042
1042
|
input:focus,
|
|
1043
1043
|
textarea:focus,
|
|
1044
1044
|
[contenteditable='true'] {
|
|
@@ -1047,11 +1047,11 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1047
1047
|
|
|
1048
1048
|
.textarea-control {
|
|
1049
1049
|
position: relative;
|
|
1050
|
-
border: 1px solid ${
|
|
1051
|
-
border-radius: ${
|
|
1050
|
+
border: 1px solid ${$.colors.gray200};
|
|
1051
|
+
border-radius: ${$.borderRadius};
|
|
1052
1052
|
&.--focus {
|
|
1053
|
-
border-color: ${
|
|
1054
|
-
box-shadow: 0px 0px 2px 2px ${
|
|
1053
|
+
border-color: ${$.colors.primaryBase};
|
|
1054
|
+
box-shadow: 0px 0px 2px 2px ${$.colors.primary200};
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
1057
|
.textarea-wrapper {
|
|
@@ -1068,7 +1068,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1068
1068
|
height: 40px;
|
|
1069
1069
|
align-items: center;
|
|
1070
1070
|
justify-content: flex-end;
|
|
1071
|
-
border-top: 1px solid ${
|
|
1071
|
+
border-top: 1px solid ${$.colors.gray200};
|
|
1072
1072
|
margin: 0 1rem;
|
|
1073
1073
|
|
|
1074
1074
|
.tool-button {
|
|
@@ -1108,7 +1108,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1108
1108
|
height: 0;
|
|
1109
1109
|
padding-top: 67%;
|
|
1110
1110
|
margin-top: 1rem;
|
|
1111
|
-
border-radius: ${
|
|
1111
|
+
border-radius: ${$.borderRadius};
|
|
1112
1112
|
|
|
1113
1113
|
& > img {
|
|
1114
1114
|
position: absolute;
|
|
@@ -1133,7 +1133,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1133
1133
|
|
|
1134
1134
|
.description-label {
|
|
1135
1135
|
margin-bottom: 5px;
|
|
1136
|
-
color: ${
|
|
1136
|
+
color: ${$.colors.gray600};
|
|
1137
1137
|
/* font-family: 'Open Sans', sans-serif; */
|
|
1138
1138
|
font-size: 13px;
|
|
1139
1139
|
font-weight: bold;
|
|
@@ -1141,7 +1141,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1141
1141
|
|
|
1142
1142
|
.count-string {
|
|
1143
1143
|
margin-top: 5px;
|
|
1144
|
-
color: ${
|
|
1144
|
+
color: ${$.colors.gray500};
|
|
1145
1145
|
font-size: 11px;
|
|
1146
1146
|
text-align: right;
|
|
1147
1147
|
}
|
|
@@ -1156,7 +1156,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1156
1156
|
margin-right: 8px;
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
|
-
`,
|
|
1159
|
+
`,_a=Re.div`
|
|
1160
1160
|
height: 100%;
|
|
1161
1161
|
position: relative;
|
|
1162
1162
|
width: 100%;
|
|
@@ -1199,12 +1199,12 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1199
1199
|
.link-input-button-wrapper {
|
|
1200
1200
|
&[data-is-marrybaby='true'] {
|
|
1201
1201
|
.link-input-button {
|
|
1202
|
-
border: solid 2px ${
|
|
1203
|
-
background-color: ${
|
|
1202
|
+
border: solid 2px ${$.mbColors.pink};
|
|
1203
|
+
background-color: ${$.mbColors.pink};
|
|
1204
1204
|
&:hover:not(:disabled) {
|
|
1205
|
-
border: solid 2px ${
|
|
1206
|
-
background-color: ${
|
|
1207
|
-
color: ${
|
|
1205
|
+
border: solid 2px ${$.mbColors.pink};
|
|
1206
|
+
background-color: ${$.colors.white};
|
|
1207
|
+
color: ${$.mbColors.pink};
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
@@ -1213,7 +1213,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1213
1213
|
width: auto;
|
|
1214
1214
|
height: auto;
|
|
1215
1215
|
padding: 0.4rem 1rem;
|
|
1216
|
-
background-color: ${
|
|
1216
|
+
background-color: ${$.colors.primaryBase};
|
|
1217
1217
|
|
|
1218
1218
|
&:disabled {
|
|
1219
1219
|
border-color: #bfbfbf;
|
|
@@ -1222,14 +1222,14 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1222
1222
|
cursor: not-allowed;
|
|
1223
1223
|
}
|
|
1224
1224
|
&:hover:not(:disabled) {
|
|
1225
|
-
background-color: ${
|
|
1225
|
+
background-color: ${$.colors.primaryHover};
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
.error-text {
|
|
1229
1229
|
padding: 0;
|
|
1230
1230
|
margin-bottom: 0.5rem;
|
|
1231
1231
|
font-weight: 600;
|
|
1232
|
-
color: ${
|
|
1232
|
+
color: ${$.colors.red700};
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
@@ -1258,8 +1258,8 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1258
1258
|
min-height: 100%;
|
|
1259
1259
|
/* padding: 14px 16px; */
|
|
1260
1260
|
border: none;
|
|
1261
|
-
border-radius: ${
|
|
1262
|
-
color: ${
|
|
1261
|
+
border-radius: ${$.borderRadius};
|
|
1262
|
+
color: ${$.colors.gray800};
|
|
1263
1263
|
font-size: 1rem;
|
|
1264
1264
|
line-height: 1.5;
|
|
1265
1265
|
resize: none;
|
|
@@ -1309,7 +1309,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1309
1309
|
.mention-search-container {
|
|
1310
1310
|
position: absolute;
|
|
1311
1311
|
background: white;
|
|
1312
|
-
border-radius: ${
|
|
1312
|
+
border-radius: ${$.borderRadius};
|
|
1313
1313
|
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
|
|
1314
1314
|
drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
|
|
1315
1315
|
drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
|
|
@@ -1322,7 +1322,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1322
1322
|
width: 14px;
|
|
1323
1323
|
}
|
|
1324
1324
|
::-webkit-scrollbar-thumb {
|
|
1325
|
-
border-radius: ${
|
|
1325
|
+
border-radius: ${$.borderRadius};
|
|
1326
1326
|
background-color: #d9d9d9;
|
|
1327
1327
|
@supports (background-clip: padding-box) {
|
|
1328
1328
|
border: 3px solid rgba(0, 0, 0, 0);
|
|
@@ -1343,7 +1343,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1343
1343
|
display: flex;
|
|
1344
1344
|
align-items: center;
|
|
1345
1345
|
&.item-selected {
|
|
1346
|
-
background-color: ${
|
|
1346
|
+
background-color: ${$.colors.gray100};
|
|
1347
1347
|
}
|
|
1348
1348
|
.search-avatar {
|
|
1349
1349
|
width: 40px;
|
|
@@ -1353,7 +1353,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
`;let qa=null;function _a(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=Ga(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 Ga(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=Ga(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").length)})),t}B(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield import("react-quill");qa=e.default;const t=e.Quill||qa.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 Qa=(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(ka,((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:Da(i,n)};let l=(e=>e.replace(Pa,((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(wa,((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(Aa)?a:n?`<a href="${n}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(xa,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return Ia({text:t,url:t,method:"edit"})}return e})).replace(za,((e,t,a)=>Ia({text:a||t,url:t,method:"edit"})))})(i));const r=(e=>{var t;return[...Ma(e),...(null===(t=e.match(wa))||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);Ra.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(Ba).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Ba).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:Da(l,n)}}return{value:Da(l,n)}},Xa=({html:e,onChange:a,className:r,style:d,onImagePickerClick:m,bannedWords:g=[],onInvalidUrlsChange:f,onPreviewUrlChange:y,setEditorRef:w,isReplying:x})=>{var E,C,k,N;const A=i([]);A.current=g;const[I,S]=n([]),[L,M]=n(null),{data:{locale:j}}=o(p),F=(null==g?void 0:g.join(","))||"";l((()=>{var e,t;const a=null===(t=null===(e=Z.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;V(a)}),[F]);const O=e=>{L&&L.url===e||(M({url:e,isFetching:!0}),v(h(b.FETCH_PREVIEW,{_locale:j}),"POST",{data:{link:e}}).then((t=>{var a,o,n,i;M({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((()=>{M(null)})))},R=i(O);R.current=O;const V=s(Pe((e=>{if(e){const t=Qa(e,{bannedWords:A.current,formatUrl:!0}),{invalidUrls:o,previewUrl:n,value:i}=t;o&&S(o),n?R.current(n):M(null),i!==e&&(null==a||a(i))}}),500),[]);l((()=>{f&&f(I)}),[I]),l((()=>{y&&((null==L?void 0:L.url)?y({title:L.title||"",url:L.url||"",image:L.image||"",description:L.description||""}):y(null))}),[L]);const D=i(m);D.current=m;const U=Ze(),W=i({toolbar:{handlers:{image:()=>{var e;return null===(e=D.current)||void 0===e?void 0:e.call(D)},link:()=>!1},container:"#toolbar-"+U},preserveWhiteSpace:!0}),H=i(-1),Z=i(null);w&&(null===(C=null===(E=Z.current)||void 0===E?void 0:E.getEditor())||void 0===C?void 0:C.root)&&w(null===(N=null===(k=Z.current)||void 0===k?void 0:k.getEditor())||void 0===N?void 0:N.root);const q=()=>{var e,t,a,o,n,i,l,r;if(null===(t=null===(e=Z.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=_a(null===(o=null===(a=Z.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(i=null===(n=Z.current)||void 0===n?void 0:n.getEditor())||void 0===i?void 0:i.root.innerHTML;if(e>=0&&e<t.length){if(ja(t,!0).length<30-(x?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=Z.current)||void 0===l?void 0:l.getEditor())||void 0===r?void 0:r.root);e?(K(e.name,e.rect),J.current=e.replaceRange):(J.current=null,K("",null))}else J.current=null,K("",null);H.current=e}}else G([])},[_,G]=n([]),[Q,X]=n({top:0,left:0}),K=s(Pe(((e,t,a)=>B(void 0,void 0,void 0,(function*(){var o,n,i,l;if(!e||!DOMRect)return G([]);const r=yield((null===(o=Be(u))||void 0===o?void 0:o.length)||0)>0?P(h(b.SEARCH_USER,{_locale:j,name:e}),"get"):z(h(T.SEARCH_USER,{_locale:j,name:e}),"get");ae(0),G(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==a?void 0:a.includes(String(e.id))))));const s=t,c=null===(l=Y.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,X(a)}}))),500),[]),$=(e,t)=>{var a,o,n;if(J.current){J.current.deleteContents();const i=document.createElement("mention");i.setAttribute("data-id",e),i.setAttribute("data-name",t),i.innerText=t;const l=document.createTextNode(" ");J.current.insertNode(l),J.current.insertNode(i);(null===(o=null===(a=Z.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(J.current.endContainer,J.current.endOffset),null==r||r.setEnd(J.current.endContainer,J.current.endOffset)}G([])},Y=i(null),J=i(null),ee=i(null),[te,ae]=n(0);return l((()=>{if(ee.current){const e=ee.current,t=e.children.item(te);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)}}}),[te]),l((()=>{const e=function(e){var t;(null===(t=Y.current)||void 0===t?void 0:t.contains(e.target))||G([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),t.createElement(Za,{ref:Y,className:r,style:d,onKeyDownCapture:e=>{if(null==_?void 0:_.length){let t=!1;if("ArrowDown"===e.key)t=!0,ae((e=>e+1>=_.length?0:e+1));else if("Escape"===e.key)t=!0,ae(0),G([]);else if("ArrowUp"===e.key)t=!0,ae((e=>e-1<0?_.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=_[te];e&&(t=!0,$(e.id,e.name))}if(t)return e.preventDefault(),!1}}},t.createElement(Ka,{id:U,onAddLink:(e,t)=>{var o,n;const i=H.current+1,l=null===(n=null===(o=Z.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),V(r)}}),qa&&t.createElement(qa,{ref:Z,theme:"snow",value:e,onChange:e=>{null==a||a(e),V(e),q()},onChangeSelection:()=>{q()},modules:W.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==_?void 0:_.length)&&t.createElement("div",{ref:ee,className:"mention-search-container",style:Q},_.map(((e,a)=>t.createElement("div",{className:"mention-search-item "+(te===a?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),$(e.id,e.name)},onMouseEnter:()=>{ae(a)}},t.createElement(we,{className:"search-avatar",username:e.name,avatar:e.avatar}),t.createElement("div",null,t.createElement(c,{size:"p2"},e.name),t.createElement(c,{size:"p4",color:"#595959"},"@",e.username)))))))},Ka=({onAddLink:e,id:a})=>t.createElement("div",{id:"toolbar-"+a,onClick:e=>{e.preventDefault(),e.stopPropagation()}},t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-bold",type:"button"}),t.createElement("button",{className:"ql-italic",type:"button"}),t.createElement("button",{className:"ql-underline",type:"button"})),t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-list",value:"ordered",type:"button"}),t.createElement("button",{className:"ql-list",value:"bullet",type:"button"})),t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-image",type:"button"}),e&&t.createElement(ft,{className:"link-tool-wrapper",toggleButtonContent:t.createElement("img",{className:"link-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.54545 16H7.09091C6.55368 16 6.02172 15.8965 5.52539 15.6955C5.02905 15.4945 4.57808 15.1999 4.1982 14.8284C3.43101 14.0783 3 13.0609 3 12C3 10.9391 3.43101 9.92172 4.1982 9.17157C4.96539 8.42143 6.00593 8 7.09091 8H9.54545M13.9256 8H16.9091C17.4463 8 17.9783 8.10346 18.4746 8.30448C18.9709 8.5055 19.4219 8.80014 19.8018 9.17157C20.1817 9.54301 20.483 9.98396 20.6886 10.4693C20.8942 10.9546 21 11.4747 21 12C21 12.5253 20.8942 13.0454 20.6886 13.5307C20.483 14.016 20.1817 14.457 19.8018 14.8284C19.4219 15.1999 18.9709 15.4945 18.4746 15.6955C17.9783 15.8965 17.4463 16 16.9091 16H13.9256' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9 12H15' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),buttonProps:{size:"md",color:"transparent"},align:"end"},(({setShow:a})=>t.createElement(Ya,{onAddUrl:e,setShow:a}))))),$a=["notification.limitUrlDomain","notification.urlWrongFormat"],Ya=({onAddUrl:e,setShow:a})=>{const{data:{env:{isMarryBaby:i}}}=o(p),{t:l}=Q(),[r,s]=n(""),[d,m]=n(""),[u,g]=n(-1),v=r.trim()&&d.trim()&&u<0;return t.createElement("div",{className:"link-tool-popover"},t.createElement(ze,{name:"url",value:r,size:"md",label:"URL",placeholder:l("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{s(e),(e=>{const t=Va(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Ra.some((t=>e.origin.endsWith("/"+t)||e.origin.endsWith("."+t)))?(g(-1),!0):(g(0),!1):(g(1),!1)}catch(e){return g(1),!1}})(e)}}),u>=0&&t.createElement(c,{size:"c2",className:"error-text"},l($a[u])),t.createElement(ze,{name:"text",value:d,size:"md",label:l("createPost.urlText"),placeholder:l("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>m(e)}),t.createElement("div",{"data-is-marrybaby":i,className:"link-input-button-wrapper"},t.createElement(Se,{theme:i?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{v&&(e(d.trim(),Va(r.trim())),a&&a(!1))},isDisabled:!v},l("insert"))))};var Ja="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 eo=({className:e,style:a,bannedWords:o=[],value:r,onChange:s,onPreviewUrlChange:d,onInvalidUrlsChange:m,onImageFilesChange:p,imageFiles:u,isReplying:g})=>{const{t:v}=Q(),[h,b]=n(null),f=i(null),{onSelectImages:y,onRemoveImage:w,imageSrcs:x}=Wa(u,p);return l((()=>{d&&((null==h?void 0:h.url)?d({title:h.title||"",url:h.url||"",image:h.image||"",description:h.description||""}):d(null))}),[h]),t.createElement(Ha,{className:e,style:a},t.createElement(c,{size:"p4",className:"description-label"},v("createPost.popup.description")),t.createElement("div",{className:"textarea-control"},t.createElement("div",{className:"textarea-wrapper"},t.createElement(Xa,{html:r||"",onChange:s,bannedWords:o,onImagePickerClick:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.click()},onPreviewUrlChange:b,onInvalidUrlsChange:m,isReplying:g}))),t.createElement(c,{size:"p4",className:"count-string"},v("character"),": ",X(r||"").length),(!x||0===x.length)&&h&&t.createElement("div",{className:"link-preview-wrapper"},h.isFetching?t.createElement(Gt,null):t.createElement(t.Fragment,null,t.createElement($e,{title:h.title,url:h.url||"#",image:h.image,noRefetch:!0}),t.createElement("img",{src:Ja,className:"icon-close",onClick:()=>b(null),loading:"lazy"}))),t.createElement("input",{ref:f,type:"file",accept:"image/png, image/gif, image/jpeg",multiple:!0,style:{display:"none"},onChange:y}),x.length>I?t.createElement("div",{className:"input-notification"},t.createElement("img",{src:ya,loading:"lazy"}),t.createElement(c,{size:"p4",color:K.colors.alertWarning},v("createPost.popup.warningImage"))):null,x.length>0&&t.createElement("div",{className:"image-gallery"},x.map(((e,a)=>t.createElement("div",{key:a,className:"image-item"},t.createElement("img",{src:e,loading:"lazy"}),t.createElement("img",{className:"close-btn",src:Ja,onClick:()=>w(a),loading:"lazy"}))))))},to=Oe.div`
|
|
1356
|
+
`;let Ga=null;function Qa(e){var t,a;let o=-1;if(void 0!==window.getSelection){const n=window.getSelection();if((null==n?void 0:n.rangeCount)&&(null==n?void 0:n.rangeCount)>0){const n=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(n){const t=n.cloneRange();t.selectNodeContents(e),t.setEnd(n.endContainer,n.endOffset),o=Xa(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 Xa(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=Xa(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").length)})),t}B(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield import("react-quill");Ga=e.default;const t=e.Quill||Ga.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 Ka=(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(Aa,((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:Wa(i,n)};let l=(e=>e.replace(Sa,((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(Ea,((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(za)?a:n?`<a href="${n}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(Ca,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return La({text:t,url:t,method:"edit"})}return e})).replace(Ia,((e,t,a)=>La({text:a||t,url:t,method:"edit"})))})(i));const r=(e=>{var t;return[...Ba(e),...(null===(t=e.match(Ea))||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);Da.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(Oa).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Oa).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:Wa(l,n)}}return{value:Wa(l,n)}},$a=({html:e,onChange:a,className:r,style:d,onImagePickerClick:m,bannedWords:g=[],onInvalidUrlsChange:f,onPreviewUrlChange:y,setEditorRef:w,isReplying:x})=>{var E,C,k,N;const A=i([]);A.current=g;const[I,S]=n([]),[L,M]=n(null),{data:{locale:j}}=o(p),F=(null==g?void 0:g.join(","))||"";l((()=>{var e,t;const a=null===(t=null===(e=Z.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;V(a)}),[F]);const O=e=>{L&&L.url===e||(M({url:e,isFetching:!0}),v(h(b.FETCH_PREVIEW,{_locale:j}),"POST",{data:{link:e}}).then((t=>{var a,o,n,i;M({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((()=>{M(null)})))},R=i(O);R.current=O;const V=s(Ie((e=>{if(e){const t=Ka(e,{bannedWords:A.current,formatUrl:!0}),{invalidUrls:o,previewUrl:n,value:i}=t;o&&S(o),n?R.current(n):M(null),i!==e&&(null==a||a(i))}}),500),[]);l((()=>{f&&f(I)}),[I]),l((()=>{y&&((null==L?void 0:L.url)?y({title:L.title||"",url:L.url||"",image:L.image||"",description:L.description||""}):y(null))}),[L]);const D=i(m);D.current=m;const U=X(),W=i({toolbar:{handlers:{image:()=>{var e;return null===(e=D.current)||void 0===e?void 0:e.call(D)},link:()=>!1},container:"#toolbar-"+U},preserveWhiteSpace:!0}),H=i(-1),Z=i(null);w&&(null===(C=null===(E=Z.current)||void 0===E?void 0:E.getEditor())||void 0===C?void 0:C.root)&&w(null===(N=null===(k=Z.current)||void 0===k?void 0:k.getEditor())||void 0===N?void 0:N.root);const q=()=>{var e,t,a,o,n,i,l,r;if(null===(t=null===(e=Z.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Qa(null===(o=null===(a=Z.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(i=null===(n=Z.current)||void 0===n?void 0:n.getEditor())||void 0===i?void 0:i.root.innerHTML;if(e>=0&&e<t.length){if(Fa(t,!0).length<30-(x?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=Z.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);H.current=e}}else G([])},[_,G]=n([]),[Q,K]=n({top:0,left:0}),$=s(Ie(((e,t,a)=>B(void 0,void 0,void 0,(function*(){var o,n,i,l;if(!e||!DOMRect)return G([]);const r=yield((null===(o=Fe(u))||void 0===o?void 0:o.length)||0)>0?P(h(b.SEARCH_USER,{_locale:j,name:e}),"get"):z(h(T.SEARCH_USER,{_locale:j,name:e}),"get");oe(0),G(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==a?void 0:a.includes(String(e.id))))));const s=t,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=Z.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)}G([])},J=i(null),ee=i(null),te=i(null),[ae,oe]=n(0);return l((()=>{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]),l((()=>{const e=function(e){var t;(null===(t=J.current)||void 0===t?void 0:t.contains(e.target))||G([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),t.createElement(_a,{ref:J,className:r,style:d,onKeyDownCapture:e=>{if(null==_?void 0:_.length){let t=!1;if("ArrowDown"===e.key)t=!0,oe((e=>e+1>=_.length?0:e+1));else if("Escape"===e.key)t=!0,oe(0),G([]);else if("ArrowUp"===e.key)t=!0,oe((e=>e-1<0?_.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=_[ae];e&&(t=!0,Y(e.id,e.name))}if(t)return e.preventDefault(),!1}}},t.createElement(Ya,{id:U,onAddLink:(e,t)=>{var o,n;const i=H.current+1,l=null===(n=null===(o=Z.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),V(r)}}),Ga&&t.createElement(Ga,{ref:Z,theme:"snow",value:e,onChange:e=>{null==a||a(e),V(e),q()},onChangeSelection:()=>{q()},modules:W.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==_?void 0:_.length)&&t.createElement("div",{ref:te,className:"mention-search-container",style:Q},_.map(((e,a)=>t.createElement("div",{className:"mention-search-item "+(ae===a?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),Y(e.id,e.name)},onMouseEnter:()=>{oe(a)}},t.createElement(xe,{className:"search-avatar",username:e.name,avatar:e.avatar}),t.createElement("div",null,t.createElement(c,{size:"p2"},e.name),t.createElement(c,{size:"p4",color:"#595959"},"@",e.username)))))))},Ya=({onAddLink:e,id:a})=>t.createElement("div",{id:"toolbar-"+a,onClick:e=>{e.preventDefault(),e.stopPropagation()}},t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-bold",type:"button"}),t.createElement("button",{className:"ql-italic",type:"button"}),t.createElement("button",{className:"ql-underline",type:"button"})),t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-list",value:"ordered",type:"button"}),t.createElement("button",{className:"ql-list",value:"bullet",type:"button"})),t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-image",type:"button"}),e&&t.createElement(ft,{className:"link-tool-wrapper",toggleButtonContent:t.createElement("img",{className:"link-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.54545 16H7.09091C6.55368 16 6.02172 15.8965 5.52539 15.6955C5.02905 15.4945 4.57808 15.1999 4.1982 14.8284C3.43101 14.0783 3 13.0609 3 12C3 10.9391 3.43101 9.92172 4.1982 9.17157C4.96539 8.42143 6.00593 8 7.09091 8H9.54545M13.9256 8H16.9091C17.4463 8 17.9783 8.10346 18.4746 8.30448C18.9709 8.5055 19.4219 8.80014 19.8018 9.17157C20.1817 9.54301 20.483 9.98396 20.6886 10.4693C20.8942 10.9546 21 11.4747 21 12C21 12.5253 20.8942 13.0454 20.6886 13.5307C20.483 14.016 20.1817 14.457 19.8018 14.8284C19.4219 15.1999 18.9709 15.4945 18.4746 15.6955C17.9783 15.8965 17.4463 16 16.9091 16H13.9256' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9 12H15' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),buttonProps:{size:"md",color:"transparent"},align:"end"},(({setShow:a})=>t.createElement(eo,{onAddUrl:e,setShow:a}))))),Ja=["notification.limitUrlDomain","notification.urlWrongFormat"],eo=({onAddUrl:e,setShow:a})=>{const{data:{env:{isMarryBaby:i}}}=o(p),{t:l}=Q(),[r,s]=n(""),[d,m]=n(""),[u,g]=n(-1),v=r.trim()&&d.trim()&&u<0;return t.createElement("div",{className:"link-tool-popover"},t.createElement(Pe,{name:"url",value:r,size:"md",label:"URL",placeholder:l("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{s(e),(e=>{const t=Ua(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Da.some((t=>e.origin.endsWith("/"+t)||e.origin.endsWith("."+t)))?(g(-1),!0):(g(0),!1):(g(1),!1)}catch(e){return g(1),!1}})(e)}}),u>=0&&t.createElement(c,{size:"c2",className:"error-text"},l(Ja[u])),t.createElement(Pe,{name:"text",value:d,size:"md",label:l("createPost.urlText"),placeholder:l("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>m(e)}),t.createElement("div",{"data-is-marrybaby":i,className:"link-input-button-wrapper"},t.createElement(Le,{theme:i?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{v&&(e(d.trim(),Ua(r.trim())),a&&a(!1))},isDisabled:!v},l("insert"))))};var to="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 ao=({className:e,style:a,bannedWords:o=[],value:r,onChange:s,onPreviewUrlChange:d,onInvalidUrlsChange:m,onImageFilesChange:p,imageFiles:u,isReplying:g})=>{const{t:v}=Q(),[h,b]=n(null),f=i(null),{onSelectImages:y,onRemoveImage:w,imageSrcs:x}=Za(u,p);return l((()=>{d&&((null==h?void 0:h.url)?d({title:h.title||"",url:h.url||"",image:h.image||"",description:h.description||""}):d(null))}),[h]),t.createElement(qa,{className:e,style:a},t.createElement(c,{size:"p4",className:"description-label"},v("createPost.popup.description")),t.createElement("div",{className:"textarea-control"},t.createElement("div",{className:"textarea-wrapper"},t.createElement($a,{html:r||"",onChange:s,bannedWords:o,onImagePickerClick:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.click()},onPreviewUrlChange:b,onInvalidUrlsChange:m,isReplying:g}))),t.createElement(c,{size:"p4",className:"count-string"},v("character"),": ",K(r||"").length),(!x||0===x.length)&&h&&t.createElement("div",{className:"link-preview-wrapper"},h.isFetching?t.createElement(Kt,null):t.createElement(t.Fragment,null,t.createElement($e,{title:h.title,url:h.url||"#",image:h.image,noRefetch:!0}),t.createElement("img",{src:to,className:"icon-close",onClick:()=>b(null),loading:"lazy"}))),t.createElement("input",{ref:f,type:"file",accept:"image/png, image/gif, image/jpeg",multiple:!0,style:{display:"none"},onChange:y}),x.length>I?t.createElement("div",{className:"input-notification"},t.createElement("img",{src:xa,loading:"lazy"}),t.createElement(c,{size:"p4",color:$.colors.alertWarning},v("createPost.popup.warningImage"))):null,x.length>0&&t.createElement("div",{className:"image-gallery"},x.map(((e,a)=>t.createElement("div",{key:a,className:"image-item"},t.createElement("img",{src:e,loading:"lazy"}),t.createElement("img",{className:"close-btn",src:to,onClick:()=>w(a),loading:"lazy"}))))))},oo=Re.div`
|
|
1357
1357
|
input:focus,
|
|
1358
1358
|
textarea:focus,
|
|
1359
1359
|
[contenteditable='true'] {
|
|
@@ -1365,13 +1365,13 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1365
1365
|
width: 100%;
|
|
1366
1366
|
padding: 12px 16px;
|
|
1367
1367
|
border: solid 1px #d9d9d9;
|
|
1368
|
-
border-radius: ${
|
|
1368
|
+
border-radius: ${$.borderRadius};
|
|
1369
1369
|
font-size: 16px;
|
|
1370
1370
|
line-height: 1.2;
|
|
1371
1371
|
white-space: nowrap;
|
|
1372
1372
|
:focus {
|
|
1373
|
-
border-color: ${
|
|
1374
|
-
box-shadow: 0px 0px 2px 2px ${
|
|
1373
|
+
border-color: ${$.colors.primaryBase};
|
|
1374
|
+
box-shadow: 0px 0px 2px 2px ${$.colors.primary200};
|
|
1375
1375
|
}
|
|
1376
1376
|
br {
|
|
1377
1377
|
display: none;
|
|
@@ -1399,18 +1399,18 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1399
1399
|
label {
|
|
1400
1400
|
display: block;
|
|
1401
1401
|
margin-bottom: 5px;
|
|
1402
|
-
color: ${
|
|
1402
|
+
color: ${$.colors.gray600};
|
|
1403
1403
|
font-size: 13px;
|
|
1404
1404
|
font-weight: bold;
|
|
1405
1405
|
}
|
|
1406
1406
|
|
|
1407
1407
|
.count-string {
|
|
1408
1408
|
margin-top: 5px;
|
|
1409
|
-
color: ${
|
|
1409
|
+
color: ${$.colors.gray500};
|
|
1410
1410
|
font-size: 11px;
|
|
1411
1411
|
text-align: right;
|
|
1412
1412
|
}
|
|
1413
|
-
`,
|
|
1413
|
+
`,no=(e,t)=>{if(!t)return e;const{limit:a,bannedWords:o=[]}=t,n="number"==typeof a&&a>=0?e.substring(0,a):e;return Wa(n,o)},io=({className:e,style:a,bannedWords:o=[],value:r,onChange:d})=>{var m;const{t:p}=Q(),[u,g]=n(""),v=i(null);l((()=>{if(v.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=v.current;return t.addEventListener("paste",e,{passive:!0}),()=>t.removeEventListener("paste",e)}}),[v]);const h=(null==o?void 0:o.join(","))||"";l((()=>{var e;if(h){const t=null===(e=v.current)||void 0===e?void 0:e.innerText;if(t){const e=Wa(t,o);e!==t&&(d&&d(e),g(e))}}}),[h]);const b=s(Ie((()=>{if(v.current){const e=no(v.current.innerText,{limit:120,bannedWords:o});d&&d(e),g(e)}}),300),[]);return l((()=>{setTimeout((()=>{var e;null===(e=v.current)||void 0===e||e.focus()}),500)}),[]),t.createElement(oo,{className:e,style:a},t.createElement(Pe,{name:"title",value:r||u,size:"md",label:p("createPost.title"),CustomInput:t.createElement(Se,{innerRef:v,html:r||u,onChange:()=>{if(v.current&&v.current.innerText!==(r||u)){const e=no(v.current.innerText,{bannedWords:o});d&&d(e),g(e),b()}},className:"title-input"})}),t.createElement(c,{size:"p4",className:"count-string"},p("createPost.popup.wordCount",{count:(null===(m=v.current)||void 0===m?void 0:m.innerText.length)||0,max:120})))},lo=Re.div`
|
|
1414
1414
|
display: flex;
|
|
1415
1415
|
width: 100%;
|
|
1416
1416
|
flex-wrap: wrap;
|
|
@@ -1419,24 +1419,24 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1419
1419
|
.tag-item {
|
|
1420
1420
|
min-height: 32px;
|
|
1421
1421
|
padding: 5px 12px;
|
|
1422
|
-
border: 1px solid ${
|
|
1422
|
+
border: 1px solid ${$.colors.neutral100};
|
|
1423
1423
|
margin-right: 1rem;
|
|
1424
1424
|
margin-bottom: 8px;
|
|
1425
1425
|
border-radius: 1rem;
|
|
1426
|
-
color: ${
|
|
1426
|
+
color: ${$.colors.gray800};
|
|
1427
1427
|
cursor: pointer;
|
|
1428
1428
|
font-size: 13px;
|
|
1429
1429
|
line-height: 22px;
|
|
1430
1430
|
transition: all 0.2s;
|
|
1431
1431
|
|
|
1432
1432
|
&.--active {
|
|
1433
|
-
border-color: ${
|
|
1434
|
-
background: ${
|
|
1435
|
-
color: ${
|
|
1433
|
+
border-color: ${$.colors.primary50};
|
|
1434
|
+
background: ${$.colors.primary50};
|
|
1435
|
+
color: ${$.colors.primaryBase};
|
|
1436
1436
|
}
|
|
1437
1437
|
&[data-disabled='true'] {
|
|
1438
|
-
background: ${
|
|
1439
|
-
color: ${
|
|
1438
|
+
background: ${$.colors.gray100};
|
|
1439
|
+
color: ${$.colors.gray800};
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
.topic-spinner {
|
|
@@ -1459,7 +1459,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
|
-
`,io=({className:e,style:a,topics:s,communityId:c,onChange:d,isLoading:m,disabled:u,forceTopics:g,selectedTopics:f,noFetch:y,dataEventCategory:w,dataEventAction:x,dataEventLabel:E})=>{const{data:{locale:C,env:{isMarryBaby:k}}}=o(p),[N,A]=n(s?[...s]:[]),[T,z]=n(f?[...f]:[]),[P,I]=n(!1),S=i(s);S.current=s,l((()=>{var e;!c||y||(null===(e=S.current)||void 0===e?void 0:e.length)||(A([]),I(!0),B(void 0,void 0,void 0,(function*(){var e;try{const t=yield v(h(b.TOPIC.LIST,{communityId:c,_locale:C}),"GET"),a=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.topics;Array.isArray(a)&&A((()=>(null==a?void 0:a.map(xe).sort(((e,t)=>(e.order||0)-(t.order||0))))||[]))}catch(e){console.log(e),I(!1)}I(!1)})))}),[c,y]);const L=null==s?void 0:s.map((e=>e.id)).join("-"),M=null==N?void 0:N.map((e=>e.id)).join("-"),j=null==g?void 0:g.map((e=>e.id)).join("-");l((()=>{s&&void 0!==L&&L!==M&&A(s)}),[s,L,M]);const F=r((()=>N.filter((e=>!(null==g?void 0:g.some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)))))),[M,j]);return t.createElement(no,{"data-is-marrybaby":k,className:e,style:a},g.map((e=>t.createElement(lo,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:!0,selected:!0,dataEventAction:x,dataEventCategory:w,dataEventLabel:E}))),F.map((e=>t.createElement(lo,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:u,selected:(f||T).some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)),onClick:()=>{const t=f||T,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),d&&f?d(t.slice()):(d&&d(t.slice()),z(t.slice()))},dataEventAction:x,dataEventCategory:w,dataEventLabel:E}))),(m||P)&&t.createElement(Gt,{className:"topic-spinner"}))},lo=e=>{var{topic:a,disabled:o,selected:n,onClick:i}=e,l=F(e,["topic","disabled","selected","onClick"]);return t.createElement("div",Object.assign({className:"tag-item"+(n?" --active":""),"data-disabled":o,onClick:o?void 0:i},l),a.name)},ro=({className:e,style:a,onPostCreatedEdited:i,onClose:r,communities:s=[],forceSelectCommunity:d,forceSelectTopics:m,articleId:u,optionalTopic:g,editPostData:v,defaultCommunity:f,defaultTopics:y,noFetchTopic:w,hideTopicList:x,selectAskDoctor:E,showAskDoctorOptions:C,currentPageUrl:k})=>{const N=!!(null==v?void 0:v.id),{data:{locale:A,env:{isMarryBaby:T}},action:{pushNotifications:z,sanitizeFunction:S}}=o(p),{t:L}=Q(),[M,j]=n(!1),[F,O]=n(E),[R,V]=n(!1),[D,U]=n(!1),[H,Z]=n(!1),[q,_]=n(""),[$,J]=n(""),[ee,ae]=n(d?{label:d.name,value:`${d.id||""}-${d.mappedCategoryId||""}`}:{label:L("community.choose"),value:""}),[oe,ie]=n([...m]||[]),[le,re]=n([]),[se,ce]=n([]),de=d||s.find((e=>`${e.id||""}-${e.mappedCategoryId||""}`===ee.value)),pe=d?[d]:s.filter((e=>e.isActive)).sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),[ue,ve]=n(null),[he,be]=n([]),ye=q&&!D&&X($)&&(g||!g&&oe.length>0)&&de&&(!le||le.length<=I)&&!(null==he?void 0:he.length)&&!H;l((()=>{if(v){const e=v;_(e.title||""),J(La(Sa(e.description||"","edit"),e.mentions)),ae({label:e.community.name,value:`${e.community.id||""}-${e.community.mappedCategoryId||""}`}),ie(e.topics||[]),re(e.photos||[]),j(!!e.isAnonymous||!1),O(!!e.isAskDoctor||!1)}else f&&ae({label:f.name,value:`${f.id||""}-${f.mappedCategoryId||""}`}),y&&ie(y)}),[]),l((()=>{U(""!==q&&!/[a-zA-Z]/.test(q))}),[q]);const we=()=>B(void 0,void 0,void 0,(function*(){var e,t,a,o,n,l,s,c,d;if(C&&void 0===F)return V(!0),!1;const m=yield(({title:e,description:t,communityId:a,imageFiles:o,previewUrl:n,topicIds:i,locale:l,sanitizeFunction:r,categoryCommunityId:s,categoryTopicIds:c,introUrl:d,bannerUrl:m,scheduleTime:p,isAnonymous:u,isAskDoctor:g})=>B(void 0,void 0,void 0,(function*(){const v=new FormData,h=Fa(t),b=Fa(e),f=ja(h);if(v.append("title",b),v.append("description",Oa(h,r)),s?v.append("category_community",String(s)):a&&v.append("community_id",String(a)),v.append("is_anonymous",u?"1":"0"),v.append("is_question",g?"1":"0"),(null==n?void 0:n.title)&&v.append("preview_title",n.title),(null==n?void 0:n.description)&&v.append("preview_description",n.description),(null==n?void 0:n.url)&&v.append("preview_link",ge(n.url)),(null==n?void 0:n.image)&&v.append("preview_image",ge(n.image)),null==i||i.forEach((e=>{v.append("topics[]",String(e||""))})),null==c||c.forEach((e=>{v.append("category_topics[]",String(e||""))})),null==o?void 0:o.length){const e=yield Promise.all(o.map(((e,t)=>new Promise((a=>{setTimeout((()=>{a(Ua(e,l))}),2e3*t)})))));null==e||e.filter(Boolean).slice(0,I).forEach(((e,t)=>{v.append(`images[${t}]`,e)}))}else v.append("images","");return null==f||f.forEach((e=>{v.append("mention_ids[]",e)})),v.append("intro_url",d||""),v.append("banner",m||""),p&&(v.append("post_type","scheduled"),v.append("schedule_datetime",p)),v})))({title:q,description:$,communityId:String((null==de?void 0:de.id)||""),imageFiles:le,previewUrl:ue,topicIds:null==oe?void 0:oe.map((e=>String(e.id||""))).filter(Boolean),locale:A,sanitizeFunction:S,categoryCommunityId:String((null==de?void 0:de.mappedCategoryId)||""),categoryTopicIds:null==oe?void 0:oe.map((e=>String(e.mappedCategoryId||""))).filter(Boolean),isAnonymous:M?1:0,isAskDoctor:F?1:0});let p;u&&m.append("article_id",u),N?(null==v?void 0:v.id)&&(p=yield(({id:e,locale:t,formData:a})=>B(void 0,void 0,void 0,(function*(){return yield P(h(b.POST.UPDATE,{id:e,_locale:t}),"POST",{data:a})})))({id:v.id,formData:m,locale:A})):p=yield(({locale:e,formData:t,isArticleComment:a})=>B(void 0,void 0,void 0,(function*(){return yield P(h(a?b.POST.CREATE_ARTICLE_COMMENT:b.POST.CREATE,{_locale:e}),"POST",{data:t})})))({formData:m,locale:A,isArticleComment:!(null==de?void 0:de.id)&&!!(null==de?void 0:de.mappedCategoryId)});const g=null==p?void 0:p.data;(null==g?void 0:g.id)&&!(null===(t=null===(e=null==p?void 0:p.messages)||void 0===e?void 0:e.moderation)||void 0===t?void 0:t.type)?(z({message:L("createPost.popup.success"),type:"success"}),(e=>{i&&i(Ee(e),N),r&&r()})(g)):"banned"===(null===(o=null===(a=null==p?void 0:p.messages)||void 0===a?void 0:a.moderation)||void 0===o?void 0:o.type)?(z({title:L("notification.post.blocked.title"),message:L("notification.post.blocked.message"),type:"danger"}),p.messages.moderation.words&&ce(p.messages.moderation.words)):"suspect"===(null===(l=null===(n=null==p?void 0:p.messages)||void 0===n?void 0:n.moderation)||void 0===l?void 0:l.type)?(z({title:L("notification.post.suspect.title"),message:L("notification.post.suspect.message"),type:"warning"}),r&&r()):(null===(c=null===(s=null==p?void 0:p.messages)||void 0===s?void 0:s.find)||void 0===c?void 0:c.call(s,(e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(z({message:L("notification.suspend.message"),type:"danger"}),r&&r()):z({message:(null===(d=null==p?void 0:p.messages)||void 0===d?void 0:d[0])||L("notification.failure"),type:"danger"})}));return t.createElement(ha,{className:e,style:a},t.createElement("div",{className:"input-group-container"},t.createElement(oo,{className:"input-group",bannedWords:se,value:q,onChange:_}),D&&t.createElement(fa,null,t.createElement(te,{isSolid:!0,color:K.colors.red700,size:14}),t.createElement(c,{size:"p3",as:"span",color:K.colors.red700},L("createPost.popup.specialCharErr"))),t.createElement(eo,{className:"input-group",bannedWords:se,value:$,onChange:J,onPreviewUrlChange:ve,onInvalidUrlsChange:be,onImageFilesChange:re,imageFiles:le}),C&&t.createElement(ba,{"data-is-marry-baby":T},t.createElement("div",{className:"switch-label"},t.createElement(Y,{isMarryBaby:T,size:T?32:24,color:K.colors.primaryBase,className:"label-icon"}),t.createElement("span",{className:"label-txt"},L("createPost.askDoctor"))),t.createElement(fe,{value:F,choices:[{label:L("createPost.askDoctorChoice.yes"),value:!0,dataEventCategory:"Together",dataEventAction:"Write Post Click - Ask Doctor",dataEventLabel:k},{label:L("createPost.askDoctorChoice.no"),value:!1}],onChange:e=>{"boolean"==typeof e&&(V(!1),O(e))}})),R&&t.createElement(fa,null,t.createElement(te,{isSolid:!0,color:K.colors.red700,size:14}),t.createElement(c,{size:"p3",as:"span",color:K.colors.red700},L("createPost.message.askDoctorRequire"))),t.createElement("div",{className:"input-group"},t.createElement(c,{size:"p4",className:"input-group-label"},L("admin.community")),t.createElement(G,{options:(null==pe?void 0:pe.map((e=>({label:e.name,value:`${e.id||""}-${e.mappedCategoryId||""}`}))))||[],id:"community-picker",placeholder:L("community.choose"),value:ee,dropdownLabelTrackingAttributes:{"data-event-category":"Together","data-event-action":"Write Post Click - Choose Community/Topic","data-event-label":k},onChange:e=>{ae({label:e.label,value:String(e.value)}),ie([])},disabled:!!d}),t.createElement(c,{size:"sm",className:"warning",color:K.colors.gray400},"* ",L("commentPopup.warning.newPost"))),!x&&t.createElement("div",{className:"input-group"},t.createElement(c,{size:"p4",className:"input-group-label"},L("tab.topic")),t.createElement("div",{className:"input-notification"},t.createElement("img",{src:de?"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":ya,loading:"lazy"}),t.createElement(c,{size:"base",color:K.colors.gray500},L(de?"createPost.popup.primary":"createPost.popup.warning"))),de&&t.createElement(io,{className:"tag-list",communityId:de.id,forceTopics:m,onChange:ie,selectedTopics:oe,noFetch:w,dataEventCategory:"Together",dataEventAction:"Write Post Click - Choose Community/Topic",dataEventLabel:k}))),t.createElement("div",{className:"form-action"},t.createElement("div",{className:"input-group"},t.createElement(W,{className:"swich-input-group",labelPosition:"left",name:"PostAnonymous",checked:M,color:T?"pink":void 0,"data-event-category":"Together","data-event-action":"Write Post Click - Incognito","data-event-label":k,label:t.createElement("div",{className:"switch-label"},t.createElement("img",{className:"label-icon",src:me.getAssetPath("anomyous-avatar.svg"),alt:"anomyous avatar",style:{marginRight:"10px",width:"24px"},loading:"lazy"}),t.createElement("span",{className:"label-txt"},L("createPost.postAnonymous"))),value:"Post Anonymous",onChange:e=>j(e.currentTarget.checked),styles:{body:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},label:{display:"flex",alignItems:"center"}}})),t.createElement("div",{className:"input-group"},t.createElement(ne,{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:()=>B(void 0,void 0,void 0,(function*(){if(ye&&!H){Z(!0);try{yield we()}catch(e){console.error(e),z(va(L))}Z(!1)}})),disabled:!ye,loading:H},L("createPost.popup.submit")))))},so=Oe.div`
|
|
1462
|
+
`,ro=({className:e,style:a,topics:s,communityId:c,onChange:d,isLoading:m,disabled:u,forceTopics:g,selectedTopics:f,noFetch:y,dataEventCategory:w,dataEventAction:x,dataEventLabel:E})=>{const{data:{locale:C,env:{isMarryBaby:k}}}=o(p),[N,A]=n(s?[...s]:[]),[T,z]=n(f?[...f]:[]),[P,I]=n(!1),S=i(s);S.current=s,l((()=>{var e;!c||y||(null===(e=S.current)||void 0===e?void 0:e.length)||(A([]),I(!0),B(void 0,void 0,void 0,(function*(){var e;try{const t=yield v(h(b.TOPIC.LIST,{communityId:c,_locale:C}),"GET"),a=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.topics;Array.isArray(a)&&A((()=>(null==a?void 0:a.map(Ee).sort(((e,t)=>(e.order||0)-(t.order||0))))||[]))}catch(e){console.log(e),I(!1)}I(!1)})))}),[c,y]);const L=null==s?void 0:s.map((e=>e.id)).join("-"),M=null==N?void 0:N.map((e=>e.id)).join("-"),j=null==g?void 0:g.map((e=>e.id)).join("-");l((()=>{s&&void 0!==L&&L!==M&&A(s)}),[s,L,M]);const F=r((()=>N.filter((e=>!(null==g?void 0:g.some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)))))),[M,j]);return t.createElement(lo,{"data-is-marrybaby":k,className:e,style:a},g.map((e=>t.createElement(so,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:!0,selected:!0,dataEventAction:x,dataEventCategory:w,dataEventLabel:E}))),F.map((e=>t.createElement(so,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:u,selected:(f||T).some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)),onClick:()=>{const t=f||T,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),d&&f?d(t.slice()):(d&&d(t.slice()),z(t.slice()))},dataEventAction:x,dataEventCategory:w,dataEventLabel:E}))),(m||P)&&t.createElement(Kt,{className:"topic-spinner"}))},so=e=>{var{topic:a,disabled:o,selected:n,onClick:i}=e,l=F(e,["topic","disabled","selected","onClick"]);return t.createElement("div",Object.assign({className:"tag-item"+(n?" --active":""),"data-disabled":o,onClick:o?void 0:i},l),a.name)},co=({className:e,style:a,onPostCreatedEdited:i,onClose:r,communities:s=[],forceSelectCommunity:d,forceSelectTopics:m,articleId:u,optionalTopic:g,editPostData:v,defaultCommunity:f,defaultTopics:y,noFetchTopic:w,hideTopicList:x,selectAskDoctor:E,showAskDoctorOptions:C,currentPageUrl:k})=>{const N=!!(null==v?void 0:v.id),{data:{locale:A,env:{isMarryBaby:T}},action:{pushNotifications:z,sanitizeFunction:S}}=o(p),{t:L}=Q(),[M,j]=n(!1),[F,O]=n(E),[R,V]=n(!1),[D,U]=n(!1),[H,Z]=n(!1),[q,_]=n(""),[X,Y]=n(""),[ee,te]=n(d?{label:d.name,value:`${d.id||""}-${d.mappedCategoryId||""}`}:{label:L("community.choose"),value:""}),[oe,ne]=n([...m]||[]),[le,re]=n([]),[se,ce]=n([]),de=d||s.find((e=>`${e.id||""}-${e.mappedCategoryId||""}`===ee.value)),me=d?[d]:s.filter((e=>e.isActive)).sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),[ue,ge]=n(null),[he,be]=n([]),fe=q&&!D&&K(X)&&(g||!g&&oe.length>0)&&de&&(!le||le.length<=I)&&!(null==he?void 0:he.length)&&!H;l((()=>{if(v){const e=v;_(e.title||""),Y(ja(Ma(e.description||"","edit"),e.mentions)),te({label:e.community.name,value:`${e.community.id||""}-${e.community.mappedCategoryId||""}`}),ne(e.topics||[]),re(e.photos||[]),j(!!e.isAnonymous||!1),O(!!e.isAskDoctor||!1)}else f&&te({label:f.name,value:`${f.id||""}-${f.mappedCategoryId||""}`}),y&&ne(y)}),[]),l((()=>{U(""!==q&&!/[a-zA-Z]/.test(q))}),[q]);const we=()=>B(void 0,void 0,void 0,(function*(){var e,t,a,o,n,l,s,c,d;if(C&&void 0===F)return V(!0),!1;const m=yield(({title:e,description:t,communityId:a,imageFiles:o,previewUrl:n,topicIds:i,locale:l,sanitizeFunction:r,categoryCommunityId:s,categoryTopicIds:c,introUrl:d,bannerUrl:m,scheduleTime:p,isAnonymous:u,isAskDoctor:g})=>B(void 0,void 0,void 0,(function*(){const v=new FormData,h=Ra(t),b=Ra(e),f=Fa(h);if(v.append("title",b),v.append("description",Va(h,r)),s?v.append("category_community",String(s)):a&&v.append("community_id",String(a)),v.append("is_anonymous",u?"1":"0"),v.append("is_question",g?"1":"0"),(null==n?void 0:n.title)&&v.append("preview_title",n.title),(null==n?void 0:n.description)&&v.append("preview_description",n.description),(null==n?void 0:n.url)&&v.append("preview_link",ve(n.url)),(null==n?void 0:n.image)&&v.append("preview_image",ve(n.image)),null==i||i.forEach((e=>{v.append("topics[]",String(e||""))})),null==c||c.forEach((e=>{v.append("category_topics[]",String(e||""))})),null==o?void 0:o.length){const e=yield Promise.all(o.map(((e,t)=>new Promise((a=>{setTimeout((()=>{a(Ha(e,l))}),2e3*t)})))));null==e||e.filter(Boolean).slice(0,I).forEach(((e,t)=>{v.append(`images[${t}]`,e)}))}else v.append("images","");return null==f||f.forEach((e=>{v.append("mention_ids[]",e)})),v.append("intro_url",d||""),v.append("banner",m||""),p&&(v.append("post_type","scheduled"),v.append("schedule_datetime",p)),v})))({title:q,description:X,communityId:String((null==de?void 0:de.id)||""),imageFiles:le,previewUrl:ue,topicIds:null==oe?void 0:oe.map((e=>String(e.id||""))).filter(Boolean),locale:A,sanitizeFunction:S,categoryCommunityId:String((null==de?void 0:de.mappedCategoryId)||""),categoryTopicIds:null==oe?void 0:oe.map((e=>String(e.mappedCategoryId||""))).filter(Boolean),isAnonymous:M?1:0,isAskDoctor:F?1:0});let p;u&&m.append("article_id",u),N?(null==v?void 0:v.id)&&(p=yield(({id:e,locale:t,formData:a})=>B(void 0,void 0,void 0,(function*(){return yield P(h(b.POST.UPDATE,{id:e,_locale:t}),"POST",{data:a})})))({id:v.id,formData:m,locale:A})):p=yield(({locale:e,formData:t,isArticleComment:a})=>B(void 0,void 0,void 0,(function*(){return yield P(h(a?b.POST.CREATE_ARTICLE_COMMENT:b.POST.CREATE,{_locale:e}),"POST",{data:t})})))({formData:m,locale:A,isArticleComment:!(null==de?void 0:de.id)&&!!(null==de?void 0:de.mappedCategoryId)});const g=null==p?void 0:p.data;(null==g?void 0:g.id)&&!(null===(t=null===(e=null==p?void 0:p.messages)||void 0===e?void 0:e.moderation)||void 0===t?void 0:t.type)?(z({message:L("createPost.popup.success"),type:"success"}),(e=>{i&&i(Ce(e),N),r&&r()})(g)):"banned"===(null===(o=null===(a=null==p?void 0:p.messages)||void 0===a?void 0:a.moderation)||void 0===o?void 0:o.type)?(z({title:L("notification.post.blocked.title"),message:L("notification.post.blocked.message"),type:"danger"}),p.messages.moderation.words&&ce(p.messages.moderation.words)):"suspect"===(null===(l=null===(n=null==p?void 0:p.messages)||void 0===n?void 0:n.moderation)||void 0===l?void 0:l.type)?(z({title:L("notification.post.suspect.title"),message:L("notification.post.suspect.message"),type:"warning"}),r&&r()):(null===(c=null===(s=null==p?void 0:p.messages)||void 0===s?void 0:s.find)||void 0===c?void 0:c.call(s,(e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(z({message:L("notification.suspend.message"),type:"danger"}),r&&r()):z({message:(null===(d=null==p?void 0:p.messages)||void 0===d?void 0:d[0])||L("notification.failure"),type:"danger"})}));return t.createElement(fa,{className:e,style:a},t.createElement("div",{className:"input-group-container"},t.createElement(io,{className:"input-group",bannedWords:se,value:q,onChange:_}),D&&t.createElement(wa,null,t.createElement(ae,{isSolid:!0,color:$.colors.red700,size:14}),t.createElement(c,{size:"p3",as:"span",color:$.colors.red700},L("createPost.popup.specialCharErr"))),t.createElement(ao,{className:"input-group",bannedWords:se,value:X,onChange:Y,onPreviewUrlChange:ge,onInvalidUrlsChange:be,onImageFilesChange:re,imageFiles:le}),C&&t.createElement(ya,{"data-is-marry-baby":T},t.createElement("div",{className:"switch-label"},t.createElement(J,{isMarryBaby:T,size:T?32:24,color:$.colors.primaryBase,className:"label-icon"}),t.createElement("span",{className:"label-txt"},L("createPost.askDoctor"))),t.createElement(ye,{value:F,choices:[{label:L("createPost.askDoctorChoice.yes"),value:!0,dataEventCategory:"Together",dataEventAction:"Write Post Click - Ask Doctor",dataEventLabel:k},{label:L("createPost.askDoctorChoice.no"),value:!1}],onChange:e=>{"boolean"==typeof e&&(V(!1),O(e))}})),R&&t.createElement(wa,null,t.createElement(ae,{isSolid:!0,color:$.colors.red700,size:14}),t.createElement(c,{size:"p3",as:"span",color:$.colors.red700},L("createPost.message.askDoctorRequire"))),t.createElement("div",{className:"input-group"},t.createElement(c,{size:"p4",className:"input-group-label"},L("admin.community")),t.createElement(G,{options:(null==me?void 0:me.map((e=>({label:e.name,value:`${e.id||""}-${e.mappedCategoryId||""}`}))))||[],id:"community-picker",placeholder:L("community.choose"),value:ee,dropdownLabelTrackingAttributes:{"data-event-category":"Together","data-event-action":"Write Post Click - Choose Community/Topic","data-event-label":k},onChange:e=>{te({label:e.label,value:String(e.value)}),ne([])},disabled:!!d}),t.createElement(c,{size:"sm",className:"warning",color:$.colors.gray400},"* ",L("commentPopup.warning.newPost"))),!x&&t.createElement("div",{className:"input-group"},t.createElement(c,{size:"p4",className:"input-group-label"},L("tab.topic")),t.createElement("div",{className:"input-notification"},t.createElement("img",{src:de?"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":xa,loading:"lazy"}),t.createElement(c,{size:"base",color:$.colors.gray500},L(de?"createPost.popup.primary":"createPost.popup.warning"))),de&&t.createElement(ro,{className:"tag-list",communityId:de.id,forceTopics:m,onChange:ne,selectedTopics:oe,noFetch:w,dataEventCategory:"Together",dataEventAction:"Write Post Click - Choose Community/Topic",dataEventLabel:k}))),t.createElement("div",{className:"form-action"},t.createElement("div",{className:"input-group"},t.createElement(W,{className:"swich-input-group",labelPosition:"left",name:"PostAnonymous",checked:M,color:T?"pink":void 0,"data-event-category":"Together","data-event-action":"Write Post Click - Incognito","data-event-label":k,label:t.createElement("div",{className:"switch-label"},t.createElement("img",{className:"label-icon",src:pe.getAssetPath("anomyous-avatar.svg"),alt:"anomyous avatar",style:{marginRight:"10px",width:"24px"},loading:"lazy"}),t.createElement("span",{className:"label-txt"},L("createPost.postAnonymous"))),value:"Post Anonymous",onChange:e=>j(e.currentTarget.checked),styles:{body:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},label:{display:"flex",alignItems:"center"}}})),t.createElement("div",{className:"input-group"},t.createElement(ie,{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:()=>B(void 0,void 0,void 0,(function*(){if(fe&&!H){Z(!0);try{yield we()}catch(e){console.error(e),z(ba(L))}Z(!1)}})),disabled:!fe,loading:H},L("createPost.popup.submit")))))},mo=Re.div`
|
|
1463
1463
|
[data-type='confirm'] {
|
|
1464
1464
|
width: min(360px, 100%);
|
|
1465
1465
|
height: auto;
|
|
@@ -1479,7 +1479,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1479
1479
|
width: 100%;
|
|
1480
1480
|
padding-top: 44px;
|
|
1481
1481
|
background: #fff;
|
|
1482
|
-
border-radius: ${
|
|
1482
|
+
border-radius: ${$.borderRadius};
|
|
1483
1483
|
|
|
1484
1484
|
.confirm-content {
|
|
1485
1485
|
display: flex;
|
|
@@ -1498,7 +1498,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1498
1498
|
|
|
1499
1499
|
.desc {
|
|
1500
1500
|
margin-bottom: 24px;
|
|
1501
|
-
color: ${
|
|
1501
|
+
color: ${$.colors.gray500};
|
|
1502
1502
|
font-size: 18px;
|
|
1503
1503
|
line-height: 24px;
|
|
1504
1504
|
text-align: center;
|
|
@@ -1544,7 +1544,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1544
1544
|
overflow: hidden;
|
|
1545
1545
|
border-radius: 1rem;
|
|
1546
1546
|
&[data-open='true'] {
|
|
1547
|
-
${
|
|
1547
|
+
${ue.mbDown} {
|
|
1548
1548
|
top: 100%;
|
|
1549
1549
|
transform: translate(-50%, -100%);
|
|
1550
1550
|
max-width: unset;
|
|
@@ -1556,12 +1556,12 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1556
1556
|
}
|
|
1557
1557
|
.popup-content {
|
|
1558
1558
|
.close-button {
|
|
1559
|
-
${
|
|
1559
|
+
${ue.mbDown} {
|
|
1560
1560
|
display: none;
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
1563
|
.confirm-dialog {
|
|
1564
|
-
${
|
|
1564
|
+
${ue.mbDown} {
|
|
1565
1565
|
background: unset;
|
|
1566
1566
|
position: relative;
|
|
1567
1567
|
overflow-x: hidden;
|
|
@@ -1581,7 +1581,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1581
1581
|
}
|
|
1582
1582
|
.confirm-content {
|
|
1583
1583
|
padding: 0 40px 40px;
|
|
1584
|
-
${
|
|
1584
|
+
${ue.mbDown} {
|
|
1585
1585
|
padding-left: 1.5rem;
|
|
1586
1586
|
padding-right: 1.5rem;
|
|
1587
1587
|
}
|
|
@@ -1600,7 +1600,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
1602
|
.thumbnail-container {
|
|
1603
|
-
${
|
|
1603
|
+
${ue.mbDown} {
|
|
1604
1604
|
display: none;
|
|
1605
1605
|
}
|
|
1606
1606
|
&.is-icon {
|
|
@@ -1622,14 +1622,14 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1622
1622
|
height: 24px;
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
|
-
${
|
|
1625
|
+
${ue.mbDown} {
|
|
1626
1626
|
display: flex;
|
|
1627
1627
|
}
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
1631
|
}
|
|
1632
|
-
`,
|
|
1632
|
+
`,po=e=>{var{size:a,color:o,isExpand:n,useCurrentColor:i,isActive:l,activeColor:r}=e,s=F(e,["size","color","isExpand","useCurrentColor","isActive","activeColor"]);const c=i?"currentColor":l?r:o,d=Object.assign({width:a,height:a},s);return n?t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},d),t.createElement("path",{d:"M15.1801 4C14.6212 4 14.3418 4.67561 14.7373 5.07108L16.0864 6.42229L6.42229 16.0864L5.07108 14.7373C4.67561 14.3418 4 14.6212 4 15.1801V19.3718C4 19.7187 4.28026 20 4.62617 20H8.81987C9.37881 20 9.6582 19.3244 9.26272 18.9289L7.91357 17.5777L17.5777 7.91357L18.9289 9.26272C19.3244 9.6582 20 9.37881 20 8.81987V4.62617C20 4.28026 19.7187 4 19.3718 4H15.1801Z",fill:c})):t.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 14 14",fill:c},s),t.createElement("path",{d:"M9.64991 0.333008C9.18412 0.333008 8.9513 0.896013 9.28086 1.22558L10.4052 2.35159L2.35171 10.405L1.2257 9.28074C0.896135 8.95118 0.33313 9.184 0.33313 9.64979V13.1428C0.33313 13.432 0.566681 13.6663 0.854939 13.6663H4.34969C4.81547 13.6663 5.04829 13.1033 4.71873 12.7738L3.59444 11.6478L11.6479 3.59432L12.7739 4.71861C13.1035 5.04817 13.6665 4.81535 13.6665 4.34957V0.854817C13.6665 0.566559 13.4321 0.333008 13.1429 0.333008H9.64991Z"}))};po.defaultProps={size:24,color:$.colors.gray600,activeColor:$.colors.primaryBase};const uo=Re.div`
|
|
1633
1633
|
[data-type='confirm'] {
|
|
1634
1634
|
max-width: 468px;
|
|
1635
1635
|
/* height: 486px; */
|
|
@@ -1653,7 +1653,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1653
1653
|
height: 56px;
|
|
1654
1654
|
align-items: center;
|
|
1655
1655
|
padding: 16px 56px 16px 32px;
|
|
1656
|
-
border-bottom: 1px solid ${
|
|
1656
|
+
border-bottom: 1px solid ${$.colors.neutral100};
|
|
1657
1657
|
font-weight: 900;
|
|
1658
1658
|
width: 100%;
|
|
1659
1659
|
justify-content: space-between;
|
|
@@ -1679,11 +1679,11 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1679
1679
|
${e=>e.isExpand&&"\n & > div[data-open] {\n width: 100%;\n height: 100%;\n max-width: none;\n max-height: none;\n }\n "}
|
|
1680
1680
|
|
|
1681
1681
|
${e=>e.hasFullscreen&&"\n & > div[data-open] {\n transition: all 0.5s ease-in-out, width 0s, height 0s;\n }\n "}
|
|
1682
|
-
`,
|
|
1682
|
+
`,go=Re.div`
|
|
1683
1683
|
cursor: pointer;
|
|
1684
1684
|
display: flex;
|
|
1685
1685
|
align-items: center;
|
|
1686
|
-
`;var
|
|
1686
|
+
`;var vo="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 ho=({className:e,style:a,closeIcon:o,heading:i="",children:l,isOpen:r=!1,hasFullscreen:s=!1,onClose:c=(()=>null)})=>{const[d,m]=n(!1);return t.createElement(uo,{className:e,style:a,isExpand:d,hasFullscreen:s},t.createElement(ke,{type:"confirm",onClose:c,isOpen:r,closeIcon:o||t.createElement("img",{src:vo,loading:"lazy"}),enableAnimation:!s},t.createElement("div",{className:"header"},t.createElement(Me,{tag:"h5"},i),s&&t.createElement(go,{onClick:()=>m(!d)},t.createElement(po,{size:14,isExpand:d}))),t.createElement("div",{className:"content"},"function"==typeof l?l(d):l)))},bo=({className:e,isMarryBaby:a,style:i,title:r,description:s,acceptText:d,cancelText:m,onAccept:u,onCancel:g,thumbnail:v,isThumbnailIcon:h,onClose:b,acceptBtnTracking:f,acceptBtnProps:y,cancelBtnProps:w})=>{const{data:{env:{isMarryBaby:x}}}=o(p),E="boolean"==typeof a?a:x,[C,k]=n(!1);return l((()=>(ge(!0),setTimeout((()=>k(!0)),0),()=>ge(!1))),[]),"undefined"==typeof window?null:Oe.createPortal(t.createElement(mo,{"data-is-marrybaby":E,className:e,style:i,"data-open":C},t.createElement(ho,{className:"popup-frame",isOpen:C,onClose:b},t.createElement("div",{className:"confirm-dialog",onClick:e=>e.stopPropagation()},t.createElement("div",{className:"confirm-content"},v&&t.createElement("div",{className:"thumbnail-container "+(h?"is-icon":"")},t.createElement("img",{className:"thumbnail",src:v,loading:"lazy"})),t.createElement(Me,{className:"title",tag:"h2"},r),t.createElement(c,{className:"desc",size:"lg"},s),t.createElement("div",{className:"btn-group"},t.createElement(Le,Object.assign({theme:E?"marryBaby":"helloSites",size:"md",color:"tertiary",onClick:()=>{null==u||u(),null==b||b()}},y,f),d),t.createElement(Le,Object.assign({theme:E?"marryBaby":"helloSites",size:"md",onClick:()=>{null==g||g(),null==b||b()}},w),m)))),E&&v&&t.createElement("div",{className:"thumbnail-container is-mobile "+(h?"is-icon":"")},t.createElement("img",{className:"thumbnail",src:v,loading:"lazy"})))),he())},fo=Re.div`
|
|
1687
1687
|
padding: 1rem;
|
|
1688
1688
|
border-top: 1px solid #f2f2f2;
|
|
1689
1689
|
&[data-is-reply='true'] {
|
|
@@ -1695,7 +1695,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1695
1695
|
}
|
|
1696
1696
|
.error-text {
|
|
1697
1697
|
padding: 1rem;
|
|
1698
|
-
color: ${
|
|
1698
|
+
color: ${$.colors.red700};
|
|
1699
1699
|
}
|
|
1700
1700
|
.reply-to-container {
|
|
1701
1701
|
display: flex;
|
|
@@ -1732,7 +1732,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1732
1732
|
margin-right: 0.5rem;
|
|
1733
1733
|
&[data-has-error] {
|
|
1734
1734
|
.as-input {
|
|
1735
|
-
border-color: ${
|
|
1735
|
+
border-color: ${$.colors.red700};
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
|
|
@@ -1754,17 +1754,17 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1754
1754
|
}
|
|
1755
1755
|
width: 100%;
|
|
1756
1756
|
padding: 12px 16px;
|
|
1757
|
-
border: solid 1px ${
|
|
1758
|
-
border-radius: ${
|
|
1757
|
+
border: solid 1px ${$.colors.gray200};
|
|
1758
|
+
border-radius: ${$.borderRadius};
|
|
1759
1759
|
|
|
1760
1760
|
&:active,
|
|
1761
1761
|
&:focus {
|
|
1762
|
-
border-color: ${
|
|
1763
|
-
box-shadow: 0px 0px 2px 2px ${
|
|
1762
|
+
border-color: ${$.colors.primaryBase};
|
|
1763
|
+
box-shadow: 0px 0px 2px 2px ${$.colors.primary200};
|
|
1764
1764
|
}
|
|
1765
1765
|
|
|
1766
1766
|
&:disabled {
|
|
1767
|
-
background-color: ${
|
|
1767
|
+
background-color: ${$.colors.gray100};
|
|
1768
1768
|
cursor: not-allowed;
|
|
1769
1769
|
}
|
|
1770
1770
|
|
|
@@ -1796,13 +1796,13 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1796
1796
|
&[data-size='lg'] {
|
|
1797
1797
|
.as-input {
|
|
1798
1798
|
font-size: 16px;
|
|
1799
|
-
font-weight: ${
|
|
1800
|
-
${
|
|
1799
|
+
font-weight: ${$.sizes.fwRegular};
|
|
1800
|
+
${ue.mbDown} {
|
|
1801
1801
|
font-size: 22px;
|
|
1802
1802
|
line-height: 1.2;
|
|
1803
1803
|
}
|
|
1804
1804
|
|
|
1805
|
-
${
|
|
1805
|
+
${ue.mbUp} {
|
|
1806
1806
|
font-size: 26px;
|
|
1807
1807
|
line-height: 1.2;
|
|
1808
1808
|
}
|
|
@@ -1810,14 +1810,14 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1810
1810
|
}
|
|
1811
1811
|
&[data-size='md'] {
|
|
1812
1812
|
.as-input {
|
|
1813
|
-
font-weight: ${
|
|
1813
|
+
font-weight: ${$.sizes.fwRegular};
|
|
1814
1814
|
line-height: 22px;
|
|
1815
|
-
${
|
|
1815
|
+
${ue.mbDown} {
|
|
1816
1816
|
font-size: 14px;
|
|
1817
1817
|
line-height: 1.2;
|
|
1818
1818
|
}
|
|
1819
1819
|
|
|
1820
|
-
${
|
|
1820
|
+
${ue.mbUp} {
|
|
1821
1821
|
font-size: 16px;
|
|
1822
1822
|
line-height: 1.2;
|
|
1823
1823
|
}
|
|
@@ -1825,14 +1825,14 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1825
1825
|
}
|
|
1826
1826
|
&[data-size='sm'] {
|
|
1827
1827
|
.as-input {
|
|
1828
|
-
font-weight: ${
|
|
1828
|
+
font-weight: ${$.sizes.fwRegular};
|
|
1829
1829
|
line-height: 20px;
|
|
1830
|
-
${
|
|
1830
|
+
${ue.mbDown} {
|
|
1831
1831
|
font-size: 13px;
|
|
1832
1832
|
line-height: 1.5;
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
|
-
${
|
|
1835
|
+
${ue.mbUp} {
|
|
1836
1836
|
font-size: 13px;
|
|
1837
1837
|
line-height: 1.5;
|
|
1838
1838
|
}
|
|
@@ -1858,7 +1858,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1858
1858
|
padding: 0;
|
|
1859
1859
|
border: none;
|
|
1860
1860
|
&.send-button-post {
|
|
1861
|
-
background: ${
|
|
1861
|
+
background: ${$.colors.neutral100};
|
|
1862
1862
|
border-radius: 50%;
|
|
1863
1863
|
}
|
|
1864
1864
|
.icon-enter {
|
|
@@ -1902,11 +1902,11 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1902
1902
|
}
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
|
-
`,
|
|
1905
|
+
`,yo=a({});const wo=({isReply:e,className:a,onClose:r,replyToName:s,style:d,replyingId:m,replyingUser:u,onPostSuccess:g,post:v,isMarryBaby:f})=>{const{action:{pushNotifications:y,sanitizeFunction:w},data:{userInfo:x,locale:E,env:{isMarryBaby:C}}}=o(p),k="boolean"==typeof f?f:C,{t:N}=Q(),{onSelectImages:A,onRemoveImage:T,imageSrcs:z,onRemoveAllImages:L,imageFiles:M}=Za(),[j,F]=n(""),{trigger:O}=o(yo),[R,V]=n(!1),D=i(null),U=i(null),W=i(null),[H,Z]=n([]),[q,_]=n([]),[G,X]=n(null);return l((()=>{var e;null===(e=W.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout((()=>{var e;null===(e=U.current)||void 0===e||e.focus()}),400)}),[O]),t.createElement(fo,{"data-is-reply":e,className:a,style:d},e&&t.createElement("div",{className:"reply-to-container"},t.createElement(c,{size:"p4"},t.createElement("span",{dangerouslySetInnerHTML:{__html:N("inputComment.replyTo",{name:`<span style="color: #2D87F3; cursor: pointer">@${s||""}</span>`})}})),t.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:()=>r&&r(),loading:"lazy"})),t.createElement("div",{className:"input-container",ref:W},t.createElement(xe,{className:"avatar-wrapper "+(e?"avatar-wrapper-reply":""),avatar:(null==x?void 0:x.id)?x.avatar:S,username:(null==x?void 0:x.name)||(null==x?void 0:x.username)}),t.createElement("input",{ref:D,onChange:A,type:"file",multiple:!0,accept:"image/png,image/jpeg",name:"images",style:{display:"none"}}),t.createElement(Pe,{value:j,name:"input",size:"md",className:"input-wrapper",displayIcon:t.createElement("img",{src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.7543 4.85352H4.49227C4.01776 4.85352 3.56268 5.04201 3.22715 5.37754C2.89162 5.71307 2.70313 6.16815 2.70312 6.64266V19.1667C2.70313 19.6412 2.89162 20.0963 3.22715 20.4318C3.56268 20.7673 4.01776 20.9558 4.49227 20.9558H17.0163C17.4908 20.9558 17.9459 20.7673 18.2814 20.4318C18.6169 20.0963 18.8054 19.6412 18.8054 19.1667V12.9047' stroke='%232D87F3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M17.4633 3.51187C17.8192 3.15599 18.3019 2.95605 18.8052 2.95605C19.3085 2.95605 19.7912 3.15599 20.147 3.51187C20.5029 3.86775 20.7029 4.35044 20.7029 4.85373C20.7029 5.35702 20.5029 5.83971 20.147 6.19559L11.6486 14.694L8.07031 15.5886L8.96489 12.0103L17.4633 3.51187Z' stroke='%232D87F3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),CustomInput:t.createElement("div",{className:"as-input"},t.createElement($a,{className:"textarea",html:j,onChange:F,onImagePickerClick:()=>{var e;return null===(e=D.current)||void 0===e?void 0:e.click()},bannedWords:q,onPreviewUrlChange:X,onInvalidUrlsChange:Z,setEditorRef:e=>U.current=e,isReplying:e}))}),t.createElement(Le,{theme:k?"marryBaby":"helloSites",className:"send-button",size:"sm",onClick:()=>B(void 0,void 0,void 0,(function*(){var t,a,o,n,i,l,s,c,d;if((null==v?void 0:v.id)&&!R){V(!0);try{const p=e=>{F(""),L(),r&&r();const t=Ne(e.data);"string"==typeof t.images&&(t.images=JSON.parse(t.images)),g&&g(t)},f=yield(({postId:e,message:t,photos:a,link:o,locale:n,sanitizeFunction:i,replyingUserId:l,replyingUserName:r,replyingId:s})=>B(void 0,void 0,void 0,(function*(){const c=new FormData;let d=Va(t.replace(/(\ )+/g," "),i);const m=Fa(d);return a&&a.length>0&&(yield Promise.all(null==a?void 0:a.map((e=>Ha(e,n))))).filter(Boolean).slice(0,I).forEach((e=>{c.append("images[]",e)})),o&&c.append("link",o),null==m||m.forEach((e=>{c.append("mention_ids[]",e)})),c.append("post_id",e),s&&c.append("parent_id",s),l&&(m.unshift(l),d=`[mention+id="${l}"+name="${(r||"").replace('"',"'")}"]${d}`,c.append("parent_user_id",String(l))),c.append("content",d),c.append("content",d),c})))(Object.assign({message:j,photos:M,postId:String(v.id),link:null==G?void 0:G.url,sanitizeFunction:w,locale:E},e&&m?{replyingUserId:String((null==u?void 0:u.id)||(null===(t=null==v?void 0:v.author)||void 0===t?void 0:t.id)||""),replyingId:m,replyingUserName:(null==u?void 0:u.name)||(null==u?void 0:u.username)||""}:{})),x=yield e&&m?((e,t)=>B(void 0,void 0,void 0,(function*(){return P(h(b.COMMENT.REPLY,{_locale:t}),"POST",{data:e})})))(f,E):((e,t)=>B(void 0,void 0,void 0,(function*(){return P(h(b.COMMENT.CREATE,{_locale:t}),"POST",{data:e})})))(f,E),C=null==x?void 0:x.data;(null==C?void 0:C.id)&&!(null===(o=null===(a=null==x?void 0:x.messages)||void 0===a?void 0:a.moderation)||void 0===o?void 0:o.type)?p(x):"banned"===(null===(i=null===(n=null==x?void 0:x.messages)||void 0===n?void 0:n.moderation)||void 0===i?void 0:i.type)?(y({title:N("notification.comment.blocked.title"),message:N("notification.comment.blocked.message"),type:"danger"}),x.messages.moderation.words&&_(x.messages.moderation.words)):"suspect"===(null===(s=null===(l=null==x?void 0:x.messages)||void 0===l?void 0:l.moderation)||void 0===s?void 0:s.type)?(y({title:N("notification.comment.suspect.title"),message:N("notification.comment.suspect.message"),type:"warning"}),F(""),L(),r&&r()):(null===(c=null==x?void 0:x.messages)||void 0===c?void 0:c.find((e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(y({message:N("notification.suspend.message"),type:"warning"}),F(""),L(),r&&r()):y({title:"",message:(null===(d=null==x?void 0:x.messages)||void 0===d?void 0:d[0])||N("notification.comment.somethingWrong"),type:"danger"})}catch(e){y({title:"",message:N("notification.comment.somethingWrong"),type:"danger"})}V(!1)}})),isLoading:R,isDisabled:!!(null==H?void 0:H.length)||R||!j||(null==j?void 0:j.length)<2||!j.trim()},t.createElement("img",{src:"data:image/svg+xml,%3csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.5 9.73438L3.75 13.4844L7.5 17.2344' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M16.25 4.73438L16.25 10.3026C16.25 11.1464 15.9208 11.9557 15.3347 12.5524C14.7487 13.1491 13.9538 13.4844 13.125 13.4844L3.75 13.4844' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",className:"icon-enter",loading:"lazy"}))),(null==H?void 0:H.length)?t.createElement("div",{className:"error-text"},N("notification.limitUrlDomain")):null,(!z||0===z.length)&&G&&t.createElement("div",{className:"link-preview-wrapper"},G.isFetching?t.createElement(Kt,null):t.createElement(t.Fragment,null,t.createElement($e,{title:G.title,url:G.url||"#",image:G.image,noRefetch:!0}),t.createElement("img",{src:to,className:"icon-close",onClick:()=>X(null),loading:"lazy"}))),z&&z.length>0&&t.createElement("div",{className:"preview-images-container"},z.map(((e,a)=>t.createElement("div",{key:a,className:"image-src-wrapper"},t.createElement("img",{className:"preview-image",src:e,loading:"lazy"}),t.createElement("img",{src:to,className:"icon-close-circle",onClick:()=>T(a),loading:"lazy"}))))))},xo=Re.a`
|
|
1906
1906
|
* {
|
|
1907
1907
|
pointer-events: none;
|
|
1908
1908
|
}
|
|
1909
|
-
`,
|
|
1909
|
+
`,Eo=Re.div`
|
|
1910
1910
|
padding: 1rem;
|
|
1911
1911
|
.share__social {
|
|
1912
1912
|
display: flex;
|
|
@@ -1914,7 +1914,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1914
1914
|
align-items: center;
|
|
1915
1915
|
justify-content: center;
|
|
1916
1916
|
|
|
1917
|
-
& > ${
|
|
1917
|
+
& > ${xo} {
|
|
1918
1918
|
margin: 0 7px;
|
|
1919
1919
|
|
|
1920
1920
|
& > img {
|
|
@@ -1937,7 +1937,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1937
1937
|
top: 0;
|
|
1938
1938
|
left: 0;
|
|
1939
1939
|
width: calc(100% + 2rem);
|
|
1940
|
-
border-top: 1px solid ${
|
|
1940
|
+
border-top: 1px solid ${$.colors.neutral100};
|
|
1941
1941
|
margin-left: -1rem;
|
|
1942
1942
|
content: '';
|
|
1943
1943
|
}
|
|
@@ -1954,9 +1954,9 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1954
1954
|
overflow: hidden;
|
|
1955
1955
|
width: 100%;
|
|
1956
1956
|
height: 40px;
|
|
1957
|
-
border: 1px solid ${
|
|
1957
|
+
border: 1px solid ${$.colors.gray200};
|
|
1958
1958
|
background: #fff;
|
|
1959
|
-
border-radius: ${
|
|
1959
|
+
border-radius: ${$.borderRadius};
|
|
1960
1960
|
|
|
1961
1961
|
& > input {
|
|
1962
1962
|
width: 100%;
|
|
@@ -1964,7 +1964,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1964
1964
|
padding: 0 16px;
|
|
1965
1965
|
border: none;
|
|
1966
1966
|
background: transparent;
|
|
1967
|
-
color: ${
|
|
1967
|
+
color: ${$.colors.gray800};
|
|
1968
1968
|
|
|
1969
1969
|
&:focus {
|
|
1970
1970
|
outline: none;
|
|
@@ -1984,7 +1984,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1984
1984
|
#fff 17%,
|
|
1985
1985
|
#fff 100%
|
|
1986
1986
|
);
|
|
1987
|
-
color: ${
|
|
1987
|
+
color: ${$.colors.primaryBase};
|
|
1988
1988
|
cursor: pointer;
|
|
1989
1989
|
font-size: 14px;
|
|
1990
1990
|
font-weight: 400;
|
|
@@ -1993,7 +1993,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
1993
1993
|
}
|
|
1994
1994
|
|
|
1995
1995
|
&[data-is-marrybaby='true'] {
|
|
1996
|
-
${
|
|
1996
|
+
${ue.mbDown} {
|
|
1997
1997
|
padding: 0.5rem;
|
|
1998
1998
|
}
|
|
1999
1999
|
.share__social {
|
|
@@ -2004,7 +2004,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2004
2004
|
align-items: center;
|
|
2005
2005
|
justify-content: center;
|
|
2006
2006
|
text-align: center;
|
|
2007
|
-
${
|
|
2007
|
+
${ue.mbDown} {
|
|
2008
2008
|
margin: 0;
|
|
2009
2009
|
}
|
|
2010
2010
|
& > img {
|
|
@@ -2041,7 +2041,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2041
2041
|
}
|
|
2042
2042
|
}
|
|
2043
2043
|
}
|
|
2044
|
-
`;const xo=({className:e,trackingCategory:a="Together",style:r,shareUrl:s,title:d})=>{const{action:{pushNotifications:m},data:{env:{isMarryBaby:u}}}=o(p),{t:g}=Q(),v=i(null),[h,b]=n(!1),f=()=>{if(!(null==v?void 0:v.current))return;const e=document.createElement("textarea");e.value=v.current.value,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),v.current.focus(),b(!0),m({title:"",message:g("share.linkCopied"),type:"success"})};l((()=>{f(),navigator.share&&navigator.share({title:d||"Read This Post",url:s}).then((()=>{m({title:"",message:g("share.linkShared"),type:"success"})})).catch(console.error)}),[]);const y=((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/776ZCQkBElLCksga9kU2FQQRSlGo1AYUKwpuVA91xdZqtVTx1ONyrIpKBesC1AO1WHsiPQcsoIig1oNgE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`},{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 30.8333C35 33.135 33.1342 35 30.8333 35H9.16667C6.865 35 5 33.135 5 30.8333V9.16667C5 6.865 6.865 5 9.16667 5H30.8333C33.1342 5 35 6.865 35 9.16667V30.8333Z' fill='%2303A9F4'/%3e%3cpath d='M30 14.2667C29.265 14.5925 28.3342 14.8983 27.5 15C28.3483 14.4967 29.6942 13.4483 30 12.5C29.2075 12.9658 27.7742 13.4633 26.8392 13.6433C26.0925 12.8517 25.0275 12.5 23.8475 12.5C21.5808 12.5 20 14.4208 20 16.6667V18.3333C16.6667 18.3333 13.4167 15.7942 11.3942 13.3333C11.0383 13.9342 10.8383 14.6375 10.8383 15.3808C10.8383 16.8967 12.2308 18.435 13.3333 19.1667C12.6608 19.1458 11.3875 18.6325 10.8333 18.3333C10.8333 18.3467 10.8333 18.3633 10.8333 18.3808C10.8333 20.3533 12.2175 21.6925 14.0933 22.0658C13.7508 22.16 13.3333 22.5 11.7267 22.5C12.2483 24.1125 14.8708 24.965 16.6667 25C15.2617 26.0892 12.7567 26.6667 10.8333 26.6667C10.5008 26.6667 10.3208 26.685 10 26.6475C11.815 27.7975 14.35 28.3333 16.6667 28.3333C24.2142 28.3333 28.3333 22.5683 28.3333 17.1917C28.3333 17.015 28.3275 16.4233 28.3183 16.25C29.125 15.6817 29.4517 15.0867 30 14.2667Z' fill='white'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/svg+xml,%3csvg width='41' height='40' viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35.5 30.8333C35.5 33.135 33.635 35 31.3333 35H9.66667C7.36583 35 5.5 33.135 5.5 30.8333V9.16667C5.5 6.865 7.36583 5 9.66667 5H31.3333C33.635 5 35.5 6.865 35.5 9.16667V30.8333Z' fill='%230078D4'/%3e%3cpath opacity='0.05' d='M25.4993 30.8327V22.4168C25.4993 21.0093 24.8168 20.1685 23.6727 20.1685C22.9935 20.1685 22.4943 20.551 22.1902 21.3052C22.176 21.3585 22.156 21.576 22.1643 22.2335L22.166 30.8327H16.3327V14.9993H22.166V15.8835C23.0177 15.296 24.0618 14.9993 25.281 14.9993C29.0702 14.9993 31.3318 17.5768 31.3318 21.8943L31.3327 30.8327H25.4993ZM9.66602 30.8327V14.9993H12.5468C10.8777 14.9993 9.66602 13.7727 9.66602 12.0818C9.66602 10.3927 10.8977 9.16602 12.5943 9.16602C14.271 9.16602 15.4652 10.3585 15.4993 12.0652C15.4993 13.7685 14.2668 14.9993 12.5702 14.9993H15.4993V30.8327H9.66602Z' fill='black'/%3e%3cpath opacity='0.07' d='M25.9173 30.4173V22.4182C25.9173 20.774 25.0582 19.7532 23.674 19.7532C22.5948 19.7532 22.0615 20.5132 21.8048 21.1507C21.7365 21.3165 21.7457 21.9748 21.749 22.2557L21.7507 30.4173H16.7507V15.4173H21.7507V16.7823C22.4132 16.0965 23.4798 15.4173 25.2823 15.4173C28.8098 15.4173 30.9165 17.839 30.9165 21.8957L30.9173 30.4173H25.9173ZM10.084 30.4173V15.4173H15.084V30.4173H10.084ZM12.5482 14.584C11.1207 14.584 10.084 13.5323 10.084 12.0832C10.084 10.6348 11.1407 9.58398 12.5957 9.58398C14.0323 9.58398 15.0548 10.6082 15.084 12.0748C15.084 13.5323 14.0273 14.584 12.5715 14.584H12.5482Z' fill='black'/%3e%3cpath d='M10.5 15.8333H14.6667V30H10.5V15.8333ZM12.5708 14.1667H12.5475C11.3042 14.1667 10.5 13.24 10.5 12.0825C10.5 10.9 11.3292 10 12.595 10C13.8625 10 14.6433 10.9 14.6667 12.0825C14.6667 13.2392 13.8625 14.1667 12.5708 14.1667ZM30.5 30H26.3333V22.4175C26.3333 20.5858 25.3125 19.3358 23.6733 19.3358C22.4225 19.3358 21.7458 20.1792 21.4175 20.9942C21.2975 21.2858 21.3333 22.0925 21.3333 22.5V30H17.1667V15.8333H21.3333V18.0133C21.9342 17.0833 22.875 15.8333 25.2817 15.8333C28.2633 15.8333 30.4992 17.7083 30.4992 21.895L30.5 30Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='url(%23a)' d='M36.667 19.584c0 8.975-7.458 16.25-16.666 16.25a16.97 16.97 0 0 1-3.987-.47 1.68 1.68 0 0 0-1.15.12l-3.647 1.825a1.417 1.417 0 0 1-2.05-1.267v-3.355c0-.479-.214-.925-.567-1.249-3.245-2.966-5.266-7.179-5.266-11.854 0-8.975 7.458-16.25 16.667-16.25 9.208 0 16.666 7.275 16.666 16.25Z'/%3e%3cpath fill='black' d='M29.16 14.41c-.357 0-.703.118-1 .343l-4.745 3.512a.594.594 0 0 1-.363.125.565.565 0 0 1-.341-.113l-3.31-2.492a3.821 3.821 0 0 0-2.298-.765c-1.313 0-2.52.66-3.23 1.764l-1.009 1.575-3.433 5.58a1.633 1.633 0 0 0-.06 1.678c.299.545.862.883 1.47.883.357 0 .703-.118 1-.342l4.746-3.513a.594.594 0 0 1 .362-.125c.125 0 .243.04.342.114l3.31 2.491a3.819 3.819 0 0 0 2.297.765c1.314 0 2.521-.659 3.23-1.763l1.01-1.576 3.433-5.58a1.633 1.633 0 0 0 .059-1.678 1.682 1.682 0 0 0-1.47-.883Z' opacity='.05'/%3e%3cpath fill='black' d='M29.161 14.826c-.266 0-.525.09-.75.258L23.665 18.6c-.18.136-.39.207-.61.207a.98.98 0 0 1-.591-.197l-3.311-2.492a3.405 3.405 0 0 0-2.048-.68c-1.17 0-2.246.587-2.879 1.572l-1.008 1.575-3.43 5.574c-.247.387-.266.86-.048 1.259.222.405.656.667 1.104.667.266 0 .525-.09.75-.259l4.747-3.515c.18-.136.39-.206.61-.206a.98.98 0 0 1 .592.196l3.31 2.493c.6.446 1.307.68 2.048.68 1.171 0 2.247-.587 2.88-1.572l1.008-1.576 3.429-5.573c.247-.387.267-.86.048-1.26a1.281 1.281 0 0 0-1.104-.666Z' opacity='.07'/%3e%3cpath fill='white' d='m28.663 15.417-4.75 3.516c-.509.384-1.2.384-1.7.009L18.9 16.449a3.004 3.004 0 0 0-4.325.784l-1.008 1.575-3.425 5.566c-.5.784.458 1.675 1.2 1.117l4.75-3.517a1.412 1.412 0 0 1 1.7-.008l3.311 2.492a3.004 3.004 0 0 0 4.325-.783l1.009-1.575 3.425-5.567c.5-.783-.459-1.675-1.2-1.116Z'/%3e%3cdefs%3e%3cradialGradient id='a' cx='0' cy='0' r='1' gradientTransform='translate(9.24 35.816) scale(39.6767)' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%231292FF'/%3e%3cstop offset='.079' stop-color='%232982FF'/%3e%3cstop offset='.23' stop-color='%234E69FF'/%3e%3cstop offset='.351' stop-color='%236559FF'/%3e%3cstop offset='.428' stop-color='%236D53FF'/%3e%3cstop offset='.754' stop-color='%23DF47AA'/%3e%3cstop offset='.946' stop-color='%23FF6257'/%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e",name:"Messenger",href:`https://www.facebook.com/sharer.php?u=${e}`}]:[{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M30.7336 6.21933e-10H2.2536C1.28305 0.00703318 0.499975 0.795821 0.5 1.7664V30.2464C0.507033 31.217 1.29582 32 2.2664 32H17.5944V19.6256H13.4344V14.7808H17.5944V11.216C17.5944 7.0848 20.1192 4.832 23.8056 4.832C25.0498 4.8267 26.2933 4.8908 27.5304 5.024V9.344H24.9896C22.9832 9.344 22.5928 10.304 22.5928 11.696V14.7808H27.38L26.74 19.6256H22.58V32H30.7336C31.7092 32 32.5 31.2092 32.5 30.2336V1.7536C32.493 0.783047 31.7042 -2.54822e-05 30.7336 6.21933e-10Z' fill='%233B5998'/%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAMAAAAKqCSwAAAC/VBMVEUAAAD////3+fwAcrIAgMcAcrH//v7+//8AcbEAf8b9/v37/P0BcbAAfsT9/f36/P38/f4Af8UDcrEBfMD//v/5+/0CcbDz+foAcrAAfcb2+/wFcrABfcP9/f73/P0BfMIAfsMHca/y+Pvr9fgEcq/5+/wBc7Hg8PUFc7H6/f74+/sAc7T1+vvv+PoIc7ACcrAQda/2+vzM4+0Kc68Lcq37/v3m8vfi7/UAd7oAdbYHca39///v9/loqs0QdrAWd68Ae74Ber0Adrj6/fu01OQEf8UifrMKdLEMdK/x+Prt9vjp8/fe7fMFfsMAeLsPc64CcK3I4Ot7s9EBe8AcerD4/f3f7/Xc7PMTe7UUd7AAebwXebEHcq7x+vzt9/rY6/TR5u+51+apzOCDttJ/tNFdn8UTg8MMgcM1irs6i7kmgLQJbqnz+vzB3eqJutQeh8JLlL5Ckb0zhrbh8fbW6fHU5/DF3+ujzOKpzuGmzOGeyN2cxtxlpMdhosdYncPr9vnj8fbL4ey83Oq82eeRv9eFuNR6sc5yrcxVmsIthrgsg7UOcqvl8fa11uan0OWsz+KWwtmOvdZ8stBwqspOl8EJfsFFkr8yir0/jrsZfLUffLIaerEDbqzl9PjP5e/N5O6s0+d7vOGiyt+kyd2YxdtUo892rs1pp8kYhcTn9PjZ6vGy0uOHuNJlqMxpqss8lsogicRRlr84jbxCjroFdLImfrH0+/zA2+iv0eKYw9pkrNRvrM0IgcZBkb8ogrYgf7YMdrIcd60Vdaz8///S6fK52OmQw9+Au9qTwdmMu9VtqMkqgbMTd7Ehe6/p9fmx1OV0tdh7ttdrr9Ufj85rqswkjMhJlcAeg71Hkbs3h7bC4O652+6w1eiMwd6FvtxCmcxGm8o8j74Gc7IugK/M5fB9udo+ntR2sNBaptBJnc5ipswvj8VRnMQNf8Akg7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R/pSH5plJG+iks80l9wZnSwJOggsBxjiQUUKC2toV9xiOvi/A/lszrbhFX1MAAAAABJRU5ErkJggg==",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3crect width='32' height='32' x='.5' fill='%231FA1F3' rx='4'/%3e%3cpath fill='white' fill-rule='evenodd' d='m16.23 13.235.04.634-.673-.077c-2.455-.298-4.6-1.308-6.42-3.004l-.89-.842-.23.622c-.486 1.385-.175 2.848.836 3.832.54.544.418.621-.512.298-.324-.104-.607-.181-.634-.143-.095.091.229 1.27.485 1.735.35.648 1.066 1.282 1.848 1.657l.66.298-.781.013c-.756 0-.783.013-.702.285.27.841 1.335 1.735 2.523 2.123l.836.272-.729.414a7.893 7.893 0 0 1-3.614.958c-.607.013-1.106.065-1.106.104 0 .13 1.645.854 2.603 1.14 2.873.84 6.285.478 8.848-.959 1.82-1.023 3.641-3.055 4.491-5.023.459-1.049.917-2.965.917-3.884 0-.596.04-.673.796-1.385.445-.415.863-.868.944-.997.135-.246.122-.246-.566-.026-1.147.388-1.309.337-.742-.246.418-.414.917-1.165.917-1.385 0-.04-.202.026-.432.142-.242.13-.782.324-1.187.44l-.728.22-.66-.427c-.365-.233-.877-.492-1.147-.57-.688-.18-1.74-.155-2.36.052-1.687.583-2.752 2.085-2.63 3.729Z' clip-rule='evenodd'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAACqCAMAAADlak+OAAAC+lBMVEUAAAAqtkD3+fz5+fn////8/P39/v4ptT8psj5CxFIqtD8+wlBMy1opsD4tuEKQ1537/Pv9/f76+/opsz9DxVQvukRKyVlGx1ZPzF1Tz2BX0WNJyFgrt0FSzl9FxlU4vkpQzV45v0wxu0X3+fg8wU46wE1Vz2E2vUkzu0dOy1worj1AwlFW0GL2+PcntD01u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D3qC55VUaoV9c6gqmgFkWWTrFhQqj29kmIWYY0LFX1qKkgaTs8ULNcioawQqCADZ2/SbSqiCOM5AlzFHI/0iirNq9woI6Vy7c7AbBqXpBhqSKy7cIJ1JhLP1U47gws7UMr5yFUsZofbnUwhXYkQmPxgcKnBGYUVgRBJaPVHYzCLLundLX783PuYhokEgZ4PoD4No4ycDx05uEm2bCjNKvBasipIEgFeB5XhJSElV9odu7qp2UMaJuvjo9VWztKdieQUKHJGqCiuUwuFAvBeDOp/z9oHRcuyisVhXz8f9SZgBjc1u6SIGl6uL+v1cVXTkJO2bqPN0NyGdG64Di8Aa5p2AlKUE1uabcaqAe+Cmfq4h+STYYg0EgSlnJ62dMibZEHipWA7iVXjg/Qe92XA2Dc4ERSEuC4vJUaBl5pdN1r9sM7o+4jBwvBzOJGW4kZwuqHAi240h84K3y6OdAsohgui0w1FvVfuoH0f5/X+tAEwTh/dNCkjugP2/rze//XJzff5urKCQnMA/a/uDE4ACGEgyAV8Swryew1YwKUGC7D2AxEuiZxfN9NAliXvHTMCvN+qHbcOUsy4MqmHxSObrLd+AjSKHdhm5HHl7IwLhFtsoQ8vL2hYYXXUNLfrUcPWVQqQMMOW6mr1xVKTCwMhDbLDQurisJiQ4+n94C90WdwggZwrgVw2TryTCBeOIzQaUWMojTiOKyyELW4k5ShuO+IgzsBNp97FeC7xv4vxBUzFmCaxFDSrAAAAAElFTkSuQmCC",name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='0.5' width='32' height='32' rx='4' fill='%230077B5'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`}])(s||"",u);return t.createElement(wo,{"data-is-marrybaby":u,className:e,style:r},t.createElement("div",{className:"share__social"},y.map(((e,o)=>t.createElement(yo,{key:o,"data-event-category":a,"data-event-action":`Social Share - ${e.name}`,"data-event-label":s,href:e.href,target:"_blank",rel:"noreferrer"},t.createElement(ae,{alt:`share to ${e}`,src:e.icon}),t.createElement(c,{className:"__label",size:"label2",weight:"regular"},e.name))))),t.createElement("div",{className:"share__copy-link"},t.createElement(c,{className:"__label",color:K.colors.gray500,size:"p4",weight:"regular"},g("orCopyLink")),t.createElement("div",{className:"__input-group"},t.createElement("input",{ref:v,type:"text",value:s,readOnly:!0,onFocus:e=>e.target.select()}),t.createElement("button",{className:"__copy",onClick:()=>f()},u?t.createElement(ae,{alt:"copy share link",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' xmlns:v='https://vecta.io/nano'%3e%3cg fill='%233e3f58'%3e%3cpath d='M19.726 8.537l-.632.151.632-.151zm0 4.65l-.632-.151.632.151zm-9.097-8.918l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm1.303 11.983a.65.65 0 1 0 .649 1.126l-.649-1.126zM6.041 7.23a.65.65 0 0 0 1.182.541L6.041 7.23zm13.053 1.459c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-8.32-3.786a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm4.452 0c1.925.443 3.419 1.913 3.867 3.786l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zm2.099 12.476c1.505-.868 2.62-2.314 3.033-4.04l-1.264-.303c-.327 1.368-1.213 2.521-2.418 3.217l.649 1.126zM10.482 3.636c-1.988.457-3.62 1.799-4.442 3.594l1.182.541c.652-1.425 1.954-2.501 3.551-2.868l-.291-1.267z'/%3e%3cpath d='M3.274 16.187l-.632.151.632-.151zm0-4.65l-.632-.151.632.151zm13.451 0l-.632.151.632-.151zm0 4.65l.632.151-.632-.151zm-4.354 4.268l-.146-.633.146.633zm-4.744 0l-.146.634.146-.634zm0-13.186l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm-8.465 8.767c-.342-1.43-.342-2.918 0-4.348l-1.264-.303c-.39 1.629-.39 3.324 0 4.953l1.264-.303zm12.187-4.348c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-3.867 8.133a9.94 9.94 0 0 1-4.452 0l-.291 1.267a11.24 11.24 0 0 0 5.035 0l-.291-1.267zM7.774 7.903a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm0 11.919c-1.925-.443-3.419-1.913-3.867-3.786l-1.264.303c.565 2.363 2.445 4.199 4.84 4.75l.291-1.267zm4.744 1.267c2.395-.551 4.275-2.387 4.84-4.75l-1.264-.303c-.448 1.872-1.942 3.343-3.867 3.786l.291 1.267zm-.291-13.186c1.925.443 3.419 1.913 3.867 3.785l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zM7.482 6.636c-2.395.551-4.275 2.387-4.84 4.75l1.264.303c.448-1.872 1.942-3.343 3.867-3.785l-.291-1.267zM12.268 21l.083-2.523c.079-.573.221-.867.433-1.075l-.91-.928c-.499.489-.712 1.104-.811 1.827-.096.702-.095 1.596-.095 2.699h1.3zm4.205-5.409c-1.126 0-2.035-.001-2.748.093-.731.096-1.354.303-1.85.79l.91.928c.214-.21.519-.352 1.11-.43.609-.08 1.416-.082 2.579-.082v-1.3z'/%3e%3c/g%3e%3cpath d='M7 11h3m-3 3h5' stroke='%233e3f58' stroke-width='1.3' stroke-linecap='round'/%3e%3c/svg%3e"}):g(h?"copied":"copy")))))},Eo=({trackingCategory:e,className:a,style:i,url:r,avatar:s,text:d,onClose:m})=>{const{data:{env:{isMarryBaby:u}}}=o(p),{t:g}=Q(),[v,h]=n(!1);return l((()=>(ue(!0),setTimeout((()=>h(!0)),0),()=>ue(!1))),[]),t.createElement(H,null,t.createElement(Co,{"data-is-marrybaby":u,className:a,style:i},t.createElement(go,{className:"share-popup",isOpen:v,onClose:m,heading:g("bottomBar.share")},u?t.createElement(c,{className:"share-mb-text",size:"sm"},g("article.shareOn")):t.createElement("div",{className:"custom-share__header"},s&&t.createElement("div",{className:"custom-share__header-image"},t.createElement("img",{src:s,loading:"lazy"})),t.createElement("div",{className:"custom-share__header-info"},t.createElement(Le,{tag:"h4"},d),t.createElement(c,{className:"desc",size:"md"},r))),v&&t.createElement(xo,{trackingCategory:e,shareUrl:r||("undefined"!=typeof window?window.location.href:""),title:d}))))},Co=Oe.div`
|
|
2044
|
+
`;const Co=({className:e,trackingCategory:a="Together",style:r,shareUrl:s,title:d})=>{const{action:{pushNotifications:m},data:{env:{isMarryBaby:u}}}=o(p),{t:g}=Q(),v=i(null),[h,b]=n(!1),f=()=>{if(!(null==v?void 0:v.current))return;const e=document.createElement("textarea");e.value=v.current.value,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),v.current.focus(),b(!0),m({title:"",message:g("share.linkCopied"),type:"success"})};l((()=>{f(),navigator.share&&navigator.share({title:d||"Read This Post",url:s}).then((()=>{m({title:"",message:g("share.linkShared"),type:"success"})})).catch(console.error)}),[]);const y=((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/ya0eCGlkspIuYTQC5xvk3TtBz5e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v3+9mOvJPiF6MS9UfnpMDg7u4WLcSZKkGvvl/OX9zshSPFemNtzQdFLGxJ8lVWHtoHJARWndSBB5RjQIIbxeUjkvhvZyTjxIHtWpQQ/iDRMxvKgi9t9monzvAmsxwCXAVret8MCli4SPaBrFpdAGSMEtMZVkoRRFDpfeRFsvW7Kowv6Jfu1n89pb2YOyGZZaZq50SMcj/RjgM+/tIWL23eW+UKcsWEgmgbKKI+AozHVlbRIStxwERwYySQFCHi+cDA7u7A7Iva07ShCS4pDGR01mIyt6gMEB0t1mF7nj9odIKNe/wuLshyqi4dbCqs6qMUByw+OZcvlS+5B6widC5FML5HbbgEF9KgHu7gRVkeNqZvAmWkuFhaMtKQzARon6A2omVcoiOlPPjNMZ2dLOPswPFAcOe3fu3zgiCekr9DFHe9WHE/YPmNLD66uA6GCJWFBBSMmTtJSWKB9I4MftJB0xI9yBkD0uQVcjkzqvARKyrnVHiG45kqYEQUk1FEHPrAm33yVctbVzrSUWDAg3IknJBmEW3y5ASReB7W9rP06GLrhgh9SM/nyk9QPxvSBVYck06A2tqzhfJpTZ8+YBHra0FLzU8RmiK1y4dIQBejpG5GltSWdsrypeuZAhEQ2WLcCml8DrMiFoF5XJTUVcYrbAsP+csnkraw4Pdr86N+iE89uE/GhCIZE3hrjQmhnh+h8Q2iW442RsIKlH6PnodI0Npp1C5NjoLW546MgEsVMCoa4xvY/UFuSywtV1QTrOToKzKeI9SyRwJCqVxhWQ2CLY3W8OEq7abmowzFZBloz2/sowzrEagIoL+oZe0dGAYnY2ENc+Ug3QZeyIGcPsornQ4ODg4ODg4ODg4ODg4ODmfzfz5w/2ZW/n9aAAAAAElFTkSuQmCC",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 30.8333C35 33.135 33.1342 35 30.8333 35H9.16667C6.865 35 5 33.135 5 30.8333V9.16667C5 6.865 6.865 5 9.16667 5H30.8333C33.1342 5 35 6.865 35 9.16667V30.8333Z' fill='%2303A9F4'/%3e%3cpath d='M30 14.2667C29.265 14.5925 28.3342 14.8983 27.5 15C28.3483 14.4967 29.6942 13.4483 30 12.5C29.2075 12.9658 27.7742 13.4633 26.8392 13.6433C26.0925 12.8517 25.0275 12.5 23.8475 12.5C21.5808 12.5 20 14.4208 20 16.6667V18.3333C16.6667 18.3333 13.4167 15.7942 11.3942 13.3333C11.0383 13.9342 10.8383 14.6375 10.8383 15.3808C10.8383 16.8967 12.2308 18.435 13.3333 19.1667C12.6608 19.1458 11.3875 18.6325 10.8333 18.3333C10.8333 18.3467 10.8333 18.3633 10.8333 18.3808C10.8333 20.3533 12.2175 21.6925 14.0933 22.0658C13.7508 22.16 13.3333 22.5 11.7267 22.5C12.2483 24.1125 14.8708 24.965 16.6667 25C15.2617 26.0892 12.7567 26.6667 10.8333 26.6667C10.5008 26.6667 10.3208 26.685 10 26.6475C11.815 27.7975 14.35 28.3333 16.6667 28.3333C24.2142 28.3333 28.3333 22.5683 28.3333 17.1917C28.3333 17.015 28.3275 16.4233 28.3183 16.25C29.125 15.6817 29.4517 15.0867 30 14.2667Z' fill='white'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/svg+xml,%3csvg width='41' height='40' viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35.5 30.8333C35.5 33.135 33.635 35 31.3333 35H9.66667C7.36583 35 5.5 33.135 5.5 30.8333V9.16667C5.5 6.865 7.36583 5 9.66667 5H31.3333C33.635 5 35.5 6.865 35.5 9.16667V30.8333Z' fill='%230078D4'/%3e%3cpath opacity='0.05' d='M25.4993 30.8327V22.4168C25.4993 21.0093 24.8168 20.1685 23.6727 20.1685C22.9935 20.1685 22.4943 20.551 22.1902 21.3052C22.176 21.3585 22.156 21.576 22.1643 22.2335L22.166 30.8327H16.3327V14.9993H22.166V15.8835C23.0177 15.296 24.0618 14.9993 25.281 14.9993C29.0702 14.9993 31.3318 17.5768 31.3318 21.8943L31.3327 30.8327H25.4993ZM9.66602 30.8327V14.9993H12.5468C10.8777 14.9993 9.66602 13.7727 9.66602 12.0818C9.66602 10.3927 10.8977 9.16602 12.5943 9.16602C14.271 9.16602 15.4652 10.3585 15.4993 12.0652C15.4993 13.7685 14.2668 14.9993 12.5702 14.9993H15.4993V30.8327H9.66602Z' fill='black'/%3e%3cpath opacity='0.07' d='M25.9173 30.4173V22.4182C25.9173 20.774 25.0582 19.7532 23.674 19.7532C22.5948 19.7532 22.0615 20.5132 21.8048 21.1507C21.7365 21.3165 21.7457 21.9748 21.749 22.2557L21.7507 30.4173H16.7507V15.4173H21.7507V16.7823C22.4132 16.0965 23.4798 15.4173 25.2823 15.4173C28.8098 15.4173 30.9165 17.839 30.9165 21.8957L30.9173 30.4173H25.9173ZM10.084 30.4173V15.4173H15.084V30.4173H10.084ZM12.5482 14.584C11.1207 14.584 10.084 13.5323 10.084 12.0832C10.084 10.6348 11.1407 9.58398 12.5957 9.58398C14.0323 9.58398 15.0548 10.6082 15.084 12.0748C15.084 13.5323 14.0273 14.584 12.5715 14.584H12.5482Z' fill='black'/%3e%3cpath d='M10.5 15.8333H14.6667V30H10.5V15.8333ZM12.5708 14.1667H12.5475C11.3042 14.1667 10.5 13.24 10.5 12.0825C10.5 10.9 11.3292 10 12.595 10C13.8625 10 14.6433 10.9 14.6667 12.0825C14.6667 13.2392 13.8625 14.1667 12.5708 14.1667ZM30.5 30H26.3333V22.4175C26.3333 20.5858 25.3125 19.3358 23.6733 19.3358C22.4225 19.3358 21.7458 20.1792 21.4175 20.9942C21.2975 21.2858 21.3333 22.0925 21.3333 22.5V30H17.1667V15.8333H21.3333V18.0133C21.9342 17.0833 22.875 15.8333 25.2817 15.8333C28.2633 15.8333 30.4992 17.7083 30.4992 21.895L30.5 30Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='url(%23a)' d='M36.667 19.584c0 8.975-7.458 16.25-16.666 16.25a16.97 16.97 0 0 1-3.987-.47 1.68 1.68 0 0 0-1.15.12l-3.647 1.825a1.417 1.417 0 0 1-2.05-1.267v-3.355c0-.479-.214-.925-.567-1.249-3.245-2.966-5.266-7.179-5.266-11.854 0-8.975 7.458-16.25 16.667-16.25 9.208 0 16.666 7.275 16.666 16.25Z'/%3e%3cpath fill='black' d='M29.16 14.41c-.357 0-.703.118-1 .343l-4.745 3.512a.594.594 0 0 1-.363.125.565.565 0 0 1-.341-.113l-3.31-2.492a3.821 3.821 0 0 0-2.298-.765c-1.313 0-2.52.66-3.23 1.764l-1.009 1.575-3.433 5.58a1.633 1.633 0 0 0-.06 1.678c.299.545.862.883 1.47.883.357 0 .703-.118 1-.342l4.746-3.513a.594.594 0 0 1 .362-.125c.125 0 .243.04.342.114l3.31 2.491a3.819 3.819 0 0 0 2.297.765c1.314 0 2.521-.659 3.23-1.763l1.01-1.576 3.433-5.58a1.633 1.633 0 0 0 .059-1.678 1.682 1.682 0 0 0-1.47-.883Z' opacity='.05'/%3e%3cpath fill='black' d='M29.161 14.826c-.266 0-.525.09-.75.258L23.665 18.6c-.18.136-.39.207-.61.207a.98.98 0 0 1-.591-.197l-3.311-2.492a3.405 3.405 0 0 0-2.048-.68c-1.17 0-2.246.587-2.879 1.572l-1.008 1.575-3.43 5.574c-.247.387-.266.86-.048 1.259.222.405.656.667 1.104.667.266 0 .525-.09.75-.259l4.747-3.515c.18-.136.39-.206.61-.206a.98.98 0 0 1 .592.196l3.31 2.493c.6.446 1.307.68 2.048.68 1.171 0 2.247-.587 2.88-1.572l1.008-1.576 3.429-5.573c.247-.387.267-.86.048-1.26a1.281 1.281 0 0 0-1.104-.666Z' opacity='.07'/%3e%3cpath fill='white' d='m28.663 15.417-4.75 3.516c-.509.384-1.2.384-1.7.009L18.9 16.449a3.004 3.004 0 0 0-4.325.784l-1.008 1.575-3.425 5.566c-.5.784.458 1.675 1.2 1.117l4.75-3.517a1.412 1.412 0 0 1 1.7-.008l3.311 2.492a3.004 3.004 0 0 0 4.325-.783l1.009-1.575 3.425-5.567c.5-.783-.459-1.675-1.2-1.116Z'/%3e%3cdefs%3e%3cradialGradient id='a' cx='0' cy='0' r='1' gradientTransform='translate(9.24 35.816) scale(39.6767)' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%231292FF'/%3e%3cstop offset='.079' stop-color='%232982FF'/%3e%3cstop offset='.23' stop-color='%234E69FF'/%3e%3cstop offset='.351' stop-color='%236559FF'/%3e%3cstop offset='.428' stop-color='%236D53FF'/%3e%3cstop offset='.754' stop-color='%23DF47AA'/%3e%3cstop offset='.946' stop-color='%23FF6257'/%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e",name:"Messenger",href:`https://www.facebook.com/sharer.php?u=${e}`}]:[{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M30.7336 6.21933e-10H2.2536C1.28305 0.00703318 0.499975 0.795821 0.5 1.7664V30.2464C0.507033 31.217 1.29582 32 2.2664 32H17.5944V19.6256H13.4344V14.7808H17.5944V11.216C17.5944 7.0848 20.1192 4.832 23.8056 4.832C25.0498 4.8267 26.2933 4.8908 27.5304 5.024V9.344H24.9896C22.9832 9.344 22.5928 10.304 22.5928 11.696V14.7808H27.38L26.74 19.6256H22.58V32H30.7336C31.7092 32 32.5 31.2092 32.5 30.2336V1.7536C32.493 0.783047 31.7042 -2.54822e-05 30.7336 6.21933e-10Z' fill='%233B5998'/%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAMAAAAKqCSwAAAC/VBMVEUAAAD////3+fwAcrIAgMcAc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JNil5XVLqlYniYkcA6G0jadKFyuICmsWzm7Ov+S3I8Hl+MNHdUUptPPPv/4+N7OzEIcgdEOtVCGPU4QG5e5bjxVef7OidiwXR9x1Xdw3HVMfvzO+VmnlgcIwdJFbwT4stIfqXAG/gaMVKEHOexx3ZhxpXHn8dhj4CpqzKGjggAw0enrdy7zPYQSSwmUgxDsC3T1iZ5RsTin+cKJWBHcF9RfYOGRNDzwQlfj6nme5Y/Z28k8LAmw6f2kPwrlf5IDisPBg29X57tpZdGs3ObW47G2PBZTi3PIVp2467eDs/dlgX3qcZ4rPefGFdVfmdWeW1Ma2uZny+XqvCxpYq4ote14WdeNhtmLs+JmRPukp0kkCWA7pWRPOviicfWLq4o7m+8cb/OTirgMqAdFfRL6amz8kRd3fFjaffPmze7DH+5oCQ2MBfvDmTR2GM0UuIvCJiTHH5l6uKu2Zv3BpnWNHY3rmg6ur6nt6p56pFceDncMqRGHjvqmuqNKoQpYTCZv0qRJPJ47jyeV8nhMagM7/fUZ5C53d3gyWD01yc8v1c+P/Al8Qi5qBH/00y01n/bjN+EqZgrVUf29VXut9bUFPJLa6qexcBQInj8k/a3zSaGv9EMFzSqFOk4DVetGtLgPqs81UHH1Q43VAxUgrkJUx9EG12kNVLHWrnuYARgNquZz2FH1f35Q9aqtYd8fNKyjDa5rarp+D4vOeJNihWEVWnUcdDaD6lb/h0VzNMyqhQqCiiF1uv9z+FHNB5srR9VgD9AIUK/d/7x4S01WCpU060TgqwZF/VvrcfHoKE1WasYaoILUGrAa0FmvaXKhOl5t8MOboGcNMysqBDANZddbp3W93QK978UW5uRQpUGj1a1rWi+MoMTRfg3HW3C8ArAOv7veuvX3tdP3AYlH4stNjJzV8hFNoUb8ehtLo3+3VR/pSH5plJG+iks80l9wZnSwJOggsBxjiQUUKC2toV9xiOvi/A/lszrbhFX1MAAAAABJRU5ErkJggg==",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3crect width='32' height='32' x='.5' fill='%231FA1F3' rx='4'/%3e%3cpath fill='white' fill-rule='evenodd' d='m16.23 13.235.04.634-.673-.077c-2.455-.298-4.6-1.308-6.42-3.004l-.89-.842-.23.622c-.486 1.385-.175 2.848.836 3.832.54.544.418.621-.512.298-.324-.104-.607-.181-.634-.143-.095.091.229 1.27.485 1.735.35.648 1.066 1.282 1.848 1.657l.66.298-.781.013c-.756 0-.783.013-.702.285.27.841 1.335 1.735 2.523 2.123l.836.272-.729.414a7.893 7.893 0 0 1-3.614.958c-.607.013-1.106.065-1.106.104 0 .13 1.645.854 2.603 1.14 2.873.84 6.285.478 8.848-.959 1.82-1.023 3.641-3.055 4.491-5.023.459-1.049.917-2.965.917-3.884 0-.596.04-.673.796-1.385.445-.415.863-.868.944-.997.135-.246.122-.246-.566-.026-1.147.388-1.309.337-.742-.246.418-.414.917-1.165.917-1.385 0-.04-.202.026-.432.142-.242.13-.782.324-1.187.44l-.728.22-.66-.427c-.365-.233-.877-.492-1.147-.57-.688-.18-1.74-.155-2.36.052-1.687.583-2.752 2.085-2.63 3.729Z' clip-rule='evenodd'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAACqCAMAAADlak+OAAAC+lBMVEUAAAAqtkD3+fz5+fn////8/P39/v4ptT8psj5CxFIqtD8+wlBMy1opsD4tuEKQ1537/Pv9/f76+/opsz9DxVQvukRKyVlGx1ZPzF1Tz2BX0WNJyFgrt0FSzl9FxlU4vkpQzV45v0wxu0X3+fg8wU46wE1Vz2E2vUkzu0dOy1worj1AwlFW0GL2+PcntD01u0j8/v1IyFc9wU9ExlQ7v035+vkvt0MttkIlszz1+PUsskEorDz3/PhFv1cnqTv09/Tt9e/5/PkrsEDy9/Po8+ovsUP5+v3r9O0yuEVZ0GQmpjrz+fTr9+zw9fFRyV7k9OZNyFswtUXc8t/G6c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mPxgcKnBGYUVgRBJaPVHYzCLLundLX783PuYhokEgZ4PoD4No4ycDx05uEm2bCjNKvBasipIEgFeB5XhJSElV9odu7qp2UMaJuvjo9VWztKdieQUKHJGqCiuUwuFAvBeDOp/z9oHRcuyisVhXz8f9SZgBjc1u6SIGl6uL+v1cVXTkJO2bqPN0NyGdG64Di8Aa5p2AlKUE1uabcaqAe+Cmfq4h+STYYg0EgSlnJ62dMibZEHipWA7iVXjg/Qe92XA2Dc4ERSEuC4vJUaBl5pdN1r9sM7o+4jBwvBzOJGW4kZwuqHAi240h84K3y6OdAsohgui0w1FvVfuoH0f5/X+tAEwTh/dNCkjugP2/rze//XJzff5urKCQnMA/a/uDE4ACGEgyAV8Swryew1YwKUGC7D2AxEuiZxfN9NAliXvHTMCvN+qHbcOUsy4MqmHxSObrLd+AjSKHdhm5HHl7IwLhFtsoQ8vL2hYYXXUNLfrUcPWVQqQMMOW6mr1xVKTCwMhDbLDQurisJiQ4+n94C90WdwggZwrgVw2TryTCBeOIzQaUWMojTiOKyyELW4k5ShuO+IgzsBNp97FeC7xv4vxBUzFmCaxFDSrAAAAAElFTkSuQmCC",name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='0.5' width='32' height='32' rx='4' fill='%230077B5'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`}])(s||"",u);return t.createElement(Eo,{"data-is-marrybaby":u,className:e,style:r},t.createElement("div",{className:"share__social"},y.map(((e,o)=>t.createElement(xo,{key:o,"data-event-category":a,"data-event-action":`Social Share - ${e.name}`,"data-event-label":s,href:e.href,target:"_blank",rel:"noreferrer"},t.createElement(oe,{alt:`share to ${e}`,src:e.icon}),t.createElement(c,{className:"__label",size:"label2",weight:"regular"},e.name))))),t.createElement("div",{className:"share__copy-link"},t.createElement(c,{className:"__label",color:$.colors.gray500,size:"p4",weight:"regular"},g("orCopyLink")),t.createElement("div",{className:"__input-group"},t.createElement("input",{ref:v,type:"text",value:s,readOnly:!0,onFocus:e=>e.target.select()}),t.createElement("button",{className:"__copy",onClick:()=>f()},u?t.createElement(oe,{alt:"copy share link",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' xmlns:v='https://vecta.io/nano'%3e%3cg fill='%233e3f58'%3e%3cpath d='M19.726 8.537l-.632.151.632-.151zm0 4.65l-.632-.151.632.151zm-9.097-8.918l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm1.303 11.983a.65.65 0 1 0 .649 1.126l-.649-1.126zM6.041 7.23a.65.65 0 0 0 1.182.541L6.041 7.23zm13.053 1.459c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-8.32-3.786a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm4.452 0c1.925.443 3.419 1.913 3.867 3.786l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zm2.099 12.476c1.505-.868 2.62-2.314 3.033-4.04l-1.264-.303c-.327 1.368-1.213 2.521-2.418 3.217l.649 1.126zM10.482 3.636c-1.988.457-3.62 1.799-4.442 3.594l1.182.541c.652-1.425 1.954-2.501 3.551-2.868l-.291-1.267z'/%3e%3cpath d='M3.274 16.187l-.632.151.632-.151zm0-4.65l-.632-.151.632.151zm13.451 0l-.632.151.632-.151zm0 4.65l.632.151-.632-.151zm-4.354 4.268l-.146-.633.146.633zm-4.744 0l-.146.634.146-.634zm0-13.186l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm-8.465 8.767c-.342-1.43-.342-2.918 0-4.348l-1.264-.303c-.39 1.629-.39 3.324 0 4.953l1.264-.303zm12.187-4.348c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-3.867 8.133a9.94 9.94 0 0 1-4.452 0l-.291 1.267a11.24 11.24 0 0 0 5.035 0l-.291-1.267zM7.774 7.903a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm0 11.919c-1.925-.443-3.419-1.913-3.867-3.786l-1.264.303c.565 2.363 2.445 4.199 4.84 4.75l.291-1.267zm4.744 1.267c2.395-.551 4.275-2.387 4.84-4.75l-1.264-.303c-.448 1.872-1.942 3.343-3.867 3.786l.291 1.267zm-.291-13.186c1.925.443 3.419 1.913 3.867 3.785l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zM7.482 6.636c-2.395.551-4.275 2.387-4.84 4.75l1.264.303c.448-1.872 1.942-3.343 3.867-3.785l-.291-1.267zM12.268 21l.083-2.523c.079-.573.221-.867.433-1.075l-.91-.928c-.499.489-.712 1.104-.811 1.827-.096.702-.095 1.596-.095 2.699h1.3zm4.205-5.409c-1.126 0-2.035-.001-2.748.093-.731.096-1.354.303-1.85.79l.91.928c.214-.21.519-.352 1.11-.43.609-.08 1.416-.082 2.579-.082v-1.3z'/%3e%3c/g%3e%3cpath d='M7 11h3m-3 3h5' stroke='%233e3f58' stroke-width='1.3' stroke-linecap='round'/%3e%3c/svg%3e"}):g(h?"copied":"copy")))))},ko=({trackingCategory:e,className:a,style:i,url:r,avatar:s,text:d,onClose:m})=>{const{data:{env:{isMarryBaby:u}}}=o(p),{t:g}=Q(),[v,h]=n(!1);return l((()=>(ge(!0),setTimeout((()=>h(!0)),0),()=>ge(!1))),[]),t.createElement(H,null,t.createElement(No,{"data-is-marrybaby":u,className:a,style:i},t.createElement(ho,{className:"share-popup",isOpen:v,onClose:m,heading:g("bottomBar.share")},u?t.createElement(c,{className:"share-mb-text",size:"sm"},g("article.shareOn")):t.createElement("div",{className:"custom-share__header"},s&&t.createElement("div",{className:"custom-share__header-image"},t.createElement("img",{src:s,loading:"lazy"})),t.createElement("div",{className:"custom-share__header-info"},t.createElement(Me,{tag:"h4"},d),t.createElement(c,{className:"desc",size:"md"},r))),v&&t.createElement(Co,{trackingCategory:e,shareUrl:r||("undefined"!=typeof window?window.location.href:""),title:d}))))},No=Re.div`
|
|
2045
2045
|
.share-popup {
|
|
2046
2046
|
> div:first-child {
|
|
2047
2047
|
height: unset;
|
|
@@ -2058,7 +2058,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2058
2058
|
flex-wrap: no-wrap;
|
|
2059
2059
|
align-items: center;
|
|
2060
2060
|
padding: 1rem;
|
|
2061
|
-
border-bottom: 1px solid ${
|
|
2061
|
+
border-bottom: 1px solid ${$.colors.neutral100};
|
|
2062
2062
|
margin-bottom: 16px;
|
|
2063
2063
|
|
|
2064
2064
|
.custom-share__header-image {
|
|
@@ -2099,7 +2099,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2099
2099
|
overflow: hidden;
|
|
2100
2100
|
border-radius: 1rem;
|
|
2101
2101
|
&[data-open='true'] {
|
|
2102
|
-
${
|
|
2102
|
+
${ue.mbDown} {
|
|
2103
2103
|
max-width: unset;
|
|
2104
2104
|
width: 100%;
|
|
2105
2105
|
top: 100%;
|
|
@@ -2127,7 +2127,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2127
2127
|
}
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
|
-
`,
|
|
2130
|
+
`,Ao=Re.div`
|
|
2131
2131
|
padding: 0 8px;
|
|
2132
2132
|
margin-top: 18px;
|
|
2133
2133
|
|
|
@@ -2158,7 +2158,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2158
2158
|
&[data-is-marrybaby='true'] {
|
|
2159
2159
|
padding: 0 1rem 1rem;
|
|
2160
2160
|
}
|
|
2161
|
-
`;var
|
|
2161
|
+
`;var To="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 zo=({className:e,style:a,reason:i,reasonText:l,onClose:r,postId:s})=>{const{data:{locale:d,env:{isMarryBaby:m}},action:{pushNotifications:u}}=o(p),{t:g}=Q(),[v,f]=n(!1);return t.createElement(Ao,{"data-is-marrybaby":m,className:e,style:a},t.createElement("ul",{className:"report-list"},t.createElement("li",{className:"report-item"},t.createElement("img",{src:To,loading:"lazy"}),t.createElement(c,{className:"__label",color:$.colors.gray800,size:"p4"},l))),t.createElement(Le,{theme:m?"marryBaby":"helloSites",className:"report-submit",size:"lg",color:"primary",isLoading:v,onClick:()=>B(void 0,void 0,void 0,(function*(){if(s&&!v){f(!0);try{const e=yield(({id:e,reason:t,locale:a})=>{const o=new FormData;return o.append("reason",t),P(h(b.POST.REPORT,{_locale:a,id:e}),"POST",{data:o})})({id:s,reason:i,locale:d});1===(null==e?void 0:e.status)&&(u({message:"Post reported",type:"success"}),r&&r())}catch(e){}f(!1)}}))},g("submit")))},Po=Re.div`
|
|
2162
2162
|
padding: 0.5rem 1rem 1rem;
|
|
2163
2163
|
line-height: 1.5;
|
|
2164
2164
|
word-break: break-word;
|
|
@@ -2215,26 +2215,26 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
|
2218
|
-
`;var
|
|
2218
|
+
`;var Io=V((e=>({root:{mention:{color:e.fn.primaryColor()},a:{"&,&:visited,&:focus":{color:e.fn.primaryColor()}},".create-post-link":{display:"inline",color:e.fn.primaryColor(),cursor:"pointer"}}})));const So=e=>{var{trackingCategory:a,url:s,className:c,style:d,replyingTo:m,mentionedUser:u,description:g,disableShortenContent:v,mentions:h=[],maxChars:b=1e3,hideShowAllBtn:f,styles:y,onClickCreatePostLink:w}=e,x=F(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn","styles","onClickCreatePostLink"]);const{classes:E,theme:C}=Io(void 0,{name:"PostContent",styles:y}),[k,N]=n(!1),{t:A}=Q(),{authActionWrapper:T}=Xe(),[z,P]=n(!1),I=ja(Ma(g||"","display"),h),{action:{sanitizeFunction:S}}=o(p),L=r((()=>{const e=S(I||"");if(v||k)return{showContent:e,hasSeeMore:!1};const t=e.slice(0,b),a=b-27*((t.match(/<\/div>/g)||[]).length-1),o=(t||"").slice(0,a<40?40:a),n=S(o.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),i=n.length<e.length-10;return{showContent:i?n:e,hasSeeMore:i}}),[v,k,I]),M=(null==u?void 0:u.name)||m,j="expert"===(null==u?void 0:u.role)&&!!(null==u?void 0:u.partnerId),B=i(null),O=e=>{e.preventDefault(),null==w||w()};return l((()=>{var e;return null===(e=null==B?void 0:B.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.addEventListener("click",O,{passive:!0})})),()=>{var e;null===(e=null==B?void 0:B.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.removeEventListener("click",O,!1)}))}}),[v,k,I]),t.createElement(t.Fragment,null,j&&t.createElement(ia,{isOpen:z,onClose:()=>P(!1),expertId:String(null==u?void 0:u.partnerId)}),t.createElement(Po,Object.assign({ref:B,className:`${E.root} ${c} no-replace-click`,style:d,mentionColor:C.fn.primaryColor()},x),M&&t.createElement(Z,{onClick:()=>j&&P(!0),className:"post-content-replying"},"@",M),(null==g?void 0:g.startsWith("[mention+id="))&&t.createElement("span",{className:"post-content-replying tag-only",style:{color:C.fn.primaryColor()}},"@"),t.createElement("span",{dangerouslySetInnerHTML:{__html:L.showContent},className:"post-content "+(L.hasSeeMore?"has-see-more":"")}),L.hasSeeMore&&!k&&t.createElement("span",null,"... ",!f&&t.createElement(Z,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),T((()=>N(!0)))},className:"see-more-text"},a?{"data-event-category":a,"data-event-action":"See More Post Click","data-event-label":s}:{}),A("post.seeMore")))))},Lo=Re.div`
|
|
2219
2219
|
padding: 14px 16px 14px 17px;
|
|
2220
2220
|
background: ${e=>e.bgColor};
|
|
2221
2221
|
border-left: 3px solid ${e=>e.highlight};
|
|
2222
2222
|
|
|
2223
|
-
${
|
|
2223
|
+
${ue.mbUp} {
|
|
2224
2224
|
padding: 12px 12px 12px 17px;
|
|
2225
2225
|
}
|
|
2226
|
-
`,
|
|
2226
|
+
`,Mo=Re.div`
|
|
2227
2227
|
display: flex;
|
|
2228
|
-
`,
|
|
2228
|
+
`,jo=Re.div`
|
|
2229
2229
|
font-size: 12px;
|
|
2230
2230
|
line-height: 18px;
|
|
2231
2231
|
|
|
2232
2232
|
&[data-has-icon='true'] {
|
|
2233
2233
|
margin-left: 10px;
|
|
2234
2234
|
}
|
|
2235
|
-
`,
|
|
2235
|
+
`,Bo=Re.div`
|
|
2236
2236
|
flex-shrink: 0;
|
|
2237
|
-
`,
|
|
2237
|
+
`,Fo=Re.div`
|
|
2238
2238
|
display: grid;
|
|
2239
2239
|
grid-gap: 3px;
|
|
2240
2240
|
grid-template-columns: 1fr 1fr;
|
|
@@ -2347,7 +2347,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
2349
|
}
|
|
2350
|
-
`,
|
|
2350
|
+
`,Oo=Re.div`
|
|
2351
2351
|
position: fixed;
|
|
2352
2352
|
z-index: 999;
|
|
2353
2353
|
top: 0;
|
|
@@ -2390,9 +2390,9 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2390
2390
|
object-fit: cover;
|
|
2391
2391
|
}
|
|
2392
2392
|
}
|
|
2393
|
-
`,
|
|
2393
|
+
`,Ro=Re((e=>{var{icon:a,bgColor:o=$.colors.yellow50,highlightColor:n=$.colors.yellow800,message:i}=e,l=F(e,["icon","bgColor","highlightColor","message"]);return t.createElement(Lo,Object.assign({bgColor:o,highlight:n},l),t.createElement(Mo,null,a&&t.createElement(Bo,null,a),t.createElement(jo,{"data-has-icon":Boolean(a)},i)))}))`
|
|
2394
2394
|
margin-bottom: 16px;
|
|
2395
|
-
`;const
|
|
2395
|
+
`;const Vo=({className:e,style:a,authorName:o,images:i,onClose:r,onOpenSingleView:s,alt:d})=>{const{t:m}=Q(),[p,u]=n(!1);return l((()=>{setTimeout((()=>{u(!0)}),0)}),[]),t.createElement(H,null,t.createElement(Oo,{className:e,style:a,"data-open":p},t.createElement("div",{className:"top-bar"},t.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:r,alt:"go back",loading:"lazy"}),t.createElement(c,{size:"p2",weight:"bold",style:{textAlign:"center"}},m("previewPhotos.title",{name:o}))),t.createElement("div",{className:"container"},i.map(((e,a)=>t.createElement("img",{className:"img-preview",key:a,src:e,onClick:()=>null==s?void 0:s(a),alt:d,loading:"lazy"}))))),",")},Do=Re.div`
|
|
2396
2396
|
position: fixed;
|
|
2397
2397
|
z-index: 999;
|
|
2398
2398
|
top: 0;
|
|
@@ -2409,7 +2409,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2409
2409
|
opacity: 1;
|
|
2410
2410
|
pointer-events: auto;
|
|
2411
2411
|
}
|
|
2412
|
-
`,
|
|
2412
|
+
`,Uo=Re.div`
|
|
2413
2413
|
padding: 1rem;
|
|
2414
2414
|
background: white;
|
|
2415
2415
|
.icon-close {
|
|
@@ -2417,7 +2417,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2417
2417
|
height: 26px;
|
|
2418
2418
|
cursor: pointer;
|
|
2419
2419
|
}
|
|
2420
|
-
`,
|
|
2420
|
+
`,Wo=Re.div`
|
|
2421
2421
|
position: relative;
|
|
2422
2422
|
flex: 1;
|
|
2423
2423
|
overflow: hidden;
|
|
@@ -2427,7 +2427,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2427
2427
|
object-fit: contain;
|
|
2428
2428
|
object-position: center;
|
|
2429
2429
|
}
|
|
2430
|
-
`,
|
|
2430
|
+
`,Ho=Re.div`
|
|
2431
2431
|
--inner-padding: max(16px, 20%);
|
|
2432
2432
|
height: 100%;
|
|
2433
2433
|
position: absolute;
|
|
@@ -2447,7 +2447,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2447
2447
|
&[data-disabled='true'] {
|
|
2448
2448
|
cursor: not-allowed;
|
|
2449
2449
|
}
|
|
2450
|
-
`,
|
|
2450
|
+
`,Zo=Re.div`
|
|
2451
2451
|
border-radius: 50%;
|
|
2452
2452
|
background: rgba(0, 0, 0, 0.3);
|
|
2453
2453
|
display: flex;
|
|
@@ -2461,14 +2461,14 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2461
2461
|
opacity: 0.5;
|
|
2462
2462
|
}
|
|
2463
2463
|
}
|
|
2464
|
-
${
|
|
2464
|
+
${ue.tdUp} {
|
|
2465
2465
|
padding: 8px;
|
|
2466
2466
|
> img {
|
|
2467
2467
|
width: 30px;
|
|
2468
2468
|
height: 30px;
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
|
-
`;var
|
|
2471
|
+
`;var qo="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 _o=({initialViewIndex:e,images:a,onClose:o,alt:i})=>{const[r,s]=n(e),[c,d]=n(!1);l((()=>{setTimeout((()=>{d(!0)}),0)}),[]);const m=null==a?void 0:a[r],p=0===r,u=!(null==a?void 0:a.length)||r===(null==a?void 0:a.length)-1;return t.createElement(H,null,t.createElement(Do,{"data-open":c&&!!m},t.createElement(Uo,null,t.createElement("img",{src:vo,className:"icon-close",onClick:o,alt:"close",loading:"lazy"})),m&&r>=0&&t.createElement(t.Fragment,null,t.createElement(Wo,null,t.createElement("img",{className:"img-preview",src:m,alt:i,loading:"lazy"}),t.createElement(Ho,{"data-disabled":p,onClick:()=>!p&&s(r-1)},t.createElement(Zo,null,t.createElement("img",{src:qo,style:{transform:"rotate(180deg)"},alt:"left arrow","data-disabled":p,loading:"lazy"}))),t.createElement(Ho,{"data-right":!0,"data-disabled":u,onClick:()=>!u&&s(r+1)},t.createElement(Zo,null,t.createElement("img",{src:qo,alt:"right arrow","data-disabled":u,loading:"lazy"})))))))},Go="hhgcomp-sensitivemask-inner",Qo=je(Re.div`
|
|
2472
2472
|
position: absolute;
|
|
2473
2473
|
top: 0;
|
|
2474
2474
|
right: 0;
|
|
@@ -2480,7 +2480,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2480
2480
|
align-items: center;
|
|
2481
2481
|
justify-content: center;
|
|
2482
2482
|
cursor: pointer;
|
|
2483
|
-
`,
|
|
2483
|
+
`,Go),Xo=Re.div``,Ko=Re.div`
|
|
2484
2484
|
position: absolute;
|
|
2485
2485
|
bottom: 0;
|
|
2486
2486
|
left: 0;
|
|
@@ -2514,7 +2514,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2514
2514
|
background: transparent;
|
|
2515
2515
|
cursor: zoom-in;
|
|
2516
2516
|
|
|
2517
|
-
.${
|
|
2517
|
+
.${Go} {
|
|
2518
2518
|
top: auto;
|
|
2519
2519
|
right: auto;
|
|
2520
2520
|
left: 8px;
|
|
@@ -2524,7 +2524,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2524
2524
|
justify-content: flex-start;
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
|
-
|
|
2527
|
+
`,$o=({image:e,showIcon:a=!0})=>{const[o,i]=n(!0);return t.createElement(Ko,{"data-is-blurred":o,onClick:e=>o&&e.stopPropagation()},t.createElement("img",{loading:"lazy",className:"img-preview",src:e}),t.createElement(Qo,{onClick:e=>{e.stopPropagation(),i(!o)}},a&&t.createElement(Xo,null,o?t.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},t.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"})):t.createElement("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none"},t.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"})))))},Yo=({className:e,images:a=[],style:r,authorName:s,isSensitive:c=!1,alt:d})=>{const{data:{env:{isMarryBaby:m}}}=o(p),{t:u}=Q(),g="+ "+((a.length||0)-4),[v,h]=n(!1),[b,f]=n(-1),y=a.length>5,w=i(!1);return l((()=>()=>{w.current&&ge(!1)}),[]),l((()=>{v||b>=0?(ge(!0),w.current=!0):(ge(!1),w.current=!1)}),[v,b]),t.createElement(t.Fragment,null,c&&t.createElement(Ro,{message:u("sensitiveMask.contentWarningDescription"),icon:t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},t.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"}))}),t.createElement(Fo,{className:e,style:r,"data-image-count":y?5:a.length||0,"data-is-marrybaby":m,"data-cursor-pointer":!c},null==a?void 0:a.slice(0,5).map(((e,a)=>{const o=4===a&&y;return t.createElement("div",{className:"img-wrapper",key:a,onClick:()=>{a>=4&&y?h(!0):f(a)}},c&&t.createElement($o,{image:e,showIcon:!o}),!m&&t.createElement("img",{loading:"lazy",className:"img-preview-blur",src:e,alt:d}),t.createElement("img",{loading:"lazy",className:"img-preview",src:e,alt:d}),o&&t.createElement("div",{className:"img-more-overlay"},t.createElement(Me,{tag:"h1",as:"h2",color:"white"},g)))}))),v&&t.createElement(Vo,{authorName:s||"",images:a,onClose:()=>h(!1),onOpenSingleView:f,alt:d}),b>=0&&t.createElement(_o,{images:a,initialViewIndex:b,onClose:()=>f(-1),alt:d}))},Jo=Re.div`
|
|
2528
2528
|
.link-info-container {
|
|
2529
2529
|
padding: 0.5rem 1rem;
|
|
2530
2530
|
background: ${e=>e.color||"#f4faff"};
|
|
@@ -2560,17 +2560,17 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2560
2560
|
overflow: hidden;
|
|
2561
2561
|
border-radius: 1rem;
|
|
2562
2562
|
}
|
|
2563
|
-
`,Yo=({url:e,image:a,className:s,style:c,baseUrl:d="",autoPlay:m=!0})=>{const{data:{locale:u}}=o(p),[g,y]=n(null);l((()=>{B(void 0,void 0,void 0,(function*(){if(!a){if(!e)return y(null);y((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),v(h(b.FETCH_PREVIEW,{_locale:u},void 0,d),"POST",{data:{link:e},headers:{"Content-Type":"application/json"}},!!d).then((t=>{var a,o;y({url:e,image:(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.image)||(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.logo)})})).catch((()=>{y(null)}))}}))}),[e,a]);const w=a||(null==g?void 0:g.image),x=(null==g?void 0:g.url)||e,E=r((()=>(e=>{var t;return e.includes("youtu")&&(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""})(x)),[x]),C=r((()=>x.includes("facebook.com")||x.includes("fb.watch")),[x]),k=i(0),N=i(0),[A,T]=n(!1);l((()=>{const e=()=>{var e;const t=null===(e=z.current)||void 0===e?void 0:e.getBoundingClientRect();let a=!1;t&&(!k.current||Math.abs((k.current-t.width)/(null==t?void 0:t.width))>.2)&&(k.current=Math.floor(t.width),a=!0),t&&(!N.current||Math.abs((N.current-t.height)/(null==t?void 0:t.height))>.2)&&(N.current=Math.floor(t.height),a=!0),a&&T((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const z=i(null),P=O();return t.createElement($o,{className:`${s} no-replace-click`,style:c,ref:z,color:P.colors[P.primaryColor][0]},a||!E&&!C?t.createElement("a",{href:x,target:"_blank",rel:"noreferrer"},t.createElement("div",{className:"link-image-wrapper "+((null==g?void 0:g.isFetching)?"fetching":"")},(null==g?void 0:g.isFetching)?t.createElement(Gt,{className:"loading-spinner"}):t.createElement(ae,{className:"link-image",src:w||f,backupSrc:f,alt:x}))):t.createElement("div",{className:"link-image-wrapper"},E?t.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${E}?&autoplay=${m?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"},loading:"lazy"}):C?t.createElement("iframe",{key:String(A),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(x)}&autoplay=${m?1:0}&show_text=false&t=0&width=${k.current}&height=${N.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:N.current,width:k.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null))};var Jo="PD6nRZX";const en=({className:e,size:a="md"})=>{const{t:o}=Q();return t.createElement("div",{className:`${Jo} ${e}`},t.createElement(Se,{size:a,color:"transparent",isLoading:!0},o("loading")))},tn=a({});var an="l5fL1xL",on="L-aGKo7";const nn=({children:e,className:a=""})=>t.createElement("div",{className:`${an} ${a}`},e),ln=({children:e,className:a=""})=>t.createElement("div",{className:`${on} ${a}`},e);var rn="eaR8ATZ",sn="xM-7K0a",cn="DZmf3s7";const dn=({src:e,defaultSrc:a=me.getAssetPath("logo/logomark.png"),ratio:o=1,size:n=80,radius:i=8,alt:l,className:r=""})=>t.createElement("div",{className:r},t.createElement("div",{className:cn,style:{width:`${n}px`,height:n*o+"px",borderRadius:`${i}px`}},t.createElement(ae,{src:e,backupSrc:a,alt:l}))),mn=({category:e,title:a,src:o,children:n,className:i=""})=>t.createElement("div",{className:`${rn} ${i}`},t.createElement(dn,{src:o}),t.createElement("div",{className:sn},n||t.createElement("div",null,e&&t.createElement(nn,null,e),a&&t.createElement(ln,null,a))));mn.CategoryText=nn,mn.Title=ln;const pn=({featureImage:e,postTitle:a,author:o,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 t.createElement(mn,{src:e,className:l},t.createElement(t.Fragment,null,t.createElement(mn.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),t.createElement(mn.Title,null,a),t.createElement(Ft,{avatarProps:Object.assign(Object.assign({},o),{size:32}),subTitle:t.createElement(t.Fragment,null,s,t.createElement(Ft.SubDivider,null),"Dec 12, 2022")})))};var un={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 gn=({className:e=""})=>{var a,n,i,l,r;const{t:s}=Q(),{info:c,isMarryBaby:m,currentPageUrl:p}=o(tn),u=null==c?void 0:c.data,g=[{type:"linkedin",icon:me.getAssetPath("linkedin.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:me.getAssetPath("instagram.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:me.getAssetPath("facebook.svg"),url:null===(i=null==c?void 0:c.contact)||void 0===i?void 0:i.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:me.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:me.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],v=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:me.getAssetPath(m?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:t.createElement("div",{className:un.accBodyGroup},null==c?void 0:c.experiences.map(((e,a)=>t.createElement("div",{className:un.accBodyGroupItem,key:String(a)},t.createElement("div",{className:un.accBodyGroupTitle},e.title),t.createElement("div",{className:un.accBodyGroupDesc},t.createElement("p",null,e.organization),t.createElement("p",null,e.duration))))))}]:[],...((null==c?void 0:c.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:me.getAssetPath(m?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:t.createElement("div",{className:un.accBodyGroup},null==c?void 0:c.educations.map(((e,a)=>t.createElement("div",{className:un.accBodyGroupItem,key:String(a)},t.createElement("div",{className:un.accBodyGroupTitle},e.schoolName),t.createElement("div",{className:un.accBodyGroupDesc},t.createElement("p",null,e.study),t.createElement("p",null,e.completedYear))))))}]:[],...((null==c?void 0:c.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:me.getAssetPath(m?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:t.createElement("div",{className:un.accBodyGroup},null==c?void 0:c.awards.map(((e,a)=>t.createElement("div",{className:un.accBodyGroupTitle,key:a},e.title))))}]:[]],h=(null==c?void 0:c.relatedPosts)||[],b=g.filter((e=>e.url));return t.createElement("div",{className:`${un.container} ${e}`,"data-is-marrybaby":m},v.length>0&&t.createElement(q,{defaultValue:v[0].key,chevron:m?t.createElement("div",{className:un.mbChevronWrapper},t.createElement(d,{size:12,color:K.mbColors.midGray})):t.createElement(d,{color:K.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},v.map((e=>t.createElement(q.Item,{key:e.key,value:e.key},t.createElement(q.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":p},t.createElement("div",{className:un.header},t.createElement("div",{className:un.headingIcon},t.createElement("img",{src:e.iconSrc,loading:"lazy"})),t.createElement("div",{className:un.heading},e.heading))),t.createElement(q.Panel,null,e.panel))))),h.length>0&&t.createElement("div",{className:un.group},t.createElement("div",{className:un.subTitle},t.createElement("img",{className:un.subIcon,src:me.getAssetPath(m?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),s("profilePanel.publishedArticles")),t.createElement("div",{className:`${un.relatedList}`},null==c?void 0:c.relatedPosts.map((e=>t.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:un.articleCardLink},t.createElement(pn,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==u?void 0:u.name,avatar:null==u?void 0:u.avatar}}),{isReview:!0}))))))),b.length>0&&t.createElement("div",{className:un.group},t.createElement("div",{className:un.subTitle},t.createElement("img",{className:un.subIcon,src:me.getAssetPath(m?"social-mb.svg":"social.svg"),loading:"lazy"}),s("profilePanel.socialLinks")),t.createElement("div",{className:un.groupBody},t.createElement(V,null,g.map(((e,a)=>e.url&&t.createElement("div",{className:un.socialItem,key:a},t.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},t.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":p})))))))))};var vn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const hn=({post:e,className:a=""})=>{var n,i,l,r,s,c,d,m;const{t:u}=Q(),{data:{userInfo:g,env:{togetherBasePath:v}}}=o(p),{authActionWrapper:h,authorProps:b,currentPageUrl:f}=o(tn),y=`${window.location.origin}${v}/${null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.slug}/${null==e?void 0:e.slug}/`;return t.createElement("div",{className:`${vn.container} ${a}`},t.createElement("div",{className:vn.header},t.createElement("div",{className:vn.question},u("profilePanel.question")," ",t.createElement(ie,{className:vn.questionTitle,href:"#",onClick:()=>{(null==g?void 0:g.id)||null==h||h((()=>window.location.href=y))}},"#",null==e?void 0:e.title)),t.createElement("div",{className:vn.community},null===(i=null==e?void 0:e.community)||void 0===i?void 0:i.name," - ",null==e?void 0:e.createdTime)),t.createElement("div",{className:vn.questionCard},t.createElement(ga,Object.assign({className:"card-author"},b,{role:"user",avatarIcon:t.createElement(Ct,null),subLine:t.createElement(ga.SubTextRow,null,t.createElement(ga.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))})),t.createElement(Po,{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"})),t.createElement(ne,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":f,size:"md",onClick:()=>{(null==g?void 0:g.id)?window.location.href=y:null==h||h((()=>window.location.href=y))}},u("profilePanel.anserwing.viewFull")))};var bn="MrdoES3",fn="_8fd7YMs",yn="DomiQfw",wn="-b2qnfL";const xn=({message:e,buttonTxt:a,imgSrc:n,onBtnClick:i})=>{const{siteType:l,isMarryBaby:r}=o(tn);return t.createElement("div",{className:fn},t.createElement("div",{className:yn},t.createElement("img",{src:n||me.getAssetPath(r?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&t.createElement("div",{className:wn},e),a&&t.createElement(Se,{size:"md",theme:l,color:"secondary",onClick:i},a))},En=({id:e})=>{const{t:a}=Q(),{data:{locale:i}}=o(p),{authorProps:r}=o(tn),[s,c]=n(null),[d,m]=n(!1);return l((()=>{e&&B(void 0,void 0,void 0,(function*(){var t;m(!0);const a=yield v(h(b.USER.LIST_ANSWERS,{_locale:i,id:e}),"GET"),o=((null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.replies)||[]).map(Ee);c(o),m(!1)}))}),[]),t.createElement("div",{className:bn},d?t.createElement(en,null):null!==s&&(s.length>0?s.map((e=>t.createElement(hn,{className:"post-card",key:e.id,post:e}))):t.createElement(xn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))};var Cn="toEutn7",kn="drdisHs";const Nn=e=>{var a,n,i,l,{post:r}=e,s=F(e,["post"]);const{data:{env:{togetherBasePath:c}}}=o(p);return t.createElement(t.Fragment,null,t.createElement("div",Object.assign({},s,{className:`${Cn} ${(null==s?void 0:s.className)||""}`}),t.createElement(ga,{className:"card-author",avatar:null===(a=null==r?void 0:r.author)||void 0===a?void 0:a.avatar,name:(null===(n=null==r?void 0:r.author)||void 0===n?void 0:n.name)||(null===(i=null==r?void 0:r.author)||void 0===i?void 0:i.username),isAnonymous:Boolean(null==r?void 0:r.isAnonymous),subLine:t.createElement(ga.SubTextRow,null,t.createElement(ga.SubText,null,null==r?void 0:r.createdTime))}),t.createElement(ie,{href:`${window.location.origin}${c}/${null===(l=null==r?void 0:r.community)||void 0===l?void 0:l.slug}/${null==r?void 0:r.slug}/`,className:kn,rel:"noreferrer"},null==r?void 0:r.title)))};var An={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const Tn=()=>{var e,a;const{t:i}=Q(),{data:{locale:r,userInfo:s}}=o(p),{onSkipQuestion:c,countValues:d,setCountValues:m}=o(tn),[u,g]=n(),[v,f]=n([]),[y,w]=n(!1),x=null==s?void 0:s.id;l((()=>{x&&B(void 0,void 0,void 0,(function*(){var e;w(!0);const t=yield P(h(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(Ee),delete e.question,a.push(Ne(e))})),f(a),g(o),w(!1)}))}),[]);const E=({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),m(Object.assign(Object.assign({},d),{total_question:o})),null==c||c(o)}};return t.createElement("div",{className:An.container},y?t.createElement(en,null):(null==d?void 0:d.total_question)>0?v.length>0&&t.createElement(q,{className:An.accordion,defaultValue:String((null===(a=v[null===(e=Object.keys(v))||void 0===e?void 0:e[0]])||void 0===a?void 0:a.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},label:{padding:0},item:{marginBottom:"16px"}}),chevron:t.createElement("div",{className:An.chevron},t.createElement(le,{color:K.colors.gray600,size:20}))},v.map((e=>{const a=u&&(null==u?void 0:u[e.id])||[];return a.length>0&&t.createElement(q.Item,{key:e.id,value:String(e.id)},t.createElement(q.Control,null,t.createElement("div",{className:An.header},t.createElement("div",{className:An.headingIcon},t.createElement("img",{src:e.thumbnail,loading:"lazy"})),t.createElement("div",{className:An.heading},e.name))),t.createElement(q.Panel,null,t.createElement("div",{className:An.body},a.map((e=>t.createElement(Nn,{className:"question-card",key:e.id,post:e,onSkip:E}))))))}))):t.createElement(xn,{message:i("profilePanel.emptyCareMess.content"),imgSrc:me.getAssetPath("questions.svg")}))};var zn="GA-zc-O",Pn="A18McWD",In="IB049vj",Sn="_8I--vEV";const Ln=({post:e,className:a=""})=>{var n;const{data:{userInfo:i,env:{togetherBasePath:l}}}=o(p),{t:r}=Q(),s=O(),{authActionWrapper:d,authorProps:m}=o(tn),u=`${window.location.origin}${l}/${null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.slug}/${null==e?void 0:e.slug}/`;return t.createElement("div",{className:`${zn} ${a}`},t.createElement("div",{className:In},t.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":u,className:Sn,href:u,onClick:e=>{(null==i?void 0:i.id)||(e.preventDefault(),null==d||d((()=>window.location.href=u)))}}),t.createElement(Ft,{className:"card-author",avatarProps:{avatar:null==m?void 0:m.avatar,size:32}},t.createElement(ga.MainText,{className:Pn},null==e?void 0:e.title),t.createElement(ga.SubTextRow,null,t.createElement(ga.SubText,null,null==e?void 0:e.createdTime))),t.createElement(Po,{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",hideShowAllBtn:!0}),t.createElement(c,{size:"p3",color:s.fn.primaryColor()},r("post.seeMore"))))};var Mn="TSMHoEM";const jn=()=>{const{t:e}=Q(),{data:{locale:a}}=o(p),{authorId:i,authorProps:r,isAuthorLogin:s,onCloseFromPost:c}=o(tn),[d,m]=n(null),[u,g]=n(!1);return l((()=>{i&&B(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield v(h(b.USER.LIST_POST,{_locale:a,id:i,isAnonymous:0}),"GET"),o=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(Ee);m(o),g(!1)}))}),[i]),t.createElement("div",{className:Mn},u?t.createElement(en,null):null!==d&&(d.length>0?d.map((e=>t.createElement(Ln,{className:"post-card",key:e.id,post:e}))):t.createElement(xn,{message:e("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:s&&e("profilePanel.createPost"),onBtnClick:()=>{null==c||c()}})))};var Bn="_4Vekw96",Fn="DIJdGcB",On="aQSt4-Q";const Rn=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Vn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var Dn,Un;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(Dn||(Dn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Un||(Un={}));const Wn=e=>{var a,{authorProps:i,selectedTab:r,authActionWrapper:s,onSkipQuestion:c,onCloseFromPost:d,hideQuestionTab:m,hideAnswerTab:u,showSkipQuestionTag:g,rolesToShowQuestionsTab:f=["expert"],currentPageUrl:y}=e,w=F(e,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:x,userInfo:E,env:{isMarryBaby:C}}}=o(p),{t:k}=Q(),N=null==i?void 0:i.role,A=null==E?void 0:E.role,T=String(null==i?void 0:i.userId),[z,P]=n(),[I,S]=n(!1),[L,M]=n(),j=(null==E?void 0:E._togetherUserId)===(null==i?void 0:i.userId),O=[...-1!==f.indexOf(N)?[{value:Dn.About,text:k("profilePanel.tabs.highlight"),content:t.createElement(gn,{id:T,info:L}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:y}]:[],{value:Dn.Posts,text:k("profilePanel.tabs.posts"),content:t.createElement(jn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...m||-1===f.indexOf(A)||(null==E?void 0:E._togetherUserId)!==(null==i?void 0:i.userId)?[]:[{value:Dn.Care,text:`${k("profilePanel.tabs.care")}`,content:t.createElement(Tn,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:y}],...u||-1===f.indexOf(N)?[]:[{value:Dn.Answer,text:`${k("profilePanel.tabs.expertAnswer")}`,content:t.createElement(En,{id:T}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:y}]],[R,V]=n(null),[D,U]=n(null),W={value:String(D),dataList:R,onTabChange:e=>U(Number(e))},H=null==O?void 0:O.filter((e=>null==e?void 0:e.hasCountResult));l((()=>{B(void 0,void 0,void 0,(function*(){var e,t,a,o,n,i,l,s,c,d;S(!0);const m=yield Promise.all([v(h(b.USER.DETAIL,{_locale:x,id:T}),"GET"),...H.map((e=>v(h(b.USER.COUNT_TABS,{_locale:x,id:T,[e.keyOfCountApi]:1}),"GET")))]),[p]=m,u={data:null==p?void 0:p.data,experiences:((null===(t=null===(e=null==p?void 0:p.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(Rn),relatedPosts:((null===(a=null==p?void 0:p.data)||void 0===a?void 0:a.related_post)||[]).map((e=>Ae(e.post))),educations:((null===(n=null===(o=null==p?void 0:p.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(Vn),awards:(null===(l=null===(i=null==p?void 0:p.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(c=null===(s=null==p?void 0:p.data)||void 0===s?void 0:s.fields)||void 0===c?void 0:c.contact)||{}};1===(null==p?void 0:p.status)&&M(u);const g=(null==u?void 0:u.relatedPosts)||[],f=Object.keys(u.contact).map((e=>{var t;return""!==(null===(t=null==u?void 0:u.contact)||void 0===t?void 0:t[e])})),y=[...(null==u?void 0:u.experiences)||[],...(null==u?void 0:u.educations)||[],...(null==u?void 0:u.awards)||[]],w=g.length>0||f.length>0||y.length>0,E={},C=H.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=m[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===n?void 0:n[e.keyOfResult])||0;return i>0?(E[e.keyOfResult]=i,e):-1!==[Dn.Care,Dn.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),k=O.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==E?void 0:E[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==C.indexOf(t.value)?t:void 0:t.value===Dn.About?w&&t:t})).filter(Boolean);V(k),U(r||(null===(d=null==k?void 0:k[0])||void 0===d?void 0:d.value)),P(E),S(!1)}))}),[]);const Z=null==L?void 0:L.data;return t.createElement(tn.Provider,{value:{isMarryBaby:C,siteType:C?"marryBaby":"helloSites",authorId:String((null==i?void 0:i.userId)||""),authActionWrapper:s,onSkipQuestion:c,info:L,authorProps:i,onCloseFromPost:d,countValues:z,setCountValues:P,isAuthorLogin:j,showSkipQuestionTag:g,currentPageUrl:y}},t.createElement("div",Object.assign({},w,{className:`${Bn} ${(null==w?void 0:w.className)||""}`,"data-is-marrybaby":C}),I?t.createElement(en,null):t.createElement(t.Fragment,null,t.createElement(ga,Object.assign({},i,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==i?void 0:i.role)?(null==Z?void 0:Z.specialty)&&(null==Z?void 0:Z.organisation)&&t.createElement(ga.SubTextRow,null,(null==Z?void 0:Z.specialty)&&t.createElement(t.Fragment,null,t.createElement(ga.SubText,null,null==Z?void 0:Z.specialty),t.createElement(ga.SubDivider,null)),t.createElement(ga.SubText,null,null==Z?void 0:Z.organisation)):(null==Z?void 0:Z.created_at)&&t.createElement(ga.SubTextRow,null,t.createElement(ga.SubText,null,k("profilePanel.joined")," ",Ue(null==Z?void 0:Z.created_at).toNow(!0)))})),"expert"===N&&t.createElement("div",{className:Fn,dangerouslySetInnerHTML:{__html:null===(a=null==L?void 0:L.data)||void 0===a?void 0:a.description}}),null!==R&&null!==D&&(R.length>0?t.createElement("div",{className:On},t.createElement(re,Object.assign({},W))):t.createElement(xn,{message:k("profilePanel.emptyPostMess.content",{text:(null==i?void 0:i.name)||(null==i?void 0:i.username)||""})})))))};var Hn=Object.freeze({__proto__:null,get TabName(){return Dn},get UserType(){return Un},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Wn}),Zn="KsWg8i6",qn="_9tS0EUN",_n="kyyRKlb",Gn="-Uqqka-";const Qn=e=>{var{post:a,onSkip:i,btnText:l,currentPageUrl:r}=e,c=F(e,["post","onSkip","btnText","currentPageUrl"]);const{t:d}=Q(),{data:{locale:u},action:{pushNotifications:g}}=o(p),[v,f]=n(!1),[y,w]=n(!1),x=O(),E=s((()=>B(void 0,void 0,void 0,(function*(){var e;w(!0);const t=yield P(h(b.USER.SKIP_QUESTION,{_locale:u,id:null==a?void 0:a.id}),"PUT");1===(null==t?void 0:t.status)?(null==i||i({id:(null==a?void 0:a.id)||"",communityId:(null===(e=null==a?void 0:a.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"}),w(!1)}))),[]);return t.createElement(_,{width:327,withArrow:!0,shadow:"md",opened:v},t.createElement(_.Target,null,t.createElement("div",Object.assign({className:`${Zn} ${(null==c?void 0:c.className)||""}`,onClick:()=>f(!0)},c),l||d("profilePanel.questionNotClear"))),t.createElement(_.Dropdown,null,t.createElement("div",null,t.createElement("div",{className:qn},d("profilePanel.skipQuestion.heading")),t.createElement("div",{className:_n},d("profilePanel.skipQuestion.content")),t.createElement("div",{className:Gn},t.createElement(ne,{size:"md",variant:"secondary",leftIcon:t.createElement(J,{color:x.fn.primaryColor(),size:24}),onClick:()=>f(!1),styles:()=>({leftIcon:{marginRight:0}})}),t.createElement(ne,{variant:"primary",size:"md",leftIcon:t.createElement(m,{color:"white",size:24}),onClick:E,loading:y,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":r,styles:()=>({leftIcon:{marginRight:0}})})))))};var Xn="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",Kn="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",$n="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",Yn="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",Jn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='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",ei="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 ti=({authorEmail:e,onDeletePost:a,shareUrl:i,post:l,className:r="",popoverClassName:s="",onBookmark:c,onRemoveBookmark:d,onEditPost:m})=>{const{data:{locale:u,userInfo:g,togetherUserId:v,env:{isMarryBaby:f}},action:{pushNotifications:y}}=o(p),{t:w}=Q(),[x,E]=n(!1),[C,k]=n(!1),[N,A]=n(!1),{authActionWrapper:T}=Xe(),z=e&&(null==g?void 0:g.email)&&e===String(null==g?void 0:g.email);return t.createElement("div",{className:r,onClick:e=>{e.preventDefault(),e.stopPropagation()}},N&&t.createElement(Eo,{url:i,text:null==l?void 0:l.title,onClose:()=>A(!1)}),C&&t.createElement(vo,{thumbnail:me.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:w("popup.deletePost.title"),description:w("popup.deletePost.description"),acceptText:w("popup.deletePost.accept"),cancelText:w("popup.deletePost.cancel"),onAccept:()=>B(void 0,void 0,void 0,(function*(){if((null==l?void 0:l.id)&&!x){E(!0);try{const e=yield(({id:e,locale:t})=>B(void 0,void 0,void 0,(function*(){if(e)return yield P(h(b.POST.DELETE,{id:e,_locale:t}),"DELETE")})))({id:l.id,locale:u});1===(null==e?void 0:e.status)&&(null==a||a())}catch(e){}E(!1)}})),onClose:()=>k(!1)}),t.createElement(yt,{className:s,toggleButtonContent:t.createElement("img",{src:f?Xn:Yn,loading:"lazy"}),position:"bottom",align:"end",buttonProps:{isLoading:x},data:z?{isShowheader:!1,type:"list",list:[{icon:Jn,label:w("morePopover.share"),onClick:()=>A(!0)},{icon:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.16952 3.2356H2.99484C2.6785 3.2356 2.37512 3.36126 2.15143 3.58495C1.92774 3.80863 1.80208 4.11202 1.80208 4.42836V12.7777C1.80208 13.094 1.92774 13.3974 2.15143 13.6211C2.37512 13.8448 2.6785 13.9705 2.99484 13.9705H11.3442C11.6605 13.9705 11.9639 13.8448 12.1876 13.6211C12.4113 13.3974 12.537 13.094 12.537 12.7777V8.60303' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M11.6425 2.341C11.8798 2.10375 12.2016 1.97046 12.5371 1.97046C12.8726 1.97046 13.1944 2.10375 13.4317 2.341C13.6689 2.57826 13.8022 2.90005 13.8022 3.23558C13.8022 3.57111 13.6689 3.89289 13.4317 4.13015L7.76607 9.79578L5.38054 10.3922L5.97692 8.00663L11.6425 2.341Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",label:w("actionPopover.edit"),onClick:m},{icon:ei,label:w("actionPopover.delete"),onClick:()=>{T((()=>k(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Jn,label:w("morePopover.share"),onClick:()=>A(!0)},{icon:(null==l?void 0:l.bookmarked)?Kn:$n,label:(null==l?void 0:l.bookmarked)?w("morePopover.unsavePost"):w("morePopover.savePost"),onClick:()=>{T((()=>B(void 0,void 0,void 0,(function*(){if((null==g?void 0:g.id)&&(null==l?void 0:l.id))if(null==l?void 0:l.bookmarked){const e=yield P(h(b.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(l.id)}});1===(null==e?void 0:e.status)?(y({title:"",message:"Removed saved post",type:"success",displayIcon:$n}),d&&d()):y({title:"",message:"Remove failed",type:"danger",displayIcon:$n})}else{const e=yield P(h(b.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:v||g.id,post_id:l.id}});1===(null==e?void 0:e.status)?(y({title:"",message:"Post saved",type:"success",displayIcon:Kn}),c&&c()):y({title:"",message:"Post saved failed",type:"danger",displayIcon:$n})}}))))}},{icon:No,label:w("morePopover.report"),subTree:{title:w("morePopover.report.title"),description:w("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(L).map((e=>({label:L[e].label,reason:L[e].reportReasonText,reasonValue:e}))).map((e=>({label:w(e.label),subTree:{title:w("morePopover.reportSubmit.title"),description:w("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:a=>t.createElement(Ao,{reason:e.reasonValue,reasonText:w(e.reason),postId:null==l?void 0:l.id,onClose:()=>a&&a(!1)})}})))}}]}}))},ai=Oe.div`
|
|
2563
|
+
`,en=({url:e,image:a,className:s,style:c,baseUrl:d="",autoPlay:m=!0})=>{const{data:{locale:u}}=o(p),[g,y]=n(null);l((()=>{B(void 0,void 0,void 0,(function*(){if(!a){if(!e)return y(null);y((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),v(h(b.FETCH_PREVIEW,{_locale:u},void 0,d),"POST",{data:{link:e},headers:{"Content-Type":"application/json"}},!!d).then((t=>{var a,o;y({url:e,image:(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.image)||(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.logo)})})).catch((()=>{y(null)}))}}))}),[e,a]);const w=a||(null==g?void 0:g.image),x=(null==g?void 0:g.url)||e,E=r((()=>(e=>{var t;return e.includes("youtu")&&(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""})(x)),[x]),C=r((()=>x.includes("facebook.com")||x.includes("fb.watch")),[x]),k=i(0),N=i(0),[A,T]=n(!1);l((()=>{const e=()=>{var e;const t=null===(e=z.current)||void 0===e?void 0:e.getBoundingClientRect();let a=!1;t&&(!k.current||Math.abs((k.current-t.width)/(null==t?void 0:t.width))>.2)&&(k.current=Math.floor(t.width),a=!0),t&&(!N.current||Math.abs((N.current-t.height)/(null==t?void 0:t.height))>.2)&&(N.current=Math.floor(t.height),a=!0),a&&T((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const z=i(null),P=O();return t.createElement(Jo,{className:`${s} no-replace-click`,style:c,ref:z,color:P.colors[P.primaryColor][0]},a||!E&&!C?t.createElement("a",{href:x,target:"_blank",rel:"noreferrer"},t.createElement("div",{className:"link-image-wrapper "+((null==g?void 0:g.isFetching)?"fetching":"")},(null==g?void 0:g.isFetching)?t.createElement(Kt,{className:"loading-spinner"}):t.createElement(oe,{className:"link-image",src:w||f,backupSrc:f,alt:x}))):t.createElement("div",{className:"link-image-wrapper"},E?t.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${E}?&autoplay=${m?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"},loading:"lazy"}):C?t.createElement("iframe",{key:String(A),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(x)}&autoplay=${m?1:0}&show_text=false&t=0&width=${k.current}&height=${N.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:N.current,width:k.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null))};var tn="PD6nRZX";const an=({className:e,size:a="md"})=>{const{t:o}=Q();return t.createElement("div",{className:`${tn} ${e}`},t.createElement(Le,{size:a,color:"transparent",isLoading:!0},o("loading")))},on=a({});var nn="l5fL1xL",ln="L-aGKo7";const rn=({children:e,className:a=""})=>t.createElement("div",{className:`${nn} ${a}`},e),sn=({children:e,className:a=""})=>t.createElement("div",{className:`${ln} ${a}`},e);var cn="eaR8ATZ",dn="xM-7K0a",mn="DZmf3s7";const pn=({src:e,defaultSrc:a=pe.getAssetPath("logo/logomark.png"),ratio:o=1,size:n=80,radius:i=8,alt:l,className:r=""})=>t.createElement("div",{className:r},t.createElement("div",{className:mn,style:{width:`${n}px`,height:n*o+"px",borderRadius:`${i}px`}},t.createElement(oe,{src:e,backupSrc:a,alt:l}))),un=({category:e,title:a,src:o,children:n,className:i=""})=>t.createElement("div",{className:`${cn} ${i}`},t.createElement(pn,{src:o}),t.createElement("div",{className:dn},n||t.createElement("div",null,e&&t.createElement(rn,null,e),a&&t.createElement(sn,null,a))));un.CategoryText=rn,un.Title=sn;const gn=({featureImage:e,postTitle:a,author:o,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 t.createElement(un,{src:e,className:l},t.createElement(t.Fragment,null,t.createElement(un.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),t.createElement(un.Title,null,a),t.createElement(Ft,{avatarProps:Object.assign(Object.assign({},o),{size:32}),subTitle:t.createElement(t.Fragment,null,s,t.createElement(Ft.SubDivider,null),"Dec 12, 2022")})))};var vn={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 hn=({className:e=""})=>{var a,n,i,l,r;const{t:s}=Q(),{info:c,isMarryBaby:m,currentPageUrl:p}=o(on),u=null==c?void 0:c.data,g=[{type:"linkedin",icon:pe.getAssetPath("linkedin.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:pe.getAssetPath("instagram.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:pe.getAssetPath("facebook.svg"),url:null===(i=null==c?void 0:c.contact)||void 0===i?void 0:i.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:pe.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:pe.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],v=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:pe.getAssetPath(m?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:t.createElement("div",{className:vn.accBodyGroup},null==c?void 0:c.experiences.map(((e,a)=>t.createElement("div",{className:vn.accBodyGroupItem,key:String(a)},t.createElement("div",{className:vn.accBodyGroupTitle},e.title),t.createElement("div",{className:vn.accBodyGroupDesc},t.createElement("p",null,e.organization),t.createElement("p",null,e.duration))))))}]:[],...((null==c?void 0:c.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:pe.getAssetPath(m?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:t.createElement("div",{className:vn.accBodyGroup},null==c?void 0:c.educations.map(((e,a)=>t.createElement("div",{className:vn.accBodyGroupItem,key:String(a)},t.createElement("div",{className:vn.accBodyGroupTitle},e.schoolName),t.createElement("div",{className:vn.accBodyGroupDesc},t.createElement("p",null,e.study),t.createElement("p",null,e.completedYear))))))}]:[],...((null==c?void 0:c.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:pe.getAssetPath(m?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:t.createElement("div",{className:vn.accBodyGroup},null==c?void 0:c.awards.map(((e,a)=>t.createElement("div",{className:vn.accBodyGroupTitle,key:a},e.title))))}]:[]],h=(null==c?void 0:c.relatedPosts)||[],b=g.filter((e=>e.url));return t.createElement("div",{className:`${vn.container} ${e}`,"data-is-marrybaby":m},v.length>0&&t.createElement(q,{defaultValue:v[0].key,chevron:m?t.createElement("div",{className:vn.mbChevronWrapper},t.createElement(d,{size:12,color:$.mbColors.midGray})):t.createElement(d,{color:$.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},v.map((e=>t.createElement(q.Item,{key:e.key,value:e.key},t.createElement(q.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":p},t.createElement("div",{className:vn.header},t.createElement("div",{className:vn.headingIcon},t.createElement("img",{src:e.iconSrc,loading:"lazy"})),t.createElement("div",{className:vn.heading},e.heading))),t.createElement(q.Panel,null,e.panel))))),h.length>0&&t.createElement("div",{className:vn.group},t.createElement("div",{className:vn.subTitle},t.createElement("img",{className:vn.subIcon,src:pe.getAssetPath(m?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),s("profilePanel.publishedArticles")),t.createElement("div",{className:`${vn.relatedList}`},null==c?void 0:c.relatedPosts.map((e=>t.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:vn.articleCardLink},t.createElement(gn,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==u?void 0:u.name,avatar:null==u?void 0:u.avatar}}),{isReview:!0}))))))),b.length>0&&t.createElement("div",{className:vn.group},t.createElement("div",{className:vn.subTitle},t.createElement("img",{className:vn.subIcon,src:pe.getAssetPath(m?"social-mb.svg":"social.svg"),loading:"lazy"}),s("profilePanel.socialLinks")),t.createElement("div",{className:vn.groupBody},t.createElement(D,null,g.map(((e,a)=>e.url&&t.createElement("div",{className:vn.socialItem,key:a},t.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},t.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":p})))))))))};var bn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const fn=({post:e,className:a=""})=>{var n,i,l,r,s,c,d,m;const{t:u}=Q(),{data:{userInfo:g,env:{togetherBasePath:v}}}=o(p),{authActionWrapper:h,authorProps:b,currentPageUrl:f}=o(on),y=`${window.location.origin}${v}/${null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.slug}/${null==e?void 0:e.slug}/`;return t.createElement("div",{className:`${bn.container} ${a}`},t.createElement("div",{className:bn.header},t.createElement("div",{className:bn.question},u("profilePanel.question")," ",t.createElement(le,{className:bn.questionTitle,href:"#",onClick:()=>{(null==g?void 0:g.id)||null==h||h((()=>window.location.href=y))}},"#",null==e?void 0:e.title)),t.createElement("div",{className:bn.community},null===(i=null==e?void 0:e.community)||void 0===i?void 0:i.name," - ",null==e?void 0:e.createdTime)),t.createElement("div",{className:bn.questionCard},t.createElement(ha,Object.assign({className:"card-author"},b,{role:"user",avatarIcon:t.createElement(Ct,null),subLine:t.createElement(ha.SubTextRow,null,t.createElement(ha.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))})),t.createElement(So,{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"})),t.createElement(ie,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":f,size:"md",onClick:()=>{(null==g?void 0:g.id)?window.location.href=y:null==h||h((()=>window.location.href=y))}},u("profilePanel.anserwing.viewFull")))};var yn="MrdoES3",wn="_8fd7YMs",xn="DomiQfw",En="-b2qnfL";const Cn=({message:e,buttonTxt:a,imgSrc:n,onBtnClick:i})=>{const{siteType:l,isMarryBaby:r}=o(on);return t.createElement("div",{className:wn},t.createElement("div",{className:xn},t.createElement("img",{src:n||pe.getAssetPath(r?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&t.createElement("div",{className:En},e),a&&t.createElement(Le,{size:"md",theme:l,color:"secondary",onClick:i},a))},kn=({id:e})=>{const{t:a}=Q(),{data:{locale:i}}=o(p),{authorProps:r}=o(on),[s,c]=n(null),[d,m]=n(!1);return l((()=>{e&&B(void 0,void 0,void 0,(function*(){var t;m(!0);const a=yield v(h(b.USER.LIST_ANSWERS,{_locale:i,id:e}),"GET"),o=((null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.replies)||[]).map(Ce);c(o),m(!1)}))}),[]),t.createElement("div",{className:yn},d?t.createElement(an,null):null!==s&&(s.length>0?s.map((e=>t.createElement(fn,{className:"post-card",key:e.id,post:e}))):t.createElement(Cn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))};var Nn="toEutn7",An="drdisHs";const Tn=e=>{var a,n,i,l,{post:r}=e,s=F(e,["post"]);const{data:{env:{togetherBasePath:c}}}=o(p);return t.createElement(t.Fragment,null,t.createElement("div",Object.assign({},s,{className:`${Nn} ${(null==s?void 0:s.className)||""}`}),t.createElement(ha,{className:"card-author",avatar:null===(a=null==r?void 0:r.author)||void 0===a?void 0:a.avatar,name:(null===(n=null==r?void 0:r.author)||void 0===n?void 0:n.name)||(null===(i=null==r?void 0:r.author)||void 0===i?void 0:i.username),isAnonymous:Boolean(null==r?void 0:r.isAnonymous),subLine:t.createElement(ha.SubTextRow,null,t.createElement(ha.SubText,null,null==r?void 0:r.createdTime))}),t.createElement(le,{href:`${window.location.origin}${c}/${null===(l=null==r?void 0:r.community)||void 0===l?void 0:l.slug}/${null==r?void 0:r.slug}/`,className:An,rel:"noreferrer"},null==r?void 0:r.title)))};var zn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const Pn=()=>{var e,a;const{t:i}=Q(),{data:{locale:r,userInfo:s}}=o(p),{onSkipQuestion:c,countValues:d,setCountValues:m}=o(on),[u,g]=n(),[v,f]=n([]),[y,w]=n(!1),x=null==s?void 0:s.id;l((()=>{x&&B(void 0,void 0,void 0,(function*(){var e;w(!0);const t=yield P(h(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(Ce),delete e.question,a.push(Ae(e))})),f(a),g(o),w(!1)}))}),[]);const E=({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),m(Object.assign(Object.assign({},d),{total_question:o})),null==c||c(o)}};return t.createElement("div",{className:zn.container},y?t.createElement(an,null):(null==d?void 0:d.total_question)>0?v.length>0&&t.createElement(q,{className:zn.accordion,defaultValue:String((null===(a=v[null===(e=Object.keys(v))||void 0===e?void 0:e[0]])||void 0===a?void 0:a.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},label:{padding:0},item:{marginBottom:"16px"}}),chevron:t.createElement("div",{className:zn.chevron},t.createElement(re,{color:$.colors.gray600,size:20}))},v.map((e=>{const a=u&&(null==u?void 0:u[e.id])||[];return a.length>0&&t.createElement(q.Item,{key:e.id,value:String(e.id)},t.createElement(q.Control,null,t.createElement("div",{className:zn.header},t.createElement("div",{className:zn.headingIcon},t.createElement("img",{src:e.thumbnail,loading:"lazy"})),t.createElement("div",{className:zn.heading},e.name))),t.createElement(q.Panel,null,t.createElement("div",{className:zn.body},a.map((e=>t.createElement(Tn,{className:"question-card",key:e.id,post:e,onSkip:E}))))))}))):t.createElement(Cn,{message:i("profilePanel.emptyCareMess.content"),imgSrc:pe.getAssetPath("questions.svg")}))};var In="GA-zc-O",Sn="A18McWD",Ln="IB049vj",Mn="_8I--vEV";const jn=({post:e,className:a=""})=>{var n;const{data:{userInfo:i,env:{togetherBasePath:l}}}=o(p),{t:r}=Q(),s=O(),{authActionWrapper:d,authorProps:m}=o(on),u=`${window.location.origin}${l}/${null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.slug}/${null==e?void 0:e.slug}/`;return t.createElement("div",{className:`${In} ${a}`},t.createElement("div",{className:Ln},t.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":u,className:Mn,href:u,onClick:e=>{(null==i?void 0:i.id)||(e.preventDefault(),null==d||d((()=>window.location.href=u)))}}),t.createElement(Ft,{className:"card-author",avatarProps:{avatar:null==m?void 0:m.avatar,size:32}},t.createElement(ha.MainText,{className:Sn},null==e?void 0:e.title),t.createElement(ha.SubTextRow,null,t.createElement(ha.SubText,null,null==e?void 0:e.createdTime))),t.createElement(So,{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",hideShowAllBtn:!0}),t.createElement(c,{size:"p3",color:s.fn.primaryColor()},r("post.seeMore"))))};var Bn="TSMHoEM";const Fn=()=>{const{t:e}=Q(),{data:{locale:a}}=o(p),{authorId:i,authorProps:r,isAuthorLogin:s,onCloseFromPost:c}=o(on),[d,m]=n(null),[u,g]=n(!1);return l((()=>{i&&B(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield v(h(b.USER.LIST_POST,{_locale:a,id:i,isAnonymous:0}),"GET"),o=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(Ce);m(o),g(!1)}))}),[i]),t.createElement("div",{className:Bn},u?t.createElement(an,null):null!==d&&(d.length>0?d.map((e=>t.createElement(jn,{className:"post-card",key:e.id,post:e}))):t.createElement(Cn,{message:e("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:s&&e("profilePanel.createPost"),onBtnClick:()=>{null==c||c()}})))};var On="_4Vekw96",Rn="DIJdGcB",Vn="aQSt4-Q";const Dn=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Un=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var Wn,Hn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(Wn||(Wn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Hn||(Hn={}));const Zn=e=>{var a,{authorProps:i,selectedTab:r,authActionWrapper:s,onSkipQuestion:c,onCloseFromPost:d,hideQuestionTab:m,hideAnswerTab:u,showSkipQuestionTag:g,rolesToShowQuestionsTab:f=["expert"],currentPageUrl:y}=e,w=F(e,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:x,userInfo:E,env:{isMarryBaby:C}}}=o(p),{t:k}=Q(),N=null==i?void 0:i.role,A=null==E?void 0:E.role,T=String(null==i?void 0:i.userId),[z,P]=n(),[I,S]=n(!1),[L,M]=n(),j=(null==E?void 0:E._togetherUserId)===(null==i?void 0:i.userId),O=[...-1!==f.indexOf(N)?[{value:Wn.About,text:k("profilePanel.tabs.highlight"),content:t.createElement(hn,{id:T,info:L}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:y}]:[],{value:Wn.Posts,text:k("profilePanel.tabs.posts"),content:t.createElement(Fn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...m||-1===f.indexOf(A)||(null==E?void 0:E._togetherUserId)!==(null==i?void 0:i.userId)?[]:[{value:Wn.Care,text:`${k("profilePanel.tabs.care")}`,content:t.createElement(Pn,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:y}],...u||-1===f.indexOf(N)?[]:[{value:Wn.Answer,text:`${k("profilePanel.tabs.expertAnswer")}`,content:t.createElement(kn,{id:T}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:y}]],[R,V]=n(null),[D,U]=n(null),W={value:String(D),dataList:R,onTabChange:e=>U(Number(e))},H=null==O?void 0:O.filter((e=>null==e?void 0:e.hasCountResult));l((()=>{B(void 0,void 0,void 0,(function*(){var e,t,a,o,n,i,l,s,c,d;S(!0);const m=yield Promise.all([v(h(b.USER.DETAIL,{_locale:x,id:T}),"GET"),...H.map((e=>v(h(b.USER.COUNT_TABS,{_locale:x,id:T,[e.keyOfCountApi]:1}),"GET")))]),[p]=m,u={data:null==p?void 0:p.data,experiences:((null===(t=null===(e=null==p?void 0:p.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(Dn),relatedPosts:((null===(a=null==p?void 0:p.data)||void 0===a?void 0:a.related_post)||[]).map((e=>Te(e.post))),educations:((null===(n=null===(o=null==p?void 0:p.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(Un),awards:(null===(l=null===(i=null==p?void 0:p.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(c=null===(s=null==p?void 0:p.data)||void 0===s?void 0:s.fields)||void 0===c?void 0:c.contact)||{}};1===(null==p?void 0:p.status)&&M(u);const g=(null==u?void 0:u.relatedPosts)||[],f=Object.keys(u.contact).map((e=>{var t;return""!==(null===(t=null==u?void 0:u.contact)||void 0===t?void 0:t[e])})),y=[...(null==u?void 0:u.experiences)||[],...(null==u?void 0:u.educations)||[],...(null==u?void 0:u.awards)||[]],w=g.length>0||f.length>0||y.length>0,E={},C=H.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=m[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===n?void 0:n[e.keyOfResult])||0;return i>0?(E[e.keyOfResult]=i,e):-1!==[Wn.Care,Wn.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),k=O.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==E?void 0:E[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==C.indexOf(t.value)?t:void 0:t.value===Wn.About?w&&t:t})).filter(Boolean);V(k),U(r||(null===(d=null==k?void 0:k[0])||void 0===d?void 0:d.value)),P(E),S(!1)}))}),[]);const Z=null==L?void 0:L.data;return t.createElement(on.Provider,{value:{isMarryBaby:C,siteType:C?"marryBaby":"helloSites",authorId:String((null==i?void 0:i.userId)||""),authActionWrapper:s,onSkipQuestion:c,info:L,authorProps:i,onCloseFromPost:d,countValues:z,setCountValues:P,isAuthorLogin:j,showSkipQuestionTag:g,currentPageUrl:y}},t.createElement("div",Object.assign({},w,{className:`${On} ${(null==w?void 0:w.className)||""}`,"data-is-marrybaby":C}),I?t.createElement(an,null):t.createElement(t.Fragment,null,t.createElement(ha,Object.assign({},i,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==i?void 0:i.role)?(null==Z?void 0:Z.specialty)&&(null==Z?void 0:Z.organisation)&&t.createElement(ha.SubTextRow,null,(null==Z?void 0:Z.specialty)&&t.createElement(t.Fragment,null,t.createElement(ha.SubText,null,null==Z?void 0:Z.specialty),t.createElement(ha.SubDivider,null)),t.createElement(ha.SubText,null,null==Z?void 0:Z.organisation)):(null==Z?void 0:Z.created_at)&&t.createElement(ha.SubTextRow,null,t.createElement(ha.SubText,null,k("profilePanel.joined")," ",We(null==Z?void 0:Z.created_at).toNow(!0)))})),"expert"===N&&t.createElement("div",{className:Rn,dangerouslySetInnerHTML:{__html:null===(a=null==L?void 0:L.data)||void 0===a?void 0:a.description}}),null!==R&&null!==D&&(R.length>0?t.createElement("div",{className:Vn},t.createElement(se,Object.assign({},W))):t.createElement(Cn,{message:k("profilePanel.emptyPostMess.content",{text:(null==i?void 0:i.name)||(null==i?void 0:i.username)||""})})))))};var qn=Object.freeze({__proto__:null,get TabName(){return Wn},get UserType(){return Hn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Zn}),_n="KsWg8i6",Gn="_9tS0EUN",Qn="kyyRKlb",Xn="-Uqqka-";const Kn=e=>{var{post:a,onSkip:i,btnText:l,currentPageUrl:r}=e,c=F(e,["post","onSkip","btnText","currentPageUrl"]);const{t:d}=Q(),{data:{locale:u},action:{pushNotifications:g}}=o(p),[v,f]=n(!1),[y,w]=n(!1),x=O(),E=s((()=>B(void 0,void 0,void 0,(function*(){var e;w(!0);const t=yield P(h(b.USER.SKIP_QUESTION,{_locale:u,id:null==a?void 0:a.id}),"PUT");1===(null==t?void 0:t.status)?(null==i||i({id:(null==a?void 0:a.id)||"",communityId:(null===(e=null==a?void 0:a.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"}),w(!1)}))),[]);return t.createElement(_,{width:327,withArrow:!0,shadow:"md",opened:v},t.createElement(_.Target,null,t.createElement("div",Object.assign({className:`${_n} ${(null==c?void 0:c.className)||""}`,onClick:()=>f(!0)},c),l||d("profilePanel.questionNotClear"))),t.createElement(_.Dropdown,null,t.createElement("div",null,t.createElement("div",{className:Gn},d("profilePanel.skipQuestion.heading")),t.createElement("div",{className:Qn},d("profilePanel.skipQuestion.content")),t.createElement("div",{className:Xn},t.createElement(ie,{size:"md",variant:"secondary",leftIcon:t.createElement(ee,{color:x.fn.primaryColor(),size:24}),onClick:()=>f(!1),styles:()=>({leftIcon:{marginRight:0}})}),t.createElement(ie,{variant:"primary",size:"md",leftIcon:t.createElement(m,{color:"white",size:24}),onClick:E,loading:y,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":r,styles:()=>({leftIcon:{marginRight:0}})})))))};var $n="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",Yn="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",Jn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='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",ei="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",ti="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",ai="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 oi=({authorEmail:e,onDeletePost:a,shareUrl:i,post:l,className:r="",popoverClassName:s="",onBookmark:c,onRemoveBookmark:d,onEditPost:m})=>{const{data:{locale:u,userInfo:g,togetherUserId:v,env:{isMarryBaby:f}},action:{pushNotifications:y}}=o(p),{t:w}=Q(),[x,E]=n(!1),[C,k]=n(!1),[N,A]=n(!1),{authActionWrapper:T}=Xe(),z=e&&(null==g?void 0:g.email)&&e===String(null==g?void 0:g.email);return t.createElement("div",{className:r,onClick:e=>{e.preventDefault(),e.stopPropagation()}},N&&t.createElement(ko,{url:i,text:null==l?void 0:l.title,onClose:()=>A(!1)}),C&&t.createElement(bo,{thumbnail:pe.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:w("popup.deletePost.title"),description:w("popup.deletePost.description"),acceptText:w("popup.deletePost.accept"),cancelText:w("popup.deletePost.cancel"),onAccept:()=>B(void 0,void 0,void 0,(function*(){if((null==l?void 0:l.id)&&!x){E(!0);try{const e=yield(({id:e,locale:t})=>B(void 0,void 0,void 0,(function*(){if(e)return yield P(h(b.POST.DELETE,{id:e,_locale:t}),"DELETE")})))({id:l.id,locale:u});1===(null==e?void 0:e.status)&&(null==a||a())}catch(e){}E(!1)}})),onClose:()=>k(!1)}),t.createElement(yt,{className:s,toggleButtonContent:t.createElement("img",{src:f?$n:ei,loading:"lazy"}),position:"bottom",align:"end",buttonProps:{isLoading:x},data:z?{isShowheader:!1,type:"list",list:[{icon:ti,label:w("morePopover.share"),onClick:()=>A(!0)},{icon:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.16952 3.2356H2.99484C2.6785 3.2356 2.37512 3.36126 2.15143 3.58495C1.92774 3.80863 1.80208 4.11202 1.80208 4.42836V12.7777C1.80208 13.094 1.92774 13.3974 2.15143 13.6211C2.37512 13.8448 2.6785 13.9705 2.99484 13.9705H11.3442C11.6605 13.9705 11.9639 13.8448 12.1876 13.6211C12.4113 13.3974 12.537 13.094 12.537 12.7777V8.60303' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M11.6425 2.341C11.8798 2.10375 12.2016 1.97046 12.5371 1.97046C12.8726 1.97046 13.1944 2.10375 13.4317 2.341C13.6689 2.57826 13.8022 2.90005 13.8022 3.23558C13.8022 3.57111 13.6689 3.89289 13.4317 4.13015L7.76607 9.79578L5.38054 10.3922L5.97692 8.00663L11.6425 2.341Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",label:w("actionPopover.edit"),onClick:m},{icon:ai,label:w("actionPopover.delete"),onClick:()=>{T((()=>k(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:ti,label:w("morePopover.share"),onClick:()=>A(!0)},{icon:(null==l?void 0:l.bookmarked)?Yn:Jn,label:(null==l?void 0:l.bookmarked)?w("morePopover.unsavePost"):w("morePopover.savePost"),onClick:()=>{T((()=>B(void 0,void 0,void 0,(function*(){if((null==g?void 0:g.id)&&(null==l?void 0:l.id))if(null==l?void 0:l.bookmarked){const e=yield P(h(b.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(l.id)}});1===(null==e?void 0:e.status)?(y({title:"",message:"Removed saved post",type:"success",displayIcon:Jn}),d&&d()):y({title:"",message:"Remove failed",type:"danger",displayIcon:Jn})}else{const e=yield P(h(b.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:v||g.id,post_id:l.id}});1===(null==e?void 0:e.status)?(y({title:"",message:"Post saved",type:"success",displayIcon:Yn}),c&&c()):y({title:"",message:"Post saved failed",type:"danger",displayIcon:Jn})}}))))}},{icon:To,label:w("morePopover.report"),subTree:{title:w("morePopover.report.title"),description:w("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(L).map((e=>({label:L[e].label,reason:L[e].reportReasonText,reasonValue:e}))).map((e=>({label:w(e.label),subTree:{title:w("morePopover.reportSubmit.title"),description:w("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:a=>t.createElement(zo,{reason:e.reasonValue,reasonText:w(e.reason),postId:null==l?void 0:l.id,onClose:()=>a&&a(!1)})}})))}}]}}))},ni=Re.div`
|
|
2564
2564
|
position: relative;
|
|
2565
2565
|
margin-bottom: 24px;
|
|
2566
2566
|
background: white;
|
|
2567
|
-
border-radius: ${
|
|
2567
|
+
border-radius: ${$.borderRadius};
|
|
2568
2568
|
|
|
2569
2569
|
a {
|
|
2570
2570
|
text-decoration: none;
|
|
2571
2571
|
}
|
|
2572
2572
|
|
|
2573
|
-
${
|
|
2573
|
+
${ue.mbDown} {
|
|
2574
2574
|
margin-bottom: 8px;
|
|
2575
2575
|
}
|
|
2576
2576
|
&.flat-top {
|
|
@@ -2580,7 +2580,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2580
2580
|
|
|
2581
2581
|
.post-pin {
|
|
2582
2582
|
padding: 0.5rem 1rem;
|
|
2583
|
-
border-radius: ${
|
|
2583
|
+
border-radius: ${$.borderRadius} 6px 0 0;
|
|
2584
2584
|
}
|
|
2585
2585
|
.post-author {
|
|
2586
2586
|
display: flex;
|
|
@@ -2593,7 +2593,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2593
2593
|
width: 40px;
|
|
2594
2594
|
height: 40px;
|
|
2595
2595
|
font-size: 20px;
|
|
2596
|
-
${
|
|
2596
|
+
${ue.mbDown} {
|
|
2597
2597
|
width: 32px;
|
|
2598
2598
|
height: 32px;
|
|
2599
2599
|
font-size: 16px;
|
|
@@ -2649,7 +2649,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2649
2649
|
}
|
|
2650
2650
|
&[data-most-engaging='true'] {
|
|
2651
2651
|
border: none;
|
|
2652
|
-
${
|
|
2652
|
+
${ue.mbDown} {
|
|
2653
2653
|
margin: 1rem;
|
|
2654
2654
|
border: 1px solid #e4e8ec;
|
|
2655
2655
|
}
|
|
@@ -2697,7 +2697,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2697
2697
|
.popover-menu__btn {
|
|
2698
2698
|
width: 24px;
|
|
2699
2699
|
height: 24px;
|
|
2700
|
-
${
|
|
2700
|
+
${ue.mbDown} {
|
|
2701
2701
|
width: 18px;
|
|
2702
2702
|
height: 18px;
|
|
2703
2703
|
}
|
|
@@ -2709,7 +2709,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2709
2709
|
right: 1rem;
|
|
2710
2710
|
}
|
|
2711
2711
|
width: 350px;
|
|
2712
|
-
${
|
|
2712
|
+
${ue.mbDown} {
|
|
2713
2713
|
max-width: calc(320px - 2rem);
|
|
2714
2714
|
}
|
|
2715
2715
|
}
|
|
@@ -2731,17 +2731,17 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2731
2731
|
transform: translateX(-50%);
|
|
2732
2732
|
}
|
|
2733
2733
|
}
|
|
2734
|
-
${
|
|
2734
|
+
${ue.mbDown} {
|
|
2735
2735
|
margin-bottom: 12px;
|
|
2736
2736
|
}
|
|
2737
2737
|
}
|
|
2738
|
-
`;const
|
|
2738
|
+
`;const ii=({onDeleteComment:e,commentId:a,className:i="",popoverClassName:l=""})=>{const{data:{env:{isMarryBaby:r},locale:s},action:{pushNotifications:c}}=o(p),{t:d}=Q(),[m,u]=n(!1),{authActionWrapper:g}=Xe();return t.createElement("div",{className:i,onClick:e=>{e.preventDefault(),e.stopPropagation()}},m&&t.createElement(bo,{thumbnail:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cg stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' clip-path='url(%23clip0)'%3e%3cpath d='M2 4.008h12M5.333 4.008V2.675a1.333 1.333 0 0 1 1.334-1.333h2.666a1.333 1.333 0 0 1 1.334 1.333v1.333m2 0v9.334a1.333 1.333 0 0 1-1.334 1.333H4.667a1.333 1.333 0 0 1-1.334-1.333V4.008h9.334ZM6.667 7.342v4M9.333 7.342v4'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0'%3e%3cpath fill='white' d='M0 .008h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",isThumbnailIcon:!0,title:d("popup.deleteComment.title"),description:d("popup.deleteComment.description"),acceptText:d("popup.deletePost.accept"),cancelText:d("popup.deletePost.cancel"),onAccept:()=>B(void 0,void 0,void 0,(function*(){var t;if(!a)return;const o=yield(({id:e,locale:t})=>P(h(b.COMMENT.DELETE,{_locale:t,id:e}),"DELETE"))({id:a,locale:s});1===(null==o?void 0:o.status)?(e&&e(),c({title:"",message:d("notification.success"),type:"success"})):c({title:"",message:(null===(t=null==o?void 0:o.messages)||void 0===t?void 0:t[0])||d("notification.failure"),type:"danger"})})),onClose:()=>u(!1)}),t.createElement(yt,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:ai,label:d("actionPopover.delete"),onClick:()=>{g((()=>{u(!0)}))}}]},className:l,toggleButtonContent:t.createElement("img",{src:r?$n:ei,loading:"lazy"}),buttonProps:{}}))},li=Re.div`
|
|
2739
2739
|
.add-link {
|
|
2740
|
-
color: ${
|
|
2740
|
+
color: ${$.colors.primaryBase};
|
|
2741
2741
|
}
|
|
2742
|
-
`,
|
|
2742
|
+
`,ri=Re.div`
|
|
2743
2743
|
margin: 16px 0;
|
|
2744
|
-
background: ${
|
|
2744
|
+
background: ${$.colors.yellow50};
|
|
2745
2745
|
padding: 5px 10px;
|
|
2746
2746
|
border-radius: 2px;
|
|
2747
2747
|
|
|
@@ -2750,39 +2750,39 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2750
2750
|
vertical-align: middle;
|
|
2751
2751
|
margin-right: 6px;
|
|
2752
2752
|
}
|
|
2753
|
-
`,
|
|
2753
|
+
`,si=Re.div`
|
|
2754
2754
|
display: flex;
|
|
2755
2755
|
align-items: center;
|
|
2756
2756
|
gap: 8px;
|
|
2757
|
-
`,
|
|
2757
|
+
`,ci=Re.div`
|
|
2758
2758
|
padding: 8px 16px;
|
|
2759
|
-
`,
|
|
2759
|
+
`,di=Re.div`
|
|
2760
2760
|
margin-bottom: 12px;
|
|
2761
2761
|
width: 100%;
|
|
2762
|
-
`,
|
|
2762
|
+
`,mi=Re.div``,pi=Re.div`
|
|
2763
2763
|
margin-bottom: 16px;
|
|
2764
|
-
`,
|
|
2764
|
+
`,ui=Re.div`
|
|
2765
2765
|
display: flex;
|
|
2766
2766
|
flex-wrap: wrap;
|
|
2767
2767
|
row-gap: 16px;
|
|
2768
|
-
${
|
|
2768
|
+
${ue.tdUp} {
|
|
2769
2769
|
align-items: center;
|
|
2770
2770
|
column-gap: 24px;
|
|
2771
2771
|
}
|
|
2772
|
-
`,
|
|
2772
|
+
`,gi=Re.a`
|
|
2773
2773
|
display: flex;
|
|
2774
2774
|
align-items: center;
|
|
2775
2775
|
gap: 16px;
|
|
2776
|
-
${
|
|
2776
|
+
${ue.mbDown} {
|
|
2777
2777
|
width: 100%;
|
|
2778
2778
|
justify-content: space-between;
|
|
2779
2779
|
}
|
|
2780
|
-
`,
|
|
2780
|
+
`,vi=Re.div`
|
|
2781
2781
|
display: flex;
|
|
2782
2782
|
align-items: center;
|
|
2783
2783
|
gap: 16px;
|
|
2784
|
-
`,
|
|
2785
|
-
border-radius: ${
|
|
2784
|
+
`,hi=Re.div`
|
|
2785
|
+
border-radius: ${$.borderRadius};
|
|
2786
2786
|
overflow: hidden;
|
|
2787
2787
|
width: 48px;
|
|
2788
2788
|
height: 48px;
|
|
@@ -2791,22 +2791,22 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2791
2791
|
width: 100%;
|
|
2792
2792
|
height: 100%;
|
|
2793
2793
|
}
|
|
2794
|
-
`,
|
|
2794
|
+
`,bi=({categories:e})=>{const{t:a}=Q(),{data:{locale:n,env:{isMarryBaby:i}}}=o(p),l=qe(n,i);return t.createElement(mi,null,t.createElement(pi,null,t.createElement(Me,{tag:"h6",as:"h5"},a("cardReply.recommentCategories.heading"))),t.createElement(ui,null,e.map((e=>t.createElement(gi,{href:l+e.permalink,key:String(e.termId),target:"_blank"},t.createElement(vi,null,t.createElement(hi,null,t.createElement("img",{src:e.featureImage||pe.getAssetPath(i?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),t.createElement(c,{size:"s3",weight:"bold"},e.displayName)),t.createElement(Y.ArrowRight,{size:20,color:$.colors.gray400}))))))},fi=Re.a`
|
|
2795
2795
|
padding: 12px 0;
|
|
2796
2796
|
display: flex;
|
|
2797
2797
|
flex-direction: column;
|
|
2798
2798
|
gap: 8px;
|
|
2799
|
-
border-top: 1px solid ${
|
|
2799
|
+
border-top: 1px solid ${$.colors.neutral100};
|
|
2800
2800
|
text-decoration: none;
|
|
2801
2801
|
|
|
2802
2802
|
&:first-child {
|
|
2803
2803
|
border-top: 0;
|
|
2804
2804
|
}
|
|
2805
|
-
`,
|
|
2805
|
+
`,yi=({postTitle:e,articleReviewed:a,modifiedTime:o,href:n})=>{const{t:i}=Q(),l=(()=>{const{expert:e,editor:t,is_author:o}=a;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(t)return{title:i("articleAuthor.title.fact-check"),name:t.display_name,avatar:t.avatar}})();return t.createElement(fi,{href:n,title:e,target:"_blank"},t.createElement(c,{size:"s3",as:"h5",weight:"bold"},e),t.createElement("div",null,t.createElement(ha,{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},t.createElement(ha.SubTextRow,null,t.createElement(ha.SubText,null,null==l?void 0:l.title," ",t.createElement("span",{style:{color:$.colors.gray800}},null==l?void 0:l.name)),t.createElement(ha.SubDivider,null),t.createElement(ha.SubText,null,o)))))};var wi="F4mmgSy",xi="A7QrQ7A";const Ei=e=>{var{listUrl:a,hideSourceList:o,categorySlug:i,editMode:r,onListChange:s,isMarryBaby:d}=e,m=F(e,["listUrl","hideSourceList","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:p}=Q(),[u,g]=n(a||[]),[h,b]=n([]),[f,y]=n([]),[w,x]=n(!1);l((()=>{!o&&B(void 0,void 0,void 0,(function*(){x(!0);const e=u.map((e=>{const t=new URL(e),a=String(t.pathname).split("/").filter((e=>""!=e));return{isMarrySite:-1!==t.origin.search("marrybaby.vn"),path:a[a.length-1],href:e}})),t=[...e.map((e=>v(e.isMarrySite?M(A.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):N(A.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],a=yield Promise.all(t);b(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({},Te(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.post)),{href:e[a].href})})).filter(Boolean)),x(!1)}))}),[]),l((()=>{!o&&0===(null==h?void 0:h.length)&&i&&B(void 0,void 0,void 0,(function*(){var e;const t=yield v(d?M(A.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0):N(A.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0),"GET");(null==t?void 0:t.data)&&y([ze(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[h]);return l((()=>{null==s||s(u)}),[u]),t.createElement("div",Object.assign({},m),!r&&t.createElement(ri,null,t.createElement("img",{className:"icon",src:pe.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),t.createElement(c,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:p("cardReply.disclaimer")}})),o?null:w?t.createElement(Kt,null):h.length>0||r?t.createElement(li,null,t.createElement(q,{defaultValue:"accordion",styles:{control:{border:`1px solid ${$.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${$.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:t.createElement("div",{className:xi},t.createElement(re,{color:$.colors.gray600,size:20}))},t.createElement(q.Item,{value:"accordion"},t.createElement(q.Control,null,t.createElement("div",{className:wi},t.createElement(Me,{as:"h4",tag:"h6"},p("cardReply.source")))),t.createElement(q.Panel,null,t.createElement(ci,null,(h||[]).map(((e,a)=>t.createElement(si,{key:String(a)},"object"==typeof e?t.createElement(yi,Object.assign({},e)):t.createElement(di,null,t.createElement(Pe,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{g((t=>{const o=[...t];return o[a]=e,o})),b((t=>{const o=[...t];return o[a]=e,o}))}})),r&&t.createElement(Le,{size:"md",color:"transparent",icon:t.createElement(Y.Trash,null),onClick:()=>(e=>{g((t=>{const a=[...t];return a.splice(e,1),a})),b((t=>{const a=[...t];return a.splice(e,1),a}))})(a)})))),r&&t.createElement(Le,{className:"add-link",color:"transparent",size:"md",icon:t.createElement(Y.Plus,{color:$.colors.primaryBase,size:18}),onClick:()=>{g((e=>[...e,""])),b((e=>[...e,""]))}},"Add source")))))):t.createElement(bi,{categories:f}))},Ci=Re.div`
|
|
2806
2806
|
position: relative;
|
|
2807
2807
|
margin-bottom: 0;
|
|
2808
2808
|
background: white;
|
|
2809
|
-
border-radius: ${
|
|
2809
|
+
border-radius: ${$.borderRadius};
|
|
2810
2810
|
|
|
2811
2811
|
.verify-tag {
|
|
2812
2812
|
margin-top: 12px;
|
|
@@ -2820,7 +2820,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2820
2820
|
width: 40px;
|
|
2821
2821
|
height: 40px;
|
|
2822
2822
|
font-size: 20px;
|
|
2823
|
-
${
|
|
2823
|
+
${ue.mbDown} {
|
|
2824
2824
|
width: 32px;
|
|
2825
2825
|
height: 32px;
|
|
2826
2826
|
font-size: 16px;
|
|
@@ -2855,7 +2855,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2855
2855
|
&[data-has-booking='true'] {
|
|
2856
2856
|
display: grid;
|
|
2857
2857
|
.post-author {
|
|
2858
|
-
background-color: ${
|
|
2858
|
+
background-color: ${$.colors.primary50};
|
|
2859
2859
|
}
|
|
2860
2860
|
.btn-wrapper {
|
|
2861
2861
|
padding: 0 16px;
|
|
@@ -2925,12 +2925,12 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2925
2925
|
}
|
|
2926
2926
|
|
|
2927
2927
|
margin-left: 56px;
|
|
2928
|
-
${
|
|
2928
|
+
${ue.mbDown} {
|
|
2929
2929
|
margin-left: 40px;
|
|
2930
2930
|
}
|
|
2931
2931
|
> .post-author {
|
|
2932
2932
|
margin-left: -56px;
|
|
2933
|
-
${
|
|
2933
|
+
${ue.mbDown} {
|
|
2934
2934
|
margin-left: -40px;
|
|
2935
2935
|
}
|
|
2936
2936
|
.author-info {
|
|
@@ -2948,7 +2948,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2948
2948
|
width: 40px;
|
|
2949
2949
|
height: 40px;
|
|
2950
2950
|
font-size: 20px;
|
|
2951
|
-
${
|
|
2951
|
+
${ue.mbDown} {
|
|
2952
2952
|
width: 24px;
|
|
2953
2953
|
height: 24px;
|
|
2954
2954
|
font-size: 12px;
|
|
@@ -2961,7 +2961,7 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2961
2961
|
width: 40px;
|
|
2962
2962
|
height: 40px;
|
|
2963
2963
|
font-size: 20px;
|
|
2964
|
-
${
|
|
2964
|
+
${ue.mbDown} {
|
|
2965
2965
|
width: 24px;
|
|
2966
2966
|
height: 24px;
|
|
2967
2967
|
font-size: 12px;
|
|
@@ -2989,16 +2989,16 @@ import*as e from"react";import t,{createContext as a,useContext as o,useState as
|
|
|
2989
2989
|
.post-content-wrapper {
|
|
2990
2990
|
padding-top: 0;
|
|
2991
2991
|
padding-bottom: 0;
|
|
2992
|
-
${
|
|
2992
|
+
${ue.mbDown} {
|
|
2993
2993
|
padding-left: 0.5rem;
|
|
2994
2994
|
}
|
|
2995
2995
|
}
|
|
2996
2996
|
|
|
2997
|
-
${
|
|
2997
|
+
${ue.mbDown} {
|
|
2998
2998
|
margin-bottom: 12px;
|
|
2999
2999
|
}
|
|
3000
3000
|
}
|
|
3001
|
-
`,
|
|
3001
|
+
`,ki=Re(Ei)`
|
|
3002
3002
|
margin-top: 12px;
|
|
3003
3003
|
padding: 0.5rem 1rem 1rem;
|
|
3004
|
-
`;var Ci="-dzIuHr";const ki=({userId:e,avatar:a,name:o,role:i,title:l,className:r})=>{const{t:s}=Q(),[c,d]=n(!1);return t.createElement(t.Fragment,null,t.createElement(Se,{className:`${Ci} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},t.createElement("span",{className:"text"},t.createElement($.Endorse,{isSolid:!0,size:18,color:K.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${o||""}`}))),t.createElement(pa,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},t.createElement(Wn,{authorProps:{userId:e,avatar:a,name:o,role:i,title:l},hideQuestionTab:!0})))};const Ni=({className:e,style:a,comment:i,type:s="comment",level:c=0,replyingId:d,onPostCommentSuccess:m,post:u,onDeleteComment:g,refetchComment:f,hasQuickBookingEnable:y,handleMakeAppointment:E,cardAuthorProps:C,maxChars:k=600,disableShortenContent:N})=>{var A,T,z,I,S,L,M,j,F,O,R,V,D;const{data:{locale:U,userInfo:W,env:{isMarryBaby:H}}}=o(p),{t:Z}=Q(),[q,_]=n(i||null),{id:G,countLikes:X,content:K,replies:$=[],images:Y=[],author:J,liked:ee,link:te,mentionedUser:ae,mentions:oe}=q,{text:ne,replyingTo:ie}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})(K),{authActionWrapper:le}=Xe({_joinCommunityIds:[null===(A=null==u?void 0:u.community)||void 0===A?void 0:A.id],_joinTopicIds:null===(T=null==u?void 0:u.topics)||void 0===T?void 0:T.map((e=>e.id))}),[re,se]=n(4),de=!!(null==W?void 0:W.id)&&(null==$?void 0:$.some((e=>e.author.id===W.id))),me=e=>{_((t=>{if(!t.replies.find((t=>t.id===e.id))){t.replies.unshift(e);const a=Object.assign(Object.assign({},t),{replies:t.replies.slice(),countReplies:t.countReplies+1});return f&&f(a),a}return t}))},[pe,ue]=n(!1),ge=r((()=>"comment"===s&&$&&0!=$.length?$.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):$),[s,$]),ve=(null==$?void 0:$.length)||0,he=String(null==J?void 0:J.email)&&(null==W?void 0:W.email)&&String(null==J?void 0:J.email)===String(null==W?void 0:W.email),be=(null==J?void 0:J.name)||(null==J?void 0:J.username)||"",fe=(null==J?void 0:J.username)||(null==J?void 0:J.name)||"",we=null==J?void 0:J.avatar,xe=(null==u?void 0:u.isAnonymous)||null==J?void 0:J.role,Ee=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(z=null==u?void 0:u.author)||void 0===z?void 0:z.id)||0,name:Z("cardPost.anonymous")}]:[],...oe||[]],[Ce,ke]=n(null),[Ne,Ae]=n(null);l((()=>{if(null==J?void 0:J.hospitalId){const e=e=>B(void 0,void 0,void 0,(function*(){var t;const a=yield v(w(x.GET_HOSPITAL_INFO,{hospital_branch_id:e,website_url:ce[U]}),"get");(null===(t=null==a?void 0:a._data)||void 0===t?void 0:t.branch)&&ke(null==a?void 0:a._data.branch)}));e(J.hospitalId)}if(null==J?void 0:J.doctorId){const e=e=>B(void 0,void 0,void 0,(function*(){var t;const a=yield v(w(x.GET_DOCTOR_INFO,{doctorId:e,website_url:ce[U]}),"get");(null===(t=null==a?void 0:a._data)||void 0===t?void 0:t.doctor)&&Ae(null==a?void 0:a._data.doctor)}));e(J.doctorId)}}),[J.hospitalId,J.doctorId]);const Te=(null==Ne?void 0:Ne.valid_outpatient)||(null==Ne?void 0:Ne.valid_telemedicine),ze=((null==Ce?void 0:Ce.total_available_service)||(null==Ce?void 0:Ce.total_available_doctor))>0,Pe=y&&(Te||ze),Ie="chatbot"===(null===(I=null==q?void 0:q.author)||void 0===I?void 0:I.type);return t.createElement(Qe,{defaultParams:{_joinCommunityIds:[null===(S=null==u?void 0:u.community)||void 0===S?void 0:S.id],_joinTopicIds:null===(L=null==u?void 0:u.topics)||void 0===L?void 0:L.map((e=>e.id))}},t.createElement(xi,{className:e,style:a,"data-is-reply":!!c,"data-is-marrybaby":H,"data-has-booking":Pe},"reply"===s&&t.createElement(ye,{className:"top-divider",type:"solid"}),t.createElement("div",{style:{padding:"16px 16px 0"}},t.createElement(ga,Object.assign({avatar:we,name:be,username:fe,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(he?"with-popover":""),type:s,userId:null==J?void 0:J.id,role:xe,expertId:null==J?void 0:J.partnerId,title:null==J?void 0:J.title,doctorId:null==J?void 0:J.doctorId,hospitalId:null==J?void 0:J.hospitalId,hasQuickBooking:Pe,handleMakeAppointment:E,isAnonymous:(null==q?void 0:q.isAnonymous)||Boolean(null==u?void 0:u.isAnonymous)&&(null===(M=null==u?void 0:u.author)||void 0===M?void 0:M.username)===(null==J?void 0:J.username),hideBackground:Ie,userType:null==J?void 0:J.type},C)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&t.createElement(ki,{title:null===(j=null==q?void 0:q.userVerify)||void 0===j?void 0:j.title,name:null===(F=null==q?void 0:q.userVerify)||void 0===F?void 0:F.name,userId:null===(O=null==q?void 0:q.userVerify)||void 0===O?void 0:O.id,role:null===(R=null==q?void 0:q.userVerify)||void 0===R?void 0:R.role,avatar:null===(V=null==q?void 0:q.userVerify)||void 0===V?void 0:V.avatar,className:"verify-tag"})),t.createElement(Po,{className:"post-content-wrapper",replyingTo:ie,mentionedUser:ae,description:ne,mentions:Ee,maxChars:k,disableShortenContent:N}),t.createElement("span",null),t.createElement("span",null),Y&&Y.length>0?t.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},t.createElement(Ko,{images:Y,authorName:null==J?void 0:J.username})):null,Y&&0!==Y.length||!te?null:t.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},t.createElement($e,{url:te})),"most-engaging"!==s?t.createElement(t.Fragment,null,Ie&&t.createElement(Ei,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),t.createElement(dt,{type:ot.reply,loveCount:X,replyCount:ve,className:"post-reaction",liked:ee,isReplied:de,hideCommentIcon:"reply"===s||Ie,hasShare:!1,onCommentClick:()=>le((()=>ue((e=>!e)))),onCommentCountClick:()=>le((()=>{ue(!0)})),onLikeClick:()=>le((()=>B(void 0,void 0,void 0,(function*(){if(G){const e=yield(({commentId:e,setLike:t=!1,locale:a})=>B(void 0,void 0,void 0,(function*(){return P(h(t?b.COMMENT.LIKE:b.COMMENT.UNLIKE,{_locale:a,id:e}),"GET")})))({commentId:G,setLike:!ee,locale:U});1===e.status&&_((e=>Object.assign(Object.assign({},e),{liked:!ee,countLikes:e.countLikes+(ee?-1:1)})))}}))))}),pe&&t.createElement(fo,{replyingId:d||q.id,replyToName:be,isReply:!0,onClose:()=>ue(!1),onPostSuccess:e=>{"reply"===s?m&&m(e):me(e)},post:u,replyingUser:J}),"comment"===s&&$&&$.length>0?t.createElement("div",{className:"comment-reply-wrapper"},null===(D=null==ge?void 0:ge.slice(0,re))||void 0===D?void 0:D.map((e=>t.createElement(Ni,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:c+1,replyingId:G,onPostCommentSuccess:me,post:u,onDeleteComment:()=>{_((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:E,hasQuickBookingEnable:y}))),ve>re&&t.createElement(t.Fragment,null,t.createElement(ye,{className:"top-divider",type:"solid"}),t.createElement(Se,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>se((e=>e+4))},Z("comment.seeMoreReplies",{count:ve-re}),t.createElement("img",{className:"chevron-right",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12L10 8L6 4' stroke='%232D87F3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"})))):null):null,he&&t.createElement(oi,{onDeleteComment:g,className:"popover",commentId:q.id})))},Ai=(e,t)=>B(void 0,void 0,void 0,(function*(){var a,o,n;const i=yield j(h(b.COMMENT.LIST,{postId:e,_locale:t,sort:"popularity",perPage:1,withoutReply:1}),"GET");return null===(n=null===(o=null===(a=null==i?void 0:i.data)||void 0===a?void 0:a.comments)||void 0===o?void 0:o.map(ke))||void 0===n?void 0:n[0]})),Ti=({className:e,style:a,hideViewMoreComment:i,showMostEngaging:r,onCommentClick:s,onCommentCountClick:c,onMostEngagingCommentClick:d,onPostCommentSuccess:m,disableCardLink:u,disableShortenContent:g,onDeletePost:C,onEditPost:k,post:N,mostEngagingComment:A,onDeleteComment:T,showInputComment:z,InlineCommentsComponent:I,hasQuickBookingEnable:S,handleMakeAppointment:L,cardAuthorProps:M})=>{const[j,F]=n(N),[O,R]=n(!1),[V,D]=n(A),{community:U,topics:W,author:H,slug:Z,isPin:q,liked:_,photos:G,mentions:K,title:$,description:Y,previewUrl:J,likesCount:ee,commentsCount:te,id:ae,commented:oe}=j,{data:{locale:ne,env:{isMarryBaby:ie,togetherBasePath:le}},action:{pushNotifications:re}}=o(p),{t:se}=Q(),[ce,de]=n(z),me=`${le}/${(null==U?void 0:U.slug)||"_"}/${Z||""}`,pe=`${y(ne)}${me}`,{authActionWrapper:ue}=Xe((null==U?void 0:U.slug)?{_joinCommunityIds:[U.id],_joinTopicIds:null==W?void 0:W.map((e=>e.id))}:void 0),[ge,ve]=n(!1);l((()=>{de(z)}),[z]);const he=(null==H?void 0:H.name)||(null==H?void 0:H.username)||"",be=(null==H?void 0:H.username)||(null==H?void 0:H.name)||"",fe=null==H?void 0:H.avatar,ye=(null==j?void 0:j.isAnonymous)||null==H?void 0:H.role,[we,xe]=n(null),[Ee,Ce]=n(null);l((()=>{if(null==H?void 0:H.hospitalId){(e=>B(void 0,void 0,void 0,(function*(){var t;const a=yield v(w(x.GET_HOSPITAL_INFO,{hospital_branch_id:e,website_url:E[ne]}),"get");(null===(t=null==a?void 0:a._data)||void 0===t?void 0:t.branch)&&xe(null==a?void 0:a._data.branch)})))(H.hospitalId)}if(null==H?void 0:H.doctorId){(e=>B(void 0,void 0,void 0,(function*(){var t;const a=yield v(w(x.GET_DOCTOR_INFO,{doctorId:e,website_url:E[ne]}),"get");(null===(t=null==a?void 0:a._data)||void 0===t?void 0:t.doctor)&&Ce(null==a?void 0:a._data.doctor)})))(H.doctorId)}}),[H.hospitalId,H.doctorId]);const ke=(null==Ee?void 0:Ee.valid_outpatient)||(null==Ee?void 0:Ee.valid_telemedicine),Ne=((null==we?void 0:we.total_available_service)||(null==we?void 0:we.total_available_doctor))>0,Ae=S&&(ke||Ne);l((()=>{B(void 0,void 0,void 0,(function*(){if(ae&&te&&r&&!(null==A?void 0:A.id)){const e=yield Ai(ae,ne);D(e)}}))}),[ae,ne,te,r,null==A?void 0:A.id]),l((()=>{D(A)}),[null==A?void 0:A.id]);const Te=e=>B(void 0,void 0,void 0,(function*(){if(te>1&&(null==V?void 0:V.id)&&(null==V?void 0:V.id)===(null==e?void 0:e.id)){const e=yield Ai(ae,ne);D(e)}F((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),T&&T(e)}));return t.createElement(Qe,{defaultParams:(null==U?void 0:U.slug)?{_joinCommunityIds:[U.id],_joinTopicIds:null==W?void 0:W.map((e=>e.id))}:void 0},O&&t.createElement(Eo,{url:pe,avatar:f,text:$,onClose:()=>R(!1)}),t.createElement(ai,{className:e,style:a,"data-is-marrybaby":ie},q?t.createElement(vt,{className:"post-pin"}):null,t.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},t.createElement(ga,Object.assign({avatar:fe,name:he,username:be,url:u?void 0:me,community:U,timeText:null==j?void 0:j.createdTime,className:"post-author",role:ye,userId:null==H?void 0:H.id,expertId:null==H?void 0:H.partnerId,doctorId:null==H?void 0:H.doctorId,hospitalId:null==H?void 0:H.hospitalId,title:null==H?void 0:H.title,hasQuickBooking:Ae,handleMakeAppointment:L,"data-testid":"name",isAnonymous:!!(null==j?void 0:j.isAnonymous),extendEle:t.createElement(ti,{authorEmail:String(null==H?void 0:H.email),onDeletePost:C,shareUrl:pe,post:j,className:"popover",onEditPost:k})},M))),t.createElement("a",{href:u?void 0:me,className:"post-content-link-wrapper"},$&&t.createElement(Le,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},X($)),t.createElement(Po,{className:"post-content-wrapper",description:Y,disableShortenContent:g,mentions:K,"data-testid":"Content of the Post"})),t.createElement("span",null),t.createElement("span",null),t.createElement("div",{key:"tag-topic"},W&&W.length>0?t.createElement(pt,{topics:W,className:"post-topics"}):null),t.createElement("div",{key:"social-preview"},(null==j?void 0:j.introUrl)?t.createElement("div",{className:"social-preview-wrapper "+((null==G?void 0:G.length)?"has-image":"")},t.createElement(Yo,{url:j.introUrl,image:j.bannerImage})):null),t.createElement("div",{key:"image-preview"},(null==G?void 0:G.length)?t.createElement("div",{className:"image-preview-wrapper"},t.createElement(Ko,{images:G,authorName:null==H?void 0:H.name})):null),t.createElement("div",{key:"link-preview"},(null==j?void 0:j.introUrl)||(null==G?void 0:G.length)||!(null==J?void 0:J.url)?null:t.createElement("div",{className:"link-preview-wrapper"},t.createElement($e,{title:J.title,url:J.url,image:J.image}))),t.createElement(dt,{isMarryBaby:ie,type:ot.post,loveCount:ee,replyCount:te,className:"post-reaction "+((null==G?void 0:G.length)||(null==J?void 0:J.url)?"hide-top-border":""),liked:ge?!_:_,isReplied:oe,onCommentClick:()=>ue((()=>{s?s():de((e=>!e))})),onCommentCountClick:()=>{ue((()=>{ie?de(!0):c?c():!u&&(window.location.href=me)}))},onShareClick:()=>{R(!0)},onLikeClick:()=>B(void 0,void 0,void 0,(function*(){if(ae&&!ge){ve(!0);try{const e=yield(({id:e,locale:t})=>B(void 0,void 0,void 0,(function*(){if(e)return yield P(h(b.POST.LIKE,{id:e,_locale:t}),"GET")})))({id:ae,locale:ne});1!==(null==e?void 0:e.status)?re(va(se)):F((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){re(va(se))}ve(!1)}})),showingMostEngaging:!(!r||!(null==V?void 0:V.id))}),ce&&t.createElement(fo,{isMainCmt:!z,onClose:()=>de(!1),onPostSuccess:e=>{0!==te||(null==V?void 0:V.id)||D(e),F((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount+1,commented:!0}))),m&&m(e)},post:j}),r&&(null==V?void 0:V.id)?t.createElement("div",{className:"most-engaging-wrapper",onClick:e=>{d?(e.stopPropagation(),d()):window.location.href=me}},t.createElement(Ni,{hasQuickBookingEnable:S,handleMakeAppointment:L,comment:V,post:j,onDeleteComment:()=>{Te&&Te(V)},className:"most-engaging-comment",type:"most-engaging",key:V.id,cardAuthorProps:M}),te>1&&!i&&t.createElement(Se,{className:"see-more-comments",color:"ghost",size:"md"},se("comment.seeMoreComments",{count:te-1}))):null,I))};var zi=Object.freeze({__proto__:null});export{Qn as A,Ti as B,$e as C,ti as D,Ni as E,oi as F,ft as G,wi as H,fo as I,_e as J,gt as L,vo as P,Eo as S,Ge as T,ki as V,Qe as a,dt as b,pt as c,vt as d,Et as e,ga as f,ro as g,eo as h,oo as i,aa as j,Qt as k,ra as l,io as m,go as n,Ao as o,xo as p,Po as q,Oo as r,Zo as s,zi as t,Xe as u,Ko as v,Yo as w,pa as x,Wn as y,Dn as z};
|
|
3004
|
+
`;var Ni="-dzIuHr";const Ai=({userId:e,avatar:a,name:o,role:i,title:l,className:r})=>{const{t:s}=Q(),[c,d]=n(!1);return t.createElement(t.Fragment,null,t.createElement(Le,{className:`${Ni} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},t.createElement("span",{className:"text"},t.createElement(Y.Endorse,{isSolid:!0,size:18,color:$.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${o||""}`}))),t.createElement(va,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},t.createElement(Zn,{authorProps:{userId:e,avatar:a,name:o,role:i,title:l},hideQuestionTab:!0})))};const Ti=({className:e,style:a,comment:i,type:s="comment",level:c=0,replyingId:d,onPostCommentSuccess:m,post:u,onDeleteComment:g,refetchComment:f,hasQuickBookingEnable:y,handleMakeAppointment:E,cardAuthorProps:C,maxChars:k=600,disableShortenContent:N})=>{var A,T,z,I,S,L,M,j,F,O,R,V,D;const{data:{locale:U,userInfo:W,env:{isMarryBaby:H}}}=o(p),{t:Z}=Q(),[q,_]=n(i||null),{id:G,countLikes:X,content:K,replies:$=[],images:Y=[],author:J,liked:ee,link:te,mentionedUser:ae,mentions:oe}=q,{text:ne,replyingTo:ie}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})(K),{authActionWrapper:le}=Xe({_joinCommunityIds:[null===(A=null==u?void 0:u.community)||void 0===A?void 0:A.id],_joinTopicIds:null===(T=null==u?void 0:u.topics)||void 0===T?void 0:T.map((e=>e.id))}),[re,se]=n(4),ce=!!(null==W?void 0:W.id)&&(null==$?void 0:$.some((e=>e.author.id===W.id))),me=e=>{_((t=>{if(!t.replies.find((t=>t.id===e.id))){t.replies.unshift(e);const a=Object.assign(Object.assign({},t),{replies:t.replies.slice(),countReplies:t.countReplies+1});return f&&f(a),a}return t}))},[pe,ue]=n(!1),ge=r((()=>"comment"===s&&$&&0!=$.length?$.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):$),[s,$]),ve=(null==$?void 0:$.length)||0,he=String(null==J?void 0:J.email)&&(null==W?void 0:W.email)&&String(null==J?void 0:J.email)===String(null==W?void 0:W.email),be=(null==J?void 0:J.name)||(null==J?void 0:J.username)||"",fe=(null==J?void 0:J.username)||(null==J?void 0:J.name)||"",ye=null==J?void 0:J.avatar,xe=(null==u?void 0:u.isAnonymous)||null==J?void 0:J.role,Ee=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(z=null==u?void 0:u.author)||void 0===z?void 0:z.id)||0,name:Z("cardPost.anonymous")}]:[],...oe||[]],[Ce,ke]=n(null),[Ne,Ae]=n(null);l((()=>{if(null==J?void 0:J.hospitalId){const e=e=>B(void 0,void 0,void 0,(function*(){var t;const a=yield v(w(x.GET_HOSPITAL_INFO,{hospital_branch_id:e,website_url:de[U]}),"get");(null===(t=null==a?void 0:a._data)||void 0===t?void 0:t.branch)&&ke(null==a?void 0:a._data.branch)}));e(J.hospitalId)}if(null==J?void 0:J.doctorId){const e=e=>B(void 0,void 0,void 0,(function*(){var t;const a=yield v(w(x.GET_DOCTOR_INFO,{doctorId:e,website_url:de[U]}),"get");(null===(t=null==a?void 0:a._data)||void 0===t?void 0:t.doctor)&&Ae(null==a?void 0:a._data.doctor)}));e(J.doctorId)}}),[J.hospitalId,J.doctorId]);const Te=(null==Ne?void 0:Ne.valid_outpatient)||(null==Ne?void 0:Ne.valid_telemedicine),ze=((null==Ce?void 0:Ce.total_available_service)||(null==Ce?void 0:Ce.total_available_doctor))>0,Pe=y&&(Te||ze),Ie="chatbot"===(null===(I=null==q?void 0:q.author)||void 0===I?void 0:I.type);return t.createElement(Qe,{defaultParams:{_joinCommunityIds:[null===(S=null==u?void 0:u.community)||void 0===S?void 0:S.id],_joinTopicIds:null===(L=null==u?void 0:u.topics)||void 0===L?void 0:L.map((e=>e.id))}},t.createElement(Ci,{className:e,style:a,"data-is-reply":!!c,"data-is-marrybaby":H,"data-has-booking":Pe},"reply"===s&&t.createElement(we,{className:"top-divider",type:"solid"}),t.createElement("div",{style:{padding:"16px 16px 0"}},t.createElement(ha,Object.assign({avatar:ye,name:be,username:fe,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(he?"with-popover":""),type:s,userId:null==J?void 0:J.id,role:xe,expertId:null==J?void 0:J.partnerId,title:null==J?void 0:J.title,doctorId:null==J?void 0:J.doctorId,hospitalId:null==J?void 0:J.hospitalId,hasQuickBooking:Pe,handleMakeAppointment:E,isAnonymous:(null==q?void 0:q.isAnonymous)||Boolean(null==u?void 0:u.isAnonymous)&&(null===(M=null==u?void 0:u.author)||void 0===M?void 0:M.username)===(null==J?void 0:J.username),hideBackground:Ie,userType:null==J?void 0:J.type},C)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&t.createElement(Ai,{title:null===(j=null==q?void 0:q.userVerify)||void 0===j?void 0:j.title,name:null===(F=null==q?void 0:q.userVerify)||void 0===F?void 0:F.name,userId:null===(O=null==q?void 0:q.userVerify)||void 0===O?void 0:O.id,role:null===(R=null==q?void 0:q.userVerify)||void 0===R?void 0:R.role,avatar:null===(V=null==q?void 0:q.userVerify)||void 0===V?void 0:V.avatar,className:"verify-tag"})),t.createElement(So,{className:"post-content-wrapper",replyingTo:ie,mentionedUser:ae,description:ne,mentions:Ee,maxChars:k,disableShortenContent:N}),t.createElement("span",null),t.createElement("span",null),Y&&Y.length>0?t.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},t.createElement(Yo,{images:Y,authorName:null==J?void 0:J.username})):null,Y&&0!==Y.length||!te?null:t.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},t.createElement($e,{url:te})),"most-engaging"!==s?t.createElement(t.Fragment,null,Ie&&t.createElement(ki,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),t.createElement(dt,{type:ot.reply,loveCount:X,replyCount:ve,className:"post-reaction",liked:ee,isReplied:ce,hideCommentIcon:"reply"===s||Ie,hasShare:!1,onCommentClick:()=>le((()=>ue((e=>!e)))),onCommentCountClick:()=>le((()=>{ue(!0)})),onLikeClick:()=>le((()=>B(void 0,void 0,void 0,(function*(){if(G){const e=yield(({commentId:e,setLike:t=!1,locale:a})=>B(void 0,void 0,void 0,(function*(){return P(h(t?b.COMMENT.LIKE:b.COMMENT.UNLIKE,{_locale:a,id:e}),"GET")})))({commentId:G,setLike:!ee,locale:U});1===e.status&&_((e=>Object.assign(Object.assign({},e),{liked:!ee,countLikes:e.countLikes+(ee?-1:1)})))}}))))}),pe&&t.createElement(wo,{replyingId:d||q.id,replyToName:be,isReply:!0,onClose:()=>ue(!1),onPostSuccess:e=>{"reply"===s?m&&m(e):me(e)},post:u,replyingUser:J}),"comment"===s&&$&&$.length>0?t.createElement("div",{className:"comment-reply-wrapper"},null===(D=null==ge?void 0:ge.slice(0,re))||void 0===D?void 0:D.map((e=>t.createElement(Ti,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:c+1,replyingId:G,onPostCommentSuccess:me,post:u,onDeleteComment:()=>{_((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:E,hasQuickBookingEnable:y}))),ve>re&&t.createElement(t.Fragment,null,t.createElement(we,{className:"top-divider",type:"solid"}),t.createElement(Le,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>se((e=>e+4))},Z("comment.seeMoreReplies",{count:ve-re}),t.createElement("img",{className:"chevron-right",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12L10 8L6 4' stroke='%232D87F3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"})))):null):null,he&&t.createElement(ii,{onDeleteComment:g,className:"popover",commentId:q.id})))},zi=(e,t)=>B(void 0,void 0,void 0,(function*(){var a,o,n;const i=yield j(h(b.COMMENT.LIST,{postId:e,_locale:t,sort:"popularity",perPage:1,withoutReply:1}),"GET");return null===(n=null===(o=null===(a=null==i?void 0:i.data)||void 0===a?void 0:a.comments)||void 0===o?void 0:o.map(Ne))||void 0===n?void 0:n[0]})),Pi=({className:e,style:a,hideViewMoreComment:i,showMostEngaging:r,onCommentClick:s,onCommentCountClick:c,onMostEngagingCommentClick:d,onPostCommentSuccess:m,disableCardLink:u,disableShortenContent:g,onDeletePost:C,onEditPost:k,post:N,mostEngagingComment:A,onDeleteComment:T,showInputComment:z,InlineCommentsComponent:I,hasQuickBookingEnable:S,handleMakeAppointment:L,cardAuthorProps:M})=>{const[j,F]=n(N),[O,R]=n(!1),[V,D]=n(A),{community:U,topics:W,author:H,slug:Z,isPin:q,liked:_,photos:G,mentions:X,title:$,description:Y,previewUrl:J,likesCount:ee,commentsCount:te,id:ae,commented:oe}=j,{data:{locale:ne,env:{isMarryBaby:ie,togetherBasePath:le}},action:{pushNotifications:re}}=o(p),{t:se}=Q(),[ce,de]=n(z),me=`${le}/${(null==U?void 0:U.slug)||"_"}/${Z||""}`,pe=`${y(ne)}${me}`,{authActionWrapper:ue}=Xe((null==U?void 0:U.slug)?{_joinCommunityIds:[U.id],_joinTopicIds:null==W?void 0:W.map((e=>e.id))}:void 0),[ge,ve]=n(!1);l((()=>{de(z)}),[z]);const he=(null==H?void 0:H.name)||(null==H?void 0:H.username)||"",be=(null==H?void 0:H.username)||(null==H?void 0:H.name)||"",fe=null==H?void 0:H.avatar,ye=(null==j?void 0:j.isAnonymous)||null==H?void 0:H.role,[we,xe]=n(null),[Ee,Ce]=n(null);l((()=>{if(null==H?void 0:H.hospitalId){(e=>B(void 0,void 0,void 0,(function*(){var t;const a=yield v(w(x.GET_HOSPITAL_INFO,{hospital_branch_id:e,website_url:E[ne]}),"get");(null===(t=null==a?void 0:a._data)||void 0===t?void 0:t.branch)&&xe(null==a?void 0:a._data.branch)})))(H.hospitalId)}if(null==H?void 0:H.doctorId){(e=>B(void 0,void 0,void 0,(function*(){var t;const a=yield v(w(x.GET_DOCTOR_INFO,{doctorId:e,website_url:E[ne]}),"get");(null===(t=null==a?void 0:a._data)||void 0===t?void 0:t.doctor)&&Ce(null==a?void 0:a._data.doctor)})))(H.doctorId)}}),[H.hospitalId,H.doctorId]);const ke=(null==Ee?void 0:Ee.valid_outpatient)||(null==Ee?void 0:Ee.valid_telemedicine),Ne=((null==we?void 0:we.total_available_service)||(null==we?void 0:we.total_available_doctor))>0,Ae=S&&(ke||Ne);l((()=>{B(void 0,void 0,void 0,(function*(){if(ae&&te&&r&&!(null==A?void 0:A.id)){const e=yield zi(ae,ne);D(e)}}))}),[ae,ne,te,r,null==A?void 0:A.id]),l((()=>{D(A)}),[null==A?void 0:A.id]);const Te=e=>B(void 0,void 0,void 0,(function*(){if(te>1&&(null==V?void 0:V.id)&&(null==V?void 0:V.id)===(null==e?void 0:e.id)){const e=yield zi(ae,ne);D(e)}F((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),T&&T(e)}));return t.createElement(Qe,{defaultParams:(null==U?void 0:U.slug)?{_joinCommunityIds:[U.id],_joinTopicIds:null==W?void 0:W.map((e=>e.id))}:void 0},O&&t.createElement(ko,{url:pe,avatar:f,text:$,onClose:()=>R(!1)}),t.createElement(ni,{className:e,style:a,"data-is-marrybaby":ie},q?t.createElement(vt,{className:"post-pin"}):null,t.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},t.createElement(ha,Object.assign({avatar:fe,name:he,username:be,url:u?void 0:me,community:U,timeText:null==j?void 0:j.createdTime,className:"post-author",role:ye,userId:null==H?void 0:H.id,expertId:null==H?void 0:H.partnerId,doctorId:null==H?void 0:H.doctorId,hospitalId:null==H?void 0:H.hospitalId,title:null==H?void 0:H.title,hasQuickBooking:Ae,handleMakeAppointment:L,"data-testid":"name",isAnonymous:!!(null==j?void 0:j.isAnonymous),extendEle:t.createElement(oi,{authorEmail:String(null==H?void 0:H.email),onDeletePost:C,shareUrl:pe,post:j,className:"popover",onEditPost:k})},M))),t.createElement("a",{href:u?void 0:me,className:"post-content-link-wrapper"},$&&t.createElement(Me,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},K($)),t.createElement(So,{className:"post-content-wrapper",description:Y,disableShortenContent:g,mentions:X,"data-testid":"Content of the Post"})),t.createElement("span",null),t.createElement("span",null),t.createElement("div",{key:"tag-topic"},W&&W.length>0?t.createElement(pt,{topics:W,className:"post-topics"}):null),t.createElement("div",{key:"social-preview"},(null==j?void 0:j.introUrl)?t.createElement("div",{className:"social-preview-wrapper "+((null==G?void 0:G.length)?"has-image":"")},t.createElement(en,{url:j.introUrl,image:j.bannerImage})):null),t.createElement("div",{key:"image-preview"},(null==G?void 0:G.length)?t.createElement("div",{className:"image-preview-wrapper"},t.createElement(Yo,{images:G,authorName:null==H?void 0:H.name})):null),t.createElement("div",{key:"link-preview"},(null==j?void 0:j.introUrl)||(null==G?void 0:G.length)||!(null==J?void 0:J.url)?null:t.createElement("div",{className:"link-preview-wrapper"},t.createElement($e,{title:J.title,url:J.url,image:J.image}))),t.createElement(dt,{isMarryBaby:ie,type:ot.post,loveCount:ee,replyCount:te,className:"post-reaction "+((null==G?void 0:G.length)||(null==J?void 0:J.url)?"hide-top-border":""),liked:ge?!_:_,isReplied:oe,onCommentClick:()=>ue((()=>{s?s():de((e=>!e))})),onCommentCountClick:()=>{ue((()=>{ie?de(!0):c?c():!u&&(window.location.href=me)}))},onShareClick:()=>{R(!0)},onLikeClick:()=>B(void 0,void 0,void 0,(function*(){if(ae&&!ge){ve(!0);try{const e=yield(({id:e,locale:t})=>B(void 0,void 0,void 0,(function*(){if(e)return yield P(h(b.POST.LIKE,{id:e,_locale:t}),"GET")})))({id:ae,locale:ne});1!==(null==e?void 0:e.status)?re(ba(se)):F((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){re(ba(se))}ve(!1)}})),showingMostEngaging:!(!r||!(null==V?void 0:V.id))}),ce&&t.createElement(wo,{isMainCmt:!z,onClose:()=>de(!1),onPostSuccess:e=>{0!==te||(null==V?void 0:V.id)||D(e),F((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount+1,commented:!0}))),m&&m(e)},post:j}),r&&(null==V?void 0:V.id)?t.createElement("div",{className:"most-engaging-wrapper",onClick:e=>{d?(e.stopPropagation(),d()):window.location.href=me}},t.createElement(Ti,{hasQuickBookingEnable:S,handleMakeAppointment:L,comment:V,post:j,onDeleteComment:()=>{Te&&Te(V)},className:"most-engaging-comment",type:"most-engaging",key:V.id,cardAuthorProps:M}),te>1&&!i&&t.createElement(Le,{className:"see-more-comments",color:"ghost",size:"md"},se("comment.seeMoreComments",{count:te-1}))):null,I))};var Ii=Object.freeze({__proto__:null});export{Kn as A,Pi as B,$e as C,oi as D,Ti as E,ii as F,ft as G,Ei as H,wo as I,_e as J,gt as L,bo as P,ko as S,Ge as T,Ai as V,Qe as a,dt as b,pt as c,vt as d,Et as e,ha as f,co as g,ao as h,io as i,ia as j,$t as k,da as l,ro as m,ho as n,zo as o,Co as p,So as q,Vo as r,_o as s,Ii as t,Xe as u,Yo as v,en as w,va as x,Zn as y,Wn as z};
|