@hhgtech/hhg-components 1.28.34 → 1.28.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +30 -14
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/alert/index.d.ts +1 -2
- package/build/components/atoms/avatar/index.d.ts +1 -2
- package/build/components/atoms/divider/index.d.ts +1 -2
- package/build/components/atoms/fileDropdown/index.d.ts +1 -2
- package/build/components/atoms/heading/index.d.ts +1 -2
- package/build/components/atoms/marryBabyText/index.d.ts +1 -2
- package/build/components/atoms/marryBabyText/index.styled.d.ts +4 -2
- package/build/components/atoms/pagination/index.d.ts +1 -2
- package/build/components/mantine/slider/index.styled.d.ts +7 -1
- package/build/components/mantine/text/index.styled.d.ts +1 -9
- package/build/components/molecules/articleCard/_deprecated_index.d.ts +1 -2
- package/build/components/molecules/categoryCard/index.d.ts +1 -2
- package/build/components/molecules/dropdown/index.d.ts +1 -2
- package/build/components/molecules/dropdown/index.styled.d.ts +1 -1
- package/build/components/molecules/floatButtonGroup/index.d.ts +1 -2
- package/build/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -2
- package/build/components/molecules/tabs/index.d.ts +1 -2
- package/build/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -1
- package/build/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -8
- package/build/components.js +1 -1
- package/build/{constants-40d8e654.js → constants-437bb4bf.js} +23 -23
- package/build/{constants-e39882d7.js → constants-80dd2233.js} +1 -1
- package/build/constants.js +1 -1
- package/build/core-80e9cff8.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +45 -29
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/alert/index.d.ts +1 -2
- package/build/esm/components/atoms/avatar/index.d.ts +1 -2
- package/build/esm/components/atoms/divider/index.d.ts +1 -2
- package/build/esm/components/atoms/fileDropdown/index.d.ts +1 -2
- package/build/esm/components/atoms/heading/index.d.ts +1 -2
- package/build/esm/components/atoms/marryBabyText/index.d.ts +1 -2
- package/build/esm/components/atoms/marryBabyText/index.styled.d.ts +4 -2
- package/build/esm/components/atoms/pagination/index.d.ts +1 -2
- package/build/esm/components/mantine/slider/index.styled.d.ts +7 -1
- package/build/esm/components/mantine/text/index.styled.d.ts +1 -9
- package/build/esm/components/molecules/articleCard/_deprecated_index.d.ts +1 -2
- package/build/esm/components/molecules/categoryCard/index.d.ts +1 -2
- package/build/esm/components/molecules/dropdown/index.d.ts +1 -2
- package/build/esm/components/molecules/dropdown/index.styled.d.ts +1 -1
- package/build/esm/components/molecules/floatButtonGroup/index.d.ts +1 -2
- package/build/esm/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -2
- package/build/esm/components/molecules/tabs/index.d.ts +1 -2
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -1
- package/build/esm/components/onboardingV2/dynamicForm/index.styled.d.ts +1 -8
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-eaf6c51c.js → constants-4c45be75.js} +1 -1
- package/build/esm/{constants-9cbd1b11.js → constants-c3b0c92c.js} +25 -25
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-887f9a5d.js → core-5b21c19e.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-2e9a5548.js +1 -0
- package/build/esm/{getSocialList-48723f32.js → getSocialList-3e7a32e3.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-020361fe.js +177 -0
- package/build/esm/{index-7e96cd7e.js → index-15c00b1c.js} +1 -1
- package/build/esm/{index-905a68a4.js → index-17537d5b.js} +1 -1
- package/build/esm/index-1782f56e.js +1 -0
- package/build/esm/{index-ca22339d.js → index-17d273a3.js} +5 -5
- package/build/esm/index-1b2689ee.js +1 -0
- package/build/esm/{index-2f08d8b2.js → index-2eac1ec8.js} +1 -1
- package/build/esm/{index-c8b8773c.js → index-4eb2530b.js} +1 -1
- package/build/esm/{index-76f80354.js → index-6536dd4e.js} +11 -11
- package/build/esm/{index-301f2dee.js → index-6c2d86ad.js} +1 -1
- package/build/esm/{index-3182f4c8.js → index-72cd7c00.js} +358 -361
- package/build/esm/{index-456e07e9.js → index-9d393a92.js} +1 -1
- package/build/esm/{index-5856050d.js → index-9d86c3a8.js} +1 -1
- package/build/esm/index-a1e1a441.js +1 -0
- package/build/esm/{index-a0ed112f.js → index-a60bd3f2.js} +1 -1
- package/build/esm/index-a903d8ce.js +1 -0
- package/build/esm/{index-0bc6ed09.js → index-c22300e9.js} +1 -1
- package/build/esm/{index-40c22fc9.js → index-c9c584ed.js} +1 -1
- package/build/esm/{index-dcd77e56.js → index-e7f889b2.js} +1 -1
- package/build/esm/{index-67f13f4c.js → index-f0206e98.js} +1 -1
- package/build/esm/{index-cca1a97c.js → index-f64ac5b4.js} +1 -1
- package/build/esm/{index-b7b39aa3.js → index-f75306ca.js} +1 -1
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-f34b713c.js → index.styled-551f3c76.js} +5 -5
- package/build/esm/{index.styled-d8252a1f.js → index.styled-57535894.js} +178 -197
- package/build/esm/{index.styled-80c60a9e.js → index.styled-5c99d64b.js} +233 -235
- package/build/esm/{index.styled-a3e34614.js → index.styled-780df456.js} +1 -1
- package/build/esm/{index.styles-5d09f3e9.js → index.styles-874b1834.js} +146 -160
- 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 +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-7acb688f.js → routing-a8a2d2fd.js} +1 -1
- package/build/esm/screenSizeContext-dff03e2b.js +81 -0
- package/build/esm/subot.js +129 -132
- package/build/esm/together/components/atoms/notificationBar/index.d.ts +1 -1
- package/build/esm/together/components/molecules/submitReportForm/index.d.ts +1 -2
- package/build/esm/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +0 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-41075c37.js → types-07a8f7f9.js} +1 -1
- package/build/esm/{types-87783fd3.js → types-9b65a599.js} +15 -15
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-dfd51998.js → useCategory-8582dedd.js} +1 -1
- package/build/esm/useHealthToolCache-5b104f1e.js +1 -0
- package/build/esm/{usePlacesAutocomplete-c740d776.js → usePlacesAutocomplete-3f0cff61.js} +1 -1
- package/build/esm/{useRafState-2ebb1185.js → useRafState-27d2b972.js} +1 -1
- package/build/esm/{useTranslations-1416cdcc.js → useTranslations-14b7fcc5.js} +1 -1
- package/build/esm/{utils-563dbd48.js → utils-0b2c5aec.js} +1 -1
- package/build/esm/{utils-0e7436d5.js → utils-cca2af3a.js} +1 -1
- package/build/esm/vaccination.js +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-c1365649.js → getDynamicHealthTool-fad842aa.js} +1 -1
- package/build/{getSocialList-34d66f28.js → getSocialList-72284d55.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-992d38d2.js → index-18823495.js} +1 -1
- package/build/index-18bee338.js +1 -0
- package/build/{index-c7f012bf.js → index-24290a1e.js} +1 -1
- package/build/{index-e43cc32d.js → index-28f61b63.js} +1 -1
- package/build/{index-d1eeaaef.js → index-3e31d08a.js} +1 -1
- package/build/index-3ec29f74.js +1 -0
- package/build/{index-0c939a95.js → index-411b2c54.js} +7 -7
- package/build/{index-d1fd4d52.js → index-461460ac.js} +1 -1
- package/build/{index-17dfa7a9.js → index-4af92d15.js} +1 -1
- package/build/{index-854f1e36.js → index-536d19f8.js} +5 -5
- package/build/{index-ccefd6eb.js → index-66d800b3.js} +9 -9
- package/build/{index-a0f049ef.js → index-67f50ae5.js} +1 -1
- package/build/{index-99f21fc5.js → index-7e3aeed4.js} +1 -1
- package/build/{index-1b728b12.js → index-81ec6599.js} +1 -1
- package/build/{index-dad777d8.js → index-88ff79b6.js} +1 -1
- package/build/{index-acfb0ce9.js → index-95d71ef9.js} +1 -1
- package/build/{index-45b4b3e9.js → index-a14ac95c.js} +1 -1
- package/build/{index-16272593.js → index-a527fd86.js} +1 -1
- package/build/{index-c85ab594.js → index-c9dc742a.js} +359 -362
- package/build/{index-f137af39.js → index-cc31ada4.js} +1 -1
- package/build/{index-5846d58b.js → index-edb98431.js} +1 -1
- package/build/{index-b15a75d9.js → index-f62932f3.js} +1 -1
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-245eaa42.js → index.styled-228e96a3.js} +5 -5
- package/build/{index.styled-c3edb2b9.js → index.styled-2ce77f4d.js} +232 -234
- package/build/{index.styled-f695d1b6.js → index.styled-6d41d939.js} +118 -137
- package/build/{index.styled-086a71a8.js → index.styled-86cd31ca.js} +5 -5
- package/build/{index.styles-bc0acea0.js → index.styles-b3f7ae61.js} +146 -160
- 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 +5 -5
- package/build/pwg.js +1 -1
- package/build/{routing-a3a546b6.js → routing-0dd231c5.js} +1 -1
- package/build/screenSizeContext-0e841cc0.js +81 -0
- package/build/subot.js +91 -94
- package/build/together/components/atoms/notificationBar/index.d.ts +1 -1
- package/build/together/components/molecules/submitReportForm/index.d.ts +1 -2
- package/build/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +0 -1
- package/build/together.js +1 -1
- package/build/{types-a3e9e643.js → types-439160fd.js} +15 -15
- package/build/{types-f6913792.js → types-b4747009.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-78ec9de7.js → useCategory-718ae913.js} +1 -1
- package/build/useHealthToolCache-40a88025.js +1 -0
- package/build/{usePlacesAutocomplete-c93a598a.js → usePlacesAutocomplete-54de454b.js} +1 -1
- package/build/{useRafState-2d73039f.js → useRafState-c9f6527a.js} +1 -1
- package/build/{useTranslations-eb6e3a4e.js → useTranslations-a1b68e91.js} +1 -1
- package/build/utils-50bb77a6.js +1 -0
- package/build/{utils-86177cc2.js → utils-7528478f.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-1e09b2f5.js +0 -1
- package/build/esm/getDynamicHealthTool-f08feeaf.js +0 -1
- package/build/esm/index-02bce746.js +0 -1
- package/build/esm/index-0e19b1ab.js +0 -1
- package/build/esm/index-68163270.js +0 -1
- package/build/esm/index-79f993e1.js +0 -177
- package/build/esm/index-f851ab1f.js +0 -1
- package/build/esm/screenSizeContext-268f62ee.js +0 -81
- package/build/esm/useHealthToolCache-94b80796.js +0 -1
- package/build/index-6fd6134a.js +0 -1
- package/build/index-caefb49b.js +0 -1
- package/build/screenSizeContext-d1f3171e.js +0 -81
- package/build/useHealthToolCache-b53abfff.js +0 -1
- package/build/utils-b5dfd4e1.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-f2d6dfe0.js → BMI_BOYS.percentile.monthly-bd7c4653.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-af266ffa.js → BMI_BOYS.percentile.weekly-aa0676d7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-3197405f.js → BMI_BOYS.percentile.yearly-710bf0bc.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-d5f610e1.js → BMI_BOYS.zscore.monthly-265d16b8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-6f8488f2.js → BMI_BOYS.zscore.weekly-20e34020.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-91349a66.js → BMI_BOYS.zscore.yearly-67395b04.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-c7e89fd9.js → BMI_GIRLS.percentile.monthly-e5a6f286.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-8e6b805d.js → BMI_GIRLS.percentile.weekly-0d918cc9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-1705eb83.js → BMI_GIRLS.percentile.yearly-9ab58003.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-10ce2285.js → BMI_GIRLS.zscore.monthly-980c6ad8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-509ac723.js → BMI_GIRLS.zscore.weekly-2886baca.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-30bfdb96.js → BMI_GIRLS.zscore.yearly-e3123e93.js} +0 -0
- /package/build/{ChevronDown-26ca1544.js → ChevronDown-7d583eac.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4d09785a.js → HEAD CIRCUM_BOYS.percentile.monthly-5489c654.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f2a3683b.js → HEAD CIRCUM_BOYS.percentile.weekly-72af67ec.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-325de807.js → HEAD CIRCUM_BOYS.percentile.yearly-4689f174.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-c3653189.js → HEAD CIRCUM_BOYS.zscore.monthly-218db6e2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-64715859.js → HEAD CIRCUM_BOYS.zscore.weekly-d4b77ee2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8d5d4104.js → HEAD CIRCUM_BOYS.zscore.yearly-ba3d997e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-91394406.js → HEAD CIRCUM_GIRLS.percentile.monthly-120ece3e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-dfecd4bb.js → HEAD CIRCUM_GIRLS.percentile.weekly-591bb09a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-60f7fc20.js → HEAD CIRCUM_GIRLS.percentile.yearly-2a19d75a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0adfc823.js → HEAD CIRCUM_GIRLS.zscore.monthly-47aa0b49.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-2ca5ea36.js → HEAD CIRCUM_GIRLS.zscore.weekly-7faf2731.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-eabc2711.js → HEAD CIRCUM_GIRLS.zscore.yearly-0a9527cb.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-c30c7db8.js → HEIGHT_BOYS.percentile.monthly-975cab78.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-1b7c68af.js → HEIGHT_BOYS.percentile.weekly-45fbff53.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-7654ea26.js → HEIGHT_BOYS.percentile.yearly-2a158d1f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-100631d7.js → HEIGHT_BOYS.zscore.monthly-8dc3c9d2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-3fb8192a.js → HEIGHT_BOYS.zscore.weekly-6156e4e0.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-cfc53fb4.js → HEIGHT_BOYS.zscore.yearly-f76c1f5e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-36a38507.js → HEIGHT_GIRLS.percentile.monthly-b45e867e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d7cc3e36.js → HEIGHT_GIRLS.percentile.weekly-46b92e1b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-6e9eb89d.js → HEIGHT_GIRLS.percentile.yearly-9abaef8d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-9ef69581.js → HEIGHT_GIRLS.zscore.monthly-eb201a4a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-a5a438a7.js → HEIGHT_GIRLS.zscore.weekly-1c1b80f3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-aa9b3de3.js → HEIGHT_GIRLS.zscore.yearly-19fe9d55.js} +0 -0
- /package/build/{Subot-5e3788b9.js → Subot-6a20c386.js} +0 -0
- /package/build/{Visible-c561d877.js → Visible-96ce1462.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-7b0b5579.js → WEIGHT_BOYS.percentile.monthly-48925e68.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-650a1141.js → WEIGHT_BOYS.percentile.weekly-9675b472.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-ef733c0a.js → WEIGHT_BOYS.percentile.yearly-5ae74491.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-baa0cef6.js → WEIGHT_BOYS.zscore.monthly-fda03047.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-e7080454.js → WEIGHT_BOYS.zscore.weekly-2ab9f08c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-c51dfe8a.js → WEIGHT_BOYS.zscore.yearly-b68de4e1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-78b66e11.js → WEIGHT_GIRLS.percentile.monthly-1c82f3e1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-5df91708.js → WEIGHT_GIRLS.percentile.weekly-0628410e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-a7ad83a0.js → WEIGHT_GIRLS.percentile.yearly-bac2752a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-37aeb739.js → WEIGHT_GIRLS.zscore.monthly-444c0637.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-cdb5a619.js → WEIGHT_GIRLS.zscore.weekly-e943b0eb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-10f7b113.js → WEIGHT_GIRLS.zscore.yearly-cd96850c.js} +0 -0
- /package/build/{cookieHelper-faead274.js → cookieHelper-90494d05.js} +0 -0
- /package/build/{dataTransform-4e01afe7.js → dataTransform-6263c35e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-237c26c1.js → BMI_BOYS.percentile.monthly-2f0ebcbf.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-5e217121.js → BMI_BOYS.percentile.weekly-923b3d30.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-b7c24b07.js → BMI_BOYS.percentile.yearly-7d39033d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-caee541a.js → BMI_BOYS.zscore.monthly-21915d60.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-248bd6a3.js → BMI_BOYS.zscore.weekly-afaad99e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-c4c5bebc.js → BMI_BOYS.zscore.yearly-2d48176b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-7cf5b7a8.js → BMI_GIRLS.percentile.monthly-67f03f38.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-2c920355.js → BMI_GIRLS.percentile.weekly-a2c33686.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-2913ce0d.js → BMI_GIRLS.percentile.yearly-7a98dd42.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-a9ca6049.js → BMI_GIRLS.zscore.monthly-599baf2d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-7686cd52.js → BMI_GIRLS.zscore.weekly-c258aef0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-0fe95249.js → BMI_GIRLS.zscore.yearly-e8ce4dc8.js} +0 -0
- /package/build/esm/{ChevronDown-2b150c99.js → ChevronDown-198d9cc6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-9ab3e376.js → HEAD CIRCUM_BOYS.percentile.monthly-bc41ab37.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-b419210c.js → HEAD CIRCUM_BOYS.percentile.weekly-bd73d642.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-47c58312.js → HEAD CIRCUM_BOYS.percentile.yearly-044a1a1a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-573a0db9.js → HEAD CIRCUM_BOYS.zscore.monthly-61bf74c0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6d69c852.js → HEAD CIRCUM_BOYS.zscore.weekly-28e9f5ed.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-22f44323.js → HEAD CIRCUM_BOYS.zscore.yearly-2a0e1789.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-484fc054.js → HEAD CIRCUM_GIRLS.percentile.monthly-13f948b3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-ce9ad0ad.js → HEAD CIRCUM_GIRLS.percentile.weekly-88cc5320.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-5ba8609b.js → HEAD CIRCUM_GIRLS.percentile.yearly-7f0f400b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-09f228c4.js → HEAD CIRCUM_GIRLS.zscore.monthly-d78908a1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0d16214e.js → HEAD CIRCUM_GIRLS.zscore.weekly-f3207f83.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-69196152.js → HEAD CIRCUM_GIRLS.zscore.yearly-0628d6d8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-73475699.js → HEIGHT_BOYS.percentile.monthly-182bed39.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-aaa9c5d2.js → HEIGHT_BOYS.percentile.weekly-44f52c09.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-19ed1ac7.js → HEIGHT_BOYS.percentile.yearly-bb541601.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-6af8892b.js → HEIGHT_BOYS.zscore.monthly-a9a9dd47.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-344ab143.js → HEIGHT_BOYS.zscore.weekly-9fc7b902.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-eb3a4e83.js → HEIGHT_BOYS.zscore.yearly-88da8bc2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8b6c42e4.js → HEIGHT_GIRLS.percentile.monthly-fb5f6f0d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-74469212.js → HEIGHT_GIRLS.percentile.weekly-4baca659.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3f9ee629.js → HEIGHT_GIRLS.percentile.yearly-fc7e1fc1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c6a7dc2d.js → HEIGHT_GIRLS.zscore.monthly-b439db85.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e27c7b61.js → HEIGHT_GIRLS.zscore.weekly-8681e64a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-72d00068.js → HEIGHT_GIRLS.zscore.yearly-28b1d0bb.js} +0 -0
- /package/build/esm/{Subot-0c4dab43.js → Subot-e272425a.js} +0 -0
- /package/build/esm/{Visible-c68224a8.js → Visible-e7a4b560.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-38ddd06a.js → WEIGHT_BOYS.percentile.monthly-d6835449.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a0349b82.js → WEIGHT_BOYS.percentile.weekly-bc54a47c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-4aa28c2a.js → WEIGHT_BOYS.percentile.yearly-69b5c0cf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-285f7f43.js → WEIGHT_BOYS.zscore.monthly-fae0c31f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7fdcfb45.js → WEIGHT_BOYS.zscore.weekly-58bfd560.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-67512a08.js → WEIGHT_BOYS.zscore.yearly-4e428e24.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-687fcbb9.js → WEIGHT_GIRLS.percentile.monthly-5136f490.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9c8ebcfb.js → WEIGHT_GIRLS.percentile.weekly-bd8ea375.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bb43d716.js → WEIGHT_GIRLS.percentile.yearly-40e16990.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-6ea1cc38.js → WEIGHT_GIRLS.zscore.monthly-bc34aead.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-589c96d0.js → WEIGHT_GIRLS.zscore.weekly-c5ab12a0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-293c72b6.js → WEIGHT_GIRLS.zscore.yearly-41608a14.js} +0 -0
- /package/build/esm/{cookieHelper-f205b169.js → cookieHelper-28df9366.js} +0 -0
- /package/build/esm/{dataTransform-4b79e9fc.js → dataTransform-3cf63532.js} +0 -0
- /package/build/esm/{index-bb150c0d.js → index-10c5feed.js} +0 -0
- /package/build/esm/{index-ebc484da.js → index-9d4a84ac.js} +0 -0
- /package/build/esm/{index-bc96f01d.js → index-ac4a532b.js} +0 -0
- /package/build/esm/{isProduction-095ab64f.js → isProduction-b5290208.js} +0 -0
- /package/build/esm/{localizeNumberFormat-6ec4b13f.js → localizeNumberFormat-a5628e95.js} +0 -0
- /package/build/esm/{normalizeLink-730f7beb.js → normalizeLink-03495796.js} +0 -0
- /package/build/esm/{number-6d1e5da0.js → number-97247dba.js} +0 -0
- /package/build/esm/{paths-d8c26a48.js → paths-fcede6b6.js} +0 -0
- /package/build/esm/{theme-c91f8447.js → theme-ccf55e31.js} +0 -0
- /package/build/esm/{translationsContext-8d25a828.js → translationsContext-7856306b.js} +0 -0
- /package/build/esm/{tslib.es6-89288f42.js → tslib.es6-842a2bb8.js} +0 -0
- /package/build/esm/{types-4b3c5426.js → types-3f42ad37.js} +0 -0
- /package/build/esm/{useIsInit-6890e3ae.js → useIsInit-7d05716a.js} +0 -0
- /package/build/esm/{useOutsideClick-fcf2d8f9.js → useOutsideClick-9d03d01d.js} +0 -0
- /package/build/esm/{useScrollbarSize-53042c16.js → useScrollbarSize-1c748ec0.js} +0 -0
- /package/build/{index-65b4e1df.js → index-22f2dd43.js} +0 -0
- /package/build/{index-dd93f3f7.js → index-a6882810.js} +0 -0
- /package/build/{index-87fb4741.js → index-b3a56944.js} +0 -0
- /package/build/{isProduction-a6dab3b8.js → isProduction-975fbda1.js} +0 -0
- /package/build/{localizeNumberFormat-68c605b4.js → localizeNumberFormat-f603a6d8.js} +0 -0
- /package/build/{normalizeLink-b08e7017.js → normalizeLink-b260b165.js} +0 -0
- /package/build/{number-824f5e2e.js → number-3f6eba85.js} +0 -0
- /package/build/{paths-cb533948.js → paths-9ce571a8.js} +0 -0
- /package/build/{theme-9886c9e0.js → theme-cf605758.js} +0 -0
- /package/build/{translationsContext-510e154b.js → translationsContext-b4e24bbe.js} +0 -0
- /package/build/{tslib.es6-5d58d708.js → tslib.es6-8187fb3c.js} +0 -0
- /package/build/{types-16b33149.js → types-16f153bc.js} +0 -0
- /package/build/{useIsInit-10070617.js → useIsInit-df1db68e.js} +0 -0
- /package/build/{useOutsideClick-d814cc9a.js → useOutsideClick-eeca1a83.js} +0 -0
- /package/build/{useScrollbarSize-efc94491.js → useScrollbarSize-7a77a7be.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("@mantine/core"),a=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("react"),t=require("@mantine/core"),a=require("./tslib.es6-8187fb3c.js"),o=require("./useTranslations-a1b68e91.js"),r=require("./index-28f61b63.js"),l=require("./index-536d19f8.js");require("@mantine/dates");var n=require("./index-edb98431.js"),i=require("./Subot-6a20c386.js"),s=require("./gAssets.js"),d=require("dayjs"),c=require("./screenSizeContext-0e841cc0.js"),u=require("styled-components"),p=require("./theme-cf605758.js"),m=require("./number-3f6eba85.js"),g=require("./isProduction-975fbda1.js");require("@mantine/hooks");var h=require("./index.styles-b3f7ae61.js"),f=require("date-fns");require("./translationsContext-b4e24bbe.js"),require("string-format");var v=require("./index-4af92d15.js"),b=require("./index-81ec6599.js"),x=require("./index-66d800b3.js"),w=require("./routing-0dd231c5.js"),y=require("dayjs/plugin/relativeTime"),C=require("./paths-9ce571a8.js"),E=require("./constants-437bb4bf.js"),k=require("lodash/debounce");require("./useCategory-718ae913.js");var A=require("./index-a527fd86.js");require("innertext");var N=require("./cookieHelper-90494d05.js");function T(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function S(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("react-contenteditable"),require("react-dom"),require("./utils-7528478f.js"),require("./index.styled-228e96a3.js"),require("./index-b3a56944.js");var z=S(e),P=T(e),L=T(d),M=T(u),B=T(y),R=T(k);const I=e=>z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),z.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"})),O={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},V=e=>{var{siteType:t,role:r,title:l,styles:n,className:i}=e,s=a.__rest(e,["siteType","role","title","styles","className"]);const{t:d}=o.useTranslations(),c=r?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(r):"",{classes:u,cx:p}=h.useStyles$1(void 0,{name:"AuthorBadge",styles:n});return c&&O[c]?P.default.createElement("div",Object.assign({className:p(u.root,i),"data-label-type":c,"data-is-marrybaby":"marryBaby"===t},s),l||d(O[c])):null},F=t=>{var{label:r,bookingId:i,bookingType:s="doctor",locale:d="vi-VN"}=t,c=a.__rest(t,["label","bookingId","bookingType","locale"]);const{t:u}=o.useTranslations(),[p,m]=e.useState(!1),f=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]),v=e.useCallback((()=>a.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,o,r,l,c,u,p,f,v,b,x,w,y;const k="doctor"===s?C.PATHS.GET_DOCTOR_DETAIL:"hospital"===s?C.PATHS.GET_HOSPITAL_DETAIL:"service"===s?C.PATHS.GET_SERVICE_DETAIL:"";try{m(!0);const C=yield h.callApi(h.getCarePath(k,{id:i,site:n.domainLocales[d]}),"get");if(1===(null==C?void 0:C._status)){const i="doctor"===s?{id:null===(t=null===(e=null==C?void 0:C._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(o=null===(a=null==C?void 0:C._data)||void 0===a?void 0:a.doctor)||void 0===o?void 0:o.slug,localSlug:null===(r=E.LOCALIZED_SLUGS[d])||void 0===r?void 0:r.DOCTOR}:"hospital"===s?{id:null===(c=null===(l=null==C?void 0:C._data)||void 0===l?void 0:l.branch)||void 0===c?void 0:c.id,slug:null===(p=null===(u=null==C?void 0:C._data)||void 0===u?void 0:u.branch)||void 0===p?void 0:p.slug,localSlug:null===(f=E.LOCALIZED_SLUGS[d])||void 0===f?void 0:f.HOSPITAL}:{id:null===(b=null===(v=null==C?void 0:C._data)||void 0===v?void 0:v.service)||void 0===b?void 0:b.id,slug:null===(w=null===(x=null==C?void 0:C._data)||void 0===x?void 0:x.service)||void 0===w?void 0:w.slug,localSlug:null===(y=E.LOCALIZED_SLUGS[d])||void 0===y?void 0:y.SERVICE};window.location.href=`https://${g.isProduction?"":"discover."}${n.domainLocales[d]}/care/${i.localSlug}/${i.slug}-${i.id}/`}else m(!1)}catch(e){console.log(e),m(!1)}}))),[]);return i&&s?P.default.createElement(l.Button,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:f,onClick:v,loading:p},c),r||u("careBooking.bookAnAppointment")):null},j=M.default.select`
|
|
2
2
|
--dropdown-padding: 12px 18px 12px 16px;
|
|
3
3
|
position: relative;
|
|
4
4
|
box-sizing: border-box;
|
|
5
|
-
border: 1px solid ${
|
|
5
|
+
border: 1px solid ${p.theme.colors.gray200};
|
|
6
6
|
background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
|
|
7
7
|
no-repeat;
|
|
8
8
|
background-position: right 16px center;
|
|
9
|
-
border-radius: ${
|
|
9
|
+
border-radius: ${p.theme.borderRadius};
|
|
10
10
|
|
|
11
11
|
&[data-disabled='true'],
|
|
12
12
|
:disabled {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
&[data-has-icons='true'] {
|
|
31
31
|
border: none;
|
|
32
|
-
background: ${
|
|
32
|
+
background: ${p.theme.colors.gray100};
|
|
33
33
|
|
|
34
34
|
img,
|
|
35
35
|
svg {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
&[data-dropdown-open] {
|
|
90
90
|
padding: 11px 15px 11px 15px;
|
|
91
91
|
border: 1px solid ${e=>e.color};
|
|
92
|
-
border-radius: ${
|
|
92
|
+
border-radius: ${p.theme.borderRadius};
|
|
93
93
|
box-shadow: 0 0 2px 2px ${e=>e.shadowColor};
|
|
94
94
|
}
|
|
95
95
|
`,U=M.default.ul`
|
|
@@ -100,14 +100,14 @@
|
|
|
100
100
|
left: 0;
|
|
101
101
|
display: block;
|
|
102
102
|
margin-top: 4px;
|
|
103
|
-
background: ${
|
|
104
|
-
border-radius: ${
|
|
103
|
+
background: ${p.theme.colors.white};
|
|
104
|
+
border-radius: ${p.theme.borderRadius};
|
|
105
105
|
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
|
|
106
106
|
-2px 2px 5px rgba(67, 86, 100, 0.123689);
|
|
107
107
|
cursor: pointer;
|
|
108
108
|
|
|
109
109
|
&[data-has-icons='true'] {
|
|
110
|
-
border: 1px solid ${
|
|
110
|
+
border: 1px solid ${p.theme.colors.gray200};
|
|
111
111
|
background: white;
|
|
112
112
|
box-shadow: none;
|
|
113
113
|
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
&:hover,
|
|
126
126
|
:active {
|
|
127
|
-
background: ${
|
|
127
|
+
background: ${p.theme.colors.gray100};
|
|
128
128
|
}
|
|
129
129
|
`,W=M.default.div`
|
|
130
130
|
max-width: 16px;
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
top: 12px;
|
|
135
135
|
left: 16px;
|
|
136
136
|
pointer-events: none;
|
|
137
|
-
`,G=e.createContext({}),Z=t=>{const{data:{userInfo:a,env:{togetherBasePath:o}}}=e.useContext(h.TogetherComponentGlobalContext),{defaultParams:r}=e.useContext(G)||{},l=null==a?void 0:a.id,
|
|
137
|
+
`,G=e.createContext({}),Z=t=>{const{data:{userInfo:a,env:{togetherBasePath:o}}}=e.useContext(h.TogetherComponentGlobalContext),{defaultParams:r}=e.useContext(G)||{},l=null==a?void 0:a.id,n=a&&"number"==typeof a.communities_interacted&&0===a.communities_interacted;return{authActionWrapper:(e,a)=>{const i=Object.assign(Object.assign(Object.assign({},r),t),a);if(!l||n){l||N.deleteCookie(h.BEARER_TOKEN_COOKIE),(null==i?void 0:i._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(i._joinCommunityIds).filter(Boolean))))),null==i||delete i._joinCommunityIds),(null==i?void 0:i._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(i._joinTopicIds).filter(Boolean))))),null==i||delete i._joinTopicIds);const e=(null==i?void 0:i._location)||window.location.href;return null==i||delete i._location,window.location.href=h.getUrlToSignUp(e,i,o),null}return e&&e()},params:Object.assign(Object.assign({},r),t)}},Q=M.default.div`
|
|
138
138
|
.link-info-container {
|
|
139
139
|
padding: 0.5rem 1rem;
|
|
140
140
|
background: ${e=>e.color||"#f4faff"};
|
|
@@ -194,18 +194,18 @@
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
`,X=e.createContext({});var _="vvR-m49";const K=({children:t,className:a=""})=>{const{isReplied:o,trackingCategory:r,trackingLabel:l,onLikeClick:
|
|
197
|
+
`,X=e.createContext({});var _="vvR-m49";const K=({children:t,className:a=""})=>{const{isReplied:o,trackingCategory:r,trackingLabel:l,onLikeClick:n}=e.useContext(X);return P.default.createElement("div",{className:`${_} ${a}`,"data-event-category":r,"data-event-action":o?"Like Comment Click":"Like Post Click","data-event-label":l,onClick:()=>{null==n||n()}},t)},Y=({children:t,className:a=""})=>{const{trackingCategory:o,trackingLabel:r,onShareClick:l}=e.useContext(X);return P.default.createElement("div",{className:`${_} ${a}`,onClick:()=>{null==l||l()},"data-event-category":o,"data-event-action":"Share Icon Click","data-event-label":r},t)},$=({children:t,className:a=""})=>{const{isReplied:o,trackingCategory:r,trackingLabel:l,onCommentClick:n}=e.useContext(X);return P.default.createElement("div",{className:`${_} ${a}`,"data-event-category":r,"data-event-action":o?"Reply Comment Click":"Comment Text Click","data-event-label":l,onClick:e=>{e.preventDefault(),e.stopPropagation(),null==n||n()}},t)};var J,ee="UhiT4m5",te="oEfeTkV",ae="OlbikxJ",oe="_9GXHCn3",re="HCsrR0N",le="MV3lNuh";exports.CardReactionType=void 0,(J=exports.CardReactionType||(exports.CardReactionType={}))[J.post=1]="post",J[J.reply=2]="reply";const ne=t=>{var{type:l,viewCount:n,loveCount:i=0,replyCount:s=0,replyPadding:d,liked:c,isReplied:u,onCommentClick:g,onLikeClick:f,onShareClick:v,className:b,style:x,hideCommentIcon:w,showingMostEngaging:y,isMarryBaby:C,hasShare:E=!0,hasCountLike:k=!0,trackingCategory:A="Together",trackingLabel:N="",children:T}=t,S=a.__rest(t,["type","viewCount","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:z}}}=e.useContext(h.TogetherComponentGlobalContext),L=Boolean(C)?C:z,{t:M}=o.useTranslations();return P.default.createElement(X.Provider,{value:{liked:c,loveCount:i,trackingCategory:A,trackingLabel:N,isReplied:u,onLikeClick:f,onShareClick:v,onCommentClick:g}},T||P.default.createElement("div",Object.assign({className:`${ee} ${b}`,"data-show-most-engaging":y,"data-type":l===exports.CardReactionType.post?"post":"reply","data-reply-padding":l===exports.CardReactionType.reply&&d,"data-is-marrybaby":L,style:x},S),P.default.createElement("div",{className:te},P.default.createElement("div",{className:ae},P.default.createElement(K,{className:re},P.default.createElement(r.Text,{className:oe,size:"p3",as:"div"},P.default.createElement(r.Heart,{className:"txt-icon",isMarryBaby:L,isSolid:c,color:c?L?p.theme.mbColors.pink:p.theme.colors.red800:"#737373"}),k&&P.default.createElement("div",{className:le},i))),E&&P.default.createElement(Y,{className:re},P.default.createElement(r.Text,{size:"p3",className:oe,as:"div"},P.default.createElement(r.Icon.Share,{isMarryBaby:L}))),void 0!==n&&P.default.createElement(r.Text,{size:"p3",className:oe,as:"div"},P.default.createElement(r.Icon.Eye,{isMarryBaby:L}),P.default.createElement("div",{className:le},m.abbreviateNumber(n)))),!w&&P.default.createElement($,{className:re},P.default.createElement(r.Text,{size:"p3",className:oe,as:"div"},u?P.default.createElement(r.Icon.Reply,{className:"txt-icon"}):P.default.createElement(r.Icon.Comment,{className:"txt-icon",isMarryBaby:L}),u?M("cardReactions.reply"):P.default.createElement("div",{className:le},M("post.commentCount",{count:s})))))))};ne.LikeWrapper=K,ne.ShareWrapper=Y,ne.CommentWrapper=$;const ie=t.createStyles((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:{}}))),se=M.default.div`
|
|
198
198
|
display: flex;
|
|
199
199
|
align-items: center;
|
|
200
200
|
justify-content: space-between;
|
|
201
201
|
padding: 16px;
|
|
202
202
|
cursor: pointer;
|
|
203
203
|
&[data-color='gray'] {
|
|
204
|
-
background: ${
|
|
204
|
+
background: ${p.theme.colors.neutral50};
|
|
205
205
|
}
|
|
206
206
|
&[data-color='white'] {
|
|
207
207
|
border-bottom: 1px solid #e4e8ec;
|
|
208
|
-
background: ${
|
|
208
|
+
background: ${p.theme.colors.white};
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
.popover-menu__btn {
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
&.label-pinned {
|
|
231
|
-
border-radius: ${
|
|
231
|
+
border-radius: ${p.theme.borderRadius} 6px 0 0;
|
|
232
232
|
.label-sort-pin-icon {
|
|
233
233
|
width: 16px;
|
|
234
234
|
height: 16px;
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
`,de=({label:t,rightLabel:a,onClick:o,color:l,className:
|
|
270
|
+
`,de=({label:t,rightLabel:a,onClick:o,color:l,className:n,style:i})=>{const{data:{env:{isMarryBaby:s}}}=e.useContext(h.TogetherComponentGlobalContext);return P.default.createElement(se,{"data-is-marrybaby":s,"data-color":l,onClick:o,className:n,style:i},P.default.createElement(r.Text,{className:"label-sort-pin-heading",size:s?"p4":"p3",weight:"bold"},t),a)};const ce=M.default.div`
|
|
271
271
|
position: relative;
|
|
272
272
|
display: content;
|
|
273
273
|
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
padding: 0 1rem;
|
|
496
496
|
border: none;
|
|
497
497
|
margin-bottom: 8px;
|
|
498
|
-
color: ${
|
|
498
|
+
color: ${p.theme.colors.gray800};
|
|
499
499
|
cursor: pointer;
|
|
500
500
|
text-align: left;
|
|
501
501
|
transition: background 0.3s;
|
|
@@ -505,12 +505,12 @@
|
|
|
505
505
|
pointer-events: none;
|
|
506
506
|
}
|
|
507
507
|
&.--checked {
|
|
508
|
-
color: ${
|
|
508
|
+
color: ${p.theme.colors.gray500};
|
|
509
509
|
pointer-events: none;
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
&:hover {
|
|
513
|
-
background: ${
|
|
513
|
+
background: ${p.theme.colors.gray100};
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
.__icon {
|
|
@@ -567,19 +567,19 @@
|
|
|
567
567
|
padding: 1rem;
|
|
568
568
|
margin-bottom: 0;
|
|
569
569
|
&:hover {
|
|
570
|
-
background: ${
|
|
570
|
+
background: ${p.theme.mbColors.lightPink};
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
`,pe=({className:t,style:a,toggleButtonContent:o,position:r="bottom",align:l="end",children:
|
|
576
|
+
`,pe=({className:t,style:a,toggleButtonContent:o,position:r="bottom",align:l="end",children:n,buttonProps:i})=>{const{data:{env:{isMarryBaby:s}}}=e.useContext(h.TogetherComponentGlobalContext),[d,c]=e.useState(!1),u=e.useRef(null),p=e.useRef(d);return e.useEffect((()=>{var e;p.current=d,d&&(null===(e=u.current)||void 0===e||e.focus())}),[d]),e.useEffect((()=>{const e=e=>{var t;!(null===(t=u.current)||void 0===t?void 0:t.contains(e.target))&&p.current&&c(!1)};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),P.default.createElement(ce,{"data-is-marrybaby":s,className:t,style:a},P.default.createElement(v.Button,Object.assign({theme:s?"marryBaby":"helloSites",className:"popover-menu__btn",size:"md",color:"transparent",onClick:()=>c((e=>!e))},i),o),d?P.default.createElement("div",{ref:u,className:`popover-menu__content --position-${r} --align-${l}`,tabIndex:0,onClick:e=>e.stopPropagation()},"function"==typeof n?n({setShow:c}):n):null)};const me=e=>{var{data:t}=e,o=a.__rest(e,["data"]);return P.default.createElement(pe,Object.assign({},o),(({setShow:e})=>P.default.createElement(ge,{data:t,setShow:e})))},ge=({data:t,setShow:a})=>{var o;const[l,n]=e.useState(""),i=e.useMemo((()=>t&&((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})(t,l)),[t,l]);if(!t)return null;if(!i)return null;return P.default.createElement(ue,null,i.isShowheader?P.default.createElement("div",{className:"__header"},l?P.default.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:()=>n((e=>e.split(".").slice(0,-1).join("."))),loading:"lazy"}):null,i.title?P.default.createElement(h.Heading,{className:"__title",tag:"h6"},i.title):null):null,i.description?P.default.createElement(r.Text,{className:"tree-text-description",color:p.theme.colors.gray600,size:"p3",weight:"regular"},i.description):null,P.default.createElement("div",{className:"__content"},"jsx"===i.type?null===(o=null==i?void 0:i.jsxRenderer)||void 0===o?void 0:o.call(i,a):null,"list"===i.type?P.default.createElement("ul",{className:"__list"},Array.isArray(i.list)?i.list.map(((e,t)=>P.default.createElement("li",{key:t,style:e.style,className:`__item ${e.className}`}," ",P.default.createElement("div",{className:"__btn "+(e.selected?"--checked":""),onClick:()=>((e,{subTree:t,onClick:o=(()=>null)})=>{o&&o(),t?n((t=>t.split(".").concat(String(e)).join("."))):a&&a(!1)})(t,e),"data-event-category":e.dataEventCategory,"data-event-action":e.dataEventAction,"data-event-label":e.dataEventLabel},e.icon&&P.default.createElement("img",{className:"__icon",src:e.icon,loading:"lazy"}),P.default.createElement("span",null,e.label)),e.subTree?P.default.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?P.default.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 he;!function(e){e.latest="latest",e.oldest="oldest",e.popular="popular"}(he||(he={}));const fe=e=>{var{size:t=15}=e,o=a.__rest(e,["size"]);return P.default.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 15 15",fill:"none"},o),P.default.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"}),P.default.createElement("path",{d:"M8.53125 6.34375V4.15625H6.34375V6.34375H4.15625V8.53125H6.34375V10.7188H8.53125V8.53125H10.7188V6.34375H8.53125Z",fill:"#FF5331"}))},ve=e=>{var{size:t,color:o}=e,r=a.__rest(e,["size","color"]);return P.default.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 16 16",fill:"none"},r),P.default.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}))};ve.defaultProps={size:24,color:p.theme.colors.gray600,activeColor:p.theme.colors.primaryBase,isActive:!1};var be="dZWeHns",xe="tMiOKib",we="uDcqD-2",ye="pDlsows",Ce="m-HVXw1";const Ee=({children:e,className:t=""})=>P.default.createElement("div",{className:`${xe} ${t}`},e),ke=({children:e,className:t=""})=>P.default.createElement("div",{className:`${we} ${t}`},e);var Ae="sTU4T4I",Ne="tCql9Je",Te="_3j7uYhH",Se="PHABgoT";const ze=({avatarProps:e,title:t,subTitle:a,children:o,className:r="",style:l,onAvatarClick:n,avatarIcon:i,dataEventCategory:s,dataEventAction:d,dataEventLabel:c})=>P.default.createElement("div",{className:`${Ae} ${r}`,style:l},P.default.createElement("div",{className:Te,onClick:n,"data-event-category":s,"data-event-action":d,"data-event-label":c},P.default.createElement(x.UserAvatar,Object.assign({},e)),i&&P.default.createElement("div",{className:Se},i)),P.default.createElement("div",{className:`${Ne} ${r}`,style:{minHeight:`${(null==e?void 0:e.size)||40}px`}},o||P.default.createElement(P.default.Fragment,null,t&&P.default.createElement(Ee,null,t),a&&P.default.createElement(ke,null,a))));ze.MainText=Ee,ze.SubText=ke,ze.SubDivider=({className:e=""})=>P.default.createElement("span",{className:`${Ce} ${e}`}),ze.Row=({children:e,className:t=""})=>P.default.createElement("div",{className:`${be} ${t} row`},e),ze.ColLeft=({children:e,className:t=""})=>P.default.createElement("div",{className:`${t} col-left`},e),ze.ColRight=({children:e,className:t=""})=>P.default.createElement("div",{className:`${t} col-right`},e),ze.SubTextRow=e=>{var{children:t,className:o=""}=e,r=a.__rest(e,["children","className"]);return P.default.createElement("div",Object.assign({className:`${ye} ${o}`},r),t)};var Pe=t.createStyles((()=>({root:{},authorBadge:{background:"yellow"}})));const Le=M.default.div`
|
|
577
577
|
position: fixed;
|
|
578
578
|
left: 50%;
|
|
579
579
|
width: 343px;
|
|
580
|
-
background-color: ${
|
|
581
|
-
border-radius: ${
|
|
582
|
-
box-shadow: 0px 0px 4px ${
|
|
580
|
+
background-color: ${p.theme.colors.white};
|
|
581
|
+
border-radius: ${p.theme.borderRadius};
|
|
582
|
+
box-shadow: 0px 0px 4px ${p.theme.colors.gray200};
|
|
583
583
|
transform: translate(-50%, -50%);
|
|
584
584
|
transition: all 0.5s ease-in-out;
|
|
585
585
|
|
|
@@ -635,8 +635,8 @@
|
|
|
635
635
|
|
|
636
636
|
.main-info {
|
|
637
637
|
padding-bottom: 32px;
|
|
638
|
-
background-color: ${
|
|
639
|
-
border-radius: ${
|
|
638
|
+
background-color: ${p.theme.colors.primary50};
|
|
639
|
+
border-radius: ${p.theme.borderRadius};
|
|
640
640
|
.btn-booking {
|
|
641
641
|
display: flex;
|
|
642
642
|
margin: 12px auto;
|
|
@@ -744,7 +744,7 @@
|
|
|
744
744
|
justify-content: center;
|
|
745
745
|
padding: 1rem 2rem;
|
|
746
746
|
background: white;
|
|
747
|
-
border-radius: ${
|
|
747
|
+
border-radius: ${p.theme.borderRadius};
|
|
748
748
|
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
|
|
749
749
|
-2px 2px 5px rgba(67, 86, 100, 0.123689);
|
|
750
750
|
.loading-spinner {
|
|
@@ -756,13 +756,13 @@
|
|
|
756
756
|
&[data-is-marrybaby='true'] {
|
|
757
757
|
box-shadow: none;
|
|
758
758
|
}
|
|
759
|
-
`;const De=({className:e,size:t="md"})=>{const{t:a}=o.useTranslations();return P.default.createElement(Fe,{className:e},P.default.createElement(v.Button,{size:t,color:"transparent",isLoading:!0},a("loading")))},Ue=({isOpen:t=!0,onClose:a,enableAnimation:
|
|
759
|
+
`;const De=({className:e,size:t="md"})=>{const{t:a}=o.useTranslations();return P.default.createElement(Fe,{className:e},P.default.createElement(v.Button,{size:t,color:"transparent",isLoading:!0},a("loading")))},Ue=({isOpen:t=!0,onClose:a,enableAnimation:n=!0,doctorId:i,locale:d,isMobile:c,overwriteProfileProps:u,avatarFallback:m=s.CommonGAssets.getAssetPath("avatar.jpg"),trackingCategory:g="Together"})=>{var f,b,x;const{t:w}=o.useTranslations(),[y,C]=e.useState(null),[E,k]=e.useState(!1);e.useEffect((()=>{if(t&&i&&String(null==y?void 0:y.id)!==String(i)){k(!0);try{C(null),h.callApi(h.getCarePath(h.CARE_PATHS.GET_DOCTOR_INFO,{doctorId:i,website_url:h.domainLocales[d]}),"get").then((e=>{C(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),u))}))}catch(e){console.error(e)}k(!1)}}),[t,i,null==y?void 0:y.id]);const A=(null==y?void 0:y.experiences)||[],N=((null==y?void 0:y.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),T=A.map((e=>{try{return JSON.parse(e.description)}catch(t){return e.description}})).filter((e=>e.content));return P.default.createElement(P.default.Fragment,null,P.default.createElement(Le,{"data-open":t,"data-animation":n,onClick:e=>e.stopPropagation()},E||!y?P.default.createElement(De,null):P.default.createElement("div",{className:"popup-content"},P.default.createElement("div",{className:"close-button",onClick:a},P.default.createElement("img",{src:Oe,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),P.default.createElement("div",{className:"main-info"},P.default.createElement("div",{className:"border-banner"}),P.default.createElement("div",{className:"avatar-title"},P.default.createElement(Be,null,P.default.createElement("div",{className:"image-container"},P.default.createElement("div",{style:{position:"relative"}},P.default.createElement(l.ImageWrap,{src:null==y?void 0:y.avatar,backupSrc:m,className:"profile-image",alt:"avatar"}),P.default.createElement("img",{className:"badge-avatar",src:Ve,alt:"badge",loading:"lazy"})))),P.default.createElement(Re,null,P.default.createElement(r.Text,{size:"s3",weight:"semiBold",className:"full-name"},null==y?void 0:y.name),P.default.createElement("div",{className:"specialty"},N&&P.default.createElement(P.default.Fragment,null,P.default.createElement(r.Text,{size:"p4",color:p.theme.colors.gray800},N," • ")),P.default.createElement("a",{href:h.getCareHospitalUrl({id:null===(f=null==y?void 0:y.organization)||void 0===f?void 0:f.id,name:null===(b=null==y?void 0:y.organization)||void 0===b?void 0:b.name,slug:null===(x=null==y?void 0:y.organization)||void 0===x?void 0:x.slug,locale:d}),className:"organisation",target:"_blank",rel:"noreferrer"},P.default.createElement(r.Text,{size:"p4",className:"organisation",color:p.theme.colors.gray800,style:{textDecoration:"underline"}},null==y?void 0:y.organization.name))))),!c&&P.default.createElement("div",{className:"btn-wrapper"},P.default.createElement("a",{href:h.getCareDoctorUrl({name:y.name,id:y.id,locale:d})},P.default.createElement(v.Button,{color:"primary",size:"md",className:"btn-booking"},w("careBooking.bookAnAppointment"))))),T&&P.default.createElement(Re,null,P.default.createElement("div",{className:"experience"},P.default.createElement(r.Text,{weight:"bold",size:"s3",color:p.theme.colors.gray800,style:{paddingBottom:16}},w("expert.content.description").toUpperCase()),P.default.createElement(Ie,null,T.map(((e,t)=>P.default.createElement("li",{key:t},P.default.createElement(r.Text,{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)))))),c?P.default.createElement("div",{className:"btn-wrapper"},P.default.createElement("a",{href:h.getCareDoctorUrl({name:y.name,id:y.id,locale:d})},P.default.createElement(v.Button,{color:"primary",size:"md",className:"btn-booking"},w("careBooking.bookAnAppointment")))):P.default.createElement("a",{href:h.getCareDoctorUrl({name:y.name,id:y.id,locale:d})},P.default.createElement(r.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":g,"data-event-action":"See Full Doctor Profile","data-event-label":h.getCurrentBaseUrl(d)+h.getCareDoctorUrl({name:y.name,id:y.id,locale:d})},w("home.seeExpert"))))))),P.default.createElement(Me,{"data-open":t,onClick:e=>{e.stopPropagation(),a()}}))},He=M.default.div`
|
|
760
760
|
position: fixed;
|
|
761
761
|
left: 50%;
|
|
762
762
|
width: 343px;
|
|
763
|
-
background-color: ${
|
|
764
|
-
border-radius: ${
|
|
765
|
-
box-shadow: 0px 0px 4px ${
|
|
763
|
+
background-color: ${p.theme.colors.white};
|
|
764
|
+
border-radius: ${p.theme.borderRadius};
|
|
765
|
+
box-shadow: 0px 0px 4px ${p.theme.colors.gray200};
|
|
766
766
|
transform: translate(-50%, -50%);
|
|
767
767
|
transition: all 0.5s ease-in-out;
|
|
768
768
|
|
|
@@ -818,8 +818,8 @@
|
|
|
818
818
|
|
|
819
819
|
.main-info {
|
|
820
820
|
padding-bottom: 32px;
|
|
821
|
-
background-color: ${
|
|
822
|
-
border-radius: ${
|
|
821
|
+
background-color: ${p.theme.colors.primary50};
|
|
822
|
+
border-radius: ${p.theme.borderRadius};
|
|
823
823
|
|
|
824
824
|
.avatar-title {
|
|
825
825
|
position: relative;
|
|
@@ -903,13 +903,13 @@
|
|
|
903
903
|
width: 24px;
|
|
904
904
|
height: 24px;
|
|
905
905
|
}
|
|
906
|
-
`;var Qe="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 Xe={author:Qe,edtior:Qe,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:Ve},_e=({trackingCategory:t="Together",locale:a,isOpen:
|
|
906
|
+
`;var Qe="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 Xe={author:Qe,edtior:Qe,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:Ve},_e=({trackingCategory:t="Together",locale:a,isOpen:n=!0,onClose:i,enableAnimation:d=!0,expertId:c,overwriteProfileProps:u,avatarFallback:m=s.CommonGAssets.getAssetPath("avatar.jpg")})=>{const{t:g}=o.useTranslations(),[f,v]=e.useState(null),[b,x]=e.useState(!1);return e.useEffect((()=>{if(n&&c&&String(null==f?void 0:f.user_id)!==String(c)){x(!0);try{v(null),h.callApi(h.getDiscoverApiPath(h.DISCOVER_PATHS.GET_EXPERT_BY_ID,{id:c}),"get").then((e=>{v(Object.assign(Object.assign({},null==e?void 0:e.data),u))}))}catch(e){console.error(e)}x(!1)}}),[n,c,null==f?void 0:f.user_id]),P.default.createElement(P.default.Fragment,null,P.default.createElement(He,{"data-open":n,"data-animation":d,onClick:e=>e.stopPropagation()},b||!f?P.default.createElement(De,null):P.default.createElement("div",{className:"popup-content"},P.default.createElement("div",{className:"close-button",onClick:i},P.default.createElement("img",{src:Oe,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),P.default.createElement("div",{className:"main-info"},P.default.createElement("div",{className:"border-banner"}),P.default.createElement("div",{className:"avatar-title"},P.default.createElement(qe,null,P.default.createElement("div",{className:"image-container"},P.default.createElement("div",{style:{position:"relative"}},P.default.createElement(l.ImageWrap,{src:null==f?void 0:f.avatar,className:"profile-image",alt:"avatar",backupSrc:m}),P.default.createElement("img",{className:"badge-avatar",src:Xe[null==f?void 0:f.role],alt:"badge",loading:"lazy"})))),P.default.createElement(Ge,null,P.default.createElement(r.Text,{size:"s3",className:"full-name",weight:"semiBold"},null==f?void 0:f.display_name),P.default.createElement("div",null,P.default.createElement(r.Text,{size:"p4",color:p.theme.colors.gray800},null==f?void 0:f.specialty," • "),P.default.createElement("a",{href:null==f?void 0:f.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},P.default.createElement(r.Text,{size:"p4",className:"organisation",color:p.theme.colors.gray800,style:{textDecoration:"underline"}},null==f?void 0:f.organisation)))))),P.default.createElement(Ge,null,P.default.createElement("div",{className:"experience"},P.default.createElement(r.Text,{weight:"bold",size:"p4",color:p.theme.colors.gray800,style:{paddingBottom:16}},g("expert.content.description").toUpperCase()),P.default.createElement("div",{className:"list-items"},!!(null==f?void 0:f.experiences)&&f.experiences.filter((e=>!(!e||!e.title&&!e.organization))).slice(0,3).map(((e,t)=>P.default.createElement(Ze,{key:t},P.default.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"}),P.default.createElement("div",{className:"text-contain"},P.default.createElement(h.Heading,{tag:"h6",color:p.theme.colors.gray800},null==e?void 0:e.title),P.default.createElement(r.Text,{size:"p2",color:p.theme.colors.gray500},null==e?void 0:e.organization)))))),P.default.createElement("a",{href:null==f?void 0:f.profile_url,style:{display:"inline-block",paddingTop:24}},P.default.createElement(r.Text,{as:"span",size:"s4",color:"#2D87F3","data-event-category":t,"data-event-action":"See Full Doctor Profile","data-event-label":h.getCurrentBaseUrl(a)+(null==f?void 0:f.profile_url)},g("home.seeExpert"))))))),P.default.createElement(We,{"data-open":n,onClick:e=>{e.stopPropagation(),i()}}))},Ke=M.default.div`
|
|
907
907
|
position: fixed;
|
|
908
908
|
left: 50%;
|
|
909
909
|
width: 343px;
|
|
910
|
-
background-color: ${
|
|
911
|
-
border-radius: ${
|
|
912
|
-
box-shadow: 0px 0px 4px ${
|
|
910
|
+
background-color: ${p.theme.colors.white};
|
|
911
|
+
border-radius: ${p.theme.borderRadius};
|
|
912
|
+
box-shadow: 0px 0px 4px ${p.theme.colors.gray200};
|
|
913
913
|
transform: translate(-50%, -50%);
|
|
914
914
|
transition: all 0.5s ease-in-out;
|
|
915
915
|
|
|
@@ -965,8 +965,8 @@
|
|
|
965
965
|
|
|
966
966
|
.main-info {
|
|
967
967
|
padding-bottom: 32px;
|
|
968
|
-
background-color: ${
|
|
969
|
-
border-radius: ${
|
|
968
|
+
background-color: ${p.theme.colors.primary50};
|
|
969
|
+
border-radius: ${p.theme.borderRadius};
|
|
970
970
|
.btn-booking {
|
|
971
971
|
display: flex;
|
|
972
972
|
margin: 12px auto;
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
p {
|
|
1041
1041
|
max-width: 100%;
|
|
1042
1042
|
}
|
|
1043
|
-
`,et=({isOpen:t=!0,onClose:a,enableAnimation:
|
|
1043
|
+
`,et=({isOpen:t=!0,onClose:a,enableAnimation:n=!0,hospitalId:i,locale:d,isMobile:c,overwriteProfileProps:u,avatarFallback:m=s.CommonGAssets.getAssetPath("avatar.jpg"),trackingCategory:g="Together"})=>{const{t:f}=o.useTranslations(),[b,x]=e.useState(null),[w,y]=e.useState(!1);e.useEffect((()=>{if(t&&i&&String(null==b?void 0:b.id)!==String(i)){y(!0);try{x(null),h.callApi(h.getCarePath(h.CARE_PATHS.GET_HOSPITAL_INFO,{hospital_branch_id:i,website_url:h.domainLocales[d]}),"get").then((e=>{x(Object.assign(Object.assign({},null==e?void 0:e._data.branch),u))}))}catch(e){console.error(e)}y(!1)}}),[t,i,null==b?void 0:b.id]);const C=(null==b?void 0:b.specialties)||[],E=e.useMemo((()=>C.map((e=>e.name))),[C]);return P.default.createElement(P.default.Fragment,null,P.default.createElement(Ke,{"data-open":t,"data-animation":n,onClick:e=>e.stopPropagation()},w||!b?P.default.createElement(De,null):P.default.createElement("div",{className:"popup-content"},P.default.createElement("div",{className:"close-button",onClick:a},P.default.createElement("img",{src:Oe,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),P.default.createElement("div",{className:"main-info"},P.default.createElement("div",{className:"border-banner"}),P.default.createElement("div",{className:"avatar-title"},P.default.createElement($e,null,P.default.createElement("div",{className:"image-container"},P.default.createElement("div",{style:{position:"relative"}},P.default.createElement(l.ImageWrap,{src:null==b?void 0:b.logo,className:"profile-image",alt:"avatar",backupSrc:m}),P.default.createElement("img",{className:"badge-avatar",src:Ve,alt:"badge",loading:"lazy"})))),P.default.createElement(Je,null,P.default.createElement(r.Text,{size:"s3",weight:"semiBold",className:"full-name"},null==b?void 0:b.name),P.default.createElement("div",{className:"specialty"},C&&P.default.createElement(r.Text,{size:"p4",color:p.theme.colors.gray800},E.join(" • "),"•"),P.default.createElement("a",{href:h.getCareHospitalUrl({id:b.id,name:b.name,slug:b.slug,locale:d}),className:"organisation",target:"_blank",rel:"noreferrer"},P.default.createElement(r.Text,{size:"p4",className:"organisation",color:p.theme.colors.gray800,style:{textDecoration:"underline"}},null==b?void 0:b.name))))),!c&&P.default.createElement("a",{href:h.getCareHospitalUrl({id:b.id,name:b.name,slug:b.slug,locale:d})},P.default.createElement("div",{className:"btn-wrapper"},P.default.createElement(v.Button,{color:"primary",size:"md",className:"btn-booking"},f("careBooking.bookAnAppointment"))))),P.default.createElement(Je,null,P.default.createElement("div",{className:"experience"},P.default.createElement(r.Text,{weight:"bold",size:"s3",color:p.theme.colors.gray800,style:{paddingBottom:16}},f("hospital.content.description").toUpperCase()),P.default.createElement(r.Text,{size:"p2",color:p.theme.colors.gray500},b.about),c?P.default.createElement("a",{href:h.getCareHospitalUrl({id:b.id,name:b.name,slug:b.slug,locale:d})},P.default.createElement("div",{className:"btn-wrapper"},P.default.createElement(v.Button,{color:"primary",size:"md",className:"btn-booking"},f("careBooking.bookAnAppointment")))):P.default.createElement("a",{href:h.getCareHospitalUrl({id:b.id,name:b.name,slug:b.slug,locale:d})},P.default.createElement(r.Text,{size:"s4",color:"#2D87F3",as:"span","data-event-category":g,"data-event-action":"See Full Hospital Profile","data-event-label":h.getCurrentBaseUrl(d)+h.getCareHospitalUrl({id:b.id,name:b.name,slug:b.slug,locale:d})},f("home.seeHospital"))))))),P.default.createElement(Ye,{"data-open":t,onClick:e=>{e.stopPropagation(),a()}}))};var tt="_2UKyiK1",at="E5ga-tI",ot="_8Y2nWXX",rt="d0T7kSP";const lt=({open:e,onClose:t,children:a,profileModalProps:r})=>{const{t:l}=o.useTranslations();return P.default.createElement(A.Modal,Object.assign({className:tt,opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end"},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"},content:{maxHeight:"100%",height:"100%",borderRadius:0}},title:"Profile"},r),P.default.createElement("div",{className:at},P.default.createElement("div",{className:ot},l("profilePanel.modal.heading")),P.default.createElement("div",{className:rt,onClick:t},P.default.createElement(I,null))),a)};L.default.extend(B.default);const nt=e.createContext({}),it=a=>{const{className:r="",community:i,name:d,username:u,url:m,avatar:g,role:f,title:v,userType:b="user",expertId:x,specialty:w,organisation:y,isMarryBaby:C,doctorId:E,hospitalId:k,hasQuickBooking:A,handleMakeAppointment:N,communityTrackingAttr:T,isAnonymous:S,showDetailPopup:z,subLine:L,authActionWrapper:M,profileProps:B,profileModalProps:R,extendEle:I,avatarProps:O,hideInfo:j,timeText:D,onCloseFromPost:U,avatarIcon:H,badgeIconSize:W,hideBackground:q,children:G,styles:Z,dataEventCategory:Q,dataEventAction:X,dataEventLabel:_}=a,{data:{locale:K,router:Y,env:{isMarryBaby:$,togetherBasePath:J}}}=e.useContext(h.TogetherComponentGlobalContext),{isMobile:ee}=l.useScreenSize(),{t:te}=o.useTranslations(),{classes:ae}=Pe(void 0,{name:"CardAuthor",styles:Z}),oe="boolean"==typeof C?C:$,re=oe?"marryBaby":"helloSites",le=S?te("cardPost.anonymous"):d||u||"",ne=S?s.CommonGAssets.getAssetPath("avatar.jpg"):g,ie=S?void 0:f,[se,de]=e.useState(!1),{asPath:ce}=Y||{},ue=`https://${n.domainLocales[K]}${ce}`,pe=()=>{if(S||"chatbot"===b)return!1;z?ge(!0):m&&(window.location.href=m)};e.useEffect((()=>{c.toggleNoScroll(se)}),[se]);const[me,ge]=e.useState(!1),he="expert"===(null==a?void 0:a.role),be=Boolean(E||k),xe=["expert"===ie&&y&&P.default.createElement("span",null,y),"expert"===ie&&w&&P.default.createElement("span",null,w),!("expert"===ie&&w&&y)&&(null==i?void 0:i.name)&&P.default.createElement("a",Object.assign({href:(null==i?void 0:i.slug)&&i.isActive&&!i.isHidden?`${J}/${null==i?void 0:i.slug}/`:void 0,className:"author-community-name"},T),`${null==i?void 0:i.name}`),D&&P.default.createElement("span",null,D)].filter(Boolean),[we,ye]=e.useState(null);return e.useEffect((()=>{me&&!we&&Promise.resolve().then((function(){return po})).then((e=>{ye((()=>e.ProfileDetail))}))}),[me]),P.default.createElement(nt.Provider,{value:{handleMakeAppointment:N,doctorId:E,hospitalId:k,currentUrl:ue}},P.default.createElement(lt,{open:me,onClose:()=>ge(!1),profileModalProps:R},we&&P.default.createElement(we,Object.assign({currentPageUrl:_,authActionWrapper:M,onCloseFromPost:()=>{ge(!1),null==U||U()}},B,{authorProps:Object.assign({userId:null==a?void 0:a.userId,avatar:ne,name:null==a?void 0:a.name,role:null==a?void 0:a.role,title:null==a?void 0:a.title,doctorId:E,hospitalId:k,hasQuickBooking:A},null==B?void 0:B.authorProps)}))),"expert"===ie&&x?P.default.createElement(_e,{isOpen:se,onClose:()=>de(!1),expertId:x}):null,"expert"===ie&&E?P.default.createElement(Ue,{isOpen:se,onClose:()=>de(!1),doctorId:E,locale:K}):null,"expert"===ie&&k?P.default.createElement(et,{isOpen:se,onClose:()=>de(!1),hospitalId:k,locale:K}):null,P.default.createElement("div",{className:`hhg-card-author ${ae.root} ${r} ${he?"expert-author":""}`,"data-background":!q&&he,"data-is-marrybaby":oe},P.default.createElement(ze,{dataEventCategory:Q,dataEventAction:X,dataEventLabel:_,onAvatarClick:pe,avatarProps:Object.assign(Object.assign({avatar:S?s.CommonGAssets.getAssetPath(oe?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):ne,username:le},O),{style:{cursor:S||!m&&!z?"default":"pointer"}}),avatarIcon:H||he&&P.default.createElement(fe,{size:W||15})},G?P.default.createElement("div",{onClick:pe},G):!j&&P.default.createElement(ze.Row,null,P.default.createElement(ze.ColLeft,null,P.default.createElement(t.Flex,{align:"center",onClick:pe},P.default.createElement(ze.MainText,{onClick:pe},le,"chatbot"===b?P.default.createElement(P.default.Fragment,null," ",P.default.createElement(ve,{color:p.theme.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):ie&&P.default.createElement(V,{className:ae.authorBadge,siteType:re,role:ie,title:v,style:{verticalAlign:"bottom"}}))),L||P.default.createElement(ze.SubTextRow,{style:A?{position:"relative"}:{}},xe.map(((e,t)=>P.default.createElement(P.default.Fragment,null,0!==t&&P.default.createElement(ze.SubDivider,null),P.default.createElement(ze.SubText,null,e)))),A&&be&&P.default.createElement(t.Box,{sx:{marginTop:t.rem(5)}},P.default.createElement(F,{bookingId:E||k,bookingType:E?"doctor":k?"hospital":void 0,size:ee?"xs":"sm"})))))),I&&I))};it.MainText=ze.MainText,it.SubText=ze.SubText,it.SubTextRow=ze.SubTextRow,it.SubDivider=ze.SubDivider;const st=M.default.div`
|
|
1044
1044
|
position: relative;
|
|
1045
1045
|
display: flex;
|
|
1046
1046
|
height: 100%;
|
|
@@ -1073,7 +1073,7 @@
|
|
|
1073
1073
|
|
|
1074
1074
|
label {
|
|
1075
1075
|
margin-bottom: 5px;
|
|
1076
|
-
color: ${
|
|
1076
|
+
color: ${p.theme.colors.gray600};
|
|
1077
1077
|
/* font-family: 'Open Sans', sans-serif; */
|
|
1078
1078
|
font-size: 13px;
|
|
1079
1079
|
font-weight: bold;
|
|
@@ -1081,7 +1081,7 @@
|
|
|
1081
1081
|
|
|
1082
1082
|
.input-group-label {
|
|
1083
1083
|
margin-bottom: 5px;
|
|
1084
|
-
color: ${
|
|
1084
|
+
color: ${p.theme.colors.gray600};
|
|
1085
1085
|
/* font-family: 'Open Sans', sans-serif; */
|
|
1086
1086
|
font-size: 13px;
|
|
1087
1087
|
font-weight: bold;
|
|
@@ -1121,12 +1121,12 @@
|
|
|
1121
1121
|
background: ${p.theme.colors.neutral50};
|
|
1122
1122
|
|
|
1123
1123
|
&.askdoctor-switch {
|
|
1124
|
-
background:
|
|
1124
|
+
background: ${p.theme.colors.primary50};
|
|
1125
1125
|
&.mb-color {
|
|
1126
|
-
|
|
1126
|
+
background: ${p.theme.mbColors.tonePink};
|
|
1127
1127
|
}
|
|
1128
|
+
}
|
|
1128
1129
|
|
|
1129
|
-
|
|
1130
1130
|
.mantine-Switch-labelWrapper {
|
|
1131
1131
|
flex-grow: 1;
|
|
1132
1132
|
}
|
|
@@ -1174,7 +1174,7 @@
|
|
|
1174
1174
|
span {
|
|
1175
1175
|
vertical-align: middle;
|
|
1176
1176
|
}
|
|
1177
|
-
`,ut=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,pt=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,mt=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,gt=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ht=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ft=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,vt=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,bt=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,xt=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,wt=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,yt=({url:e,text:t,method:a})=>{const o=t.indexOf(t.trimStart()),r=t.trimEnd().length,l=t.substring(0,o),
|
|
1177
|
+
`,ut=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,pt=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,mt=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,gt=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ht=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ft=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,vt=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,bt=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,xt=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,wt=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,yt=({url:e,text:t,method:a})=>{const o=t.indexOf(t.trimStart()),r=t.trimEnd().length,l=t.substring(0,o),n=t.substring(o,r),i=t.substring(r);return"edit"===a?`${l}<mocka data-href="${e}" data-url="true">${n}</mocka>${i}`:"display"===a&&(e.startsWith("http://")||e.startsWith("https://"))?`${l}<a href="${e}" target="_blank">${n}</a>${i}`:t},Ct=(e,t)=>e.replace(mt,((e,a,o)=>yt({text:o||a,url:a,method:t}))).replace(xt,((e,a,o)=>yt({text:o||a,url:a,method:t}))),Et=(e,t=[])=>e.replace(ft,((e,a,o)=>{const r=t.find((e=>String(e.id)===a));if(!r){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="${r.name}">${r.name}</mention>`})),kt=e=>{const t=[];return e.replace(/(\&)+/g,"&").replace(pt,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},At=(e,t)=>{const a=[];return e.replace(gt,((e,t)=>(a.push(t),e))).replace(ft,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Nt=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Tt=e=>e.replace(wt,"$1"),St=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],zt=e=>e.match(bt)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Pt=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Tt(e).replace(new RegExp(`\\b(${a.map((e=>Nt(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},Lt=M.default.div`
|
|
1178
1178
|
input:focus,
|
|
1179
1179
|
textarea:focus,
|
|
1180
1180
|
[contenteditable='true'] {
|
|
@@ -1183,12 +1183,11 @@
|
|
|
1183
1183
|
|
|
1184
1184
|
.textarea-control {
|
|
1185
1185
|
position: relative;
|
|
1186
|
-
border: 1px solid ${
|
|
1187
|
-
border-radius: ${
|
|
1186
|
+
border: 1px solid ${p.theme.colors.gray200};
|
|
1187
|
+
border-radius: ${p.theme.borderRadius};
|
|
1188
1188
|
&.--focus {
|
|
1189
|
-
border-color: ${
|
|
1190
|
-
box-shadow: 0px 0px 2px 2px
|
|
1191
|
-
${e=>e.theme.colors.primary200};
|
|
1189
|
+
border-color: ${p.theme.colors.primaryBase};
|
|
1190
|
+
box-shadow: 0px 0px 2px 2px ${p.theme.colors.primary200};
|
|
1192
1191
|
}
|
|
1193
1192
|
|
|
1194
1193
|
.textarea-wrapper {
|
|
@@ -1205,7 +1204,7 @@
|
|
|
1205
1204
|
height: 40px;
|
|
1206
1205
|
align-items: center;
|
|
1207
1206
|
justify-content: flex-end;
|
|
1208
|
-
border-top: 1px solid ${
|
|
1207
|
+
border-top: 1px solid ${p.theme.colors.gray200};
|
|
1209
1208
|
margin: 0 1rem;
|
|
1210
1209
|
|
|
1211
1210
|
.tool-button {
|
|
@@ -1245,7 +1244,7 @@
|
|
|
1245
1244
|
height: 0;
|
|
1246
1245
|
padding-top: 67%;
|
|
1247
1246
|
margin-top: 1rem;
|
|
1248
|
-
border-radius: ${
|
|
1247
|
+
border-radius: ${p.theme.borderRadius};
|
|
1249
1248
|
|
|
1250
1249
|
& > img {
|
|
1251
1250
|
position: absolute;
|
|
@@ -1270,7 +1269,7 @@
|
|
|
1270
1269
|
|
|
1271
1270
|
.description-label {
|
|
1272
1271
|
margin-bottom: 5px;
|
|
1273
|
-
color: ${
|
|
1272
|
+
color: ${p.theme.colors.gray600};
|
|
1274
1273
|
/* font-family: 'Open Sans', sans-serif; */
|
|
1275
1274
|
font-size: 13px;
|
|
1276
1275
|
font-weight: bold;
|
|
@@ -1278,7 +1277,7 @@
|
|
|
1278
1277
|
|
|
1279
1278
|
.count-string {
|
|
1280
1279
|
margin-top: 5px;
|
|
1281
|
-
color: ${
|
|
1280
|
+
color: ${p.theme.colors.gray500};
|
|
1282
1281
|
font-size: 11px;
|
|
1283
1282
|
text-align: right;
|
|
1284
1283
|
}
|
|
@@ -1336,14 +1335,12 @@
|
|
|
1336
1335
|
.link-input-button-wrapper {
|
|
1337
1336
|
&[data-is-marrybaby='true'] {
|
|
1338
1337
|
.link-input-button {
|
|
1339
|
-
border: solid 2px
|
|
1340
|
-
|
|
1341
|
-
background-color: ${e=>e.theme.mbColors.pink};
|
|
1338
|
+
border: solid 2px ${p.theme.mbColors.pink};
|
|
1339
|
+
background-color: ${p.theme.mbColors.pink};
|
|
1342
1340
|
&:hover:not(:disabled) {
|
|
1343
|
-
border: solid 2px
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
color: ${e=>e.theme.mbColors.pink};
|
|
1341
|
+
border: solid 2px ${p.theme.mbColors.pink};
|
|
1342
|
+
background-color: ${p.theme.colors.white};
|
|
1343
|
+
color: ${p.theme.mbColors.pink};
|
|
1347
1344
|
}
|
|
1348
1345
|
}
|
|
1349
1346
|
}
|
|
@@ -1352,7 +1349,7 @@
|
|
|
1352
1349
|
width: auto;
|
|
1353
1350
|
height: auto;
|
|
1354
1351
|
padding: 0.4rem 1rem;
|
|
1355
|
-
background-color: ${
|
|
1352
|
+
background-color: ${p.theme.colors.primaryBase};
|
|
1356
1353
|
|
|
1357
1354
|
&:disabled {
|
|
1358
1355
|
border-color: #bfbfbf;
|
|
@@ -1361,14 +1358,14 @@
|
|
|
1361
1358
|
cursor: not-allowed;
|
|
1362
1359
|
}
|
|
1363
1360
|
&:hover:not(:disabled) {
|
|
1364
|
-
background-color: ${
|
|
1361
|
+
background-color: ${p.theme.colors.primaryHover};
|
|
1365
1362
|
}
|
|
1366
1363
|
}
|
|
1367
1364
|
.error-text {
|
|
1368
1365
|
padding: 0;
|
|
1369
1366
|
margin-bottom: 0.5rem;
|
|
1370
1367
|
font-weight: 600;
|
|
1371
|
-
color: ${
|
|
1368
|
+
color: ${p.theme.colors.red700};
|
|
1372
1369
|
}
|
|
1373
1370
|
}
|
|
1374
1371
|
}
|
|
@@ -1397,8 +1394,8 @@
|
|
|
1397
1394
|
min-height: 100%;
|
|
1398
1395
|
/* padding: 14px 16px; */
|
|
1399
1396
|
border: none;
|
|
1400
|
-
border-radius: ${
|
|
1401
|
-
color: ${
|
|
1397
|
+
border-radius: ${p.theme.borderRadius};
|
|
1398
|
+
color: ${p.theme.colors.gray800};
|
|
1402
1399
|
font-size: 1rem;
|
|
1403
1400
|
line-height: 1.5;
|
|
1404
1401
|
resize: none;
|
|
@@ -1448,7 +1445,7 @@
|
|
|
1448
1445
|
.mention-search-container {
|
|
1449
1446
|
position: absolute;
|
|
1450
1447
|
background: white;
|
|
1451
|
-
border-radius: ${
|
|
1448
|
+
border-radius: ${p.theme.borderRadius};
|
|
1452
1449
|
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
|
|
1453
1450
|
drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
|
|
1454
1451
|
drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
|
|
@@ -1461,7 +1458,7 @@
|
|
|
1461
1458
|
width: 14px;
|
|
1462
1459
|
}
|
|
1463
1460
|
::-webkit-scrollbar-thumb {
|
|
1464
|
-
border-radius: ${
|
|
1461
|
+
border-radius: ${p.theme.borderRadius};
|
|
1465
1462
|
background-color: #d9d9d9;
|
|
1466
1463
|
@supports (background-clip: padding-box) {
|
|
1467
1464
|
border: 3px solid rgba(0, 0, 0, 0);
|
|
@@ -1482,7 +1479,7 @@
|
|
|
1482
1479
|
display: flex;
|
|
1483
1480
|
align-items: center;
|
|
1484
1481
|
&.item-selected {
|
|
1485
|
-
background-color: ${
|
|
1482
|
+
background-color: ${p.theme.colors.gray100};
|
|
1486
1483
|
}
|
|
1487
1484
|
.search-avatar {
|
|
1488
1485
|
width: 40px;
|
|
@@ -1492,7 +1489,7 @@
|
|
|
1492
1489
|
}
|
|
1493
1490
|
}
|
|
1494
1491
|
}
|
|
1495
|
-
`;let Bt=null;function Rt(e){var t,a;let o=-1;if(void 0!==window.getSelection){const r=window.getSelection();if((null==r?void 0:r.rangeCount)&&(null==r?void 0:r.rangeCount)>0){const r=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(r){const t=r.cloneRange();t.selectNodeContents(e),t.setEnd(r.endContainer,r.endOffset),o=It(t.cloneContents().childNodes,o);const l=null===(a=r.endContainer.parentElement)||void 0===a?void 0:a.closest("mocka"),
|
|
1492
|
+
`;let Bt=null;function Rt(e){var t,a;let o=-1;if(void 0!==window.getSelection){const r=window.getSelection();if((null==r?void 0:r.rangeCount)&&(null==r?void 0:r.rangeCount)>0){const r=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(r){const t=r.cloneRange();t.selectNodeContents(e),t.setEnd(r.endContainer,r.endOffset),o=It(t.cloneContents().childNodes,o);const l=null===(a=r.endContainer.parentElement)||void 0===a?void 0:a.closest("mocka"),n=r.endContainer.nodeValue||r.endContainer.outerHTML;l&&(null==n?void 0:n.length)&&(o=o-r.endOffset+(l.outerHTML.length-(null==l?void 0:l.outerHTML.lastIndexOf(n))))}}}return o}function It(e,t){return e.forEach(((a,o)=>{const r=o+1===e.length;if(a.nodeType===Node.ELEMENT_NODE){const e=a.outerHTML;if(!r)return void(t+=e.length);t+=e.indexOf(">")+1,t=It(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").length)})),t}a.__awaiter(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield Promise.resolve().then((function(){return S(require("react-quill"))}));Bt=e.default;const t=e.Quill||Bt.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 r extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return r.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"]))}}r.blotName="mention",r.tagName="mention",t.register(r)}));const Ot=(e,t)=>{var a;const{formatUrl:o,bannedWords:r=[]}=t||{},l=e.replace(/<font [^\>]*>(.+)<\/font>/gim,((e,t)=>t.replace(/<u[^\>]*>(.+)<\/u>/gim,"$1"))).replace(ht,((e,t,a,o)=>{if(o!==a){const e=a.split(" "),r=e.findIndex(((t,a)=>{const r=e.slice(0,a+1).join(" ");return!o.startsWith(r)}));if(0===r)return`@${o}`;{const a=(r<0?e:e.slice(0,r)).join(" "),l=o.slice(a.length).trim();return console.log(r,a,l),`<mention data-id="${t}" data-name="${a}">${a}</mention> ${l} `}}return e}));if(!o)return{value:Pt(l,r)};let n=(e=>e.replace(wt,((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(ut,((e,t,a)=>{var o;const r=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return!r||r===a||a.match(vt)?a:r?`<a href="${r}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(pt,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return yt({text:t,url:t,method:"edit"})}return e})).replace(xt,((e,t,a)=>yt({text:a||t,url:t,method:"edit"})))})(l));const i=(e=>{var t;return[...kt(e),...(null===(t=e.match(ut))||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],r=null===(a=e.match(/>(.*?)<\/mocka>/im))||void 0===a?void 0:a[1];return o||r})))||[]].filter((e=>!!e))})(l);if(i){const e=[];let t="";return i.forEach((t=>{if(t)try{const a=new URL(t);St.some((e=>a.origin.endsWith(e)))||e.push(t)}catch(a){e.push(t)}})),e.length>0&&(n=n.replace(new RegExp(`data-url="true">(${e.map(Nt).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Nt).join("|")})" data-url="true">`,"gi"),'data-href="$1" data-error="true" data-url="true">')),t=null===(a=i.filter((t=>-1===e.indexOf(t))))||void 0===a?void 0:a[0],{invalidUrls:e,previewUrl:t,value:Pt(n,r)}}return{value:Pt(n,r)}},Vt=({onAddLink:e,id:t})=>P.default.createElement("div",{id:"toolbar-"+t,onClick:e=>{e.preventDefault(),e.stopPropagation()}},P.default.createElement("span",{className:"ql-formats"},P.default.createElement("button",{className:"ql-bold",type:"button"}),P.default.createElement("button",{className:"ql-italic",type:"button"}),P.default.createElement("button",{className:"ql-underline",type:"button"})),P.default.createElement("span",{className:"ql-formats"},P.default.createElement("button",{className:"ql-list",value:"ordered",type:"button"}),P.default.createElement("button",{className:"ql-list",value:"bullet",type:"button"})),P.default.createElement("span",{className:"ql-formats"},P.default.createElement("button",{className:"ql-image",type:"button"}),e&&P.default.createElement(pe,{className:"link-tool-wrapper",toggleButtonContent:P.default.createElement("img",{className:"link-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.54545 16H7.09091C6.55368 16 6.02172 15.8965 5.52539 15.6955C5.02905 15.4945 4.57808 15.1999 4.1982 14.8284C3.43101 14.0783 3 13.0609 3 12C3 10.9391 3.43101 9.92172 4.1982 9.17157C4.96539 8.42143 6.00593 8 7.09091 8H9.54545M13.9256 8H16.9091C17.4463 8 17.9783 8.10346 18.4746 8.30448C18.9709 8.5055 19.4219 8.80014 19.8018 9.17157C20.1817 9.54301 20.483 9.98396 20.6886 10.4693C20.8942 10.9546 21 11.4747 21 12C21 12.5253 20.8942 13.0454 20.6886 13.5307C20.483 14.016 20.1817 14.457 19.8018 14.8284C19.4219 15.1999 18.9709 15.4945 18.4746 15.6955C17.9783 15.8965 17.4463 16 16.9091 16H13.9256' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9 12H15' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),buttonProps:{size:"md",color:"transparent"},align:"end"},(({setShow:t})=>P.default.createElement(jt,{onAddUrl:e,setShow:t}))))),Ft=["notification.limitUrlDomain","notification.urlWrongFormat"],jt=({onAddUrl:t,setShow:a})=>{const{data:{env:{isMarryBaby:l}}}=e.useContext(h.TogetherComponentGlobalContext),{t:n}=o.useTranslations(),[i,s]=e.useState(""),[d,c]=e.useState(""),[u,p]=e.useState(-1),m=i.trim()&&d.trim()&&u<0;return P.default.createElement("div",{className:"link-tool-popover"},P.default.createElement(b.Input,{name:"url",value:i,size:"md",label:"URL",placeholder:n("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{s(e),(e=>{const t=zt(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?St.some((t=>e.origin.endsWith("/"+t)||e.origin.endsWith("."+t)))?(p(-1),!0):(p(0),!1):(p(1),!1)}catch(e){return p(1),!1}})(e)}}),u>=0&&P.default.createElement(r.Text,{size:"c2",className:"error-text"},n(Ft[u])),P.default.createElement(b.Input,{name:"text",value:d,size:"md",label:n("createPost.urlText"),placeholder:n("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>c(e)}),P.default.createElement("div",{"data-is-marrybaby":l,className:"link-input-button-wrapper"},P.default.createElement(v.Button,{theme:l?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{m&&(t(d.trim(),zt(i.trim())),a&&a(!1))},isDisabled:!m},n("insert"))))},Dt=M.default.div`
|
|
1496
1493
|
input:focus,
|
|
1497
1494
|
textarea:focus,
|
|
1498
1495
|
[contenteditable='true'] {
|
|
@@ -1504,14 +1501,13 @@
|
|
|
1504
1501
|
width: 100%;
|
|
1505
1502
|
padding: 12px 16px;
|
|
1506
1503
|
border: solid 1px #d9d9d9;
|
|
1507
|
-
border-radius: ${
|
|
1504
|
+
border-radius: ${p.theme.borderRadius};
|
|
1508
1505
|
font-size: 16px;
|
|
1509
1506
|
line-height: 1.2;
|
|
1510
1507
|
white-space: nowrap;
|
|
1511
1508
|
:focus {
|
|
1512
|
-
border-color: ${
|
|
1513
|
-
box-shadow: 0px 0px 2px 2px
|
|
1514
|
-
${e=>e.theme.colors.primary200};
|
|
1509
|
+
border-color: ${p.theme.colors.primaryBase};
|
|
1510
|
+
box-shadow: 0px 0px 2px 2px ${p.theme.colors.primary200};
|
|
1515
1511
|
}
|
|
1516
1512
|
br {
|
|
1517
1513
|
display: none;
|
|
@@ -1539,14 +1535,14 @@
|
|
|
1539
1535
|
label {
|
|
1540
1536
|
display: block;
|
|
1541
1537
|
margin-bottom: 5px;
|
|
1542
|
-
color: ${
|
|
1538
|
+
color: ${p.theme.colors.gray600};
|
|
1543
1539
|
font-size: 13px;
|
|
1544
1540
|
font-weight: bold;
|
|
1545
1541
|
}
|
|
1546
1542
|
|
|
1547
1543
|
.count-string {
|
|
1548
1544
|
margin-top: 5px;
|
|
1549
|
-
color: ${
|
|
1545
|
+
color: ${p.theme.colors.gray500};
|
|
1550
1546
|
font-size: 11px;
|
|
1551
1547
|
text-align: right;
|
|
1552
1548
|
}
|
|
@@ -1559,24 +1555,24 @@
|
|
|
1559
1555
|
.tag-item {
|
|
1560
1556
|
min-height: 32px;
|
|
1561
1557
|
padding: 5px 12px;
|
|
1562
|
-
border: 1px solid ${
|
|
1558
|
+
border: 1px solid ${p.theme.colors.neutral100};
|
|
1563
1559
|
margin-right: 1rem;
|
|
1564
1560
|
margin-bottom: 8px;
|
|
1565
1561
|
border-radius: 1rem;
|
|
1566
|
-
color: ${
|
|
1562
|
+
color: ${p.theme.colors.gray800};
|
|
1567
1563
|
cursor: pointer;
|
|
1568
1564
|
font-size: 13px;
|
|
1569
1565
|
line-height: 22px;
|
|
1570
1566
|
transition: all 0.2s;
|
|
1571
1567
|
|
|
1572
1568
|
&.--active {
|
|
1573
|
-
border-color: ${
|
|
1574
|
-
background: ${
|
|
1575
|
-
color: ${
|
|
1569
|
+
border-color: ${p.theme.colors.primary50};
|
|
1570
|
+
background: ${p.theme.colors.primary50};
|
|
1571
|
+
color: ${p.theme.colors.primaryBase};
|
|
1576
1572
|
}
|
|
1577
1573
|
&[data-disabled='true'] {
|
|
1578
|
-
background: ${
|
|
1579
|
-
color: ${
|
|
1574
|
+
background: ${p.theme.colors.gray100};
|
|
1575
|
+
color: ${p.theme.colors.gray800};
|
|
1580
1576
|
}
|
|
1581
1577
|
}
|
|
1582
1578
|
.topic-spinner {
|
|
@@ -1619,7 +1615,7 @@
|
|
|
1619
1615
|
width: 100%;
|
|
1620
1616
|
padding-top: 44px;
|
|
1621
1617
|
background: #fff;
|
|
1622
|
-
border-radius: ${
|
|
1618
|
+
border-radius: ${p.theme.borderRadius};
|
|
1623
1619
|
|
|
1624
1620
|
.confirm-content {
|
|
1625
1621
|
display: flex;
|
|
@@ -1638,7 +1634,7 @@
|
|
|
1638
1634
|
|
|
1639
1635
|
.desc {
|
|
1640
1636
|
margin-bottom: 24px;
|
|
1641
|
-
color: ${
|
|
1637
|
+
color: ${p.theme.colors.gray500};
|
|
1642
1638
|
font-size: 18px;
|
|
1643
1639
|
line-height: 24px;
|
|
1644
1640
|
text-align: center;
|
|
@@ -1769,7 +1765,7 @@
|
|
|
1769
1765
|
}
|
|
1770
1766
|
}
|
|
1771
1767
|
}
|
|
1772
|
-
`,Wt=e=>{var{size:t,color:o,isExpand:r,useCurrentColor:l,isActive:
|
|
1768
|
+
`,Wt=e=>{var{size:t,color:o,isExpand:r,useCurrentColor:l,isActive:n,activeColor:i}=e,s=a.__rest(e,["size","color","isExpand","useCurrentColor","isActive","activeColor"]);const d=l?"currentColor":n?i:o,c=Object.assign({width:t,height:t},s);return r?P.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},c),P.default.createElement("path",{d:"M15.1801 4C14.6212 4 14.3418 4.67561 14.7373 5.07108L16.0864 6.42229L6.42229 16.0864L5.07108 14.7373C4.67561 14.3418 4 14.6212 4 15.1801V19.3718C4 19.7187 4.28026 20 4.62617 20H8.81987C9.37881 20 9.6582 19.3244 9.26272 18.9289L7.91357 17.5777L17.5777 7.91357L18.9289 9.26272C19.3244 9.6582 20 9.37881 20 8.81987V4.62617C20 4.28026 19.7187 4 19.3718 4H15.1801Z",fill:d})):P.default.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 14 14",fill:d},s),P.default.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"}))};Wt.defaultProps={size:24,color:p.theme.colors.gray600,activeColor:p.theme.colors.primaryBase};const qt=M.default.div`
|
|
1773
1769
|
[data-type='confirm'] {
|
|
1774
1770
|
max-width: 468px;
|
|
1775
1771
|
/* height: 486px; */
|
|
@@ -1793,8 +1789,7 @@
|
|
|
1793
1789
|
height: 56px;
|
|
1794
1790
|
align-items: center;
|
|
1795
1791
|
padding: 16px 56px 16px 32px;
|
|
1796
|
-
border-bottom: 1px solid
|
|
1797
|
-
${e=>e.theme.colors.neutral100};
|
|
1792
|
+
border-bottom: 1px solid ${p.theme.colors.neutral100};
|
|
1798
1793
|
font-weight: 900;
|
|
1799
1794
|
width: 100%;
|
|
1800
1795
|
justify-content: space-between;
|
|
@@ -1817,25 +1812,14 @@
|
|
|
1817
1812
|
}
|
|
1818
1813
|
}
|
|
1819
1814
|
|
|
1820
|
-
${e=>e.isExpand&&
|
|
1821
|
-
& > div[data-open] {
|
|
1822
|
-
width: 100%;
|
|
1823
|
-
height: 100%;
|
|
1824
|
-
max-width: none;
|
|
1825
|
-
max-height: none;
|
|
1826
|
-
}
|
|
1827
|
-
`}
|
|
1815
|
+
${e=>e.isExpand&&"\n & > div[data-open] {\n width: 100%;\n height: 100%;\n max-width: none;\n max-height: none;\n }\n "}
|
|
1828
1816
|
|
|
1829
|
-
${e=>e.hasFullscreen&&
|
|
1830
|
-
& > div[data-open] {
|
|
1831
|
-
transition: all 0.5s ease-in-out, width 0s, height 0s;
|
|
1832
|
-
}
|
|
1833
|
-
`}
|
|
1817
|
+
${e=>e.hasFullscreen&&"\n & > div[data-open] {\n transition: all 0.5s ease-in-out, width 0s, height 0s;\n }\n "}
|
|
1834
1818
|
`,Gt=M.default.div`
|
|
1835
1819
|
cursor: pointer;
|
|
1836
1820
|
display: flex;
|
|
1837
1821
|
align-items: center;
|
|
1838
|
-
`;var Zt="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 Qt=({className:t,style:a,closeIcon:o,heading:r="",children:l,isOpen:
|
|
1822
|
+
`;var Zt="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 Qt=({className:t,style:a,closeIcon:o,heading:r="",children:l,isOpen:n=!1,hasFullscreen:i=!1,onClose:s=(()=>null)})=>{const[d,c]=e.useState(!1);return P.default.createElement(qt,{className:t,style:a,isExpand:d,hasFullscreen:i},P.default.createElement(x.Popup,{type:"confirm",onClose:s,isOpen:n,closeIcon:o||P.default.createElement("img",{src:Zt,loading:"lazy"}),enableAnimation:!i},P.default.createElement("div",{className:"header"},P.default.createElement(h.Heading,{tag:"h5"},r),i&&P.default.createElement(Gt,{onClick:()=>c(!d)},P.default.createElement(Wt,{size:14,isExpand:d}))),P.default.createElement("div",{className:"content"},"function"==typeof l?l(d):l)))},Xt=M.default.div`
|
|
1839
1823
|
padding: 1rem;
|
|
1840
1824
|
border-top: 1px solid #f2f2f2;
|
|
1841
1825
|
&[data-is-reply='true'] {
|
|
@@ -1847,7 +1831,7 @@
|
|
|
1847
1831
|
}
|
|
1848
1832
|
.error-text {
|
|
1849
1833
|
padding: 1rem;
|
|
1850
|
-
color: ${
|
|
1834
|
+
color: ${p.theme.colors.red700};
|
|
1851
1835
|
}
|
|
1852
1836
|
.reply-to-container {
|
|
1853
1837
|
display: flex;
|
|
@@ -1884,7 +1868,7 @@
|
|
|
1884
1868
|
margin-right: 0.5rem;
|
|
1885
1869
|
&[data-has-error] {
|
|
1886
1870
|
.as-input {
|
|
1887
|
-
border-color: ${
|
|
1871
|
+
border-color: ${p.theme.colors.red700};
|
|
1888
1872
|
}
|
|
1889
1873
|
}
|
|
1890
1874
|
|
|
@@ -1906,18 +1890,17 @@
|
|
|
1906
1890
|
}
|
|
1907
1891
|
width: 100%;
|
|
1908
1892
|
padding: 12px 16px;
|
|
1909
|
-
border: solid 1px ${
|
|
1910
|
-
border-radius: ${
|
|
1893
|
+
border: solid 1px ${p.theme.colors.gray200};
|
|
1894
|
+
border-radius: ${p.theme.borderRadius};
|
|
1911
1895
|
|
|
1912
1896
|
&:active,
|
|
1913
1897
|
&:focus {
|
|
1914
|
-
border-color: ${
|
|
1915
|
-
box-shadow: 0px 0px 2px 2px
|
|
1916
|
-
${e=>e.theme.colors.primary200};
|
|
1898
|
+
border-color: ${p.theme.colors.primaryBase};
|
|
1899
|
+
box-shadow: 0px 0px 2px 2px ${p.theme.colors.primary200};
|
|
1917
1900
|
}
|
|
1918
1901
|
|
|
1919
1902
|
&:disabled {
|
|
1920
|
-
background-color: ${
|
|
1903
|
+
background-color: ${p.theme.colors.gray100};
|
|
1921
1904
|
cursor: not-allowed;
|
|
1922
1905
|
}
|
|
1923
1906
|
|
|
@@ -1949,7 +1932,7 @@
|
|
|
1949
1932
|
&[data-size='lg'] {
|
|
1950
1933
|
.as-input {
|
|
1951
1934
|
font-size: 16px;
|
|
1952
|
-
font-weight: ${
|
|
1935
|
+
font-weight: ${p.theme.sizes.fwRegular};
|
|
1953
1936
|
${c.MediaQueries.mbDown} {
|
|
1954
1937
|
font-size: 22px;
|
|
1955
1938
|
line-height: 1.2;
|
|
@@ -1963,7 +1946,7 @@
|
|
|
1963
1946
|
}
|
|
1964
1947
|
&[data-size='md'] {
|
|
1965
1948
|
.as-input {
|
|
1966
|
-
font-weight: ${
|
|
1949
|
+
font-weight: ${p.theme.sizes.fwRegular};
|
|
1967
1950
|
line-height: 22px;
|
|
1968
1951
|
${c.MediaQueries.mbDown} {
|
|
1969
1952
|
font-size: 14px;
|
|
@@ -1978,7 +1961,7 @@
|
|
|
1978
1961
|
}
|
|
1979
1962
|
&[data-size='sm'] {
|
|
1980
1963
|
.as-input {
|
|
1981
|
-
font-weight: ${
|
|
1964
|
+
font-weight: ${p.theme.sizes.fwRegular};
|
|
1982
1965
|
line-height: 20px;
|
|
1983
1966
|
${c.MediaQueries.mbDown} {
|
|
1984
1967
|
font-size: 13px;
|
|
@@ -2011,7 +1994,7 @@
|
|
|
2011
1994
|
padding: 0;
|
|
2012
1995
|
border: none;
|
|
2013
1996
|
&.send-button-post {
|
|
2014
|
-
background: ${
|
|
1997
|
+
background: ${p.theme.colors.neutral100};
|
|
2015
1998
|
border-radius: 50%;
|
|
2016
1999
|
}
|
|
2017
2000
|
.icon-enter {
|
|
@@ -2090,8 +2073,7 @@
|
|
|
2090
2073
|
top: 0;
|
|
2091
2074
|
left: 0;
|
|
2092
2075
|
width: calc(100% + 2rem);
|
|
2093
|
-
border-top: 1px solid
|
|
2094
|
-
${e=>e.theme.colors.neutral100};
|
|
2076
|
+
border-top: 1px solid ${p.theme.colors.neutral100};
|
|
2095
2077
|
margin-left: -1rem;
|
|
2096
2078
|
content: '';
|
|
2097
2079
|
}
|
|
@@ -2108,9 +2090,9 @@
|
|
|
2108
2090
|
overflow: hidden;
|
|
2109
2091
|
width: 100%;
|
|
2110
2092
|
height: 40px;
|
|
2111
|
-
border: 1px solid ${
|
|
2093
|
+
border: 1px solid ${p.theme.colors.gray200};
|
|
2112
2094
|
background: #fff;
|
|
2113
|
-
border-radius: ${
|
|
2095
|
+
border-radius: ${p.theme.borderRadius};
|
|
2114
2096
|
|
|
2115
2097
|
& > input {
|
|
2116
2098
|
width: 100%;
|
|
@@ -2118,7 +2100,7 @@
|
|
|
2118
2100
|
padding: 0 16px;
|
|
2119
2101
|
border: none;
|
|
2120
2102
|
background: transparent;
|
|
2121
|
-
color: ${
|
|
2103
|
+
color: ${p.theme.colors.gray800};
|
|
2122
2104
|
|
|
2123
2105
|
&:focus {
|
|
2124
2106
|
outline: none;
|
|
@@ -2138,7 +2120,7 @@
|
|
|
2138
2120
|
#fff 17%,
|
|
2139
2121
|
#fff 100%
|
|
2140
2122
|
);
|
|
2141
|
-
color: ${
|
|
2123
|
+
color: ${p.theme.colors.primaryBase};
|
|
2142
2124
|
cursor: pointer;
|
|
2143
2125
|
font-size: 14px;
|
|
2144
2126
|
font-weight: 400;
|
|
@@ -2195,7 +2177,7 @@
|
|
|
2195
2177
|
}
|
|
2196
2178
|
}
|
|
2197
2179
|
}
|
|
2198
|
-
`;const $t=({className:t,trackingCategory:a="Together",style:i,shareUrl:n,title:s})=>{const{action:{pushNotifications:d},data:{env:{isMarryBaby:c}}}=e.useContext(h.TogetherComponentGlobalContext),{t:u}=o.useTranslations(),m=e.useRef(null),[g,f]=e.useState(!1),v=()=>{if(!(null==m?void 0:m.current))return;const e=document.createElement("textarea");e.value=m.current.value,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),m.current.focus(),f(!0),d({title:"",message:u("share.linkCopied"),type:"success"})};e.useEffect((()=>{v(),navigator.share&&navigator.share({title:s||"Read This Post",url:n}).then((()=>{d({title:"",message:u("share.linkShared"),type:"success"})})).catch(console.error)}),[]);const b=((e,t)=>t?[{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 9.58333V30.4167C35 32.9417 32.9417 35 30.4167 35H25.8333V23.3333H28.85C29.275 23.3333 29.6333 23.0167 29.6833 22.6L29.9917 20.1C30.025 19.8667 29.95 19.625 29.7917 19.45C29.6333 19.2667 29.4083 19.1667 29.1667 19.1667H25.8333V16.25C25.8333 15.3333 26.5833 14.5833 27.5 14.5833H29.1667C29.625 14.5833 30 14.2083 30 13.75V10.9333C30 10.5083 29.6667 10.15 29.2417 10.1083C29.1917 10.1 28.0167 10 26.525 10C22.8583 10 20.8333 12.1833 20.8333 16.1417V19.1667H17.5C17.0417 19.1667 16.6667 19.5417 16.6667 20V22.5C16.6667 22.9583 17.0417 23.3333 17.5 23.3333H20.8333V35H9.58333C7.05833 35 5 32.9417 5 30.4167V9.58333C5 7.05833 7.05833 5 9.58333 5H30.4167C32.9417 5 35 7.05833 35 9.58333Z' fill='url(%23paint0_linear)'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='20' y1='5' x2='20' y2='35' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%234DABF7'/%3e%3cstop offset='1' stop-color='%232668DA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAzTSURBVHgB7Z0JdFTVGce/776ZCQkBElLCksga9kU2FQQRSlGo1AYUKwpuVA91xdZqtVTx1ONyrIpKBesC1AO1WHsiPQcsoIig1oNgEEEMKonsIQkhk2WWd+/X+96YTEK2+2beSJJ5v3Nyst25c9/3v/f7vru8NwAODg4ODg4ODg4ODg4ODvEEgt0sohTwQbb86VJZ+0gQ1Ft+Tzm7WNeOIJZeA/ya0eCGlkspIuYTQC5xvk3TtBz5eynYiH0CLJSGBrEICG9syOC1GZ4BYt0CgAHdgEFrA3GVbPSjhjBgA9ELYPR4PzwCRItUil82GPzrbgV3h3at0Pi1YIhLpQj3QpREJ4DZ62ErgPm9WeaMAv2NW0BzazFwfeeGfCnElGhGQ+S98FYaCRaMf+X54Ft5E7A2ZHyD3oJoa4BMW0REZMaw2POHdAf+yf3AkhPalPFrE/FIiHQEKBs/NQnEOwvbtPENzJFARClWX2hdgN/Qc6rGBwJ6dg5A3y5t2vjV9JZfj4BFrBnGdD10SLX45UNA/88doGkYFwKYSFfUx4orsjgCxBLVkjLNFM/PAYwn4xsIIZTS8WrUBTDyfZCTLEXmjgXq3xU0iDcQb7QSC9QFCC0vKOFiQH+cEV89vxYpnHNlW1lwQWKyasnZI0HPTG3dM91oQE27VLWsupEQz1ctuviKuO39JmhhYqYugDDTrGYZ0BX40O7ggjiGQM1WBhZGACgFloWTpFQOMQjCapXR1EHx7X6sYqsAQzNAHxbn7scqtgpw5QjH/VjFVgEu6QcecLCEbQKgXHgb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9SM/nyk9QPxvSBVYck06A2tqzhfJpTZ8+YBHra0FLzU8RmiK1y4dIQBejpG5GltSWdsrypeuZAhEQ2WLcCml8DrMiFoF5XJTUVcYrbAsP+csnkraw4Pdr86N+iE89uE/GhCIZE3hrjQmhnh+h8Q2iW442RsIKlH6PnodI0Npp1C5NjoLW546MgEsVMCoa4xvY/UFuSywtV1QTrOToKzKeI9SyRwJCqVxhWQ2CLY3W8OEq7abmowzFZBloz2/sowzrEagIoL+oZe0dGAYnY2ENc+Ug3QZeyIGcPsornQ4ODg4ODg4ODg4ODg4ODmfzfz5w/2ZW/n9aAAAAAElFTkSuQmCC",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 30.8333C35 33.135 33.1342 35 30.8333 35H9.16667C6.865 35 5 33.135 5 30.8333V9.16667C5 6.865 6.865 5 9.16667 5H30.8333C33.1342 5 35 6.865 35 9.16667V30.8333Z' fill='%2303A9F4'/%3e%3cpath d='M30 14.2667C29.265 14.5925 28.3342 14.8983 27.5 15C28.3483 14.4967 29.6942 13.4483 30 12.5C29.2075 12.9658 27.7742 13.4633 26.8392 13.6433C26.0925 12.8517 25.0275 12.5 23.8475 12.5C21.5808 12.5 20 14.4208 20 16.6667V18.3333C16.6667 18.3333 13.4167 15.7942 11.3942 13.3333C11.0383 13.9342 10.8383 14.6375 10.8383 15.3808C10.8383 16.8967 12.2308 18.435 13.3333 19.1667C12.6608 19.1458 11.3875 18.6325 10.8333 18.3333C10.8333 18.3467 10.8333 18.3633 10.8333 18.3808C10.8333 20.3533 12.2175 21.6925 14.0933 22.0658C13.7508 22.16 13.3333 22.5 11.7267 22.5C12.2483 24.1125 14.8708 24.965 16.6667 25C15.2617 26.0892 12.7567 26.6667 10.8333 26.6667C10.5008 26.6667 10.3208 26.685 10 26.6475C11.815 27.7975 14.35 28.3333 16.6667 28.3333C24.2142 28.3333 28.3333 22.5683 28.3333 17.1917C28.3333 17.015 28.3275 16.4233 28.3183 16.25C29.125 15.6817 29.4517 15.0867 30 14.2667Z' fill='white'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/svg+xml,%3csvg width='41' height='40' viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35.5 30.8333C35.5 33.135 33.635 35 31.3333 35H9.66667C7.36583 35 5.5 33.135 5.5 30.8333V9.16667C5.5 6.865 7.36583 5 9.66667 5H31.3333C33.635 5 35.5 6.865 35.5 9.16667V30.8333Z' fill='%230078D4'/%3e%3cpath opacity='0.05' d='M25.4993 30.8327V22.4168C25.4993 21.0093 24.8168 20.1685 23.6727 20.1685C22.9935 20.1685 22.4943 20.551 22.1902 21.3052C22.176 21.3585 22.156 21.576 22.1643 22.2335L22.166 30.8327H16.3327V14.9993H22.166V15.8835C23.0177 15.296 24.0618 14.9993 25.281 14.9993C29.0702 14.9993 31.3318 17.5768 31.3318 21.8943L31.3327 30.8327H25.4993ZM9.66602 30.8327V14.9993H12.5468C10.8777 14.9993 9.66602 13.7727 9.66602 12.0818C9.66602 10.3927 10.8977 9.16602 12.5943 9.16602C14.271 9.16602 15.4652 10.3585 15.4993 12.0652C15.4993 13.7685 14.2668 14.9993 12.5702 14.9993H15.4993V30.8327H9.66602Z' fill='black'/%3e%3cpath opacity='0.07' d='M25.9173 30.4173V22.4182C25.9173 20.774 25.0582 19.7532 23.674 19.7532C22.5948 19.7532 22.0615 20.5132 21.8048 21.1507C21.7365 21.3165 21.7457 21.9748 21.749 22.2557L21.7507 30.4173H16.7507V15.4173H21.7507V16.7823C22.4132 16.0965 23.4798 15.4173 25.2823 15.4173C28.8098 15.4173 30.9165 17.839 30.9165 21.8957L30.9173 30.4173H25.9173ZM10.084 30.4173V15.4173H15.084V30.4173H10.084ZM12.5482 14.584C11.1207 14.584 10.084 13.5323 10.084 12.0832C10.084 10.6348 11.1407 9.58398 12.5957 9.58398C14.0323 9.58398 15.0548 10.6082 15.084 12.0748C15.084 13.5323 14.0273 14.584 12.5715 14.584H12.5482Z' fill='black'/%3e%3cpath d='M10.5 15.8333H14.6667V30H10.5V15.8333ZM12.5708 14.1667H12.5475C11.3042 14.1667 10.5 13.24 10.5 12.0825C10.5 10.9 11.3292 10 12.595 10C13.8625 10 14.6433 10.9 14.6667 12.0825C14.6667 13.2392 13.8625 14.1667 12.5708 14.1667ZM30.5 30H26.3333V22.4175C26.3333 20.5858 25.3125 19.3358 23.6733 19.3358C22.4225 19.3358 21.7458 20.1792 21.4175 20.9942C21.2975 21.2858 21.3333 22.0925 21.3333 22.5V30H17.1667V15.8333H21.3333V18.0133C21.9342 17.0833 22.875 15.8333 25.2817 15.8333C28.2633 15.8333 30.4992 17.7083 30.4992 21.895L30.5 30Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='url(%23a)' d='M36.667 19.584c0 8.975-7.458 16.25-16.666 16.25a16.97 16.97 0 0 1-3.987-.47 1.68 1.68 0 0 0-1.15.12l-3.647 1.825a1.417 1.417 0 0 1-2.05-1.267v-3.355c0-.479-.214-.925-.567-1.249-3.245-2.966-5.266-7.179-5.266-11.854 0-8.975 7.458-16.25 16.667-16.25 9.208 0 16.666 7.275 16.666 16.25Z'/%3e%3cpath fill='black' d='M29.16 14.41c-.357 0-.703.118-1 .343l-4.745 3.512a.594.594 0 0 1-.363.125.565.565 0 0 1-.341-.113l-3.31-2.492a3.821 3.821 0 0 0-2.298-.765c-1.313 0-2.52.66-3.23 1.764l-1.009 1.575-3.433 5.58a1.633 1.633 0 0 0-.06 1.678c.299.545.862.883 1.47.883.357 0 .703-.118 1-.342l4.746-3.513a.594.594 0 0 1 .362-.125c.125 0 .243.04.342.114l3.31 2.491a3.819 3.819 0 0 0 2.297.765c1.314 0 2.521-.659 3.23-1.763l1.01-1.576 3.433-5.58a1.633 1.633 0 0 0 .059-1.678 1.682 1.682 0 0 0-1.47-.883Z' opacity='.05'/%3e%3cpath fill='black' d='M29.161 14.826c-.266 0-.525.09-.75.258L23.665 18.6c-.18.136-.39.207-.61.207a.98.98 0 0 1-.591-.197l-3.311-2.492a3.405 3.405 0 0 0-2.048-.68c-1.17 0-2.246.587-2.879 1.572l-1.008 1.575-3.43 5.574c-.247.387-.266.86-.048 1.259.222.405.656.667 1.104.667.266 0 .525-.09.75-.259l4.747-3.515c.18-.136.39-.206.61-.206a.98.98 0 0 1 .592.196l3.31 2.493c.6.446 1.307.68 2.048.68 1.171 0 2.247-.587 2.88-1.572l1.008-1.576 3.429-5.573c.247-.387.267-.86.048-1.26a1.281 1.281 0 0 0-1.104-.666Z' opacity='.07'/%3e%3cpath fill='white' d='m28.663 15.417-4.75 3.516c-.509.384-1.2.384-1.7.009L18.9 16.449a3.004 3.004 0 0 0-4.325.784l-1.008 1.575-3.425 5.566c-.5.784.458 1.675 1.2 1.117l4.75-3.517a1.412 1.412 0 0 1 1.7-.008l3.311 2.492a3.004 3.004 0 0 0 4.325-.783l1.009-1.575 3.425-5.567c.5-.783-.459-1.675-1.2-1.116Z'/%3e%3cdefs%3e%3cradialGradient id='a' cx='0' cy='0' r='1' gradientTransform='translate(9.24 35.816) scale(39.6767)' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%231292FF'/%3e%3cstop offset='.079' stop-color='%232982FF'/%3e%3cstop offset='.23' stop-color='%234E69FF'/%3e%3cstop offset='.351' stop-color='%236559FF'/%3e%3cstop offset='.428' stop-color='%236D53FF'/%3e%3cstop offset='.754' stop-color='%23DF47AA'/%3e%3cstop offset='.946' stop-color='%23FF6257'/%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e",name:"Messenger",href:`https://www.facebook.com/sharer.php?u=${e}`}]:[{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M30.7336 6.21933e-10H2.2536C1.28305 0.00703318 0.499975 0.795821 0.5 1.7664V30.2464C0.507033 31.217 1.29582 32 2.2664 32H17.5944V19.6256H13.4344V14.7808H17.5944V11.216C17.5944 7.0848 20.1192 4.832 23.8056 4.832C25.0498 4.8267 26.2933 4.8908 27.5304 5.024V9.344H24.9896C22.9832 9.344 22.5928 10.304 22.5928 11.696V14.7808H27.38L26.74 19.6256H22.58V32H30.7336C31.7092 32 32.5 31.2092 32.5 30.2336V1.7536C32.493 0.783047 31.7042 -2.54822e-05 30.7336 6.21933e-10Z' fill='%233B5998'/%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAMAAAAKqCSwAAAC/VBMVEUAAAD////3+fwAcrIAgMcAcrH//v7+//8AcbEAf8b9/v37/P0BcbAAfsT9/f36/P38/f4Af8UDcrEBfMD//v/5+/0CcbDz+foAcrAAfcb2+/wFcrABfcP9/f73/P0BfMIAfsMHca/y+Pvr9fgEcq/5+/wBc7Hg8PUFc7H6/f74+/sAc7T1+vvv+PoIc7ACcrAQda/2+vzM4+0Kc68Lcq37/v3m8vfi7/UAd7oAdbYHca39///v9/loqs0QdrAWd68Ae74Ber0Adrj6/fu01OQEf8UifrMKdLEMdK/x+Prt9vjp8/fe7fMFfsMAeLsPc64CcK3I4Ot7s9EBe8AcerD4/f3f7/Xc7PMTe7UUd7AAebwXebEHcq7x+vzt9/rY6/TR5u+51+apzOCDttJ/tNFdn8UTg8MMgcM1irs6i7kmgLQJbqnz+vzB3eqJutQeh8JLlL5Ckb0zhrbh8fbW6fHU5/DF3+ujzOKpzuGmzOGeyN2cxtxlpMdhosdYncPr9vnj8fbL4ey83Oq82eeRv9eFuNR6sc5yrcxVmsIthrgsg7UOcqvl8fa11uan0OWsz+KWw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c+P/Al8Qi5qBH/00y01n/bjN+EqZgrVUf29VXut9bUFPJLa6qexcBQInj8k/a3zSaGv9EMFzSqFOk4DVetGtLgPqs81UHH1Q43VAxUgrkJUx9EG12kNVLHWrnuYARgNquZz2FH1f35Q9aqtYd8fNKyjDa5rarp+D4vOeJNihWEVWnUcdDaD6lb/h0VzNMyqhQqCiiF1uv9z+FHNB5srR9VgD9AIUK/d/7x4S01WCpU060TgqwZF/VvrcfHoKE1WasYaoILUGrAa0FmvaXKhOl5t8MOboGcNMysqBDANZddbp3W93QK978UW5uRQpUGj1a1rWi+MoMTRfg3HW3C8ArAOv7veuvX3tdP3AYlH4stNjJzV8hFNoUb8ehtLo3+3VR/pSH5plJG+iks80l9wZnSwJOggsBxjiQUUKC2toV9xiOvi/A/lszrbhFX1MAAAAABJRU5ErkJggg==",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3crect width='32' height='32' x='.5' fill='%231FA1F3' rx='4'/%3e%3cpath fill='white' fill-rule='evenodd' d='m16.23 13.235.04.634-.673-.077c-2.455-.298-4.6-1.308-6.42-3.004l-.89-.842-.23.622c-.486 1.385-.175 2.848.836 3.832.54.544.418.621-.512.298-.324-.104-.607-.181-.634-.143-.095.091.229 1.27.485 1.735.35.648 1.066 1.282 1.848 1.657l.66.298-.781.013c-.756 0-.783.013-.702.285.27.841 1.335 1.735 2.523 2.123l.836.272-.729.414a7.893 7.893 0 0 1-3.614.958c-.607.013-1.106.065-1.106.104 0 .13 1.645.854 2.603 1.14 2.873.84 6.285.478 8.848-.959 1.82-1.023 3.641-3.055 4.491-5.023.459-1.049.917-2.965.917-3.884 0-.596.04-.673.796-1.385.445-.415.863-.868.944-.997.135-.246.122-.246-.566-.026-1.147.388-1.309.337-.742-.246.418-.414.917-1.165.917-1.385 0-.04-.202.026-.432.142-.242.13-.782.324-1.187.44l-.728.22-.66-.427c-.365-.233-.877-.492-1.147-.57-.688-.18-1.74-.155-2.36.052-1.687.583-2.752 2.085-2.63 3.729Z' clip-rule='evenodd'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAACqCAMAAADlak+OAAAC+lBMVEUAAAAqtkD3+fz5+fn////8/P39/v4ptT8psj5CxFIqtD8+wlBMy1opsD4tuEKQ1537/Pv9/f76+/opsz9DxVQvukRKyVlGx1ZPzF1Tz2BX0WNJyFgrt0FSzl9FxlU4vkpQzV45v0wxu0X3+fg8wU46wE1Vz2E2vUkzu0dOy1worj1AwlFW0GL2+PcntD01u0j8/v1IyFc9wU9ExlQ7v035+vkvt0MttkIlszz1+PUsskEorDz3/PhFv1cnqTv09/Tt9e/5/PkrsEDy9/Po8+ovsUP5+v3r9O0yuEVZ0GQmpjrz+fTr9+zw9fFRyV7k9OZNyFswtUXc8t/G6cz2+/ft+O4ztEf2+vY2tEots0L0+/Xv9/He7+FAwFHi8+Wr4LR50IZYzmMroT7R7dXv+fFTy2FFwlU7vE3h8OTZ7tyi2aqP3JeC14xIxFg+vlD6/fry+vPm8ujd8eTZ8tvA6cV+0opczmdMvl1LuFwzskcrrD/o9urJ7M5izm9dxm9cwWxTxWLV8NnN7tG96MK75MG557+m3a+O1Zl31IE8tU/m9ujf9OLT6tav4LeK2JNtzXpGvFk7uE4ksjsmozrV7dnO6tLH58zC58jA4MWG1pB7zIhoynZf0WpZymcqqD7E68mt5LOi4amc1qWc36SU2J5tx3tOxl1LwltDvVQ/uFI5skw2uEoxq0QmnznR79XL6dDM5NCx5biw3beX1qCI0ZR2yoRbx2pbvGo5o0k0uEfb7N235L2137u05rqi0amW3p6S1Z1914d2wIJt0XhqwXdYxWdQv2JFuFdDtVUwoUIrpT7W6tqo1q+Aw4tlxnVhw3BezmpVwGZVvWVRuWI/pk84p0rF4cmo466e3aee2aeY26GQ0ZqJzJOE0I+Ay4x0zo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TiOKyyELW4k5ShuO+IgzsBNp97FeC7xv4vxBUzFmCaxFDSrAAAAAElFTkSuQmCC",name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='0.5' width='32' height='32' rx='4' fill='%230077B5'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`}])(n||"",c);return P.default.createElement(Yt,{"data-is-marrybaby":c,className:t,style:i},P.default.createElement("div",{className:"share__social"},b.map(((e,t)=>P.default.createElement(Kt,{key:t,"data-event-category":a,"data-event-action":`Social Share - ${e.name}`,"data-event-label":n,href:e.href,target:"_blank",rel:"noreferrer"},P.default.createElement(l.ImageWrap,{alt:`share to ${e}`,src:e.icon}),P.default.createElement(r.Text,{className:"__label",size:"label2",weight:"regular"},e.name))))),P.default.createElement("div",{className:"share__copy-link"},P.default.createElement(r.Text,{className:"__label",color:p.theme.colors.gray500,size:"p4",weight:"regular"},u("orCopyLink")),P.default.createElement("div",{className:"__input-group"},P.default.createElement("input",{ref:m,type:"text",value:n,readOnly:!0,onFocus:e=>e.target.select()}),P.default.createElement("button",{className:"__copy",onClick:()=>v()},c?P.default.createElement(l.ImageWrap,{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"}):u(g?"copied":"copy")))))},Jt=M.default.div`
|
|
2180
|
+
`;const $t=({className:t,trackingCategory:a="Together",style:n,shareUrl:i,title:s})=>{const{action:{pushNotifications:d},data:{env:{isMarryBaby:c}}}=e.useContext(h.TogetherComponentGlobalContext),{t:u}=o.useTranslations(),m=e.useRef(null),[g,f]=e.useState(!1),v=()=>{if(!(null==m?void 0:m.current))return;const e=document.createElement("textarea");e.value=m.current.value,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),m.current.focus(),f(!0),d({title:"",message:u("share.linkCopied"),type:"success"})};e.useEffect((()=>{v(),navigator.share&&navigator.share({title:s||"Read This Post",url:i}).then((()=>{d({title:"",message:u("share.linkShared"),type:"success"})})).catch(console.error)}),[]);const b=((e,t)=>t?[{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 9.58333V30.4167C35 32.9417 32.9417 35 30.4167 35H25.8333V23.3333H28.85C29.275 23.3333 29.6333 23.0167 29.6833 22.6L29.9917 20.1C30.025 19.8667 29.95 19.625 29.7917 19.45C29.6333 19.2667 29.4083 19.1667 29.1667 19.1667H25.8333V16.25C25.8333 15.3333 26.5833 14.5833 27.5 14.5833H29.1667C29.625 14.5833 30 14.2083 30 13.75V10.9333C30 10.5083 29.6667 10.15 29.2417 10.1083C29.1917 10.1 28.0167 10 26.525 10C22.8583 10 20.8333 12.1833 20.8333 16.1417V19.1667H17.5C17.0417 19.1667 16.6667 19.5417 16.6667 20V22.5C16.6667 22.9583 17.0417 23.3333 17.5 23.3333H20.8333V35H9.58333C7.05833 35 5 32.9417 5 30.4167V9.58333C5 7.05833 7.05833 5 9.58333 5H30.4167C32.9417 5 35 7.05833 35 9.58333Z' fill='url(%23paint0_linear)'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='20' y1='5' x2='20' y2='35' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%234DABF7'/%3e%3cstop offset='1' stop-color='%232668DA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAzTSURBVHgB7Z0JdFTVGce/776ZCQkBElLCksga9kU2FQQRSlGo1AYUKwpuVA91xdZqtVTx1ONyrIpKBesC1AO1WHsiPQcsoIig1oNgEEEMKonsIQkhk2WWd+/X+96YTEK2+2beSJJ5v3Nyst25c9/3v/f7vru8NwAODg4ODg4ODg4ODg4ODvEEgt0sohTwQbb86VJZ+0gQ1Ft+Tzm7WNeOIJZeA/ya0eCGlkspIuYTQC5xvk3TtBz5eynYiH0CLJSG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F6MS9UfnpMDg7u4WLcSZKkGvvl/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+fwAcrIAgMcAcrH//v7+//8Ac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niYkcA6G0jadKFyuICmsWzm7Ov+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/G6cz2+/ft+O4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UVgRBJaPVHYzCLLundLX783PuYhokEgZ4PoD4No4ycDx05uEm2bCjNKvBasipIEgFeB5XhJSElV9odu7qp2UMaJuvjo9VWztKdieQUKHJGqCiuUwuFAvBeDOp/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}`}])(i||"",c);return P.default.createElement(Yt,{"data-is-marrybaby":c,className:t,style:n},P.default.createElement("div",{className:"share__social"},b.map(((e,t)=>P.default.createElement(Kt,{key:t,"data-event-category":a,"data-event-action":`Social Share - ${e.name}`,"data-event-label":i,href:e.href,target:"_blank",rel:"noreferrer"},P.default.createElement(l.ImageWrap,{alt:`share to ${e}`,src:e.icon}),P.default.createElement(r.Text,{className:"__label",size:"label2",weight:"regular"},e.name))))),P.default.createElement("div",{className:"share__copy-link"},P.default.createElement(r.Text,{className:"__label",color:p.theme.colors.gray500,size:"p4",weight:"regular"},u("orCopyLink")),P.default.createElement("div",{className:"__input-group"},P.default.createElement("input",{ref:m,type:"text",value:i,readOnly:!0,onFocus:e=>e.target.select()}),P.default.createElement("button",{className:"__copy",onClick:()=>v()},c?P.default.createElement(l.ImageWrap,{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"}):u(g?"copied":"copy")))))},Jt=M.default.div`
|
|
2199
2181
|
.share-popup {
|
|
2200
2182
|
> div:first-child {
|
|
2201
2183
|
height: unset;
|
|
@@ -2212,8 +2194,7 @@
|
|
|
2212
2194
|
flex-wrap: no-wrap;
|
|
2213
2195
|
align-items: center;
|
|
2214
2196
|
padding: 1rem;
|
|
2215
|
-
border-bottom: 1px solid
|
|
2216
|
-
${e=>e.theme.colors.neutral100};
|
|
2197
|
+
border-bottom: 1px solid ${p.theme.colors.neutral100};
|
|
2217
2198
|
margin-bottom: 16px;
|
|
2218
2199
|
|
|
2219
2200
|
.custom-share__header-image {
|
|
@@ -2370,7 +2351,7 @@
|
|
|
2370
2351
|
}
|
|
2371
2352
|
}
|
|
2372
2353
|
}
|
|
2373
|
-
`;var aa=t.createStyles((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 oa=r=>{var{trackingCategory:l,url:
|
|
2354
|
+
`;var aa=t.createStyles((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 oa=r=>{var{trackingCategory:l,url:n,className:i,style:s,replyingTo:d,mentionedUser:c,description:u,disableShortenContent:p,mentions:m=[],maxChars:g=1e3,hideShowAllBtn:f,styles:v,onClickCreatePostLink:b}=r,x=a.__rest(r,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn","styles","onClickCreatePostLink"]);const{classes:w,theme:y}=aa(void 0,{name:"PostContent",styles:v}),[C,E]=e.useState(!1),{t:k}=o.useTranslations(),{authActionWrapper:A}=Z(),[N,T]=e.useState(!1),S=Et(Ct(u||"","display"),m),{action:{sanitizeFunction:z}}=e.useContext(h.TogetherComponentGlobalContext),L=e.useMemo((()=>{const e=z(S||"");if(p||C)return{showContent:e,hasSeeMore:!1};const t=e.slice(0,g),a=g-27*((t.match(/<\/div>/g)||[]).length-1),o=(t||"").slice(0,a<40?40:a),r=z(o.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),l=r.length<e.length-10;return{showContent:l?r:e,hasSeeMore:l}}),[p,C,S]),M=(null==c?void 0:c.name)||d,B="expert"===(null==c?void 0:c.role)&&!!(null==c?void 0:c.partnerId),R=e.useRef(null),I=e=>{e.preventDefault(),null==b||b()};return e.useEffect((()=>{var e;return null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.addEventListener("click",I,{passive:!0})})),()=>{var e;null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.removeEventListener("click",I,!1)}))}}),[p,C,S]),P.default.createElement(P.default.Fragment,null,B&&P.default.createElement(_e,{isOpen:N,onClose:()=>T(!1),expertId:String(null==c?void 0:c.partnerId)}),P.default.createElement(ta,Object.assign({ref:R,className:`${w.root} ${i} no-replace-click`,style:s,mentionColor:y.fn.primaryColor()},x),M&&P.default.createElement(t.Anchor,{onClick:()=>B&&T(!0),className:"post-content-replying"},"@",M),(null==u?void 0:u.startsWith("[mention+id="))&&P.default.createElement("span",{className:"post-content-replying tag-only",style:{color:y.fn.primaryColor()}},"@"),P.default.createElement("span",{dangerouslySetInnerHTML:{__html:L.showContent},className:"post-content "+(L.hasSeeMore?"has-see-more":"")}),L.hasSeeMore&&!C&&P.default.createElement("span",null,"... ",!f&&P.default.createElement(t.Anchor,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),A((()=>E(!0)))},className:"see-more-text"},l?{"data-event-category":l,"data-event-action":"See More Post Click","data-event-label":n}:{}),k("post.seeMore")))))},ra=M.default.div`
|
|
2374
2355
|
padding: 14px 16px 14px 17px;
|
|
2375
2356
|
background: ${e=>e.bgColor};
|
|
2376
2357
|
border-left: 3px solid ${e=>e.highlight};
|
|
@@ -2380,14 +2361,14 @@
|
|
|
2380
2361
|
}
|
|
2381
2362
|
`,la=M.default.div`
|
|
2382
2363
|
display: flex;
|
|
2383
|
-
`,
|
|
2364
|
+
`,na=M.default.div`
|
|
2384
2365
|
font-size: 12px;
|
|
2385
2366
|
line-height: 18px;
|
|
2386
2367
|
|
|
2387
2368
|
&[data-has-icon='true'] {
|
|
2388
2369
|
margin-left: 10px;
|
|
2389
2370
|
}
|
|
2390
|
-
`,
|
|
2371
|
+
`,ia=M.default.div`
|
|
2391
2372
|
flex-shrink: 0;
|
|
2392
2373
|
`,sa=M.default.div`
|
|
2393
2374
|
display: grid;
|
|
@@ -2545,7 +2526,7 @@
|
|
|
2545
2526
|
object-fit: cover;
|
|
2546
2527
|
}
|
|
2547
2528
|
}
|
|
2548
|
-
`,ca=M.default((e=>{var{icon:t,bgColor:o=p.theme.colors.yellow50,highlightColor:r=p.theme.colors.yellow800,message:l}=e,
|
|
2529
|
+
`,ca=M.default((e=>{var{icon:t,bgColor:o=p.theme.colors.yellow50,highlightColor:r=p.theme.colors.yellow800,message:l}=e,n=a.__rest(e,["icon","bgColor","highlightColor","message"]);return P.default.createElement(ra,Object.assign({bgColor:o,highlight:r},n),P.default.createElement(la,null,t&&P.default.createElement(ia,null,t),P.default.createElement(na,{"data-has-icon":Boolean(t)},l)))}))`
|
|
2549
2530
|
margin-bottom: 16px;
|
|
2550
2531
|
`,ua=M.default.div`
|
|
2551
2532
|
position: fixed;
|
|
@@ -2715,11 +2696,11 @@
|
|
|
2715
2696
|
overflow: hidden;
|
|
2716
2697
|
border-radius: 1rem;
|
|
2717
2698
|
}
|
|
2718
|
-
`;var Ca="PD6nRZX";const Ea=({className:e,size:t="md"})=>{const{t:a}=o.useTranslations();return P.default.createElement("div",{className:`${Ca} ${e}`},P.default.createElement(v.Button,{size:t,color:"transparent",isLoading:!0},a("loading")))},ka=e.createContext({});var Aa="l5fL1xL",Na="L-aGKo7";const Ta=({children:e,className:t=""})=>P.default.createElement("div",{className:`${Aa} ${t}`},e),Sa=({children:e,className:t=""})=>P.default.createElement("div",{className:`${Na} ${t}`},e);var za="eaR8ATZ",Pa="xM-7K0a",La="DZmf3s7";const Ma=({src:e,defaultSrc:t=s.CommonGAssets.getAssetPath("logo/logomark.png"),ratio:a=1,size:o=80,radius:r=8,alt:i,className:n=""})=>P.default.createElement("div",{className:n},P.default.createElement("div",{className:La,style:{width:`${o}px`,height:o*a+"px",borderRadius:`${r}px`}},P.default.createElement(l.ImageWrap,{src:e,backupSrc:t,alt:i}))),Ba=({category:e,title:t,src:a,children:o,className:r=""})=>P.default.createElement("div",{className:`${za} ${r}`},P.default.createElement(Ma,{src:a}),P.default.createElement("div",{className:Pa},o||P.default.createElement("div",null,e&&P.default.createElement(Ta,null,e),t&&P.default.createElement(Sa,null,t))));Ba.CategoryText=Ta,Ba.Title=Sa;const Ra=({featureImage:e,postTitle:t,author:a,categories:o,isReview:r,className:l=""})=>{var i;const n=r?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return P.default.createElement(Ba,{src:e,className:l},P.default.createElement(P.default.Fragment,null,P.default.createElement(Ba.CategoryText,null,null===(i=null==o?void 0:o[0])||void 0===i?void 0:i.name),P.default.createElement(Ba.Title,null,t),P.default.createElement(ze,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:P.default.createElement(P.default.Fragment,null,n,P.default.createElement(ze.SubDivider,null),"Dec 12, 2022")})))};var Ia={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 Oa=({className:a=""})=>{var l,i,n,d,c;const{t:u}=o.useTranslations(),{info:m,isMarryBaby:g,currentPageUrl:h}=e.useContext(ka),f=null==m?void 0:m.data,v=[{type:"linkedin",icon:s.CommonGAssets.getAssetPath("linkedin.svg"),url:null===(l=null==m?void 0:m.contact)||void 0===l?void 0:l.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:s.CommonGAssets.getAssetPath("instagram.svg"),url:null===(i=null==m?void 0:m.contact)||void 0===i?void 0:i.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:s.CommonGAssets.getAssetPath("facebook.svg"),url:null===(n=null==m?void 0:m.contact)||void 0===n?void 0:n.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:s.CommonGAssets.getAssetPath("youtube.svg"),url:null===(d=null==m?void 0:m.contact)||void 0===d?void 0:d.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:s.CommonGAssets.getAssetPath("tiktok.svg"),url:null===(c=null==m?void 0:m.contact)||void 0===c?void 0:c.tiktok,eventAction:"Doctor Profile - TikTok"}],b=[...((null==m?void 0:m.experiences)||[]).length>0?[{key:"experience",heading:u("profilePanel.experience"),iconSrc:s.CommonGAssets.getAssetPath(g?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:P.default.createElement("div",{className:Ia.accBodyGroup},null==m?void 0:m.experiences.map(((e,t)=>P.default.createElement("div",{className:Ia.accBodyGroupItem,key:String(t)},P.default.createElement("div",{className:Ia.accBodyGroupTitle},e.title),P.default.createElement("div",{className:Ia.accBodyGroupDesc},P.default.createElement("p",null,e.organization),P.default.createElement("p",null,e.duration))))))}]:[],...((null==m?void 0:m.educations)||[]).length>0?[{key:"education",heading:u("profilePanel.education"),iconSrc:s.CommonGAssets.getAssetPath(g?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:P.default.createElement("div",{className:Ia.accBodyGroup},null==m?void 0:m.educations.map(((e,t)=>P.default.createElement("div",{className:Ia.accBodyGroupItem,key:String(t)},P.default.createElement("div",{className:Ia.accBodyGroupTitle},e.schoolName),P.default.createElement("div",{className:Ia.accBodyGroupDesc},P.default.createElement("p",null,e.study),P.default.createElement("p",null,e.completedYear))))))}]:[],...((null==m?void 0:m.awards)||[]).length>0?[{key:"awards",heading:u("profilePanel.awards"),iconSrc:s.CommonGAssets.getAssetPath(g?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:P.default.createElement("div",{className:Ia.accBodyGroup},null==m?void 0:m.awards.map(((e,t)=>P.default.createElement("div",{className:Ia.accBodyGroupTitle,key:t},e.title))))}]:[]],x=(null==m?void 0:m.relatedPosts)||[],w=v.filter((e=>e.url));return P.default.createElement("div",{className:`${Ia.container} ${a}`,"data-is-marrybaby":g},b.length>0&&P.default.createElement(t.Accordion,{defaultValue:b[0].key,chevron:g?P.default.createElement("div",{className:Ia.mbChevronWrapper},P.default.createElement(r.Plus,{size:12,color:p.theme.mbColors.midGray})):P.default.createElement(r.Plus,{color:p.theme.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"}}}},b.map((e=>P.default.createElement(t.Accordion.Item,{key:e.key,value:e.key},P.default.createElement(t.Accordion.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":h},P.default.createElement("div",{className:Ia.header},P.default.createElement("div",{className:Ia.headingIcon},P.default.createElement("img",{src:e.iconSrc,loading:"lazy"})),P.default.createElement("div",{className:Ia.heading},e.heading))),P.default.createElement(t.Accordion.Panel,null,e.panel))))),x.length>0&&P.default.createElement("div",{className:Ia.group},P.default.createElement("div",{className:Ia.subTitle},P.default.createElement("img",{className:Ia.subIcon,src:s.CommonGAssets.getAssetPath(g?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),u("profilePanel.publishedArticles")),P.default.createElement("div",{className:`${Ia.relatedList}`},null==m?void 0:m.relatedPosts.map((e=>P.default.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:Ia.articleCardLink},P.default.createElement(Ra,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==f?void 0:f.name,avatar:null==f?void 0:f.avatar}}),{isReview:!0}))))))),w.length>0&&P.default.createElement("div",{className:Ia.group},P.default.createElement("div",{className:Ia.subTitle},P.default.createElement("img",{className:Ia.subIcon,src:s.CommonGAssets.getAssetPath(g?"social-mb.svg":"social.svg"),loading:"lazy"}),u("profilePanel.socialLinks")),P.default.createElement("div",{className:Ia.groupBody},P.default.createElement(t.Flex,null,v.map(((e,t)=>e.url&&P.default.createElement("div",{className:Ia.socialItem,key:t},P.default.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},P.default.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":h})))))))))};var Va={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const Fa=({post:t,className:a=""})=>{var r,i,n,s,d,c,u,p;const{t:m}=o.useTranslations(),{data:{userInfo:g,env:{togetherBasePath:f}}}=e.useContext(h.TogetherComponentGlobalContext),{authActionWrapper:v,authorProps:b,currentPageUrl:x}=e.useContext(ka),w=`${window.location.origin}${f}/${null===(r=null==t?void 0:t.community)||void 0===r?void 0:r.slug}/${null==t?void 0:t.slug}/`;return P.default.createElement("div",{className:`${Va.container} ${a}`},P.default.createElement("div",{className:Va.header},P.default.createElement("div",{className:Va.question},m("profilePanel.question")," ",P.default.createElement(l.Anchor,{className:Va.questionTitle,href:"#",onClick:()=>{(null==g?void 0:g.id)||null==v||v((()=>window.location.href=w))}},"#",null==t?void 0:t.title)),P.default.createElement("div",{className:Va.community},null===(i=null==t?void 0:t.community)||void 0===i?void 0:i.name," - ",null==t?void 0:t.createdTime)),P.default.createElement("div",{className:Va.questionCard},P.default.createElement(nt,Object.assign({className:"card-author"},b,{role:"user",avatarIcon:P.default.createElement(fe,null),subLine:P.default.createElement(nt.SubTextRow,null,P.default.createElement(nt.SubText,null,null===(d=null===(s=null===(n=null==t?void 0:t.expertAnswer)||void 0===n?void 0:n.answer)||void 0===s?void 0:s[0])||void 0===d?void 0:d.createdTime))})),P.default.createElement(oa,{className:"post-content-wrapper",description:(null===(p=null===(u=null===(c=null==t?void 0:t.expertAnswer)||void 0===c?void 0:c.answer)||void 0===u?void 0:u[0])||void 0===p?void 0:p.content)||"",mentions:null==t?void 0:t.mentions,"data-testid":"Content of the Post"})),P.default.createElement(l.Button,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":x,size:"md",onClick:()=>{(null==g?void 0:g.id)?window.location.href=w:null==v||v((()=>window.location.href=w))}},m("profilePanel.anserwing.viewFull")))};var ja="MrdoES3",Da="_8fd7YMs",Ua="DomiQfw",Ha="-b2qnfL";const Wa=({message:t,buttonTxt:a,imgSrc:o,onBtnClick:r})=>{const{siteType:l,isMarryBaby:i}=e.useContext(ka);return P.default.createElement("div",{className:Da},P.default.createElement("div",{className:Ua},P.default.createElement("img",{src:o||s.CommonGAssets.getAssetPath(i?"comments-mb.svg":"comments.svg"),loading:"lazy"})),t&&P.default.createElement("div",{className:Ha},t),a&&P.default.createElement(v.Button,{size:"md",theme:l,color:"secondary",onClick:r},a))},qa=({id:t})=>{const{t:r}=o.useTranslations(),{data:{locale:l}}=e.useContext(h.TogetherComponentGlobalContext),{authorProps:i}=e.useContext(ka),[n,s]=e.useState(null),[d,c]=e.useState(!1);return e.useEffect((()=>{t&&a.__awaiter(void 0,void 0,void 0,(function*(){var e;c(!0);const a=yield h.callApi(h.getApiPath(h.PATHS.USER.LIST_ANSWERS,{_locale:l,id:t}),"GET"),o=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.replies)||[]).map(x.formatPost);s(o),c(!1)}))}),[]),P.default.createElement("div",{className:ja},d?P.default.createElement(Ea,null):null!==n&&(n.length>0?n.map((e=>P.default.createElement(Fa,{className:"post-card",key:e.id,post:e}))):P.default.createElement(Wa,{message:r("profilePanel.emptyPostMess.content",{name:(null==i?void 0:i.name)||(null==i?void 0:i.username)})})))};var Ga="toEutn7",Za="drdisHs";const Qa=t=>{var o,r,i,n,{post:s}=t,d=a.__rest(t,["post"]);const{data:{env:{togetherBasePath:c}}}=e.useContext(h.TogetherComponentGlobalContext);return P.default.createElement(P.default.Fragment,null,P.default.createElement("div",Object.assign({},d,{className:`${Ga} ${(null==d?void 0:d.className)||""}`}),P.default.createElement(nt,{className:"card-author",avatar:null===(o=null==s?void 0:s.author)||void 0===o?void 0:o.avatar,name:(null===(r=null==s?void 0:s.author)||void 0===r?void 0:r.name)||(null===(i=null==s?void 0:s.author)||void 0===i?void 0:i.username),isAnonymous:Boolean(null==s?void 0:s.isAnonymous),subLine:P.default.createElement(nt.SubTextRow,null,P.default.createElement(nt.SubText,null,null==s?void 0:s.createdTime))}),P.default.createElement(l.Anchor,{href:`${window.location.origin}${c}/${null===(n=null==s?void 0:s.community)||void 0===n?void 0:n.slug}/${null==s?void 0:s.slug}/`,className:Za,rel:"noreferrer"},null==s?void 0:s.title)))};var Xa={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const _a=()=>{var r,i;const{t:n}=o.useTranslations(),{data:{locale:d,userInfo:c}}=e.useContext(h.TogetherComponentGlobalContext),{onSkipQuestion:u,countValues:m,setCountValues:g}=e.useContext(ka),[f,v]=e.useState(),[b,w]=e.useState([]),[y,C]=e.useState(!1),E=null==c?void 0:c.id;e.useEffect((()=>{E&&a.__awaiter(void 0,void 0,void 0,(function*(){var e;C(!0);const t=yield h.callApiWithAuth(h.getApiPath(h.PATHS.USER.LIST_QUESTION_NEED_REPLY,{_locale:d}),"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(x.formatPost),delete e.question,a.push(x.formatCommunity(e))})),w(a),v(o),C(!1)}))}),[]);const k=({id:e,communityId:t})=>{if(e&&t&&f){const a=Object.assign(Object.assign({},f),{[t]:[...((null==f?void 0:f[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),v(a),g(Object.assign(Object.assign({},m),{total_question:o})),null==u||u(o)}};return P.default.createElement("div",{className:Xa.container},y?P.default.createElement(Ea,null):(null==m?void 0:m.total_question)>0?b.length>0&&P.default.createElement(t.Accordion,{className:Xa.accordion,defaultValue:String((null===(i=b[null===(r=Object.keys(b))||void 0===r?void 0:r[0]])||void 0===i?void 0:i.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:P.default.createElement("div",{className:Xa.chevron},P.default.createElement(l.ArrowDown,{color:p.theme.colors.gray600,size:20}))},b.map((e=>{const a=f&&(null==f?void 0:f[e.id])||[];return a.length>0&&P.default.createElement(t.Accordion.Item,{key:e.id,value:String(e.id)},P.default.createElement(t.Accordion.Control,null,P.default.createElement("div",{className:Xa.header},P.default.createElement("div",{className:Xa.headingIcon},P.default.createElement("img",{src:e.thumbnail,loading:"lazy"})),P.default.createElement("div",{className:Xa.heading},e.name))),P.default.createElement(t.Accordion.Panel,null,P.default.createElement("div",{className:Xa.body},a.map((e=>P.default.createElement(Qa,{className:"question-card",key:e.id,post:e,onSkip:k}))))))}))):P.default.createElement(Wa,{message:n("profilePanel.emptyCareMess.content"),imgSrc:s.CommonGAssets.getAssetPath("questions.svg")}))};var Ka="GA-zc-O",Ya="A18McWD",$a="IB049vj",Ja="_8I--vEV";const eo=({post:a,className:l=""})=>{var i;const{data:{userInfo:n,env:{togetherBasePath:s}}}=e.useContext(h.TogetherComponentGlobalContext),{t:d}=o.useTranslations(),c=t.useMantineTheme(),{authActionWrapper:u,authorProps:p}=e.useContext(ka),m=`${window.location.origin}${s}/${null===(i=null==a?void 0:a.community)||void 0===i?void 0:i.slug}/${null==a?void 0:a.slug}/`;return P.default.createElement("div",{className:`${Ka} ${l}`},P.default.createElement("div",{className:$a},P.default.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":m,className:Ja,href:m,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==u||u((()=>window.location.href=m)))}}),P.default.createElement(ze,{className:"card-author",avatarProps:{avatar:null==p?void 0:p.avatar,size:32}},P.default.createElement(nt.MainText,{className:Ya},null==a?void 0:a.title),P.default.createElement(nt.SubTextRow,null,P.default.createElement(nt.SubText,null,null==a?void 0:a.createdTime))),P.default.createElement(oa,{className:"post-content-wrapper",description:null==a?void 0:a.description,mentions:null==a?void 0:a.mentions,maxChars:200,"data-testid":"Content of the Post",hideShowAllBtn:!0}),P.default.createElement(r.Text,{size:"p3",color:c.fn.primaryColor()},d("post.seeMore"))))};var to="TSMHoEM";const ao=()=>{const{t:t}=o.useTranslations(),{data:{locale:r}}=e.useContext(h.TogetherComponentGlobalContext),{authorId:l,authorProps:i,isAuthorLogin:n,onCloseFromPost:s}=e.useContext(ka),[d,c]=e.useState(null),[u,p]=e.useState(!1);return e.useEffect((()=>{l&&a.__awaiter(void 0,void 0,void 0,(function*(){var e;p(!0);const t=yield h.callApi(h.getApiPath(h.PATHS.USER.LIST_POST,{_locale:r,id:l,isAnonymous:0}),"GET"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(x.formatPost);c(a),p(!1)}))}),[l]),P.default.createElement("div",{className:to},u?P.default.createElement(Ea,null):null!==d&&(d.length>0?d.map((e=>P.default.createElement(eo,{className:"post-card",key:e.id,post:e}))):P.default.createElement(Wa,{message:t("profilePanel.emptyPostMess.content",{name:(null==i?void 0:i.name)||(null==i?void 0:i.username)||""}),buttonTxt:n&&t("profilePanel.createPost"),onBtnClick:()=>{null==s||s()}})))};var oo="_4Vekw96",ro="DIJdGcB",lo="aQSt4-Q";const io=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},no=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var so,co;exports.TabName=void 0,(so=exports.TabName||(exports.TabName={}))[so.About=0]="About",so[so.Care=1]="Care",so[so.Answer=2]="Answer",so[so.Posts=3]="Posts",function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(co||(co={}));const uo=t=>{var r,{authorProps:i,selectedTab:n,authActionWrapper:s,onSkipQuestion:d,onCloseFromPost:c,hideQuestionTab:u,hideAnswerTab:p,showSkipQuestionTag:m,rolesToShowQuestionsTab:g=["expert"],currentPageUrl:f}=t,v=a.__rest(t,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:b,userInfo:w,env:{isMarryBaby:y}}}=e.useContext(h.TogetherComponentGlobalContext),{t:C}=o.useTranslations(),E=null==i?void 0:i.role,k=null==w?void 0:w.role,A=String(null==i?void 0:i.userId),[N,T]=e.useState(),[S,z]=e.useState(!1),[M,B]=e.useState(),R=(null==w?void 0:w._togetherUserId)===(null==i?void 0:i.userId),I=[...-1!==g.indexOf(E)?[{value:exports.TabName.About,text:C("profilePanel.tabs.highlight"),content:P.default.createElement(Oa,{id:A,info:M}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:f}]:[],{value:exports.TabName.Posts,text:C("profilePanel.tabs.posts"),content:P.default.createElement(ao,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...u||-1===g.indexOf(k)||(null==w?void 0:w._togetherUserId)!==(null==i?void 0:i.userId)?[]:[{value:exports.TabName.Care,text:`${C("profilePanel.tabs.care")}`,content:P.default.createElement(_a,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:f}],...p||-1===g.indexOf(E)?[]:[{value:exports.TabName.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:P.default.createElement(qa,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:f}]],[O,V]=e.useState(null),[F,j]=e.useState(null),D={value:String(F),dataList:O,onTabChange:e=>j(Number(e))},U=null==I?void 0:I.filter((e=>null==e?void 0:e.hasCountResult));e.useEffect((()=>{a.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,o,r,l,i,s,d,c;z(!0);const u=yield Promise.all([h.callApi(h.getApiPath(h.PATHS.USER.DETAIL,{_locale:b,id:A}),"GET"),...U.map((e=>h.callApi(h.getApiPath(h.PATHS.USER.COUNT_TABS,{_locale:b,id:A,[e.keyOfCountApi]:1}),"GET")))]),[p]=u,m={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(io),relatedPosts:((null===(a=null==p?void 0:p.data)||void 0===a?void 0:a.related_post)||[]).map((e=>x.formatArticle(e.post))),educations:((null===(r=null===(o=null==p?void 0:p.data)||void 0===o?void 0:o.fields)||void 0===r?void 0:r.educations)||[]).map(no),awards:(null===(i=null===(l=null==p?void 0:p.data)||void 0===l?void 0:l.fields)||void 0===i?void 0:i.awards_accreditations)||[],contact:(null===(d=null===(s=null==p?void 0:p.data)||void 0===s?void 0:s.fields)||void 0===d?void 0:d.contact)||{}};1===(null==p?void 0:p.status)&&B(m);const g=(null==m?void 0:m.relatedPosts)||[],f=Object.keys(m.contact).map((e=>{var t;return""!==(null===(t=null==m?void 0:m.contact)||void 0===t?void 0:t[e])})),v=[...(null==m?void 0:m.experiences)||[],...(null==m?void 0:m.educations)||[],...(null==m?void 0:m.awards)||[]],w=g.length>0||f.length>0||v.length>0,y={},C=U.map(((e,t)=>{var a,o,r;const l=(null===(r=null===(o=null===(a=u[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===r?void 0:r[e.keyOfResult])||0;return l>0?(y[e.keyOfResult]=l,e):-1!==[exports.TabName.Care,exports.TabName.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),E=I.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==y?void 0:y[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==C.indexOf(t.value)?t:void 0:t.value===exports.TabName.About?w&&t:t})).filter(Boolean);V(E),j(n||(null===(c=null==E?void 0:E[0])||void 0===c?void 0:c.value)),T(y),z(!1)}))}),[]);const H=null==M?void 0:M.data;return P.default.createElement(ka.Provider,{value:{isMarryBaby:y,siteType:y?"marryBaby":"helloSites",authorId:String((null==i?void 0:i.userId)||""),authActionWrapper:s,onSkipQuestion:d,info:M,authorProps:i,onCloseFromPost:c,countValues:N,setCountValues:T,isAuthorLogin:R,showSkipQuestionTag:m,currentPageUrl:f}},P.default.createElement("div",Object.assign({},v,{className:`${oo} ${(null==v?void 0:v.className)||""}`,"data-is-marrybaby":y}),S?P.default.createElement(Ea,null):P.default.createElement(P.default.Fragment,null,P.default.createElement(nt,Object.assign({},i,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==i?void 0:i.role)?(null==H?void 0:H.specialty)&&(null==H?void 0:H.organisation)&&P.default.createElement(nt.SubTextRow,null,(null==H?void 0:H.specialty)&&P.default.createElement(P.default.Fragment,null,P.default.createElement(nt.SubText,null,null==H?void 0:H.specialty),P.default.createElement(nt.SubDivider,null)),P.default.createElement(nt.SubText,null,null==H?void 0:H.organisation)):(null==H?void 0:H.created_at)&&P.default.createElement(nt.SubTextRow,null,P.default.createElement(nt.SubText,null,C("profilePanel.joined")," ",L.default(null==H?void 0:H.created_at).toNow(!0)))})),"expert"===E&&P.default.createElement("div",{className:ro,dangerouslySetInnerHTML:{__html:null===(r=null==M?void 0:M.data)||void 0===r?void 0:r.description}}),null!==O&&null!==F&&(O.length>0?P.default.createElement("div",{className:lo},P.default.createElement(l.Tabs,Object.assign({},D))):P.default.createElement(Wa,{message:C("profilePanel.emptyPostMess.content",{text:(null==i?void 0:i.name)||(null==i?void 0:i.username)||""})})))))};var po=Object.freeze({__proto__:null,get TabName(){return exports.TabName},get UserType(){return co},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:uo});const mo=M.default.div`
|
|
2699
|
+
`;var Ca="PD6nRZX";const Ea=({className:e,size:t="md"})=>{const{t:a}=o.useTranslations();return P.default.createElement("div",{className:`${Ca} ${e}`},P.default.createElement(v.Button,{size:t,color:"transparent",isLoading:!0},a("loading")))},ka=e.createContext({});var Aa="l5fL1xL",Na="L-aGKo7";const Ta=({children:e,className:t=""})=>P.default.createElement("div",{className:`${Aa} ${t}`},e),Sa=({children:e,className:t=""})=>P.default.createElement("div",{className:`${Na} ${t}`},e);var za="eaR8ATZ",Pa="xM-7K0a",La="DZmf3s7";const Ma=({src:e,defaultSrc:t=s.CommonGAssets.getAssetPath("logo/logomark.png"),ratio:a=1,size:o=80,radius:r=8,alt:n,className:i=""})=>P.default.createElement("div",{className:i},P.default.createElement("div",{className:La,style:{width:`${o}px`,height:o*a+"px",borderRadius:`${r}px`}},P.default.createElement(l.ImageWrap,{src:e,backupSrc:t,alt:n}))),Ba=({category:e,title:t,src:a,children:o,className:r=""})=>P.default.createElement("div",{className:`${za} ${r}`},P.default.createElement(Ma,{src:a}),P.default.createElement("div",{className:Pa},o||P.default.createElement("div",null,e&&P.default.createElement(Ta,null,e),t&&P.default.createElement(Sa,null,t))));Ba.CategoryText=Ta,Ba.Title=Sa;const Ra=({featureImage:e,postTitle:t,author:a,categories:o,isReview:r,className:l=""})=>{var n;const i=r?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return P.default.createElement(Ba,{src:e,className:l},P.default.createElement(P.default.Fragment,null,P.default.createElement(Ba.CategoryText,null,null===(n=null==o?void 0:o[0])||void 0===n?void 0:n.name),P.default.createElement(Ba.Title,null,t),P.default.createElement(ze,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:P.default.createElement(P.default.Fragment,null,i,P.default.createElement(ze.SubDivider,null),"Dec 12, 2022")})))};var Ia={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 Oa=({className:a=""})=>{var l,n,i,d,c;const{t:u}=o.useTranslations(),{info:m,isMarryBaby:g,currentPageUrl:h}=e.useContext(ka),f=null==m?void 0:m.data,v=[{type:"linkedin",icon:s.CommonGAssets.getAssetPath("linkedin.svg"),url:null===(l=null==m?void 0:m.contact)||void 0===l?void 0:l.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:s.CommonGAssets.getAssetPath("instagram.svg"),url:null===(n=null==m?void 0:m.contact)||void 0===n?void 0:n.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:s.CommonGAssets.getAssetPath("facebook.svg"),url:null===(i=null==m?void 0:m.contact)||void 0===i?void 0:i.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:s.CommonGAssets.getAssetPath("youtube.svg"),url:null===(d=null==m?void 0:m.contact)||void 0===d?void 0:d.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:s.CommonGAssets.getAssetPath("tiktok.svg"),url:null===(c=null==m?void 0:m.contact)||void 0===c?void 0:c.tiktok,eventAction:"Doctor Profile - TikTok"}],b=[...((null==m?void 0:m.experiences)||[]).length>0?[{key:"experience",heading:u("profilePanel.experience"),iconSrc:s.CommonGAssets.getAssetPath(g?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:P.default.createElement("div",{className:Ia.accBodyGroup},null==m?void 0:m.experiences.map(((e,t)=>P.default.createElement("div",{className:Ia.accBodyGroupItem,key:String(t)},P.default.createElement("div",{className:Ia.accBodyGroupTitle},e.title),P.default.createElement("div",{className:Ia.accBodyGroupDesc},P.default.createElement("p",null,e.organization),P.default.createElement("p",null,e.duration))))))}]:[],...((null==m?void 0:m.educations)||[]).length>0?[{key:"education",heading:u("profilePanel.education"),iconSrc:s.CommonGAssets.getAssetPath(g?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:P.default.createElement("div",{className:Ia.accBodyGroup},null==m?void 0:m.educations.map(((e,t)=>P.default.createElement("div",{className:Ia.accBodyGroupItem,key:String(t)},P.default.createElement("div",{className:Ia.accBodyGroupTitle},e.schoolName),P.default.createElement("div",{className:Ia.accBodyGroupDesc},P.default.createElement("p",null,e.study),P.default.createElement("p",null,e.completedYear))))))}]:[],...((null==m?void 0:m.awards)||[]).length>0?[{key:"awards",heading:u("profilePanel.awards"),iconSrc:s.CommonGAssets.getAssetPath(g?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:P.default.createElement("div",{className:Ia.accBodyGroup},null==m?void 0:m.awards.map(((e,t)=>P.default.createElement("div",{className:Ia.accBodyGroupTitle,key:t},e.title))))}]:[]],x=(null==m?void 0:m.relatedPosts)||[],w=v.filter((e=>e.url));return P.default.createElement("div",{className:`${Ia.container} ${a}`,"data-is-marrybaby":g},b.length>0&&P.default.createElement(t.Accordion,{defaultValue:b[0].key,chevron:g?P.default.createElement("div",{className:Ia.mbChevronWrapper},P.default.createElement(r.Plus,{size:12,color:p.theme.mbColors.midGray})):P.default.createElement(r.Plus,{color:p.theme.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"}}}},b.map((e=>P.default.createElement(t.Accordion.Item,{key:e.key,value:e.key},P.default.createElement(t.Accordion.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":h},P.default.createElement("div",{className:Ia.header},P.default.createElement("div",{className:Ia.headingIcon},P.default.createElement("img",{src:e.iconSrc,loading:"lazy"})),P.default.createElement("div",{className:Ia.heading},e.heading))),P.default.createElement(t.Accordion.Panel,null,e.panel))))),x.length>0&&P.default.createElement("div",{className:Ia.group},P.default.createElement("div",{className:Ia.subTitle},P.default.createElement("img",{className:Ia.subIcon,src:s.CommonGAssets.getAssetPath(g?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),u("profilePanel.publishedArticles")),P.default.createElement("div",{className:`${Ia.relatedList}`},null==m?void 0:m.relatedPosts.map((e=>P.default.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:Ia.articleCardLink},P.default.createElement(Ra,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==f?void 0:f.name,avatar:null==f?void 0:f.avatar}}),{isReview:!0}))))))),w.length>0&&P.default.createElement("div",{className:Ia.group},P.default.createElement("div",{className:Ia.subTitle},P.default.createElement("img",{className:Ia.subIcon,src:s.CommonGAssets.getAssetPath(g?"social-mb.svg":"social.svg"),loading:"lazy"}),u("profilePanel.socialLinks")),P.default.createElement("div",{className:Ia.groupBody},P.default.createElement(t.Flex,null,v.map(((e,t)=>e.url&&P.default.createElement("div",{className:Ia.socialItem,key:t},P.default.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},P.default.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":h})))))))))};var Va={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const Fa=({post:t,className:a=""})=>{var r,n,i,s,d,c,u,p;const{t:m}=o.useTranslations(),{data:{userInfo:g,env:{togetherBasePath:f}}}=e.useContext(h.TogetherComponentGlobalContext),{authActionWrapper:v,authorProps:b,currentPageUrl:x}=e.useContext(ka),w=`${window.location.origin}${f}/${null===(r=null==t?void 0:t.community)||void 0===r?void 0:r.slug}/${null==t?void 0:t.slug}/`;return P.default.createElement("div",{className:`${Va.container} ${a}`},P.default.createElement("div",{className:Va.header},P.default.createElement("div",{className:Va.question},m("profilePanel.question")," ",P.default.createElement(l.Anchor,{className:Va.questionTitle,href:"#",onClick:()=>{(null==g?void 0:g.id)||null==v||v((()=>window.location.href=w))}},"#",null==t?void 0:t.title)),P.default.createElement("div",{className:Va.community},null===(n=null==t?void 0:t.community)||void 0===n?void 0:n.name," - ",null==t?void 0:t.createdTime)),P.default.createElement("div",{className:Va.questionCard},P.default.createElement(it,Object.assign({className:"card-author"},b,{role:"user",avatarIcon:P.default.createElement(fe,null),subLine:P.default.createElement(it.SubTextRow,null,P.default.createElement(it.SubText,null,null===(d=null===(s=null===(i=null==t?void 0:t.expertAnswer)||void 0===i?void 0:i.answer)||void 0===s?void 0:s[0])||void 0===d?void 0:d.createdTime))})),P.default.createElement(oa,{className:"post-content-wrapper",description:(null===(p=null===(u=null===(c=null==t?void 0:t.expertAnswer)||void 0===c?void 0:c.answer)||void 0===u?void 0:u[0])||void 0===p?void 0:p.content)||"",mentions:null==t?void 0:t.mentions,"data-testid":"Content of the Post"})),P.default.createElement(l.Button,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":x,size:"md",onClick:()=>{(null==g?void 0:g.id)?window.location.href=w:null==v||v((()=>window.location.href=w))}},m("profilePanel.anserwing.viewFull")))};var ja="MrdoES3",Da="_8fd7YMs",Ua="DomiQfw",Ha="-b2qnfL";const Wa=({message:t,buttonTxt:a,imgSrc:o,onBtnClick:r})=>{const{siteType:l,isMarryBaby:n}=e.useContext(ka);return P.default.createElement("div",{className:Da},P.default.createElement("div",{className:Ua},P.default.createElement("img",{src:o||s.CommonGAssets.getAssetPath(n?"comments-mb.svg":"comments.svg"),loading:"lazy"})),t&&P.default.createElement("div",{className:Ha},t),a&&P.default.createElement(v.Button,{size:"md",theme:l,color:"secondary",onClick:r},a))},qa=({id:t})=>{const{t:r}=o.useTranslations(),{data:{locale:l}}=e.useContext(h.TogetherComponentGlobalContext),{authorProps:n}=e.useContext(ka),[i,s]=e.useState(null),[d,c]=e.useState(!1);return e.useEffect((()=>{t&&a.__awaiter(void 0,void 0,void 0,(function*(){var e;c(!0);const a=yield h.callApi(h.getApiPath(h.PATHS.USER.LIST_ANSWERS,{_locale:l,id:t}),"GET"),o=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.replies)||[]).map(x.formatPost);s(o),c(!1)}))}),[]),P.default.createElement("div",{className:ja},d?P.default.createElement(Ea,null):null!==i&&(i.length>0?i.map((e=>P.default.createElement(Fa,{className:"post-card",key:e.id,post:e}))):P.default.createElement(Wa,{message:r("profilePanel.emptyPostMess.content",{name:(null==n?void 0:n.name)||(null==n?void 0:n.username)})})))};var Ga="toEutn7",Za="drdisHs";const Qa=t=>{var o,r,n,i,{post:s}=t,d=a.__rest(t,["post"]);const{data:{env:{togetherBasePath:c}}}=e.useContext(h.TogetherComponentGlobalContext);return P.default.createElement(P.default.Fragment,null,P.default.createElement("div",Object.assign({},d,{className:`${Ga} ${(null==d?void 0:d.className)||""}`}),P.default.createElement(it,{className:"card-author",avatar:null===(o=null==s?void 0:s.author)||void 0===o?void 0:o.avatar,name:(null===(r=null==s?void 0:s.author)||void 0===r?void 0:r.name)||(null===(n=null==s?void 0:s.author)||void 0===n?void 0:n.username),isAnonymous:Boolean(null==s?void 0:s.isAnonymous),subLine:P.default.createElement(it.SubTextRow,null,P.default.createElement(it.SubText,null,null==s?void 0:s.createdTime))}),P.default.createElement(l.Anchor,{href:`${window.location.origin}${c}/${null===(i=null==s?void 0:s.community)||void 0===i?void 0:i.slug}/${null==s?void 0:s.slug}/`,className:Za,rel:"noreferrer"},null==s?void 0:s.title)))};var Xa={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const _a=()=>{var r,n;const{t:i}=o.useTranslations(),{data:{locale:d,userInfo:c}}=e.useContext(h.TogetherComponentGlobalContext),{onSkipQuestion:u,countValues:m,setCountValues:g}=e.useContext(ka),[f,v]=e.useState(),[b,w]=e.useState([]),[y,C]=e.useState(!1),E=null==c?void 0:c.id;e.useEffect((()=>{E&&a.__awaiter(void 0,void 0,void 0,(function*(){var e;C(!0);const t=yield h.callApiWithAuth(h.getApiPath(h.PATHS.USER.LIST_QUESTION_NEED_REPLY,{_locale:d}),"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(x.formatPost),delete e.question,a.push(x.formatCommunity(e))})),w(a),v(o),C(!1)}))}),[]);const k=({id:e,communityId:t})=>{if(e&&t&&f){const a=Object.assign(Object.assign({},f),{[t]:[...((null==f?void 0:f[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),v(a),g(Object.assign(Object.assign({},m),{total_question:o})),null==u||u(o)}};return P.default.createElement("div",{className:Xa.container},y?P.default.createElement(Ea,null):(null==m?void 0:m.total_question)>0?b.length>0&&P.default.createElement(t.Accordion,{className:Xa.accordion,defaultValue:String((null===(n=b[null===(r=Object.keys(b))||void 0===r?void 0:r[0]])||void 0===n?void 0:n.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:P.default.createElement("div",{className:Xa.chevron},P.default.createElement(l.ArrowDown,{color:p.theme.colors.gray600,size:20}))},b.map((e=>{const a=f&&(null==f?void 0:f[e.id])||[];return a.length>0&&P.default.createElement(t.Accordion.Item,{key:e.id,value:String(e.id)},P.default.createElement(t.Accordion.Control,null,P.default.createElement("div",{className:Xa.header},P.default.createElement("div",{className:Xa.headingIcon},P.default.createElement("img",{src:e.thumbnail,loading:"lazy"})),P.default.createElement("div",{className:Xa.heading},e.name))),P.default.createElement(t.Accordion.Panel,null,P.default.createElement("div",{className:Xa.body},a.map((e=>P.default.createElement(Qa,{className:"question-card",key:e.id,post:e,onSkip:k}))))))}))):P.default.createElement(Wa,{message:i("profilePanel.emptyCareMess.content"),imgSrc:s.CommonGAssets.getAssetPath("questions.svg")}))};var Ka="GA-zc-O",Ya="A18McWD",$a="IB049vj",Ja="_8I--vEV";const eo=({post:a,className:l=""})=>{var n;const{data:{userInfo:i,env:{togetherBasePath:s}}}=e.useContext(h.TogetherComponentGlobalContext),{t:d}=o.useTranslations(),c=t.useMantineTheme(),{authActionWrapper:u,authorProps:p}=e.useContext(ka),m=`${window.location.origin}${s}/${null===(n=null==a?void 0:a.community)||void 0===n?void 0:n.slug}/${null==a?void 0:a.slug}/`;return P.default.createElement("div",{className:`${Ka} ${l}`},P.default.createElement("div",{className:$a},P.default.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":m,className:Ja,href:m,onClick:e=>{(null==i?void 0:i.id)||(e.preventDefault(),null==u||u((()=>window.location.href=m)))}}),P.default.createElement(ze,{className:"card-author",avatarProps:{avatar:null==p?void 0:p.avatar,size:32}},P.default.createElement(it.MainText,{className:Ya},null==a?void 0:a.title),P.default.createElement(it.SubTextRow,null,P.default.createElement(it.SubText,null,null==a?void 0:a.createdTime))),P.default.createElement(oa,{className:"post-content-wrapper",description:null==a?void 0:a.description,mentions:null==a?void 0:a.mentions,maxChars:200,"data-testid":"Content of the Post",hideShowAllBtn:!0}),P.default.createElement(r.Text,{size:"p3",color:c.fn.primaryColor()},d("post.seeMore"))))};var to="TSMHoEM";const ao=()=>{const{t:t}=o.useTranslations(),{data:{locale:r}}=e.useContext(h.TogetherComponentGlobalContext),{authorId:l,authorProps:n,isAuthorLogin:i,onCloseFromPost:s}=e.useContext(ka),[d,c]=e.useState(null),[u,p]=e.useState(!1);return e.useEffect((()=>{l&&a.__awaiter(void 0,void 0,void 0,(function*(){var e;p(!0);const t=yield h.callApi(h.getApiPath(h.PATHS.USER.LIST_POST,{_locale:r,id:l,isAnonymous:0}),"GET"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(x.formatPost);c(a),p(!1)}))}),[l]),P.default.createElement("div",{className:to},u?P.default.createElement(Ea,null):null!==d&&(d.length>0?d.map((e=>P.default.createElement(eo,{className:"post-card",key:e.id,post:e}))):P.default.createElement(Wa,{message:t("profilePanel.emptyPostMess.content",{name:(null==n?void 0:n.name)||(null==n?void 0:n.username)||""}),buttonTxt:i&&t("profilePanel.createPost"),onBtnClick:()=>{null==s||s()}})))};var oo="_4Vekw96",ro="DIJdGcB",lo="aQSt4-Q";const no=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},io=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var so,co;exports.TabName=void 0,(so=exports.TabName||(exports.TabName={}))[so.About=0]="About",so[so.Care=1]="Care",so[so.Answer=2]="Answer",so[so.Posts=3]="Posts",function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(co||(co={}));const uo=t=>{var r,{authorProps:n,selectedTab:i,authActionWrapper:s,onSkipQuestion:d,onCloseFromPost:c,hideQuestionTab:u,hideAnswerTab:p,showSkipQuestionTag:m,rolesToShowQuestionsTab:g=["expert"],currentPageUrl:f}=t,v=a.__rest(t,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:b,userInfo:w,env:{isMarryBaby:y}}}=e.useContext(h.TogetherComponentGlobalContext),{t:C}=o.useTranslations(),E=null==n?void 0:n.role,k=null==w?void 0:w.role,A=String(null==n?void 0:n.userId),[N,T]=e.useState(),[S,z]=e.useState(!1),[M,B]=e.useState(),R=(null==w?void 0:w._togetherUserId)===(null==n?void 0:n.userId),I=[...-1!==g.indexOf(E)?[{value:exports.TabName.About,text:C("profilePanel.tabs.highlight"),content:P.default.createElement(Oa,{id:A,info:M}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:f}]:[],{value:exports.TabName.Posts,text:C("profilePanel.tabs.posts"),content:P.default.createElement(ao,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...u||-1===g.indexOf(k)||(null==w?void 0:w._togetherUserId)!==(null==n?void 0:n.userId)?[]:[{value:exports.TabName.Care,text:`${C("profilePanel.tabs.care")}`,content:P.default.createElement(_a,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:f}],...p||-1===g.indexOf(E)?[]:[{value:exports.TabName.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:P.default.createElement(qa,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:f}]],[O,V]=e.useState(null),[F,j]=e.useState(null),D={value:String(F),dataList:O,onTabChange:e=>j(Number(e))},U=null==I?void 0:I.filter((e=>null==e?void 0:e.hasCountResult));e.useEffect((()=>{a.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,o,r,l,n,s,d,c;z(!0);const u=yield Promise.all([h.callApi(h.getApiPath(h.PATHS.USER.DETAIL,{_locale:b,id:A}),"GET"),...U.map((e=>h.callApi(h.getApiPath(h.PATHS.USER.COUNT_TABS,{_locale:b,id:A,[e.keyOfCountApi]:1}),"GET")))]),[p]=u,m={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(no),relatedPosts:((null===(a=null==p?void 0:p.data)||void 0===a?void 0:a.related_post)||[]).map((e=>x.formatArticle(e.post))),educations:((null===(r=null===(o=null==p?void 0:p.data)||void 0===o?void 0:o.fields)||void 0===r?void 0:r.educations)||[]).map(io),awards:(null===(n=null===(l=null==p?void 0:p.data)||void 0===l?void 0:l.fields)||void 0===n?void 0:n.awards_accreditations)||[],contact:(null===(d=null===(s=null==p?void 0:p.data)||void 0===s?void 0:s.fields)||void 0===d?void 0:d.contact)||{}};1===(null==p?void 0:p.status)&&B(m);const g=(null==m?void 0:m.relatedPosts)||[],f=Object.keys(m.contact).map((e=>{var t;return""!==(null===(t=null==m?void 0:m.contact)||void 0===t?void 0:t[e])})),v=[...(null==m?void 0:m.experiences)||[],...(null==m?void 0:m.educations)||[],...(null==m?void 0:m.awards)||[]],w=g.length>0||f.length>0||v.length>0,y={},C=U.map(((e,t)=>{var a,o,r;const l=(null===(r=null===(o=null===(a=u[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===r?void 0:r[e.keyOfResult])||0;return l>0?(y[e.keyOfResult]=l,e):-1!==[exports.TabName.Care,exports.TabName.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),E=I.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==y?void 0:y[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==C.indexOf(t.value)?t:void 0:t.value===exports.TabName.About?w&&t:t})).filter(Boolean);V(E),j(i||(null===(c=null==E?void 0:E[0])||void 0===c?void 0:c.value)),T(y),z(!1)}))}),[]);const H=null==M?void 0:M.data;return P.default.createElement(ka.Provider,{value:{isMarryBaby:y,siteType:y?"marryBaby":"helloSites",authorId:String((null==n?void 0:n.userId)||""),authActionWrapper:s,onSkipQuestion:d,info:M,authorProps:n,onCloseFromPost:c,countValues:N,setCountValues:T,isAuthorLogin:R,showSkipQuestionTag:m,currentPageUrl:f}},P.default.createElement("div",Object.assign({},v,{className:`${oo} ${(null==v?void 0:v.className)||""}`,"data-is-marrybaby":y}),S?P.default.createElement(Ea,null):P.default.createElement(P.default.Fragment,null,P.default.createElement(it,Object.assign({},n,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==n?void 0:n.role)?(null==H?void 0:H.specialty)&&(null==H?void 0:H.organisation)&&P.default.createElement(it.SubTextRow,null,(null==H?void 0:H.specialty)&&P.default.createElement(P.default.Fragment,null,P.default.createElement(it.SubText,null,null==H?void 0:H.specialty),P.default.createElement(it.SubDivider,null)),P.default.createElement(it.SubText,null,null==H?void 0:H.organisation)):(null==H?void 0:H.created_at)&&P.default.createElement(it.SubTextRow,null,P.default.createElement(it.SubText,null,C("profilePanel.joined")," ",L.default(null==H?void 0:H.created_at).toNow(!0)))})),"expert"===E&&P.default.createElement("div",{className:ro,dangerouslySetInnerHTML:{__html:null===(r=null==M?void 0:M.data)||void 0===r?void 0:r.description}}),null!==O&&null!==F&&(O.length>0?P.default.createElement("div",{className:lo},P.default.createElement(l.Tabs,Object.assign({},D))):P.default.createElement(Wa,{message:C("profilePanel.emptyPostMess.content",{text:(null==n?void 0:n.name)||(null==n?void 0:n.username)||""})})))))};var po=Object.freeze({__proto__:null,get TabName(){return exports.TabName},get UserType(){return co},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:uo});const mo=M.default.div`
|
|
2719
2700
|
position: relative;
|
|
2720
2701
|
margin-bottom: 24px;
|
|
2721
2702
|
background: white;
|
|
2722
|
-
border-radius: ${
|
|
2703
|
+
border-radius: ${p.theme.borderRadius};
|
|
2723
2704
|
|
|
2724
2705
|
a {
|
|
2725
2706
|
text-decoration: none;
|
|
@@ -2735,7 +2716,7 @@
|
|
|
2735
2716
|
|
|
2736
2717
|
.post-pin {
|
|
2737
2718
|
padding: 0.5rem 1rem;
|
|
2738
|
-
border-radius: ${
|
|
2719
|
+
border-radius: ${p.theme.borderRadius} 6px 0 0;
|
|
2739
2720
|
}
|
|
2740
2721
|
.post-author {
|
|
2741
2722
|
display: flex;
|
|
@@ -2937,7 +2918,7 @@
|
|
|
2937
2918
|
align-items: center;
|
|
2938
2919
|
gap: 16px;
|
|
2939
2920
|
`,ko=M.default.div`
|
|
2940
|
-
border-radius: ${
|
|
2921
|
+
border-radius: ${p.theme.borderRadius};
|
|
2941
2922
|
overflow: hidden;
|
|
2942
2923
|
width: 48px;
|
|
2943
2924
|
height: 48px;
|
|
@@ -2946,7 +2927,7 @@
|
|
|
2946
2927
|
width: 100%;
|
|
2947
2928
|
height: 100%;
|
|
2948
2929
|
}
|
|
2949
|
-
`,Ao=({categories:t})=>{const{t:a}=o.useTranslations(),{data:{locale:l,env:{isMarryBaby:
|
|
2930
|
+
`,Ao=({categories:t})=>{const{t:a}=o.useTranslations(),{data:{locale:l,env:{isMarryBaby:n}}}=e.useContext(h.TogetherComponentGlobalContext),i=w.getCurrentBaseUrl(l,n);return P.default.createElement(xo,null,P.default.createElement(wo,null,P.default.createElement(h.Heading,{tag:"h6",as:"h5"},a("cardReply.recommentCategories.heading"))),P.default.createElement(yo,null,t.map((e=>P.default.createElement(Co,{href:i+e.permalink,key:String(e.termId),target:"_blank"},P.default.createElement(Eo,null,P.default.createElement(ko,null,P.default.createElement("img",{src:e.featureImage||s.CommonGAssets.getAssetPath(n?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),P.default.createElement(r.Text,{size:"s3",weight:"bold"},e.displayName)),P.default.createElement(r.Icon.ArrowRight,{size:20,color:p.theme.colors.gray400}))))))},No=M.default.a`
|
|
2950
2931
|
padding: 12px 0;
|
|
2951
2932
|
display: flex;
|
|
2952
2933
|
flex-direction: column;
|
|
@@ -2957,11 +2938,11 @@
|
|
|
2957
2938
|
&:first-child {
|
|
2958
2939
|
border-top: 0;
|
|
2959
2940
|
}
|
|
2960
|
-
`,To=
|
|
2941
|
+
`,To=({postTitle:e,articleReviewed:t,modifiedTime:a,href:l})=>{const{t:n}=o.useTranslations(),i=(()=>{const{expert:e,editor:a,is_author:o}=t;if(e){const t={name:e.display_name,role:"expert",avatar:e.avatar};return o?Object.assign({title:n("articleAuthor.title.written-by")},t):"expert"===e.role?Object.assign({title:n("articleAuthor.title.expert")},t):Object.assign({title:n("articleAuthor.title.medical")},t)}if(a)return{title:n("articleAuthor.title.fact-check"),name:a.display_name,avatar:a.avatar}})();return P.default.createElement(No,{href:l,title:e,target:"_blank"},P.default.createElement(r.Text,{size:"s3",as:"h5",weight:"bold"},e),P.default.createElement("div",null,P.default.createElement(it,{avatar:null==i?void 0:i.avatar,avatarProps:{size:32},name:null==i?void 0:i.name,role:null==i?void 0:i.role,hideBackground:!0},P.default.createElement(it.SubTextRow,null,P.default.createElement(it.SubText,null,null==i?void 0:i.title," ",P.default.createElement("span",{style:{color:p.theme.colors.gray800}},null==i?void 0:i.name)),P.default.createElement(it.SubDivider,null),P.default.createElement(it.SubText,null,a)))))};var So="F4mmgSy",zo="A7QrQ7A";const Po=n=>{var{listUrl:i,categorySlug:d,editMode:c,onListChange:u,isMarryBaby:m}=n,g=a.__rest(n,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:f}=o.useTranslations(),[w,y]=e.useState(i||[]),[C,E]=e.useState([]),[k,A]=e.useState([]),[N,T]=e.useState(!1);e.useEffect((()=>{a.__awaiter(void 0,void 0,void 0,(function*(){T(!0);const e=w.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=>h.callApi(e.isMarrySite?h.getMarryBabyApiPath(h.DISCOVER_PATHS.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):h.getDiscoverApiPath(h.DISCOVER_PATHS.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],a=yield Promise.all(t);E(a.map(((t,a)=>{var o,r;return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.post)&&Object.assign(Object.assign({},x.formatArticle(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.post)),{href:e[a].href})})).filter(Boolean)),T(!1)}))}),[]),e.useEffect((()=>{0===(null==C?void 0:C.length)&&d&&a.__awaiter(void 0,void 0,void 0,(function*(){var e;const t=yield h.callApi(m?h.getMarryBabyApiPath(h.DISCOVER_PATHS.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:d},!0):h.getDiscoverApiPath(h.DISCOVER_PATHS.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:d},!0),"GET");(null==t?void 0:t.data)&&A([x.formatCategory(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[C]);return e.useEffect((()=>{null==u||u(w)}),[w]),P.default.createElement("div",Object.assign({},g),!c&&P.default.createElement(ho,null,P.default.createElement("img",{className:"icon",src:s.CommonGAssets.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),P.default.createElement(r.Text,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:f("cardReply.disclaimer")}})),N?P.default.createElement(De,null):C.length>0||c?P.default.createElement(go,null,P.default.createElement(t.Accordion,{defaultValue:"accordion",styles:{control:{border:`1px solid ${p.theme.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${p.theme.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:P.default.createElement("div",{className:zo},P.default.createElement(l.ArrowDown,{color:p.theme.colors.gray600,size:20}))},P.default.createElement(t.Accordion.Item,{value:"accordion"},P.default.createElement(t.Accordion.Control,null,P.default.createElement("div",{className:So},P.default.createElement(h.Heading,{as:"h4",tag:"h6"},f("cardReply.source")))),P.default.createElement(t.Accordion.Panel,null,P.default.createElement(vo,null,(C||[]).map(((e,t)=>P.default.createElement(fo,{key:String(t)},"object"==typeof e?P.default.createElement(To,Object.assign({},e)):P.default.createElement(bo,null,P.default.createElement(b.Input,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{y((a=>{const o=[...a];return o[t]=e,o})),E((a=>{const o=[...a];return o[t]=e,o}))}})),c&&P.default.createElement(v.Button,{size:"md",color:"transparent",icon:P.default.createElement(r.Icon.Trash,null),onClick:()=>(e=>{y((t=>{const a=[...t];return a.splice(e,1),a})),E((t=>{const a=[...t];return a.splice(e,1),a}))})(t)})))),c&&P.default.createElement(v.Button,{className:"add-link",color:"transparent",size:"md",icon:P.default.createElement(r.Icon.Plus,{color:p.theme.colors.primaryBase,size:18}),onClick:()=>{y((e=>[...e,""])),E((e=>[...e,""]))}},"Add source")))))):P.default.createElement(Ao,{categories:k}))},Lo=M.default.div`
|
|
2961
2942
|
position: relative;
|
|
2962
2943
|
margin-bottom: 0;
|
|
2963
2944
|
background: white;
|
|
2964
|
-
border-radius: ${
|
|
2945
|
+
border-radius: ${p.theme.borderRadius};
|
|
2965
2946
|
|
|
2966
2947
|
.verify-tag {
|
|
2967
2948
|
margin-top: 12px;
|
|
@@ -3010,7 +2991,7 @@
|
|
|
3010
2991
|
&[data-has-booking='true'] {
|
|
3011
2992
|
display: grid;
|
|
3012
2993
|
.post-author {
|
|
3013
|
-
background-color: ${
|
|
2994
|
+
background-color: ${p.theme.colors.primary50};
|
|
3014
2995
|
}
|
|
3015
2996
|
.btn-wrapper {
|
|
3016
2997
|
padding: 0 16px;
|
|
@@ -3153,7 +3134,7 @@
|
|
|
3153
3134
|
margin-bottom: 12px;
|
|
3154
3135
|
}
|
|
3155
3136
|
}
|
|
3156
|
-
`,
|
|
3137
|
+
`,Mo=M.default(Po)`
|
|
3157
3138
|
margin-top: 12px;
|
|
3158
3139
|
padding: 0.5rem 1rem 1rem;
|
|
3159
|
-
`;exports.AuthorBadge=V,exports.BookingBtn=F,exports.CardAuthor=nt,exports.CardReactions=ie,exports.Close=I,exports.Dropdown=({className:e,value:a,options:o,onChange:r=(()=>{}),id:l,placeholderIcon:i,placeholder:n,style:s,size:d="lg",groupedWithLabel:c,disabled:u,dropdownLabelTrackingAttributes:p={},isNativeSelect:m=!1})=>{const g=t.useMantineTheme(),[h,f]=P.default.useState(!1),v=()=>!u&&f(!h);return m?P.default.createElement(j,{color:g.fn.primaryColor(),shadowColor:g.colors[g.primaryColor][2],as:"select","data-is-native":"true",value:(null==a?void 0:a.value)||void 0,disabled:u,onChange:e=>{if("string"==typeof e.target.value){const t=o.find((t=>t.value===e.target.value));t&&r(t)}}},n&&P.default.createElement("option",{value:n,disabled:!0,selected:!0},n),o.map((e=>P.default.createElement("option",{key:`${l}-${e.value}`,value:e.value,disabled:!!e.disabled&&e.disabled},e.label)))):P.default.createElement(j,{color:g.fn.primaryColor(),shadowColor:g.colors[g.primaryColor][2],className:e,"data-dropdown-open":h||void 0,"data-size":d,id:l,"data-has-icons":!!i,style:s,onBlur:()=>f(!1),tabIndex:0,"data-disabled":u},!!c&&P.default.createElement(q,null,c),P.default.createElement(D,Object.assign({color:g.fn.primaryColor(),shadowColor:g.colors[g.primaryColor][2],onClick:v,className:c&&"with-label"},p),i," ",P.default.createElement("span",null,a&&a.value?a.label:n)),h&&P.default.createElement(U,{onClick:v,"data-has-icons":!!i},o.map((e=>P.default.createElement(H,{key:`${l}-${e.value}`,"data-selected":a&&a.value===e.value||void 0,onClick:()=>!e.disabled&&!u&&(null==r?void 0:r(e)),"data-disabled":!!e.disabled&&e.disabled},e.icon&&P.default.createElement(W,null,e.icon),e.label)))))},exports.LabelSortPin=de,exports.LabelSorting=({onChange:t,className:a,style:o,leftLabel:l,rightLabel:i,color:n,value:s,choices:d})=>{const{data:{env:{isMarryBaby:c}}}=e.useContext(h.TogetherComponentGlobalContext);return P.default.createElement(de,{label:l,rightLabel:P.default.createElement(me,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:d.map((e=>({label:e.label,onClick:()=>t&&t(String(e.value)),selected:e.value===s,className:"bold-item"})))},toggleButtonContent:P.default.createElement("div",{style:{display:"flex"}},P.default.createElement(r.Text,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},i),P.default.createElement("img",{src:c?"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:o})},exports.Loading=De,exports.MainInputTriggerContext=_t,exports.PopoverMenu=pe,exports.PopupDoctor=Ue,exports.PopupExpert=_e,exports.PopupFrame=Qt,exports.PopupHospital=et,exports.PostContent=oa,exports.ProfileDetail=uo,exports.ProfileDetailModal=lt,exports.RichTextEditor=({html:t,onChange:l,className:i,style:n,onImagePickerClick:s,bannedWords:d=[],onInvalidUrlsChange:c,onPreviewUrlChange:u,setEditorRef:p,isReplying:m})=>{var g,f,v,b;const w=e.useRef([]);w.current=d;const[y,C]=e.useState([]),[E,k]=e.useState(null),{data:{locale:A}}=e.useContext(h.TogetherComponentGlobalContext),T=(null==d?void 0:d.join(","))||"";e.useEffect((()=>{var e,t;const a=null===(t=null===(e=V.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;L(a)}),[T]);const S=e=>{E&&E.url===e||(k({url:e,isFetching:!0}),h.callApi(h.getApiPath(h.PATHS.FETCH_PREVIEW,{_locale:A}),"POST",{data:{link:e}}).then((t=>{var a,o,r,l;k({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===(r=null==t?void 0:t.data)||void 0===r?void 0:r.image)||(null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.logo),url:e})})).catch((()=>{k(null)})))},z=e.useRef(S);z.current=S;const L=e.useCallback(R.default((e=>{if(e){const t=Ot(e,{bannedWords:w.current,formatUrl:!0}),{invalidUrls:a,previewUrl:o,value:r}=t;a&&C(a),o?z.current(o):k(null),r!==e&&(null==l||l(r))}}),500),[]);e.useEffect((()=>{c&&c(y)}),[y]),e.useEffect((()=>{u&&((null==E?void 0:E.url)?u({title:E.title||"",url:E.url||"",image:E.image||"",description:E.description||""}):u(null))}),[E]);const M=e.useRef(s);M.current=s;const B=o.useUniqueId(),I=e.useRef({toolbar:{handlers:{image:()=>{var e;return null===(e=M.current)||void 0===e?void 0:e.call(M)},link:()=>!1},container:"#toolbar-"+B},preserveWhiteSpace:!0}),O=e.useRef(-1),V=e.useRef(null);p&&(null===(f=null===(g=V.current)||void 0===g?void 0:g.getEditor())||void 0===f?void 0:f.root)&&p(null===(b=null===(v=V.current)||void 0===v?void 0:v.getEditor())||void 0===b?void 0:b.root);const F=()=>{var e,t,a,o,r,l,i,n;if(null===(t=null===(e=V.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Rt(null===(o=null===(a=V.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(l=null===(r=V.current)||void 0===r?void 0:r.getEditor())||void 0===l?void 0:l.root.innerHTML;if(e>=0&&e<t.length){if(At(t,!0).length<30-(m?1:0)){const e=function(e){var t,a;let o=null;if(void 0!==window.getSelection){const r=window.getSelection();if((null==r?void 0:r.rangeCount)&&(null==r?void 0:r.rangeCount)>0){const r=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(r){const t=r.cloneRange();t.selectNodeContents(e),t.setEnd(r.endContainer,r.endOffset);const l=(t.endContainer.nodeValue||"").substring(0,r.endOffset),i=l.lastIndexOf("@");if(i+1<l.length&&(0===i||" @"===l.slice(i-1,i+1))){const e=null===(a=l.slice(i+1))||void 0===a?void 0:a.trim();if(e){t.setStart(r.endContainer,i);const a=t.cloneRange();a.setStart(a.endContainer,i),o={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return o}(null===(n=null===(i=V.current)||void 0===i?void 0:i.getEditor())||void 0===n?void 0:n.root);e?(W(e.name,e.rect),Z.current=e.replaceRange):(Z.current=null,W("",null))}else Z.current=null,W("",null);O.current=e}}else D([])},[j,D]=e.useState([]),[U,H]=e.useState({top:0,left:0}),W=e.useCallback(R.default(((e,t,o)=>a.__awaiter(void 0,void 0,void 0,(function*(){var a,r,l,i;if(!e||!DOMRect)return D([]);const n=yield((null===(a=N.getCookie(h.BEARER_TOKEN_COOKIE))||void 0===a?void 0:a.length)||0)>0?h.callApiWithAuth(h.getApiPath(h.PATHS.SEARCH_USER,{_locale:A,name:e}),"get"):h.callApiWithAdminAuth(h.getApiPath(h.ADMIN_PATHS.SEARCH_USER,{_locale:A,name:e}),"get");_(0),D(null===(l=null===(r=null==n?void 0:n.data)||void 0===r?void 0:r.users)||void 0===l?void 0:l.filter((e=>!(null==o?void 0:o.includes(String(e.id))))));const s=t,d=null===(i=G.current)||void 0===i?void 0:i.getBoundingClientRect();if(s&&d){const e=343,t=256,a={top:s.bottom-d.top,width:"min(343px, 100%)",maxHeight:t};d.width-(s.left-d.left)<e?a.right=0:a.left=s.left-d.left,H(a)}}))),500),[]),q=(e,t)=>{var a,o,r;if(Z.current){Z.current.deleteContents();const l=document.createElement("mention");l.setAttribute("data-id",e),l.setAttribute("data-name",t),l.innerText=t;const i=document.createTextNode(" ");Z.current.insertNode(i),Z.current.insertNode(l);(null===(o=null===(a=V.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root).focus();const n=null===(r=window.getSelection())||void 0===r?void 0:r.getRangeAt(0);null==n||n.setStart(Z.current.endContainer,Z.current.endOffset),null==n||n.setEnd(Z.current.endContainer,Z.current.endOffset)}D([])},G=e.useRef(null),Z=e.useRef(null),Q=e.useRef(null),[X,_]=e.useState(0);return e.useEffect((()=>{if(Q.current){const e=Q.current,t=e.children.item(X);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)}}}),[X]),e.useEffect((()=>{const e=function(e){var t;(null===(t=G.current)||void 0===t?void 0:t.contains(e.target))||D([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),P.default.createElement(Mt,{ref:G,className:i,style:n,onKeyDownCapture:e=>{if(null==j?void 0:j.length){let t=!1;if("ArrowDown"===e.key)t=!0,_((e=>e+1>=j.length?0:e+1));else if("Escape"===e.key)t=!0,_(0),D([]);else if("ArrowUp"===e.key)t=!0,_((e=>e-1<0?j.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=j[X];e&&(t=!0,q(e.id,e.name))}if(t)return e.preventDefault(),!1}}},P.default.createElement(Vt,{id:B,onAddLink:(e,t)=>{var a,o;const r=O.current+1,i=null===(o=null===(a=V.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root.innerHTML,n=((null==i?void 0:i.substring(0,r))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==i?void 0:i.substring(r))||"");null==l||l(n),L(n)}}),Bt&&P.default.createElement(Bt,{ref:V,theme:"snow",value:t,onChange:e=>{null==l||l(e),L(e),F()},onChangeSelection:()=>{F()},modules:I.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==j?void 0:j.length)&&P.default.createElement("div",{ref:Q,className:"mention-search-container",style:U},j.map(((e,t)=>P.default.createElement("div",{className:"mention-search-item "+(X===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),q(e.id,e.name)},onMouseEnter:()=>{_(t)}},P.default.createElement(x.UserAvatar,{className:"search-avatar",username:e.name,avatar:e.avatar}),P.default.createElement("div",null,P.default.createElement(r.Text,{size:"p2"},e.name),P.default.createElement(r.Text,{size:"p4",color:"#595959"},"@",e.username)))))))},exports.ShareBox=$t,exports.SharePopup=({trackingCategory:a,className:l,style:i,url:n,avatar:s,text:d,onClose:u})=>{const{data:{env:{isMarryBaby:p}}}=e.useContext(h.TogetherComponentGlobalContext),{t:m}=o.useTranslations(),[g,f]=e.useState(!1);return e.useEffect((()=>(c.toggleNoScroll(!0),setTimeout((()=>f(!0)),0),()=>c.toggleNoScroll(!1))),[]),P.default.createElement(t.Portal,null,P.default.createElement(Jt,{"data-is-marrybaby":p,className:l,style:i},P.default.createElement(Qt,{className:"share-popup",isOpen:g,onClose:u,heading:m("bottomBar.share")},p?P.default.createElement(r.Text,{className:"share-mb-text",size:"sm"},m("article.shareOn")):P.default.createElement("div",{className:"custom-share__header"},s&&P.default.createElement("div",{className:"custom-share__header-image"},P.default.createElement("img",{src:s,loading:"lazy"})),P.default.createElement("div",{className:"custom-share__header-info"},P.default.createElement(h.Heading,{tag:"h4"},d),P.default.createElement(r.Text,{className:"desc",size:"md"},n))),g&&P.default.createElement($t,{trackingCategory:a,shareUrl:n||("undefined"!=typeof window?window.location.href:""),title:d}))))},exports.SourceList=Lo,exports.StyledArrowWrapper=ga,exports.StyledCardLink=Q,exports.StyledCardPost=Mo,exports.StyledCardPost$1=mo,exports.StyledCircleArrow=ha,exports.StyledCreateNewPost=st,exports.StyledCreatePostDescription=Lt,exports.StyledCreatePostTitle=Dt,exports.StyledError=ct,exports.StyledIcon=xa,exports.StyledImagePreviewContainer=ua,exports.StyledImagePreviewPopup=da,exports.StyledImagePreviewTopbar=pa,exports.StyledImagePreviewWrapper=ma,exports.StyledInner=ba,exports.StyledInputCommentBar=Xt,exports.StyledIsQuestion=dt,exports.StyledNotificationBar=ca,exports.StyledPopupDanger=Ht,exports.StyledPostImagePreview=sa,exports.StyledSocialLinkPreview=ya,exports.StyledSourceList=Bo,exports.StyledSubmitReportForm=ea,exports.StyledTopicSelectList=Ut,exports.StyledWrapper=wa,exports.TagTopic=t=>{var{topics:l=[],onClick:s,className:d,style:c,trackingCategory:u="Together",locale:p="vi-VN",classNames:m,styles:g,unstyled:v,shortenedNumber:b=3,shortenedStyle:x}=t,w=a.__rest(t,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:y}=o.useTranslations(),{classes:C}=ne(void 0,{name:"TagTopic",classNames:m,styles:g,unstyled:v}),{data:{env:{togetherBasePath:E}},action:{sanitizeFunction:k}}=e.useContext(h.TogetherComponentGlobalContext),[A,N]=e.useState(!x);return P.default.createElement("div",Object.assign({onClick:s,className:`${C.wrapper} ${d}`,style:c},w),(A?l:l.slice(0,b)).map(((e,t)=>{const a=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return P.default.createElement("a",{className:C.item,key:t,"data-event-category":u,"data-event-action":"Topic in Post Click","data-event-label":`${h.getCurrentBaseUrl(p)}${E}${e.url}`,href:e.isActive&&!e.isHidden?`${E}${e.url}/`:void 0},P.default.createElement(r.Text,{size:"p4"},P.default.createElement("span",{style:Object.assign({},a&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:a?`${f.format(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:i.DATE_FNS_LOCALE[p]})}${p===n.LOCALE.Vietnam?"/":" "}${null==e?void 0:e.dueDateYear}`:(null==k?void 0:k(e.name))||e.name}})))})),!A&&l.length>b&&P.default.createElement("a",{className:C.item,href:"#",onClick:e=>{e.preventDefault(),N(!0)}},P.default.createElement(r.Text,{size:"p4"},"+",y("tagTopic.moreTopics",{number:l.length-b}))))},exports.TogetherAuthConfigContext=G,exports.TogetherAuthConfigContextProvider=({children:e,defaultParams:t})=>P.default.createElement(G.Provider,{value:{defaultParams:t}},e),exports.TreePopoverMenu=me,exports.decodeMention=Et,exports.decodePostUrl=Ct,exports.encodePostContent=(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(pt,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(ut,((e,t,a)=>{var o;const r=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return r?`<a href="${r}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(gt,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Tt(e)),t),exports.getMentionIdsFromString=At,exports.highlightBadWords=Pt,exports.img=Zt,exports.removeBannedWordWrapper=Tt,exports.uploadAndGetSrc=(e,t,o)=>"string"==typeof e?Promise.resolve(e):a.__awaiter(void 0,void 0,void 0,(function*(){var a;const r=new FormData;if(e.type.startsWith("image/gif"))r.append("image",e);else{const t=yield Promise.resolve().then((function(){return S(require("browser-image-compression"))})),a=yield t.default(e,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});r.append("image",a)}const l=o?h.callApiWithAdminAuth:h.callApiWithAuth,i=yield l(h.getApiPath(o?h.ADMIN_PATHS.COMMENT.IMAGE_UPLOAD:h.PATHS.COMMENT.IMAGE_UPLOAD,{_locale:t}),"POST",{data:r});return(null===(a=null==i?void 0:i.data)||void 0===a?void 0:a.image)||""})),exports.useTogetherAuthRequiredAction=Z,exports.youtubeVidIdGetter=e=>{var t;if(!e.includes("youtu"))return"";return(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""};
|
|
3140
|
+
`;exports.AuthorBadge=V,exports.BookingBtn=F,exports.CardAuthor=it,exports.CardReactions=ne,exports.Close=I,exports.Dropdown=({className:e,value:a,options:o,onChange:r=(()=>{}),id:l,placeholderIcon:n,placeholder:i,style:s,size:d="lg",groupedWithLabel:c,disabled:u,dropdownLabelTrackingAttributes:p={},isNativeSelect:m=!1})=>{const g=t.useMantineTheme(),[h,f]=P.default.useState(!1),v=()=>!u&&f(!h);if(m){const e="object"==typeof(null==a?void 0:a.value)&&a.value instanceof Date?a.value.toString():null==a?void 0:a.value;return P.default.createElement(j,{color:g.fn.primaryColor(),shadowColor:g.colors[g.primaryColor][2],as:"select","data-is-native":"true",value:e||void 0,disabled:u,onChange:e=>{if("string"==typeof e.target.value){const t=o.find((t=>t.value===e.target.value));t&&r(t)}}},i&&P.default.createElement("option",{value:i,disabled:!0,selected:!0},i),o.map((e=>P.default.createElement("option",{key:`${l}-${e.value}`,value:e.value,disabled:!!e.disabled&&e.disabled},e.label))))}return P.default.createElement(j,{color:g.fn.primaryColor(),shadowColor:g.colors[g.primaryColor][2],className:e,"data-dropdown-open":h||void 0,"data-size":d,id:l,"data-has-icons":!!n,style:s,onBlur:()=>f(!1),tabIndex:0,"data-disabled":u},!!c&&P.default.createElement(q,null,c),P.default.createElement(D,Object.assign({color:g.fn.primaryColor(),shadowColor:g.colors[g.primaryColor][2],onClick:v,className:c&&"with-label"},p),n," ",P.default.createElement("span",null,a&&a.value?a.label:i)),h&&P.default.createElement(U,{onClick:v,"data-has-icons":!!n},o.map((e=>P.default.createElement(H,{key:`${l}-${e.value}`,"data-selected":a&&a.value===e.value||void 0,onClick:()=>!e.disabled&&!u&&(null==r?void 0:r(e)),"data-disabled":!!e.disabled&&e.disabled},e.icon&&P.default.createElement(W,null,e.icon),e.label)))))},exports.LabelSortPin=de,exports.LabelSorting=({onChange:t,className:a,style:o,leftLabel:l,rightLabel:n,color:i,value:s,choices:d})=>{const{data:{env:{isMarryBaby:c}}}=e.useContext(h.TogetherComponentGlobalContext);return P.default.createElement(de,{label:l,rightLabel:P.default.createElement(me,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:d.map((e=>({label:e.label,onClick:()=>t&&t(String(e.value)),selected:e.value===s,className:"bold-item"})))},toggleButtonContent:P.default.createElement("div",{style:{display:"flex"}},P.default.createElement(r.Text,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},n),P.default.createElement("img",{src:c?"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:o})},exports.Loading=De,exports.MainInputTriggerContext=_t,exports.PopoverMenu=pe,exports.PopupDoctor=Ue,exports.PopupExpert=_e,exports.PopupFrame=Qt,exports.PopupHospital=et,exports.PostContent=oa,exports.ProfileDetail=uo,exports.ProfileDetailModal=lt,exports.RichTextEditor=({html:t,onChange:l,className:n,style:i,onImagePickerClick:s,bannedWords:d=[],onInvalidUrlsChange:c,onPreviewUrlChange:u,setEditorRef:p,isReplying:m})=>{var g,f,v,b;const w=e.useRef([]);w.current=d;const[y,C]=e.useState([]),[E,k]=e.useState(null),{data:{locale:A}}=e.useContext(h.TogetherComponentGlobalContext),T=(null==d?void 0:d.join(","))||"";e.useEffect((()=>{var e,t;const a=null===(t=null===(e=V.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;L(a)}),[T]);const S=e=>{E&&E.url===e||(k({url:e,isFetching:!0}),h.callApi(h.getApiPath(h.PATHS.FETCH_PREVIEW,{_locale:A}),"POST",{data:{link:e}}).then((t=>{var a,o,r,l;k({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===(r=null==t?void 0:t.data)||void 0===r?void 0:r.image)||(null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.logo),url:e})})).catch((()=>{k(null)})))},z=e.useRef(S);z.current=S;const L=e.useCallback(R.default((e=>{if(e){const t=Ot(e,{bannedWords:w.current,formatUrl:!0}),{invalidUrls:a,previewUrl:o,value:r}=t;a&&C(a),o?z.current(o):k(null),r!==e&&(null==l||l(r))}}),500),[]);e.useEffect((()=>{c&&c(y)}),[y]),e.useEffect((()=>{u&&((null==E?void 0:E.url)?u({title:E.title||"",url:E.url||"",image:E.image||"",description:E.description||""}):u(null))}),[E]);const M=e.useRef(s);M.current=s;const B=o.useUniqueId(),I=e.useRef({toolbar:{handlers:{image:()=>{var e;return null===(e=M.current)||void 0===e?void 0:e.call(M)},link:()=>!1},container:"#toolbar-"+B},preserveWhiteSpace:!0}),O=e.useRef(-1),V=e.useRef(null);p&&(null===(f=null===(g=V.current)||void 0===g?void 0:g.getEditor())||void 0===f?void 0:f.root)&&p(null===(b=null===(v=V.current)||void 0===v?void 0:v.getEditor())||void 0===b?void 0:b.root);const F=()=>{var e,t,a,o,r,l,n,i;if(null===(t=null===(e=V.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Rt(null===(o=null===(a=V.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(l=null===(r=V.current)||void 0===r?void 0:r.getEditor())||void 0===l?void 0:l.root.innerHTML;if(e>=0&&e<t.length){if(At(t,!0).length<30-(m?1:0)){const e=function(e){var t,a;let o=null;if(void 0!==window.getSelection){const r=window.getSelection();if((null==r?void 0:r.rangeCount)&&(null==r?void 0:r.rangeCount)>0){const r=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(r){const t=r.cloneRange();t.selectNodeContents(e),t.setEnd(r.endContainer,r.endOffset);const l=(t.endContainer.nodeValue||"").substring(0,r.endOffset),n=l.lastIndexOf("@");if(n+1<l.length&&(0===n||" @"===l.slice(n-1,n+1))){const e=null===(a=l.slice(n+1))||void 0===a?void 0:a.trim();if(e){t.setStart(r.endContainer,n);const a=t.cloneRange();a.setStart(a.endContainer,n),o={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return o}(null===(i=null===(n=V.current)||void 0===n?void 0:n.getEditor())||void 0===i?void 0:i.root);e?(W(e.name,e.rect),Z.current=e.replaceRange):(Z.current=null,W("",null))}else Z.current=null,W("",null);O.current=e}}else D([])},[j,D]=e.useState([]),[U,H]=e.useState({top:0,left:0}),W=e.useCallback(R.default(((e,t,o)=>a.__awaiter(void 0,void 0,void 0,(function*(){var a,r,l,n;if(!e||!DOMRect)return D([]);const i=yield((null===(a=N.getCookie(h.BEARER_TOKEN_COOKIE))||void 0===a?void 0:a.length)||0)>0?h.callApiWithAuth(h.getApiPath(h.PATHS.SEARCH_USER,{_locale:A,name:e}),"get"):h.callApiWithAdminAuth(h.getApiPath(h.ADMIN_PATHS.SEARCH_USER,{_locale:A,name:e}),"get");_(0),D(null===(l=null===(r=null==i?void 0:i.data)||void 0===r?void 0:r.users)||void 0===l?void 0:l.filter((e=>!(null==o?void 0:o.includes(String(e.id))))));const s=t,d=null===(n=G.current)||void 0===n?void 0:n.getBoundingClientRect();if(s&&d){const e=343,t=256,a={top:s.bottom-d.top,width:"min(343px, 100%)",maxHeight:t};d.width-(s.left-d.left)<e?a.right=0:a.left=s.left-d.left,H(a)}}))),500),[]),q=(e,t)=>{var a,o,r;if(Z.current){Z.current.deleteContents();const l=document.createElement("mention");l.setAttribute("data-id",e),l.setAttribute("data-name",t),l.innerText=t;const n=document.createTextNode(" ");Z.current.insertNode(n),Z.current.insertNode(l);(null===(o=null===(a=V.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root).focus();const i=null===(r=window.getSelection())||void 0===r?void 0:r.getRangeAt(0);null==i||i.setStart(Z.current.endContainer,Z.current.endOffset),null==i||i.setEnd(Z.current.endContainer,Z.current.endOffset)}D([])},G=e.useRef(null),Z=e.useRef(null),Q=e.useRef(null),[X,_]=e.useState(0);return e.useEffect((()=>{if(Q.current){const e=Q.current,t=e.children.item(X);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)}}}),[X]),e.useEffect((()=>{const e=function(e){var t;(null===(t=G.current)||void 0===t?void 0:t.contains(e.target))||D([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),P.default.createElement(Mt,{ref:G,className:n,style:i,onKeyDownCapture:e=>{if(null==j?void 0:j.length){let t=!1;if("ArrowDown"===e.key)t=!0,_((e=>e+1>=j.length?0:e+1));else if("Escape"===e.key)t=!0,_(0),D([]);else if("ArrowUp"===e.key)t=!0,_((e=>e-1<0?j.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=j[X];e&&(t=!0,q(e.id,e.name))}if(t)return e.preventDefault(),!1}}},P.default.createElement(Vt,{id:B,onAddLink:(e,t)=>{var a,o;const r=O.current+1,n=null===(o=null===(a=V.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root.innerHTML,i=((null==n?void 0:n.substring(0,r))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==n?void 0:n.substring(r))||"");null==l||l(i),L(i)}}),Bt&&P.default.createElement(Bt,{ref:V,theme:"snow",value:t,onChange:e=>{null==l||l(e),L(e),F()},onChangeSelection:()=>{F()},modules:I.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==j?void 0:j.length)&&P.default.createElement("div",{ref:Q,className:"mention-search-container",style:U},j.map(((e,t)=>P.default.createElement("div",{className:"mention-search-item "+(X===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),q(e.id,e.name)},onMouseEnter:()=>{_(t)}},P.default.createElement(x.UserAvatar,{className:"search-avatar",username:e.name,avatar:e.avatar}),P.default.createElement("div",null,P.default.createElement(r.Text,{size:"p2"},e.name),P.default.createElement(r.Text,{size:"p4",color:"#595959"},"@",e.username)))))))},exports.ShareBox=$t,exports.SharePopup=({trackingCategory:a,className:l,style:n,url:i,avatar:s,text:d,onClose:u})=>{const{data:{env:{isMarryBaby:p}}}=e.useContext(h.TogetherComponentGlobalContext),{t:m}=o.useTranslations(),[g,f]=e.useState(!1);return e.useEffect((()=>(c.toggleNoScroll(!0),setTimeout((()=>f(!0)),0),()=>c.toggleNoScroll(!1))),[]),P.default.createElement(t.Portal,null,P.default.createElement(Jt,{"data-is-marrybaby":p,className:l,style:n},P.default.createElement(Qt,{className:"share-popup",isOpen:g,onClose:u,heading:m("bottomBar.share")},p?P.default.createElement(r.Text,{className:"share-mb-text",size:"sm"},m("article.shareOn")):P.default.createElement("div",{className:"custom-share__header"},s&&P.default.createElement("div",{className:"custom-share__header-image"},P.default.createElement("img",{src:s,loading:"lazy"})),P.default.createElement("div",{className:"custom-share__header-info"},P.default.createElement(h.Heading,{tag:"h4"},d),P.default.createElement(r.Text,{className:"desc",size:"md"},i))),g&&P.default.createElement($t,{trackingCategory:a,shareUrl:i||("undefined"!=typeof window?window.location.href:""),title:d}))))},exports.SourceList=Po,exports.StyledArrowWrapper=ga,exports.StyledCardLink=Q,exports.StyledCardPost=Lo,exports.StyledCardPost$1=mo,exports.StyledCircleArrow=ha,exports.StyledCreateNewPost=st,exports.StyledCreatePostDescription=Lt,exports.StyledCreatePostTitle=Dt,exports.StyledError=ct,exports.StyledIcon=xa,exports.StyledImagePreviewContainer=ua,exports.StyledImagePreviewPopup=da,exports.StyledImagePreviewTopbar=pa,exports.StyledImagePreviewWrapper=ma,exports.StyledInner=ba,exports.StyledInputCommentBar=Xt,exports.StyledIsQuestion=dt,exports.StyledNotificationBar=ca,exports.StyledPopupDanger=Ht,exports.StyledPostImagePreview=sa,exports.StyledSocialLinkPreview=ya,exports.StyledSourceList=Mo,exports.StyledSubmitReportForm=ea,exports.StyledTopicSelectList=Ut,exports.StyledWrapper=wa,exports.TagTopic=t=>{var{topics:l=[],onClick:s,className:d,style:c,trackingCategory:u="Together",locale:p="vi-VN",classNames:m,styles:g,unstyled:v,shortenedNumber:b=3,shortenedStyle:x}=t,w=a.__rest(t,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:y}=o.useTranslations(),{classes:C}=ie(void 0,{name:"TagTopic",classNames:m,styles:g,unstyled:v}),{data:{env:{togetherBasePath:E}},action:{sanitizeFunction:k}}=e.useContext(h.TogetherComponentGlobalContext),[A,N]=e.useState(!x);return P.default.createElement("div",Object.assign({onClick:s,className:`${C.wrapper} ${d}`,style:c},w),(A?l:l.slice(0,b)).map(((e,t)=>{const a=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return P.default.createElement("a",{className:C.item,key:t,"data-event-category":u,"data-event-action":"Topic in Post Click","data-event-label":`${h.getCurrentBaseUrl(p)}${E}${e.url}`,href:e.isActive&&!e.isHidden?`${E}${e.url}/`:void 0},P.default.createElement(r.Text,{size:"p4"},P.default.createElement("span",{style:Object.assign({},a&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:a?`${f.format(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:n.DATE_FNS_LOCALE[p]})}${p===i.LOCALE.Vietnam?"/":" "}${null==e?void 0:e.dueDateYear}`:(null==k?void 0:k(e.name))||e.name}})))})),!A&&l.length>b&&P.default.createElement("a",{className:C.item,href:"#",onClick:e=>{e.preventDefault(),N(!0)}},P.default.createElement(r.Text,{size:"p4"},"+",y("tagTopic.moreTopics",{number:l.length-b}))))},exports.TogetherAuthConfigContext=G,exports.TogetherAuthConfigContextProvider=({children:e,defaultParams:t})=>P.default.createElement(G.Provider,{value:{defaultParams:t}},e),exports.TreePopoverMenu=me,exports.decodeMention=Et,exports.decodePostUrl=Ct,exports.encodePostContent=(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(pt,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(ut,((e,t,a)=>{var o;const r=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return r?`<a href="${r}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(gt,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Tt(e)),t),exports.getMentionIdsFromString=At,exports.highlightBadWords=Pt,exports.img=Zt,exports.removeBannedWordWrapper=Tt,exports.uploadAndGetSrc=(e,t,o)=>"string"==typeof e?Promise.resolve(e):a.__awaiter(void 0,void 0,void 0,(function*(){var a;const r=new FormData;if(e.type.startsWith("image/gif"))r.append("image",e);else{const t=yield Promise.resolve().then((function(){return S(require("browser-image-compression"))})),a=yield t.default(e,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});r.append("image",a)}const l=o?h.callApiWithAdminAuth:h.callApiWithAuth,n=yield l(h.getApiPath(o?h.ADMIN_PATHS.COMMENT.IMAGE_UPLOAD:h.PATHS.COMMENT.IMAGE_UPLOAD,{_locale:t}),"POST",{data:r});return(null===(a=null==n?void 0:n.data)||void 0===a?void 0:a.image)||""})),exports.useTogetherAuthRequiredAction=Z,exports.youtubeVidIdGetter=e=>{var t;if(!e.includes("youtu"))return"";return(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""};
|