@hhgtech/hhg-components 1.28.45 → 1.28.47

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.
Files changed (314) hide show
  1. package/build/animation-1e5b6297.js +81 -0
  2. package/build/babyGrowth.js +24 -24
  3. package/build/cache.js +1 -1
  4. package/build/care.js +1 -1
  5. package/build/components.js +1 -1
  6. package/build/{constants-eed0df85.js → constants-0b9aa2f4.js} +1 -1
  7. package/build/{constants-715f497a.js → constants-ded45618.js} +2 -2
  8. package/build/constants.js +1 -1
  9. package/build/{core-053d2b2b.js → core-d774c80a.js} +1 -1
  10. package/build/dataTransform-770a8af7.js +1 -0
  11. package/build/ecom.js +1 -1
  12. package/build/esm/animation-4d5baff8.js +81 -0
  13. package/build/esm/babyGrowth.js +38 -38
  14. package/build/esm/cache.js +1 -1
  15. package/build/esm/care.js +1 -1
  16. package/build/esm/components.js +1 -1
  17. package/build/esm/{constants-474a60fc.js → constants-7f54318a.js} +2 -2
  18. package/build/esm/{constants-995212e1.js → constants-d7c4fed6.js} +1 -1
  19. package/build/esm/constants.js +1 -1
  20. package/build/esm/{core-a9271475.js → core-539e7939.js} +1 -1
  21. package/build/esm/dataTransform-82022f0b.js +1 -0
  22. package/build/esm/ecom.js +1 -1
  23. package/build/esm/footer.js +1 -1
  24. package/build/esm/gAssets.js +1 -1
  25. package/build/esm/getDynamicHealthTool-4d3d11ac.js +1 -0
  26. package/build/esm/{getSocialList-2b54a130.js → getSocialList-1766c602.js} +1 -1
  27. package/build/esm/hooks.js +1 -1
  28. package/build/esm/i18n.js +1 -1
  29. package/build/esm/i18nV2.js +1 -1
  30. package/build/esm/index-0fd0a8fb.js +2748 -0
  31. package/build/esm/{index-4cc27c0a.js → index-156081e2.js} +9 -9
  32. package/build/esm/{index-2eaf28c4.js → index-1d068cf5.js} +1 -1
  33. package/build/esm/{index-ab03b9dd.js → index-1fce73b8.js} +1 -1
  34. package/build/esm/index-2f6fbc5e.js +375 -0
  35. package/build/esm/index-30ecb1e3.js +1 -0
  36. package/build/esm/index-5581ff57.js +1 -0
  37. package/build/esm/index-679dd359.js +1430 -0
  38. package/build/esm/{index-fdc4fb0f.js → index-72664e72.js} +1 -1
  39. package/build/esm/{index-a2dcf4e9.js → index-7b4c9ffd.js} +1 -1
  40. package/build/esm/index-8e3a85f0.js +50 -0
  41. package/build/esm/{index-1cfc85b4.js → index-924d8b45.js} +3 -3
  42. package/build/esm/index-98f238b2.js +1 -0
  43. package/build/esm/{index-7678ada1.js → index-9b020630.js} +1 -1
  44. package/build/esm/index-ac89ac70.js +137 -0
  45. package/build/esm/index-b51813fe.js +1 -0
  46. package/build/esm/index-bd5220da.js +1 -0
  47. package/build/esm/index-c51596b2.js +1 -0
  48. package/build/esm/index-cff19603.js +177 -0
  49. package/build/esm/index-d53f330a.js +1 -0
  50. package/build/esm/{index-cd710e7d.js → index-f09be292.js} +1 -1
  51. package/build/esm/index-f5ac3469.js +1 -0
  52. package/build/esm/{index-a454d80b.js → index-fcb7c05d.js} +1 -1
  53. package/build/esm/index.js +1 -1
  54. package/build/esm/{index.styled-4098b19f.js → index.styled-222b6ef8.js} +1 -1
  55. package/build/esm/index.styles-f450b969.js +839 -0
  56. package/build/esm/lead.js +1 -1
  57. package/build/esm/mantine.js +1 -1
  58. package/build/esm/misc.js +1 -1
  59. package/build/esm/navigation.js +1 -1
  60. package/build/esm/onboardingV2.js +34 -34
  61. package/build/esm/pwg.js +5 -5
  62. package/build/esm/{routing-d3019505.js → routing-fa27835c.js} +1 -1
  63. package/build/esm/subot.js +124 -124
  64. package/build/esm/together.js +1 -1
  65. package/build/esm/{types-56ff87b5.js → types-1779ff39.js} +10 -10
  66. package/build/esm/types-de0e0789.js +3004 -0
  67. package/build/esm/types.js +1 -1
  68. package/build/esm/useCategory-dc56ef34.js +1 -0
  69. package/build/esm/useHealthToolCache-09b61354.js +1 -0
  70. package/build/esm/{usePlacesAutocomplete-80551f6b.js → usePlacesAutocomplete-c2dd02dd.js} +1 -1
  71. package/build/esm/useTranslations-49e0430f.js +1 -0
  72. package/build/esm/utils-1550f4c2.js +1 -0
  73. package/build/esm/utils-ab3bd9a9.js +7 -0
  74. package/build/esm/{utils-9dae9f7b.js → utils-bc76e7d8.js} +2 -2
  75. package/build/esm/{utils-6577ea25.js → utils-ce8e4c84.js} +1 -1
  76. package/build/esm/vaccination.js +40 -40
  77. package/build/footer.js +1 -1
  78. package/build/gAssets.js +1 -1
  79. package/build/getDynamicHealthTool-91d3a539.js +1 -0
  80. package/build/{getSocialList-b951173d.js → getSocialList-95d4b1ab.js} +1 -1
  81. package/build/hooks.js +1 -1
  82. package/build/i18n.js +1 -1
  83. package/build/i18nV2.js +1 -1
  84. package/build/index-031eda4d.js +50 -0
  85. package/build/{index-f85e80c5.js → index-04bf4b9a.js} +1 -1
  86. package/build/index-087d7573.js +1 -0
  87. package/build/{index-f1338b36.js → index-0a35e29e.js} +1 -1
  88. package/build/{index-5f2adc06.js → index-0e2baf55.js} +1 -1
  89. package/build/index-1c74e473.js +2748 -0
  90. package/build/{index-6e685d2b.js → index-20b8b28c.js} +1 -1
  91. package/build/index-22f6821f.js +177 -0
  92. package/build/{index-d14172a4.js → index-3183ed6e.js} +1 -1
  93. package/build/index-3c0d0730.js +375 -0
  94. package/build/index-4198e282.js +1 -0
  95. package/build/index-5e65f738.js +137 -0
  96. package/build/{index-b23382c3.js → index-84f168eb.js} +1 -1
  97. package/build/{index-72cfe602.js → index-8b4d8b74.js} +4 -4
  98. package/build/{index-718b4bad.js → index-8d147028.js} +3 -3
  99. package/build/{index-fe775c96.js → index-9f2fce62.js} +1 -1
  100. package/build/{index-b3478b6c.js → index-a1e30b09.js} +1 -1
  101. package/build/index-abe7bb48.js +1430 -0
  102. package/build/index-afd5d772.js +1 -0
  103. package/build/index-c53c2cf6.js +1 -0
  104. package/build/index-ebed7399.js +1 -0
  105. package/build/{index-cdf087ee.js → index-f56af2a1.js} +1 -1
  106. package/build/index-f80db37d.js +1 -0
  107. package/build/index.js +1 -1
  108. package/build/{index.styled-2bb5f5a2.js → index.styled-250b6af4.js} +1 -1
  109. package/build/index.styles-f2358064.js +839 -0
  110. package/build/lead.js +1 -1
  111. package/build/mantine.js +1 -1
  112. package/build/misc.js +1 -1
  113. package/build/navigation.js +1 -1
  114. package/build/onboardingV2.js +34 -34
  115. package/build/pwg.js +2 -2
  116. package/build/{routing-9c9a4f25.js → routing-ed60b4e3.js} +1 -1
  117. package/build/subot.js +123 -123
  118. package/build/together.js +1 -1
  119. package/build/types-2602cb14.js +3004 -0
  120. package/build/{types-adecb2ce.js → types-662fa8fb.js} +10 -10
  121. package/build/types.js +1 -1
  122. package/build/useCategory-f58f3f7e.js +1 -0
  123. package/build/useHealthToolCache-d78d2251.js +1 -0
  124. package/build/{usePlacesAutocomplete-39be4478.js → usePlacesAutocomplete-11729974.js} +1 -1
  125. package/build/{useTranslations-1ddacded.js → useTranslations-eef7f548.js} +1 -1
  126. package/build/{utils-a5d09d21.js → utils-5af37bc5.js} +1 -1
  127. package/build/{utils-871f6c88.js → utils-74e9f3ab.js} +1 -1
  128. package/build/utils-adde2380.js +1 -0
  129. package/build/utils-ec00b8cb.js +1 -0
  130. package/build/vaccination.js +33 -33
  131. package/package.json +3 -2
  132. package/build/dataTransform-d5d1a86d.js +0 -1
  133. package/build/esm/dataTransform-f4d63a0a.js +0 -1
  134. package/build/esm/getDynamicHealthTool-9b662a1a.js +0 -1
  135. package/build/esm/index-303e2009.js +0 -1
  136. package/build/esm/index-3c4ac2ae.js +0 -1
  137. package/build/esm/index-4bc5ecbb.js +0 -1
  138. package/build/esm/index-55d2faa0.js +0 -1
  139. package/build/esm/index-608b4a88.js +0 -177
  140. package/build/esm/index-6f066011.js +0 -1
  141. package/build/esm/index-95a46cf3.js +0 -1
  142. package/build/esm/index-993a5f79.js +0 -1
  143. package/build/esm/index-baaa911b.js +0 -1
  144. package/build/esm/index-be8e7751.js +0 -1
  145. package/build/esm/index-cc519ac7.js +0 -3122
  146. package/build/esm/index-d17ea22d.js +0 -1
  147. package/build/esm/index-d343bc50.js +0 -1
  148. package/build/esm/index-ff10bc28.js +0 -1
  149. package/build/esm/index.styled-156505c7.js +0 -1430
  150. package/build/esm/index.styled-3e11e657.js +0 -3140
  151. package/build/esm/index.styled-be084b87.js +0 -50
  152. package/build/esm/index.styles-caebb95e.js +0 -846
  153. package/build/esm/screenSizeContext-8e3cd726.js +0 -81
  154. package/build/esm/types-f3a821e7.js +0 -1
  155. package/build/esm/useCategory-e47c3929.js +0 -1
  156. package/build/esm/useHealthToolCache-4a39e9dc.js +0 -1
  157. package/build/esm/useRafState-8fe79e7a.js +0 -1
  158. package/build/esm/useTranslations-2b415154.js +0 -1
  159. package/build/getDynamicHealthTool-ecfb21b0.js +0 -1
  160. package/build/index-0988dfe4.js +0 -1
  161. package/build/index-0f3e6076.js +0 -1
  162. package/build/index-10d9fdff.js +0 -177
  163. package/build/index-24113bb4.js +0 -1
  164. package/build/index-3489608d.js +0 -1
  165. package/build/index-4bfad06d.js +0 -1
  166. package/build/index-7b85f299.js +0 -1
  167. package/build/index-901812ad.js +0 -3122
  168. package/build/index-c22d32f6.js +0 -1
  169. package/build/index-d74ab92f.js +0 -1
  170. package/build/index-db0da298.js +0 -1
  171. package/build/index-f4356d3b.js +0 -1
  172. package/build/index.styled-39310ce9.js +0 -50
  173. package/build/index.styled-3a1748a5.js +0 -3140
  174. package/build/index.styled-75539e3d.js +0 -1430
  175. package/build/index.styles-d3c65e64.js +0 -846
  176. package/build/screenSizeContext-83eeed99.js +0 -81
  177. package/build/types-582a67ed.js +0 -1
  178. package/build/useCategory-957ea2a8.js +0 -1
  179. package/build/useHealthToolCache-260b51e2.js +0 -1
  180. package/build/useRafState-8a41d548.js +0 -1
  181. /package/build/{BMI_BOYS.percentile.monthly-3ccdbf2f.js → BMI_BOYS.percentile.monthly-b574351a.js} +0 -0
  182. /package/build/{BMI_BOYS.percentile.weekly-003704d5.js → BMI_BOYS.percentile.weekly-ad058945.js} +0 -0
  183. /package/build/{BMI_BOYS.percentile.yearly-51f6c930.js → BMI_BOYS.percentile.yearly-8ada8234.js} +0 -0
  184. /package/build/{BMI_BOYS.zscore.monthly-05504085.js → BMI_BOYS.zscore.monthly-f16e149c.js} +0 -0
  185. /package/build/{BMI_BOYS.zscore.weekly-2a93a8db.js → BMI_BOYS.zscore.weekly-776e513d.js} +0 -0
  186. /package/build/{BMI_BOYS.zscore.yearly-37291e62.js → BMI_BOYS.zscore.yearly-3d6a4a73.js} +0 -0
  187. /package/build/{BMI_GIRLS.percentile.monthly-97288e63.js → BMI_GIRLS.percentile.monthly-10009b9f.js} +0 -0
  188. /package/build/{BMI_GIRLS.percentile.weekly-c701d6ff.js → BMI_GIRLS.percentile.weekly-6557eb44.js} +0 -0
  189. /package/build/{BMI_GIRLS.percentile.yearly-edee3575.js → BMI_GIRLS.percentile.yearly-3f4acf36.js} +0 -0
  190. /package/build/{BMI_GIRLS.zscore.monthly-0ac77300.js → BMI_GIRLS.zscore.monthly-6a304df3.js} +0 -0
  191. /package/build/{BMI_GIRLS.zscore.weekly-f726c4f9.js → BMI_GIRLS.zscore.weekly-e0d6db84.js} +0 -0
  192. /package/build/{BMI_GIRLS.zscore.yearly-c1af9dbd.js → BMI_GIRLS.zscore.yearly-a6ec380e.js} +0 -0
  193. /package/build/{ChevronDown-e26b6333.js → ChevronDown-a8966000.js} +0 -0
  194. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-c1dbc6d4.js → HEAD CIRCUM_BOYS.percentile.monthly-71a87239.js} +0 -0
  195. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9c97d194.js → HEAD CIRCUM_BOYS.percentile.weekly-b862aacb.js} +0 -0
  196. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-84f770fb.js → HEAD CIRCUM_BOYS.percentile.yearly-13eada26.js} +0 -0
  197. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-8522b577.js → HEAD CIRCUM_BOYS.zscore.monthly-f9c4f89e.js} +0 -0
  198. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d05b4957.js → HEAD CIRCUM_BOYS.zscore.weekly-4e1a4178.js} +0 -0
  199. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d1d2d682.js → HEAD CIRCUM_BOYS.zscore.yearly-554a8878.js} +0 -0
  200. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-bc7f8e45.js → HEAD CIRCUM_GIRLS.percentile.monthly-2910870c.js} +0 -0
  201. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-e24f18fa.js → HEAD CIRCUM_GIRLS.percentile.weekly-0f14fedf.js} +0 -0
  202. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-65fe9b8f.js → HEAD CIRCUM_GIRLS.percentile.yearly-596b0da0.js} +0 -0
  203. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-cc51585e.js → HEAD CIRCUM_GIRLS.zscore.monthly-69ae9a0c.js} +0 -0
  204. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-0cdef99a.js → HEAD CIRCUM_GIRLS.zscore.weekly-114e70a3.js} +0 -0
  205. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-b4df0cb2.js → HEAD CIRCUM_GIRLS.zscore.yearly-b6747ec7.js} +0 -0
  206. /package/build/{HEIGHT_BOYS.percentile.monthly-42701f3c.js → HEIGHT_BOYS.percentile.monthly-cb959489.js} +0 -0
  207. /package/build/{HEIGHT_BOYS.percentile.weekly-dde65fbd.js → HEIGHT_BOYS.percentile.weekly-7955c34e.js} +0 -0
  208. /package/build/{HEIGHT_BOYS.percentile.yearly-00d00cf7.js → HEIGHT_BOYS.percentile.yearly-b073f41f.js} +0 -0
  209. /package/build/{HEIGHT_BOYS.zscore.monthly-9b22b188.js → HEIGHT_BOYS.zscore.monthly-1ae80a89.js} +0 -0
  210. /package/build/{HEIGHT_BOYS.zscore.weekly-1e042b69.js → HEIGHT_BOYS.zscore.weekly-cd4bc068.js} +0 -0
  211. /package/build/{HEIGHT_BOYS.zscore.yearly-0c232fd2.js → HEIGHT_BOYS.zscore.yearly-7eb6af8e.js} +0 -0
  212. /package/build/{HEIGHT_GIRLS.percentile.monthly-1dc63069.js → HEIGHT_GIRLS.percentile.monthly-d2959962.js} +0 -0
  213. /package/build/{HEIGHT_GIRLS.percentile.weekly-4b58bd05.js → HEIGHT_GIRLS.percentile.weekly-99981d42.js} +0 -0
  214. /package/build/{HEIGHT_GIRLS.percentile.yearly-9fc93f07.js → HEIGHT_GIRLS.percentile.yearly-d1d13641.js} +0 -0
  215. /package/build/{HEIGHT_GIRLS.zscore.monthly-35400da4.js → HEIGHT_GIRLS.zscore.monthly-d9a63188.js} +0 -0
  216. /package/build/{HEIGHT_GIRLS.zscore.weekly-dd1f44e2.js → HEIGHT_GIRLS.zscore.weekly-d58b3339.js} +0 -0
  217. /package/build/{HEIGHT_GIRLS.zscore.yearly-a69b75ca.js → HEIGHT_GIRLS.zscore.yearly-ae58b0a3.js} +0 -0
  218. /package/build/{Subot-695ffc58.js → Subot-511ff255.js} +0 -0
  219. /package/build/{Visible-72e550ed.js → Visible-338d5d3b.js} +0 -0
  220. /package/build/{WEIGHT_BOYS.percentile.monthly-2dea455a.js → WEIGHT_BOYS.percentile.monthly-3687233c.js} +0 -0
  221. /package/build/{WEIGHT_BOYS.percentile.weekly-184f141e.js → WEIGHT_BOYS.percentile.weekly-c0915786.js} +0 -0
  222. /package/build/{WEIGHT_BOYS.percentile.yearly-c9e8aaf8.js → WEIGHT_BOYS.percentile.yearly-898b748c.js} +0 -0
  223. /package/build/{WEIGHT_BOYS.zscore.monthly-c9f03466.js → WEIGHT_BOYS.zscore.monthly-e47a72be.js} +0 -0
  224. /package/build/{WEIGHT_BOYS.zscore.weekly-413af608.js → WEIGHT_BOYS.zscore.weekly-23cc874f.js} +0 -0
  225. /package/build/{WEIGHT_BOYS.zscore.yearly-fd8ddd34.js → WEIGHT_BOYS.zscore.yearly-2c523e95.js} +0 -0
  226. /package/build/{WEIGHT_GIRLS.percentile.monthly-b78e414e.js → WEIGHT_GIRLS.percentile.monthly-232c03ec.js} +0 -0
  227. /package/build/{WEIGHT_GIRLS.percentile.weekly-6979e7ca.js → WEIGHT_GIRLS.percentile.weekly-363f6163.js} +0 -0
  228. /package/build/{WEIGHT_GIRLS.percentile.yearly-be5d12e7.js → WEIGHT_GIRLS.percentile.yearly-09c2db7a.js} +0 -0
  229. /package/build/{WEIGHT_GIRLS.zscore.monthly-28299624.js → WEIGHT_GIRLS.zscore.monthly-996f2f01.js} +0 -0
  230. /package/build/{WEIGHT_GIRLS.zscore.weekly-8584439e.js → WEIGHT_GIRLS.zscore.weekly-1c937534.js} +0 -0
  231. /package/build/{WEIGHT_GIRLS.zscore.yearly-2e04a2a2.js → WEIGHT_GIRLS.zscore.yearly-ab136277.js} +0 -0
  232. /package/build/{cookieHelper-2e8bb9fa.js → cookieHelper-91788da6.js} +0 -0
  233. /package/build/esm/{BMI_BOYS.percentile.monthly-486f83ee.js → BMI_BOYS.percentile.monthly-f3616831.js} +0 -0
  234. /package/build/esm/{BMI_BOYS.percentile.weekly-fd3c15c3.js → BMI_BOYS.percentile.weekly-e94f9b0c.js} +0 -0
  235. /package/build/esm/{BMI_BOYS.percentile.yearly-da6eb7ec.js → BMI_BOYS.percentile.yearly-8f7ac99b.js} +0 -0
  236. /package/build/esm/{BMI_BOYS.zscore.monthly-62d445f2.js → BMI_BOYS.zscore.monthly-54be7428.js} +0 -0
  237. /package/build/esm/{BMI_BOYS.zscore.weekly-f67c90eb.js → BMI_BOYS.zscore.weekly-6c12aa9f.js} +0 -0
  238. /package/build/esm/{BMI_BOYS.zscore.yearly-b1a41fe8.js → BMI_BOYS.zscore.yearly-1c23b3d9.js} +0 -0
  239. /package/build/esm/{BMI_GIRLS.percentile.monthly-66a216cc.js → BMI_GIRLS.percentile.monthly-8a502893.js} +0 -0
  240. /package/build/esm/{BMI_GIRLS.percentile.weekly-b46429d6.js → BMI_GIRLS.percentile.weekly-fa839bec.js} +0 -0
  241. /package/build/esm/{BMI_GIRLS.percentile.yearly-6a6af348.js → BMI_GIRLS.percentile.yearly-a4566ca8.js} +0 -0
  242. /package/build/esm/{BMI_GIRLS.zscore.monthly-41bb8c08.js → BMI_GIRLS.zscore.monthly-aab4d85c.js} +0 -0
  243. /package/build/esm/{BMI_GIRLS.zscore.weekly-04eb8b89.js → BMI_GIRLS.zscore.weekly-f8488af5.js} +0 -0
  244. /package/build/esm/{BMI_GIRLS.zscore.yearly-099feda2.js → BMI_GIRLS.zscore.yearly-a4d7a630.js} +0 -0
  245. /package/build/esm/{ChevronDown-c2b4123b.js → ChevronDown-7443ba17.js} +0 -0
  246. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-53d11c4f.js → HEAD CIRCUM_BOYS.percentile.monthly-dd491a3d.js} +0 -0
  247. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-19dae757.js → HEAD CIRCUM_BOYS.percentile.weekly-9a4cc487.js} +0 -0
  248. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e744f2ee.js → HEAD CIRCUM_BOYS.percentile.yearly-5ff7c492.js} +0 -0
  249. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-12b76190.js → HEAD CIRCUM_BOYS.zscore.monthly-921be2d2.js} +0 -0
  250. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a62a347c.js → HEAD CIRCUM_BOYS.zscore.weekly-f5d468d9.js} +0 -0
  251. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-d1c96a90.js → HEAD CIRCUM_BOYS.zscore.yearly-5199b4a7.js} +0 -0
  252. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-52e91c35.js → HEAD CIRCUM_GIRLS.percentile.monthly-8679c7bc.js} +0 -0
  253. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-51fd4b94.js → HEAD CIRCUM_GIRLS.percentile.weekly-9e2dcb2b.js} +0 -0
  254. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-fb3c718e.js → HEAD CIRCUM_GIRLS.percentile.yearly-c6203100.js} +0 -0
  255. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8d54ac23.js → HEAD CIRCUM_GIRLS.zscore.monthly-856a5b1e.js} +0 -0
  256. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-17722148.js → HEAD CIRCUM_GIRLS.zscore.weekly-0783f118.js} +0 -0
  257. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-0849bdb2.js → HEAD CIRCUM_GIRLS.zscore.yearly-a84257a0.js} +0 -0
  258. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-9219856c.js → HEIGHT_BOYS.percentile.monthly-788fb5b4.js} +0 -0
  259. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f257a74f.js → HEIGHT_BOYS.percentile.weekly-f5190462.js} +0 -0
  260. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3ed1a065.js → HEIGHT_BOYS.percentile.yearly-afe4fd67.js} +0 -0
  261. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a58e6f2e.js → HEIGHT_BOYS.zscore.monthly-bb98f05e.js} +0 -0
  262. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-af59d81d.js → HEIGHT_BOYS.zscore.weekly-dfb95358.js} +0 -0
  263. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d64544e6.js → HEIGHT_BOYS.zscore.yearly-055fefcb.js} +0 -0
  264. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-58d712e2.js → HEIGHT_GIRLS.percentile.monthly-441d5eec.js} +0 -0
  265. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f5718378.js → HEIGHT_GIRLS.percentile.weekly-df673b20.js} +0 -0
  266. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-306e09e7.js → HEIGHT_GIRLS.percentile.yearly-b8635e96.js} +0 -0
  267. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ad472813.js → HEIGHT_GIRLS.zscore.monthly-8350897b.js} +0 -0
  268. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e53d92d3.js → HEIGHT_GIRLS.zscore.weekly-820a7ef3.js} +0 -0
  269. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-3e6e23aa.js → HEIGHT_GIRLS.zscore.yearly-b2f2d906.js} +0 -0
  270. /package/build/esm/{Subot-dc774172.js → Subot-3d309d90.js} +0 -0
  271. /package/build/esm/{Visible-302a3e45.js → Visible-45ab1e13.js} +0 -0
  272. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-49a7ae53.js → WEIGHT_BOYS.percentile.monthly-566b72c0.js} +0 -0
  273. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-63420203.js → WEIGHT_BOYS.percentile.weekly-ae3bef15.js} +0 -0
  274. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-26609ac2.js → WEIGHT_BOYS.percentile.yearly-fd72f182.js} +0 -0
  275. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-cb16306f.js → WEIGHT_BOYS.zscore.monthly-4ebeca1a.js} +0 -0
  276. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-291be10f.js → WEIGHT_BOYS.zscore.weekly-1edeedcc.js} +0 -0
  277. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6a25a7fa.js → WEIGHT_BOYS.zscore.yearly-b42da93c.js} +0 -0
  278. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-d11ea01c.js → WEIGHT_GIRLS.percentile.monthly-ab099390.js} +0 -0
  279. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-93c36ba6.js → WEIGHT_GIRLS.percentile.weekly-e604f0e1.js} +0 -0
  280. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-5fc6d885.js → WEIGHT_GIRLS.percentile.yearly-9575be98.js} +0 -0
  281. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0f6fd15b.js → WEIGHT_GIRLS.zscore.monthly-bddddbe3.js} +0 -0
  282. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-ea9c19e1.js → WEIGHT_GIRLS.zscore.weekly-f255cbfc.js} +0 -0
  283. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9665443f.js → WEIGHT_GIRLS.zscore.yearly-a99d0fd7.js} +0 -0
  284. /package/build/esm/{cookieHelper-d6490b00.js → cookieHelper-0acd4fc8.js} +0 -0
  285. /package/build/esm/{index-379f6571.js → index-550480ee.js} +0 -0
  286. /package/build/esm/{index-a59b0ec0.js → index-5dc45c1c.js} +0 -0
  287. /package/build/esm/{index-d5fe6c4e.js → index-a6ddd645.js} +0 -0
  288. /package/build/esm/{isProduction-7b1509aa.js → isProduction-135c9280.js} +0 -0
  289. /package/build/esm/{localizeNumberFormat-b4e337ed.js → localizeNumberFormat-883148fd.js} +0 -0
  290. /package/build/esm/{normalizeLink-7bed1319.js → normalizeLink-75e03b67.js} +0 -0
  291. /package/build/esm/{number-eb39d16c.js → number-73b198fe.js} +0 -0
  292. /package/build/esm/{paths-2e45cb1b.js → paths-61361575.js} +0 -0
  293. /package/build/esm/{theme-adbee273.js → theme-0d3c8845.js} +0 -0
  294. /package/build/esm/{translationsContext-4623d384.js → translationsContext-ee7ec6eb.js} +0 -0
  295. /package/build/esm/{tslib.es6-693de4fd.js → tslib.es6-c43c14a5.js} +0 -0
  296. /package/build/esm/{types-054bf1d5.js → types-745b966e.js} +0 -0
  297. /package/build/esm/{useIsInit-7d5bf403.js → useIsInit-d5727c47.js} +0 -0
  298. /package/build/esm/{useOutsideClick-5c82f669.js → useOutsideClick-e4f22be5.js} +0 -0
  299. /package/build/esm/{useScrollbarSize-cfeb4651.js → useScrollbarSize-0d367255.js} +0 -0
  300. /package/build/{index-346123fd.js → index-52b005ff.js} +0 -0
  301. /package/build/{index-53fb3b00.js → index-983a543a.js} +0 -0
  302. /package/build/{index-408e11c4.js → index-f2e5a43e.js} +0 -0
  303. /package/build/{isProduction-87f95c7d.js → isProduction-8a3929cb.js} +0 -0
  304. /package/build/{localizeNumberFormat-e7196b4e.js → localizeNumberFormat-d00e3203.js} +0 -0
  305. /package/build/{normalizeLink-245ad49c.js → normalizeLink-e4d8df7b.js} +0 -0
  306. /package/build/{number-5c9d6f63.js → number-9930fc27.js} +0 -0
  307. /package/build/{paths-3287ee93.js → paths-ed97730a.js} +0 -0
  308. /package/build/{theme-785c6f0c.js → theme-0bb94193.js} +0 -0
  309. /package/build/{translationsContext-efee8d50.js → translationsContext-e09b4f33.js} +0 -0
  310. /package/build/{tslib.es6-ef1f81bf.js → tslib.es6-293338f5.js} +0 -0
  311. /package/build/{types-0321e2cc.js → types-140f0c7d.js} +0 -0
  312. /package/build/{useIsInit-311b057a.js → useIsInit-f9337a25.js} +0 -0
  313. /package/build/{useOutsideClick-7ddf4eaa.js → useOutsideClick-ac461ca7.js} +0 -0
  314. /package/build/{useScrollbarSize-6947aaa0.js → useScrollbarSize-9413af1b.js} +0 -0
@@ -0,0 +1,3004 @@
1
+ "use strict";var e=require("react"),t=require("./index-c53c2cf6.js");require("./translationsContext-e09b4f33.js"),require("string-format");var a=require("./utils-adde2380.js"),l=require("./tslib.es6-293338f5.js"),o=require("@mantine/core"),n=require("./index-5e65f738.js"),i=require("./useTranslations-eef7f548.js"),r=require("innertext"),s=require("./theme-0bb94193.js"),d=require("./index-8b4d8b74.js");require("@mantine/dates");var c=require("./index-3183ed6e.js"),u=require("./Subot-511ff255.js"),m=require("./index-04bf4b9a.js");require("@mantine/hooks");var p=require("./index-afd5d772.js"),g=require("./index-8d147028.js"),h=require("./index-84f168eb.js"),f=require("lodash/debounce"),v=require("react-contenteditable"),b=require("./index-9f2fce62.js"),x=require("./index.styles-f2358064.js"),y=require("./cookieHelper-91788da6.js"),w=require("./utils-ec00b8cb.js"),C=require("react-dom"),E=require("styled-components"),k=require("./number-9930fc27.js"),A=require("date-fns"),N=require("dayjs"),T=require("dayjs/plugin/relativeTime"),S=require("./index-a1e30b09.js"),P=require("./routing-ed60b4e3.js");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function M(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("./constants-ded45618.js"),require("./utils-74e9f3ab.js"),require("./index.styled-250b6af4.js"),require("./index-52b005ff.js");var z=M(e),L=I(e),B=I(r),R=I(f),O=I(v),j=M(C),F=I(E),D=I(N),V=I(T);const U=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"})),_=e.createContext({}),H=({children:e,defaultParams:t})=>L.default.createElement(_.Provider,{value:{defaultParams:t}},e),W=t=>{const{data:{userInfo:l,env:{togetherBasePath:o}}}=e.useContext(a.TogetherComponentGlobalContext),{defaultParams:n}=e.useContext(_)||{},i=null==l?void 0:l.id,r=l&&"number"==typeof l.communities_interacted&&0===l.communities_interacted;return{authActionWrapper:(e,l)=>{const s=Object.assign(Object.assign(Object.assign({},n),t),l);if(!i||r){i||y.deleteCookie(a.BEARER_TOKEN_COOKIE),(null==s?void 0:s._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(s._joinCommunityIds).filter(Boolean))))),null==s||delete s._joinCommunityIds),(null==s?void 0:s._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(s._joinTopicIds).filter(Boolean))))),null==s||delete s._joinTopicIds);const e=(null==s?void 0:s._location)||window.location.href;return null==s||delete s._location,window.location.href=a.getUrlToSignUp(e,s,o),null}return e&&e()},params:Object.assign(Object.assign({},n),t)}},q=F.default.div`
2
+ .link-info-container {
3
+ padding: 0.5rem 1rem;
4
+ background: ${e=>e.color||"#f4faff"};
5
+ }
6
+ .link-image-wrapper {
7
+ position: relative;
8
+ overflow: hidden;
9
+ width: 100%;
10
+ padding-top: min(280px, 56.25%);
11
+ .link-image-blur {
12
+ position: absolute;
13
+ top: 50%;
14
+ left: 50%;
15
+ width: 110%;
16
+ height: 110%;
17
+ /* Add the blur effect */
18
+ -webkit-filter: blur(8px);
19
+ filter: blur(8px);
20
+ object-fit: cover;
21
+ object-position: center;
22
+ opacity: 0.8;
23
+ transform: translate(-50%, -50%);
24
+ }
25
+ .link-image {
26
+ position: absolute;
27
+ top: 0;
28
+ left: 0;
29
+ width: 100%;
30
+ height: 100%;
31
+ object-fit: contain;
32
+ object-position: center;
33
+ }
34
+ }
35
+ a {
36
+ text-decoration: none;
37
+ }
38
+ &[data-is-marrybaby='true'] {
39
+ overflow: hidden;
40
+ border-radius: 1rem;
41
+ .link-info-container {
42
+ padding-bottom: 1rem;
43
+ p {
44
+ color: #2661ad;
45
+ }
46
+ .link-logo {
47
+ max-width: 2rem;
48
+ height: 13px;
49
+ margin-right: 4px;
50
+ object-fit: contain;
51
+ vertical-align: middle;
52
+ }
53
+ }
54
+ .link-image-wrapper {
55
+ padding-top: min(360px, 56.25%);
56
+ .link-image {
57
+ object-fit: cover;
58
+ }
59
+ }
60
+ }
61
+ `,G=({title:n,url:i,image:r,logo:s,className:d,style:c,noRefetch:u})=>{const{data:{locale:m,env:{isMarryBaby:p}}}=e.useContext(a.TogetherComponentGlobalContext),[g,h]=e.useState(!1),f=o.useMantineTheme(),v=e.useRef(u);v.current=u;const[b,y]=e.useState(null);e.useEffect((()=>{l.__awaiter(void 0,void 0,void 0,(function*(){if(!v.current){if(!i)return y(null);y((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),a.callApi(a.getApiPath(a.PATHS.FETCH_PREVIEW,{_locale:m}),"POST",{data:{link:i},headers:{"Content-Type":"application/json"}}).then((e=>{var t,a,l;h(!1),y({title:null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.title,url:i,image:(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.image)||(null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.logo)})})).catch((()=>{y(null)}))}}))}),[i]);const w=(null==b?void 0:b.image)||r,C=(null==b?void 0:b.title)||n,E=(null==b?void 0:b.logo)||s,k=(null==b?void 0:b.url)||i,A=k.replace("http://","").replace("https://","").split(/[/?#]/)[0],N=e.useRef(!1);return L.default.createElement(q,{"data-is-marrybaby":p,className:`${d} no-replace-click`,style:c,color:f.colors[f.primaryColor][0]},L.default.createElement("a",{href:k,target:"_blank",rel:"noreferrer"},w&&L.default.createElement("div",{className:"link-image-wrapper"},!p&&L.default.createElement("img",{className:"link-image-blur",src:w,onError:e=>{N.current||(N.current=!0,e.currentTarget.src=a.DEFAULT_IMG)},loading:"lazy"}),L.default.createElement("img",{className:"link-image",src:w,onError:e=>{N.current||(N.current=!0,e.currentTarget.src=a.DEFAULT_IMG)},loading:"lazy"})),L.default.createElement("div",{className:"link-info-container"},L.default.createElement(t.Text,{size:"n1"},p&&E&&!g&&L.default.createElement("img",{className:"link-logo",src:E,onError:()=>h(!0),loading:"lazy"}),A),L.default.createElement(x.Heading,{tag:"h6"},C))))},Z=e.createContext({});var Q="vvR-m49";const X=({children:t,className:a=""})=>{const{isReplied:l,trackingCategory:o,trackingLabel:n,onLikeClick:i}=e.useContext(Z);return L.default.createElement("div",{className:`${Q} ${a}`,"data-event-category":o,"data-event-action":l?"Like Comment Click":"Like Post Click","data-event-label":n,onClick:()=>{null==i||i()}},t)},K=({children:t,className:a=""})=>{const{trackingCategory:l,trackingLabel:o,onShareClick:n}=e.useContext(Z);return L.default.createElement("div",{className:`${Q} ${a}`,onClick:()=>{null==n||n()},"data-event-category":l,"data-event-action":"Share Icon Click","data-event-label":o},t)},$=({children:t,className:a=""})=>{const{isReplied:l,trackingCategory:o,trackingLabel:n,onCommentClick:i}=e.useContext(Z);return L.default.createElement("div",{className:`${Q} ${a}`,"data-event-category":o,"data-event-action":l?"Reply Comment Click":"Comment Text Click","data-event-label":n,onClick:e=>{e.preventDefault(),e.stopPropagation(),null==i||i()}},t)};var Y,J="UhiT4m5",ee="oEfeTkV",te="OlbikxJ",ae="_9GXHCn3",le="HCsrR0N",oe="MV3lNuh";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(Y||(Y={}));const ne=o=>{var{type:n,viewCount:r,loveCount:d=0,replyCount:c=0,replyPadding:u,liked:m,isReplied:p,onCommentClick:g,onLikeClick:h,onShareClick:f,className:v,style:b,hideCommentIcon:x,showingMostEngaging:y,isMarryBaby:w,hasShare:C=!0,hasCountLike:E=!0,trackingCategory:A="Together",trackingLabel:N="",children:T}=o,S=l.__rest(o,["type","viewCount","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:P}}}=e.useContext(a.TogetherComponentGlobalContext),I=Boolean(w)?w:P,{t:M}=i.useTranslations();return L.default.createElement(Z.Provider,{value:{liked:m,loveCount:d,trackingCategory:A,trackingLabel:N,isReplied:p,onLikeClick:h,onShareClick:f,onCommentClick:g}},T||L.default.createElement("div",Object.assign({className:`${J} ${v}`,"data-show-most-engaging":y,"data-type":n===Y.post?"post":"reply","data-reply-padding":n===Y.reply&&u,"data-is-marrybaby":I,style:b},S),L.default.createElement("div",{className:ee},L.default.createElement("div",{className:te},L.default.createElement(X,{className:le},L.default.createElement(t.Text,{className:ae,size:"p3",as:"div"},L.default.createElement(t.Heart,{className:"txt-icon",isMarryBaby:I,isSolid:m,color:m?I?s.theme.mbColors.pink:s.theme.colors.red800:"#737373"}),E&&L.default.createElement("div",{className:oe},d))),C&&L.default.createElement(K,{className:le},L.default.createElement(t.Text,{size:"p3",className:ae,as:"div"},L.default.createElement(t.Icon.Share,{isMarryBaby:I}))),void 0!==r&&L.default.createElement(t.Text,{size:"p3",className:ae,as:"div"},L.default.createElement(t.Icon.Eye,{isMarryBaby:I}),L.default.createElement("div",{className:oe},k.abbreviateNumber(r)))),!x&&L.default.createElement($,{className:le},L.default.createElement(t.Text,{size:"p3",className:ae,as:"div"},p?L.default.createElement(t.Icon.Reply,{className:"txt-icon"}):L.default.createElement(t.Icon.Comment,{className:"txt-icon",isMarryBaby:I}),p?M("cardReactions.reply"):L.default.createElement("div",{className:oe},M("post.commentCount",{count:c})))))))};ne.LikeWrapper=X,ne.ShareWrapper=K,ne.CommentWrapper=$;const ie=o.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:{}}))),re=o=>{var{topics:n=[],onClick:r,className:s,style:d,trackingCategory:m="Together",locale:p="vi-VN",classNames:g,styles:h,unstyled:f,shortenedNumber:v=3,shortenedStyle:b}=o,x=l.__rest(o,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:y}=i.useTranslations(),{classes:w}=ie(void 0,{name:"TagTopic",classNames:g,styles:h,unstyled:f}),{data:{env:{togetherBasePath:C}},action:{sanitizeFunction:E}}=e.useContext(a.TogetherComponentGlobalContext),[k,N]=e.useState(!b);return L.default.createElement("div",Object.assign({onClick:r,className:`${w.wrapper} ${s}`,style:d},x),(k?n:n.slice(0,v)).map(((e,l)=>{const o=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return L.default.createElement("a",{className:w.item,key:l,"data-event-category":m,"data-event-action":"Topic in Post Click","data-event-label":`${a.getCurrentBaseUrl(p)}${C}${e.url}`,href:e.isActive&&!e.isHidden?`${C}${e.url}/`:void 0},L.default.createElement(t.Text,{size:"p4"},L.default.createElement("span",{style:Object.assign({},o&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:o?`${A.format(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:c.DATE_FNS_LOCALE[p]})}${p===u.LOCALE.Vietnam?"/":" "}${null==e?void 0:e.dueDateYear}`:(null==E?void 0:E(e.name))||e.name}})))})),!k&&n.length>v&&L.default.createElement("a",{className:w.item,href:"#",onClick:e=>{e.preventDefault(),N(!0)}},L.default.createElement(t.Text,{size:"p4"},"+",y("tagTopic.moreTopics",{number:n.length-v}))))},se=F.default.div`
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: space-between;
65
+ padding: 16px;
66
+ cursor: pointer;
67
+ &[data-color='gray'] {
68
+ background: ${s.theme.colors.neutral50};
69
+ }
70
+ &[data-color='white'] {
71
+ border-bottom: 1px solid #e4e8ec;
72
+ background: ${s.theme.colors.white};
73
+ }
74
+
75
+ .popover-menu__btn {
76
+ display: flex;
77
+ min-width: 2rem;
78
+ height: 2rem;
79
+ align-items: center;
80
+ padding: 8px 0 !important;
81
+ border: none;
82
+ margin-left: 0.5rem;
83
+ background: transparent;
84
+ > span {
85
+ display: flex;
86
+ align-items: center;
87
+ }
88
+
89
+ &:hover {
90
+ background: transparent !important;
91
+ }
92
+ }
93
+
94
+ &.label-pinned {
95
+ border-radius: ${s.theme.borderRadius} 6px 0 0;
96
+ .label-sort-pin-icon {
97
+ width: 16px;
98
+ height: 16px;
99
+ vertical-align: middle;
100
+ }
101
+ }
102
+
103
+ &[data-is-marrybaby='true'] {
104
+ padding: 0.75rem 1rem;
105
+ border-radius: 16px 16px 0px 0px;
106
+ &[data-color='white'] {
107
+ border-bottom: none;
108
+ }
109
+ &[data-color='gray'] {
110
+ background: #f3f3f3;
111
+ }
112
+ .popover-menu__btn {
113
+ width: unset;
114
+ }
115
+
116
+ &.label-pinned {
117
+ border-bottom: none;
118
+ background: #fff9eb;
119
+ border-radius: 1rem 1rem 0 0;
120
+ .label-sort-pin-icon {
121
+ margin-right: 8px;
122
+ }
123
+ .label-sort-pin-heading {
124
+ color: #fb8c00;
125
+ }
126
+ }
127
+ &.label-sorting {
128
+ ${w.MediaQueries.tdUp} {
129
+ padding-bottom: 1.5rem;
130
+ margin-bottom: -0.75rem;
131
+ }
132
+ }
133
+ }
134
+ `,de=({label:l,rightLabel:o,onClick:n,color:i,className:r,style:s})=>{const{data:{env:{isMarryBaby:d}}}=e.useContext(a.TogetherComponentGlobalContext);return L.default.createElement(se,{"data-is-marrybaby":d,"data-color":i,onClick:n,className:r,style:s},L.default.createElement(t.Text,{className:"label-sort-pin-heading",size:d?"p4":"p3",weight:"bold"},l),o)};const ce=({onClick:t,color:l,className:o,style:n})=>{const{data:{env:{isMarryBaby:r}}}=e.useContext(a.TogetherComponentGlobalContext),{t:s}=i.useTranslations();return L.default.createElement(de,{label:L.default.createElement(L.default.Fragment,null,r&&L.default.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M3.5 19.9999L7.87 15.6299' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.95634 11.294C4.56534 11.685 4.56534 12.318 4.95634 12.708L7.87434 15.626L10.7923 18.544C11.1833 18.935 11.8163 18.935 12.2063 18.544L13.3813 17.369C13.5693 17.181 13.6743 16.927 13.6743 16.662V12.726L16.5743 9.82597L18.8833 9.94897C19.1663 9.96397 19.4433 9.85797 19.6433 9.65797L20.2173 9.08397C20.6083 8.69297 20.6083 8.05997 20.2173 7.66997L15.8313 3.28397C15.4403 2.89297 14.8073 2.89297 14.4173 3.28397L13.8433 3.85797C13.6423 4.05897 13.5363 4.33497 13.5523 4.61797L13.6753 6.92697L10.7753 9.82697H6.83834C6.57334 9.82697 6.31834 9.93197 6.13134 10.12L4.95634 11.294V11.294Z' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16.5699 9.83018L13.6699 6.93018' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e",loading:"lazy"})," ",s("label.pinnedPost")),rightLabel:!r&&L.default.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='7.18605' y1='7.68219' x2='3.68219' y2='13.8139' stroke='%23FEA21E' stroke-linecap='round'/%3e%3cpath d='M3.24591 7.78426C3.21275 7.84168 3.20376 7.90993 3.22092 7.97398C3.23808 8.03803 3.27998 8.09264 3.3374 8.12579L8.78429 11.2706C8.90385 11.3396 9.05674 11.2986 9.12578 11.1791C9.71191 10.1641 9.71348 8.97262 9.23682 7.99339L10.8583 5.18521C11.5115 5.00603 12.0982 4.57973 12.4638 3.94629C12.5328 3.82672 12.4919 3.67383 12.3723 3.6048L8.18237 1.18584C8.12494 1.15268 8.0567 1.1437 7.99265 1.16086C7.92861 1.17803 7.874 1.21993 7.84086 1.27736C7.47521 1.91077 7.39934 2.63194 7.57065 3.28723L5.94919 6.09545C4.86323 6.1723 3.83201 6.76934 3.24591 7.78426Z' fill='%23FEA21E' stroke='%23FEA21E' stroke-width='0.5' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),onClick:t,color:"white",className:`label-pinned ${o}`,style:n})};const ue=F.default.div`
135
+ position: relative;
136
+ display: content;
137
+
138
+ .popover-menu__btn {
139
+ /* position: relative; */
140
+ > span {
141
+ width: 100%;
142
+ height: 100%;
143
+ > img {
144
+ width: 100%;
145
+ height: 100%;
146
+ }
147
+ }
148
+ }
149
+
150
+ .popover-menu__content {
151
+ position: absolute;
152
+ z-index: 10;
153
+ width: 320px;
154
+ padding: 8px;
155
+ border: none;
156
+ background: #fff;
157
+ border-radius: 8px;
158
+ box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.1);
159
+
160
+ &::before {
161
+ position: absolute;
162
+ width: 16px;
163
+ height: 8px;
164
+ background: #fff;
165
+ content: '';
166
+ }
167
+
168
+ &.--position {
169
+ &-top {
170
+ bottom: calc(100% + 8px);
171
+
172
+ &.--align {
173
+ &-start {
174
+ left: 0;
175
+
176
+ &::before {
177
+ top: 100%;
178
+ left: 16px;
179
+ clip-path: polygon(0 0, 50% 100%, 100% 0);
180
+ }
181
+ }
182
+
183
+ &-end {
184
+ left: 100%;
185
+ transform: translateX(calc(-100% + 1rem));
186
+
187
+ &::before {
188
+ top: 100%;
189
+ right: 16px;
190
+ clip-path: polygon(0 0, 50% 100%, 100% 0);
191
+ }
192
+ }
193
+ }
194
+ }
195
+
196
+ &-right {
197
+ left: calc(100% + 8px);
198
+
199
+ &.--align {
200
+ &-start {
201
+ top: 0;
202
+
203
+ &::before {
204
+ top: 16px;
205
+ left: 0;
206
+ width: 8px;
207
+ height: 16px;
208
+ clip-path: polygon(0 50%, 100% 0%, 100% 100%);
209
+ transform: translateX(-100%);
210
+ }
211
+ }
212
+
213
+ &-end {
214
+ top: 100%;
215
+ transform: translateX(calc(-100% + 1rem));
216
+
217
+ &::before {
218
+ bottom: 16px;
219
+ left: 0;
220
+ width: 8px;
221
+ height: 16px;
222
+ clip-path: polygon(0 50%, 100% 0%, 100% 100%);
223
+ transform: translateX(-100%);
224
+ }
225
+ }
226
+ }
227
+ }
228
+
229
+ &-bottom {
230
+ top: calc(100% + 8px);
231
+
232
+ &.--align {
233
+ &-start {
234
+ left: 0;
235
+
236
+ &::before {
237
+ bottom: 100%;
238
+ left: 16px;
239
+ clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
240
+ }
241
+ }
242
+
243
+ &-end {
244
+ left: 100%;
245
+ transform: translateX(calc(-100% + 1rem));
246
+
247
+ &::before {
248
+ right: 16px;
249
+ bottom: 100%;
250
+ clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
251
+ }
252
+ }
253
+ }
254
+ }
255
+
256
+ &-left {
257
+ left: -8px;
258
+ transform: translateX(-100%);
259
+
260
+ &.--align {
261
+ &-start {
262
+ top: 0;
263
+
264
+ &::before {
265
+ top: 16px;
266
+ left: 100%;
267
+ width: 8px;
268
+ height: 16px;
269
+ clip-path: polygon(0 0%, 100% 50%, 0% 100%);
270
+ transform: translateX(0);
271
+ }
272
+ }
273
+
274
+ &-end {
275
+ bottom: 0;
276
+
277
+ &::before {
278
+ bottom: 16px;
279
+ left: 100%;
280
+ width: 8px;
281
+ height: 16px;
282
+ clip-path: polygon(0 0%, 100% 50%, 0% 100%);
283
+ transform: translateX(0);
284
+ }
285
+ }
286
+ }
287
+ }
288
+ }
289
+ }
290
+
291
+ &[data-is-marrybaby='true'] {
292
+ .popover-menu__content {
293
+ padding: 0;
294
+ border-radius: 12px;
295
+ /* &::before {
296
+ display: none;
297
+ } */
298
+ }
299
+ }
300
+ `,me=F.default.div`
301
+ display: flex;
302
+ /* max-height: 300px; */
303
+ flex-direction: column;
304
+ cursor: default;
305
+
306
+ .__header {
307
+ position: relative;
308
+ display: flex;
309
+ align-items: center;
310
+ justify-content: center;
311
+ padding: 1rem 0;
312
+ margin-bottom: 8px;
313
+
314
+ .__back-btn {
315
+ position: absolute;
316
+ top: 50%;
317
+ left: 8px;
318
+ width: 16px;
319
+ height: 16px;
320
+ cursor: pointer;
321
+ transform: translateY(-50%);
322
+ }
323
+ }
324
+
325
+ .tree-text-description {
326
+ padding-right: 8px;
327
+ padding-left: 8px;
328
+ margin-top: -8px;
329
+ margin-bottom: 8px;
330
+ font-size: 14px;
331
+ font-weight: 400;
332
+ line-height: 22px;
333
+ text-align: left;
334
+ }
335
+
336
+ .__content {
337
+ overflow: auto;
338
+ flex: 1;
339
+ }
340
+
341
+ .__list {
342
+ .__item {
343
+ position: relative;
344
+ &.bold-item {
345
+ font-weight: 700;
346
+ }
347
+ &:last-child {
348
+ .__btn {
349
+ margin-bottom: 0;
350
+ }
351
+ }
352
+
353
+ .__btn {
354
+ position: relative;
355
+ display: flex;
356
+ width: 100%;
357
+ height: 40px;
358
+ align-items: center;
359
+ padding: 0 1rem;
360
+ border: none;
361
+ margin-bottom: 8px;
362
+ color: ${s.theme.colors.gray800};
363
+ cursor: pointer;
364
+ text-align: left;
365
+ transition: background 0.3s;
366
+
367
+ /* for better gtm tracking result */
368
+ * {
369
+ pointer-events: none;
370
+ }
371
+ &.--checked {
372
+ color: ${s.theme.colors.gray500};
373
+ pointer-events: none;
374
+ }
375
+
376
+ &:hover {
377
+ background: ${s.theme.colors.gray100};
378
+ }
379
+
380
+ .__icon {
381
+ width: 16px;
382
+ height: 16px;
383
+ margin-right: 0.4rem;
384
+ }
385
+
386
+ & > span {
387
+ position: relative;
388
+
389
+ & > img {
390
+ width: 16px;
391
+ height: 16px;
392
+ margin-right: 0.4rem;
393
+ }
394
+ }
395
+ }
396
+
397
+ .__toggle {
398
+ position: absolute;
399
+ top: 50%;
400
+ right: 16px;
401
+ width: 16px;
402
+ height: 16px;
403
+ pointer-events: none;
404
+ transform: translateY(-50%);
405
+ }
406
+ }
407
+ }
408
+ &[data-is-marrybaby='true'] {
409
+ .__header {
410
+ padding: 1rem;
411
+ }
412
+ .tree-text-description {
413
+ padding: 0 1rem;
414
+ }
415
+ .__list {
416
+ .__item {
417
+ &:first-child {
418
+ .__btn {
419
+ border-top-left-radius: 12px;
420
+ border-top-right-radius: 12px;
421
+ }
422
+ }
423
+ &:last-child {
424
+ .__btn {
425
+ border-bottom-left-radius: 12px;
426
+ border-bottom-right-radius: 12px;
427
+ }
428
+ }
429
+ .__btn {
430
+ height: unset;
431
+ padding: 1rem;
432
+ margin-bottom: 0;
433
+ &:hover {
434
+ background: ${s.theme.mbColors.lightPink};
435
+ }
436
+ }
437
+ }
438
+ }
439
+ }
440
+ `,pe=({className:t,style:l,toggleButtonContent:o,position:n="bottom",align:i="end",children:r,buttonProps:s})=>{const{data:{env:{isMarryBaby:d}}}=e.useContext(a.TogetherComponentGlobalContext),[c,u]=e.useState(!1),m=e.useRef(null),p=e.useRef(c);return e.useEffect((()=>{var e;p.current=c,c&&(null===(e=m.current)||void 0===e||e.focus())}),[c]),e.useEffect((()=>{const e=e=>{var t;!(null===(t=m.current)||void 0===t?void 0:t.contains(e.target))&&p.current&&u(!1)};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),L.default.createElement(ue,{"data-is-marrybaby":d,className:t,style:l},L.default.createElement(b.Button,Object.assign({theme:d?"marryBaby":"helloSites",className:"popover-menu__btn",size:"md",color:"transparent",onClick:()=>u((e=>!e))},s),o),c?L.default.createElement("div",{ref:m,className:`popover-menu__content --position-${n} --align-${i}`,tabIndex:0,onClick:e=>e.stopPropagation()},"function"==typeof r?r({setShow:u}):r):null)};const ge=e=>{var{data:t}=e,a=l.__rest(e,["data"]);return L.default.createElement(pe,Object.assign({},a),(({setShow:e})=>L.default.createElement(he,{data:t,setShow:e})))},he=({data:a,setShow:l})=>{var o;const[n,i]=e.useState(""),r=e.useMemo((()=>a&&((e,t)=>{const a=t.split(".");let l=e;return a.forEach((e=>{var t,a;e&&l&&"list"===(null==l?void 0:l.type)&&(l=null===(a=null===(t=null==l?void 0:l.list)||void 0===t?void 0:t[Number(e)])||void 0===a?void 0:a.subTree)})),l})(a,n)),[a,n]);if(!a)return null;if(!r)return null;return L.default.createElement(me,null,r.isShowheader?L.default.createElement("div",{className:"__header"},n?L.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:()=>i((e=>e.split(".").slice(0,-1).join("."))),loading:"lazy"}):null,r.title?L.default.createElement(x.Heading,{className:"__title",tag:"h6"},r.title):null):null,r.description?L.default.createElement(t.Text,{className:"tree-text-description",color:s.theme.colors.gray600,size:"p3",weight:"regular"},r.description):null,L.default.createElement("div",{className:"__content"},"jsx"===r.type?null===(o=null==r?void 0:r.jsxRenderer)||void 0===o?void 0:o.call(r,l):null,"list"===r.type?L.default.createElement("ul",{className:"__list"},Array.isArray(r.list)?r.list.map(((e,t)=>L.default.createElement("li",{key:t,style:e.style,className:`__item ${e.className}`}," ",L.default.createElement("div",{className:"__btn "+(e.selected?"--checked":""),onClick:()=>((e,{subTree:t,onClick:a=(()=>null)})=>{a&&a(),t?i((t=>t.split(".").concat(String(e)).join("."))):l&&l(!1)})(t,e),"data-event-category":e.dataEventCategory,"data-event-action":e.dataEventAction,"data-event-label":e.dataEventLabel},e.icon&&L.default.createElement("img",{className:"__icon",src:e.icon,loading:"lazy"}),L.default.createElement("span",null,e.label)),e.subTree?L.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?L.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 fe;!function(e){e.latest="latest",e.oldest="oldest",e.popular="popular"}(fe||(fe={}));const ve=e=>{var{size:t=15}=e,a=l.__rest(e,["size"]);return L.default.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 15 15",fill:"none"},a),L.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"}),L.default.createElement("path",{d:"M8.53125 6.34375V4.15625H6.34375V6.34375H4.15625V8.53125H6.34375V10.7188H8.53125V8.53125H10.7188V6.34375H8.53125Z",fill:"#FF5331"}))},be=e=>{var{size:t,color:a}=e,o=l.__rest(e,["size","color"]);return L.default.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 16 16",fill:"none"},o),L.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:a}))};be.defaultProps={size:24,color:s.theme.colors.gray600,activeColor:s.theme.colors.primaryBase,isActive:!1};var xe="dZWeHns",ye="tMiOKib",we="uDcqD-2",Ce="pDlsows",Ee="m-HVXw1";const ke=({children:e,className:t=""})=>L.default.createElement("div",{className:`${ye} ${t}`},e),Ae=({children:e,className:t=""})=>L.default.createElement("div",{className:`${we} ${t}`},e);var Ne="sTU4T4I",Te="tCql9Je",Se="_3j7uYhH",Pe="PHABgoT";const Ie=({avatarProps:e,title:t,subTitle:a,children:l,className:o="",style:n,onAvatarClick:i,avatarIcon:r,dataEventCategory:s,dataEventAction:d,dataEventLabel:c})=>L.default.createElement("div",{className:`${Ne} ${o}`,style:n},L.default.createElement("div",{className:Se,onClick:i,"data-event-category":s,"data-event-action":d,"data-event-label":c},L.default.createElement(g.UserAvatar,Object.assign({},e)),r&&L.default.createElement("div",{className:Pe},r)),L.default.createElement("div",{className:`${Te} ${o}`,style:{minHeight:`${(null==e?void 0:e.size)||40}px`}},l||L.default.createElement(L.default.Fragment,null,t&&L.default.createElement(ke,null,t),a&&L.default.createElement(Ae,null,a))));Ie.MainText=ke,Ie.SubText=Ae,Ie.SubDivider=({className:e=""})=>L.default.createElement("span",{className:`${Ee} ${e}`}),Ie.Row=({children:e,className:t=""})=>L.default.createElement("div",{className:`${xe} ${t} row`},e),Ie.ColLeft=({children:e,className:t=""})=>L.default.createElement("div",{className:`${t} col-left`},e),Ie.ColRight=({children:e,className:t=""})=>L.default.createElement("div",{className:`${t} col-right`},e),Ie.SubTextRow=e=>{var{children:t,className:a=""}=e,o=l.__rest(e,["children","className"]);return L.default.createElement("div",Object.assign({className:`${Ce} ${a}`},o),t)};var Me=o.createStyles((()=>({root:{},authorBadge:{background:"yellow"}})));const ze=F.default.div`
441
+ position: fixed;
442
+ left: 50%;
443
+ width: 343px;
444
+ background-color: ${s.theme.colors.white};
445
+ border-radius: ${s.theme.borderRadius};
446
+ box-shadow: 0px 0px 4px ${s.theme.colors.gray200};
447
+ transform: translate(-50%, -50%);
448
+ transition: all 0.5s ease-in-out;
449
+
450
+ ${w.MediaQueries.tdUp} {
451
+ width: 750px;
452
+ }
453
+
454
+ &[data-animation='true'] {
455
+ transition: all 0.5s ease-in-out;
456
+ }
457
+
458
+ &[data-open='true'] {
459
+ z-index: 400;
460
+ top: 50%;
461
+ opacity: 1;
462
+ visibility: visible;
463
+ }
464
+
465
+ &[data-open='false'] {
466
+ top: -50%;
467
+ }
468
+
469
+ .popup-content {
470
+ ${w.MediaQueries.mbDown} {
471
+ display: block;
472
+ }
473
+ display: flex;
474
+ position: relative;
475
+ z-index: 111;
476
+ height: 100%;
477
+ .button-see-more {
478
+ margin: 32px 0;
479
+ padding: 0;
480
+ > * {
481
+ display: inline-block;
482
+ }
483
+ }
484
+ .close-button {
485
+ position: absolute;
486
+ z-index: 100;
487
+ top: 10px;
488
+ right: 10px;
489
+ cursor: pointer;
490
+ width: unset;
491
+ height: unset;
492
+ img {
493
+ width: 100%;
494
+ height: 100%;
495
+ border-radius: 50%;
496
+ }
497
+ }
498
+ }
499
+
500
+ .main-info {
501
+ padding-bottom: 32px;
502
+ background-color: ${s.theme.colors.primary50};
503
+ border-radius: ${s.theme.borderRadius};
504
+ .btn-booking {
505
+ display: flex;
506
+ margin: 12px auto;
507
+ }
508
+ .avatar-title {
509
+ position: relative;
510
+ width: 100%;
511
+ padding-top: 46px;
512
+ text-align: center;
513
+ }
514
+ }
515
+ `,Le=F.default.div`
516
+ position: fixed;
517
+ z-index: 110;
518
+ top: 0;
519
+ left: 0;
520
+ width: 100%;
521
+ height: 100%;
522
+ align-items: center;
523
+ background: rgba(38, 38, 38, 0.3);
524
+
525
+ &[data-open='false'] {
526
+ display: none;
527
+ }
528
+ `,Be=F.default.div`
529
+ .image-container {
530
+ .badge-avatar {
531
+ position: absolute;
532
+ right: 0;
533
+ bottom: 0;
534
+ top: 0;
535
+ }
536
+ }
537
+ display: flex;
538
+ justify-content: center;
539
+ padding-bottom: 15px;
540
+ text-align: center;
541
+ .profile-image {
542
+ width: 100px;
543
+ min-width: 100px;
544
+ height: 100px;
545
+ min-height: 100px;
546
+ border-radius: 50%;
547
+ object-fit: cover;
548
+ }
549
+ .badge-avatar {
550
+ width: 24px;
551
+ height: 24px;
552
+ }
553
+ `,Re=F.default.div`
554
+ position: relative;
555
+ z-index: 9;
556
+ .specialty {
557
+ display: flex;
558
+ flex-wrap: wrap;
559
+ justify-content: center;
560
+ }
561
+
562
+ padding: 0px 16px;
563
+ text-align: center;
564
+ .specialty {
565
+ justify-content: center;
566
+ }
567
+
568
+ .experience {
569
+ padding: 16px 0px 32px;
570
+ text-align: left;
571
+ .btn-wrapper {
572
+ margin-top: 24px;
573
+ }
574
+ }
575
+ p {
576
+ max-width: 100%;
577
+ -webkit-line-clamp: 4;
578
+ -webkit-box-orient: vertical;
579
+ text-overflow: ellipsis;
580
+ overflow: hidden;
581
+ }
582
+ `,Oe=F.default.ul`
583
+ padding-left: 18px;
584
+ li {
585
+ list-style-type: disc;
586
+ }
587
+ `;var je="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",Fe="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9 16.9998C13.4183 16.9998 17 13.418 17 8.99976C17 4.58148 13.4183 0.999756 9 0.999756C4.58172 0.999756 1 4.58148 1 8.99976C1 13.418 4.58172 16.9998 9 16.9998Z' fill='white' stroke='%23E4E8EC' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.3333 7.66679V5.00012H7.66667V7.66679H5V10.3335H7.66667V13.0001H10.3333V10.3335H13V7.66679H10.3333Z' fill='%23FF5331'/%3e%3c/svg%3e";const De=F.default.div`
588
+ display: flex;
589
+ align-items: center;
590
+ justify-content: center;
591
+ padding: 1em;
592
+ button {
593
+ position: relative;
594
+ }
595
+ `,Ve=E.keyframes`
596
+ 0% {
597
+ transform: rotate(0deg);
598
+ }
599
+ 100% {
600
+ transform: rotate(360deg);
601
+ }
602
+ `;F.default.div`
603
+ display: flex;
604
+ width: fit-content;
605
+ width: -moz-fit-content;
606
+ flex-direction: column;
607
+ align-items: center;
608
+ justify-content: center;
609
+ padding: 1rem 2rem;
610
+ background: white;
611
+ border-radius: ${s.theme.borderRadius};
612
+ box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
613
+ -2px 2px 5px rgba(67, 86, 100, 0.123689);
614
+ .loading-spinner {
615
+ width: 24px;
616
+ height: 24px;
617
+ margin-bottom: 0.5rem;
618
+ animation: ${Ve} 1.2s linear infinite;
619
+ }
620
+ &[data-is-marrybaby='true'] {
621
+ box-shadow: none;
622
+ }
623
+ `;const Ue=({className:e,size:t="md"})=>{const{t:a}=i.useTranslations();return L.default.createElement(De,{className:e},L.default.createElement(b.Button,{size:t,color:"transparent",isLoading:!0},a("loading")))},_e=({isOpen:l=!0,onClose:o,enableAnimation:n=!0,doctorId:r,locale:c,isMobile:u,overwriteProfileProps:p,avatarFallback:g=m.CommonGAssets.getAssetPath("avatar.jpg"),trackingCategory:h="Together"})=>{var f,v,x;const{t:y}=i.useTranslations(),[w,C]=e.useState(null),[E,k]=e.useState(!1);e.useEffect((()=>{if(l&&r&&String(null==w?void 0:w.id)!==String(r)){k(!0);try{C(null),a.callApi(a.getCarePath(a.CARE_PATHS.GET_DOCTOR_INFO,{doctorId:r,website_url:a.domainLocales[c]}),"get").then((e=>{C(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),p))}))}catch(e){console.error(e)}k(!1)}}),[l,r,null==w?void 0:w.id]);const A=(null==w?void 0:w.experiences)||[],N=((null==w?void 0:w.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 L.default.createElement(L.default.Fragment,null,L.default.createElement(ze,{"data-open":l,"data-animation":n,onClick:e=>e.stopPropagation()},E||!w?L.default.createElement(Ue,null):L.default.createElement("div",{className:"popup-content"},L.default.createElement("div",{className:"close-button",onClick:o},L.default.createElement("img",{src:je,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),L.default.createElement("div",{className:"main-info"},L.default.createElement("div",{className:"border-banner"}),L.default.createElement("div",{className:"avatar-title"},L.default.createElement(Be,null,L.default.createElement("div",{className:"image-container"},L.default.createElement("div",{style:{position:"relative"}},L.default.createElement(d.ImageWrap,{src:null==w?void 0:w.avatar,backupSrc:g,className:"profile-image",alt:"avatar"}),L.default.createElement("img",{className:"badge-avatar",src:Fe,alt:"badge",loading:"lazy"})))),L.default.createElement(Re,null,L.default.createElement(t.Text,{size:"s3",weight:"semiBold",className:"full-name"},null==w?void 0:w.name),L.default.createElement("div",{className:"specialty"},N&&L.default.createElement(L.default.Fragment,null,L.default.createElement(t.Text,{size:"p4",color:s.theme.colors.gray800},N," • ")),L.default.createElement("a",{href:a.getCareHospitalUrl({id:null===(f=null==w?void 0:w.organization)||void 0===f?void 0:f.id,name:null===(v=null==w?void 0:w.organization)||void 0===v?void 0:v.name,slug:null===(x=null==w?void 0:w.organization)||void 0===x?void 0:x.slug,locale:c}),className:"organisation",target:"_blank",rel:"noreferrer"},L.default.createElement(t.Text,{size:"p4",className:"organisation",color:s.theme.colors.gray800,style:{textDecoration:"underline"}},null==w?void 0:w.organization.name))))),!u&&L.default.createElement("div",{className:"btn-wrapper"},L.default.createElement("a",{href:a.getCareDoctorUrl({name:w.name,id:w.id,locale:c})},L.default.createElement(b.Button,{color:"primary",size:"md",className:"btn-booking"},y("careBooking.bookAnAppointment"))))),T&&L.default.createElement(Re,null,L.default.createElement("div",{className:"experience"},L.default.createElement(t.Text,{weight:"bold",size:"s3",color:s.theme.colors.gray800,style:{paddingBottom:16}},y("expert.content.description").toUpperCase()),L.default.createElement(Oe,null,T.map(((e,a)=>L.default.createElement("li",{key:a},L.default.createElement(t.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)))))),u?L.default.createElement("div",{className:"btn-wrapper"},L.default.createElement("a",{href:a.getCareDoctorUrl({name:w.name,id:w.id,locale:c})},L.default.createElement(b.Button,{color:"primary",size:"md",className:"btn-booking"},y("careBooking.bookAnAppointment")))):L.default.createElement("a",{href:a.getCareDoctorUrl({name:w.name,id:w.id,locale:c})},L.default.createElement(t.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":h,"data-event-action":"See Full Doctor Profile","data-event-label":a.getCurrentBaseUrl(c)+a.getCareDoctorUrl({name:w.name,id:w.id,locale:c})},y("home.seeExpert"))))))),L.default.createElement(Le,{"data-open":l,onClick:e=>{e.stopPropagation(),o()}}))},He=F.default.div`
624
+ position: fixed;
625
+ left: 50%;
626
+ width: 343px;
627
+ background-color: ${s.theme.colors.white};
628
+ border-radius: ${s.theme.borderRadius};
629
+ box-shadow: 0px 0px 4px ${s.theme.colors.gray200};
630
+ transform: translate(-50%, -50%);
631
+ transition: all 0.5s ease-in-out;
632
+
633
+ ${w.MediaQueries.tdUp} {
634
+ width: 750px;
635
+ }
636
+
637
+ &[data-animation='true'] {
638
+ transition: all 0.5s ease-in-out;
639
+ }
640
+
641
+ &[data-open='true'] {
642
+ z-index: 400;
643
+ top: 50%;
644
+ opacity: 1;
645
+ visibility: visible;
646
+ }
647
+
648
+ &[data-open='false'] {
649
+ top: -50%;
650
+ }
651
+
652
+ .popup-content {
653
+ ${w.MediaQueries.mbDown} {
654
+ display: block;
655
+ }
656
+ display: flex;
657
+ position: relative;
658
+ z-index: 111;
659
+ height: 100%;
660
+ .button-see-more {
661
+ margin: 32px 0;
662
+ padding: 0;
663
+ > * {
664
+ display: inline-block;
665
+ }
666
+ }
667
+ .close-button {
668
+ position: absolute;
669
+ z-index: 100;
670
+ top: 10px;
671
+ right: 10px;
672
+ cursor: pointer;
673
+ width: unset;
674
+ height: unset;
675
+ img {
676
+ width: 100%;
677
+ height: 100%;
678
+ border-radius: 50%;
679
+ }
680
+ }
681
+ }
682
+
683
+ .main-info {
684
+ padding-bottom: 32px;
685
+ background-color: ${s.theme.colors.primary50};
686
+ border-radius: ${s.theme.borderRadius};
687
+
688
+ .avatar-title {
689
+ position: relative;
690
+ width: 100%;
691
+ padding-top: 46px;
692
+ text-align: center;
693
+ }
694
+ }
695
+ `,We=F.default.div`
696
+ position: fixed;
697
+ z-index: 110;
698
+ top: 0;
699
+ left: 0;
700
+ width: 100%;
701
+ height: 100%;
702
+ align-items: center;
703
+ background: rgba(38, 38, 38, 0.3);
704
+
705
+ &[data-open='false'] {
706
+ display: none;
707
+ }
708
+ `,qe=F.default.div`
709
+ .image-container {
710
+ .badge-avatar {
711
+ position: absolute;
712
+ right: 0;
713
+ bottom: 0;
714
+ top: 0;
715
+ }
716
+ }
717
+ display: flex;
718
+ justify-content: center;
719
+ padding-bottom: 15px;
720
+ text-align: center;
721
+ .profile-image {
722
+ width: 100px;
723
+ min-width: 100px;
724
+ height: 100px;
725
+ min-height: 100px;
726
+ border-radius: 50%;
727
+ object-fit: cover;
728
+ }
729
+ .badge-avatar {
730
+ width: 24px;
731
+ height: 24px;
732
+ }
733
+ `,Ge=F.default.div`
734
+ position: relative;
735
+ z-index: 9;
736
+ .specialty {
737
+ display: flex;
738
+ flex-wrap: wrap;
739
+ justify-content: center;
740
+ }
741
+
742
+ padding: 0px 16px;
743
+ text-align: center;
744
+ .specialty {
745
+ justify-content: center;
746
+ }
747
+
748
+ .experience {
749
+ padding: 16px 0px 32px;
750
+ text-align: left;
751
+ .btn-wrapper {
752
+ margin-top: 24px;
753
+ }
754
+ }
755
+ p {
756
+ max-width: 100%;
757
+ -webkit-line-clamp: 4;
758
+ -webkit-box-orient: vertical;
759
+ text-overflow: ellipsis;
760
+ overflow: hidden;
761
+ }
762
+ `,Ze=F.default.div`
763
+ display: flex;
764
+ margin-top: 8px;
765
+
766
+ .bullet-point {
767
+ width: 24px;
768
+ height: 24px;
769
+ }
770
+ `;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:Fe},Ke=({trackingCategory:l="Together",locale:o,isOpen:n=!0,onClose:r,enableAnimation:c=!0,expertId:u,overwriteProfileProps:p,avatarFallback:g=m.CommonGAssets.getAssetPath("avatar.jpg")})=>{const{t:h}=i.useTranslations(),[f,v]=e.useState(null),[b,y]=e.useState(!1);return e.useEffect((()=>{if(n&&u&&String(null==f?void 0:f.user_id)!==String(u)){y(!0);try{v(null),a.callApi(a.getDiscoverApiPath(a.DISCOVER_PATHS.GET_EXPERT_BY_ID,{id:u}),"get").then((e=>{v(Object.assign(Object.assign({},null==e?void 0:e.data),p))}))}catch(e){console.error(e)}y(!1)}}),[n,u,null==f?void 0:f.user_id]),L.default.createElement(L.default.Fragment,null,L.default.createElement(He,{"data-open":n,"data-animation":c,onClick:e=>e.stopPropagation()},b||!f?L.default.createElement(Ue,null):L.default.createElement("div",{className:"popup-content"},L.default.createElement("div",{className:"close-button",onClick:r},L.default.createElement("img",{src:je,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),L.default.createElement("div",{className:"main-info"},L.default.createElement("div",{className:"border-banner"}),L.default.createElement("div",{className:"avatar-title"},L.default.createElement(qe,null,L.default.createElement("div",{className:"image-container"},L.default.createElement("div",{style:{position:"relative"}},L.default.createElement(d.ImageWrap,{src:null==f?void 0:f.avatar,className:"profile-image",alt:"avatar",backupSrc:g}),L.default.createElement("img",{className:"badge-avatar",src:Xe[null==f?void 0:f.role],alt:"badge",loading:"lazy"})))),L.default.createElement(Ge,null,L.default.createElement(t.Text,{size:"s3",className:"full-name",weight:"semiBold"},null==f?void 0:f.display_name),L.default.createElement("div",null,L.default.createElement(t.Text,{size:"p4",color:s.theme.colors.gray800},null==f?void 0:f.specialty," • "),L.default.createElement("a",{href:null==f?void 0:f.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},L.default.createElement(t.Text,{size:"p4",className:"organisation",color:s.theme.colors.gray800,style:{textDecoration:"underline"}},null==f?void 0:f.organisation)))))),L.default.createElement(Ge,null,L.default.createElement("div",{className:"experience"},L.default.createElement(t.Text,{weight:"bold",size:"p4",color:s.theme.colors.gray800,style:{paddingBottom:16}},h("expert.content.description").toUpperCase()),L.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,a)=>L.default.createElement(Ze,{key:a},L.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"}),L.default.createElement("div",{className:"text-contain"},L.default.createElement(x.Heading,{tag:"h6",color:s.theme.colors.gray800},null==e?void 0:e.title),L.default.createElement(t.Text,{size:"p2",color:s.theme.colors.gray500},null==e?void 0:e.organization)))))),L.default.createElement("a",{href:null==f?void 0:f.profile_url,style:{display:"inline-block",paddingTop:24}},L.default.createElement(t.Text,{as:"span",size:"s4",color:"#2D87F3","data-event-category":l,"data-event-action":"See Full Doctor Profile","data-event-label":a.getCurrentBaseUrl(o)+(null==f?void 0:f.profile_url)},h("home.seeExpert"))))))),L.default.createElement(We,{"data-open":n,onClick:e=>{e.stopPropagation(),r()}}))},$e=F.default.div`
771
+ position: fixed;
772
+ left: 50%;
773
+ width: 343px;
774
+ background-color: ${s.theme.colors.white};
775
+ border-radius: ${s.theme.borderRadius};
776
+ box-shadow: 0px 0px 4px ${s.theme.colors.gray200};
777
+ transform: translate(-50%, -50%);
778
+ transition: all 0.5s ease-in-out;
779
+
780
+ ${w.MediaQueries.tdUp} {
781
+ width: 750px;
782
+ }
783
+
784
+ &[data-animation='true'] {
785
+ transition: all 0.5s ease-in-out;
786
+ }
787
+
788
+ &[data-open='true'] {
789
+ z-index: 400;
790
+ top: 50%;
791
+ opacity: 1;
792
+ visibility: visible;
793
+ }
794
+
795
+ &[data-open='false'] {
796
+ top: -50%;
797
+ }
798
+
799
+ .popup-content {
800
+ ${w.MediaQueries.mbDown} {
801
+ display: block;
802
+ }
803
+ display: flex;
804
+ position: relative;
805
+ z-index: 111;
806
+ height: 100%;
807
+ .button-see-more {
808
+ margin: 32px 0;
809
+ padding: 0;
810
+ > * {
811
+ display: inline-block;
812
+ }
813
+ }
814
+ .close-button {
815
+ position: absolute;
816
+ z-index: 100;
817
+ top: 10px;
818
+ right: 10px;
819
+ cursor: pointer;
820
+ width: unset;
821
+ height: unset;
822
+ img {
823
+ width: 100%;
824
+ height: 100%;
825
+ border-radius: 50%;
826
+ }
827
+ }
828
+ }
829
+
830
+ .main-info {
831
+ padding-bottom: 32px;
832
+ background-color: ${s.theme.colors.primary50};
833
+ border-radius: ${s.theme.borderRadius};
834
+ .btn-booking {
835
+ display: flex;
836
+ margin: 12px auto;
837
+ }
838
+ .avatar-title {
839
+ position: relative;
840
+ width: 100%;
841
+ padding-top: 46px;
842
+ text-align: center;
843
+ }
844
+ }
845
+ `,Ye=F.default.div`
846
+ position: fixed;
847
+ z-index: 110;
848
+ top: 0;
849
+ left: 0;
850
+ width: 100%;
851
+ height: 100%;
852
+ align-items: center;
853
+ background: rgba(38, 38, 38, 0.3);
854
+
855
+ &[data-open='false'] {
856
+ display: none;
857
+ }
858
+ `,Je=F.default.div`
859
+ .image-container {
860
+ .badge-avatar {
861
+ position: absolute;
862
+ right: 0;
863
+ bottom: 0;
864
+ top: 0;
865
+ }
866
+ }
867
+ display: flex;
868
+ justify-content: center;
869
+ padding-bottom: 15px;
870
+ text-align: center;
871
+ .profile-image {
872
+ width: 100px;
873
+ min-width: 100px;
874
+ height: 100px;
875
+ min-height: 100px;
876
+ border-radius: 50%;
877
+ object-fit: cover;
878
+ }
879
+ .badge-avatar {
880
+ width: 24px;
881
+ height: 24px;
882
+ }
883
+ `,et=F.default.div`
884
+ position: relative;
885
+ z-index: 9;
886
+ .specialty {
887
+ display: block;
888
+ min-width: 240px;
889
+ }
890
+
891
+ padding: 0px 16px;
892
+ text-align: center;
893
+ .specialty {
894
+ justify-content: center;
895
+ }
896
+
897
+ .experience {
898
+ padding: 16px 0px 32px;
899
+ text-align: left;
900
+ .btn-wrapper {
901
+ margin-top: 24px;
902
+ }
903
+ }
904
+ p {
905
+ max-width: 100%;
906
+ }
907
+ `,tt=({isOpen:l=!0,onClose:o,enableAnimation:n=!0,hospitalId:r,locale:c,isMobile:u,overwriteProfileProps:p,avatarFallback:g=m.CommonGAssets.getAssetPath("avatar.jpg"),trackingCategory:h="Together"})=>{const{t:f}=i.useTranslations(),[v,x]=e.useState(null),[y,w]=e.useState(!1);e.useEffect((()=>{if(l&&r&&String(null==v?void 0:v.id)!==String(r)){w(!0);try{x(null),a.callApi(a.getCarePath(a.CARE_PATHS.GET_HOSPITAL_INFO,{hospital_branch_id:r,website_url:a.domainLocales[c]}),"get").then((e=>{x(Object.assign(Object.assign({},null==e?void 0:e._data.branch),p))}))}catch(e){console.error(e)}w(!1)}}),[l,r,null==v?void 0:v.id]);const C=(null==v?void 0:v.specialties)||[],E=e.useMemo((()=>C.map((e=>e.name))),[C]);return L.default.createElement(L.default.Fragment,null,L.default.createElement($e,{"data-open":l,"data-animation":n,onClick:e=>e.stopPropagation()},y||!v?L.default.createElement(Ue,null):L.default.createElement("div",{className:"popup-content"},L.default.createElement("div",{className:"close-button",onClick:o},L.default.createElement("img",{src:je,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),L.default.createElement("div",{className:"main-info"},L.default.createElement("div",{className:"border-banner"}),L.default.createElement("div",{className:"avatar-title"},L.default.createElement(Je,null,L.default.createElement("div",{className:"image-container"},L.default.createElement("div",{style:{position:"relative"}},L.default.createElement(d.ImageWrap,{src:null==v?void 0:v.logo,className:"profile-image",alt:"avatar",backupSrc:g}),L.default.createElement("img",{className:"badge-avatar",src:Fe,alt:"badge",loading:"lazy"})))),L.default.createElement(et,null,L.default.createElement(t.Text,{size:"s3",weight:"semiBold",className:"full-name"},null==v?void 0:v.name),L.default.createElement("div",{className:"specialty"},C&&L.default.createElement(t.Text,{size:"p4",color:s.theme.colors.gray800},E.join(" • "),"•"),L.default.createElement("a",{href:a.getCareHospitalUrl({id:v.id,name:v.name,slug:v.slug,locale:c}),className:"organisation",target:"_blank",rel:"noreferrer"},L.default.createElement(t.Text,{size:"p4",className:"organisation",color:s.theme.colors.gray800,style:{textDecoration:"underline"}},null==v?void 0:v.name))))),!u&&L.default.createElement("a",{href:a.getCareHospitalUrl({id:v.id,name:v.name,slug:v.slug,locale:c})},L.default.createElement("div",{className:"btn-wrapper"},L.default.createElement(b.Button,{color:"primary",size:"md",className:"btn-booking"},f("careBooking.bookAnAppointment"))))),L.default.createElement(et,null,L.default.createElement("div",{className:"experience"},L.default.createElement(t.Text,{weight:"bold",size:"s3",color:s.theme.colors.gray800,style:{paddingBottom:16}},f("hospital.content.description").toUpperCase()),L.default.createElement(t.Text,{size:"p2",color:s.theme.colors.gray500},v.about),u?L.default.createElement("a",{href:a.getCareHospitalUrl({id:v.id,name:v.name,slug:v.slug,locale:c})},L.default.createElement("div",{className:"btn-wrapper"},L.default.createElement(b.Button,{color:"primary",size:"md",className:"btn-booking"},f("careBooking.bookAnAppointment")))):L.default.createElement("a",{href:a.getCareHospitalUrl({id:v.id,name:v.name,slug:v.slug,locale:c})},L.default.createElement(t.Text,{size:"s4",color:"#2D87F3",as:"span","data-event-category":h,"data-event-action":"See Full Hospital Profile","data-event-label":a.getCurrentBaseUrl(c)+a.getCareHospitalUrl({id:v.id,name:v.name,slug:v.slug,locale:c})},f("home.seeHospital"))))))),L.default.createElement(Ye,{"data-open":l,onClick:e=>{e.stopPropagation(),o()}}))};var at="_2UKyiK1",lt="E5ga-tI",ot="_8Y2nWXX",nt="d0T7kSP";const it=({open:e,onClose:t,children:a,profileModalProps:l})=>{const{t:o}=i.useTranslations();return L.default.createElement(S.Modal,Object.assign({className:at,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"},l),L.default.createElement("div",{className:lt},L.default.createElement("div",{className:ot},o("profilePanel.modal.heading")),L.default.createElement("div",{className:nt,onClick:t},L.default.createElement(U,null))),a)};D.default.extend(V.default);const rt=e.createContext({}),st=t=>{const{className:l="",community:n,name:r,username:u,url:g,avatar:h,role:f,title:v,userType:b="user",expertId:x,specialty:y,organisation:C,isMarryBaby:E,doctorId:k,hospitalId:A,hasQuickBooking:N,handleMakeAppointment:T,communityTrackingAttr:S,isAnonymous:P,showDetailPopup:I,subLine:M,authActionWrapper:z,profileProps:B,profileModalProps:R,extendEle:O,avatarProps:j,hideInfo:F,timeText:D,onCloseFromPost:V,avatarIcon:U,badgeIconSize:_,hideBackground:H,children:W,styles:q,dataEventCategory:G,dataEventAction:Z,dataEventLabel:Q}=t,{data:{locale:X,router:K,env:{isMarryBaby:$,togetherBasePath:Y}}}=e.useContext(a.TogetherComponentGlobalContext),{isMobile:J}=d.useScreenSize(),{t:ee}=i.useTranslations(),{classes:te}=Me(void 0,{name:"CardAuthor",styles:q}),ae="boolean"==typeof E?E:$,le=ae?"marryBaby":"helloSites",oe=P?ee("cardPost.anonymous"):r||u||"",ne=P?m.CommonGAssets.getAssetPath("avatar.jpg"):h,ie=P?void 0:f,[re,se]=e.useState(!1),{asPath:de}=K||{},ce=`https://${c.domainLocales[X]}${de}`,ue=()=>{if(P||"chatbot"===b)return!1;I?pe(!0):g&&(window.location.href=g)};e.useEffect((()=>{w.toggleNoScroll(re)}),[re]);const[me,pe]=e.useState(!1),ge="expert"===(null==t?void 0:t.role),he=Boolean(k||A),fe=["expert"===ie&&C&&L.default.createElement("span",null,C),"expert"===ie&&y&&L.default.createElement("span",null,y),!("expert"===ie&&y&&C)&&(null==n?void 0:n.name)&&L.default.createElement("a",Object.assign({href:(null==n?void 0:n.slug)&&n.isActive&&!n.isHidden?`${Y}/${null==n?void 0:n.slug}/`:void 0,className:"author-community-name"},S),`${null==n?void 0:n.name}`),D&&L.default.createElement("span",null,D)].filter(Boolean),[xe,ye]=e.useState(null);return e.useEffect((()=>{me&&!xe&&Promise.resolve().then((function(){return Rl})).then((e=>{ye((()=>e.ProfileDetail))}))}),[me]),L.default.createElement(rt.Provider,{value:{handleMakeAppointment:T,doctorId:k,hospitalId:A,currentUrl:ce}},L.default.createElement(it,{open:me,onClose:()=>pe(!1),profileModalProps:R},xe&&L.default.createElement(xe,Object.assign({currentPageUrl:Q,authActionWrapper:z,onCloseFromPost:()=>{pe(!1),null==V||V()}},B,{authorProps:Object.assign({userId:null==t?void 0:t.userId,avatar:ne,name:null==t?void 0:t.name,role:null==t?void 0:t.role,title:null==t?void 0:t.title,doctorId:k,hospitalId:A,hasQuickBooking:N},null==B?void 0:B.authorProps)}))),"expert"===ie&&x?L.default.createElement(Ke,{isOpen:re,onClose:()=>se(!1),expertId:x}):null,"expert"===ie&&k?L.default.createElement(_e,{isOpen:re,onClose:()=>se(!1),doctorId:k,locale:X}):null,"expert"===ie&&A?L.default.createElement(tt,{isOpen:re,onClose:()=>se(!1),hospitalId:A,locale:X}):null,L.default.createElement("div",{className:`hhg-card-author ${te.root} ${l} ${ge?"expert-author":""}`,"data-background":!H&&ge,"data-is-marrybaby":ae},L.default.createElement(Ie,{dataEventCategory:G,dataEventAction:Z,dataEventLabel:Q,onAvatarClick:ue,avatarProps:Object.assign(Object.assign({avatar:P?m.CommonGAssets.getAssetPath(ae?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):ne,username:oe},j),{style:{cursor:P||!g&&!I?"default":"pointer"}}),avatarIcon:U||ge&&L.default.createElement(ve,{size:_||15})},W?L.default.createElement("div",{onClick:ue},W):!F&&L.default.createElement(Ie.Row,null,L.default.createElement(Ie.ColLeft,null,L.default.createElement(o.Flex,{align:"center",onClick:ue},L.default.createElement(Ie.MainText,{onClick:ue},oe,"chatbot"===b?L.default.createElement(L.default.Fragment,null," ",L.default.createElement(be,{color:s.theme.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):ie&&L.default.createElement(p.AuthorBadge,{className:te.authorBadge,siteType:le,role:ie,title:v,style:{verticalAlign:"bottom"}}))),M||L.default.createElement(Ie.SubTextRow,{style:N?{position:"relative"}:{}},fe.map(((e,t)=>L.default.createElement(L.default.Fragment,null,0!==t&&L.default.createElement(Ie.SubDivider,null),L.default.createElement(Ie.SubText,null,e)))),N&&he&&L.default.createElement(o.Box,{sx:{marginTop:o.rem(5)}},L.default.createElement(p.BookingBtn,{bookingId:k||A,bookingType:k?"doctor":A?"hospital":void 0,size:J?"xs":"sm"})))))),O&&O))};st.MainText=Ie.MainText,st.SubText=Ie.SubText,st.SubTextRow=Ie.SubTextRow,st.SubDivider=Ie.SubDivider;const dt=e=>({message:e("notification.failure"),type:"danger"}),ct=F.default.div`
908
+ position: relative;
909
+ display: flex;
910
+ height: 100%;
911
+ flex-direction: column;
912
+ padding: 16px 24px;
913
+
914
+ .input-group-container {
915
+ flex: 1;
916
+ padding-right: 2px;
917
+ padding-left: 2px;
918
+ margin-bottom: 0.5rem;
919
+ -ms-overflow-style: none; /* IE and Edge */
920
+ overflow-y: auto;
921
+ scrollbar-width: none; /* Firefox */
922
+ &::-webkit-scrollbar {
923
+ display: none;
924
+ }
925
+ }
926
+
927
+ .input-group {
928
+ :not(:last-child) {
929
+ margin-bottom: 0.6rem;
930
+ }
931
+
932
+ input:focus,
933
+ textarea:focus,
934
+ [contenteditable='true'] {
935
+ outline: none;
936
+ }
937
+
938
+ label {
939
+ margin-bottom: 5px;
940
+ color: ${s.theme.colors.gray600};
941
+ /* font-family: 'Open Sans', sans-serif; */
942
+ font-size: 13px;
943
+ font-weight: bold;
944
+ }
945
+
946
+ .input-group-label {
947
+ margin-bottom: 5px;
948
+ color: ${s.theme.colors.gray600};
949
+ /* font-family: 'Open Sans', sans-serif; */
950
+ font-size: 13px;
951
+ font-weight: bold;
952
+ }
953
+
954
+ .input-notification {
955
+ display: flex;
956
+
957
+ & > img {
958
+ width: 16px;
959
+ height: 16px;
960
+ margin-top: 1.5px;
961
+ margin-right: 8px;
962
+ }
963
+ }
964
+
965
+ .tag-list {
966
+ }
967
+ }
968
+
969
+ .warning {
970
+ margin-top: 16px;
971
+ }
972
+
973
+ .submit-btn {
974
+ width: 100%;
975
+ }
976
+
977
+ .switch-label {
978
+ display: flex;
979
+ align-items: center;
980
+ }
981
+
982
+ .swich-input-group {
983
+ padding: 12px 16px;
984
+ border-radius: 8px;
985
+ background: ${s.theme.colors.neutral50};
986
+
987
+ &.askdoctor-switch {
988
+ background: ${s.theme.colors.primary50};
989
+ &.mb-color {
990
+ background: ${s.theme.mbColors.tonePink};
991
+ }
992
+ }
993
+
994
+ .mantine-Switch-labelWrapper {
995
+ flex-grow: 1;
996
+ }
997
+ .mantine-Checkbox-body {
998
+ display: flex;
999
+ width: 100%;
1000
+ align-items: center;
1001
+ justify-content: space-between;
1002
+ }
1003
+ .mantine-Switch-track {
1004
+ margin-bottom: 0;
1005
+ }
1006
+ .label-txt {
1007
+ font-weight: normal;
1008
+ font-size: 14px;
1009
+ color: ${s.theme.colors.gray800};
1010
+ margin-left: 10px;
1011
+ }
1012
+ }
1013
+ `,ut=F.default.div`
1014
+ display: flex;
1015
+ width: 100%;
1016
+ align-items: center;
1017
+ justify-content: space-between;
1018
+ padding: 12px 16px;
1019
+ border-radius: 8px;
1020
+ background: ${s.theme.colors.primary50};
1021
+
1022
+ &[data-is-marry-baby='true'] {
1023
+ background: ${s.theme.mbColors.tonePink};
1024
+ }
1025
+ .switch-label {
1026
+ display: flex;
1027
+ align-items: center;
1028
+ gap: 12px;
1029
+ }
1030
+ margin-bottom: 12px;
1031
+ `,mt=F.default.div`
1032
+ margin-bottom: 12px;
1033
+ color: ${s.theme.colors.red700};
1034
+ svg {
1035
+ margin-right: 5px;
1036
+ }
1037
+ svg,
1038
+ span {
1039
+ vertical-align: middle;
1040
+ }
1041
+ `;var pt="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%23FE921D'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const gt=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,ht=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,ft=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,vt=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,bt=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,xt=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,yt=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,wt=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,Ct=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,Et=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,kt=({url:e,text:t,method:a})=>{const l=t.indexOf(t.trimStart()),o=t.trimEnd().length,n=t.substring(0,l),i=t.substring(l,o),r=t.substring(o);return"edit"===a?`${n}<mocka data-href="${e}" data-url="true">${i}</mocka>${r}`:"display"===a&&(e.startsWith("http://")||e.startsWith("https://"))?`${n}<a href="${e}" target="_blank">${i}</a>${r}`:t},At=(e,t)=>e.replace(ft,((e,a,l)=>kt({text:l||a,url:a,method:t}))).replace(Ct,((e,a,l)=>kt({text:l||a,url:a,method:t}))),Nt=(e,t=[])=>e.replace(xt,((e,a,l)=>{const o=t.find((e=>String(e.id)===a));if(!o){if(!l)return"";let e="";return l.replace(/\+name="([^<"]+)"/i,((t,a)=>(e=a,t))),`<mention data-id="${a}" data-name="${e}">${e}</mention>`}return`<mention data-id="${a}" data-name="${o.name}">${o.name}</mention>`})),Tt=e=>{const t=[];return e.replace(/(\&amp;)+/g,"&").replace(ht,((e,a,l)=>('="'!==a&&'data-url="true">'!==a&&t.push(l),e))),t},St=(e,t)=>{const a=[];return e.replace(vt,((e,t)=>(a.push(t),e))).replace(xt,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Pt=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),It=e=>e.replace(Et,"$1"),Mt=(e,t=(e=>e))=>((e,t=(e=>e))=>{var a;return t(null===(a=e.replace(/(\&nbsp;)+/g," ").replace(/(\&amp;)+/g,"&"))||void 0===a?void 0:a.replace(/(\u200c|&zwnj;)+/g,"").replace(ht,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(gt,((e,t,a)=>{var l;const o=null===(l=t.match(/data-href="([^"]*)"/im))||void 0===l?void 0:l[1];return o?`<a href="${o}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(vt,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(It(e)),t),zt=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Lt=e=>e.match(wt)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Bt=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return It(e).replace(new RegExp(`\\b(${a.map((e=>Pt(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},Rt=(e,t,o)=>"string"==typeof e?Promise.resolve(e):l.__awaiter(void 0,void 0,void 0,(function*(){var l;const n=new FormData;if(e.type.startsWith("image/gif"))n.append("image",e);else{const t=yield Promise.resolve().then((function(){return M(require("browser-image-compression"))})),a=yield t.default(e,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});n.append("image",a)}const i=o?a.callApiWithAdminAuth:a.callApiWithAuth,r=yield i(a.getApiPath(o?a.ADMIN_PATHS.COMMENT.IMAGE_UPLOAD:a.PATHS.COMMENT.IMAGE_UPLOAD,{_locale:t}),"POST",{data:n});return(null===(l=null==r?void 0:r.data)||void 0===l?void 0:l.image)||""})),Ot=(t,a)=>{const[l,o]=e.useState(t||[]);return{onSelectImages:e=>{const n=e.target.files;if(n)if(a&&t){a((t||l).concat(Array.from(n)))}else o((e=>{const l=t||e;return a&&a(l.concat(Array.from(n))),l.concat(Array.from(n))}))},onRemoveImage:e=>{if(a&&t){const l=t;l.splice(e,1),a(l.slice())}else o((l=>{const o=t||l;return o.splice(e,1),a&&a(o.slice()),o.slice()}))},onRemoveAllImages:()=>{a?a([]):o([])},imageSrcs:e.useMemo((()=>(t||l).map((e=>"string"==typeof e?e:URL.createObjectURL(e)))),[t,l]),imageFiles:t||l}},jt=F.default.div`
1042
+ input:focus,
1043
+ textarea:focus,
1044
+ [contenteditable='true'] {
1045
+ outline: none;
1046
+ }
1047
+
1048
+ .textarea-control {
1049
+ position: relative;
1050
+ border: 1px solid ${s.theme.colors.gray200};
1051
+ border-radius: ${s.theme.borderRadius};
1052
+ &.--focus {
1053
+ border-color: ${s.theme.colors.primaryBase};
1054
+ box-shadow: 0px 0px 2px 2px ${s.theme.colors.primary200};
1055
+ }
1056
+
1057
+ .textarea-wrapper {
1058
+ width: 100%;
1059
+ height: 200px;
1060
+ }
1061
+
1062
+ .control-tool {
1063
+ position: absolute;
1064
+ bottom: 0;
1065
+ left: 0;
1066
+ display: flex;
1067
+ width: calc(100% - 2rem);
1068
+ height: 40px;
1069
+ align-items: center;
1070
+ justify-content: flex-end;
1071
+ border-top: 1px solid ${s.theme.colors.gray200};
1072
+ margin: 0 1rem;
1073
+
1074
+ .tool-button {
1075
+ display: flex;
1076
+ width: 2rem;
1077
+ height: 2rem;
1078
+ align-items: center;
1079
+ justify-content: center;
1080
+ background: transparent;
1081
+ cursor: pointer;
1082
+ }
1083
+ .image-icon {
1084
+ vertical-align: middle;
1085
+ }
1086
+ }
1087
+ }
1088
+
1089
+ .link-preview-wrapper {
1090
+ position: relative;
1091
+ .icon-close {
1092
+ position: absolute;
1093
+ top: 5px;
1094
+ right: 5px;
1095
+ width: 24px;
1096
+ height: 24px;
1097
+ cursor: pointer;
1098
+ }
1099
+ }
1100
+
1101
+ .image-gallery {
1102
+ margin-bottom: 1rem;
1103
+
1104
+ .image-item {
1105
+ position: relative;
1106
+ overflow: hidden;
1107
+ width: 100%;
1108
+ height: 0;
1109
+ padding-top: 67%;
1110
+ margin-top: 1rem;
1111
+ border-radius: ${s.theme.borderRadius};
1112
+
1113
+ & > img {
1114
+ position: absolute;
1115
+ top: 0;
1116
+ left: 0;
1117
+ width: 100%;
1118
+ height: 100%;
1119
+ object-fit: cover;
1120
+ }
1121
+
1122
+ .close-btn {
1123
+ position: absolute;
1124
+ top: 8px;
1125
+ right: 8px;
1126
+ left: unset;
1127
+ width: 24px;
1128
+ height: 24px;
1129
+ cursor: pointer;
1130
+ }
1131
+ }
1132
+ }
1133
+
1134
+ .description-label {
1135
+ margin-bottom: 5px;
1136
+ color: ${s.theme.colors.gray600};
1137
+ /* font-family: 'Open Sans', sans-serif; */
1138
+ font-size: 13px;
1139
+ font-weight: bold;
1140
+ }
1141
+
1142
+ .count-string {
1143
+ margin-top: 5px;
1144
+ color: ${s.theme.colors.gray500};
1145
+ font-size: 11px;
1146
+ text-align: right;
1147
+ }
1148
+
1149
+ .input-notification {
1150
+ display: flex;
1151
+
1152
+ & > img {
1153
+ width: 16px;
1154
+ height: 16px;
1155
+ margin-top: 1.5px;
1156
+ margin-right: 8px;
1157
+ }
1158
+ }
1159
+ `,Ft=F.default.div`
1160
+ height: 100%;
1161
+ position: relative;
1162
+ width: 100%;
1163
+ display: flex;
1164
+ flex-direction: column;
1165
+ .ql-toolbar.ql-snow {
1166
+ top: 0;
1167
+ width: 100%;
1168
+ position: sticky;
1169
+ z-index: 3;
1170
+ border: none;
1171
+ border-bottom: 1px solid #ccc;
1172
+ background: white;
1173
+ .ql-formats {
1174
+ display: inline-flex;
1175
+ align-items: center;
1176
+ margin-right: 0.5rem;
1177
+ .link-tool-wrapper {
1178
+ .popover-menu__content {
1179
+ padding: 0.5rem;
1180
+ transform: translateX(calc(-50% - 1rem));
1181
+ max-width: calc(100vw - 4rem);
1182
+ ::before {
1183
+ right: calc(50% - 8px);
1184
+ }
1185
+ .link-tool-popover {
1186
+ input {
1187
+ padding-left: 1rem;
1188
+ }
1189
+ .link-input-url {
1190
+ margin-bottom: 0.5rem;
1191
+ }
1192
+ .link-input-text {
1193
+ margin-bottom: 0.5rem;
1194
+ }
1195
+ label {
1196
+ display: inline-block;
1197
+ margin-bottom: 0.2rem;
1198
+ }
1199
+ .link-input-button-wrapper {
1200
+ &[data-is-marrybaby='true'] {
1201
+ .link-input-button {
1202
+ border: solid 2px ${s.theme.mbColors.pink};
1203
+ background-color: ${s.theme.mbColors.pink};
1204
+ &:hover:not(:disabled) {
1205
+ border: solid 2px ${s.theme.mbColors.pink};
1206
+ background-color: ${s.theme.colors.white};
1207
+ color: ${s.theme.mbColors.pink};
1208
+ }
1209
+ }
1210
+ }
1211
+ }
1212
+ .link-input-button {
1213
+ width: auto;
1214
+ height: auto;
1215
+ padding: 0.4rem 1rem;
1216
+ background-color: ${s.theme.colors.primaryBase};
1217
+
1218
+ &:disabled {
1219
+ border-color: #bfbfbf;
1220
+ background-color: #bfbfbf;
1221
+ color: #fff;
1222
+ cursor: not-allowed;
1223
+ }
1224
+ &:hover:not(:disabled) {
1225
+ background-color: ${s.theme.colors.primaryHover};
1226
+ }
1227
+ }
1228
+ .error-text {
1229
+ padding: 0;
1230
+ margin-bottom: 0.5rem;
1231
+ font-weight: 600;
1232
+ color: ${s.theme.colors.red700};
1233
+ }
1234
+ }
1235
+ }
1236
+ }
1237
+ }
1238
+ @media (max-width: 450px) {
1239
+ position: relative;
1240
+ .ql-formats {
1241
+ .link-tool-wrapper {
1242
+ position: unset;
1243
+ .popover-menu__content {
1244
+ left: 0;
1245
+ transform: unset;
1246
+ max-width: 100%;
1247
+ }
1248
+ }
1249
+ }
1250
+ }
1251
+ }
1252
+ .quill {
1253
+ flex: 1;
1254
+ overflow-y: hidden;
1255
+ .ql-container {
1256
+ display: inline-block;
1257
+ width: 100%;
1258
+ min-height: 100%;
1259
+ /* padding: 14px 16px; */
1260
+ border: none;
1261
+ border-radius: ${s.theme.borderRadius};
1262
+ color: ${s.theme.colors.gray800};
1263
+ font-size: 1rem;
1264
+ line-height: 1.5;
1265
+ resize: none;
1266
+ white-space: break-spaces;
1267
+ .ql-editor {
1268
+ word-break: break-word;
1269
+ overflow-wrap: break-word;
1270
+ /* -ms-overflow-style: none;
1271
+ scrollbar-width: none;
1272
+ &::-webkit-scrollbar {
1273
+ display: none;
1274
+ } */
1275
+ }
1276
+ mocka {
1277
+ padding: 2px 6px;
1278
+ border-radius: 1rem;
1279
+ &[data-url='true'] {
1280
+ /* background-color: #eeeeff; */
1281
+ font-style: italic;
1282
+ color: #1890ff;
1283
+ cursor: pointer;
1284
+ outline: none;
1285
+ text-decoration: underline;
1286
+ }
1287
+ &[data-error='true'] {
1288
+ background-color: #ffeeee;
1289
+ color: red;
1290
+ text-decoration: underline;
1291
+ font-style: bold;
1292
+ }
1293
+ }
1294
+ mention {
1295
+ padding: 2px 6px;
1296
+ border-radius: 1rem;
1297
+ background-color: #eeeeff;
1298
+ color: #1890ff;
1299
+ cursor: pointer;
1300
+ outline: none;
1301
+ text-decoration: none;
1302
+ }
1303
+ ol,
1304
+ ul {
1305
+ padding-left: 1rem;
1306
+ }
1307
+ }
1308
+ }
1309
+ .mention-search-container {
1310
+ position: absolute;
1311
+ background: white;
1312
+ border-radius: ${s.theme.borderRadius};
1313
+ filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
1314
+ drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
1315
+ drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
1316
+ overflow-y: scroll;
1317
+ z-index: 99;
1318
+ ::-webkit-scrollbar {
1319
+ -webkit-appearance: none;
1320
+ }
1321
+ ::-webkit-scrollbar:vertical {
1322
+ width: 14px;
1323
+ }
1324
+ ::-webkit-scrollbar-thumb {
1325
+ border-radius: ${s.theme.borderRadius};
1326
+ background-color: #d9d9d9;
1327
+ @supports (background-clip: padding-box) {
1328
+ border: 3px solid rgba(0, 0, 0, 0);
1329
+ background-clip: padding-box;
1330
+ }
1331
+ @supports not (background-clip: padding-box) {
1332
+ border: 3px solid white;
1333
+ }
1334
+ }
1335
+ ::-webkit-scrollbar-track {
1336
+ background-color: #fff;
1337
+ border-radius: 0 6px 6px 0;
1338
+ border-left: 1px solid #f2f2f2;
1339
+ }
1340
+ .mention-search-item {
1341
+ cursor: pointer;
1342
+ padding: 12px 1rem;
1343
+ display: flex;
1344
+ align-items: center;
1345
+ &.item-selected {
1346
+ background-color: ${s.theme.colors.gray100};
1347
+ }
1348
+ .search-avatar {
1349
+ width: 40px;
1350
+ height: 40px;
1351
+ font-size: 20px;
1352
+ margin-right: 20px;
1353
+ }
1354
+ }
1355
+ }
1356
+ `;let Dt=null;function Vt(e){var t,a;let l=-1;if(void 0!==window.getSelection){const o=window.getSelection();if((null==o?void 0:o.rangeCount)&&(null==o?void 0:o.rangeCount)>0){const o=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(o){const t=o.cloneRange();t.selectNodeContents(e),t.setEnd(o.endContainer,o.endOffset),l=Ut(t.cloneContents().childNodes,l);const n=null===(a=o.endContainer.parentElement)||void 0===a?void 0:a.closest("mocka"),i=o.endContainer.nodeValue||o.endContainer.outerHTML;n&&(null==i?void 0:i.length)&&(l=l-o.endOffset+(n.outerHTML.length-(null==n?void 0:n.outerHTML.lastIndexOf(i))))}}}return l}function Ut(e,t){return e.forEach(((a,l)=>{const o=l+1===e.length;if(a.nodeType===Node.ELEMENT_NODE){const e=a.outerHTML;if(!o)return void(t+=e.length);t+=e.indexOf(">")+1,t=Ut(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").length)})),t}l.__awaiter(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield Promise.resolve().then((function(){return M(require("react-quill"))}));Dt=e.default;const t=e.Quill||Dt.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 l extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return l.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,l;t&&(null===(l=null===(a=null==t?void 0:t["data-text"])||void 0===a?void 0:a.replace(/(\&nbsp;)+/g," "))||void 0===l?void 0:l.replace(/(\u200c|&zwnj;)+/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"]))}}l.blotName="mocka1",l.tagName="mocka",t.register(l);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.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,l;t&&t["data-id"]&&(null===(l=null===(a=null==t?void 0:t["data-name"])||void 0===a?void 0:a.replace(/(\&nbsp;)+/g," "))||void 0===l?void 0:l.replace(/(\u200c|&zwnj;)+/g,""))&&(t["data-id"]&&e.setAttribute("data-id",t["data-id"]),t["data-name"]&&e.setAttribute("data-name",t["data-name"]))}}o.blotName="mention",o.tagName="mention",t.register(o)}));const _t=(e,t)=>{var a;const{formatUrl:l,bannedWords:o=[]}=t||{},n=e.replace(/<font [^\>]*>(.+)<\/font>/gim,((e,t)=>t.replace(/<u[^\>]*>(.+)<\/u>/gim,"$1"))).replace(bt,((e,t,a,l)=>{if(l!==a){const e=a.split(" "),o=e.findIndex(((t,a)=>{const o=e.slice(0,a+1).join(" ");return!l.startsWith(o)}));if(0===o)return`@${l}`;{const a=(o<0?e:e.slice(0,o)).join(" "),n=l.slice(a.length).trim();return console.log(o,a,n),`<mention data-id="${t}" data-name="${a}">${a}</mention> ${n} `}}return e}));if(!l)return{value:Bt(n,o)};let i=(e=>e.replace(Et,((e,t)=>{const a=document.createElement("div");a.innerHTML=e;const l=a.firstChild;return(null==l?void 0:l.innerText)!==(null==l?void 0:l.getAttribute("data-bad-word"))?t:e})))((e=>{var t,a;return null===(a=null===(t=e.replace(/(\&nbsp;)+/g," "))||void 0===t?void 0:t.replace(/(\u200c|&zwnj;)+/g,""))||void 0===a?void 0:a.replace(gt,((e,t,a)=>{var l;const o=null===(l=t.match(/data-href="([^"]*)"/im))||void 0===l?void 0:l[1];return!o||o===a||a.match(yt)?a:o?`<a href="${o}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(ht,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return kt({text:t,url:t,method:"edit"})}return e})).replace(Ct,((e,t,a)=>kt({text:a||t,url:t,method:"edit"})))})(n));const r=(e=>{var t;return[...Tt(e),...(null===(t=e.match(gt))||void 0===t?void 0:t.map((e=>{var t,a;const l=null===(t=e.match(/data-href="([^"]*)"/im))||void 0===t?void 0:t[1],o=null===(a=e.match(/>(.*?)<\/mocka>/im))||void 0===a?void 0:a[1];return l||o})))||[]].filter((e=>!!e))})(n);if(r){const e=[];let t="";return r.forEach((t=>{if(t)try{const a=new URL(t);zt.some((e=>a.origin.endsWith(e)))||e.push(t)}catch(a){e.push(t)}})),e.length>0&&(i=i.replace(new RegExp(`data-url="true">(${e.map(Pt).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Pt).join("|")})" data-url="true">`,"gi"),'data-href="$1" data-error="true" data-url="true">')),t=null===(a=r.filter((t=>-1===e.indexOf(t))))||void 0===a?void 0:a[0],{invalidUrls:e,previewUrl:t,value:Bt(i,o)}}return{value:Bt(i,o)}},Ht=({html:o,onChange:n,className:r,style:s,onImagePickerClick:d,bannedWords:c=[],onInvalidUrlsChange:u,onPreviewUrlChange:m,setEditorRef:p,isReplying:h})=>{var f,v,b,x;const w=e.useRef([]);w.current=c;const[C,E]=e.useState([]),[k,A]=e.useState(null),{data:{locale:N}}=e.useContext(a.TogetherComponentGlobalContext),T=(null==c?void 0:c.join(","))||"";e.useEffect((()=>{var e,t;const a=null===(t=null===(e=j.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;I(a)}),[T]);const S=e=>{k&&k.url===e||(A({url:e,isFetching:!0}),a.callApi(a.getApiPath(a.PATHS.FETCH_PREVIEW,{_locale:N}),"POST",{data:{link:e}}).then((t=>{var a,l,o,n;A({title:null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.title,description:null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.description,image:(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.image)||(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.logo),url:e})})).catch((()=>{A(null)})))},P=e.useRef(S);P.current=S;const I=e.useCallback(R.default((e=>{if(e){const t=_t(e,{bannedWords:w.current,formatUrl:!0}),{invalidUrls:a,previewUrl:l,value:o}=t;a&&E(a),l?P.current(l):A(null),o!==e&&(null==n||n(o))}}),500),[]);e.useEffect((()=>{u&&u(C)}),[C]),e.useEffect((()=>{m&&((null==k?void 0:k.url)?m({title:k.title||"",url:k.url||"",image:k.image||"",description:k.description||""}):m(null))}),[k]);const M=e.useRef(d);M.current=d;const z=i.useUniqueId(),B=e.useRef({toolbar:{handlers:{image:()=>{var e;return null===(e=M.current)||void 0===e?void 0:e.call(M)},link:()=>!1},container:"#toolbar-"+z},preserveWhiteSpace:!0}),O=e.useRef(-1),j=e.useRef(null);p&&(null===(v=null===(f=j.current)||void 0===f?void 0:f.getEditor())||void 0===v?void 0:v.root)&&p(null===(x=null===(b=j.current)||void 0===b?void 0:b.getEditor())||void 0===x?void 0:x.root);const F=()=>{var e,t,a,l,o,n,i,r;if(null===(t=null===(e=j.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Vt(null===(l=null===(a=j.current)||void 0===a?void 0:a.getEditor())||void 0===l?void 0:l.root),t=null===(n=null===(o=j.current)||void 0===o?void 0:o.getEditor())||void 0===n?void 0:n.root.innerHTML;if(e>=0&&e<t.length){if(St(t,!0).length<30-(h?1:0)){const e=function(e){var t,a;let l=null;if(void 0!==window.getSelection){const o=window.getSelection();if((null==o?void 0:o.rangeCount)&&(null==o?void 0:o.rangeCount)>0){const o=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(o){const t=o.cloneRange();t.selectNodeContents(e),t.setEnd(o.endContainer,o.endOffset);const n=(t.endContainer.nodeValue||"").substring(0,o.endOffset),i=n.lastIndexOf("@");if(i+1<n.length&&(0===i||" @"===n.slice(i-1,i+1))){const e=null===(a=n.slice(i+1))||void 0===a?void 0:a.trim();if(e){t.setStart(o.endContainer,i);const a=t.cloneRange();a.setStart(a.endContainer,i),l={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return l}(null===(r=null===(i=j.current)||void 0===i?void 0:i.getEditor())||void 0===r?void 0:r.root);e?(H(e.name,e.rect),G.current=e.replaceRange):(G.current=null,H("",null))}else G.current=null,H("",null);O.current=e}}else V([])},[D,V]=e.useState([]),[U,_]=e.useState({top:0,left:0}),H=e.useCallback(R.default(((e,t,o)=>l.__awaiter(void 0,void 0,void 0,(function*(){var l,n,i,r;if(!e||!DOMRect)return V([]);const s=yield((null===(l=y.getCookie(a.BEARER_TOKEN_COOKIE))||void 0===l?void 0:l.length)||0)>0?a.callApiWithAuth(a.getApiPath(a.PATHS.SEARCH_USER,{_locale:N,name:e}),"get"):a.callApiWithAdminAuth(a.getApiPath(a.ADMIN_PATHS.SEARCH_USER,{_locale:N,name:e}),"get");X(0),V(null===(i=null===(n=null==s?void 0:s.data)||void 0===n?void 0:n.users)||void 0===i?void 0:i.filter((e=>!(null==o?void 0:o.includes(String(e.id))))));const d=t,c=null===(r=q.current)||void 0===r?void 0:r.getBoundingClientRect();if(d&&c){const e=343,t=256,a={top:d.bottom-c.top,width:"min(343px, 100%)",maxHeight:t};c.width-(d.left-c.left)<e?a.right=0:a.left=d.left-c.left,_(a)}}))),500),[]),W=(e,t)=>{var a,l,o;if(G.current){G.current.deleteContents();const n=document.createElement("mention");n.setAttribute("data-id",e),n.setAttribute("data-name",t),n.innerText=t;const i=document.createTextNode(" ");G.current.insertNode(i),G.current.insertNode(n);(null===(l=null===(a=j.current)||void 0===a?void 0:a.getEditor())||void 0===l?void 0:l.root).focus();const r=null===(o=window.getSelection())||void 0===o?void 0:o.getRangeAt(0);null==r||r.setStart(G.current.endContainer,G.current.endOffset),null==r||r.setEnd(G.current.endContainer,G.current.endOffset)}V([])},q=e.useRef(null),G=e.useRef(null),Z=e.useRef(null),[Q,X]=e.useState(0);return e.useEffect((()=>{if(Z.current){const e=Z.current,t=e.children.item(Q);if(t){const a=e.getBoundingClientRect(),l=t.getBoundingClientRect();t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:t.offsetTop+l.height>e.scrollTop+a.height&&(e.scrollTop=t.offsetTop-a.height+l.height)}}}),[Q]),e.useEffect((()=>{const e=function(e){var t;(null===(t=q.current)||void 0===t?void 0:t.contains(e.target))||V([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),L.default.createElement(Ft,{ref:q,className:r,style:s,onKeyDownCapture:e=>{if(null==D?void 0:D.length){let t=!1;if("ArrowDown"===e.key)t=!0,X((e=>e+1>=D.length?0:e+1));else if("Escape"===e.key)t=!0,X(0),V([]);else if("ArrowUp"===e.key)t=!0,X((e=>e-1<0?D.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=D[Q];e&&(t=!0,W(e.id,e.name))}if(t)return e.preventDefault(),!1}}},L.default.createElement(Wt,{id:z,onAddLink:(e,t)=>{var a,l;const o=O.current+1,i=null===(l=null===(a=j.current)||void 0===a?void 0:a.getEditor())||void 0===l?void 0:l.root.innerHTML,r=((null==i?void 0:i.substring(0,o))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==i?void 0:i.substring(o))||"");null==n||n(r),I(r)}}),Dt&&L.default.createElement(Dt,{ref:j,theme:"snow",value:o,onChange:e=>{null==n||n(e),I(e),F()},onChangeSelection:()=>{F()},modules:B.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==D?void 0:D.length)&&L.default.createElement("div",{ref:Z,className:"mention-search-container",style:U},D.map(((e,a)=>L.default.createElement("div",{className:"mention-search-item "+(Q===a?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),W(e.id,e.name)},onMouseEnter:()=>{X(a)}},L.default.createElement(g.UserAvatar,{className:"search-avatar",username:e.name,avatar:e.avatar}),L.default.createElement("div",null,L.default.createElement(t.Text,{size:"p2"},e.name),L.default.createElement(t.Text,{size:"p4",color:"#595959"},"@",e.username)))))))},Wt=({onAddLink:e,id:t})=>L.default.createElement("div",{id:"toolbar-"+t,onClick:e=>{e.preventDefault(),e.stopPropagation()}},L.default.createElement("span",{className:"ql-formats"},L.default.createElement("button",{className:"ql-bold",type:"button"}),L.default.createElement("button",{className:"ql-italic",type:"button"}),L.default.createElement("button",{className:"ql-underline",type:"button"})),L.default.createElement("span",{className:"ql-formats"},L.default.createElement("button",{className:"ql-list",value:"ordered",type:"button"}),L.default.createElement("button",{className:"ql-list",value:"bullet",type:"button"})),L.default.createElement("span",{className:"ql-formats"},L.default.createElement("button",{className:"ql-image",type:"button"}),e&&L.default.createElement(pe,{className:"link-tool-wrapper",toggleButtonContent:L.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})=>L.default.createElement(Gt,{onAddUrl:e,setShow:t}))))),qt=["notification.limitUrlDomain","notification.urlWrongFormat"],Gt=({onAddUrl:l,setShow:o})=>{const{data:{env:{isMarryBaby:n}}}=e.useContext(a.TogetherComponentGlobalContext),{t:r}=i.useTranslations(),[s,d]=e.useState(""),[c,u]=e.useState(""),[m,p]=e.useState(-1),g=s.trim()&&c.trim()&&m<0;return L.default.createElement("div",{className:"link-tool-popover"},L.default.createElement(h.Input,{name:"url",value:s,size:"md",label:"URL",placeholder:r("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{d(e),(e=>{const t=Lt(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?zt.some((t=>e.origin.endsWith("/"+t)||e.origin.endsWith("."+t)))?(p(-1),!0):(p(0),!1):(p(1),!1)}catch(e){return p(1),!1}})(e)}}),m>=0&&L.default.createElement(t.Text,{size:"c2",className:"error-text"},r(qt[m])),L.default.createElement(h.Input,{name:"text",value:c,size:"md",label:r("createPost.urlText"),placeholder:r("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>u(e)}),L.default.createElement("div",{"data-is-marrybaby":n,className:"link-input-button-wrapper"},L.default.createElement(b.Button,{theme:n?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{g&&(l(c.trim(),Lt(s.trim())),o&&o(!1))},isDisabled:!g},r("insert"))))};var Zt="data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 22.9844C17.5228 22.9844 22 18.5072 22 12.9844C22 7.46153 17.5228 2.98438 12 2.98438C6.47715 2.98438 2 7.46153 2 12.9844C2 18.5072 6.47715 22.9844 12 22.9844Z' fill='%23262626'/%3e%3cpath d='M14.8281 10.1562L9.17127 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.17188 10.1562L14.8287 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Qt=({className:l,style:o,bannedWords:n=[],value:r,onChange:d,onPreviewUrlChange:c,onInvalidUrlsChange:u,onImageFilesChange:m,imageFiles:p,isReplying:g})=>{const{t:h}=i.useTranslations(),[f,v]=e.useState(null),b=e.useRef(null),{onSelectImages:x,onRemoveImage:y,imageSrcs:w}=Ot(p,m);return e.useEffect((()=>{c&&((null==f?void 0:f.url)?c({title:f.title||"",url:f.url||"",image:f.image||"",description:f.description||""}):c(null))}),[f]),L.default.createElement(jt,{className:l,style:o},L.default.createElement(t.Text,{size:"p4",className:"description-label"},h("createPost.popup.description")),L.default.createElement("div",{className:"textarea-control"},L.default.createElement("div",{className:"textarea-wrapper"},L.default.createElement(Ht,{html:r||"",onChange:d,bannedWords:n,onImagePickerClick:()=>{var e;return null===(e=b.current)||void 0===e?void 0:e.click()},onPreviewUrlChange:v,onInvalidUrlsChange:u,isReplying:g}))),L.default.createElement(t.Text,{size:"p4",className:"count-string"},h("character"),": ",B.default(r||"").length),(!w||0===w.length)&&f&&L.default.createElement("div",{className:"link-preview-wrapper"},f.isFetching?L.default.createElement(Ue,null):L.default.createElement(L.default.Fragment,null,L.default.createElement(G,{title:f.title,url:f.url||"#",image:f.image,noRefetch:!0}),L.default.createElement("img",{src:Zt,className:"icon-close",onClick:()=>v(null),loading:"lazy"}))),L.default.createElement("input",{ref:b,type:"file",accept:"image/png, image/gif, image/jpeg",multiple:!0,style:{display:"none"},onChange:x}),w.length>a.MAX_IMAGE_UPLOADS?L.default.createElement("div",{className:"input-notification"},L.default.createElement("img",{src:pt,loading:"lazy"}),L.default.createElement(t.Text,{size:"p4",color:s.theme.colors.alertWarning},h("createPost.popup.warningImage"))):null,w.length>0&&L.default.createElement("div",{className:"image-gallery"},w.map(((e,t)=>L.default.createElement("div",{key:t,className:"image-item"},L.default.createElement("img",{src:e,loading:"lazy"}),L.default.createElement("img",{className:"close-btn",src:Zt,onClick:()=>y(t),loading:"lazy"}))))))},Xt=F.default.div`
1357
+ input:focus,
1358
+ textarea:focus,
1359
+ [contenteditable='true'] {
1360
+ outline: none;
1361
+ }
1362
+
1363
+ .title-input {
1364
+ overflow: hidden;
1365
+ width: 100%;
1366
+ padding: 12px 16px;
1367
+ border: solid 1px #d9d9d9;
1368
+ border-radius: ${s.theme.borderRadius};
1369
+ font-size: 16px;
1370
+ line-height: 1.2;
1371
+ white-space: nowrap;
1372
+ :focus {
1373
+ border-color: ${s.theme.colors.primaryBase};
1374
+ box-shadow: 0px 0px 2px 2px ${s.theme.colors.primary200};
1375
+ }
1376
+ br {
1377
+ display: none;
1378
+ }
1379
+ * {
1380
+ display: inline;
1381
+ white-space: nowrap;
1382
+ }
1383
+ mocka {
1384
+ padding: 2px 6px;
1385
+ border-radius: 1rem;
1386
+ &[data-error='true'] {
1387
+ background-color: #ffeeee;
1388
+ color: red;
1389
+ text-decoration: underline;
1390
+ font-style: bold;
1391
+ }
1392
+ }
1393
+ ol,
1394
+ ul {
1395
+ padding-left: 1rem;
1396
+ }
1397
+ }
1398
+
1399
+ label {
1400
+ display: block;
1401
+ margin-bottom: 5px;
1402
+ color: ${s.theme.colors.gray600};
1403
+ font-size: 13px;
1404
+ font-weight: bold;
1405
+ }
1406
+
1407
+ .count-string {
1408
+ margin-top: 5px;
1409
+ color: ${s.theme.colors.gray500};
1410
+ font-size: 11px;
1411
+ text-align: right;
1412
+ }
1413
+ `,Kt=(e,t)=>{if(!t)return e;const{limit:a,bannedWords:l=[]}=t,o="number"==typeof a&&a>=0?e.substring(0,a):e;return Bt(o,l)},$t=({className:a,style:l,bannedWords:o=[],value:n,onChange:r})=>{var s;const{t:d}=i.useTranslations(),[c,u]=e.useState(""),m=e.useRef(null);e.useEffect((()=>{if(m.current){const e=e=>{var t;e.preventDefault();const a=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/plain");document.execCommand("insertHTML",!1,a)},t=m.current;return t.addEventListener("paste",e,{passive:!0}),()=>t.removeEventListener("paste",e)}}),[m]);const p=(null==o?void 0:o.join(","))||"";e.useEffect((()=>{var e;if(p){const t=null===(e=m.current)||void 0===e?void 0:e.innerText;if(t){const e=Bt(t,o);e!==t&&(r&&r(e),u(e))}}}),[p]);const g=e.useCallback(R.default((()=>{if(m.current){const e=Kt(m.current.innerText,{limit:120,bannedWords:o});r&&r(e),u(e)}}),300),[]);return e.useEffect((()=>{setTimeout((()=>{var e;null===(e=m.current)||void 0===e||e.focus()}),500)}),[]),L.default.createElement(Xt,{className:a,style:l},L.default.createElement(h.Input,{name:"title",value:n||c,size:"md",label:d("createPost.title"),CustomInput:L.default.createElement(O.default,{innerRef:m,html:n||c,onChange:()=>{if(m.current&&m.current.innerText!==(n||c)){const e=Kt(m.current.innerText,{bannedWords:o});r&&r(e),u(e),g()}},className:"title-input"})}),L.default.createElement(t.Text,{size:"p4",className:"count-string"},d("createPost.popup.wordCount",{count:(null===(s=m.current)||void 0===s?void 0:s.innerText.length)||0,max:120})))},Yt=F.default.div`
1414
+ display: flex;
1415
+ width: 100%;
1416
+ flex-wrap: wrap;
1417
+ margin-top: 1rem;
1418
+
1419
+ .tag-item {
1420
+ min-height: 32px;
1421
+ padding: 5px 12px;
1422
+ border: 1px solid ${s.theme.colors.neutral100};
1423
+ margin-right: 1rem;
1424
+ margin-bottom: 8px;
1425
+ border-radius: 1rem;
1426
+ color: ${s.theme.colors.gray800};
1427
+ cursor: pointer;
1428
+ font-size: 13px;
1429
+ line-height: 22px;
1430
+ transition: all 0.2s;
1431
+
1432
+ &.--active {
1433
+ border-color: ${s.theme.colors.primary50};
1434
+ background: ${s.theme.colors.primary50};
1435
+ color: ${s.theme.colors.primaryBase};
1436
+ }
1437
+ &[data-disabled='true'] {
1438
+ background: ${s.theme.colors.gray100};
1439
+ color: ${s.theme.colors.gray800};
1440
+ }
1441
+ }
1442
+ .topic-spinner {
1443
+ margin-right: auto;
1444
+ margin-left: auto;
1445
+ & > button {
1446
+ width: 24px;
1447
+ height: 24px;
1448
+ }
1449
+ }
1450
+ &[data-is-marrybaby='true'] {
1451
+ .tag-item {
1452
+ border-color: transparent;
1453
+ background: #f3f3f3;
1454
+ color: #3e3f58;
1455
+ &.--active {
1456
+ border-color: #b6cdff;
1457
+ background: #e0e9fb;
1458
+ color: #3e3f58;
1459
+ }
1460
+ }
1461
+ }
1462
+ `,Jt=({className:t,style:o,topics:n,communityId:i,onChange:r,isLoading:s,disabled:d,forceTopics:c,selectedTopics:u,noFetch:m,dataEventCategory:p,dataEventAction:h,dataEventLabel:f})=>{const{data:{locale:v,env:{isMarryBaby:b}}}=e.useContext(a.TogetherComponentGlobalContext),[x,y]=e.useState(n?[...n]:[]),[w,C]=e.useState(u?[...u]:[]),[E,k]=e.useState(!1),A=e.useRef(n);A.current=n,e.useEffect((()=>{var e;!i||m||(null===(e=A.current)||void 0===e?void 0:e.length)||(y([]),k(!0),l.__awaiter(void 0,void 0,void 0,(function*(){var e;try{const t=yield a.callApi(a.getApiPath(a.PATHS.TOPIC.LIST,{communityId:i,_locale:v}),"GET"),l=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.topics;Array.isArray(l)&&y((()=>(null==l?void 0:l.map(g.formatTopic).sort(((e,t)=>(e.order||0)-(t.order||0))))||[]))}catch(e){console.log(e),k(!1)}k(!1)})))}),[i,m]);const N=null==n?void 0:n.map((e=>e.id)).join("-"),T=null==x?void 0:x.map((e=>e.id)).join("-"),S=null==c?void 0:c.map((e=>e.id)).join("-");e.useEffect((()=>{n&&void 0!==N&&N!==T&&y(n)}),[n,N,T]);const P=e.useMemo((()=>x.filter((e=>!(null==c?void 0:c.some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)))))),[T,S]);return L.default.createElement(Yt,{"data-is-marrybaby":b,className:t,style:o},c.map((e=>L.default.createElement(ea,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:!0,selected:!0,dataEventAction:h,dataEventCategory:p,dataEventLabel:f}))),P.map((e=>L.default.createElement(ea,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:d,selected:(u||w).some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)),onClick:()=>{const t=u||w,a=t.findIndex((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId));-1!==a?t.splice(a,1):t.push(e),r&&u?r(t.slice()):(r&&r(t.slice()),C(t.slice()))},dataEventAction:h,dataEventCategory:p,dataEventLabel:f}))),(s||E)&&L.default.createElement(Ue,{className:"topic-spinner"}))},ea=e=>{var{topic:t,disabled:a,selected:o,onClick:n}=e,i=l.__rest(e,["topic","disabled","selected","onClick"]);return L.default.createElement("div",Object.assign({className:"tag-item"+(o?" --active":""),"data-disabled":a,onClick:a?void 0:n},i),t.name)},ta=F.default.div`
1463
+ [data-type='confirm'] {
1464
+ width: min(360px, 100%);
1465
+ height: auto;
1466
+ &[data-open='false'] {
1467
+ top: calc(-100% - 500px);
1468
+ }
1469
+ }
1470
+ z-index: 600;
1471
+
1472
+ .header {
1473
+ display: none !important;
1474
+ }
1475
+
1476
+ .confirm-dialog {
1477
+ position: relative;
1478
+ overflow: auto;
1479
+ width: 100%;
1480
+ padding-top: 44px;
1481
+ background: #fff;
1482
+ border-radius: ${s.theme.borderRadius};
1483
+
1484
+ .confirm-content {
1485
+ display: flex;
1486
+ flex-direction: column;
1487
+ align-items: center;
1488
+ padding: 0 16px 16px;
1489
+ text-align: center;
1490
+
1491
+ .title {
1492
+ margin-bottom: 8px;
1493
+ font-size: 24px;
1494
+ line-height: 32px;
1495
+ word-break: break-word;
1496
+ overflow-wrap: break-word;
1497
+ }
1498
+
1499
+ .desc {
1500
+ margin-bottom: 24px;
1501
+ color: ${s.theme.colors.gray500};
1502
+ font-size: 18px;
1503
+ line-height: 24px;
1504
+ text-align: center;
1505
+ word-break: break-word;
1506
+ overflow-wrap: break-word;
1507
+ }
1508
+
1509
+ .btn-group {
1510
+ display: flex;
1511
+ flex-wrap: wrap;
1512
+ align-items: center;
1513
+ justify-content: center;
1514
+
1515
+ button {
1516
+ margin: 0 4px 0.5rem;
1517
+ }
1518
+ }
1519
+ }
1520
+ }
1521
+ .thumbnail-container {
1522
+ width: 80px;
1523
+ height: 80px;
1524
+ margin-bottom: 32px;
1525
+ .thumbnail {
1526
+ width: 100%;
1527
+ height: 100%;
1528
+ }
1529
+ &.is-icon {
1530
+ display: flex;
1531
+ align-items: center;
1532
+ justify-content: center;
1533
+ background: #e0e9fc;
1534
+ border-radius: 1rem;
1535
+ .thumbnail {
1536
+ width: 40px;
1537
+ height: 40px;
1538
+ }
1539
+ }
1540
+ }
1541
+ &[data-is-marrybaby='true'] {
1542
+ .popup-frame {
1543
+ > div:first-child {
1544
+ overflow: hidden;
1545
+ border-radius: 1rem;
1546
+ &[data-open='true'] {
1547
+ ${w.MediaQueries.mbDown} {
1548
+ top: 100%;
1549
+ transform: translate(-50%, -100%);
1550
+ max-width: unset;
1551
+ width: 100%;
1552
+ background: unset;
1553
+ overflow: unset;
1554
+ }
1555
+ }
1556
+ }
1557
+ .popup-content {
1558
+ .close-button {
1559
+ ${w.MediaQueries.mbDown} {
1560
+ display: none;
1561
+ }
1562
+ }
1563
+ .confirm-dialog {
1564
+ ${w.MediaQueries.mbDown} {
1565
+ background: unset;
1566
+ position: relative;
1567
+ overflow-x: hidden;
1568
+ &::before {
1569
+ content: '';
1570
+ width: 200%;
1571
+ background: #fff;
1572
+ position: absolute;
1573
+ left: 50%;
1574
+ top: 0;
1575
+ transform: translateX(-50%);
1576
+ z-index: -1;
1577
+ height: 100%;
1578
+ border-top-left-radius: 100%;
1579
+ border-top-right-radius: 100%;
1580
+ }
1581
+ }
1582
+ .confirm-content {
1583
+ padding: 0 40px 40px;
1584
+ ${w.MediaQueries.mbDown} {
1585
+ padding-left: 1.5rem;
1586
+ padding-right: 1.5rem;
1587
+ }
1588
+ .btn-group {
1589
+ width: 100%;
1590
+ justify-content: space-between;
1591
+ button {
1592
+ flex: 1;
1593
+ margin: 0;
1594
+ &:first-child {
1595
+ margin-right: 0.5rem;
1596
+ }
1597
+ }
1598
+ }
1599
+ }
1600
+ }
1601
+ }
1602
+ .thumbnail-container {
1603
+ ${w.MediaQueries.mbDown} {
1604
+ display: none;
1605
+ }
1606
+ &.is-icon {
1607
+ background: #ffeaf1;
1608
+ border-radius: 24px;
1609
+ }
1610
+ &.is-mobile {
1611
+ position: absolute;
1612
+ top: 0;
1613
+ left: 50%;
1614
+ display: none;
1615
+ width: 48px;
1616
+ height: 48px;
1617
+ transform: translate(-50%, -50%);
1618
+ &.is-icon {
1619
+ border-radius: 1rem;
1620
+ .thumbnail {
1621
+ width: 24px;
1622
+ height: 24px;
1623
+ }
1624
+ }
1625
+ ${w.MediaQueries.mbDown} {
1626
+ display: flex;
1627
+ }
1628
+ }
1629
+ }
1630
+ }
1631
+ }
1632
+ `,aa=e=>{var{size:t,color:a,isExpand:o,useCurrentColor:n,isActive:i,activeColor:r}=e,s=l.__rest(e,["size","color","isExpand","useCurrentColor","isActive","activeColor"]);const d=n?"currentColor":i?r:a,c=Object.assign({width:t,height:t},s);return o?L.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},c),L.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})):L.default.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 14 14",fill:d},s),L.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"}))};aa.defaultProps={size:24,color:s.theme.colors.gray600,activeColor:s.theme.colors.primaryBase};const la=F.default.div`
1633
+ [data-type='confirm'] {
1634
+ max-width: 468px;
1635
+ /* height: 486px; */
1636
+ padding: 0;
1637
+
1638
+ .popup-content {
1639
+ display: flex;
1640
+ flex-direction: column;
1641
+ padding: 0;
1642
+
1643
+ .close-button {
1644
+ top: 16px;
1645
+ right: 16px;
1646
+ width: 24px;
1647
+ height: 24px;
1648
+ z-index: 5;
1649
+ }
1650
+
1651
+ .header {
1652
+ display: flex;
1653
+ height: 56px;
1654
+ align-items: center;
1655
+ padding: 16px 56px 16px 32px;
1656
+ border-bottom: 1px solid ${s.theme.colors.neutral100};
1657
+ font-weight: 900;
1658
+ width: 100%;
1659
+ justify-content: space-between;
1660
+ }
1661
+
1662
+ .content {
1663
+ overflow: auto;
1664
+ flex: 1;
1665
+ .topic-list-wrapper {
1666
+ padding: 1rem;
1667
+ }
1668
+ }
1669
+ }
1670
+ }
1671
+
1672
+ > div&[data-open='true'] {
1673
+ z-index: 250;
1674
+ &:last-child {
1675
+ z-index: 200;
1676
+ }
1677
+ }
1678
+
1679
+ ${e=>e.isExpand&&"\n & > div[data-open] {\n width: 100%;\n height: 100%;\n max-width: none;\n max-height: none;\n }\n "}
1680
+
1681
+ ${e=>e.hasFullscreen&&"\n & > div[data-open] {\n transition: all 0.5s ease-in-out, width 0s, height 0s;\n }\n "}
1682
+ `,oa=F.default.div`
1683
+ cursor: pointer;
1684
+ display: flex;
1685
+ align-items: center;
1686
+ `;var na="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 ia=({className:t,style:a,closeIcon:l,heading:o="",children:n,isOpen:i=!1,hasFullscreen:r=!1,onClose:s=(()=>null)})=>{const[d,c]=e.useState(!1);return L.default.createElement(la,{className:t,style:a,isExpand:d,hasFullscreen:r},L.default.createElement(g.Popup,{type:"confirm",onClose:s,isOpen:i,closeIcon:l||L.default.createElement("img",{src:na,loading:"lazy"}),enableAnimation:!r},L.default.createElement("div",{className:"header"},L.default.createElement(x.Heading,{tag:"h5"},o),r&&L.default.createElement(oa,{onClick:()=>c(!d)},L.default.createElement(aa,{size:14,isExpand:d}))),L.default.createElement("div",{className:"content"},"function"==typeof n?n(d):n)))},ra=({className:l,isMarryBaby:o,style:n,title:i,description:r,acceptText:s,cancelText:d,onAccept:c,onCancel:u,thumbnail:m,isThumbnailIcon:p,onClose:g,acceptBtnTracking:h,acceptBtnProps:f,cancelBtnProps:v})=>{const{data:{env:{isMarryBaby:y}}}=e.useContext(a.TogetherComponentGlobalContext),C="boolean"==typeof o?o:y,[E,k]=e.useState(!1);return e.useEffect((()=>(w.toggleNoScroll(!0),setTimeout((()=>k(!0)),0),()=>w.toggleNoScroll(!1))),[]),"undefined"==typeof window?null:j.createPortal(L.default.createElement(ta,{"data-is-marrybaby":C,className:l,style:n,"data-open":E},L.default.createElement(ia,{className:"popup-frame",isOpen:E,onClose:g},L.default.createElement("div",{className:"confirm-dialog",onClick:e=>e.stopPropagation()},L.default.createElement("div",{className:"confirm-content"},m&&L.default.createElement("div",{className:"thumbnail-container "+(p?"is-icon":"")},L.default.createElement("img",{className:"thumbnail",src:m,loading:"lazy"})),L.default.createElement(x.Heading,{className:"title",tag:"h2"},i),L.default.createElement(t.Text,{className:"desc",size:"lg"},r),L.default.createElement("div",{className:"btn-group"},L.default.createElement(b.Button,Object.assign({theme:C?"marryBaby":"helloSites",size:"md",color:"tertiary",onClick:()=>{null==c||c(),null==g||g()}},f,h),s),L.default.createElement(b.Button,Object.assign({theme:C?"marryBaby":"helloSites",size:"md",onClick:()=>{null==u||u(),null==g||g()}},v),d)))),C&&m&&L.default.createElement("div",{className:"thumbnail-container is-mobile "+(p?"is-icon":"")},L.default.createElement("img",{className:"thumbnail",src:m,loading:"lazy"})))),w.getPopupWrapperDom())},sa=F.default.div`
1687
+ padding: 1rem;
1688
+ border-top: 1px solid #f2f2f2;
1689
+ &[data-is-reply='true'] {
1690
+ padding-right: 0;
1691
+ padding-left: 0;
1692
+ border-top: 1px solid #e4e8ec;
1693
+ margin-right: 1rem;
1694
+ margin-left: 1rem;
1695
+ }
1696
+ .error-text {
1697
+ padding: 1rem;
1698
+ color: ${s.theme.colors.red700};
1699
+ }
1700
+ .reply-to-container {
1701
+ display: flex;
1702
+ justify-content: space-between;
1703
+ padding-bottom: 0.75rem;
1704
+ margin-top: -0.25rem;
1705
+ .icon-close-comment {
1706
+ width: 16px;
1707
+ height: 16px;
1708
+ cursor: pointer;
1709
+ }
1710
+ a {
1711
+ text-decoration: none;
1712
+ }
1713
+ }
1714
+ .input-container {
1715
+ display: flex;
1716
+ align-items: center;
1717
+ .avatar-wrapper {
1718
+ display: flex;
1719
+ flex-shrink: 0;
1720
+ align-items: center;
1721
+ margin-right: 0.5rem;
1722
+ &.avatar-wrapper-reply {
1723
+ width: 32px;
1724
+ height: 32px;
1725
+ .avatar {
1726
+ width: 32px;
1727
+ height: 32px;
1728
+ }
1729
+ }
1730
+ }
1731
+ .input-wrapper {
1732
+ margin-right: 0.5rem;
1733
+ &[data-has-error] {
1734
+ .as-input {
1735
+ border-color: ${s.theme.colors.red700};
1736
+ }
1737
+ }
1738
+
1739
+ .as-input {
1740
+ .textarea {
1741
+ width: 100%;
1742
+ max-height: 225px;
1743
+ min-height: 75px;
1744
+ .ql-toolbar {
1745
+ padding: 0;
1746
+ }
1747
+ .ql-editor {
1748
+ padding-left: 0;
1749
+ padding-right: 0;
1750
+ }
1751
+ .quill {
1752
+ height: 0;
1753
+ }
1754
+ }
1755
+ width: 100%;
1756
+ padding: 12px 16px;
1757
+ border: solid 1px ${s.theme.colors.gray200};
1758
+ border-radius: ${s.theme.borderRadius};
1759
+
1760
+ &:active,
1761
+ &:focus {
1762
+ border-color: ${s.theme.colors.primaryBase};
1763
+ box-shadow: 0px 0px 2px 2px ${s.theme.colors.primary200};
1764
+ }
1765
+
1766
+ &:disabled {
1767
+ background-color: ${s.theme.colors.gray100};
1768
+ cursor: not-allowed;
1769
+ }
1770
+
1771
+ span {
1772
+ &[data-error='true'] {
1773
+ color: red;
1774
+ text-decoration: underline;
1775
+ }
1776
+ }
1777
+ }
1778
+
1779
+ &[data-has-action-icon] {
1780
+ .as-input {
1781
+ padding: 12px 48px 12px 16px;
1782
+ }
1783
+ }
1784
+ &[data-has-display-icon] {
1785
+ .as-input {
1786
+ padding: 12px 16px 12px 48px;
1787
+ }
1788
+ }
1789
+
1790
+ &[data-has-action-icon][data-has-display-icon] {
1791
+ .as-input {
1792
+ padding: 12px 48px;
1793
+ }
1794
+ }
1795
+
1796
+ &[data-size='lg'] {
1797
+ .as-input {
1798
+ font-size: 16px;
1799
+ font-weight: ${s.theme.sizes.fwRegular};
1800
+ ${w.MediaQueries.mbDown} {
1801
+ font-size: 22px;
1802
+ line-height: 1.2;
1803
+ }
1804
+
1805
+ ${w.MediaQueries.mbUp} {
1806
+ font-size: 26px;
1807
+ line-height: 1.2;
1808
+ }
1809
+ }
1810
+ }
1811
+ &[data-size='md'] {
1812
+ .as-input {
1813
+ font-weight: ${s.theme.sizes.fwRegular};
1814
+ line-height: 22px;
1815
+ ${w.MediaQueries.mbDown} {
1816
+ font-size: 14px;
1817
+ line-height: 1.2;
1818
+ }
1819
+
1820
+ ${w.MediaQueries.mbUp} {
1821
+ font-size: 16px;
1822
+ line-height: 1.2;
1823
+ }
1824
+ }
1825
+ }
1826
+ &[data-size='sm'] {
1827
+ .as-input {
1828
+ font-weight: ${s.theme.sizes.fwRegular};
1829
+ line-height: 20px;
1830
+ ${w.MediaQueries.mbDown} {
1831
+ font-size: 13px;
1832
+ line-height: 1.5;
1833
+ }
1834
+
1835
+ ${w.MediaQueries.mbUp} {
1836
+ font-size: 13px;
1837
+ line-height: 1.5;
1838
+ }
1839
+ }
1840
+ }
1841
+ }
1842
+ .images-input-label {
1843
+ height: 100%;
1844
+ cursor: pointer;
1845
+ .icon-images-input {
1846
+ width: 24px;
1847
+ height: 24px;
1848
+ vertical-align: middle;
1849
+ }
1850
+ }
1851
+ .send-button {
1852
+ display: flex;
1853
+ width: 40px;
1854
+ height: 40px;
1855
+ flex-shrink: 0;
1856
+ align-items: center;
1857
+ justify-content: center;
1858
+ padding: 0;
1859
+ border: none;
1860
+ &.send-button-post {
1861
+ background: ${s.theme.colors.neutral100};
1862
+ border-radius: 50%;
1863
+ }
1864
+ .icon-enter {
1865
+ width: 20px;
1866
+ height: 20px;
1867
+ vertical-align: middle;
1868
+ }
1869
+ &[data-is-loading='true'] {
1870
+ > div {
1871
+ display: flex;
1872
+ align-items: center;
1873
+ justify-content: center;
1874
+ }
1875
+ }
1876
+ }
1877
+ }
1878
+ .preview-images-container {
1879
+ margin-top: 1rem;
1880
+ .image-src-wrapper {
1881
+ position: relative;
1882
+ width: 100%;
1883
+ padding-top: 66.67%;
1884
+ &:not(:last-child) {
1885
+ margin-bottom: 1rem;
1886
+ }
1887
+ .preview-image {
1888
+ position: absolute;
1889
+ top: 0;
1890
+ left: 0;
1891
+ width: 100%;
1892
+ height: 100%;
1893
+ object-fit: cover;
1894
+ }
1895
+ .icon-close-circle {
1896
+ position: absolute;
1897
+ top: 10px;
1898
+ right: 10px;
1899
+ width: 20px;
1900
+ height: 20px;
1901
+ cursor: pointer;
1902
+ }
1903
+ }
1904
+ }
1905
+ `,da=e.createContext({});const ca=({isReply:o,className:n,onClose:r,replyToName:s,style:d,replyingId:c,replyingUser:u,onPostSuccess:m,post:p,isMarryBaby:f})=>{const{action:{pushNotifications:v,sanitizeFunction:x},data:{userInfo:y,locale:w,env:{isMarryBaby:C}}}=e.useContext(a.TogetherComponentGlobalContext),E="boolean"==typeof f?f:C,{t:k}=i.useTranslations(),{onSelectImages:A,onRemoveImage:N,imageSrcs:T,onRemoveAllImages:S,imageFiles:P}=Ot(),[I,M]=e.useState(""),{trigger:z}=e.useContext(da),[B,R]=e.useState(!1),O=e.useRef(null),j=e.useRef(null),F=e.useRef(null),[D,V]=e.useState([]),[U,_]=e.useState([]),[H,W]=e.useState(null);return e.useEffect((()=>{var e;null===(e=F.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout((()=>{var e;null===(e=j.current)||void 0===e||e.focus()}),400)}),[z]),L.default.createElement(sa,{"data-is-reply":o,className:n,style:d},o&&L.default.createElement("div",{className:"reply-to-container"},L.default.createElement(t.Text,{size:"p4"},L.default.createElement("span",{dangerouslySetInnerHTML:{__html:k("inputComment.replyTo",{name:`<span style="color: #2D87F3; cursor: pointer">@${s||""}</span>`})}})),L.default.createElement("img",{src:"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8.00016' cy='8.50004' r='6.66667' fill='white' stroke='%23404040'/%3e%3cpath d='M10 6.5L6 10.5' stroke='%23404040' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6.5L10 10.5' stroke='%23404040' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",className:"icon-close-comment",onClick:()=>r&&r(),loading:"lazy"})),L.default.createElement("div",{className:"input-container",ref:F},L.default.createElement(g.UserAvatar,{className:"avatar-wrapper "+(o?"avatar-wrapper-reply":""),avatar:(null==y?void 0:y.id)?y.avatar:a.DEFAULT_AVATAR_IMG,username:(null==y?void 0:y.name)||(null==y?void 0:y.username)}),L.default.createElement("input",{ref:O,onChange:A,type:"file",multiple:!0,accept:"image/png,image/jpeg",name:"images",style:{display:"none"}}),L.default.createElement(h.Input,{value:I,name:"input",size:"md",className:"input-wrapper",displayIcon:L.default.createElement("img",{src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.7543 4.85352H4.49227C4.01776 4.85352 3.56268 5.04201 3.22715 5.37754C2.89162 5.71307 2.70313 6.16815 2.70312 6.64266V19.1667C2.70313 19.6412 2.89162 20.0963 3.22715 20.4318C3.56268 20.7673 4.01776 20.9558 4.49227 20.9558H17.0163C17.4908 20.9558 17.9459 20.7673 18.2814 20.4318C18.6169 20.0963 18.8054 19.6412 18.8054 19.1667V12.9047' stroke='%232D87F3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M17.4633 3.51187C17.8192 3.15599 18.3019 2.95605 18.8052 2.95605C19.3085 2.95605 19.7912 3.15599 20.147 3.51187C20.5029 3.86775 20.7029 4.35044 20.7029 4.85373C20.7029 5.35702 20.5029 5.83971 20.147 6.19559L11.6486 14.694L8.07031 15.5886L8.96489 12.0103L17.4633 3.51187Z' stroke='%232D87F3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),CustomInput:L.default.createElement("div",{className:"as-input"},L.default.createElement(Ht,{className:"textarea",html:I,onChange:M,onImagePickerClick:()=>{var e;return null===(e=O.current)||void 0===e?void 0:e.click()},bannedWords:U,onPreviewUrlChange:W,onInvalidUrlsChange:V,setEditorRef:e=>j.current=e,isReplying:o}))}),L.default.createElement(b.Button,{theme:E?"marryBaby":"helloSites",className:"send-button",size:"sm",onClick:()=>l.__awaiter(void 0,void 0,void 0,(function*(){var e,t,n,i,s,d,h,f,b;if((null==p?void 0:p.id)&&!B){R(!0);try{const y=e=>{M(""),S(),r&&r();const t=g.formatComment(e.data);"string"==typeof t.images&&(t.images=JSON.parse(t.images)),m&&m(t)},C=yield(({postId:e,message:t,photos:o,link:n,locale:i,sanitizeFunction:r,replyingUserId:s,replyingUserName:d,replyingId:c})=>l.__awaiter(void 0,void 0,void 0,(function*(){const l=new FormData;let u=Mt(t.replace(/(\&nbsp;)+/g," "),r);const m=St(u);return o&&o.length>0&&(yield Promise.all(null==o?void 0:o.map((e=>Rt(e,i))))).filter(Boolean).slice(0,a.MAX_IMAGE_UPLOADS).forEach((e=>{l.append("images[]",e)})),n&&l.append("link",n),null==m||m.forEach((e=>{l.append("mention_ids[]",e)})),l.append("post_id",e),c&&l.append("parent_id",c),s&&(m.unshift(s),u=`[mention+id="${s}"+name="${(d||"").replace('"',"'")}"]${u}`,l.append("parent_user_id",String(s))),l.append("content",u),l.append("content",u),l})))(Object.assign({message:I,photos:P,postId:String(p.id),link:null==H?void 0:H.url,sanitizeFunction:x,locale:w},o&&c?{replyingUserId:String((null==u?void 0:u.id)||(null===(e=null==p?void 0:p.author)||void 0===e?void 0:e.id)||""),replyingId:c,replyingUserName:(null==u?void 0:u.name)||(null==u?void 0:u.username)||""}:{})),E=yield o&&c?((e,t)=>l.__awaiter(void 0,void 0,void 0,(function*(){return a.callApiWithAuth(a.getApiPath(a.PATHS.COMMENT.REPLY,{_locale:t}),"POST",{data:e})})))(C,w):((e,t)=>l.__awaiter(void 0,void 0,void 0,(function*(){return a.callApiWithAuth(a.getApiPath(a.PATHS.COMMENT.CREATE,{_locale:t}),"POST",{data:e})})))(C,w),A=null==E?void 0:E.data;(null==A?void 0:A.id)&&!(null===(n=null===(t=null==E?void 0:E.messages)||void 0===t?void 0:t.moderation)||void 0===n?void 0:n.type)?y(E):"banned"===(null===(s=null===(i=null==E?void 0:E.messages)||void 0===i?void 0:i.moderation)||void 0===s?void 0:s.type)?(v({title:k("notification.comment.blocked.title"),message:k("notification.comment.blocked.message"),type:"danger"}),E.messages.moderation.words&&_(E.messages.moderation.words)):"suspect"===(null===(h=null===(d=null==E?void 0:E.messages)||void 0===d?void 0:d.moderation)||void 0===h?void 0:h.type)?(v({title:k("notification.comment.suspect.title"),message:k("notification.comment.suspect.message"),type:"warning"}),M(""),S(),r&&r()):(null===(f=null==E?void 0:E.messages)||void 0===f?void 0:f.find((e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(v({message:k("notification.suspend.message"),type:"warning"}),M(""),S(),r&&r()):v({title:"",message:(null===(b=null==E?void 0:E.messages)||void 0===b?void 0:b[0])||k("notification.comment.somethingWrong"),type:"danger"})}catch(e){v({title:"",message:k("notification.comment.somethingWrong"),type:"danger"})}R(!1)}})),isLoading:B,isDisabled:!!(null==D?void 0:D.length)||B||!I||(null==I?void 0:I.length)<2||!I.trim()},L.default.createElement("img",{src:"data:image/svg+xml,%3csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.5 9.73438L3.75 13.4844L7.5 17.2344' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M16.25 4.73438L16.25 10.3026C16.25 11.1464 15.9208 11.9557 15.3347 12.5524C14.7487 13.1491 13.9538 13.4844 13.125 13.4844L3.75 13.4844' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",className:"icon-enter",loading:"lazy"}))),(null==D?void 0:D.length)?L.default.createElement("div",{className:"error-text"},k("notification.limitUrlDomain")):null,(!T||0===T.length)&&H&&L.default.createElement("div",{className:"link-preview-wrapper"},H.isFetching?L.default.createElement(Ue,null):L.default.createElement(L.default.Fragment,null,L.default.createElement(G,{title:H.title,url:H.url||"#",image:H.image,noRefetch:!0}),L.default.createElement("img",{src:Zt,className:"icon-close",onClick:()=>W(null),loading:"lazy"}))),T&&T.length>0&&L.default.createElement("div",{className:"preview-images-container"},T.map(((e,t)=>L.default.createElement("div",{key:t,className:"image-src-wrapper"},L.default.createElement("img",{className:"preview-image",src:e,loading:"lazy"}),L.default.createElement("img",{src:Zt,className:"icon-close-circle",onClick:()=>N(t),loading:"lazy"}))))))},ua=F.default.a`
1906
+ * {
1907
+ pointer-events: none;
1908
+ }
1909
+ `,ma=F.default.div`
1910
+ padding: 1rem;
1911
+ .share__social {
1912
+ display: flex;
1913
+ width: 100%;
1914
+ align-items: center;
1915
+ justify-content: center;
1916
+
1917
+ & > ${ua} {
1918
+ margin: 0 7px;
1919
+
1920
+ & > img {
1921
+ width: 32px;
1922
+ height: 32px;
1923
+ }
1924
+ .__label {
1925
+ display: none;
1926
+ }
1927
+ }
1928
+ }
1929
+
1930
+ .share__copy-link {
1931
+ position: relative;
1932
+ padding: 1rem 0.5rem 0;
1933
+
1934
+ margin-top: 16px;
1935
+ &::before {
1936
+ position: absolute;
1937
+ top: 0;
1938
+ left: 0;
1939
+ width: calc(100% + 2rem);
1940
+ border-top: 1px solid ${s.theme.colors.neutral100};
1941
+ margin-left: -1rem;
1942
+ content: '';
1943
+ }
1944
+ .__label {
1945
+ margin-bottom: 8px;
1946
+ font-size: 11px;
1947
+ font-weight: 400;
1948
+ line-height: 17px;
1949
+ text-align: left;
1950
+ }
1951
+
1952
+ .__input-group {
1953
+ position: relative;
1954
+ overflow: hidden;
1955
+ width: 100%;
1956
+ height: 40px;
1957
+ border: 1px solid ${s.theme.colors.gray200};
1958
+ background: #fff;
1959
+ border-radius: ${s.theme.borderRadius};
1960
+
1961
+ & > input {
1962
+ width: 100%;
1963
+ height: 100%;
1964
+ padding: 0 16px;
1965
+ border: none;
1966
+ background: transparent;
1967
+ color: ${s.theme.colors.gray800};
1968
+
1969
+ &:focus {
1970
+ outline: none;
1971
+ }
1972
+ }
1973
+
1974
+ .__copy {
1975
+ position: absolute;
1976
+ top: 0;
1977
+ right: 0;
1978
+ width: 71px;
1979
+ height: 100%;
1980
+ padding-left: 12px;
1981
+ background: linear-gradient(
1982
+ 90deg,
1983
+ rgba(255, 255, 255, 0.1) 0%,
1984
+ #fff 17%,
1985
+ #fff 100%
1986
+ );
1987
+ color: ${s.theme.colors.primaryBase};
1988
+ cursor: pointer;
1989
+ font-size: 14px;
1990
+ font-weight: 400;
1991
+ }
1992
+ }
1993
+ }
1994
+
1995
+ &[data-is-marrybaby='true'] {
1996
+ ${w.MediaQueries.mbDown} {
1997
+ padding: 0.5rem;
1998
+ }
1999
+ .share__social {
2000
+ justify-content: space-between;
2001
+ & > a {
2002
+ display: flex;
2003
+ flex-direction: column;
2004
+ align-items: center;
2005
+ justify-content: center;
2006
+ text-align: center;
2007
+ ${w.MediaQueries.mbDown} {
2008
+ margin: 0;
2009
+ }
2010
+ & > img {
2011
+ margin-bottom: 0.8rem;
2012
+ }
2013
+ .__label {
2014
+ display: initial;
2015
+ }
2016
+ }
2017
+ }
2018
+ .share__copy-link {
2019
+ padding: 0;
2020
+ &::before {
2021
+ display: none;
2022
+ }
2023
+ .__label {
2024
+ display: none;
2025
+ }
2026
+ .__input-group {
2027
+ height: unset;
2028
+ background-color: rgb(243, 243, 243);
2029
+ border-radius: 16px;
2030
+ & > input {
2031
+ padding: 1rem;
2032
+ }
2033
+ .__copy {
2034
+ background: linear-gradient(
2035
+ 90deg,
2036
+ rgba(255, 255, 255, 0.1) 0%,
2037
+ #f3f3f3 17%,
2038
+ #f3f3f3 100%
2039
+ );
2040
+ }
2041
+ }
2042
+ }
2043
+ }
2044
+ `;const pa=({className:l,trackingCategory:o="Together",style:n,shareUrl:r,title:c})=>{const{action:{pushNotifications:u},data:{env:{isMarryBaby:m}}}=e.useContext(a.TogetherComponentGlobalContext),{t:p}=i.useTranslations(),g=e.useRef(null),[h,f]=e.useState(!1),v=()=>{if(!(null==g?void 0:g.current))return;const e=document.createElement("textarea");e.value=g.current.value,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),g.current.focus(),f(!0),u({title:"",message:p("share.linkCopied"),type:"success"})};e.useEffect((()=>{v(),navigator.share&&navigator.share({title:c||"Read This Post",url:r}).then((()=>{u({title:"",message:p("share.linkShared"),type:"success"})})).catch(console.error)}),[]);const b=((e,t)=>t?[{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 9.58333V30.4167C35 32.9417 32.9417 35 30.4167 35H25.8333V23.3333H28.85C29.275 23.3333 29.6333 23.0167 29.6833 22.6L29.9917 20.1C30.025 19.8667 29.95 19.625 29.7917 19.45C29.6333 19.2667 29.4083 19.1667 29.1667 19.1667H25.8333V16.25C25.8333 15.3333 26.5833 14.5833 27.5 14.5833H29.1667C29.625 14.5833 30 14.2083 30 13.75V10.9333C30 10.5083 29.6667 10.15 29.2417 10.1083C29.1917 10.1 28.0167 10 26.525 10C22.8583 10 20.8333 12.1833 20.8333 16.1417V19.1667H17.5C17.0417 19.1667 16.6667 19.5417 16.6667 20V22.5C16.6667 22.9583 17.0417 23.3333 17.5 23.3333H20.8333V35H9.58333C7.05833 35 5 32.9417 5 30.4167V9.58333C5 7.05833 7.05833 5 9.58333 5H30.4167C32.9417 5 35 7.05833 35 9.58333Z' fill='url(%23paint0_linear)'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='20' y1='5' x2='20' y2='35' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%234DABF7'/%3e%3cstop offset='1' stop-color='%232668DA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAzTSURBVHgB7Z0JdFTVGce/776ZCQkBElLCksga9kU2FQQRSlGo1AYUKwpuVA91xdZqtVTx1ONyrIpKBesC1AO1WHsiPQcsoIig1oNgEEEMKonsIQkhk2WWd+/X+96YTEK2+2beSJJ5v3Nyst25c9/3v/f7vru8NwAODg4ODg4ODg4ODg4ODvEEgt0sohTwQbb86VJZ+0gQ1Ft+Tzm7WNeOIJZeA/ya0eCGlkspIuYTQC5xvk3TtBz5eynYiH0CLJSGBrEICG9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fnpMDg7u4WLcSZKkGvvl/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+//8AcbEAf8b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G0jadKFyuICmsWzm7Ov+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+O4ztEf2+v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aPVHYzCLLundLX783PuYhokEgZ4PoD4No4ycDx05uEm2bCjNKvBasipIEgFeB5XhJSElV9odu7qp2UMaJuvjo9VWztKdieQUKHJGqCiuUwuFAvBeDOp/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}`}])(r||"",m);return L.default.createElement(ma,{"data-is-marrybaby":m,className:l,style:n},L.default.createElement("div",{className:"share__social"},b.map(((e,a)=>L.default.createElement(ua,{key:a,"data-event-category":o,"data-event-action":`Social Share - ${e.name}`,"data-event-label":r,href:e.href,target:"_blank",rel:"noreferrer"},L.default.createElement(d.ImageWrap,{alt:`share to ${e}`,src:e.icon}),L.default.createElement(t.Text,{className:"__label",size:"label2",weight:"regular"},e.name))))),L.default.createElement("div",{className:"share__copy-link"},L.default.createElement(t.Text,{className:"__label",color:s.theme.colors.gray500,size:"p4",weight:"regular"},p("orCopyLink")),L.default.createElement("div",{className:"__input-group"},L.default.createElement("input",{ref:g,type:"text",value:r,readOnly:!0,onFocus:e=>e.target.select()}),L.default.createElement("button",{className:"__copy",onClick:()=>v()},m?L.default.createElement(d.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"}):p(h?"copied":"copy")))))},ga=({trackingCategory:l,className:n,style:r,url:s,avatar:d,text:c,onClose:u})=>{const{data:{env:{isMarryBaby:m}}}=e.useContext(a.TogetherComponentGlobalContext),{t:p}=i.useTranslations(),[g,h]=e.useState(!1);return e.useEffect((()=>(w.toggleNoScroll(!0),setTimeout((()=>h(!0)),0),()=>w.toggleNoScroll(!1))),[]),L.default.createElement(o.Portal,null,L.default.createElement(ha,{"data-is-marrybaby":m,className:n,style:r},L.default.createElement(ia,{className:"share-popup",isOpen:g,onClose:u,heading:p("bottomBar.share")},m?L.default.createElement(t.Text,{className:"share-mb-text",size:"sm"},p("article.shareOn")):L.default.createElement("div",{className:"custom-share__header"},d&&L.default.createElement("div",{className:"custom-share__header-image"},L.default.createElement("img",{src:d,loading:"lazy"})),L.default.createElement("div",{className:"custom-share__header-info"},L.default.createElement(x.Heading,{tag:"h4"},c),L.default.createElement(t.Text,{className:"desc",size:"md"},s))),g&&L.default.createElement(pa,{trackingCategory:l,shareUrl:s||("undefined"!=typeof window?window.location.href:""),title:c}))))},ha=F.default.div`
2045
+ .share-popup {
2046
+ > div:first-child {
2047
+ height: unset;
2048
+ }
2049
+ .close-button {
2050
+ display: none;
2051
+ }
2052
+ .popup-content .header {
2053
+ display: none;
2054
+ }
2055
+ }
2056
+ .custom-share__header {
2057
+ display: flex;
2058
+ flex-wrap: no-wrap;
2059
+ align-items: center;
2060
+ padding: 1rem;
2061
+ border-bottom: 1px solid ${s.theme.colors.neutral100};
2062
+ margin-bottom: 16px;
2063
+
2064
+ .custom-share__header-image {
2065
+ width: 38px;
2066
+ height: 38px;
2067
+ flex-shrink: 0;
2068
+ & > img {
2069
+ width: 100%;
2070
+ height: 100%;
2071
+ object-fit: cover;
2072
+ object-position: center;
2073
+ }
2074
+ }
2075
+
2076
+ .custom-share__header-info {
2077
+ flex: 1;
2078
+ padding: 0 8px;
2079
+ word-break: break-word;
2080
+
2081
+ [data-tag='h4'] {
2082
+ margin-bottom: 8px;
2083
+ font-size: 14px;
2084
+ font-weight: bold;
2085
+ line-height: 14px;
2086
+ }
2087
+
2088
+ [data-size='md'] {
2089
+ color: #a5a5a5;
2090
+ font-size: 14px;
2091
+ line-height: 14px;
2092
+ }
2093
+ }
2094
+ }
2095
+
2096
+ &[data-is-marrybaby='true'] {
2097
+ .share-popup {
2098
+ > div:first-child {
2099
+ overflow: hidden;
2100
+ border-radius: 1rem;
2101
+ &[data-open='true'] {
2102
+ ${w.MediaQueries.mbDown} {
2103
+ max-width: unset;
2104
+ width: 100%;
2105
+ top: 100%;
2106
+ transform: translate(-50%, -100%);
2107
+ border-bottom-left-radius: 0;
2108
+ border-bottom-right-radius: 0;
2109
+ }
2110
+ }
2111
+ }
2112
+ .close-button {
2113
+ display: block;
2114
+ }
2115
+ .popup-content {
2116
+ .header {
2117
+ display: block;
2118
+ padding: 1rem;
2119
+ background-color: rgb(243, 243, 243);
2120
+ }
2121
+ .content {
2122
+ padding-bottom: 1rem;
2123
+ }
2124
+ }
2125
+ .share-mb-text {
2126
+ margin: 1rem 1rem 0.5rem;
2127
+ }
2128
+ }
2129
+ }
2130
+ `,fa=F.default.div`
2131
+ padding: 0 8px;
2132
+ margin-top: 18px;
2133
+
2134
+ .report-list {
2135
+ margin-bottom: 18px;
2136
+
2137
+ .report-item {
2138
+ display: flex;
2139
+ align-items: center;
2140
+ margin-bottom: 10px;
2141
+ font-weight: 600;
2142
+
2143
+ & > img {
2144
+ width: 12px;
2145
+ height: 12px;
2146
+ margin-right: 8px;
2147
+ }
2148
+
2149
+ .__label {
2150
+ font-size: 14px;
2151
+ }
2152
+ }
2153
+ }
2154
+
2155
+ .report-submit {
2156
+ width: 100%;
2157
+ }
2158
+ &[data-is-marrybaby='true'] {
2159
+ padding: 0 1rem 1rem;
2160
+ }
2161
+ `;var va="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 5V8' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11H8.00708' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const ba=({className:o,style:n,reason:r,reasonText:d,onClose:c,postId:u})=>{const{data:{locale:m,env:{isMarryBaby:p}},action:{pushNotifications:g}}=e.useContext(a.TogetherComponentGlobalContext),{t:h}=i.useTranslations(),[f,v]=e.useState(!1);return L.default.createElement(fa,{"data-is-marrybaby":p,className:o,style:n},L.default.createElement("ul",{className:"report-list"},L.default.createElement("li",{className:"report-item"},L.default.createElement("img",{src:va,loading:"lazy"}),L.default.createElement(t.Text,{className:"__label",color:s.theme.colors.gray800,size:"p4"},d))),L.default.createElement(b.Button,{theme:p?"marryBaby":"helloSites",className:"report-submit",size:"lg",color:"primary",isLoading:f,onClick:()=>l.__awaiter(void 0,void 0,void 0,(function*(){if(u&&!f){v(!0);try{const e=yield(({id:e,reason:t,locale:l})=>{const o=new FormData;return o.append("reason",t),a.callApiWithAuth(a.getApiPath(a.PATHS.POST.REPORT,{_locale:l,id:e}),"POST",{data:o})})({id:u,reason:r,locale:m});1===(null==e?void 0:e.status)&&(g({message:"Post reported",type:"success"}),c&&c())}catch(e){}v(!1)}}))},h("submit")))},xa=F.default.div`
2162
+ padding: 0.5rem 1rem 1rem;
2163
+ line-height: 1.5;
2164
+ word-break: break-word;
2165
+ .post-content-replying {
2166
+ margin-right: 5px;
2167
+ cursor: pointer;
2168
+ display: inline-block;
2169
+ &.tag-only {
2170
+ margin-right: 0;
2171
+ }
2172
+ }
2173
+ .post-content {
2174
+ display: inline;
2175
+ white-space: pre-wrap;
2176
+ /* > *:first-child, */
2177
+ > mention:first-child ~ * {
2178
+ &:not(ul),
2179
+ &:not(ol) {
2180
+ display: inline-block;
2181
+ }
2182
+ }
2183
+ > mention:first-child {
2184
+ margin-right: 5px;
2185
+ }
2186
+ &.has-see-more {
2187
+ *:last-child {
2188
+ &:not(ul),
2189
+ &:not(ol) {
2190
+ display: inline;
2191
+ }
2192
+ }
2193
+ }
2194
+ img {
2195
+ width: 100%;
2196
+ height: unset;
2197
+ }
2198
+ ul,
2199
+ ol {
2200
+ list-style-position: inside;
2201
+ padding-left: 1rem;
2202
+ display: block;
2203
+ }
2204
+ ol {
2205
+ list-style-type: decimal;
2206
+ }
2207
+ ul {
2208
+ list-style-type: disc;
2209
+ }
2210
+ mention {
2211
+ color: ${e=>e.mentionColor||"#1890ff"};
2212
+ padding-right: 4px;
2213
+ :hover {
2214
+ text-decoration: underline;
2215
+ }
2216
+ }
2217
+ }
2218
+ `;var ya=o.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 wa=t=>{var{trackingCategory:n,url:r,className:s,style:d,replyingTo:c,mentionedUser:u,description:m,disableShortenContent:p,mentions:g=[],maxChars:h=1e3,hideShowAllBtn:f,styles:v,onClickCreatePostLink:b}=t,x=l.__rest(t,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn","styles","onClickCreatePostLink"]);const{classes:y,theme:w}=ya(void 0,{name:"PostContent",styles:v}),[C,E]=e.useState(!1),{t:k}=i.useTranslations(),{authActionWrapper:A}=W(),[N,T]=e.useState(!1),S=Nt(At(m||"","display"),g),{action:{sanitizeFunction:P}}=e.useContext(a.TogetherComponentGlobalContext),I=e.useMemo((()=>{const e=P(S||"");if(p||C)return{showContent:e,hasSeeMore:!1};const t=e.slice(0,h),a=h-27*((t.match(/<\/div>/g)||[]).length-1),l=(t||"").slice(0,a<40?40:a),o=P(l.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),n=o.length<e.length-10;return{showContent:n?o:e,hasSeeMore:n}}),[p,C,S]),M=(null==u?void 0:u.name)||c,z="expert"===(null==u?void 0:u.role)&&!!(null==u?void 0:u.partnerId),B=e.useRef(null),R=e=>{e.preventDefault(),null==b||b()};return e.useEffect((()=>{var e;return null===(e=null==B?void 0:B.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.addEventListener("click",R,{passive:!0})})),()=>{var e;null===(e=null==B?void 0:B.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.removeEventListener("click",R,!1)}))}}),[p,C,S]),L.default.createElement(L.default.Fragment,null,z&&L.default.createElement(Ke,{isOpen:N,onClose:()=>T(!1),expertId:String(null==u?void 0:u.partnerId)}),L.default.createElement(xa,Object.assign({ref:B,className:`${y.root} ${s} no-replace-click`,style:d,mentionColor:w.fn.primaryColor()},x),M&&L.default.createElement(o.Anchor,{onClick:()=>z&&T(!0),className:"post-content-replying"},"@",M),(null==m?void 0:m.startsWith("[mention+id="))&&L.default.createElement("span",{className:"post-content-replying tag-only",style:{color:w.fn.primaryColor()}},"@"),L.default.createElement("span",{dangerouslySetInnerHTML:{__html:I.showContent},className:"post-content "+(I.hasSeeMore?"has-see-more":"")}),I.hasSeeMore&&!C&&L.default.createElement("span",null,"... ",!f&&L.default.createElement(o.Anchor,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),A((()=>E(!0)))},className:"see-more-text"},n?{"data-event-category":n,"data-event-action":"See More Post Click","data-event-label":r}:{}),k("post.seeMore")))))},Ca=F.default.div`
2219
+ padding: 14px 16px 14px 17px;
2220
+ background: ${e=>e.bgColor};
2221
+ border-left: 3px solid ${e=>e.highlight};
2222
+
2223
+ ${w.MediaQueries.mbUp} {
2224
+ padding: 12px 12px 12px 17px;
2225
+ }
2226
+ `,Ea=F.default.div`
2227
+ display: flex;
2228
+ `,ka=F.default.div`
2229
+ font-size: 12px;
2230
+ line-height: 18px;
2231
+
2232
+ &[data-has-icon='true'] {
2233
+ margin-left: 10px;
2234
+ }
2235
+ `,Aa=F.default.div`
2236
+ flex-shrink: 0;
2237
+ `,Na=F.default.div`
2238
+ display: grid;
2239
+ grid-gap: 3px;
2240
+ grid-template-columns: 1fr 1fr;
2241
+ grid-template-rows: auto;
2242
+
2243
+ .img-wrapper {
2244
+ position: relative;
2245
+ overflow: hidden;
2246
+ width: 100%;
2247
+ padding-top: 56.25%;
2248
+ grid-column: auto;
2249
+
2250
+ & > img {
2251
+ cursor: zoom-in;
2252
+ }
2253
+
2254
+ .img-preview-blur {
2255
+ position: absolute;
2256
+ top: 50%;
2257
+ left: 50%;
2258
+ width: 110%;
2259
+ height: 110%;
2260
+ /* Add the blur effect */
2261
+ -webkit-filter: blur(8px);
2262
+ filter: blur(8px);
2263
+ object-fit: cover;
2264
+ object-position: center;
2265
+ opacity: 0.8;
2266
+ transform: translate(-50%, -50%);
2267
+ }
2268
+ .img-preview {
2269
+ position: absolute;
2270
+ top: 0;
2271
+ left: 0;
2272
+ width: 100%;
2273
+ height: 100%;
2274
+ object-fit: contain;
2275
+ object-position: center;
2276
+ }
2277
+ .img-more-overlay {
2278
+ position: absolute;
2279
+ top: 0;
2280
+ left: 0;
2281
+ display: flex;
2282
+ width: 100%;
2283
+ height: 100%;
2284
+ align-items: center;
2285
+ justify-content: center;
2286
+ background: rgba(0, 0, 0, 0.5);
2287
+ z-index: 4;
2288
+ }
2289
+ }
2290
+ &[data-image-count='1'] {
2291
+ .img-wrapper {
2292
+ /* padding-top: 100%; */
2293
+ grid-column: 1/3;
2294
+ }
2295
+ }
2296
+ &[data-image-count='2'] {
2297
+ .img-wrapper {
2298
+ /* padding-top: 100%; */
2299
+ }
2300
+ }
2301
+ &[data-image-count='3'] {
2302
+ .img-wrapper {
2303
+ &:first-child {
2304
+ grid-column: 1/3;
2305
+ }
2306
+ }
2307
+ }
2308
+ &[data-image-count='4'] {
2309
+ .img-wrapper {
2310
+ /* padding-top: 100%; */
2311
+ }
2312
+ }
2313
+ &[data-image-count='5'] {
2314
+ grid-template-columns: repeat(6, 1fr);
2315
+ .img-wrapper {
2316
+ /* padding-top: 100%; */
2317
+ grid-column: auto/ span 2;
2318
+
2319
+ &:first-child {
2320
+ padding-top: 56.25%;
2321
+ grid-column: 1/4;
2322
+ }
2323
+ &:nth-child(2) {
2324
+ padding-top: 56.25%;
2325
+ grid-column: 4/7;
2326
+ }
2327
+ }
2328
+ }
2329
+
2330
+ &[data-is-marrybaby='true'] {
2331
+ grid-gap: 8px;
2332
+ .img-wrapper {
2333
+ padding-top: 66.66%;
2334
+ border-radius: 1rem;
2335
+ .img-preview {
2336
+ object-fit: cover;
2337
+ }
2338
+ }
2339
+ &[data-image-count='3'] {
2340
+ grid-template-columns: 1fr 1fr 1fr;
2341
+ .img-wrapper {
2342
+ &:first-child {
2343
+ padding-top: 100%;
2344
+ grid-column: 1/3;
2345
+ grid-row: 1/3;
2346
+ }
2347
+ }
2348
+ }
2349
+ }
2350
+ `,Ta=F.default.div`
2351
+ position: fixed;
2352
+ z-index: 999;
2353
+ top: 0;
2354
+ left: 0;
2355
+ display: flex;
2356
+ overflow: hidden;
2357
+ width: 100vw;
2358
+ height: 100vh;
2359
+ flex-direction: column;
2360
+ background: white;
2361
+ opacity: 0;
2362
+ pointer-events: none;
2363
+ transition: opacity 0.2s linear;
2364
+ &[data-open='true'] {
2365
+ opacity: 1;
2366
+ pointer-events: auto;
2367
+ }
2368
+ .top-bar {
2369
+ position: relative;
2370
+ padding: 20px 40px;
2371
+ .icon-arrow-left {
2372
+ position: absolute;
2373
+ top: 50%;
2374
+ left: 20px;
2375
+ height: 24px;
2376
+ width: 24px;
2377
+ cursor: pointer;
2378
+ transform: translateY(-50%);
2379
+ }
2380
+ }
2381
+ .container {
2382
+ flex: 1;
2383
+ overflow-y: auto;
2384
+ .img-preview {
2385
+ width: 100%;
2386
+ min-width: 100%;
2387
+ margin-bottom: 0.5rem;
2388
+ cursor: pointer;
2389
+ max-height: 100%;
2390
+ object-fit: cover;
2391
+ }
2392
+ }
2393
+ `,Sa=F.default((e=>{var{icon:t,bgColor:a=s.theme.colors.yellow50,highlightColor:o=s.theme.colors.yellow800,message:n}=e,i=l.__rest(e,["icon","bgColor","highlightColor","message"]);return L.default.createElement(Ca,Object.assign({bgColor:a,highlight:o},i),L.default.createElement(Ea,null,t&&L.default.createElement(Aa,null,t),L.default.createElement(ka,{"data-has-icon":Boolean(t)},n)))}))`
2394
+ margin-bottom: 16px;
2395
+ `;const Pa=({className:a,style:l,authorName:n,images:r,onClose:s,onOpenSingleView:d,alt:c})=>{const{t:u}=i.useTranslations(),[m,p]=e.useState(!1);return e.useEffect((()=>{setTimeout((()=>{p(!0)}),0)}),[]),L.default.createElement(o.Portal,null,L.default.createElement(Ta,{className:a,style:l,"data-open":m},L.default.createElement("div",{className:"top-bar"},L.default.createElement("img",{className:"icon-arrow-left",src:"data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.0508 18.0607L4.00078 12.0367L10.0508 6.01172' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4.00195 12.0352L19.002 12.0352' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",onClick:s,alt:"go back",loading:"lazy"}),L.default.createElement(t.Text,{size:"p2",weight:"bold",style:{textAlign:"center"}},u("previewPhotos.title",{name:n}))),L.default.createElement("div",{className:"container"},r.map(((e,t)=>L.default.createElement("img",{className:"img-preview",key:t,src:e,onClick:()=>null==d?void 0:d(t),alt:c,loading:"lazy"}))))),",")},Ia=F.default.div`
2396
+ position: fixed;
2397
+ z-index: 999;
2398
+ top: 0;
2399
+ left: 0;
2400
+ display: flex;
2401
+ width: 100%;
2402
+ height: 100%;
2403
+ flex-direction: column;
2404
+ background: black;
2405
+ opacity: 0;
2406
+ pointer-events: none;
2407
+ transition: opacity 0.2s linear;
2408
+ &[data-open='true'] {
2409
+ opacity: 1;
2410
+ pointer-events: auto;
2411
+ }
2412
+ `,Ma=F.default.div`
2413
+ padding: 1rem;
2414
+ background: white;
2415
+ .icon-close {
2416
+ width: 26px;
2417
+ height: 26px;
2418
+ cursor: pointer;
2419
+ }
2420
+ `,za=F.default.div`
2421
+ position: relative;
2422
+ flex: 1;
2423
+ overflow: hidden;
2424
+ > img {
2425
+ height: 100%;
2426
+ width: 100%;
2427
+ object-fit: contain;
2428
+ object-position: center;
2429
+ }
2430
+ `,La=F.default.div`
2431
+ --inner-padding: max(16px, 20%);
2432
+ height: 100%;
2433
+ position: absolute;
2434
+ left: 0;
2435
+ padding: 8px;
2436
+ padding-right: var(--inner-padding);
2437
+ display: flex;
2438
+ align-items: center;
2439
+ top: 0;
2440
+ cursor: pointer;
2441
+ &[data-right] {
2442
+ padding-right: 8px;
2443
+ padding-left: var(--inner-padding);
2444
+ left: unset;
2445
+ right: 0;
2446
+ }
2447
+ &[data-disabled='true'] {
2448
+ cursor: not-allowed;
2449
+ }
2450
+ `,Ba=F.default.div`
2451
+ border-radius: 50%;
2452
+ background: rgba(0, 0, 0, 0.3);
2453
+ display: flex;
2454
+ align-items: center;
2455
+ justify-content: center;
2456
+ padding: 4px;
2457
+ > img {
2458
+ width: 16px;
2459
+ height: 16px;
2460
+ &[data-disabled='true'] {
2461
+ opacity: 0.5;
2462
+ }
2463
+ }
2464
+ ${w.MediaQueries.tdUp} {
2465
+ padding: 8px;
2466
+ > img {
2467
+ width: 30px;
2468
+ height: 30px;
2469
+ }
2470
+ }
2471
+ `;var Ra="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12.8125L10 8.8125L6 4.8125' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Oa=({initialViewIndex:t,images:a,onClose:l,alt:n})=>{const[i,r]=e.useState(t),[s,d]=e.useState(!1);e.useEffect((()=>{setTimeout((()=>{d(!0)}),0)}),[]);const c=null==a?void 0:a[i],u=0===i,m=!(null==a?void 0:a.length)||i===(null==a?void 0:a.length)-1;return L.default.createElement(o.Portal,null,L.default.createElement(Ia,{"data-open":s&&!!c},L.default.createElement(Ma,null,L.default.createElement("img",{src:na,className:"icon-close",onClick:l,alt:"close",loading:"lazy"})),c&&i>=0&&L.default.createElement(L.default.Fragment,null,L.default.createElement(za,null,L.default.createElement("img",{className:"img-preview",src:c,alt:n,loading:"lazy"}),L.default.createElement(La,{"data-disabled":u,onClick:()=>!u&&r(i-1)},L.default.createElement(Ba,null,L.default.createElement("img",{src:Ra,style:{transform:"rotate(180deg)"},alt:"left arrow","data-disabled":u,loading:"lazy"}))),L.default.createElement(La,{"data-right":!0,"data-disabled":m,onClick:()=>!m&&r(i+1)},L.default.createElement(Ba,null,L.default.createElement("img",{src:Ra,alt:"right arrow","data-disabled":m,loading:"lazy"})))))))},ja=F.default.div`
2472
+ position: absolute;
2473
+ top: 0;
2474
+ right: 0;
2475
+ left: 0;
2476
+ bottom: 0;
2477
+ background: rgba(0, 0, 0, 0.4);
2478
+ color: white;
2479
+ display: flex;
2480
+ align-items: center;
2481
+ justify-content: center;
2482
+ cursor: pointer;
2483
+ `,Fa="hhgcomp-sensitivemask-inner",Da=x.getDefaultClassWrapper(ja,Fa),Va=F.default.div``,Ua=F.default.div`
2484
+ position: absolute;
2485
+ bottom: 0;
2486
+ left: 0;
2487
+ width: 100%;
2488
+ height: 100%;
2489
+ z-index: 3;
2490
+ background: white;
2491
+ cursor: pointer;
2492
+
2493
+ &,
2494
+ * {
2495
+ // transition: all 300ms;
2496
+ transform-origin: bottom left;
2497
+ }
2498
+
2499
+ img {
2500
+ transition: none;
2501
+ }
2502
+ .img-preview {
2503
+ width: 100%;
2504
+ }
2505
+ &[data-is-blurred='true'] {
2506
+ .img-preview {
2507
+ /* Add the blur effect */
2508
+ -webkit-filter: blur(24px);
2509
+ filter: blur(24px);
2510
+ }
2511
+ }
2512
+
2513
+ &[data-is-blurred='false'] {
2514
+ background: transparent;
2515
+ cursor: zoom-in;
2516
+
2517
+ .${Fa} {
2518
+ top: auto;
2519
+ right: auto;
2520
+ left: 8px;
2521
+ bottom: 8px;
2522
+ background: rgba(0, 0, 0, 0);
2523
+ align-items: flex-end;
2524
+ justify-content: flex-start;
2525
+ }
2526
+ }
2527
+ `,_a=({image:t,showIcon:a=!0})=>{const[l,o]=e.useState(!0);return L.default.createElement(Ua,{"data-is-blurred":l,onClick:e=>l&&e.stopPropagation()},L.default.createElement("img",{loading:"lazy",className:"img-preview",src:t}),L.default.createElement(Da,{onClick:e=>{e.stopPropagation(),o(!l)}},a&&L.default.createElement(Va,null,l?L.default.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},L.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.71 2.5399C1.32 2.1499 1.32 1.5199 1.71 1.1299C2.1 0.739902 2.74 0.739902 3.13 1.1299L19.44 17.4599C19.83 17.8499 19.83 18.4799 19.44 18.8699C19.05 19.2599 18.42 19.2599 18.03 18.8699L15.31 16.1499C13.97 16.6699 12.52 16.9699 11 16.9699C6 16.9699 1.73 13.8599 0 9.4699C0.77 7.4999 2.06 5.7999 3.68 4.5099L1.71 2.5399ZM16 9.4699C16 6.7099 13.76 4.4699 11 4.4699C10.49 4.4699 10 4.5699 9.53 4.7099L7.36 2.5399C8.51 2.1699 9.73 1.9699 11 1.9699C16 1.9699 20.27 5.0799 22 9.4599C21.31 11.2199 20.21 12.7599 18.82 13.9899L15.76 10.9299C15.9 10.4699 16 9.9799 16 9.4699ZM11 14.4699C8.24 14.4699 6 12.2299 6 9.4699C6 8.6999 6.18 7.9699 6.49 7.3299L8.06 8.8999C8.03 9.0799 8 9.2699 8 9.4699C8 11.1299 9.34 12.4699 11 12.4699C11.2 12.4699 11.38 12.4399 11.57 12.3999L13.14 13.9699C12.49 14.2899 11.77 14.4699 11 14.4699ZM13.97 9.1399C13.82 7.7399 12.72 6.6499 11.33 6.4999L13.97 9.1399Z",fill:"white"})):L.default.createElement("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none"},L.default.createElement("path",{d:"M11.9999 0C5.14188 0 1.88558 5.87864 1.09558 7.55664C0.963582 7.83664 0.963582 8.16141 1.09558 8.44141C1.88558 10.1204 5.14188 16 11.9999 16C18.8339 16 22.0924 10.1629 22.8964 8.46094C23.0344 8.16794 23.0344 7.83206 22.8964 7.53906C22.0924 5.83706 18.8339 0 11.9999 0ZM11.9999 3C14.7609 3 16.9999 5.239 16.9999 8C16.9999 10.761 14.7609 13 11.9999 13C9.23888 13 6.99988 10.761 6.99988 8C6.99988 5.239 9.23888 3 11.9999 3ZM11.9999 5C11.2042 5 10.4412 5.31607 9.87856 5.87868C9.31595 6.44129 8.99988 7.20435 8.99988 8C8.99988 8.79565 9.31595 9.55871 9.87856 10.1213C10.4412 10.6839 11.2042 11 11.9999 11C12.7955 11 13.5586 10.6839 14.1212 10.1213C14.6838 9.55871 14.9999 8.79565 14.9999 8C14.9999 7.20435 14.6838 6.44129 14.1212 5.87868C13.5586 5.31607 12.7955 5 11.9999 5Z",fill:"#2D87F3"})))))},Ha=({className:t,images:l=[],style:o,authorName:n,isSensitive:r=!1,alt:s})=>{const{data:{env:{isMarryBaby:d}}}=e.useContext(a.TogetherComponentGlobalContext),{t:c}=i.useTranslations(),u="+ "+((l.length||0)-4),[m,p]=e.useState(!1),[g,h]=e.useState(-1),f=l.length>5,v=e.useRef(!1);return e.useEffect((()=>()=>{v.current&&w.toggleNoScroll(!1)}),[]),e.useEffect((()=>{m||g>=0?(w.toggleNoScroll(!0),v.current=!0):(w.toggleNoScroll(!1),v.current=!1)}),[m,g]),L.default.createElement(L.default.Fragment,null,r&&L.default.createElement(Sa,{message:c("sensitiveMask.contentWarningDescription"),icon:L.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},L.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00002 0.666748C4.40002 0.666748 0.666687 4.40008 0.666687 9.00008C0.666687 13.6001 4.40002 17.3334 9.00002 17.3334C13.6 17.3334 17.3334 13.6001 17.3334 9.00008C17.3334 4.40008 13.6 0.666748 9.00002 0.666748ZM9.00002 9.83341C8.54169 9.83341 8.16669 9.45841 8.16669 9.00008V5.66675C8.16669 5.20842 8.54169 4.83342 9.00002 4.83342C9.45835 4.83342 9.83335 5.20842 9.83335 5.66675V9.00008C9.83335 9.45841 9.45835 9.83341 9.00002 9.83341ZM8.16669 11.5001V13.1667H9.83335V11.5001H8.16669Z",fill:"#FE921D"}))}),L.default.createElement(Na,{className:t,style:o,"data-image-count":f?5:l.length||0,"data-is-marrybaby":d,"data-cursor-pointer":!r},null==l?void 0:l.slice(0,5).map(((e,t)=>{const a=4===t&&f;return L.default.createElement("div",{className:"img-wrapper",key:t,onClick:()=>{t>=4&&f?p(!0):h(t)}},r&&L.default.createElement(_a,{image:e,showIcon:!a}),!d&&L.default.createElement("img",{loading:"lazy",className:"img-preview-blur",src:e,alt:s}),L.default.createElement("img",{loading:"lazy",className:"img-preview",src:e,alt:s}),a&&L.default.createElement("div",{className:"img-more-overlay"},L.default.createElement(x.Heading,{tag:"h1",as:"h2",color:"white"},u)))}))),m&&L.default.createElement(Pa,{authorName:n||"",images:l,onClose:()=>p(!1),onOpenSingleView:h,alt:s}),g>=0&&L.default.createElement(Oa,{images:l,initialViewIndex:g,onClose:()=>h(-1),alt:s}))},Wa=F.default.div`
2528
+ .link-info-container {
2529
+ padding: 0.5rem 1rem;
2530
+ background: ${e=>e.color||"#f4faff"};
2531
+ }
2532
+ .link-image-wrapper {
2533
+ position: relative;
2534
+ overflow: hidden;
2535
+ width: 100%;
2536
+ padding-top: 56.25%;
2537
+ &.fetching {
2538
+ background: lightgray;
2539
+ }
2540
+ .loading-spinner {
2541
+ position: absolute;
2542
+ top: 50%;
2543
+ left: 50%;
2544
+ transform: translate(-50%, -50%);
2545
+ }
2546
+ .link-image {
2547
+ position: absolute;
2548
+ top: 0;
2549
+ left: 0;
2550
+ width: 100%;
2551
+ height: 100%;
2552
+ object-fit: cover;
2553
+ object-position: center;
2554
+ }
2555
+ }
2556
+ a {
2557
+ text-decoration: none;
2558
+ }
2559
+ &[data-is-marrybaby='true'] {
2560
+ overflow: hidden;
2561
+ border-radius: 1rem;
2562
+ }
2563
+ `,qa=({url:t,image:n,className:i,style:r,baseUrl:s="",autoPlay:c=!0})=>{const{data:{locale:u}}=e.useContext(a.TogetherComponentGlobalContext),[m,p]=e.useState(null);e.useEffect((()=>{l.__awaiter(void 0,void 0,void 0,(function*(){if(!n){if(!t)return p(null);p((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),a.callApi(a.getApiPath(a.PATHS.FETCH_PREVIEW,{_locale:u},void 0,s),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}},!!s).then((e=>{var a,l;p({url:t,image:(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.image)||(null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.logo)})})).catch((()=>{p(null)}))}}))}),[t,n]);const g=n||(null==m?void 0:m.image),h=(null==m?void 0:m.url)||t,f=e.useMemo((()=>(e=>{var t;return e.includes("youtu")&&(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""})(h)),[h]),v=e.useMemo((()=>h.includes("facebook.com")||h.includes("fb.watch")),[h]),b=e.useRef(0),x=e.useRef(0),[y,w]=e.useState(!1);e.useEffect((()=>{const e=()=>{var e;const t=null===(e=C.current)||void 0===e?void 0:e.getBoundingClientRect();let a=!1;t&&(!b.current||Math.abs((b.current-t.width)/(null==t?void 0:t.width))>.2)&&(b.current=Math.floor(t.width),a=!0),t&&(!x.current||Math.abs((x.current-t.height)/(null==t?void 0:t.height))>.2)&&(x.current=Math.floor(t.height),a=!0),a&&w((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const C=e.useRef(null),E=o.useMantineTheme();return L.default.createElement(Wa,{className:`${i} no-replace-click`,style:r,ref:C,color:E.colors[E.primaryColor][0]},n||!f&&!v?L.default.createElement("a",{href:h,target:"_blank",rel:"noreferrer"},L.default.createElement("div",{className:"link-image-wrapper "+((null==m?void 0:m.isFetching)?"fetching":"")},(null==m?void 0:m.isFetching)?L.default.createElement(Ue,{className:"loading-spinner"}):L.default.createElement(d.ImageWrap,{className:"link-image",src:g||a.DEFAULT_IMG,backupSrc:a.DEFAULT_IMG,alt:h}))):L.default.createElement("div",{className:"link-image-wrapper"},f?L.default.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${f}?&autoplay=${c?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"},loading:"lazy"}):v?L.default.createElement("iframe",{key:String(y),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(h)}&autoplay=${c?1:0}&show_text=false&t=0&width=${b.current}&height=${x.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:x.current,width:b.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null))};var Ga="PD6nRZX";const Za=({className:e,size:t="md"})=>{const{t:a}=i.useTranslations();return L.default.createElement("div",{className:`${Ga} ${e}`},L.default.createElement(b.Button,{size:t,color:"transparent",isLoading:!0},a("loading")))},Qa=e.createContext({});var Xa="l5fL1xL",Ka="L-aGKo7";const $a=({children:e,className:t=""})=>L.default.createElement("div",{className:`${Xa} ${t}`},e),Ya=({children:e,className:t=""})=>L.default.createElement("div",{className:`${Ka} ${t}`},e);var Ja="eaR8ATZ",el="xM-7K0a",tl="DZmf3s7";const al=({src:e,defaultSrc:t=m.CommonGAssets.getAssetPath("logo/logomark.png"),ratio:a=1,size:l=80,radius:o=8,alt:n,className:i=""})=>L.default.createElement("div",{className:i},L.default.createElement("div",{className:tl,style:{width:`${l}px`,height:l*a+"px",borderRadius:`${o}px`}},L.default.createElement(d.ImageWrap,{src:e,backupSrc:t,alt:n}))),ll=({category:e,title:t,src:a,children:l,className:o=""})=>L.default.createElement("div",{className:`${Ja} ${o}`},L.default.createElement(al,{src:a}),L.default.createElement("div",{className:el},l||L.default.createElement("div",null,e&&L.default.createElement($a,null,e),t&&L.default.createElement(Ya,null,t))));ll.CategoryText=$a,ll.Title=Ya;const ol=({featureImage:e,postTitle:t,author:a,categories:l,isReview:o,className:n=""})=>{var i;const r=o?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return L.default.createElement(ll,{src:e,className:n},L.default.createElement(L.default.Fragment,null,L.default.createElement(ll.CategoryText,null,null===(i=null==l?void 0:l[0])||void 0===i?void 0:i.name),L.default.createElement(ll.Title,null,t),L.default.createElement(Ie,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:L.default.createElement(L.default.Fragment,null,r,L.default.createElement(Ie.SubDivider,null),"Dec 12, 2022")})))};var nl={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 il=({className:a=""})=>{var l,n,r,d,c;const{t:u}=i.useTranslations(),{info:p,isMarryBaby:g,currentPageUrl:h}=e.useContext(Qa),f=null==p?void 0:p.data,v=[{type:"linkedin",icon:m.CommonGAssets.getAssetPath("linkedin.svg"),url:null===(l=null==p?void 0:p.contact)||void 0===l?void 0:l.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:m.CommonGAssets.getAssetPath("instagram.svg"),url:null===(n=null==p?void 0:p.contact)||void 0===n?void 0:n.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:m.CommonGAssets.getAssetPath("facebook.svg"),url:null===(r=null==p?void 0:p.contact)||void 0===r?void 0:r.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:m.CommonGAssets.getAssetPath("youtube.svg"),url:null===(d=null==p?void 0:p.contact)||void 0===d?void 0:d.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:m.CommonGAssets.getAssetPath("tiktok.svg"),url:null===(c=null==p?void 0:p.contact)||void 0===c?void 0:c.tiktok,eventAction:"Doctor Profile - TikTok"}],b=[...((null==p?void 0:p.experiences)||[]).length>0?[{key:"experience",heading:u("profilePanel.experience"),iconSrc:m.CommonGAssets.getAssetPath(g?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:L.default.createElement("div",{className:nl.accBodyGroup},null==p?void 0:p.experiences.map(((e,t)=>L.default.createElement("div",{className:nl.accBodyGroupItem,key:String(t)},L.default.createElement("div",{className:nl.accBodyGroupTitle},e.title),L.default.createElement("div",{className:nl.accBodyGroupDesc},L.default.createElement("p",null,e.organization),L.default.createElement("p",null,e.duration))))))}]:[],...((null==p?void 0:p.educations)||[]).length>0?[{key:"education",heading:u("profilePanel.education"),iconSrc:m.CommonGAssets.getAssetPath(g?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:L.default.createElement("div",{className:nl.accBodyGroup},null==p?void 0:p.educations.map(((e,t)=>L.default.createElement("div",{className:nl.accBodyGroupItem,key:String(t)},L.default.createElement("div",{className:nl.accBodyGroupTitle},e.schoolName),L.default.createElement("div",{className:nl.accBodyGroupDesc},L.default.createElement("p",null,e.study),L.default.createElement("p",null,e.completedYear))))))}]:[],...((null==p?void 0:p.awards)||[]).length>0?[{key:"awards",heading:u("profilePanel.awards"),iconSrc:m.CommonGAssets.getAssetPath(g?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:L.default.createElement("div",{className:nl.accBodyGroup},null==p?void 0:p.awards.map(((e,t)=>L.default.createElement("div",{className:nl.accBodyGroupTitle,key:t},e.title))))}]:[]],x=(null==p?void 0:p.relatedPosts)||[],y=v.filter((e=>e.url));return L.default.createElement("div",{className:`${nl.container} ${a}`,"data-is-marrybaby":g},b.length>0&&L.default.createElement(o.Accordion,{defaultValue:b[0].key,chevron:g?L.default.createElement("div",{className:nl.mbChevronWrapper},L.default.createElement(t.Plus,{size:12,color:s.theme.mbColors.midGray})):L.default.createElement(t.Plus,{color:s.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=>L.default.createElement(o.Accordion.Item,{key:e.key,value:e.key},L.default.createElement(o.Accordion.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":h},L.default.createElement("div",{className:nl.header},L.default.createElement("div",{className:nl.headingIcon},L.default.createElement("img",{src:e.iconSrc,loading:"lazy"})),L.default.createElement("div",{className:nl.heading},e.heading))),L.default.createElement(o.Accordion.Panel,null,e.panel))))),x.length>0&&L.default.createElement("div",{className:nl.group},L.default.createElement("div",{className:nl.subTitle},L.default.createElement("img",{className:nl.subIcon,src:m.CommonGAssets.getAssetPath(g?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),u("profilePanel.publishedArticles")),L.default.createElement("div",{className:`${nl.relatedList}`},null==p?void 0:p.relatedPosts.map((e=>L.default.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:nl.articleCardLink},L.default.createElement(ol,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}))))))),y.length>0&&L.default.createElement("div",{className:nl.group},L.default.createElement("div",{className:nl.subTitle},L.default.createElement("img",{className:nl.subIcon,src:m.CommonGAssets.getAssetPath(g?"social-mb.svg":"social.svg"),loading:"lazy"}),u("profilePanel.socialLinks")),L.default.createElement("div",{className:nl.groupBody},L.default.createElement(o.Flex,null,v.map(((e,t)=>e.url&&L.default.createElement("div",{className:nl.socialItem,key:t},L.default.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},L.default.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":h})))))))))};var rl={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const sl=({post:t,className:l=""})=>{var o,n,r,s,c,u,m,p;const{t:g}=i.useTranslations(),{data:{userInfo:h,env:{togetherBasePath:f}}}=e.useContext(a.TogetherComponentGlobalContext),{authActionWrapper:v,authorProps:b,currentPageUrl:x}=e.useContext(Qa),y=`${window.location.origin}${f}/${null===(o=null==t?void 0:t.community)||void 0===o?void 0:o.slug}/${null==t?void 0:t.slug}/`;return L.default.createElement("div",{className:`${rl.container} ${l}`},L.default.createElement("div",{className:rl.header},L.default.createElement("div",{className:rl.question},g("profilePanel.question")," ",L.default.createElement(d.Anchor,{className:rl.questionTitle,href:"#",onClick:()=>{(null==h?void 0:h.id)||null==v||v((()=>window.location.href=y))}},"#",null==t?void 0:t.title)),L.default.createElement("div",{className:rl.community},null===(n=null==t?void 0:t.community)||void 0===n?void 0:n.name," - ",null==t?void 0:t.createdTime)),L.default.createElement("div",{className:rl.questionCard},L.default.createElement(st,Object.assign({className:"card-author"},b,{role:"user",avatarIcon:L.default.createElement(ve,null),subLine:L.default.createElement(st.SubTextRow,null,L.default.createElement(st.SubText,null,null===(c=null===(s=null===(r=null==t?void 0:t.expertAnswer)||void 0===r?void 0:r.answer)||void 0===s?void 0:s[0])||void 0===c?void 0:c.createdTime))})),L.default.createElement(wa,{className:"post-content-wrapper",description:(null===(p=null===(m=null===(u=null==t?void 0:t.expertAnswer)||void 0===u?void 0:u.answer)||void 0===m?void 0:m[0])||void 0===p?void 0:p.content)||"",mentions:null==t?void 0:t.mentions,"data-testid":"Content of the Post"})),L.default.createElement(d.Button,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":x,size:"md",onClick:()=>{(null==h?void 0:h.id)?window.location.href=y:null==v||v((()=>window.location.href=y))}},g("profilePanel.anserwing.viewFull")))};var dl="MrdoES3",cl="_8fd7YMs",ul="DomiQfw",ml="-b2qnfL";const pl=({message:t,buttonTxt:a,imgSrc:l,onBtnClick:o})=>{const{siteType:n,isMarryBaby:i}=e.useContext(Qa);return L.default.createElement("div",{className:cl},L.default.createElement("div",{className:ul},L.default.createElement("img",{src:l||m.CommonGAssets.getAssetPath(i?"comments-mb.svg":"comments.svg"),loading:"lazy"})),t&&L.default.createElement("div",{className:ml},t),a&&L.default.createElement(b.Button,{size:"md",theme:n,color:"secondary",onClick:o},a))},gl=({id:t})=>{const{t:o}=i.useTranslations(),{data:{locale:n}}=e.useContext(a.TogetherComponentGlobalContext),{authorProps:r}=e.useContext(Qa),[s,d]=e.useState(null),[c,u]=e.useState(!1);return e.useEffect((()=>{t&&l.__awaiter(void 0,void 0,void 0,(function*(){var e;u(!0);const l=yield a.callApi(a.getApiPath(a.PATHS.USER.LIST_ANSWERS,{_locale:n,id:t}),"GET"),o=((null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.replies)||[]).map(g.formatPost);d(o),u(!1)}))}),[]),L.default.createElement("div",{className:dl},c?L.default.createElement(Za,null):null!==s&&(s.length>0?s.map((e=>L.default.createElement(sl,{className:"post-card",key:e.id,post:e}))):L.default.createElement(pl,{message:o("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))};var hl="toEutn7",fl="drdisHs";const vl=t=>{var o,n,i,r,{post:s}=t,c=l.__rest(t,["post"]);const{data:{env:{togetherBasePath:u}}}=e.useContext(a.TogetherComponentGlobalContext);return L.default.createElement(L.default.Fragment,null,L.default.createElement("div",Object.assign({},c,{className:`${hl} ${(null==c?void 0:c.className)||""}`}),L.default.createElement(st,{className:"card-author",avatar:null===(o=null==s?void 0:s.author)||void 0===o?void 0:o.avatar,name:(null===(n=null==s?void 0:s.author)||void 0===n?void 0:n.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:L.default.createElement(st.SubTextRow,null,L.default.createElement(st.SubText,null,null==s?void 0:s.createdTime))}),L.default.createElement(d.Anchor,{href:`${window.location.origin}${u}/${null===(r=null==s?void 0:s.community)||void 0===r?void 0:r.slug}/${null==s?void 0:s.slug}/`,className:fl,rel:"noreferrer"},null==s?void 0:s.title)))};var bl={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const xl=()=>{var t,n;const{t:r}=i.useTranslations(),{data:{locale:c,userInfo:u}}=e.useContext(a.TogetherComponentGlobalContext),{onSkipQuestion:p,countValues:h,setCountValues:f}=e.useContext(Qa),[v,b]=e.useState(),[x,y]=e.useState([]),[w,C]=e.useState(!1),E=null==u?void 0:u.id;e.useEffect((()=>{E&&l.__awaiter(void 0,void 0,void 0,(function*(){var e;C(!0);const t=yield a.callApiWithAuth(a.getApiPath(a.PATHS.USER.LIST_QUESTION_NEED_REPLY,{_locale:c}),"GET"),l=[],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(g.formatPost),delete e.question,l.push(g.formatCommunity(e))})),y(l),b(o),C(!1)}))}),[]);const k=({id:e,communityId:t})=>{if(e&&t&&v){const a=Object.assign(Object.assign({},v),{[t]:[...((null==v?void 0:v[t])||[]).filter((t=>t.id!==e))]});let l=0;Object.keys(a).map((e=>l+=a[e].length||0)),b(a),f(Object.assign(Object.assign({},h),{total_question:l})),null==p||p(l)}};return L.default.createElement("div",{className:bl.container},w?L.default.createElement(Za,null):(null==h?void 0:h.total_question)>0?x.length>0&&L.default.createElement(o.Accordion,{className:bl.accordion,defaultValue:String((null===(n=x[null===(t=Object.keys(x))||void 0===t?void 0:t[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:L.default.createElement("div",{className:bl.chevron},L.default.createElement(d.ArrowDown,{color:s.theme.colors.gray600,size:20}))},x.map((e=>{const t=v&&(null==v?void 0:v[e.id])||[];return t.length>0&&L.default.createElement(o.Accordion.Item,{key:e.id,value:String(e.id)},L.default.createElement(o.Accordion.Control,null,L.default.createElement("div",{className:bl.header},L.default.createElement("div",{className:bl.headingIcon},L.default.createElement("img",{src:e.thumbnail,loading:"lazy"})),L.default.createElement("div",{className:bl.heading},e.name))),L.default.createElement(o.Accordion.Panel,null,L.default.createElement("div",{className:bl.body},t.map((e=>L.default.createElement(vl,{className:"question-card",key:e.id,post:e,onSkip:k}))))))}))):L.default.createElement(pl,{message:r("profilePanel.emptyCareMess.content"),imgSrc:m.CommonGAssets.getAssetPath("questions.svg")}))};var yl="GA-zc-O",wl="A18McWD",Cl="IB049vj",El="_8I--vEV";const kl=({post:l,className:n=""})=>{var r;const{data:{userInfo:s,env:{togetherBasePath:d}}}=e.useContext(a.TogetherComponentGlobalContext),{t:c}=i.useTranslations(),u=o.useMantineTheme(),{authActionWrapper:m,authorProps:p}=e.useContext(Qa),g=`${window.location.origin}${d}/${null===(r=null==l?void 0:l.community)||void 0===r?void 0:r.slug}/${null==l?void 0:l.slug}/`;return L.default.createElement("div",{className:`${yl} ${n}`},L.default.createElement("div",{className:Cl},L.default.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":g,className:El,href:g,onClick:e=>{(null==s?void 0:s.id)||(e.preventDefault(),null==m||m((()=>window.location.href=g)))}}),L.default.createElement(Ie,{className:"card-author",avatarProps:{avatar:null==p?void 0:p.avatar,size:32}},L.default.createElement(st.MainText,{className:wl},null==l?void 0:l.title),L.default.createElement(st.SubTextRow,null,L.default.createElement(st.SubText,null,null==l?void 0:l.createdTime))),L.default.createElement(wa,{className:"post-content-wrapper",description:null==l?void 0:l.description,mentions:null==l?void 0:l.mentions,maxChars:200,"data-testid":"Content of the Post",hideShowAllBtn:!0}),L.default.createElement(t.Text,{size:"p3",color:u.fn.primaryColor()},c("post.seeMore"))))};var Al="TSMHoEM";const Nl=()=>{const{t:t}=i.useTranslations(),{data:{locale:o}}=e.useContext(a.TogetherComponentGlobalContext),{authorId:n,authorProps:r,isAuthorLogin:s,onCloseFromPost:d}=e.useContext(Qa),[c,u]=e.useState(null),[m,p]=e.useState(!1);return e.useEffect((()=>{n&&l.__awaiter(void 0,void 0,void 0,(function*(){var e;p(!0);const t=yield a.callApi(a.getApiPath(a.PATHS.USER.LIST_POST,{_locale:o,id:n,isAnonymous:0}),"GET"),l=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(g.formatPost);u(l),p(!1)}))}),[n]),L.default.createElement("div",{className:Al},m?L.default.createElement(Za,null):null!==c&&(c.length>0?c.map((e=>L.default.createElement(kl,{className:"post-card",key:e.id,post:e}))):L.default.createElement(pl,{message:t("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:s&&t("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var Tl="_4Vekw96",Sl="DIJdGcB",Pl="aQSt4-Q";const Il=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Ml=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var zl,Ll;exports.TabName=void 0,(zl=exports.TabName||(exports.TabName={}))[zl.About=0]="About",zl[zl.Care=1]="Care",zl[zl.Answer=2]="Answer",zl[zl.Posts=3]="Posts",function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Ll||(Ll={}));const Bl=t=>{var o,{authorProps:n,selectedTab:r,authActionWrapper:s,onSkipQuestion:c,onCloseFromPost:u,hideQuestionTab:m,hideAnswerTab:p,showSkipQuestionTag:h,rolesToShowQuestionsTab:f=["expert"],currentPageUrl:v}=t,b=l.__rest(t,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:x,userInfo:y,env:{isMarryBaby:w}}}=e.useContext(a.TogetherComponentGlobalContext),{t:C}=i.useTranslations(),E=null==n?void 0:n.role,k=null==y?void 0:y.role,A=String(null==n?void 0:n.userId),[N,T]=e.useState(),[S,P]=e.useState(!1),[I,M]=e.useState(),z=(null==y?void 0:y._togetherUserId)===(null==n?void 0:n.userId),B=[...-1!==f.indexOf(E)?[{value:exports.TabName.About,text:C("profilePanel.tabs.highlight"),content:L.default.createElement(il,{id:A,info:I}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:v}]:[],{value:exports.TabName.Posts,text:C("profilePanel.tabs.posts"),content:L.default.createElement(Nl,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...m||-1===f.indexOf(k)||(null==y?void 0:y._togetherUserId)!==(null==n?void 0:n.userId)?[]:[{value:exports.TabName.Care,text:`${C("profilePanel.tabs.care")}`,content:L.default.createElement(xl,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:v}],...p||-1===f.indexOf(E)?[]:[{value:exports.TabName.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:L.default.createElement(gl,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:v}]],[R,O]=e.useState(null),[j,F]=e.useState(null),V={value:String(j),dataList:R,onTabChange:e=>F(Number(e))},U=null==B?void 0:B.filter((e=>null==e?void 0:e.hasCountResult));e.useEffect((()=>{l.__awaiter(void 0,void 0,void 0,(function*(){var e,t,l,o,n,i,s,d,c,u;P(!0);const m=yield Promise.all([a.callApi(a.getApiPath(a.PATHS.USER.DETAIL,{_locale:x,id:A}),"GET"),...U.map((e=>a.callApi(a.getApiPath(a.PATHS.USER.COUNT_TABS,{_locale:x,id:A,[e.keyOfCountApi]:1}),"GET")))]),[p]=m,h={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(Il),relatedPosts:((null===(l=null==p?void 0:p.data)||void 0===l?void 0:l.related_post)||[]).map((e=>g.formatArticle(e.post))),educations:((null===(n=null===(o=null==p?void 0:p.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(Ml),awards:(null===(s=null===(i=null==p?void 0:p.data)||void 0===i?void 0:i.fields)||void 0===s?void 0:s.awards_accreditations)||[],contact:(null===(c=null===(d=null==p?void 0:p.data)||void 0===d?void 0:d.fields)||void 0===c?void 0:c.contact)||{}};1===(null==p?void 0:p.status)&&M(h);const f=(null==h?void 0:h.relatedPosts)||[],v=Object.keys(h.contact).map((e=>{var t;return""!==(null===(t=null==h?void 0:h.contact)||void 0===t?void 0:t[e])})),b=[...(null==h?void 0:h.experiences)||[],...(null==h?void 0:h.educations)||[],...(null==h?void 0:h.awards)||[]],y=f.length>0||v.length>0||b.length>0,w={},C=U.map(((e,t)=>{var a,l,o;const n=(null===(o=null===(l=null===(a=m[t+1])||void 0===a?void 0:a.data)||void 0===l?void 0:l.counting)||void 0===o?void 0:o[e.keyOfResult])||0;return n>0?(w[e.keyOfResult]=n,e):-1!==[exports.TabName.Care,exports.TabName.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),E=B.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==w?void 0:w[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==C.indexOf(t.value)?t:void 0:t.value===exports.TabName.About?y&&t:t})).filter(Boolean);O(E),F(r||(null===(u=null==E?void 0:E[0])||void 0===u?void 0:u.value)),T(w),P(!1)}))}),[]);const _=null==I?void 0:I.data;return L.default.createElement(Qa.Provider,{value:{isMarryBaby:w,siteType:w?"marryBaby":"helloSites",authorId:String((null==n?void 0:n.userId)||""),authActionWrapper:s,onSkipQuestion:c,info:I,authorProps:n,onCloseFromPost:u,countValues:N,setCountValues:T,isAuthorLogin:z,showSkipQuestionTag:h,currentPageUrl:v}},L.default.createElement("div",Object.assign({},b,{className:`${Tl} ${(null==b?void 0:b.className)||""}`,"data-is-marrybaby":w}),S?L.default.createElement(Za,null):L.default.createElement(L.default.Fragment,null,L.default.createElement(st,Object.assign({},n,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==n?void 0:n.role)?(null==_?void 0:_.specialty)&&(null==_?void 0:_.organisation)&&L.default.createElement(st.SubTextRow,null,(null==_?void 0:_.specialty)&&L.default.createElement(L.default.Fragment,null,L.default.createElement(st.SubText,null,null==_?void 0:_.specialty),L.default.createElement(st.SubDivider,null)),L.default.createElement(st.SubText,null,null==_?void 0:_.organisation)):(null==_?void 0:_.created_at)&&L.default.createElement(st.SubTextRow,null,L.default.createElement(st.SubText,null,C("profilePanel.joined")," ",D.default(null==_?void 0:_.created_at).toNow(!0)))})),"expert"===E&&L.default.createElement("div",{className:Sl,dangerouslySetInnerHTML:{__html:null===(o=null==I?void 0:I.data)||void 0===o?void 0:o.description}}),null!==R&&null!==j&&(R.length>0?L.default.createElement("div",{className:Pl},L.default.createElement(d.Tabs,Object.assign({},V))):L.default.createElement(pl,{message:C("profilePanel.emptyPostMess.content",{text:(null==n?void 0:n.name)||(null==n?void 0:n.username)||""})})))))};var Rl=Object.freeze({__proto__:null,get TabName(){return exports.TabName},get UserType(){return Ll},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Bl}),Ol="KsWg8i6",jl="_9tS0EUN",Fl="kyyRKlb",Dl="-Uqqka-";var Vl="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10Z' fill='%233E3F58'/%3e %3cpath d='M19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10Z' fill='%233E3F58'/%3e %3cpath d='M12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z' fill='%233E3F58'/%3e %3c/svg%3e",Ul="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='%23595959' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",_l="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Hl="data:image/svg+xml,%3csvg width='3' height='13' viewBox='0 0 3 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1.58326' cy='6.41663' r='1.25' transform='rotate(89.9997 1.58326 6.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='1.41663' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 1.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='11.4166' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 11.4166)' fill='%23595959'/%3e%3c/svg%3e",Wl="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 5.33337C13.1046 5.33337 14 4.43794 14 3.33337C14 2.2288 13.1046 1.33337 12 1.33337C10.8954 1.33337 10 2.2288 10 3.33337C10 4.43794 10.8954 5.33337 12 5.33337Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4 10C5.10457 10 6 9.10457 6 8C6 6.89543 5.10457 6 4 6C2.89543 6 2 6.89543 2 8C2 9.10457 2.89543 10 4 10Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12 14.6666C13.1046 14.6666 14 13.7712 14 12.6666C14 11.5621 13.1046 10.6666 12 10.6666C10.8954 10.6666 10 11.5621 10 12.6666C10 13.7712 10.8954 14.6666 12 14.6666Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.72668 9.00665L10.28 11.66' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.2734 4.33997L5.72668 6.9933' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",ql="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 4H3.33333H14' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33334 3.99992V2.66659C5.33334 2.31296 5.47382 1.97382 5.72387 1.72378C5.97392 1.47373 6.31305 1.33325 6.66668 1.33325H9.33334C9.68697 1.33325 10.0261 1.47373 10.2762 1.72378C10.5262 1.97382 10.6667 2.31296 10.6667 2.66659V3.99992M12.6667 3.99992V13.3333C12.6667 13.6869 12.5262 14.026 12.2762 14.2761C12.0261 14.5261 11.687 14.6666 11.3333 14.6666H4.66668C4.31305 14.6666 3.97392 14.5261 3.72387 14.2761C3.47382 14.026 3.33334 13.6869 3.33334 13.3333V3.99992H12.6667Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.66666 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.33334 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Gl=({authorEmail:t,onDeletePost:o,shareUrl:n,post:r,className:s="",popoverClassName:d="",onBookmark:c,onRemoveBookmark:u,onEditPost:p})=>{const{data:{locale:g,userInfo:h,togetherUserId:f,env:{isMarryBaby:v}},action:{pushNotifications:b}}=e.useContext(a.TogetherComponentGlobalContext),{t:x}=i.useTranslations(),[y,w]=e.useState(!1),[C,E]=e.useState(!1),[k,A]=e.useState(!1),{authActionWrapper:N}=W(),T=t&&(null==h?void 0:h.email)&&t===String(null==h?void 0:h.email);return L.default.createElement("div",{className:s,onClick:e=>{e.preventDefault(),e.stopPropagation()}},k&&L.default.createElement(ga,{url:n,text:null==r?void 0:r.title,onClose:()=>A(!1)}),C&&L.default.createElement(ra,{thumbnail:m.CommonGAssets.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:x("popup.deletePost.title"),description:x("popup.deletePost.description"),acceptText:x("popup.deletePost.accept"),cancelText:x("popup.deletePost.cancel"),onAccept:()=>l.__awaiter(void 0,void 0,void 0,(function*(){if((null==r?void 0:r.id)&&!y){w(!0);try{const e=yield(({id:e,locale:t})=>l.__awaiter(void 0,void 0,void 0,(function*(){if(e)return yield a.callApiWithAuth(a.getApiPath(a.PATHS.POST.DELETE,{id:e,_locale:t}),"DELETE")})))({id:r.id,locale:g});1===(null==e?void 0:e.status)&&(null==o||o())}catch(e){}w(!1)}})),onClose:()=>E(!1)}),L.default.createElement(ge,{className:d,toggleButtonContent:L.default.createElement("img",{src:v?Vl:Hl,loading:"lazy"}),position:"bottom",align:"end",buttonProps:{isLoading:y},data:T?{isShowheader:!1,type:"list",list:[{icon:Wl,label:x("morePopover.share"),onClick:()=>A(!0)},{icon:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.16952 3.2356H2.99484C2.6785 3.2356 2.37512 3.36126 2.15143 3.58495C1.92774 3.80863 1.80208 4.11202 1.80208 4.42836V12.7777C1.80208 13.094 1.92774 13.3974 2.15143 13.6211C2.37512 13.8448 2.6785 13.9705 2.99484 13.9705H11.3442C11.6605 13.9705 11.9639 13.8448 12.1876 13.6211C12.4113 13.3974 12.537 13.094 12.537 12.7777V8.60303' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M11.6425 2.341C11.8798 2.10375 12.2016 1.97046 12.5371 1.97046C12.8726 1.97046 13.1944 2.10375 13.4317 2.341C13.6689 2.57826 13.8022 2.90005 13.8022 3.23558C13.8022 3.57111 13.6689 3.89289 13.4317 4.13015L7.76607 9.79578L5.38054 10.3922L5.97692 8.00663L11.6425 2.341Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",label:x("actionPopover.edit"),onClick:p},{icon:ql,label:x("actionPopover.delete"),onClick:()=>{N((()=>E(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Wl,label:x("morePopover.share"),onClick:()=>A(!0)},{icon:(null==r?void 0:r.bookmarked)?Ul:_l,label:(null==r?void 0:r.bookmarked)?x("morePopover.unsavePost"):x("morePopover.savePost"),onClick:()=>{N((()=>l.__awaiter(void 0,void 0,void 0,(function*(){if((null==h?void 0:h.id)&&(null==r?void 0:r.id))if(null==r?void 0:r.bookmarked){const e=yield a.callApiWithAuth(a.getApiPath(a.PATHS.BOOKMARK.DELETE,{_locale:g}),"DELETE",{data:{post_id:String(r.id)}});1===(null==e?void 0:e.status)?(b({title:"",message:"Removed saved post",type:"success",displayIcon:_l}),u&&u()):b({title:"",message:"Remove failed",type:"danger",displayIcon:_l})}else{const e=yield a.callApiWithAuth(a.getApiPath(a.PATHS.BOOKMARK.CREATE,{_locale:g}),"POST",{data:{user_id:f||h.id,post_id:r.id}});1===(null==e?void 0:e.status)?(b({title:"",message:"Post saved",type:"success",displayIcon:Ul}),c&&c()):b({title:"",message:"Post saved failed",type:"danger",displayIcon:_l})}}))))}},{icon:va,label:x("morePopover.report"),subTree:{title:x("morePopover.report.title"),description:x("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(a.REPORT_REASON_MAP).map((e=>({label:a.REPORT_REASON_MAP[e].label,reason:a.REPORT_REASON_MAP[e].reportReasonText,reasonValue:e}))).map((e=>({label:x(e.label),subTree:{title:x("morePopover.reportSubmit.title"),description:x("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>L.default.createElement(ba,{reason:e.reasonValue,reasonText:x(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},Zl=F.default.div`
2564
+ position: relative;
2565
+ margin-bottom: 24px;
2566
+ background: white;
2567
+ border-radius: ${s.theme.borderRadius};
2568
+
2569
+ a {
2570
+ text-decoration: none;
2571
+ }
2572
+
2573
+ ${w.MediaQueries.mbDown} {
2574
+ margin-bottom: 8px;
2575
+ }
2576
+ &.flat-top {
2577
+ border-top-left-radius: 0;
2578
+ border-top-right-radius: 0;
2579
+ }
2580
+
2581
+ .post-pin {
2582
+ padding: 0.5rem 1rem;
2583
+ border-radius: ${s.theme.borderRadius} 6px 0 0;
2584
+ }
2585
+ .post-author {
2586
+ display: flex;
2587
+ align-items: center;
2588
+ justify-content: space-between;
2589
+ &.comment {
2590
+ padding-right: 2.6rem;
2591
+ }
2592
+ .author-avatar-wrapper {
2593
+ width: 40px;
2594
+ height: 40px;
2595
+ font-size: 20px;
2596
+ ${w.MediaQueries.mbDown} {
2597
+ width: 32px;
2598
+ height: 32px;
2599
+ font-size: 16px;
2600
+ }
2601
+ }
2602
+ }
2603
+ .post-content-link-wrapper {
2604
+ color: inherit;
2605
+ cursor: pointer;
2606
+ .post-content-title {
2607
+ padding: 1rem 1rem 0;
2608
+ word-break: break-word;
2609
+ }
2610
+ }
2611
+ .social-preview-wrapper.has-image {
2612
+ margin-bottom: 5px;
2613
+ }
2614
+ .social-preview-wrapper,
2615
+ .image-preview-wrapper,
2616
+ .link-preview-wrapper {
2617
+ width: 100%;
2618
+ &[data-is-reply='true'] {
2619
+ padding-right: 1rem;
2620
+ padding-left: 1rem;
2621
+ }
2622
+ }
2623
+ .post-topics {
2624
+ padding: 0 1rem;
2625
+ }
2626
+
2627
+ .post-reaction {
2628
+ background: none;
2629
+ border-radius: 0 0 6px 6px;
2630
+ &.hide-top-border {
2631
+ ::before {
2632
+ display: none;
2633
+ }
2634
+ }
2635
+ }
2636
+ .most-engaging-wrapper {
2637
+ padding: 1rem;
2638
+ cursor: pointer;
2639
+ .author-avatar-wrapper {
2640
+ width: 2rem;
2641
+ height: 2rem;
2642
+ font-size: 1rem;
2643
+ }
2644
+ .see-more-comments {
2645
+ width: 100%;
2646
+ padding: 12px 0 0;
2647
+ text-align: unset;
2648
+ }
2649
+ }
2650
+ &[data-most-engaging='true'] {
2651
+ border: none;
2652
+ ${w.MediaQueries.mbDown} {
2653
+ margin: 1rem;
2654
+ border: 1px solid #e4e8ec;
2655
+ }
2656
+ }
2657
+ .top-divider {
2658
+ border-color: #e4e8ec;
2659
+ }
2660
+ .popover {
2661
+ .popover-menu__btn {
2662
+ display: flex;
2663
+ width: 1.5rem;
2664
+ height: 1rem;
2665
+ align-items: center;
2666
+ justify-content: center;
2667
+ padding: 0;
2668
+ background: transparent;
2669
+
2670
+ &:hover {
2671
+ background-color: transparent;
2672
+ }
2673
+ }
2674
+ .popover-menu__content {
2675
+ &.--position-bottom {
2676
+ &.--align-end {
2677
+ &::before {
2678
+ right: 12.5px;
2679
+ }
2680
+ }
2681
+ }
2682
+ }
2683
+ }
2684
+
2685
+ &[data-is-marrybaby='true'] {
2686
+ border: 1px solid #f3f3f3;
2687
+ border-radius: 1rem;
2688
+ /* shadow */
2689
+
2690
+ box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
2691
+ .image-preview-wrapper,
2692
+ .link-preview-wrapper {
2693
+ padding-right: 1rem;
2694
+ padding-left: 1rem;
2695
+ }
2696
+ .popover {
2697
+ .popover-menu__btn {
2698
+ width: 24px;
2699
+ height: 24px;
2700
+ ${w.MediaQueries.mbDown} {
2701
+ width: 18px;
2702
+ height: 18px;
2703
+ }
2704
+ }
2705
+ .popover-menu__content {
2706
+ &.--position-bottom {
2707
+ &.--align-end {
2708
+ &::before {
2709
+ right: 1rem;
2710
+ }
2711
+ width: 350px;
2712
+ ${w.MediaQueries.mbDown} {
2713
+ max-width: calc(320px - 2rem);
2714
+ }
2715
+ }
2716
+ }
2717
+ }
2718
+ }
2719
+ .most-engaging-wrapper {
2720
+ position: relative;
2721
+ padding: 0;
2722
+ &::before {
2723
+ position: absolute;
2724
+ z-index: 5;
2725
+ top: 0;
2726
+ left: 50%;
2727
+ width: calc(100% - 2rem);
2728
+ height: 1px;
2729
+ background: #f3f3f3;
2730
+ content: ' ';
2731
+ transform: translateX(-50%);
2732
+ }
2733
+ }
2734
+ ${w.MediaQueries.mbDown} {
2735
+ margin-bottom: 12px;
2736
+ }
2737
+ }
2738
+ `;const Ql=({onDeleteComment:t,commentId:o,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:d},action:{pushNotifications:c}}=e.useContext(a.TogetherComponentGlobalContext),{t:u}=i.useTranslations(),[m,p]=e.useState(!1),{authActionWrapper:g}=W();return L.default.createElement("div",{className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()}},m&&L.default.createElement(ra,{thumbnail:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cg stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' clip-path='url(%23clip0)'%3e%3cpath d='M2 4.008h12M5.333 4.008V2.675a1.333 1.333 0 0 1 1.334-1.333h2.666a1.333 1.333 0 0 1 1.334 1.333v1.333m2 0v9.334a1.333 1.333 0 0 1-1.334 1.333H4.667a1.333 1.333 0 0 1-1.334-1.333V4.008h9.334ZM6.667 7.342v4M9.333 7.342v4'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0'%3e%3cpath fill='white' d='M0 .008h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",isThumbnailIcon:!0,title:u("popup.deleteComment.title"),description:u("popup.deleteComment.description"),acceptText:u("popup.deletePost.accept"),cancelText:u("popup.deletePost.cancel"),onAccept:()=>l.__awaiter(void 0,void 0,void 0,(function*(){var e;if(!o)return;const l=yield(({id:e,locale:t})=>a.callApiWithAuth(a.getApiPath(a.PATHS.COMMENT.DELETE,{_locale:t,id:e}),"DELETE"))({id:o,locale:d});1===(null==l?void 0:l.status)?(t&&t(),c({title:"",message:u("notification.success"),type:"success"})):c({title:"",message:(null===(e=null==l?void 0:l.messages)||void 0===e?void 0:e[0])||u("notification.failure"),type:"danger"})})),onClose:()=>p(!1)}),L.default.createElement(ge,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:ql,label:u("actionPopover.delete"),onClick:()=>{g((()=>{p(!0)}))}}]},className:r,toggleButtonContent:L.default.createElement("img",{src:s?Vl:Hl,loading:"lazy"}),buttonProps:{}}))},Xl=F.default.div`
2739
+ .add-link {
2740
+ color: ${s.theme.colors.primaryBase};
2741
+ }
2742
+ `,Kl=F.default.div`
2743
+ margin: 16px 0;
2744
+ background: ${s.theme.colors.yellow50};
2745
+ padding: 5px 10px;
2746
+ border-radius: 2px;
2747
+
2748
+ .icon {
2749
+ display: inline-block;
2750
+ vertical-align: middle;
2751
+ margin-right: 6px;
2752
+ }
2753
+ `,$l=F.default.div`
2754
+ display: flex;
2755
+ align-items: center;
2756
+ gap: 8px;
2757
+ `,Yl=F.default.div`
2758
+ padding: 8px 16px;
2759
+ `,Jl=F.default.div`
2760
+ margin-bottom: 12px;
2761
+ width: 100%;
2762
+ `,eo=F.default.div``,to=F.default.div`
2763
+ margin-bottom: 16px;
2764
+ `,ao=F.default.div`
2765
+ display: flex;
2766
+ flex-wrap: wrap;
2767
+ row-gap: 16px;
2768
+ ${w.MediaQueries.tdUp} {
2769
+ align-items: center;
2770
+ column-gap: 24px;
2771
+ }
2772
+ `,lo=F.default.a`
2773
+ display: flex;
2774
+ align-items: center;
2775
+ gap: 16px;
2776
+ ${w.MediaQueries.mbDown} {
2777
+ width: 100%;
2778
+ justify-content: space-between;
2779
+ }
2780
+ `,oo=F.default.div`
2781
+ display: flex;
2782
+ align-items: center;
2783
+ gap: 16px;
2784
+ `,no=F.default.div`
2785
+ border-radius: ${s.theme.borderRadius};
2786
+ overflow: hidden;
2787
+ width: 48px;
2788
+ height: 48px;
2789
+ img {
2790
+ object-fit: cover;
2791
+ width: 100%;
2792
+ height: 100%;
2793
+ }
2794
+ `,io=({categories:l})=>{const{t:o}=i.useTranslations(),{data:{locale:n,env:{isMarryBaby:r}}}=e.useContext(a.TogetherComponentGlobalContext),d=P.getCurrentBaseUrl(n,r);return L.default.createElement(eo,null,L.default.createElement(to,null,L.default.createElement(x.Heading,{tag:"h6",as:"h5"},o("cardReply.recommentCategories.heading"))),L.default.createElement(ao,null,l.map((e=>L.default.createElement(lo,{href:d+e.permalink,key:String(e.termId),target:"_blank"},L.default.createElement(oo,null,L.default.createElement(no,null,L.default.createElement("img",{src:e.featureImage||m.CommonGAssets.getAssetPath(r?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),L.default.createElement(t.Text,{size:"s3",weight:"bold"},e.displayName)),L.default.createElement(t.Icon.ArrowRight,{size:20,color:s.theme.colors.gray400}))))))},ro=F.default.a`
2795
+ padding: 12px 0;
2796
+ display: flex;
2797
+ flex-direction: column;
2798
+ gap: 8px;
2799
+ border-top: 1px solid ${s.theme.colors.neutral100};
2800
+ text-decoration: none;
2801
+
2802
+ &:first-child {
2803
+ border-top: 0;
2804
+ }
2805
+ `,so=({postTitle:e,articleReviewed:a,modifiedTime:l,href:o})=>{const{t:n}=i.useTranslations(),r=(()=>{const{expert:e,editor:t,is_author:l}=a;if(e){const t={name:e.display_name,role:"expert",avatar:e.avatar};return l?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(t)return{title:n("articleAuthor.title.fact-check"),name:t.display_name,avatar:t.avatar}})();return L.default.createElement(ro,{href:o,title:e,target:"_blank"},L.default.createElement(t.Text,{size:"s3",as:"h5",weight:"bold"},e),L.default.createElement("div",null,L.default.createElement(st,{avatar:null==r?void 0:r.avatar,avatarProps:{size:32},name:null==r?void 0:r.name,role:null==r?void 0:r.role,hideBackground:!0},L.default.createElement(st.SubTextRow,null,L.default.createElement(st.SubText,null,null==r?void 0:r.title," ",L.default.createElement("span",{style:{color:s.theme.colors.gray800}},null==r?void 0:r.name)),L.default.createElement(st.SubDivider,null),L.default.createElement(st.SubText,null,l)))))};var co="F4mmgSy",uo="A7QrQ7A";const mo=n=>{var{listUrl:r,categorySlug:c,editMode:u,onListChange:p,isMarryBaby:f}=n,v=l.__rest(n,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:y}=i.useTranslations(),[w,C]=e.useState(r||[]),[E,k]=e.useState([]),[A,N]=e.useState([]),[T,S]=e.useState(!1);e.useEffect((()=>{l.__awaiter(void 0,void 0,void 0,(function*(){S(!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=>a.callApi(e.isMarrySite?a.getMarryBabyApiPath(a.DISCOVER_PATHS.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):a.getDiscoverApiPath(a.DISCOVER_PATHS.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],l=yield Promise.all(t);k(l.map(((t,a)=>{var l,o;return(null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.post)&&Object.assign(Object.assign({},g.formatArticle(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.post)),{href:e[a].href})})).filter(Boolean)),S(!1)}))}),[]),e.useEffect((()=>{0===(null==E?void 0:E.length)&&c&&l.__awaiter(void 0,void 0,void 0,(function*(){var e;const t=yield a.callApi(f?a.getMarryBabyApiPath(a.DISCOVER_PATHS.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:c},!0):a.getDiscoverApiPath(a.DISCOVER_PATHS.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:c},!0),"GET");(null==t?void 0:t.data)&&N([g.formatCategory(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[E]);return e.useEffect((()=>{null==p||p(w)}),[w]),L.default.createElement("div",Object.assign({},v),!u&&L.default.createElement(Kl,null,L.default.createElement("img",{className:"icon",src:m.CommonGAssets.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),L.default.createElement(t.Text,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:y("cardReply.disclaimer")}})),T?L.default.createElement(Ue,null):E.length>0||u?L.default.createElement(Xl,null,L.default.createElement(o.Accordion,{defaultValue:"accordion",styles:{control:{border:`1px solid ${s.theme.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${s.theme.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:L.default.createElement("div",{className:uo},L.default.createElement(d.ArrowDown,{color:s.theme.colors.gray600,size:20}))},L.default.createElement(o.Accordion.Item,{value:"accordion"},L.default.createElement(o.Accordion.Control,null,L.default.createElement("div",{className:co},L.default.createElement(x.Heading,{as:"h4",tag:"h6"},y("cardReply.source")))),L.default.createElement(o.Accordion.Panel,null,L.default.createElement(Yl,null,(E||[]).map(((e,a)=>L.default.createElement($l,{key:String(a)},"object"==typeof e?L.default.createElement(so,Object.assign({},e)):L.default.createElement(Jl,null,L.default.createElement(h.Input,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{C((t=>{const l=[...t];return l[a]=e,l})),k((t=>{const l=[...t];return l[a]=e,l}))}})),u&&L.default.createElement(b.Button,{size:"md",color:"transparent",icon:L.default.createElement(t.Icon.Trash,null),onClick:()=>(e=>{C((t=>{const a=[...t];return a.splice(e,1),a})),k((t=>{const a=[...t];return a.splice(e,1),a}))})(a)})))),u&&L.default.createElement(b.Button,{className:"add-link",color:"transparent",size:"md",icon:L.default.createElement(t.Icon.Plus,{color:s.theme.colors.primaryBase,size:18}),onClick:()=>{C((e=>[...e,""])),k((e=>[...e,""]))}},"Add source")))))):L.default.createElement(io,{categories:A}))},po=F.default.div`
2806
+ position: relative;
2807
+ margin-bottom: 0;
2808
+ background: white;
2809
+ border-radius: ${s.theme.borderRadius};
2810
+
2811
+ .verify-tag {
2812
+ margin-top: 12px;
2813
+ }
2814
+
2815
+ .post-author {
2816
+ &.with-popover {
2817
+ padding-right: 2.6rem;
2818
+ }
2819
+ .author-avatar-wrapper {
2820
+ width: 40px;
2821
+ height: 40px;
2822
+ font-size: 20px;
2823
+ ${w.MediaQueries.mbDown} {
2824
+ width: 32px;
2825
+ height: 32px;
2826
+ font-size: 16px;
2827
+ }
2828
+ }
2829
+ }
2830
+ .image-preview-wrapper,
2831
+ .link-preview-wrapper {
2832
+ width: 100%;
2833
+ &[data-is-reply='true'] {
2834
+ padding-right: 1rem;
2835
+ padding-left: 1rem;
2836
+ }
2837
+ }
2838
+ .post-reaction {
2839
+ background: none;
2840
+ border-radius: 0 0 6px 6px;
2841
+ }
2842
+ &[data-is-reply='true'] {
2843
+ > .post-author .author-avatar-wrapper {
2844
+ width: 20px;
2845
+ height: 20px;
2846
+ font-size: 10px;
2847
+ }
2848
+ }
2849
+ &[data-is-reply='false'] {
2850
+ border: 1px solid #e4e8ec;
2851
+ }
2852
+ .expert-wrapper {
2853
+ width: 100%;
2854
+ }
2855
+ &[data-has-booking='true'] {
2856
+ display: grid;
2857
+ .post-author {
2858
+ background-color: ${s.theme.colors.primary50};
2859
+ }
2860
+ .btn-wrapper {
2861
+ padding: 0 16px;
2862
+ .btn-booking {
2863
+ width: 100%;
2864
+ margin: 12px 0;
2865
+ }
2866
+ }
2867
+ }
2868
+
2869
+ .comment-reply-wrapper {
2870
+ padding: 0 1rem;
2871
+ .more-cmt {
2872
+ .chevron-right {
2873
+ height: 1rem;
2874
+ width: 1rem;
2875
+ vertical-align: middle;
2876
+ }
2877
+ }
2878
+ }
2879
+ .top-divider {
2880
+ border-color: #e4e8ec;
2881
+ }
2882
+ .popover {
2883
+ position: absolute;
2884
+ top: 1.5rem;
2885
+ right: 1rem;
2886
+ .popover-menu__btn {
2887
+ display: flex;
2888
+ width: 1rem;
2889
+ height: 1rem;
2890
+ align-items: center;
2891
+ justify-content: center;
2892
+ padding: 0;
2893
+ background: transparent;
2894
+
2895
+ &:hover {
2896
+ background-color: transparent;
2897
+ }
2898
+
2899
+ .popover-menu__content {
2900
+ &.--position-bottom {
2901
+ &.--align-end {
2902
+ &::before {
2903
+ right: 12.5px;
2904
+ }
2905
+ }
2906
+ }
2907
+ }
2908
+ }
2909
+ }
2910
+
2911
+ &[data-is-marrybaby='true'] {
2912
+ &[data-is-reply='false'] {
2913
+ border: none;
2914
+ }
2915
+ .image-preview-wrapper,
2916
+ .link-preview-wrapper {
2917
+ padding-right: 1rem;
2918
+ padding-left: 1rem;
2919
+ }
2920
+ .popover {
2921
+ .popover-menu__btn {
2922
+ width: 24px;
2923
+ height: 24px;
2924
+ }
2925
+ }
2926
+
2927
+ margin-left: 56px;
2928
+ ${w.MediaQueries.mbDown} {
2929
+ margin-left: 40px;
2930
+ }
2931
+ > .post-author {
2932
+ margin-left: -56px;
2933
+ ${w.MediaQueries.mbDown} {
2934
+ margin-left: -40px;
2935
+ }
2936
+ .author-info {
2937
+ align-items: center;
2938
+ display: flex;
2939
+ align-items: center;
2940
+ .author-info-top {
2941
+ width: 100%;
2942
+ }
2943
+ .author-info-text-wrapper {
2944
+ justify-content: space-between;
2945
+ }
2946
+ }
2947
+ .author-avatar-wrapper {
2948
+ width: 40px;
2949
+ height: 40px;
2950
+ font-size: 20px;
2951
+ ${w.MediaQueries.mbDown} {
2952
+ width: 24px;
2953
+ height: 24px;
2954
+ font-size: 12px;
2955
+ }
2956
+ }
2957
+ }
2958
+ &[data-is-reply] {
2959
+ > .post-author {
2960
+ .author-avatar-wrapper {
2961
+ width: 40px;
2962
+ height: 40px;
2963
+ font-size: 20px;
2964
+ ${w.MediaQueries.mbDown} {
2965
+ width: 24px;
2966
+ height: 24px;
2967
+ font-size: 12px;
2968
+ }
2969
+ }
2970
+ }
2971
+ }
2972
+
2973
+ .comment-reply-wrapper {
2974
+ padding-right: 0;
2975
+ padding-left: 0;
2976
+ }
2977
+ .post-reaction {
2978
+ &::after {
2979
+ position: absolute;
2980
+ bottom: 0;
2981
+ left: 50%;
2982
+ width: calc(100% - 2rem);
2983
+ height: 1px;
2984
+ background: #f3f3f3;
2985
+ content: ' ';
2986
+ transform: translateX(-50%);
2987
+ }
2988
+ }
2989
+ .post-content-wrapper {
2990
+ padding-top: 0;
2991
+ padding-bottom: 0;
2992
+ ${w.MediaQueries.mbDown} {
2993
+ padding-left: 0.5rem;
2994
+ }
2995
+ }
2996
+
2997
+ ${w.MediaQueries.mbDown} {
2998
+ margin-bottom: 12px;
2999
+ }
3000
+ }
3001
+ `,go=F.default(mo)`
3002
+ margin-top: 12px;
3003
+ padding: 0.5rem 1rem 1rem;
3004
+ `;var ho="-dzIuHr";const fo=({userId:a,avatar:l,name:o,role:n,title:r,className:d})=>{const{t:c}=i.useTranslations(),[u,m]=e.useState(!1);return L.default.createElement(L.default.Fragment,null,L.default.createElement(b.Button,{className:`${ho} ${d}`,color:"success",size:"xs",onClick:()=>m(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},L.default.createElement("span",{className:"text"},L.default.createElement(t.Icon.Endorse,{isSolid:!0,size:18,color:s.theme.colors.green800,className:"icon"}),c("cardReply.verifyBy",{name:`${o||""}`}))),L.default.createElement(it,{open:u,onClose:()=>m(!1),profileModalProps:{zIndex:1e3}},L.default.createElement(Bl,{authorProps:{userId:a,avatar:l,name:o,role:n,title:r},hideQuestionTab:!0})))};const vo=({className:t,style:o,comment:n,type:r="comment",level:s=0,replyingId:d,onPostCommentSuccess:u,post:m,onDeleteComment:g,refetchComment:h,hasQuickBookingEnable:f,handleMakeAppointment:v,cardAuthorProps:x,maxChars:y=600,disableShortenContent:w})=>{var C,E,k,A,N,T,S,P,I,M,z,B,R;const{data:{locale:O,userInfo:j,env:{isMarryBaby:F}}}=e.useContext(a.TogetherComponentGlobalContext),{t:D}=i.useTranslations(),[V,U]=e.useState(n||null),{id:_,countLikes:q,content:Z,replies:Q=[],images:X=[],author:K,liked:$,link:J,mentionedUser:ee,mentions:te}=V,{text:ae,replyingTo:le}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})(Z),{authActionWrapper:oe}=W({_joinCommunityIds:[null===(C=null==m?void 0:m.community)||void 0===C?void 0:C.id],_joinTopicIds:null===(E=null==m?void 0:m.topics)||void 0===E?void 0:E.map((e=>e.id))}),[ie,re]=e.useState(4),se=!!(null==j?void 0:j.id)&&(null==Q?void 0:Q.some((e=>e.author.id===j.id))),de=e=>{U((t=>{if(!t.replies.find((t=>t.id===e.id))){t.replies.unshift(e);const a=Object.assign(Object.assign({},t),{replies:t.replies.slice(),countReplies:t.countReplies+1});return h&&h(a),a}return t}))},[ce,ue]=e.useState(!1),me=e.useMemo((()=>"comment"===r&&Q&&0!=Q.length?Q.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),l=new Date(t.createdAt).getTime();return a>l?-1:a<l?1:0})):Q),[r,Q]),pe=(null==Q?void 0:Q.length)||0,ge=String(null==K?void 0:K.email)&&(null==j?void 0:j.email)&&String(null==K?void 0:K.email)===String(null==j?void 0:j.email),he=(null==K?void 0:K.name)||(null==K?void 0:K.username)||"",fe=(null==K?void 0:K.username)||(null==K?void 0:K.name)||"",ve=null==K?void 0:K.avatar,be=(null==m?void 0:m.isAnonymous)||null==K?void 0:K.role,xe=[...(null==m?void 0:m.isAnonymous)?[{id:(null===(k=null==m?void 0:m.author)||void 0===k?void 0:k.id)||0,name:D("cardPost.anonymous")}]:[],...te||[]],[ye,we]=e.useState(null),[Ce,Ee]=e.useState(null);e.useEffect((()=>{if(null==K?void 0:K.hospitalId){const e=e=>l.__awaiter(void 0,void 0,void 0,(function*(){var t;const l=yield a.callApi(a.getCarePath(a.CARE_PATHS.GET_HOSPITAL_INFO,{hospital_branch_id:e,website_url:c.domainLocales[O]}),"get");(null===(t=null==l?void 0:l._data)||void 0===t?void 0:t.branch)&&we(null==l?void 0:l._data.branch)}));e(K.hospitalId)}if(null==K?void 0:K.doctorId){const e=e=>l.__awaiter(void 0,void 0,void 0,(function*(){var t;const l=yield a.callApi(a.getCarePath(a.CARE_PATHS.GET_DOCTOR_INFO,{doctorId:e,website_url:c.domainLocales[O]}),"get");(null===(t=null==l?void 0:l._data)||void 0===t?void 0:t.doctor)&&Ee(null==l?void 0:l._data.doctor)}));e(K.doctorId)}}),[K.hospitalId,K.doctorId]);const ke=(null==Ce?void 0:Ce.valid_outpatient)||(null==Ce?void 0:Ce.valid_telemedicine),Ae=((null==ye?void 0:ye.total_available_service)||(null==ye?void 0:ye.total_available_doctor))>0,Ne=f&&(ke||Ae),Te="chatbot"===(null===(A=null==V?void 0:V.author)||void 0===A?void 0:A.type);return L.default.createElement(H,{defaultParams:{_joinCommunityIds:[null===(N=null==m?void 0:m.community)||void 0===N?void 0:N.id],_joinTopicIds:null===(T=null==m?void 0:m.topics)||void 0===T?void 0:T.map((e=>e.id))}},L.default.createElement(po,{className:t,style:o,"data-is-reply":!!s,"data-is-marrybaby":F,"data-has-booking":Ne},"reply"===r&&L.default.createElement(p.Divider,{className:"top-divider",type:"solid"}),L.default.createElement("div",{style:{padding:"16px 16px 0"}},L.default.createElement(st,Object.assign({avatar:ve,name:he,username:fe,timeText:null==m?void 0:m.createdTime,community:null==m?void 0:m.community,className:"post-author "+(ge?"with-popover":""),type:r,userId:null==K?void 0:K.id,role:be,expertId:null==K?void 0:K.partnerId,title:null==K?void 0:K.title,doctorId:null==K?void 0:K.doctorId,hospitalId:null==K?void 0:K.hospitalId,hasQuickBooking:Ne,handleMakeAppointment:v,isAnonymous:(null==V?void 0:V.isAnonymous)||Boolean(null==m?void 0:m.isAnonymous)&&(null===(S=null==m?void 0:m.author)||void 0===S?void 0:S.username)===(null==K?void 0:K.username),hideBackground:Te,userType:null==K?void 0:K.type},x)),Boolean(null==V?void 0:V.isVerify)&&!Boolean(null==V?void 0:V.isOppose)&&L.default.createElement(fo,{title:null===(P=null==V?void 0:V.userVerify)||void 0===P?void 0:P.title,name:null===(I=null==V?void 0:V.userVerify)||void 0===I?void 0:I.name,userId:null===(M=null==V?void 0:V.userVerify)||void 0===M?void 0:M.id,role:null===(z=null==V?void 0:V.userVerify)||void 0===z?void 0:z.role,avatar:null===(B=null==V?void 0:V.userVerify)||void 0===B?void 0:B.avatar,className:"verify-tag"})),L.default.createElement(wa,{className:"post-content-wrapper",replyingTo:le,mentionedUser:ee,description:ae,mentions:xe,maxChars:y,disableShortenContent:w}),L.default.createElement("span",null),L.default.createElement("span",null),X&&X.length>0?L.default.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},L.default.createElement(Ha,{images:X,authorName:null==K?void 0:K.username})):null,X&&0!==X.length||!J?null:L.default.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},L.default.createElement(G,{url:J})),"most-engaging"!==r?L.default.createElement(L.default.Fragment,null,Te&&L.default.createElement(go,{listUrl:null==V?void 0:V.source,categorySlug:null==V?void 0:V.categorySlug}),L.default.createElement(ne,{type:Y.reply,loveCount:q,replyCount:pe,className:"post-reaction",liked:$,isReplied:se,hideCommentIcon:"reply"===r||Te,hasShare:!1,onCommentClick:()=>oe((()=>ue((e=>!e)))),onCommentCountClick:()=>oe((()=>{ue(!0)})),onLikeClick:()=>oe((()=>l.__awaiter(void 0,void 0,void 0,(function*(){if(_){const e=yield(({commentId:e,setLike:t=!1,locale:o})=>l.__awaiter(void 0,void 0,void 0,(function*(){return a.callApiWithAuth(a.getApiPath(t?a.PATHS.COMMENT.LIKE:a.PATHS.COMMENT.UNLIKE,{_locale:o,id:e}),"GET")})))({commentId:_,setLike:!$,locale:O});1===e.status&&U((e=>Object.assign(Object.assign({},e),{liked:!$,countLikes:e.countLikes+($?-1:1)})))}}))))}),ce&&L.default.createElement(ca,{replyingId:d||V.id,replyToName:he,isReply:!0,onClose:()=>ue(!1),onPostSuccess:e=>{"reply"===r?u&&u(e):de(e)},post:m,replyingUser:K}),"comment"===r&&Q&&Q.length>0?L.default.createElement("div",{className:"comment-reply-wrapper"},null===(R=null==me?void 0:me.slice(0,ie))||void 0===R?void 0:R.map((e=>L.default.createElement(vo,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:s+1,replyingId:_,onPostCommentSuccess:de,post:m,onDeleteComment:()=>{U((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:v,hasQuickBookingEnable:f}))),pe>ie&&L.default.createElement(L.default.Fragment,null,L.default.createElement(p.Divider,{className:"top-divider",type:"solid"}),L.default.createElement(b.Button,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>re((e=>e+4))},D("comment.seeMoreReplies",{count:pe-ie}),L.default.createElement("img",{className:"chevron-right",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12L10 8L6 4' stroke='%232D87F3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"})))):null):null,ge&&L.default.createElement(Ql,{onDeleteComment:g,className:"popover",commentId:V.id})))},bo=(e,t)=>l.__awaiter(void 0,void 0,void 0,(function*(){var l,o,n;const i=yield a.callApiWithOptionalAuth(a.getApiPath(a.PATHS.COMMENT.LIST,{postId:e,_locale:t,sort:"popularity",perPage:1,withoutReply:1}),"GET");return null===(n=null===(o=null===(l=null==i?void 0:i.data)||void 0===l?void 0:l.comments)||void 0===o?void 0:o.map(g.formatComment))||void 0===n?void 0:n[0]}));var xo=Object.freeze({__proto__:null});exports.CardAuthor=st,exports.CardLink=G,exports.CardPost=({className:t,style:o,hideViewMoreComment:n,showMostEngaging:r,onCommentClick:s,onCommentCountClick:d,onMostEngagingCommentClick:c,onPostCommentSuccess:u,disableCardLink:m,disableShortenContent:p,onDeletePost:g,onEditPost:h,post:f,mostEngagingComment:v,onDeleteComment:y,showInputComment:w,InlineCommentsComponent:C,hasQuickBookingEnable:E,handleMakeAppointment:k,cardAuthorProps:A})=>{const[N,T]=e.useState(f),[S,P]=e.useState(!1),[I,M]=e.useState(v),{community:z,topics:R,author:O,slug:j,isPin:F,liked:D,photos:V,mentions:U,title:_,description:q,previewUrl:Z,likesCount:Q,commentsCount:X,id:K,commented:$}=N,{data:{locale:J,env:{isMarryBaby:ee,togetherBasePath:te}},action:{pushNotifications:ae}}=e.useContext(a.TogetherComponentGlobalContext),{t:le}=i.useTranslations(),[oe,ie]=e.useState(w),se=`${te}/${(null==z?void 0:z.slug)||"_"}/${j||""}`,de=`${a.getCurrentBaseUrl(J)}${se}`,{authActionWrapper:ue}=W((null==z?void 0:z.slug)?{_joinCommunityIds:[z.id],_joinTopicIds:null==R?void 0:R.map((e=>e.id))}:void 0),[me,pe]=e.useState(!1);e.useEffect((()=>{ie(w)}),[w]);const ge=(null==O?void 0:O.name)||(null==O?void 0:O.username)||"",he=(null==O?void 0:O.username)||(null==O?void 0:O.name)||"",fe=null==O?void 0:O.avatar,ve=(null==N?void 0:N.isAnonymous)||null==O?void 0:O.role,[be,xe]=e.useState(null),[ye,we]=e.useState(null);e.useEffect((()=>{if(null==O?void 0:O.hospitalId){(e=>l.__awaiter(void 0,void 0,void 0,(function*(){var t;const l=yield a.callApi(a.getCarePath(a.CARE_PATHS.GET_HOSPITAL_INFO,{hospital_branch_id:e,website_url:a.domainLocales[J]}),"get");(null===(t=null==l?void 0:l._data)||void 0===t?void 0:t.branch)&&xe(null==l?void 0:l._data.branch)})))(O.hospitalId)}if(null==O?void 0:O.doctorId){(e=>l.__awaiter(void 0,void 0,void 0,(function*(){var t;const l=yield a.callApi(a.getCarePath(a.CARE_PATHS.GET_DOCTOR_INFO,{doctorId:e,website_url:a.domainLocales[J]}),"get");(null===(t=null==l?void 0:l._data)||void 0===t?void 0:t.doctor)&&we(null==l?void 0:l._data.doctor)})))(O.doctorId)}}),[O.hospitalId,O.doctorId]);const Ce=(null==ye?void 0:ye.valid_outpatient)||(null==ye?void 0:ye.valid_telemedicine),Ee=((null==be?void 0:be.total_available_service)||(null==be?void 0:be.total_available_doctor))>0,ke=E&&(Ce||Ee);e.useEffect((()=>{l.__awaiter(void 0,void 0,void 0,(function*(){if(K&&X&&r&&!(null==v?void 0:v.id)){const e=yield bo(K,J);M(e)}}))}),[K,J,X,r,null==v?void 0:v.id]),e.useEffect((()=>{M(v)}),[null==v?void 0:v.id]);const Ae=e=>l.__awaiter(void 0,void 0,void 0,(function*(){if(X>1&&(null==I?void 0:I.id)&&(null==I?void 0:I.id)===(null==e?void 0:e.id)){const e=yield bo(K,J);M(e)}T((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),y&&y(e)}));return L.default.createElement(H,{defaultParams:(null==z?void 0:z.slug)?{_joinCommunityIds:[z.id],_joinTopicIds:null==R?void 0:R.map((e=>e.id))}:void 0},S&&L.default.createElement(ga,{url:de,avatar:a.DEFAULT_IMG,text:_,onClose:()=>P(!1)}),L.default.createElement(Zl,{className:t,style:o,"data-is-marrybaby":ee},F?L.default.createElement(ce,{className:"post-pin"}):null,L.default.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},L.default.createElement(st,Object.assign({avatar:fe,name:ge,username:he,url:m?void 0:se,community:z,timeText:null==N?void 0:N.createdTime,className:"post-author",role:ve,userId:null==O?void 0:O.id,expertId:null==O?void 0:O.partnerId,doctorId:null==O?void 0:O.doctorId,hospitalId:null==O?void 0:O.hospitalId,title:null==O?void 0:O.title,hasQuickBooking:ke,handleMakeAppointment:k,"data-testid":"name",isAnonymous:!!(null==N?void 0:N.isAnonymous),extendEle:L.default.createElement(Gl,{authorEmail:String(null==O?void 0:O.email),onDeletePost:g,shareUrl:de,post:N,className:"popover",onEditPost:h})},A))),L.default.createElement("a",{href:m?void 0:se,className:"post-content-link-wrapper"},_&&L.default.createElement(x.Heading,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},B.default(_)),L.default.createElement(wa,{className:"post-content-wrapper",description:q,disableShortenContent:p,mentions:U,"data-testid":"Content of the Post"})),L.default.createElement("span",null),L.default.createElement("span",null),L.default.createElement("div",{key:"tag-topic"},R&&R.length>0?L.default.createElement(re,{topics:R,className:"post-topics"}):null),L.default.createElement("div",{key:"social-preview"},(null==N?void 0:N.introUrl)?L.default.createElement("div",{className:"social-preview-wrapper "+((null==V?void 0:V.length)?"has-image":"")},L.default.createElement(qa,{url:N.introUrl,image:N.bannerImage})):null),L.default.createElement("div",{key:"image-preview"},(null==V?void 0:V.length)?L.default.createElement("div",{className:"image-preview-wrapper"},L.default.createElement(Ha,{images:V,authorName:null==O?void 0:O.name})):null),L.default.createElement("div",{key:"link-preview"},(null==N?void 0:N.introUrl)||(null==V?void 0:V.length)||!(null==Z?void 0:Z.url)?null:L.default.createElement("div",{className:"link-preview-wrapper"},L.default.createElement(G,{title:Z.title,url:Z.url,image:Z.image}))),L.default.createElement(ne,{isMarryBaby:ee,type:Y.post,loveCount:Q,replyCount:X,className:"post-reaction "+((null==V?void 0:V.length)||(null==Z?void 0:Z.url)?"hide-top-border":""),liked:me?!D:D,isReplied:$,onCommentClick:()=>ue((()=>{s?s():ie((e=>!e))})),onCommentCountClick:()=>{ue((()=>{ee?ie(!0):d?d():!m&&(window.location.href=se)}))},onShareClick:()=>{P(!0)},onLikeClick:()=>l.__awaiter(void 0,void 0,void 0,(function*(){if(K&&!me){pe(!0);try{const e=yield(({id:e,locale:t})=>l.__awaiter(void 0,void 0,void 0,(function*(){if(e)return yield a.callApiWithAuth(a.getApiPath(a.PATHS.POST.LIKE,{id:e,_locale:t}),"GET")})))({id:K,locale:J});1!==(null==e?void 0:e.status)?ae(dt(le)):T((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){ae(dt(le))}pe(!1)}})),showingMostEngaging:!(!r||!(null==I?void 0:I.id))}),oe&&L.default.createElement(ca,{isMainCmt:!w,onClose:()=>ie(!1),onPostSuccess:e=>{0!==X||(null==I?void 0:I.id)||M(e),T((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount+1,commented:!0}))),u&&u(e)},post:N}),r&&(null==I?void 0:I.id)?L.default.createElement("div",{className:"most-engaging-wrapper",onClick:e=>{c?(e.stopPropagation(),c()):window.location.href=se}},L.default.createElement(vo,{hasQuickBookingEnable:E,handleMakeAppointment:k,comment:I,post:N,onDeleteComment:()=>{Ae&&Ae(I)},className:"most-engaging-comment",type:"most-engaging",key:I.id,cardAuthorProps:A}),X>1&&!n&&L.default.createElement(b.Button,{className:"see-more-comments",color:"ghost",size:"md"},le("comment.seeMoreComments",{count:X-1}))):null,C))},exports.CardPostPopoverMore=Gl,exports.CardReactions=ne,exports.CardReply=vo,exports.CardReplyPopover=Ql,exports.Close=U,exports.CreateNewPostContent=({className:r,style:c,onPostCreatedEdited:u,onClose:h,communities:f=[],forceSelectCommunity:v,forceSelectTopics:b,articleId:x,optionalTopic:y,editPostData:C,defaultCommunity:E,defaultTopics:k,noFetchTopic:A,hideTopicList:N,selectAskDoctor:T,showAskDoctorOptions:S,currentPageUrl:P})=>{const I=!!(null==C?void 0:C.id),{data:{locale:M,env:{isMarryBaby:z}},action:{pushNotifications:R,sanitizeFunction:O}}=e.useContext(a.TogetherComponentGlobalContext),{t:j}=i.useTranslations(),[F,D]=e.useState(!1),[V,U]=e.useState(T),[_,H]=e.useState(!1),[W,q]=e.useState(!1),[G,Z]=e.useState(!1),[Q,X]=e.useState(""),[K,$]=e.useState(""),[Y,J]=e.useState(v?{label:v.name,value:`${v.id||""}-${v.mappedCategoryId||""}`}:{label:j("community.choose"),value:""}),[ee,te]=e.useState([...b]||[]),[ae,le]=e.useState([]),[oe,ne]=e.useState([]),ie=v||f.find((e=>`${e.id||""}-${e.mappedCategoryId||""}`===Y.value)),re=v?[v]:f.filter((e=>e.isActive)).sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),[se,de]=e.useState(null),[ce,ue]=e.useState([]),me=Q&&!W&&B.default(K)&&(y||!y&&ee.length>0)&&ie&&(!ae||ae.length<=a.MAX_IMAGE_UPLOADS)&&!(null==ce?void 0:ce.length)&&!G;e.useEffect((()=>{if(C){const e=C;X(e.title||""),$(Nt(At(e.description||"","edit"),e.mentions)),J({label:e.community.name,value:`${e.community.id||""}-${e.community.mappedCategoryId||""}`}),te(e.topics||[]),le(e.photos||[]),D(!!e.isAnonymous||!1),U(!!e.isAskDoctor||!1)}else E&&J({label:E.name,value:`${E.id||""}-${E.mappedCategoryId||""}`}),k&&te(k)}),[]),e.useEffect((()=>{q(""!==Q&&!/[a-zA-Z]/.test(Q))}),[Q]);const pe=()=>l.__awaiter(void 0,void 0,void 0,(function*(){var e,t,o,n,i,r,s,d,c;if(S&&void 0===V)return H(!0),!1;const m=yield(({title:e,description:t,communityId:o,imageFiles:n,previewUrl:i,topicIds:r,locale:s,sanitizeFunction:d,categoryCommunityId:c,categoryTopicIds:u,introUrl:m,bannerUrl:p,scheduleTime:g,isAnonymous:h,isAskDoctor:f})=>l.__awaiter(void 0,void 0,void 0,(function*(){const l=new FormData,v=It(t),b=It(e),x=St(v);if(l.append("title",b),l.append("description",Mt(v,d)),c?l.append("category_community",String(c)):o&&l.append("community_id",String(o)),l.append("is_anonymous",h?"1":"0"),l.append("is_question",f?"1":"0"),(null==i?void 0:i.title)&&l.append("preview_title",i.title),(null==i?void 0:i.description)&&l.append("preview_description",i.description),(null==i?void 0:i.url)&&l.append("preview_link",w.safeEncodeURI(i.url)),(null==i?void 0:i.image)&&l.append("preview_image",w.safeEncodeURI(i.image)),null==r||r.forEach((e=>{l.append("topics[]",String(e||""))})),null==u||u.forEach((e=>{l.append("category_topics[]",String(e||""))})),null==n?void 0:n.length){const e=yield Promise.all(n.map(((e,t)=>new Promise((a=>{setTimeout((()=>{a(Rt(e,s))}),2e3*t)})))));null==e||e.filter(Boolean).slice(0,a.MAX_IMAGE_UPLOADS).forEach(((e,t)=>{l.append(`images[${t}]`,e)}))}else l.append("images","");return null==x||x.forEach((e=>{l.append("mention_ids[]",e)})),l.append("intro_url",m||""),l.append("banner",p||""),g&&(l.append("post_type","scheduled"),l.append("schedule_datetime",g)),l})))({title:Q,description:K,communityId:String((null==ie?void 0:ie.id)||""),imageFiles:ae,previewUrl:se,topicIds:null==ee?void 0:ee.map((e=>String(e.id||""))).filter(Boolean),locale:M,sanitizeFunction:O,categoryCommunityId:String((null==ie?void 0:ie.mappedCategoryId)||""),categoryTopicIds:null==ee?void 0:ee.map((e=>String(e.mappedCategoryId||""))).filter(Boolean),isAnonymous:F?1:0,isAskDoctor:V?1:0});let p;x&&m.append("article_id",x),I?(null==C?void 0:C.id)&&(p=yield(({id:e,locale:t,formData:o})=>l.__awaiter(void 0,void 0,void 0,(function*(){return yield a.callApiWithAuth(a.getApiPath(a.PATHS.POST.UPDATE,{id:e,_locale:t}),"POST",{data:o})})))({id:C.id,formData:m,locale:M})):p=yield(({locale:e,formData:t,isArticleComment:o})=>l.__awaiter(void 0,void 0,void 0,(function*(){return yield a.callApiWithAuth(a.getApiPath(o?a.PATHS.POST.CREATE_ARTICLE_COMMENT:a.PATHS.POST.CREATE,{_locale:e}),"POST",{data:t})})))({formData:m,locale:M,isArticleComment:!(null==ie?void 0:ie.id)&&!!(null==ie?void 0:ie.mappedCategoryId)});const f=null==p?void 0:p.data;(null==f?void 0:f.id)&&!(null===(t=null===(e=null==p?void 0:p.messages)||void 0===e?void 0:e.moderation)||void 0===t?void 0:t.type)?(R({message:j("createPost.popup.success"),type:"success"}),(e=>{u&&u(g.formatPost(e),I),h&&h()})(f)):"banned"===(null===(n=null===(o=null==p?void 0:p.messages)||void 0===o?void 0:o.moderation)||void 0===n?void 0:n.type)?(R({title:j("notification.post.blocked.title"),message:j("notification.post.blocked.message"),type:"danger"}),p.messages.moderation.words&&ne(p.messages.moderation.words)):"suspect"===(null===(r=null===(i=null==p?void 0:p.messages)||void 0===i?void 0:i.moderation)||void 0===r?void 0:r.type)?(R({title:j("notification.post.suspect.title"),message:j("notification.post.suspect.message"),type:"warning"}),h&&h()):(null===(d=null===(s=null==p?void 0:p.messages)||void 0===s?void 0:s.find)||void 0===d?void 0:d.call(s,(e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(R({message:j("notification.suspend.message"),type:"danger"}),h&&h()):R({message:(null===(c=null==p?void 0:p.messages)||void 0===c?void 0:c[0])||j("notification.failure"),type:"danger"})}));return L.default.createElement(ct,{className:r,style:c},L.default.createElement("div",{className:"input-group-container"},L.default.createElement($t,{className:"input-group",bannedWords:oe,value:Q,onChange:X}),W&&L.default.createElement(mt,null,L.default.createElement(t.Info,{isSolid:!0,color:s.theme.colors.red700,size:14}),L.default.createElement(t.Text,{size:"p3",as:"span",color:s.theme.colors.red700},j("createPost.popup.specialCharErr"))),L.default.createElement(Qt,{className:"input-group",bannedWords:oe,value:K,onChange:$,onPreviewUrlChange:de,onInvalidUrlsChange:ue,onImageFilesChange:le,imageFiles:ae}),S&&L.default.createElement(ut,{"data-is-marry-baby":z},L.default.createElement("div",{className:"switch-label"},L.default.createElement(t.Ask,{isMarryBaby:z,size:z?32:24,color:s.theme.colors.primaryBase,className:"label-icon"}),L.default.createElement("span",{className:"label-txt"},j("createPost.askDoctor"))),L.default.createElement(p.BtnChoice,{value:V,choices:[{label:j("createPost.askDoctorChoice.yes"),value:!0,dataEventCategory:"Together",dataEventAction:"Write Post Click - Ask Doctor",dataEventLabel:P},{label:j("createPost.askDoctorChoice.no"),value:!1}],onChange:e=>{"boolean"==typeof e&&(H(!1),U(e))}})),_&&L.default.createElement(mt,null,L.default.createElement(t.Info,{isSolid:!0,color:s.theme.colors.red700,size:14}),L.default.createElement(t.Text,{size:"p3",as:"span",color:s.theme.colors.red700},j("createPost.message.askDoctorRequire"))),L.default.createElement("div",{className:"input-group"},L.default.createElement(t.Text,{size:"p4",className:"input-group-label"},j("admin.community")),L.default.createElement(n.Dropdown,{options:(null==re?void 0:re.map((e=>({label:e.name,value:`${e.id||""}-${e.mappedCategoryId||""}`}))))||[],id:"community-picker",placeholder:j("community.choose"),value:Y,dropdownLabelTrackingAttributes:{"data-event-category":"Together","data-event-action":"Write Post Click - Choose Community/Topic","data-event-label":P},onChange:e=>{J({label:e.label,value:String(e.value)}),te([])},disabled:!!v}),L.default.createElement(t.Text,{size:"sm",className:"warning",color:s.theme.colors.gray400},"* ",j("commentPopup.warning.newPost"))),!N&&L.default.createElement("div",{className:"input-group"},L.default.createElement(t.Text,{size:"p4",className:"input-group-label"},j("tab.topic")),L.default.createElement("div",{className:"input-notification"},L.default.createElement("img",{src:ie?"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%232D87F3'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e":pt,loading:"lazy"}),L.default.createElement(t.Text,{size:"base",color:s.theme.colors.gray500},j(ie?"createPost.popup.primary":"createPost.popup.warning"))),ie&&L.default.createElement(Jt,{className:"tag-list",communityId:ie.id,forceTopics:b,onChange:te,selectedTopics:ee,noFetch:A,dataEventCategory:"Together",dataEventAction:"Write Post Click - Choose Community/Topic",dataEventLabel:P}))),L.default.createElement("div",{className:"form-action"},L.default.createElement("div",{className:"input-group"},L.default.createElement(o.Checkbox,{className:"swich-input-group",labelPosition:"left",name:"PostAnonymous",checked:F,color:z?"pink":void 0,"data-event-category":"Together","data-event-action":"Write Post Click - Incognito","data-event-label":P,label:L.default.createElement("div",{className:"switch-label"},L.default.createElement("img",{className:"label-icon",src:m.CommonGAssets.getAssetPath("anomyous-avatar.svg"),alt:"anomyous avatar",style:{marginRight:"10px",width:"24px"},loading:"lazy"}),L.default.createElement("span",{className:"label-txt"},j("createPost.postAnonymous"))),value:"Post Anonymous",onChange:e=>D(e.currentTarget.checked),styles:{body:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},label:{display:"flex",alignItems:"center"}}})),L.default.createElement("div",{className:"input-group"},L.default.createElement(d.Button,{className:"submit-btn pointer-event-child-none",size:"lg","data-event-category":"Ask Doctor","data-event-action":"Submit Question","data-event-label":window.location.href,onClick:()=>l.__awaiter(void 0,void 0,void 0,(function*(){if(me&&!G){Z(!0);try{yield pe()}catch(e){console.error(e),R(dt(j))}Z(!1)}})),disabled:!me,loading:G},j("createPost.popup.submit")))))},exports.CreatePostDescription=Qt,exports.CreatePostTitle=$t,exports.ImagePreviewPopup=Pa,exports.InputCommentBar=ca,exports.LabelPin=ce,exports.LabelSortPin=de,exports.LabelSorting=({onChange:l,className:o,style:n,leftLabel:i,rightLabel:r,color:s,value:d,choices:c})=>{const{data:{env:{isMarryBaby:u}}}=e.useContext(a.TogetherComponentGlobalContext);return L.default.createElement(de,{label:i,rightLabel:L.default.createElement(ge,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:c.map((e=>({label:e.label,onClick:()=>l&&l(String(e.value)),selected:e.value===d,className:"bold-item"})))},toggleButtonContent:L.default.createElement("div",{style:{display:"flex"}},L.default.createElement(t.Text,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},r),L.default.createElement("img",{src:u?"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:o,style:n})},exports.PopoverMenu=pe,exports.PopupDanger=ra,exports.PopupDoctor=_e,exports.PopupExpert=Ke,exports.PopupFrame=ia,exports.PopupHospital=tt,exports.PostContent=wa,exports.PostImagePreview=Ha,exports.PostSingleImageViewPopup=Oa,exports.ProfileDetail=Bl,exports.ProfileDetailModal=it,exports.ShareBox=pa,exports.SharePopup=ga,exports.SkipQuestionOfExpertBtn=n=>{var{post:r,onSkip:s,btnText:c,currentPageUrl:u}=n,m=l.__rest(n,["post","onSkip","btnText","currentPageUrl"]);const{t:p}=i.useTranslations(),{data:{locale:g},action:{pushNotifications:h}}=e.useContext(a.TogetherComponentGlobalContext),[f,v]=e.useState(!1),[b,x]=e.useState(!1),y=o.useMantineTheme(),w=e.useCallback((()=>l.__awaiter(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield a.callApiWithAuth(a.getApiPath(a.PATHS.USER.SKIP_QUESTION,{_locale:g,id:null==r?void 0:r.id}),"PUT");1===(null==t?void 0:t.status)?(null==s||s({id:(null==r?void 0:r.id)||"",communityId:(null===(e=null==r?void 0:r.community)||void 0===e?void 0:e.id)||""}),v(!1),h({title:"",message:"Skip success",type:"success"})):h({title:"",message:null==t?void 0:t.messages,type:"danger"}),x(!1)}))),[]);return L.default.createElement(o.Popover,{width:327,withArrow:!0,shadow:"md",opened:f},L.default.createElement(o.Popover.Target,null,L.default.createElement("div",Object.assign({className:`${Ol} ${(null==m?void 0:m.className)||""}`,onClick:()=>v(!0)},m),c||p("profilePanel.questionNotClear"))),L.default.createElement(o.Popover.Dropdown,null,L.default.createElement("div",null,L.default.createElement("div",{className:jl},p("profilePanel.skipQuestion.heading")),L.default.createElement("div",{className:Fl},p("profilePanel.skipQuestion.content")),L.default.createElement("div",{className:Dl},L.default.createElement(d.Button,{size:"md",variant:"secondary",leftIcon:L.default.createElement(t.Close,{color:y.fn.primaryColor(),size:24}),onClick:()=>v(!1),styles:()=>({leftIcon:{marginRight:0}})}),L.default.createElement(d.Button,{variant:"primary",size:"md",leftIcon:L.default.createElement(t.Check,{color:"white",size:24}),onClick:w,loading:b,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":u,styles:()=>({leftIcon:{marginRight:0}})})))))},exports.SocialLinkPreview=qa,exports.SourceList=mo,exports.SubmitReportForm=ba,exports.TagTopic=re,exports.TogetherAuthConfigContext=_,exports.TogetherAuthConfigContextProvider=H,exports.TopicSelectList=Jt,exports.VerifiedTag=fo,exports.types=xo,exports.useTogetherAuthRequiredAction=W;