@hhgtech/hhg-components 1.27.68 → 1.27.69

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 (272) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/mantine/select/index.d.ts +4 -4
  5. package/build/components.js +1 -1
  6. package/build/constants.js +1 -1
  7. package/build/{core-a51b6a43.js → core-364d1067.js} +1 -1
  8. package/build/{dataTransform-00da49c4.js → dataTransform-7ab7ab3a.js} +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/babyGrowth.js +5 -5
  11. package/build/esm/cache.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components/mantine/select/index.d.ts +4 -4
  14. package/build/esm/components.js +1 -1
  15. package/build/esm/constants.js +1 -1
  16. package/build/esm/{core-bc36cf29.js → core-6492f231.js} +1 -1
  17. package/build/esm/{dataTransform-31c4c853.js → dataTransform-b8c22fc9.js} +1 -1
  18. package/build/esm/ecom.js +1 -1
  19. package/build/esm/{fixedBottomAdBlock-83912fd3.js → fixedBottomAdBlock-6c133fcc.js} +1 -1
  20. package/build/esm/footer.js +1 -1
  21. package/build/esm/gAssets.js +1 -1
  22. package/build/esm/{getDynamicHealthTool-2326a463.js → getDynamicHealthTool-d16f3b54.js} +1 -1
  23. package/build/esm/{getSocialList-d980085d.js → getSocialList-f491a2d9.js} +1 -1
  24. package/build/esm/hooks.js +1 -1
  25. package/build/esm/i18n.js +1 -1
  26. package/build/esm/i18nV2.js +1 -1
  27. package/build/esm/{index-3f3203dc.js → index-0a52e0c8.js} +1 -1
  28. package/build/esm/index-41b77f3e.js +1 -0
  29. package/build/esm/{index-a0141454.js → index-45f7496a.js} +1 -1
  30. package/build/esm/{index-e375e279.js → index-487953bb.js} +1 -1
  31. package/build/esm/{index-30cba675.js → index-4d5c0771.js} +1 -1
  32. package/build/esm/{index-331dcbca.js → index-531008d2.js} +1 -1
  33. package/build/esm/index-5fb217fb.js +1 -0
  34. package/build/esm/{index-48b38bdc.js → index-663ec4de.js} +1 -1
  35. package/build/esm/{index-07c18c8e.js → index-73288a5b.js} +1 -1
  36. package/build/esm/index-782be548.js +1 -0
  37. package/build/esm/{index-3f736c0b.js → index-823a548e.js} +1 -1
  38. package/build/esm/{index-bd8da8ac.js → index-9b177171.js} +1 -1
  39. package/build/esm/{index-fbe22277.js → index-a54b0739.js} +1 -1
  40. package/build/esm/{index-a4437a03.js → index-bb9b3e39.js} +1 -1
  41. package/build/esm/index-c4680d39.js +1 -0
  42. package/build/esm/{index-b0cd5d32.js → index-d20f3c10.js} +1 -1
  43. package/build/esm/index-eabb2f3d.js +1 -0
  44. package/build/esm/{index-661133f9.js → index-ed1cac71.js} +1 -1
  45. package/build/esm/{index-4d0ddb64.js → index-fb3c41e5.js} +1 -1
  46. package/build/esm/index-fd14a910.js +1 -0
  47. package/build/esm/{index-5404c828.js → index-fe72b968.js} +1 -1
  48. package/build/esm/index.js +1 -1
  49. package/build/esm/{index.styled-ad90ced9.js → index.styled-4eb37224.js} +1 -1
  50. package/build/esm/{index.styled-5fc3c70e.js → index.styled-8cd3ffb8.js} +1 -1
  51. package/build/esm/{index.styled-dd81b143.js → index.styled-a5c98598.js} +7 -7
  52. package/build/esm/lead.js +1 -1
  53. package/build/esm/mantine.js +1 -1
  54. package/build/esm/misc.js +1 -1
  55. package/build/esm/navigation.js +1 -1
  56. package/build/esm/onboarding.js +1 -1
  57. package/build/esm/onboardingV2.js +30 -30
  58. package/build/esm/pwg.js +5 -5
  59. package/build/esm/{routing-7370484f.js → routing-d9315774.js} +1 -1
  60. package/build/esm/{screenSizeContext-6c4b3d3a.js → screenSizeContext-e0bb4713.js} +3 -3
  61. package/build/esm/together.js +1 -1
  62. package/build/esm/{types-11ff140e.js → types-7abf7ed5.js} +10 -10
  63. package/build/esm/{types-c659f9ce.js → types-fc66947b.js} +9 -9
  64. package/build/esm/types.js +1 -1
  65. package/build/esm/useHealthToolCache-4b4cdc37.js +1 -0
  66. package/build/esm/{useRafState-d58fcec4.js → useRafState-be194a08.js} +1 -1
  67. package/build/esm/useTranslations-3e881db9.js +1 -0
  68. package/build/esm/{utils-32abe328.js → utils-1f109d73.js} +87 -87
  69. package/build/esm/{utils-7f96a570.js → utils-603729de.js} +1 -1
  70. package/build/esm/vaccination.js +49 -49
  71. package/build/{fixedBottomAdBlock-0c7e1813.js → fixedBottomAdBlock-80890f83.js} +1 -1
  72. package/build/footer.js +1 -1
  73. package/build/gAssets.js +1 -1
  74. package/build/getDynamicHealthTool-bdf0afc0.js +1 -0
  75. package/build/{getSocialList-ffb45884.js → getSocialList-1de29b3a.js} +1 -1
  76. package/build/hooks.js +1 -1
  77. package/build/i18n.js +1 -1
  78. package/build/i18nV2.js +1 -1
  79. package/build/index-024fd801.js +1 -0
  80. package/build/{index-0a4bdae9.js → index-165382ae.js} +1 -1
  81. package/build/{index-f64735f6.js → index-185962f0.js} +1 -1
  82. package/build/{index-87615aa6.js → index-298ad9ee.js} +1 -1
  83. package/build/{index-d17f77e7.js → index-2b8f37e1.js} +2 -2
  84. package/build/index-3c4ee26d.js +1 -0
  85. package/build/{index-49dc3607.js → index-5426419e.js} +1 -1
  86. package/build/{index-84038158.js → index-56aa446f.js} +1 -1
  87. package/build/{index-b5ee04ff.js → index-5878ef5b.js} +1 -1
  88. package/build/{index-d011fdfb.js → index-5e5656f3.js} +1 -1
  89. package/build/{index-4498d523.js → index-81a906a4.js} +1 -1
  90. package/build/{index-c1830f93.js → index-82272902.js} +1 -1
  91. package/build/{index-2124f3d8.js → index-8fd181ff.js} +1 -1
  92. package/build/{index-5baa63ab.js → index-a9217025.js} +1 -1
  93. package/build/{index-a913edb3.js → index-a9abd927.js} +1 -1
  94. package/build/{index-0b993b7b.js → index-b98e0abe.js} +1 -1
  95. package/build/{index-d240168e.js → index-b9c68d00.js} +1 -1
  96. package/build/{index-3baac80f.js → index-c5e53640.js} +1 -1
  97. package/build/{index-84f2f174.js → index-cd08fffe.js} +1 -1
  98. package/build/{index-d107dcd6.js → index-d0f3640e.js} +1 -1
  99. package/build/{index-317c7782.js → index-ebedce55.js} +1 -1
  100. package/build/index.js +1 -1
  101. package/build/{index.styled-dcd4dfbb.js → index.styled-a8bfc669.js} +3 -3
  102. package/build/{index.styled-849ca291.js → index.styled-ef0fd080.js} +5 -5
  103. package/build/{index.styled-e1e24f4f.js → index.styled-f8627c59.js} +1 -1
  104. package/build/lead.js +1 -1
  105. package/build/mantine.js +1 -1
  106. package/build/misc.js +1 -1
  107. package/build/navigation.js +1 -1
  108. package/build/onboarding.js +1 -1
  109. package/build/onboardingV2.js +18 -18
  110. package/build/pwg.js +2 -2
  111. package/build/{routing-893cc38c.js → routing-fb5db1d2.js} +1 -1
  112. package/build/{screenSizeContext-8b2edc76.js → screenSizeContext-f4914aa0.js} +1 -1
  113. package/build/together.js +1 -1
  114. package/build/{types-7aae8609.js → types-10d76b2f.js} +9 -9
  115. package/build/{types-f2162056.js → types-ca7b4a5a.js} +1 -1
  116. package/build/types.js +1 -1
  117. package/build/useHealthToolCache-f8aa169c.js +1 -0
  118. package/build/{useRafState-a3097ea8.js → useRafState-a5e9cda8.js} +1 -1
  119. package/build/{useTranslations-f674d3f2.js → useTranslations-e9a977c2.js} +1 -1
  120. package/build/utils-8f9cdef6.js +1 -0
  121. package/build/{utils-8ffad3ee.js → utils-f37ac675.js} +27 -27
  122. package/build/vaccination.js +42 -42
  123. package/package.json +1 -1
  124. package/build/esm/index-1d4eaa1c.js +0 -1
  125. package/build/esm/index-46be1b11.js +0 -1
  126. package/build/esm/index-65d702aa.js +0 -1
  127. package/build/esm/index-834d6dc0.js +0 -1
  128. package/build/esm/index-93f72147.js +0 -1
  129. package/build/esm/index-efe2d89d.js +0 -1
  130. package/build/esm/index-f7790f46.js +0 -1
  131. package/build/esm/useHealthToolCache-75e7237a.js +0 -1
  132. package/build/esm/useTranslations-e743d735.js +0 -1
  133. package/build/getDynamicHealthTool-533e408e.js +0 -1
  134. package/build/index-63287b2a.js +0 -1
  135. package/build/index-c3b319e0.js +0 -1
  136. package/build/index-c4ed2bd3.js +0 -1
  137. package/build/useHealthToolCache-33a1a75f.js +0 -1
  138. package/build/utils-a6e5c841.js +0 -1
  139. /package/build/{BMI_BOYS.percentile.monthly-40aa10d3.js → BMI_BOYS.percentile.monthly-566d44a6.js} +0 -0
  140. /package/build/{BMI_BOYS.percentile.weekly-f404b72d.js → BMI_BOYS.percentile.weekly-2d7a8532.js} +0 -0
  141. /package/build/{BMI_BOYS.percentile.yearly-8d434a93.js → BMI_BOYS.percentile.yearly-4ef940c7.js} +0 -0
  142. /package/build/{BMI_BOYS.zscore.monthly-8114e212.js → BMI_BOYS.zscore.monthly-61bd02a5.js} +0 -0
  143. /package/build/{BMI_BOYS.zscore.weekly-11c9d824.js → BMI_BOYS.zscore.weekly-c4752c39.js} +0 -0
  144. /package/build/{BMI_BOYS.zscore.yearly-5bec9369.js → BMI_BOYS.zscore.yearly-1bef43dd.js} +0 -0
  145. /package/build/{BMI_GIRLS.percentile.monthly-84b926eb.js → BMI_GIRLS.percentile.monthly-79da78b5.js} +0 -0
  146. /package/build/{BMI_GIRLS.percentile.weekly-c38dda42.js → BMI_GIRLS.percentile.weekly-d1dbd1b0.js} +0 -0
  147. /package/build/{BMI_GIRLS.percentile.yearly-dd38ff8b.js → BMI_GIRLS.percentile.yearly-de9fead6.js} +0 -0
  148. /package/build/{BMI_GIRLS.zscore.monthly-f7de6cf8.js → BMI_GIRLS.zscore.monthly-c787e54b.js} +0 -0
  149. /package/build/{BMI_GIRLS.zscore.weekly-b63e255d.js → BMI_GIRLS.zscore.weekly-ed863d49.js} +0 -0
  150. /package/build/{BMI_GIRLS.zscore.yearly-4fb1e977.js → BMI_GIRLS.zscore.yearly-8515d7fb.js} +0 -0
  151. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7a72c2f8.js → HEAD CIRCUM_BOYS.percentile.monthly-2669b31c.js} +0 -0
  152. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-1e6cdfe4.js → HEAD CIRCUM_BOYS.percentile.weekly-610d83ed.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e0af52a9.js → HEAD CIRCUM_BOYS.percentile.yearly-f393638f.js} +0 -0
  154. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-59821305.js → HEAD CIRCUM_BOYS.zscore.monthly-be42756d.js} +0 -0
  155. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-658be468.js → HEAD CIRCUM_BOYS.zscore.weekly-26db840c.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c7bf9ebd.js → HEAD CIRCUM_BOYS.zscore.yearly-79ed300c.js} +0 -0
  157. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-60b8aa21.js → HEAD CIRCUM_GIRLS.percentile.monthly-7ed956bc.js} +0 -0
  158. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-16c57811.js → HEAD CIRCUM_GIRLS.percentile.weekly-643a5eef.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e2ad4b1b.js → HEAD CIRCUM_GIRLS.percentile.yearly-e5768cb7.js} +0 -0
  160. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-1148183d.js → HEAD CIRCUM_GIRLS.zscore.monthly-67cce25e.js} +0 -0
  161. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-5a624c92.js → HEAD CIRCUM_GIRLS.zscore.weekly-fc98e3d3.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-89f0ce48.js → HEAD CIRCUM_GIRLS.zscore.yearly-681e1b54.js} +0 -0
  163. /package/build/{HEIGHT_BOYS.percentile.monthly-874459c9.js → HEIGHT_BOYS.percentile.monthly-7b20d402.js} +0 -0
  164. /package/build/{HEIGHT_BOYS.percentile.weekly-c5905ed0.js → HEIGHT_BOYS.percentile.weekly-7e97094b.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.percentile.yearly-be85c3c2.js → HEIGHT_BOYS.percentile.yearly-54adbf6c.js} +0 -0
  166. /package/build/{HEIGHT_BOYS.zscore.monthly-ab71494a.js → HEIGHT_BOYS.zscore.monthly-fbb459bf.js} +0 -0
  167. /package/build/{HEIGHT_BOYS.zscore.weekly-74473ee4.js → HEIGHT_BOYS.zscore.weekly-091ae57d.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.zscore.yearly-31d8cd4a.js → HEIGHT_BOYS.zscore.yearly-40990ba2.js} +0 -0
  169. /package/build/{HEIGHT_GIRLS.percentile.monthly-091b448a.js → HEIGHT_GIRLS.percentile.monthly-a441682e.js} +0 -0
  170. /package/build/{HEIGHT_GIRLS.percentile.weekly-95b64243.js → HEIGHT_GIRLS.percentile.weekly-d7214c9a.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.percentile.yearly-3d88d73d.js → HEIGHT_GIRLS.percentile.yearly-f4e2be20.js} +0 -0
  172. /package/build/{HEIGHT_GIRLS.zscore.monthly-b2e58560.js → HEIGHT_GIRLS.zscore.monthly-bc0b0f1a.js} +0 -0
  173. /package/build/{HEIGHT_GIRLS.zscore.weekly-487f2139.js → HEIGHT_GIRLS.zscore.weekly-25a9c973.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.zscore.yearly-cbb818b1.js → HEIGHT_GIRLS.zscore.yearly-4fd38d47.js} +0 -0
  175. /package/build/{Onboarding-fc91320a.js → Onboarding-918bcb2f.js} +0 -0
  176. /package/build/{Visible-c2df2203.js → Visible-f7b9a0ea.js} +0 -0
  177. /package/build/{WEIGHT_BOYS.percentile.monthly-67ed4096.js → WEIGHT_BOYS.percentile.monthly-fa2a7a93.js} +0 -0
  178. /package/build/{WEIGHT_BOYS.percentile.weekly-1a18346c.js → WEIGHT_BOYS.percentile.weekly-273c8412.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.percentile.yearly-079b69f1.js → WEIGHT_BOYS.percentile.yearly-33d1574d.js} +0 -0
  180. /package/build/{WEIGHT_BOYS.zscore.monthly-64b4fa20.js → WEIGHT_BOYS.zscore.monthly-dcf0b685.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.zscore.weekly-0511498e.js → WEIGHT_BOYS.zscore.weekly-edecc293.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.zscore.yearly-d0f9a48b.js → WEIGHT_BOYS.zscore.yearly-b575276b.js} +0 -0
  183. /package/build/{WEIGHT_GIRLS.percentile.monthly-b4dfcbfd.js → WEIGHT_GIRLS.percentile.monthly-a71f0afb.js} +0 -0
  184. /package/build/{WEIGHT_GIRLS.percentile.weekly-5adf6a8c.js → WEIGHT_GIRLS.percentile.weekly-f970f70d.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.percentile.yearly-349924c6.js → WEIGHT_GIRLS.percentile.yearly-12d34d41.js} +0 -0
  186. /package/build/{WEIGHT_GIRLS.zscore.monthly-364763a3.js → WEIGHT_GIRLS.zscore.monthly-630258eb.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.zscore.weekly-16428e47.js → WEIGHT_GIRLS.zscore.weekly-d3a2c4de.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.zscore.yearly-a70f35e5.js → WEIGHT_GIRLS.zscore.yearly-bd6e091b.js} +0 -0
  189. /package/build/{constants-f2b846fe.js → constants-8d1ab6b3.js} +0 -0
  190. /package/build/{cookieHelper-656ec051.js → cookieHelper-3b665b4b.js} +0 -0
  191. /package/build/{dataTransform-a9544ee6.js → dataTransform-fd8e952f.js} +0 -0
  192. /package/build/esm/{BMI_BOYS.percentile.monthly-64765251.js → BMI_BOYS.percentile.monthly-6dd7eda4.js} +0 -0
  193. /package/build/esm/{BMI_BOYS.percentile.weekly-26d1c266.js → BMI_BOYS.percentile.weekly-e74785e0.js} +0 -0
  194. /package/build/esm/{BMI_BOYS.percentile.yearly-139eb2db.js → BMI_BOYS.percentile.yearly-99e25311.js} +0 -0
  195. /package/build/esm/{BMI_BOYS.zscore.monthly-518ff64f.js → BMI_BOYS.zscore.monthly-2d627ad0.js} +0 -0
  196. /package/build/esm/{BMI_BOYS.zscore.weekly-87c22c2e.js → BMI_BOYS.zscore.weekly-a09067d0.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.zscore.yearly-042b66f3.js → BMI_BOYS.zscore.yearly-659610e9.js} +0 -0
  198. /package/build/esm/{BMI_GIRLS.percentile.monthly-ec4b2f4d.js → BMI_GIRLS.percentile.monthly-fc7ea529.js} +0 -0
  199. /package/build/esm/{BMI_GIRLS.percentile.weekly-e329889d.js → BMI_GIRLS.percentile.weekly-9f82ac12.js} +0 -0
  200. /package/build/esm/{BMI_GIRLS.percentile.yearly-38343779.js → BMI_GIRLS.percentile.yearly-7922630f.js} +0 -0
  201. /package/build/esm/{BMI_GIRLS.zscore.monthly-e5e8bf76.js → BMI_GIRLS.zscore.monthly-124db983.js} +0 -0
  202. /package/build/esm/{BMI_GIRLS.zscore.weekly-40c6e20c.js → BMI_GIRLS.zscore.weekly-2cd2ae10.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.zscore.yearly-a2021786.js → BMI_GIRLS.zscore.yearly-b47e8355.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f67793f6.js → HEAD CIRCUM_BOYS.percentile.monthly-0f849e49.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-66251183.js → HEAD CIRCUM_BOYS.percentile.weekly-311179a8.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-ca7a6439.js → HEAD CIRCUM_BOYS.percentile.yearly-e7f94da6.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ab834e5a.js → HEAD CIRCUM_BOYS.zscore.monthly-cc901cdc.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-1930d569.js → HEAD CIRCUM_BOYS.zscore.weekly-409787c4.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-281219a6.js → HEAD CIRCUM_BOYS.zscore.yearly-e15b53db.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-30746142.js → HEAD CIRCUM_GIRLS.percentile.monthly-2ffb92f7.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-3815448c.js → HEAD CIRCUM_GIRLS.percentile.weekly-5bed76e7.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-174d740f.js → HEAD CIRCUM_GIRLS.percentile.yearly-2d9a9cf7.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-e6c93b3d.js → HEAD CIRCUM_GIRLS.zscore.monthly-c6a8c417.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-876dbd52.js → HEAD CIRCUM_GIRLS.zscore.weekly-a5247bc4.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-746bc115.js → HEAD CIRCUM_GIRLS.zscore.yearly-491daf49.js} +0 -0
  216. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-1a2adbd0.js → HEIGHT_BOYS.percentile.monthly-089b50f8.js} +0 -0
  217. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-44df87bb.js → HEIGHT_BOYS.percentile.weekly-493ab21a.js} +0 -0
  218. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f26d7188.js → HEIGHT_BOYS.percentile.yearly-f93e11b9.js} +0 -0
  219. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-7b17a0dd.js → HEIGHT_BOYS.zscore.monthly-a102b290.js} +0 -0
  220. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-ac9319bc.js → HEIGHT_BOYS.zscore.weekly-8ddbacca.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3f0fbefa.js → HEIGHT_BOYS.zscore.yearly-eaaf50be.js} +0 -0
  222. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-3d60a549.js → HEIGHT_GIRLS.percentile.monthly-0c718740.js} +0 -0
  223. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-32cfe832.js → HEIGHT_GIRLS.percentile.weekly-f64f9559.js} +0 -0
  224. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-9685eebd.js → HEIGHT_GIRLS.percentile.yearly-62836edf.js} +0 -0
  225. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a55a152a.js → HEIGHT_GIRLS.zscore.monthly-efd7fe65.js} +0 -0
  226. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-5ba06063.js → HEIGHT_GIRLS.zscore.weekly-0b4c13ad.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-86806f62.js → HEIGHT_GIRLS.zscore.yearly-dbb1c464.js} +0 -0
  228. /package/build/esm/{Onboarding-9e4e70e7.js → Onboarding-5209aa8f.js} +0 -0
  229. /package/build/esm/{Visible-b3eda12e.js → Visible-7fde197c.js} +0 -0
  230. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-3ef2f577.js → WEIGHT_BOYS.percentile.monthly-8d5f17eb.js} +0 -0
  231. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-bcd490c4.js → WEIGHT_BOYS.percentile.weekly-f0d6bcdc.js} +0 -0
  232. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-bb4eeff5.js → WEIGHT_BOYS.percentile.yearly-004d7884.js} +0 -0
  233. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-f1d09597.js → WEIGHT_BOYS.zscore.monthly-5cc93e2d.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6e2e2e78.js → WEIGHT_BOYS.zscore.weekly-5bcc179a.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-d11badbe.js → WEIGHT_BOYS.zscore.yearly-aa793430.js} +0 -0
  236. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-31a98425.js → WEIGHT_GIRLS.percentile.monthly-0ce0af1e.js} +0 -0
  237. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-2423581d.js → WEIGHT_GIRLS.percentile.weekly-43dcc38a.js} +0 -0
  238. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-6511ac61.js → WEIGHT_GIRLS.percentile.yearly-9a7ad2e7.js} +0 -0
  239. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-da6118cf.js → WEIGHT_GIRLS.zscore.monthly-fb016308.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-1d1e2cd1.js → WEIGHT_GIRLS.zscore.weekly-72cb7146.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-0d3b3970.js → WEIGHT_GIRLS.zscore.yearly-7a1353ef.js} +0 -0
  242. /package/build/esm/{constants-3b2016c2.js → constants-22665a95.js} +0 -0
  243. /package/build/esm/{cookieHelper-8d4d4f87.js → cookieHelper-c441527b.js} +0 -0
  244. /package/build/esm/{dataTransform-89915fff.js → dataTransform-3cdbcc1f.js} +0 -0
  245. /package/build/esm/{index-a98036b7.js → index-8ce09b49.js} +0 -0
  246. /package/build/esm/{isProduction-312c5090.js → isProduction-58e08b60.js} +0 -0
  247. /package/build/esm/{localizeNumberFormat-7be379f5.js → localizeNumberFormat-34a914cf.js} +0 -0
  248. /package/build/esm/{normalizeLink-4bc0f032.js → normalizeLink-0ac71571.js} +0 -0
  249. /package/build/esm/{paths-3aa9e733.js → paths-8ff149e9.js} +0 -0
  250. /package/build/esm/{theme-2d06fcb0.js → theme-808a1a77.js} +0 -0
  251. /package/build/esm/{translationsContext-0ea53580.js → translationsContext-616c8791.js} +0 -0
  252. /package/build/esm/{tslib.es6-fa2b0040.js → tslib.es6-f7c415e8.js} +0 -0
  253. /package/build/esm/{types-27b60cd6.js → types-33ff47e6.js} +0 -0
  254. /package/build/esm/{useIsInit-c5411f18.js → useIsInit-6466d212.js} +0 -0
  255. /package/build/esm/{useOutsideClick-d82e18e1.js → useOutsideClick-f36ba482.js} +0 -0
  256. /package/build/esm/{useScrollbarSize-5dbc83d7.js → useScrollbarSize-ac53783f.js} +0 -0
  257. /package/build/esm/{useUniqueId-20aeda97.js → useUniqueId-4a392949.js} +0 -0
  258. /package/build/esm/{utils-cf5913a7.js → utils-d5e5e420.js} +0 -0
  259. /package/build/{index-12b3d15e.js → index-4cc291d1.js} +0 -0
  260. /package/build/{isProduction-8f6cbcab.js → isProduction-85cdc0ab.js} +0 -0
  261. /package/build/{localizeNumberFormat-69ca71a2.js → localizeNumberFormat-9735f40b.js} +0 -0
  262. /package/build/{normalizeLink-6ea6478e.js → normalizeLink-7ef1495e.js} +0 -0
  263. /package/build/{paths-169ca2fa.js → paths-e4af6f7a.js} +0 -0
  264. /package/build/{theme-8d7a0555.js → theme-9e0d88e8.js} +0 -0
  265. /package/build/{translationsContext-34015b3b.js → translationsContext-dc043578.js} +0 -0
  266. /package/build/{tslib.es6-e36bef96.js → tslib.es6-e14619bf.js} +0 -0
  267. /package/build/{types-7d180d5a.js → types-2dae143e.js} +0 -0
  268. /package/build/{useIsInit-2fee5fc8.js → useIsInit-c65601fb.js} +0 -0
  269. /package/build/{useOutsideClick-9e98f405.js → useOutsideClick-ac254274.js} +0 -0
  270. /package/build/{useScrollbarSize-4b33093d.js → useScrollbarSize-251e49d0.js} +0 -0
  271. /package/build/{useUniqueId-2b7006f9.js → useUniqueId-76b34caf.js} +0 -0
  272. /package/build/{utils-39189826.js → utils-d215a9f3.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";import o,{createContext as n,useContext as i,useState as l,useRef as r,useEffect as s,useMemo as c,useCallback as d}from"react";import{useMantineTheme as m,createStyles as p,Flex as u,Box as g,rem as v,Checkbox as h,Portal as b,Anchor as f,Accordion as y,Popover as w}from"@mantine/core";import{a as x}from"./index-5404c828.js";import{u as E}from"./useTranslations-e743d735.js";import C from"innertext";import{t as k}from"./theme-2d06fcb0.js";import{d as N,ab as A,ac as T,R as z,ad as P,ae as I,af as S,H as L,ag as M,I as j,ah as B,y as F,V as O,ai as R,aj as V,ak as D,al as U,am as W,an as H,x as Z,ao as q,ap as _,aq as G,ar as Q,as as X,at as K,J as $,au as Y,a3 as J,av as ee,A as te,aw as ae,ax as oe,ay as ne,az as ie,aA as le,aB as re,aC as se}from"./utils-32abe328.js";import"@mantine/hooks";import{CommonGAssets as ce}from"./gAssets.js";import"@mantine/dates";import{D as de,d as me}from"./index-30cba675.js";import"./Onboarding-9e4e70e7.js";import pe from"dayjs";import"./screenSizeContext-6c4b3d3a.js";import ue,{keyframes as ge,css as ve}from"styled-components";import{M as he,t as be,c as fe,a as ye}from"./utils-cf5913a7.js";import"./isProduction-312c5090.js";import{I as we}from"./index-a4437a03.js";import{A as xe,a as Ee,B as Ce,D as ke}from"./index-3f736c0b.js";import{e as Ne,c as Ae,P as Te,g as ze,b as Pe,h as Ie,i as Se}from"./dataTransform-31c4c853.js";import{T as Le}from"./index-93f72147.js";import{I as Me}from"./index-331dcbca.js";import je from"lodash/debounce";import Be from"react-contenteditable";import{B as Fe}from"./index-07c18c8e.js";import{d as Oe,g as Re}from"./cookieHelper-8d4d4f87.js";import*as Ve from"react-dom";import"./index-fbe22277.js";import{format as De}from"date-fns";import"react-day-picker/DayPickerInput";import{U as Ue}from"./index.styled-ad90ced9.js";import"./index-48b38bdc.js";import"lodash/throttle";import"./types-27b60cd6.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-5fc3c70e.js";import"uuid";import"./utils-7f96a570.js";import"string-format";import We from"dayjs/plugin/relativeTime";import{M as He}from"./index-661133f9.js";import{a as Ze}from"./useUniqueId-20aeda97.js";import"./translationsContext-0ea53580.js";import{g as qe}from"./routing-7370484f.js";const _e=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),a.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Ge=n({}),Qe=({children:e,defaultParams:t})=>o.createElement(Ge.Provider,{value:{defaultParams:t}},e),Xe=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(N),{defaultParams:o}=i(Ge)||{},n=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,i)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),i);if(!n||l){n||Oe(A),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=T(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},Ke=ue.div`
1
+ import{a as e,_ as t}from"./tslib.es6-f7c415e8.js";import*as a from"react";import o,{createContext as n,useContext as i,useState as l,useRef as r,useEffect as s,useMemo as c,useCallback as d}from"react";import{useMantineTheme as m,createStyles as p,Flex as u,Box as g,rem as v,Checkbox as h,Portal as b,Anchor as f,Accordion as y,Popover as w}from"@mantine/core";import{a as x}from"./index-fe72b968.js";import{u as E}from"./useTranslations-3e881db9.js";import C from"innertext";import{t as k}from"./theme-808a1a77.js";import{d as N,ac as A,ad as T,R as z,ae as P,af as I,ag as S,H as L,ah as M,I as j,ai as B,y as F,V as O,aj as R,ak as V,al as D,am as U,an as W,ao as H,x as Z,ap as q,aq as _,ar as G,as as Q,at as X,au as K,J as $,av as Y,a3 as J,aw as ee,A as te,ax as ae,ay as oe,az as ne,aA as ie,aB as le,aC as re,aD as se}from"./utils-1f109d73.js";import"@mantine/dates";import{D as ce,d as de}from"./index-4d5c0771.js";import"./Onboarding-5209aa8f.js";import{CommonGAssets as me}from"./gAssets.js";import pe from"dayjs";import"./screenSizeContext-e0bb4713.js";import ue,{keyframes as ge,css as ve}from"styled-components";import{M as he,t as be,c as fe,a as ye}from"./utils-d5e5e420.js";import"./isProduction-58e08b60.js";import{I as we}from"./index-bb9b3e39.js";import"@mantine/hooks";import{A as xe,a as Ee,B as Ce,D as ke}from"./index-823a548e.js";import{e as Ne,c as Ae,P as Te,g as ze,b as Pe,h as Ie,i as Se}from"./dataTransform-b8c22fc9.js";import{T as Le}from"./index-c4680d39.js";import{I as Me}from"./index-531008d2.js";import je from"lodash/debounce";import Be from"react-contenteditable";import{B as Fe}from"./index-73288a5b.js";import{d as Oe,g as Re}from"./cookieHelper-c441527b.js";import*as Ve from"react-dom";import"./index-a54b0739.js";import{format as De}from"date-fns";import"react-day-picker/DayPickerInput";import{U as Ue}from"./index.styled-4eb37224.js";import"./index-663ec4de.js";import"lodash/throttle";import"./types-33ff47e6.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-8cd3ffb8.js";import"uuid";import"./utils-603729de.js";import"string-format";import We from"dayjs/plugin/relativeTime";import{M as He}from"./index-ed1cac71.js";import{a as Ze}from"./useUniqueId-4a392949.js";import"./translationsContext-616c8791.js";import{g as qe}from"./routing-d9315774.js";const _e=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),a.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Ge=n({}),Qe=({children:e,defaultParams:t})=>o.createElement(Ge.Provider,{value:{defaultParams:t}},e),Xe=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(N),{defaultParams:o}=i(Ge)||{},n=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,i)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),i);if(!n||l){n||Oe(A),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=T(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},Ke=ue.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -94,7 +94,7 @@ import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";impor
94
94
  }
95
95
  }
96
96
  }
97
- `,et=({title:t,url:a,image:n,logo:c,className:d,style:p,noRefetch:u})=>{const{data:{locale:g,env:{isMarryBaby:v}}}=i(N),[h,b]=l(!1),f=m(),y=r(u);y.current=u;const[w,x]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!y.current){if(!a)return x(null);x((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),z(P(I.FETCH_PREVIEW,{_locale:g}),"POST",{data:{link:a},headers:{"Content-Type":"application/json"}}).then((e=>{var t,o,n;b(!1),x({title:null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.title,url:a,image:(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.image)||(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.logo)})})).catch((()=>{x(null)}))}}))}),[a]);const E=(null==w?void 0:w.image)||n,C=(null==w?void 0:w.title)||t,k=(null==w?void 0:w.logo)||c,A=(null==w?void 0:w.url)||a,T=A.replace("http://","").replace("https://","").split(/[/?#]/)[0],M=r(!1);return o.createElement(Je,{"data-is-marrybaby":v,className:`${d} no-replace-click`,style:p,color:f.colors[f.primaryColor][0]},o.createElement("a",{href:A,target:"_blank",rel:"noreferrer"},E&&o.createElement("div",{className:"link-image-wrapper"},!v&&o.createElement("img",{className:"link-image-blur",src:E,onError:e=>{M.current||(M.current=!0,e.currentTarget.src=S)},loading:"lazy"}),o.createElement("img",{className:"link-image",src:E,onError:e=>{M.current||(M.current=!0,e.currentTarget.src=S)},loading:"lazy"})),o.createElement("div",{className:"link-info-container"},o.createElement(Le,{size:"n1"},v&&k&&!h&&o.createElement("img",{className:"link-logo",src:k,onError:()=>b(!0),loading:"lazy"}),T),o.createElement(L,{tag:"h6"},C))))},tt=n({});var at="vvR-m49";const ot=({children:e,className:t=""})=>{const{isReplied:a,trackingCategory:n,trackingLabel:l,onLikeClick:r}=i(tt);return o.createElement("div",{className:`${at} ${t}`,"data-event-category":n,"data-event-action":a?"Like Comment Click":"Like Post Click","data-event-label":l,onClick:()=>{null==r||r()}},e)},nt=({children:e,className:t=""})=>{const{trackingCategory:a,trackingLabel:n,onShareClick:l}=i(tt);return o.createElement("div",{className:`${at} ${t}`,onClick:()=>{null==l||l()},"data-event-category":a,"data-event-action":"Share Icon Click","data-event-label":n},e)},it=({children:e,className:t=""})=>{const{isReplied:a,trackingCategory:n,trackingLabel:l,onCommentClick:r}=i(tt);return o.createElement("div",{className:`${at} ${t}`,"data-event-category":n,"data-event-action":a?"Reply Comment Click":"Comment Text Click","data-event-label":l,onClick:e=>{e.preventDefault(),e.stopPropagation(),null==r||r()}},e)};var lt,rt="UhiT4m5",st="oEfeTkV",ct="OlbikxJ",dt="_9GXHCn3",mt="MV3lNuh";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(lt||(lt={}));const pt=e=>{var{type:a,loveCount:n=0,replyCount:l=0,replyPadding:r,liked:s,isReplied:c,onCommentClick:d,onLikeClick:m,onShareClick:p,className:u,style:g,hideCommentIcon:v,showingMostEngaging:h,isMarryBaby:b,hasShare:f=!0,hasCountLike:y=!0,trackingCategory:w="Together",trackingLabel:x="",children:C}=e,A=t(e,["type","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:T}}}=i(N),z=Boolean(b)?b:T,{t:P}=E();return o.createElement(tt.Provider,{value:{liked:s,loveCount:n,trackingCategory:w,trackingLabel:x,isReplied:c,onLikeClick:m,onShareClick:p,onCommentClick:d}},C||o.createElement("div",Object.assign({className:`${rt} ${u}`,"data-show-most-engaging":h,"data-type":a===lt.post?"post":"reply","data-reply-padding":a===lt.reply&&r,"data-is-marrybaby":z,style:g},A),o.createElement("div",{className:st},o.createElement("div",{className:ct},o.createElement(ot,null,o.createElement(Le,{className:dt,style:{marginRight:"25px"},size:"p3",as:"div"},o.createElement(M,{className:"txt-icon",isMarryBaby:z,isSolid:s,color:s?z?k.mbColors.pink:k.colors.red800:"#737373"}),y&&o.createElement("div",{className:mt},n))),f&&o.createElement(nt,null,o.createElement(Le,{size:"p3",className:dt,as:"div"},o.createElement(j.Share,{isMarryBaby:z})))),!v&&o.createElement(it,null,o.createElement(Le,{size:"p3",className:dt,as:"div"},c?o.createElement(j.Reply,{className:"txt-icon"}):o.createElement(j.Comment,{className:"txt-icon",isMarryBaby:z}),c?P("cardReactions.reply"):o.createElement("div",{className:mt},P("post.commentCount",{count:l})))))))};pt.LikeWrapper=ot,pt.ShareWrapper=nt,pt.CommentWrapper=it;const ut=p((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:{}}))),gt=e=>{var{topics:a=[],onClick:n,className:r,style:s,trackingCategory:c="Together",locale:d="vi-VN",classNames:m,styles:p,unstyled:u,shortenedNumber:g=3,shortenedStyle:v}=e,h=t(e,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:b}=E(),{classes:f}=ut(void 0,{name:"TagTopic",classNames:m,styles:p,unstyled:u}),{data:{env:{togetherBasePath:y}},action:{sanitizeFunction:w}}=i(N),[x,C]=l(!v);return o.createElement("div",Object.assign({onClick:n,className:`${f.wrapper} ${r}`,style:s},h),(x?a:a.slice(0,g)).map(((e,t)=>{const a=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return o.createElement("a",{className:f.item,key:t,"data-event-category":c,"data-event-action":"Topic in Post Click","data-event-label":`${B(d)}${y}${e.url}`,href:e.isActive&&!e.isHidden?`${y}${e.url}`:void 0},o.createElement(F,{size:"p4"},o.createElement("span",{style:Object.assign({},a&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:a?`${De(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:de[d]})}/${null==e?void 0:e.dueDateYear}`:(null==w?void 0:w(e.name))||e.name}})))})),!x&&a.length>g&&o.createElement("a",{className:f.item,href:"#",onClick:e=>{e.preventDefault(),C(!0)}},o.createElement(F,{size:"p4"},"+",b("tagTopic.moreTopics",{number:a.length-g}))))},vt=ue.div`
97
+ `,et=({title:t,url:a,image:n,logo:c,className:d,style:p,noRefetch:u})=>{const{data:{locale:g,env:{isMarryBaby:v}}}=i(N),[h,b]=l(!1),f=m(),y=r(u);y.current=u;const[w,x]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!y.current){if(!a)return x(null);x((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),z(P(I.FETCH_PREVIEW,{_locale:g}),"POST",{data:{link:a},headers:{"Content-Type":"application/json"}}).then((e=>{var t,o,n;b(!1),x({title:null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.title,url:a,image:(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.image)||(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.logo)})})).catch((()=>{x(null)}))}}))}),[a]);const E=(null==w?void 0:w.image)||n,C=(null==w?void 0:w.title)||t,k=(null==w?void 0:w.logo)||c,A=(null==w?void 0:w.url)||a,T=A.replace("http://","").replace("https://","").split(/[/?#]/)[0],M=r(!1);return o.createElement(Je,{"data-is-marrybaby":v,className:`${d} no-replace-click`,style:p,color:f.colors[f.primaryColor][0]},o.createElement("a",{href:A,target:"_blank",rel:"noreferrer"},E&&o.createElement("div",{className:"link-image-wrapper"},!v&&o.createElement("img",{className:"link-image-blur",src:E,onError:e=>{M.current||(M.current=!0,e.currentTarget.src=S)},loading:"lazy"}),o.createElement("img",{className:"link-image",src:E,onError:e=>{M.current||(M.current=!0,e.currentTarget.src=S)},loading:"lazy"})),o.createElement("div",{className:"link-info-container"},o.createElement(Le,{size:"n1"},v&&k&&!h&&o.createElement("img",{className:"link-logo",src:k,onError:()=>b(!0),loading:"lazy"}),T),o.createElement(L,{tag:"h6"},C))))},tt=n({});var at="vvR-m49";const ot=({children:e,className:t=""})=>{const{isReplied:a,trackingCategory:n,trackingLabel:l,onLikeClick:r}=i(tt);return o.createElement("div",{className:`${at} ${t}`,"data-event-category":n,"data-event-action":a?"Like Comment Click":"Like Post Click","data-event-label":l,onClick:()=>{null==r||r()}},e)},nt=({children:e,className:t=""})=>{const{trackingCategory:a,trackingLabel:n,onShareClick:l}=i(tt);return o.createElement("div",{className:`${at} ${t}`,onClick:()=>{null==l||l()},"data-event-category":a,"data-event-action":"Share Icon Click","data-event-label":n},e)},it=({children:e,className:t=""})=>{const{isReplied:a,trackingCategory:n,trackingLabel:l,onCommentClick:r}=i(tt);return o.createElement("div",{className:`${at} ${t}`,"data-event-category":n,"data-event-action":a?"Reply Comment Click":"Comment Text Click","data-event-label":l,onClick:e=>{e.preventDefault(),e.stopPropagation(),null==r||r()}},e)};var lt,rt="UhiT4m5",st="oEfeTkV",ct="OlbikxJ",dt="_9GXHCn3",mt="MV3lNuh";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(lt||(lt={}));const pt=e=>{var{type:a,loveCount:n=0,replyCount:l=0,replyPadding:r,liked:s,isReplied:c,onCommentClick:d,onLikeClick:m,onShareClick:p,className:u,style:g,hideCommentIcon:v,showingMostEngaging:h,isMarryBaby:b,hasShare:f=!0,hasCountLike:y=!0,trackingCategory:w="Together",trackingLabel:x="",children:C}=e,A=t(e,["type","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:T}}}=i(N),z=Boolean(b)?b:T,{t:P}=E();return o.createElement(tt.Provider,{value:{liked:s,loveCount:n,trackingCategory:w,trackingLabel:x,isReplied:c,onLikeClick:m,onShareClick:p,onCommentClick:d}},C||o.createElement("div",Object.assign({className:`${rt} ${u}`,"data-show-most-engaging":h,"data-type":a===lt.post?"post":"reply","data-reply-padding":a===lt.reply&&r,"data-is-marrybaby":z,style:g},A),o.createElement("div",{className:st},o.createElement("div",{className:ct},o.createElement(ot,null,o.createElement(Le,{className:dt,style:{marginRight:"25px"},size:"p3",as:"div"},o.createElement(M,{className:"txt-icon",isMarryBaby:z,isSolid:s,color:s?z?k.mbColors.pink:k.colors.red800:"#737373"}),y&&o.createElement("div",{className:mt},n))),f&&o.createElement(nt,null,o.createElement(Le,{size:"p3",className:dt,as:"div"},o.createElement(j.Share,{isMarryBaby:z})))),!v&&o.createElement(it,null,o.createElement(Le,{size:"p3",className:dt,as:"div"},c?o.createElement(j.Reply,{className:"txt-icon"}):o.createElement(j.Comment,{className:"txt-icon",isMarryBaby:z}),c?P("cardReactions.reply"):o.createElement("div",{className:mt},P("post.commentCount",{count:l})))))))};pt.LikeWrapper=ot,pt.ShareWrapper=nt,pt.CommentWrapper=it;const ut=p((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:{}}))),gt=e=>{var{topics:a=[],onClick:n,className:r,style:s,trackingCategory:c="Together",locale:d="vi-VN",classNames:m,styles:p,unstyled:u,shortenedNumber:g=3,shortenedStyle:v}=e,h=t(e,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:b}=E(),{classes:f}=ut(void 0,{name:"TagTopic",classNames:m,styles:p,unstyled:u}),{data:{env:{togetherBasePath:y}},action:{sanitizeFunction:w}}=i(N),[x,C]=l(!v);return o.createElement("div",Object.assign({onClick:n,className:`${f.wrapper} ${r}`,style:s},h),(x?a:a.slice(0,g)).map(((e,t)=>{const a=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return o.createElement("a",{className:f.item,key:t,"data-event-category":c,"data-event-action":"Topic in Post Click","data-event-label":`${B(d)}${y}${e.url}`,href:e.isActive&&!e.isHidden?`${y}${e.url}`:void 0},o.createElement(F,{size:"p4"},o.createElement("span",{style:Object.assign({},a&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:a?`${De(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:ce[d]})}/${null==e?void 0:e.dueDateYear}`:(null==w?void 0:w(e.name))||e.name}})))})),!x&&a.length>g&&o.createElement("a",{className:f.item,href:"#",onClick:e=>{e.preventDefault(),C(!0)}},o.createElement(F,{size:"p4"},"+",b("tagTopic.moreTopics",{number:a.length-g}))))},vt=ue.div`
98
98
  display: flex;
99
99
  align-items: center;
100
100
  justify-content: space-between;
@@ -641,7 +641,7 @@ import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";impor
641
641
  li {
642
642
  list-style-type: disc;
643
643
  }
644
- `;var qt="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",_t="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 Gt=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,doctorId:n,locale:i,isMobile:r,overwriteProfileProps:c,avatarFallback:d=ce.getAssetPath("avatar.jpg"),trackingCategory:m="Together"})=>{var p,u,g;const{t:v}=E(),[h,b]=l(null),[f,y]=l(!1);s((()=>{if(e&&n&&String(null==h?void 0:h.id)!==String(n)){y(!0);try{b(null),z(O(R.GET_DOCTOR_INFO,{doctorId:n,website_url:V[i]}),"get").then((e=>{b(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),c))}))}catch(e){console.error(e)}y(!1)}}),[e,n,null==h?void 0:h.id]);const w=(null==h?void 0:h.experiences)||[],x=((null==h?void 0:h.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),C=w.map((e=>{try{return JSON.parse(e.description)}catch(t){return e.description}})).filter((e=>e.content));return o.createElement(o.Fragment,null,o.createElement(Dt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},f||!h?o.createElement(Ye,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:qt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Wt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(we,{src:null==h?void 0:h.avatar,backupSrc:d,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:_t,alt:"badge",loading:"lazy"})))),o.createElement(Ht,null,o.createElement(Le,{size:"s3",type:"semiBold",className:"full-name"},null==h?void 0:h.name),o.createElement("div",{className:"specialty"},x&&o.createElement(o.Fragment,null,o.createElement(Le,{size:"p4",color:k.colors.gray800},x," • ")),o.createElement("a",{href:D({id:null===(p=null==h?void 0:h.organization)||void 0===p?void 0:p.id,name:null===(u=null==h?void 0:h.organization)||void 0===u?void 0:u.name,slug:null===(g=null==h?void 0:h.organization)||void 0===g?void 0:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(Le,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==h?void 0:h.organization.name))))),!r&&o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:U({name:h.name,id:h.id,locale:i})},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment"))))),C&&o.createElement(Ht,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"s3",color:k.colors.gray800,style:{paddingBottom:16}},v("expert.content.description").toUpperCase()),o.createElement(Zt,null,C.map(((e,t)=>o.createElement("li",{key:t},o.createElement(Le,{size:"p2"},(e=>(null==e?void 0:e.year)?`${e.year} ${null==e?void 0:e.content}`:(null==e?void 0:e.content)?e.content:"string"==typeof e?e:"")(e)))))),r?o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:U({name:h.name,id:h.id,locale:i})},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment")))):o.createElement("a",{href:U({name:h.name,id:h.id,locale:i})},o.createElement(Le,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":m,"data-event-action":"See Full Doctor Profile","data-event-label":B(i)+U({name:h.name,id:h.id,locale:i})},v("home.seeExpert"))))))),o.createElement(Ut,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},Qt=ue.div`
644
+ `;var qt="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",_t="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 Gt=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,doctorId:n,locale:i,isMobile:r,overwriteProfileProps:c,avatarFallback:d=me.getAssetPath("avatar.jpg"),trackingCategory:m="Together"})=>{var p,u,g;const{t:v}=E(),[h,b]=l(null),[f,y]=l(!1);s((()=>{if(e&&n&&String(null==h?void 0:h.id)!==String(n)){y(!0);try{b(null),z(O(R.GET_DOCTOR_INFO,{doctorId:n,website_url:V[i]}),"get").then((e=>{b(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),c))}))}catch(e){console.error(e)}y(!1)}}),[e,n,null==h?void 0:h.id]);const w=(null==h?void 0:h.experiences)||[],x=((null==h?void 0:h.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),C=w.map((e=>{try{return JSON.parse(e.description)}catch(t){return e.description}})).filter((e=>e.content));return o.createElement(o.Fragment,null,o.createElement(Dt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},f||!h?o.createElement(Ye,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:qt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Wt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(we,{src:null==h?void 0:h.avatar,backupSrc:d,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:_t,alt:"badge",loading:"lazy"})))),o.createElement(Ht,null,o.createElement(Le,{size:"s3",type:"semiBold",className:"full-name"},null==h?void 0:h.name),o.createElement("div",{className:"specialty"},x&&o.createElement(o.Fragment,null,o.createElement(Le,{size:"p4",color:k.colors.gray800},x," • ")),o.createElement("a",{href:D({id:null===(p=null==h?void 0:h.organization)||void 0===p?void 0:p.id,name:null===(u=null==h?void 0:h.organization)||void 0===u?void 0:u.name,slug:null===(g=null==h?void 0:h.organization)||void 0===g?void 0:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(Le,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==h?void 0:h.organization.name))))),!r&&o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:U({name:h.name,id:h.id,locale:i})},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment"))))),C&&o.createElement(Ht,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"s3",color:k.colors.gray800,style:{paddingBottom:16}},v("expert.content.description").toUpperCase()),o.createElement(Zt,null,C.map(((e,t)=>o.createElement("li",{key:t},o.createElement(Le,{size:"p2"},(e=>(null==e?void 0:e.year)?`${e.year} ${null==e?void 0:e.content}`:(null==e?void 0:e.content)?e.content:"string"==typeof e?e:"")(e)))))),r?o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:U({name:h.name,id:h.id,locale:i})},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment")))):o.createElement("a",{href:U({name:h.name,id:h.id,locale:i})},o.createElement(Le,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":m,"data-event-action":"See Full Doctor Profile","data-event-label":B(i)+U({name:h.name,id:h.id,locale:i})},v("home.seeExpert"))))))),o.createElement(Ut,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},Qt=ue.div`
645
645
  position: fixed;
646
646
  left: 50%;
647
647
  width: 343px;
@@ -801,7 +801,7 @@ import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";impor
801
801
  width: 24px;
802
802
  height: 24px;
803
803
  }
804
- `;var Jt="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 ea={author:Jt,edtior:Jt,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:_t},ta=({trackingCategory:e="Together",locale:t,isOpen:a=!0,onClose:n,enableAnimation:i=!0,expertId:r,overwriteProfileProps:c,avatarFallback:d=ce.getAssetPath("avatar.jpg")})=>{const{t:m}=E(),[p,u]=l(null),[g,v]=l(!1);return s((()=>{if(a&&r&&String(null==p?void 0:p.user_id)!==String(r)){v(!0);try{u(null),z(W(H.GET_EXPERT_BY_ID,{id:r}),"get").then((e=>{u(Object.assign(Object.assign({},null==e?void 0:e.data),c))}))}catch(e){console.error(e)}v(!1)}}),[a,r,null==p?void 0:p.user_id]),o.createElement(o.Fragment,null,o.createElement(Qt,{"data-open":a,"data-animation":i,onClick:e=>e.stopPropagation()},g||!p?o.createElement(Ye,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:n},o.createElement("img",{src:qt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Kt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(we,{src:null==p?void 0:p.avatar,className:"profile-image",alt:"avatar",backupSrc:d}),o.createElement("img",{className:"badge-avatar",src:ea[null==p?void 0:p.role],alt:"badge",loading:"lazy"})))),o.createElement($t,null,o.createElement(Le,{size:"s3",className:"full-name",type:"semiBold"},null==p?void 0:p.display_name),o.createElement("div",null,o.createElement(Le,{size:"p4",color:k.colors.gray800},null==p?void 0:p.specialty," • "),o.createElement("a",{href:null==p?void 0:p.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(Le,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==p?void 0:p.organisation)))))),o.createElement($t,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"p4",color:k.colors.gray800,style:{paddingBottom:16}},m("expert.content.description").toUpperCase()),o.createElement("div",{className:"list-items"},!!(null==p?void 0:p.experiences)&&p.experiences.filter((e=>!(!e||!e.title&&!e.organization))).slice(0,3).map(((e,t)=>o.createElement(Yt,{key:t},o.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point",loading:"lazy"}),o.createElement("div",{className:"text-contain"},o.createElement(L,{tag:"h6",color:k.colors.gray800},null==e?void 0:e.title),o.createElement(Le,{size:"p2",color:k.colors.gray500},null==e?void 0:e.organization)))))),o.createElement("a",{href:null==p?void 0:p.profile_url,style:{display:"inline-block",paddingTop:24}},o.createElement(Le,{as:"span",size:"s4",color:"#2D87F3","data-event-category":e,"data-event-action":"See Full Doctor Profile","data-event-label":B(t)+(null==p?void 0:p.profile_url)},m("home.seeExpert"))))))),o.createElement(Xt,{"data-open":a,onClick:e=>{e.stopPropagation(),n()}}))},aa=ue.div`
804
+ `;var Jt="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 ea={author:Jt,edtior:Jt,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:_t},ta=({trackingCategory:e="Together",locale:t,isOpen:a=!0,onClose:n,enableAnimation:i=!0,expertId:r,overwriteProfileProps:c,avatarFallback:d=me.getAssetPath("avatar.jpg")})=>{const{t:m}=E(),[p,u]=l(null),[g,v]=l(!1);return s((()=>{if(a&&r&&String(null==p?void 0:p.user_id)!==String(r)){v(!0);try{u(null),z(W(H.GET_EXPERT_BY_ID,{id:r}),"get").then((e=>{u(Object.assign(Object.assign({},null==e?void 0:e.data),c))}))}catch(e){console.error(e)}v(!1)}}),[a,r,null==p?void 0:p.user_id]),o.createElement(o.Fragment,null,o.createElement(Qt,{"data-open":a,"data-animation":i,onClick:e=>e.stopPropagation()},g||!p?o.createElement(Ye,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:n},o.createElement("img",{src:qt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Kt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(we,{src:null==p?void 0:p.avatar,className:"profile-image",alt:"avatar",backupSrc:d}),o.createElement("img",{className:"badge-avatar",src:ea[null==p?void 0:p.role],alt:"badge",loading:"lazy"})))),o.createElement($t,null,o.createElement(Le,{size:"s3",className:"full-name",type:"semiBold"},null==p?void 0:p.display_name),o.createElement("div",null,o.createElement(Le,{size:"p4",color:k.colors.gray800},null==p?void 0:p.specialty," • "),o.createElement("a",{href:null==p?void 0:p.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(Le,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==p?void 0:p.organisation)))))),o.createElement($t,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"p4",color:k.colors.gray800,style:{paddingBottom:16}},m("expert.content.description").toUpperCase()),o.createElement("div",{className:"list-items"},!!(null==p?void 0:p.experiences)&&p.experiences.filter((e=>!(!e||!e.title&&!e.organization))).slice(0,3).map(((e,t)=>o.createElement(Yt,{key:t},o.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point",loading:"lazy"}),o.createElement("div",{className:"text-contain"},o.createElement(L,{tag:"h6",color:k.colors.gray800},null==e?void 0:e.title),o.createElement(Le,{size:"p2",color:k.colors.gray500},null==e?void 0:e.organization)))))),o.createElement("a",{href:null==p?void 0:p.profile_url,style:{display:"inline-block",paddingTop:24}},o.createElement(Le,{as:"span",size:"s4",color:"#2D87F3","data-event-category":e,"data-event-action":"See Full Doctor Profile","data-event-label":B(t)+(null==p?void 0:p.profile_url)},m("home.seeExpert"))))))),o.createElement(Xt,{"data-open":a,onClick:e=>{e.stopPropagation(),n()}}))},aa=ue.div`
805
805
  position: fixed;
806
806
  left: 50%;
807
807
  width: 343px;
@@ -959,7 +959,7 @@ import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";impor
959
959
  width: 24px;
960
960
  height: 24px;
961
961
  }
962
- `;const la=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=ce.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=E(),[g,v]=l(null),[h,b]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){b(!0);try{v(null),z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:V[i]}),"get").then((e=>{v(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}b(!1)}}),[e,n,null==g?void 0:g.id]);const f=(null==g?void 0:g.specialties)||[],y=c((()=>f.map((e=>e.name))),[f]);return o.createElement(o.Fragment,null,o.createElement(aa,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},h||!g?o.createElement(Ye,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:qt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(na,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(we,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",backupSrc:m}),o.createElement("img",{className:"badge-avatar",src:_t,alt:"badge",loading:"lazy"})))),o.createElement(ia,null,o.createElement(Le,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},f&&o.createElement(Le,{size:"p4",color:k.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(Le,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(ia,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"s3",color:k.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(Le,{size:"p2",color:k.colors.gray500},g.about),r?o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(Le,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":B(i)+D({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(oa,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};var ra="_2UKyiK1",sa="E5ga-tI",ca="_8Y2nWXX",da="d0T7kSP";const ma=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=E();return o.createElement(He,Object.assign({className:ra,opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end"},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"},content:{maxHeight:"100%",height:"100%",borderRadius:0}},title:"Profile"},n),o.createElement("div",{className:sa},o.createElement("div",{className:ca},i("profilePanel.modal.heading")),o.createElement("div",{className:da,onClick:t},o.createElement(_e,null))),a)};pe.extend(We);const pa=n({}),ua=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:m,title:p,userType:h="user",expertId:b,specialty:f,organisation:y,isMarryBaby:w,doctorId:x,hospitalId:C,hasQuickBooking:A,handleMakeAppointment:T,communityTrackingAttr:z,isAnonymous:P,showDetailPopup:I,subLine:S,authActionWrapper:L,profileProps:M,profileModalProps:j,extendEle:B,avatarProps:F,hideInfo:O,timeText:R,onCloseFromPost:V,avatarIcon:D,badgeIconSize:U,hideBackground:W,children:H,styles:q,dataEventCategory:_,dataEventAction:G,dataEventLabel:Q}=e,{data:{locale:X,router:K,env:{isMarryBaby:$,togetherBasePath:Y}}}=i(N),{isMobile:J}=Z(),{t:ee}=E(),{classes:te}=Vt(void 0,{name:"CardAuthor",styles:q}),ae="boolean"==typeof w?w:$,oe=ae?"marryBaby":"helloSites",ne=P?ee("cardPost.anonymous"):n||r||"",ie=P?ce.getAssetPath("avatar.jpg"):d,le=P?void 0:m,[re,se]=l(!1),{asPath:de}=K||{},pe=`https://${me[X]}${de}`,ue=()=>{if(P||"chatbot"===h)return!1;I?ve(!0):c&&(window.location.href=c)};s((()=>{be(re)}),[re]);const[ge,ve]=l(!1),he="expert"===(null==e?void 0:e.role),fe=Boolean(x||C),ye=["expert"===le&&y&&o.createElement("span",null,y),"expert"===le&&f&&o.createElement("span",null,f),!("expert"===le&&f&&y)&&(null==a?void 0:a.name)&&o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${Y}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},z),`${null==a?void 0:a.name}`),R&&o.createElement("span",null,R)].filter(Boolean),[we,Ce]=l(null);return s((()=>{ge&&!we&&Promise.resolve().then((function(){return Wn})).then((e=>{Ce((()=>e.ProfileDetail))}))}),[ge]),o.createElement(pa.Provider,{value:{handleMakeAppointment:T,doctorId:x,hospitalId:C,currentUrl:pe}},o.createElement(ma,{open:ge,onClose:()=>ve(!1),profileModalProps:j},we&&o.createElement(we,Object.assign({currentPageUrl:Q,authActionWrapper:L,onCloseFromPost:()=>{ve(!1),null==V||V()}},M,{authorProps:Object.assign({userId:null==e?void 0:e.userId,avatar:ie,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title,doctorId:x,hospitalId:C,hasQuickBooking:A},null==M?void 0:M.authorProps)}))),"expert"===le&&b?o.createElement(ta,{isOpen:re,onClose:()=>se(!1),expertId:b}):null,"expert"===le&&x?o.createElement(Gt,{isOpen:re,onClose:()=>se(!1),doctorId:x,locale:X}):null,"expert"===le&&C?o.createElement(la,{isOpen:re,onClose:()=>se(!1),hospitalId:C,locale:X}):null,o.createElement("div",{className:`hhg-card-author ${te.root} ${t} ${he?"expert-author":""}`,"data-background":!W&&he,"data-is-marrybaby":ae},o.createElement(Rt,{dataEventCategory:_,dataEventAction:G,dataEventLabel:Q,onAvatarClick:ue,avatarProps:Object.assign(Object.assign({avatar:P?ce.getAssetPath(ae?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):ie,username:ne},F),{style:{cursor:P||!c&&!I?"default":"pointer"}}),avatarIcon:D||he&&o.createElement(Nt,{size:U||15})},H?o.createElement("div",{onClick:ue},H):!O&&o.createElement(Rt.Row,null,o.createElement(Rt.ColLeft,null,o.createElement(u,{align:"center",onClick:ue},o.createElement(Rt.MainText,{onClick:ue},ne,"chatbot"===h?o.createElement(o.Fragment,null," ",o.createElement(At,{color:k.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):le&&o.createElement(xe,{className:te.authorBadge,siteType:oe,role:le,title:p,style:{verticalAlign:"bottom"}}))),S||o.createElement(Rt.SubTextRow,{style:A?{position:"relative"}:{}},ye.map(((e,t)=>o.createElement(o.Fragment,null,0!==t&&o.createElement(Rt.SubDivider,null),o.createElement(Rt.SubText,null,e)))),A&&fe&&o.createElement(g,{sx:{marginTop:v(5)}},o.createElement(Ee,{bookingId:x||C,bookingType:x?"doctor":C?"hospital":void 0,size:J?"xs":"sm"})))))),B&&B))};ua.MainText=Rt.MainText,ua.SubText=Rt.SubText,ua.SubTextRow=Rt.SubTextRow,ua.SubDivider=Rt.SubDivider;const ga=e=>({message:e("notification.failure"),type:"danger"}),va=ue.div`
962
+ `;const la=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=me.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=E(),[g,v]=l(null),[h,b]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){b(!0);try{v(null),z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:V[i]}),"get").then((e=>{v(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}b(!1)}}),[e,n,null==g?void 0:g.id]);const f=(null==g?void 0:g.specialties)||[],y=c((()=>f.map((e=>e.name))),[f]);return o.createElement(o.Fragment,null,o.createElement(aa,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},h||!g?o.createElement(Ye,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:qt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(na,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(we,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",backupSrc:m}),o.createElement("img",{className:"badge-avatar",src:_t,alt:"badge",loading:"lazy"})))),o.createElement(ia,null,o.createElement(Le,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},f&&o.createElement(Le,{size:"p4",color:k.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(Le,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(ia,null,o.createElement("div",{className:"experience"},o.createElement(Le,{type:"bold",size:"s3",color:k.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(Le,{size:"p2",color:k.colors.gray500},g.about),r?o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(Fe,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:D({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(Le,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":B(i)+D({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(oa,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};var ra="_2UKyiK1",sa="E5ga-tI",ca="_8Y2nWXX",da="d0T7kSP";const ma=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=E();return o.createElement(He,Object.assign({className:ra,opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end"},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"},content:{maxHeight:"100%",height:"100%",borderRadius:0}},title:"Profile"},n),o.createElement("div",{className:sa},o.createElement("div",{className:ca},i("profilePanel.modal.heading")),o.createElement("div",{className:da,onClick:t},o.createElement(_e,null))),a)};pe.extend(We);const pa=n({}),ua=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:m,title:p,userType:h="user",expertId:b,specialty:f,organisation:y,isMarryBaby:w,doctorId:x,hospitalId:C,hasQuickBooking:A,handleMakeAppointment:T,communityTrackingAttr:z,isAnonymous:P,showDetailPopup:I,subLine:S,authActionWrapper:L,profileProps:M,profileModalProps:j,extendEle:B,avatarProps:F,hideInfo:O,timeText:R,onCloseFromPost:V,avatarIcon:D,badgeIconSize:U,hideBackground:W,children:H,styles:q,dataEventCategory:_,dataEventAction:G,dataEventLabel:Q}=e,{data:{locale:X,router:K,env:{isMarryBaby:$,togetherBasePath:Y}}}=i(N),{isMobile:J}=Z(),{t:ee}=E(),{classes:te}=Vt(void 0,{name:"CardAuthor",styles:q}),ae="boolean"==typeof w?w:$,oe=ae?"marryBaby":"helloSites",ne=P?ee("cardPost.anonymous"):n||r||"",ie=P?me.getAssetPath("avatar.jpg"):d,le=P?void 0:m,[re,se]=l(!1),{asPath:ce}=K||{},pe=`https://${de[X]}${ce}`,ue=()=>{if(P||"chatbot"===h)return!1;I?ve(!0):c&&(window.location.href=c)};s((()=>{be(re)}),[re]);const[ge,ve]=l(!1),he="expert"===(null==e?void 0:e.role),fe=Boolean(x||C),ye=["expert"===le&&y&&o.createElement("span",null,y),"expert"===le&&f&&o.createElement("span",null,f),!("expert"===le&&f&&y)&&(null==a?void 0:a.name)&&o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${Y}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},z),`${null==a?void 0:a.name}`),R&&o.createElement("span",null,R)].filter(Boolean),[we,Ce]=l(null);return s((()=>{ge&&!we&&Promise.resolve().then((function(){return Wn})).then((e=>{Ce((()=>e.ProfileDetail))}))}),[ge]),o.createElement(pa.Provider,{value:{handleMakeAppointment:T,doctorId:x,hospitalId:C,currentUrl:pe}},o.createElement(ma,{open:ge,onClose:()=>ve(!1),profileModalProps:j},we&&o.createElement(we,Object.assign({currentPageUrl:Q,authActionWrapper:L,onCloseFromPost:()=>{ve(!1),null==V||V()}},M,{authorProps:Object.assign({userId:null==e?void 0:e.userId,avatar:ie,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title,doctorId:x,hospitalId:C,hasQuickBooking:A},null==M?void 0:M.authorProps)}))),"expert"===le&&b?o.createElement(ta,{isOpen:re,onClose:()=>se(!1),expertId:b}):null,"expert"===le&&x?o.createElement(Gt,{isOpen:re,onClose:()=>se(!1),doctorId:x,locale:X}):null,"expert"===le&&C?o.createElement(la,{isOpen:re,onClose:()=>se(!1),hospitalId:C,locale:X}):null,o.createElement("div",{className:`hhg-card-author ${te.root} ${t} ${he?"expert-author":""}`,"data-background":!W&&he,"data-is-marrybaby":ae},o.createElement(Rt,{dataEventCategory:_,dataEventAction:G,dataEventLabel:Q,onAvatarClick:ue,avatarProps:Object.assign(Object.assign({avatar:P?me.getAssetPath(ae?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):ie,username:ne},F),{style:{cursor:P||!c&&!I?"default":"pointer"}}),avatarIcon:D||he&&o.createElement(Nt,{size:U||15})},H?o.createElement("div",{onClick:ue},H):!O&&o.createElement(Rt.Row,null,o.createElement(Rt.ColLeft,null,o.createElement(u,{align:"center",onClick:ue},o.createElement(Rt.MainText,{onClick:ue},ne,"chatbot"===h?o.createElement(o.Fragment,null," ",o.createElement(At,{color:k.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):le&&o.createElement(xe,{className:te.authorBadge,siteType:oe,role:le,title:p,style:{verticalAlign:"bottom"}}))),S||o.createElement(Rt.SubTextRow,{style:A?{position:"relative"}:{}},ye.map(((e,t)=>o.createElement(o.Fragment,null,0!==t&&o.createElement(Rt.SubDivider,null),o.createElement(Rt.SubText,null,e)))),A&&fe&&o.createElement(g,{sx:{marginTop:v(5)}},o.createElement(Ee,{bookingId:x||C,bookingType:x?"doctor":C?"hospital":void 0,size:J?"xs":"sm"})))))),B&&B))};ua.MainText=Rt.MainText,ua.SubText=Rt.SubText,ua.SubTextRow=Rt.SubTextRow,ua.SubDivider=Rt.SubDivider;const ga=e=>({message:e("notification.failure"),type:"danger"}),va=ue.div`
963
963
  position: relative;
964
964
  display: flex;
965
965
  height: 100%;
@@ -1518,7 +1518,7 @@ import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";impor
1518
1518
  }
1519
1519
  }
1520
1520
  }
1521
- `,no=({className:t,style:a,topics:n,communityId:d,onChange:m,isLoading:p,disabled:u,forceTopics:g,selectedTopics:v,noFetch:h,dataEventCategory:b,dataEventAction:f,dataEventLabel:y})=>{const{data:{locale:w,env:{isMarryBaby:x}}}=i(N),[E,C]=l(n?[...n]:[]),[k,A]=l(v?[...v]:[]),[T,S]=l(!1),L=r(n);L.current=n,s((()=>{var t;!d||h||(null===(t=L.current)||void 0===t?void 0:t.length)||(C([]),S(!0),e(void 0,void 0,void 0,(function*(){var e;try{const t=yield z(P(I.TOPIC.LIST,{communityId:d,_locale:w}),"GET"),a=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.topics;Array.isArray(a)&&C((()=>(null==a?void 0:a.map(Ne).sort(((e,t)=>(e.order||0)-(t.order||0))))||[]))}catch(e){console.log(e),S(!1)}S(!1)})))}),[d,h]);const M=null==n?void 0:n.map((e=>e.id)).join("-"),j=null==E?void 0:E.map((e=>e.id)).join("-"),B=null==g?void 0:g.map((e=>e.id)).join("-");s((()=>{n&&void 0!==M&&M!==j&&C(n)}),[n,M,j]);const F=c((()=>E.filter((e=>!(null==g?void 0:g.some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)))))),[j,B]);return o.createElement(oo,{"data-is-marrybaby":x,className:t,style:a},g.map((e=>o.createElement(io,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:!0,selected:!0,dataEventAction:f,dataEventCategory:b,dataEventLabel:y}))),F.map((e=>o.createElement(io,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:u,selected:(v||k).some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)),onClick:()=>{const t=v||k,a=t.findIndex((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId));-1!==a?t.splice(a,1):t.push(e),m&&v?m(t.slice()):(m&&m(t.slice()),A(t.slice()))},dataEventAction:f,dataEventCategory:b,dataEventLabel:y}))),(p||T)&&o.createElement(Ye,{className:"topic-spinner"}))},io=e=>{var{topic:a,disabled:n,selected:i,onClick:l}=e,r=t(e,["topic","disabled","selected","onClick"]);return o.createElement("div",Object.assign({className:"tag-item"+(i?" --active":""),"data-disabled":n,onClick:n?void 0:l},r),a.name)},lo=({className:t,style:a,onPostCreatedEdited:n,onClose:r,communities:c=[],forceSelectCommunity:d,forceSelectTopics:m,articleId:p,optionalTopic:u,editPostData:g,defaultCommunity:v,defaultTopics:b,noFetchTopic:f,hideTopicList:y,selectAskDoctor:w,showAskDoctorOptions:A,currentPageUrl:T})=>{const z=!!(null==g?void 0:g.id),{data:{locale:S,env:{isMarryBaby:L}},action:{pushNotifications:M,sanitizeFunction:j}}=i(N),{t:B}=E(),[O,R]=l(!1),[V,D]=l(w),[U,W]=l(!1),[H,Z]=l(!1),[q,_]=l(!1),[Y,J]=l(""),[ee,te]=l(""),[ae,oe]=l(d?{label:d.name,value:`${d.id||""}-${d.mappedCategoryId||""}`}:{label:B("community.choose"),value:""}),[ne,ie]=l([...m]||[]),[le,re]=l([]),[se,de]=l([]),me=d||c.find((e=>`${e.id||""}-${e.mappedCategoryId||""}`===ae.value)),pe=d?[d]:c.filter((e=>e.isActive)).sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),[ue,ge]=l(null),[ve,he]=l([]),be=Y&&!H&&C(ee)&&(u||!u&&ne.length>0)&&me&&(!le||le.length<=Q)&&!(null==ve?void 0:ve.length)&&!q;s((()=>{if(g){const e=g;J(e.title||""),te(Sa(Ia(e.description||"","edit"),e.mentions)),oe({label:e.community.name,value:`${e.community.id||""}-${e.community.mappedCategoryId||""}`}),ie(e.topics||[]),re(e.photos||[]),R(!!e.isAnonymous||!1),D(!!e.isAskDoctor||!1)}else v&&oe({label:v.name,value:`${v.id||""}-${v.mappedCategoryId||""}`}),b&&ie(b)}),[]),s((()=>{Z(""!==Y&&!/[a-zA-Z]/.test(Y))}),[Y]);const ye=()=>e(void 0,void 0,void 0,(function*(){var t,a,o,i,l,s,c,d,m;if(A&&void 0===V)return W(!0),!1;const u=yield(({title:t,description:a,communityId:o,imageFiles:n,previewUrl:i,topicIds:l,locale:r,sanitizeFunction:s,categoryCommunityId:c,categoryTopicIds:d,introUrl:m,bannerUrl:p,scheduleTime:u,isAnonymous:g,isAskDoctor:v})=>e(void 0,void 0,void 0,(function*(){const e=new FormData,h=Ba(a),b=Ba(t),f=Ma(h);if(e.append("title",b),e.append("description",Fa(h,s)),c?e.append("category_community",String(c)):o&&e.append("community_id",String(o)),e.append("is_anonymous",g?"1":"0"),e.append("is_question",v?"1":"0"),(null==i?void 0:i.title)&&e.append("preview_title",i.title),(null==i?void 0:i.description)&&e.append("preview_description",i.description),(null==i?void 0:i.url)&&e.append("preview_link",fe(i.url)),(null==i?void 0:i.image)&&e.append("preview_image",fe(i.image)),null==l||l.forEach((t=>{e.append("topics[]",String(t||""))})),null==d||d.forEach((t=>{e.append("category_topics[]",String(t||""))})),null==n?void 0:n.length){const t=yield Promise.all(n.map(((e,t)=>new Promise((a=>{setTimeout((()=>{a(Da(e,r))}),2e3*t)})))));null==t||t.filter(Boolean).slice(0,Q).forEach(((t,a)=>{e.append(`images[${a}]`,t)}))}else e.append("images","");return null==f||f.forEach((t=>{e.append("mention_ids[]",t)})),e.append("intro_url",m||""),e.append("banner",p||""),u&&(e.append("post_type","scheduled"),e.append("schedule_datetime",u)),e})))({title:Y,description:ee,communityId:String((null==me?void 0:me.id)||""),imageFiles:le,previewUrl:ue,topicIds:null==ne?void 0:ne.map((e=>String(e.id||""))).filter(Boolean),locale:S,sanitizeFunction:j,categoryCommunityId:String((null==me?void 0:me.mappedCategoryId)||""),categoryTopicIds:null==ne?void 0:ne.map((e=>String(e.mappedCategoryId||""))).filter(Boolean),isAnonymous:O?1:0,isAskDoctor:V?1:0});let v;p&&u.append("article_id",p),z?(null==g?void 0:g.id)&&(v=yield(({id:t,locale:a,formData:o})=>e(void 0,void 0,void 0,(function*(){return yield G(P(I.POST.UPDATE,{id:t,_locale:a}),"POST",{data:o})})))({id:g.id,formData:u,locale:S})):v=yield(({locale:t,formData:a,isArticleComment:o})=>e(void 0,void 0,void 0,(function*(){return yield G(P(o?I.POST.CREATE_ARTICLE_COMMENT:I.POST.CREATE,{_locale:t}),"POST",{data:a})})))({formData:u,locale:S,isArticleComment:!(null==me?void 0:me.id)&&!!(null==me?void 0:me.mappedCategoryId)});const h=null==v?void 0:v.data;(null==h?void 0:h.id)&&!(null===(a=null===(t=null==v?void 0:v.messages)||void 0===t?void 0:t.moderation)||void 0===a?void 0:a.type)?(M({message:B("createPost.popup.success"),type:"success"}),(e=>{n&&n(Ae(e),z),r&&r()})(h)):"banned"===(null===(i=null===(o=null==v?void 0:v.messages)||void 0===o?void 0:o.moderation)||void 0===i?void 0:i.type)?(M({title:B("notification.post.blocked.title"),message:B("notification.post.blocked.message"),type:"danger"}),v.messages.moderation.words&&de(v.messages.moderation.words)):"suspect"===(null===(s=null===(l=null==v?void 0:v.messages)||void 0===l?void 0:l.moderation)||void 0===s?void 0:s.type)?(M({title:B("notification.post.suspect.title"),message:B("notification.post.suspect.message"),type:"warning"}),r&&r()):(null===(d=null===(c=null==v?void 0:v.messages)||void 0===c?void 0:c.find)||void 0===d?void 0:d.call(c,(e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(M({message:B("notification.suspend.message"),type:"danger"}),r&&r()):M({message:(null===(m=null==v?void 0:v.messages)||void 0===m?void 0:m[0])||B("notification.failure"),type:"danger"})}));return o.createElement(va,{className:t,style:a},o.createElement("div",{className:"input-group-container"},o.createElement(ao,{className:"input-group",bannedWords:se,value:Y,onChange:J}),H&&o.createElement(ba,null,o.createElement(X,{isSolid:!0,color:k.colors.red700,size:14}),o.createElement(F,{size:"p3",as:"span",color:k.colors.red700},B("createPost.popup.specialCharErr"))),o.createElement(Ja,{className:"input-group",bannedWords:se,value:ee,onChange:te,onPreviewUrlChange:ge,onInvalidUrlsChange:he,onImageFilesChange:re,imageFiles:le}),A&&o.createElement(ha,{"data-is-marry-baby":L},o.createElement("div",{className:"switch-label"},o.createElement(K,{isMarryBaby:L,size:L?32:24,color:k.colors.primaryBase,className:"label-icon"}),o.createElement("span",{className:"label-txt"},B("createPost.askDoctor"))),o.createElement(Ce,{value:V,choices:[{label:B("createPost.askDoctorChoice.yes"),value:!0,dataEventCategory:"Together",dataEventAction:"Write Post Click - Ask Doctor",dataEventLabel:T},{label:B("createPost.askDoctorChoice.no"),value:!1}],onChange:e=>{"boolean"==typeof e&&(W(!1),D(e))}})),U&&o.createElement(ba,null,o.createElement(X,{isSolid:!0,color:k.colors.red700,size:14}),o.createElement(F,{size:"p3",as:"span",color:k.colors.red700},B("createPost.message.askDoctorRequire"))),o.createElement("div",{className:"input-group"},o.createElement(F,{size:"p4",className:"input-group-label"},B("admin.community")),o.createElement(x,{options:(null==pe?void 0:pe.map((e=>({label:e.name,value:`${e.id||""}-${e.mappedCategoryId||""}`}))))||[],id:"community-picker",placeholder:B("community.choose"),value:ae,dropdownLabelTrackingAttributes:{"data-event-category":"Together","data-event-action":"Write Post Click - Choose Community/Topic","data-event-label":T},onChange:e=>{oe({label:e.label,value:String(e.value)}),ie([])},disabled:!!d}),o.createElement(F,{size:"sm",className:"warning",color:k.colors.gray400},"* ",B("commentPopup.warning.newPost"))),!y&&o.createElement("div",{className:"input-group"},o.createElement(F,{size:"p4",className:"input-group-label"},B("tab.topic")),o.createElement("div",{className:"input-notification"},o.createElement("img",{src:me?"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":fa,loading:"lazy"}),o.createElement(F,{size:"base",color:k.colors.gray500},B(me?"createPost.popup.primary":"createPost.popup.warning"))),me&&o.createElement(no,{className:"tag-list",communityId:me.id,forceTopics:m,onChange:ie,selectedTopics:ne,noFetch:f,dataEventCategory:"Together",dataEventAction:"Write Post Click - Choose Community/Topic",dataEventLabel:T}))),o.createElement("div",{className:"form-action"},o.createElement("div",{className:"input-group"},o.createElement(h,{className:"swich-input-group",labelPosition:"left",name:"PostAnonymous",checked:O,color:L?"pink":void 0,"data-event-category":"Together","data-event-action":"Write Post Click - Incognito","data-event-label":T,label:o.createElement("div",{className:"switch-label"},o.createElement("img",{className:"label-icon",src:ce.getAssetPath("anomyous-avatar.svg"),alt:"anomyous avatar",style:{marginRight:"10px",width:"24px"},loading:"lazy"}),o.createElement("span",{className:"label-txt"},B("createPost.postAnonymous"))),value:"Post Anonymous",onChange:e=>R(e.currentTarget.checked),styles:{body:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},label:{display:"flex",alignItems:"center"}}})),o.createElement("div",{className:"input-group"},o.createElement($,{className:"submit-btn pointer-event-child-none",size:"lg","data-event-category":"Ask Doctor","data-event-action":"Submit Question","data-event-label":window.location.href,onClick:()=>e(void 0,void 0,void 0,(function*(){if(be&&!q){_(!0);try{yield ye()}catch(e){console.error(e),M(ga(B))}_(!1)}})),disabled:!be,loading:q},B("createPost.popup.submit")))))},ro=ue.div`
1521
+ `,no=({className:t,style:a,topics:n,communityId:d,onChange:m,isLoading:p,disabled:u,forceTopics:g,selectedTopics:v,noFetch:h,dataEventCategory:b,dataEventAction:f,dataEventLabel:y})=>{const{data:{locale:w,env:{isMarryBaby:x}}}=i(N),[E,C]=l(n?[...n]:[]),[k,A]=l(v?[...v]:[]),[T,S]=l(!1),L=r(n);L.current=n,s((()=>{var t;!d||h||(null===(t=L.current)||void 0===t?void 0:t.length)||(C([]),S(!0),e(void 0,void 0,void 0,(function*(){var e;try{const t=yield z(P(I.TOPIC.LIST,{communityId:d,_locale:w}),"GET"),a=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.topics;Array.isArray(a)&&C((()=>(null==a?void 0:a.map(Ne).sort(((e,t)=>(e.order||0)-(t.order||0))))||[]))}catch(e){console.log(e),S(!1)}S(!1)})))}),[d,h]);const M=null==n?void 0:n.map((e=>e.id)).join("-"),j=null==E?void 0:E.map((e=>e.id)).join("-"),B=null==g?void 0:g.map((e=>e.id)).join("-");s((()=>{n&&void 0!==M&&M!==j&&C(n)}),[n,M,j]);const F=c((()=>E.filter((e=>!(null==g?void 0:g.some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)))))),[j,B]);return o.createElement(oo,{"data-is-marrybaby":x,className:t,style:a},g.map((e=>o.createElement(io,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:!0,selected:!0,dataEventAction:f,dataEventCategory:b,dataEventLabel:y}))),F.map((e=>o.createElement(io,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:u,selected:(v||k).some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)),onClick:()=>{const t=v||k,a=t.findIndex((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId));-1!==a?t.splice(a,1):t.push(e),m&&v?m(t.slice()):(m&&m(t.slice()),A(t.slice()))},dataEventAction:f,dataEventCategory:b,dataEventLabel:y}))),(p||T)&&o.createElement(Ye,{className:"topic-spinner"}))},io=e=>{var{topic:a,disabled:n,selected:i,onClick:l}=e,r=t(e,["topic","disabled","selected","onClick"]);return o.createElement("div",Object.assign({className:"tag-item"+(i?" --active":""),"data-disabled":n,onClick:n?void 0:l},r),a.name)},lo=({className:t,style:a,onPostCreatedEdited:n,onClose:r,communities:c=[],forceSelectCommunity:d,forceSelectTopics:m,articleId:p,optionalTopic:u,editPostData:g,defaultCommunity:v,defaultTopics:b,noFetchTopic:f,hideTopicList:y,selectAskDoctor:w,showAskDoctorOptions:A,currentPageUrl:T})=>{const z=!!(null==g?void 0:g.id),{data:{locale:S,env:{isMarryBaby:L}},action:{pushNotifications:M,sanitizeFunction:j}}=i(N),{t:B}=E(),[O,R]=l(!1),[V,D]=l(w),[U,W]=l(!1),[H,Z]=l(!1),[q,_]=l(!1),[Y,J]=l(""),[ee,te]=l(""),[ae,oe]=l(d?{label:d.name,value:`${d.id||""}-${d.mappedCategoryId||""}`}:{label:B("community.choose"),value:""}),[ne,ie]=l([...m]||[]),[le,re]=l([]),[se,ce]=l([]),de=d||c.find((e=>`${e.id||""}-${e.mappedCategoryId||""}`===ae.value)),pe=d?[d]:c.filter((e=>e.isActive)).sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),[ue,ge]=l(null),[ve,he]=l([]),be=Y&&!H&&C(ee)&&(u||!u&&ne.length>0)&&de&&(!le||le.length<=Q)&&!(null==ve?void 0:ve.length)&&!q;s((()=>{if(g){const e=g;J(e.title||""),te(Sa(Ia(e.description||"","edit"),e.mentions)),oe({label:e.community.name,value:`${e.community.id||""}-${e.community.mappedCategoryId||""}`}),ie(e.topics||[]),re(e.photos||[]),R(!!e.isAnonymous||!1),D(!!e.isAskDoctor||!1)}else v&&oe({label:v.name,value:`${v.id||""}-${v.mappedCategoryId||""}`}),b&&ie(b)}),[]),s((()=>{Z(""!==Y&&!/[a-zA-Z]/.test(Y))}),[Y]);const ye=()=>e(void 0,void 0,void 0,(function*(){var t,a,o,i,l,s,c,d,m;if(A&&void 0===V)return W(!0),!1;const u=yield(({title:t,description:a,communityId:o,imageFiles:n,previewUrl:i,topicIds:l,locale:r,sanitizeFunction:s,categoryCommunityId:c,categoryTopicIds:d,introUrl:m,bannerUrl:p,scheduleTime:u,isAnonymous:g,isAskDoctor:v})=>e(void 0,void 0,void 0,(function*(){const e=new FormData,h=Ba(a),b=Ba(t),f=Ma(h);if(e.append("title",b),e.append("description",Fa(h,s)),c?e.append("category_community",String(c)):o&&e.append("community_id",String(o)),e.append("is_anonymous",g?"1":"0"),e.append("is_question",v?"1":"0"),(null==i?void 0:i.title)&&e.append("preview_title",i.title),(null==i?void 0:i.description)&&e.append("preview_description",i.description),(null==i?void 0:i.url)&&e.append("preview_link",fe(i.url)),(null==i?void 0:i.image)&&e.append("preview_image",fe(i.image)),null==l||l.forEach((t=>{e.append("topics[]",String(t||""))})),null==d||d.forEach((t=>{e.append("category_topics[]",String(t||""))})),null==n?void 0:n.length){const t=yield Promise.all(n.map(((e,t)=>new Promise((a=>{setTimeout((()=>{a(Da(e,r))}),2e3*t)})))));null==t||t.filter(Boolean).slice(0,Q).forEach(((t,a)=>{e.append(`images[${a}]`,t)}))}else e.append("images","");return null==f||f.forEach((t=>{e.append("mention_ids[]",t)})),e.append("intro_url",m||""),e.append("banner",p||""),u&&(e.append("post_type","scheduled"),e.append("schedule_datetime",u)),e})))({title:Y,description:ee,communityId:String((null==de?void 0:de.id)||""),imageFiles:le,previewUrl:ue,topicIds:null==ne?void 0:ne.map((e=>String(e.id||""))).filter(Boolean),locale:S,sanitizeFunction:j,categoryCommunityId:String((null==de?void 0:de.mappedCategoryId)||""),categoryTopicIds:null==ne?void 0:ne.map((e=>String(e.mappedCategoryId||""))).filter(Boolean),isAnonymous:O?1:0,isAskDoctor:V?1:0});let v;p&&u.append("article_id",p),z?(null==g?void 0:g.id)&&(v=yield(({id:t,locale:a,formData:o})=>e(void 0,void 0,void 0,(function*(){return yield G(P(I.POST.UPDATE,{id:t,_locale:a}),"POST",{data:o})})))({id:g.id,formData:u,locale:S})):v=yield(({locale:t,formData:a,isArticleComment:o})=>e(void 0,void 0,void 0,(function*(){return yield G(P(o?I.POST.CREATE_ARTICLE_COMMENT:I.POST.CREATE,{_locale:t}),"POST",{data:a})})))({formData:u,locale:S,isArticleComment:!(null==de?void 0:de.id)&&!!(null==de?void 0:de.mappedCategoryId)});const h=null==v?void 0:v.data;(null==h?void 0:h.id)&&!(null===(a=null===(t=null==v?void 0:v.messages)||void 0===t?void 0:t.moderation)||void 0===a?void 0:a.type)?(M({message:B("createPost.popup.success"),type:"success"}),(e=>{n&&n(Ae(e),z),r&&r()})(h)):"banned"===(null===(i=null===(o=null==v?void 0:v.messages)||void 0===o?void 0:o.moderation)||void 0===i?void 0:i.type)?(M({title:B("notification.post.blocked.title"),message:B("notification.post.blocked.message"),type:"danger"}),v.messages.moderation.words&&ce(v.messages.moderation.words)):"suspect"===(null===(s=null===(l=null==v?void 0:v.messages)||void 0===l?void 0:l.moderation)||void 0===s?void 0:s.type)?(M({title:B("notification.post.suspect.title"),message:B("notification.post.suspect.message"),type:"warning"}),r&&r()):(null===(d=null===(c=null==v?void 0:v.messages)||void 0===c?void 0:c.find)||void 0===d?void 0:d.call(c,(e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(M({message:B("notification.suspend.message"),type:"danger"}),r&&r()):M({message:(null===(m=null==v?void 0:v.messages)||void 0===m?void 0:m[0])||B("notification.failure"),type:"danger"})}));return o.createElement(va,{className:t,style:a},o.createElement("div",{className:"input-group-container"},o.createElement(ao,{className:"input-group",bannedWords:se,value:Y,onChange:J}),H&&o.createElement(ba,null,o.createElement(X,{isSolid:!0,color:k.colors.red700,size:14}),o.createElement(F,{size:"p3",as:"span",color:k.colors.red700},B("createPost.popup.specialCharErr"))),o.createElement(Ja,{className:"input-group",bannedWords:se,value:ee,onChange:te,onPreviewUrlChange:ge,onInvalidUrlsChange:he,onImageFilesChange:re,imageFiles:le}),A&&o.createElement(ha,{"data-is-marry-baby":L},o.createElement("div",{className:"switch-label"},o.createElement(K,{isMarryBaby:L,size:L?32:24,color:k.colors.primaryBase,className:"label-icon"}),o.createElement("span",{className:"label-txt"},B("createPost.askDoctor"))),o.createElement(Ce,{value:V,choices:[{label:B("createPost.askDoctorChoice.yes"),value:!0,dataEventCategory:"Together",dataEventAction:"Write Post Click - Ask Doctor",dataEventLabel:T},{label:B("createPost.askDoctorChoice.no"),value:!1}],onChange:e=>{"boolean"==typeof e&&(W(!1),D(e))}})),U&&o.createElement(ba,null,o.createElement(X,{isSolid:!0,color:k.colors.red700,size:14}),o.createElement(F,{size:"p3",as:"span",color:k.colors.red700},B("createPost.message.askDoctorRequire"))),o.createElement("div",{className:"input-group"},o.createElement(F,{size:"p4",className:"input-group-label"},B("admin.community")),o.createElement(x,{options:(null==pe?void 0:pe.map((e=>({label:e.name,value:`${e.id||""}-${e.mappedCategoryId||""}`}))))||[],id:"community-picker",placeholder:B("community.choose"),value:ae,dropdownLabelTrackingAttributes:{"data-event-category":"Together","data-event-action":"Write Post Click - Choose Community/Topic","data-event-label":T},onChange:e=>{oe({label:e.label,value:String(e.value)}),ie([])},disabled:!!d}),o.createElement(F,{size:"sm",className:"warning",color:k.colors.gray400},"* ",B("commentPopup.warning.newPost"))),!y&&o.createElement("div",{className:"input-group"},o.createElement(F,{size:"p4",className:"input-group-label"},B("tab.topic")),o.createElement("div",{className:"input-notification"},o.createElement("img",{src:de?"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%232D87F3'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e":fa,loading:"lazy"}),o.createElement(F,{size:"base",color:k.colors.gray500},B(de?"createPost.popup.primary":"createPost.popup.warning"))),de&&o.createElement(no,{className:"tag-list",communityId:de.id,forceTopics:m,onChange:ie,selectedTopics:ne,noFetch:f,dataEventCategory:"Together",dataEventAction:"Write Post Click - Choose Community/Topic",dataEventLabel:T}))),o.createElement("div",{className:"form-action"},o.createElement("div",{className:"input-group"},o.createElement(h,{className:"swich-input-group",labelPosition:"left",name:"PostAnonymous",checked:O,color:L?"pink":void 0,"data-event-category":"Together","data-event-action":"Write Post Click - Incognito","data-event-label":T,label:o.createElement("div",{className:"switch-label"},o.createElement("img",{className:"label-icon",src:me.getAssetPath("anomyous-avatar.svg"),alt:"anomyous avatar",style:{marginRight:"10px",width:"24px"},loading:"lazy"}),o.createElement("span",{className:"label-txt"},B("createPost.postAnonymous"))),value:"Post Anonymous",onChange:e=>R(e.currentTarget.checked),styles:{body:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},label:{display:"flex",alignItems:"center"}}})),o.createElement("div",{className:"input-group"},o.createElement($,{className:"submit-btn pointer-event-child-none",size:"lg","data-event-category":"Ask Doctor","data-event-action":"Submit Question","data-event-label":window.location.href,onClick:()=>e(void 0,void 0,void 0,(function*(){if(be&&!q){_(!0);try{yield ye()}catch(e){console.error(e),M(ga(B))}_(!1)}})),disabled:!be,loading:q},B("createPost.popup.submit")))))},ro=ue.div`
1522
1522
  [data-type='confirm'] {
1523
1523
  width: min(360px, 100%);
1524
1524
  height: auto;
@@ -2634,7 +2634,7 @@ import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";impor
2634
2634
  overflow: hidden;
2635
2635
  border-radius: 1rem;
2636
2636
  }
2637
- `,$o=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(N),[g,v]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return v(null);v((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),z(P(I.FETCH_PREVIEW,{_locale:u}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;v({url:t,image:(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.image)||(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.logo)})})).catch((()=>{v(null)}))}}))}),[t,a]);const h=a||(null==g?void 0:g.image),b=(null==g?void 0:g.url)||t,f=c((()=>(e=>{var t;return e.includes("youtu")&&(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""})(b)),[b]),y=c((()=>b.includes("facebook.com")||b.includes("fb.watch")),[b]),w=r(0),x=r(0),[E,C]=l(!1);s((()=>{const e=()=>{var e;const t=null===(e=k.current)||void 0===e?void 0:e.getBoundingClientRect();let a=!1;t&&(!w.current||Math.abs((w.current-t.width)/(null==t?void 0:t.width))>.2)&&(w.current=Math.floor(t.width),a=!0),t&&(!x.current||Math.abs((x.current-t.height)/(null==t?void 0:t.height))>.2)&&(x.current=Math.floor(t.height),a=!0),a&&C((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const k=r(null),A=m();return o.createElement(Ko,{className:`${n} no-replace-click`,style:d,ref:k,color:A.colors[A.primaryColor][0]},a||!f&&!y?o.createElement("a",{href:b,target:"_blank",rel:"noreferrer"},o.createElement("div",{className:"link-image-wrapper "+((null==g?void 0:g.isFetching)?"fetching":"")},(null==g?void 0:g.isFetching)?o.createElement(Ye,{className:"loading-spinner"}):o.createElement(we,{className:"link-image",src:h||S,backupSrc:S,alt:b}))):o.createElement("div",{className:"link-image-wrapper"},f?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${f}?&autoplay=${p?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"},loading:"lazy"}):y?o.createElement("iframe",{key:String(E),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(b)}&autoplay=${p?1:0}&show_text=false&t=0&width=${w.current}&height=${x.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:x.current,width:w.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null))};var Yo="PD6nRZX";const Jo=({className:e,size:t="md"})=>{const{t:a}=E();return o.createElement("div",{className:`${Yo} ${e}`},o.createElement(Fe,{size:t,color:"transparent",isLoading:!0},a("loading")))},en=n({});var tn="l5fL1xL",an="L-aGKo7";const on=({children:e,className:t=""})=>o.createElement("div",{className:`${tn} ${t}`},e),nn=({children:e,className:t=""})=>o.createElement("div",{className:`${an} ${t}`},e);var ln="eaR8ATZ",rn="xM-7K0a",sn="DZmf3s7";const cn=({src:e,defaultSrc:t=ce.getAssetPath("logo/logomark.png"),ratio:a=1,size:n=80,radius:i=8,alt:l,className:r=""})=>o.createElement("div",{className:r},o.createElement("div",{className:sn,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(we,{src:e,backupSrc:t,alt:l}))),dn=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${ln} ${i}`},o.createElement(cn,{src:a}),o.createElement("div",{className:rn},n||o.createElement("div",null,e&&o.createElement(on,null,e),t&&o.createElement(nn,null,t))));dn.CategoryText=on,dn.Title=nn;const mn=({featureImage:e,postTitle:t,author:a,categories:n,isReview:i,className:l=""})=>{var r;const s=i?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return o.createElement(dn,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(dn.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(dn.Title,null,t),o.createElement(Rt,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(Rt.SubDivider,null),"Dec 12, 2022")})))};var pn={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 un=({className:e=""})=>{var t,a,n,l,r;const{t:s}=E(),{info:c,isMarryBaby:d,currentPageUrl:m}=i(en),p=null==c?void 0:c.data,g=[{type:"linkedin",icon:ce.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:ce.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:ce.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:ce.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:ce.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],v=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:ce.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:o.createElement("div",{className:pn.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:pn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:pn.accBodyGroupTitle},e.title),o.createElement("div",{className:pn.accBodyGroupDesc},o.createElement("p",null,e.organization),o.createElement("p",null,e.duration))))))}]:[],...((null==c?void 0:c.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:ce.getAssetPath(d?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:o.createElement("div",{className:pn.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:pn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:pn.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:pn.accBodyGroupDesc},o.createElement("p",null,e.study),o.createElement("p",null,e.completedYear))))))}]:[],...((null==c?void 0:c.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:ce.getAssetPath(d?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:o.createElement("div",{className:pn.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:pn.accBodyGroupTitle,key:t},e.title))))}]:[]],h=(null==c?void 0:c.relatedPosts)||[],b=g.filter((e=>e.url));return o.createElement("div",{className:`${pn.container} ${e}`,"data-is-marrybaby":d},v.length>0&&o.createElement(y,{defaultValue:v[0].key,chevron:d?o.createElement("div",{className:pn.mbChevronWrapper},o.createElement(ee,{size:12,color:k.mbColors.midGray})):o.createElement(ee,{color:k.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},v.map((e=>o.createElement(y.Item,{key:e.key,value:e.key},o.createElement(y.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},o.createElement("div",{className:pn.header},o.createElement("div",{className:pn.headingIcon},o.createElement("img",{src:e.iconSrc,loading:"lazy"})),o.createElement("div",{className:pn.heading},e.heading))),o.createElement(y.Panel,null,e.panel))))),h.length>0&&o.createElement("div",{className:pn.group},o.createElement("div",{className:pn.subTitle},o.createElement("img",{className:pn.subIcon,src:ce.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${pn.relatedList}`},null==c?void 0:c.relatedPosts.map((e=>o.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:pn.articleCardLink},o.createElement(mn,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==p?void 0:p.name,avatar:null==p?void 0:p.avatar}}),{isReview:!0}))))))),b.length>0&&o.createElement("div",{className:pn.group},o.createElement("div",{className:pn.subTitle},o.createElement("img",{className:pn.subIcon,src:ce.getAssetPath(d?"social-mb.svg":"social.svg"),loading:"lazy"}),s("profilePanel.socialLinks")),o.createElement("div",{className:pn.groupBody},o.createElement(u,null,g.map(((e,t)=>e.url&&o.createElement("div",{className:pn.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m})))))))))};var gn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const vn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=E(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(N),{authActionWrapper:v,authorProps:h,currentPageUrl:b}=i(en),f=`${window.location.origin}${g}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${gn.container} ${t}`},o.createElement("div",{className:gn.header},o.createElement("div",{className:gn.question},p("profilePanel.question")," ",o.createElement(te,{className:gn.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==v||v((()=>window.location.href=f))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:gn.community},null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.name," - ",null==e?void 0:e.createdTime)),o.createElement("div",{className:gn.questionCard},o.createElement(ua,Object.assign({className:"card-author"},h,{role:"user",avatarIcon:o.createElement(Nt,null),subLine:o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null===(s=null===(r=null===(l=null==e?void 0:e.expertAnswer)||void 0===l?void 0:l.answer)||void 0===r?void 0:r[0])||void 0===s?void 0:s.createdTime))})),o.createElement(zo,{className:"post-content-wrapper",description:(null===(m=null===(d=null===(c=null==e?void 0:e.expertAnswer)||void 0===c?void 0:c.answer)||void 0===d?void 0:d[0])||void 0===m?void 0:m.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),o.createElement($,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":b,size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=f:null==v||v((()=>window.location.href=f))}},p("profilePanel.anserwing.viewFull")))};var hn="MrdoES3",bn="_8fd7YMs",fn="DomiQfw",yn="-b2qnfL";const wn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(en);return o.createElement("div",{className:bn},o.createElement("div",{className:fn},o.createElement("img",{src:a||ce.getAssetPath(r?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&o.createElement("div",{className:yn},e),t&&o.createElement(Fe,{size:"md",theme:l,color:"secondary",onClick:n},t))},xn=({id:t})=>{const{t:a}=E(),{data:{locale:n}}=i(N),{authorProps:r}=i(en),[c,d]=l(null),[m,p]=l(!1);return s((()=>{t&&e(void 0,void 0,void 0,(function*(){var e;p(!0);const a=yield z(P(I.USER.LIST_ANSWERS,{_locale:n,id:t}),"GET"),o=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.replies)||[]).map(Ae);d(o),p(!1)}))}),[]),o.createElement("div",{className:hn},m?o.createElement(Jo,null):null!==c&&(c.length>0?c.map((e=>o.createElement(vn,{className:"post-card",key:e.id,post:e}))):o.createElement(wn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))};var En="toEutn7",Cn="drdisHs";const kn=e=>{var a,n,l,r,{post:s}=e,c=t(e,["post"]);const{data:{env:{togetherBasePath:d}}}=i(N);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},c,{className:`${En} ${(null==c?void 0:c.className)||""}`}),o.createElement(ua,{className:"card-author",avatar:null===(a=null==s?void 0:s.author)||void 0===a?void 0:a.avatar,name:(null===(n=null==s?void 0:s.author)||void 0===n?void 0:n.name)||(null===(l=null==s?void 0:s.author)||void 0===l?void 0:l.username),isAnonymous:Boolean(null==s?void 0:s.isAnonymous),subLine:o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(te,{href:`${window.location.origin}${d}/${null===(r=null==s?void 0:s.community)||void 0===r?void 0:r.slug}/${null==s?void 0:s.slug}`,className:Cn,rel:"noreferrer"},null==s?void 0:s.title)))};var Nn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const An=()=>{var t,a;const{t:n}=E(),{data:{locale:r,userInfo:c}}=i(N),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(en),[u,g]=l(),[v,h]=l([]),[b,f]=l(!1),w=null==c?void 0:c.id;s((()=>{w&&e(void 0,void 0,void 0,(function*(){var e;f(!0);const t=yield G(P(I.USER.LIST_QUESTION_NEED_REPLY,{_locale:r}),"GET"),a=[],o=Object.create({});((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.communities)||[]).filter((e=>((null==e?void 0:e.question)||[]).length>0)).map((e=>{o[e.id]=e.question.map(Ae),delete e.question,a.push(Pe(e))})),h(a),g(o),f(!1)}))}),[]);const x=({id:e,communityId:t})=>{if(e&&t&&u){const a=Object.assign(Object.assign({},u),{[t]:[...((null==u?void 0:u[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),g(a),p(Object.assign(Object.assign({},m),{total_question:o})),null==d||d(o)}};return o.createElement("div",{className:Nn.container},b?o.createElement(Jo,null):(null==m?void 0:m.total_question)>0?v.length>0&&o.createElement(y,{className:Nn.accordion,defaultValue:String((null===(a=v[null===(t=Object.keys(v))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles: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:o.createElement("div",{className:Nn.chevron},o.createElement(ae,{color:k.colors.gray600,size:20}))},v.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(y.Item,{key:e.id,value:String(e.id)},o.createElement(y.Control,null,o.createElement("div",{className:Nn.header},o.createElement("div",{className:Nn.headingIcon},o.createElement("img",{src:e.thumbnail,loading:"lazy"})),o.createElement("div",{className:Nn.heading},e.name))),o.createElement(y.Panel,null,o.createElement("div",{className:Nn.body},t.map((e=>o.createElement(kn,{className:"question-card",key:e.id,post:e,onSkip:x}))))))}))):o.createElement(wn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:ce.getAssetPath("questions.svg")}))};var Tn="GA-zc-O",zn="A18McWD",Pn="IB049vj",In="_8I--vEV";const Sn=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(N),{authActionWrapper:r,authorProps:s}=i(en),c=`${window.location.origin}${l}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${Tn} ${t}`},o.createElement("div",{className:Pn},o.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":c,className:In,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(Rt,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(ua.MainText,{className:zn},null==e?void 0:e.title),o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null==e?void 0:e.createdTime))),o.createElement(zo,{className:"post-content-wrapper",description:null==e?void 0:e.description,mentions:null==e?void 0:e.mentions,maxChars:200,"data-testid":"Content of the Post"})))};var Ln="TSMHoEM";const Mn=()=>{const{t:t}=E(),{data:{locale:a}}=i(N),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(en),[m,p]=l(null),[u,g]=l(!1);return s((()=>{n&&e(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield z(P(I.USER.LIST_POST,{_locale:a,id:n,isAnonymous:0}),"GET"),o=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(Ae);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Ln},u?o.createElement(Jo,null):null!==m&&(m.length>0?m.map((e=>o.createElement(Sn,{className:"post-card",key:e.id,post:e}))):o.createElement(wn,{message:t("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:c&&t("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var jn="_4Vekw96",Bn="DIJdGcB",Fn="aQSt4-Q";const On=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Rn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var Vn,Dn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(Vn||(Vn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Dn||(Dn={}));const Un=a=>{var n,{authorProps:r,selectedTab:c,authActionWrapper:d,onSkipQuestion:m,onCloseFromPost:p,hideQuestionTab:u,hideAnswerTab:g,showSkipQuestionTag:v,rolesToShowQuestionsTab:h=["expert"],currentPageUrl:b}=a,f=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:y,userInfo:w,env:{isMarryBaby:x}}}=i(N),{t:C}=E(),k=null==r?void 0:r.role,A=null==w?void 0:w.role,T=String(null==r?void 0:r.userId),[S,L]=l(),[M,j]=l(!1),[B,F]=l(),O=(null==w?void 0:w._togetherUserId)===(null==r?void 0:r.userId),R=[...-1!==h.indexOf(k)?[{value:Vn.About,text:C("profilePanel.tabs.highlight"),content:o.createElement(un,{id:T,info:B}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:b}]:[],{value:Vn.Posts,text:C("profilePanel.tabs.posts"),content:o.createElement(Mn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...u||-1===h.indexOf(A)||(null==w?void 0:w._togetherUserId)!==(null==r?void 0:r.userId)?[]:[{value:Vn.Care,text:`${C("profilePanel.tabs.care")}`,content:o.createElement(An,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:b}],...g||-1===h.indexOf(k)?[]:[{value:Vn.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:o.createElement(xn,{id:T}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:b}]],[V,D]=l(null),[U,W]=l(null),H={value:String(U),dataList:V,onTabChange:e=>W(Number(e))},Z=null==R?void 0:R.filter((e=>null==e?void 0:e.hasCountResult));s((()=>{e(void 0,void 0,void 0,(function*(){var e,t,a,o,n,i,l,r,s,d;j(!0);const m=yield Promise.all([z(P(I.USER.DETAIL,{_locale:y,id:T}),"GET"),...Z.map((e=>z(P(I.USER.COUNT_TABS,{_locale:y,id:T,[e.keyOfCountApi]:1}),"GET")))]),[p]=m,u={data:null==p?void 0:p.data,experiences:((null===(t=null===(e=null==p?void 0:p.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(On),relatedPosts:((null===(a=null==p?void 0:p.data)||void 0===a?void 0:a.related_post)||[]).map((e=>Ie(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(Rn),awards:(null===(l=null===(i=null==p?void 0:p.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==p?void 0:p.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};1===(null==p?void 0:p.status)&&F(u);const g=(null==u?void 0:u.relatedPosts)||[],v=Object.keys(u.contact).map((e=>{var t;return""!==(null===(t=null==u?void 0:u.contact)||void 0===t?void 0:t[e])})),h=[...(null==u?void 0:u.experiences)||[],...(null==u?void 0:u.educations)||[],...(null==u?void 0:u.awards)||[]],b=g.length>0||v.length>0||h.length>0,f={},w=Z.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=m[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===n?void 0:n[e.keyOfResult])||0;return i>0?(f[e.keyOfResult]=i,e):-1!==[Vn.Care,Vn.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),x=R.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==w.indexOf(t.value)?t:void 0:t.value===Vn.About?b&&t:t})).filter(Boolean);D(x),W(c||(null===(d=null==x?void 0:x[0])||void 0===d?void 0:d.value)),L(f),j(!1)}))}),[]);const q=null==B?void 0:B.data;return o.createElement(en.Provider,{value:{isMarryBaby:x,siteType:x?"marryBaby":"helloSites",authorId:String((null==r?void 0:r.userId)||""),authActionWrapper:d,onSkipQuestion:m,info:B,authorProps:r,onCloseFromPost:p,countValues:S,setCountValues:L,isAuthorLogin:O,showSkipQuestionTag:v,currentPageUrl:b}},o.createElement("div",Object.assign({},f,{className:`${jn} ${(null==f?void 0:f.className)||""}`,"data-is-marrybaby":x}),M?o.createElement(Jo,null):o.createElement(o.Fragment,null,o.createElement(ua,Object.assign({},r,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==r?void 0:r.role)?(null==q?void 0:q.specialty)&&(null==q?void 0:q.organisation)&&o.createElement(ua.SubTextRow,null,(null==q?void 0:q.specialty)&&o.createElement(o.Fragment,null,o.createElement(ua.SubText,null,null==q?void 0:q.specialty),o.createElement(ua.SubDivider,null)),o.createElement(ua.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,C("profilePanel.joined")," ",pe(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===k&&o.createElement("div",{className:Bn,dangerouslySetInnerHTML:{__html:null===(n=null==B?void 0:B.data)||void 0===n?void 0:n.description}}),null!==V&&null!==U&&(V.length>0?o.createElement("div",{className:Fn},o.createElement(oe,Object.assign({},H))):o.createElement(wn,{message:C("profilePanel.emptyPostMess.content",{text:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""})})))))};var Wn=Object.freeze({__proto__:null,get TabName(){return Vn},get UserType(){return Dn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Un}),Hn="KsWg8i6",Zn="_9tS0EUN",qn="kyyRKlb",_n="-Uqqka-";const Gn=a=>{var{post:n,onSkip:r,btnText:s,currentPageUrl:c}=a,p=t(a,["post","onSkip","btnText","currentPageUrl"]);const{t:u}=E(),{data:{locale:g},action:{pushNotifications:v}}=i(N),[h,b]=l(!1),[f,y]=l(!1),x=m(),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;y(!0);const t=yield G(P(I.USER.SKIP_QUESTION,{_locale:g,id:null==n?void 0:n.id}),"PUT");1===(null==t?void 0:t.status)?(null==r||r({id:(null==n?void 0:n.id)||"",communityId:(null===(e=null==n?void 0:n.community)||void 0===e?void 0:e.id)||""}),b(!1),v({title:"",message:"Skip success",type:"success"})):v({title:"",message:null==t?void 0:t.messages,type:"danger"}),y(!1)}))),[]);return o.createElement(w,{width:327,withArrow:!0,shadow:"md",opened:h},o.createElement(w.Target,null,o.createElement("div",Object.assign({className:`${Hn} ${(null==p?void 0:p.className)||""}`,onClick:()=>b(!0)},p),s||u("profilePanel.questionNotClear"))),o.createElement(w.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:Zn},u("profilePanel.skipQuestion.heading")),o.createElement("div",{className:qn},u("profilePanel.skipQuestion.content")),o.createElement("div",{className:_n},o.createElement($,{size:"md",variant:"secondary",leftIcon:o.createElement(ne,{color:x.fn.primaryColor(),size:24}),onClick:()=>b(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement($,{variant:"primary",size:"md",leftIcon:o.createElement(ie,{color:"white",size:24}),onClick:C,loading:f,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":c,styles:()=>({leftIcon:{marginRight:0}})})))))};var Qn="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",Xn="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",Kn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",$n="data:image/svg+xml,%3csvg width='3' height='13' viewBox='0 0 3 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1.58326' cy='6.41663' r='1.25' transform='rotate(89.9997 1.58326 6.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='1.41663' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 1.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='11.4166' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 11.4166)' fill='%23595959'/%3e%3c/svg%3e",Yn="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",Jn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='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 ei=({authorEmail:t,onDeletePost:a,shareUrl:n,post:r,className:s="",popoverClassName:c="",onBookmark:d,onRemoveBookmark:m,onEditPost:p})=>{const{data:{locale:u,userInfo:g,togetherUserId:v,env:{isMarryBaby:h}},action:{pushNotifications:b}}=i(N),{t:f}=E(),[y,w]=l(!1),[x,C]=l(!1),[k,A]=l(!1),{authActionWrapper:T}=Xe(),z=t&&(null==g?void 0:g.email)&&t===String(null==g?void 0:g.email);return o.createElement("div",{className:s,onClick:e=>{e.preventDefault(),e.stopPropagation()}},k&&o.createElement(xo,{url:n,text:null==r?void 0:r.title,onClose:()=>A(!1)}),x&&o.createElement(go,{thumbnail:ce.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:f("popup.deletePost.title"),description:f("popup.deletePost.description"),acceptText:f("popup.deletePost.accept"),cancelText:f("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){if((null==r?void 0:r.id)&&!y){w(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield G(P(I.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}w(!1)}})),onClose:()=>C(!1)}),o.createElement(xt,{className:c,toggleButtonContent:o.createElement("img",{src:h?Qn:$n,loading:"lazy"}),position:"bottom",align:"end",buttonProps:{isLoading:y},data:z?{isShowheader:!1,type:"list",list:[{icon:Yn,label:f("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:f("actionPopover.edit"),onClick:p},{icon:Jn,label:f("actionPopover.delete"),onClick:()=>{T((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Yn,label:f("morePopover.share"),onClick:()=>A(!0)},{icon:(null==r?void 0:r.bookmarked)?Xn:Kn,label:(null==r?void 0:r.bookmarked)?f("morePopover.unsavePost"):f("morePopover.savePost"),onClick:()=>{T((()=>e(void 0,void 0,void 0,(function*(){if((null==g?void 0:g.id)&&(null==r?void 0:r.id))if(null==r?void 0:r.bookmarked){const e=yield G(P(I.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(r.id)}});1===(null==e?void 0:e.status)?(b({title:"",message:"Removed saved post",type:"success",displayIcon:Kn}),m&&m()):b({title:"",message:"Remove failed",type:"danger",displayIcon:Kn})}else{const e=yield G(P(I.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:v||g.id,post_id:r.id}});1===(null==e?void 0:e.status)?(b({title:"",message:"Post saved",type:"success",displayIcon:Xn}),d&&d()):b({title:"",message:"Post saved failed",type:"danger",displayIcon:Kn})}}))))}},{icon:ko,label:f("morePopover.report"),subTree:{title:f("morePopover.report.title"),description:f("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(le).map((e=>({label:le[e].label,reason:le[e].reportReasonText,reasonValue:e}))).map((e=>({label:f(e.label),subTree:{title:f("morePopover.reportSubmit.title"),description:f("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>o.createElement(No,{reason:e.reasonValue,reasonText:f(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},ti=ue.div`
2637
+ `,$o=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(N),[g,v]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return v(null);v((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),z(P(I.FETCH_PREVIEW,{_locale:u}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;v({url:t,image:(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.image)||(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.logo)})})).catch((()=>{v(null)}))}}))}),[t,a]);const h=a||(null==g?void 0:g.image),b=(null==g?void 0:g.url)||t,f=c((()=>(e=>{var t;return e.includes("youtu")&&(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""})(b)),[b]),y=c((()=>b.includes("facebook.com")||b.includes("fb.watch")),[b]),w=r(0),x=r(0),[E,C]=l(!1);s((()=>{const e=()=>{var e;const t=null===(e=k.current)||void 0===e?void 0:e.getBoundingClientRect();let a=!1;t&&(!w.current||Math.abs((w.current-t.width)/(null==t?void 0:t.width))>.2)&&(w.current=Math.floor(t.width),a=!0),t&&(!x.current||Math.abs((x.current-t.height)/(null==t?void 0:t.height))>.2)&&(x.current=Math.floor(t.height),a=!0),a&&C((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const k=r(null),A=m();return o.createElement(Ko,{className:`${n} no-replace-click`,style:d,ref:k,color:A.colors[A.primaryColor][0]},a||!f&&!y?o.createElement("a",{href:b,target:"_blank",rel:"noreferrer"},o.createElement("div",{className:"link-image-wrapper "+((null==g?void 0:g.isFetching)?"fetching":"")},(null==g?void 0:g.isFetching)?o.createElement(Ye,{className:"loading-spinner"}):o.createElement(we,{className:"link-image",src:h||S,backupSrc:S,alt:b}))):o.createElement("div",{className:"link-image-wrapper"},f?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${f}?&autoplay=${p?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"},loading:"lazy"}):y?o.createElement("iframe",{key:String(E),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(b)}&autoplay=${p?1:0}&show_text=false&t=0&width=${w.current}&height=${x.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:x.current,width:w.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null))};var Yo="PD6nRZX";const Jo=({className:e,size:t="md"})=>{const{t:a}=E();return o.createElement("div",{className:`${Yo} ${e}`},o.createElement(Fe,{size:t,color:"transparent",isLoading:!0},a("loading")))},en=n({});var tn="l5fL1xL",an="L-aGKo7";const on=({children:e,className:t=""})=>o.createElement("div",{className:`${tn} ${t}`},e),nn=({children:e,className:t=""})=>o.createElement("div",{className:`${an} ${t}`},e);var ln="eaR8ATZ",rn="xM-7K0a",sn="DZmf3s7";const cn=({src:e,defaultSrc:t=me.getAssetPath("logo/logomark.png"),ratio:a=1,size:n=80,radius:i=8,alt:l,className:r=""})=>o.createElement("div",{className:r},o.createElement("div",{className:sn,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(we,{src:e,backupSrc:t,alt:l}))),dn=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${ln} ${i}`},o.createElement(cn,{src:a}),o.createElement("div",{className:rn},n||o.createElement("div",null,e&&o.createElement(on,null,e),t&&o.createElement(nn,null,t))));dn.CategoryText=on,dn.Title=nn;const mn=({featureImage:e,postTitle:t,author:a,categories:n,isReview:i,className:l=""})=>{var r;const s=i?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return o.createElement(dn,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(dn.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(dn.Title,null,t),o.createElement(Rt,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(Rt.SubDivider,null),"Dec 12, 2022")})))};var pn={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 un=({className:e=""})=>{var t,a,n,l,r;const{t:s}=E(),{info:c,isMarryBaby:d,currentPageUrl:m}=i(en),p=null==c?void 0:c.data,g=[{type:"linkedin",icon:me.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:me.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:me.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:me.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:me.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],v=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:me.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:o.createElement("div",{className:pn.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:pn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:pn.accBodyGroupTitle},e.title),o.createElement("div",{className:pn.accBodyGroupDesc},o.createElement("p",null,e.organization),o.createElement("p",null,e.duration))))))}]:[],...((null==c?void 0:c.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:me.getAssetPath(d?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:o.createElement("div",{className:pn.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:pn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:pn.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:pn.accBodyGroupDesc},o.createElement("p",null,e.study),o.createElement("p",null,e.completedYear))))))}]:[],...((null==c?void 0:c.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:me.getAssetPath(d?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:o.createElement("div",{className:pn.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:pn.accBodyGroupTitle,key:t},e.title))))}]:[]],h=(null==c?void 0:c.relatedPosts)||[],b=g.filter((e=>e.url));return o.createElement("div",{className:`${pn.container} ${e}`,"data-is-marrybaby":d},v.length>0&&o.createElement(y,{defaultValue:v[0].key,chevron:d?o.createElement("div",{className:pn.mbChevronWrapper},o.createElement(ee,{size:12,color:k.mbColors.midGray})):o.createElement(ee,{color:k.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},v.map((e=>o.createElement(y.Item,{key:e.key,value:e.key},o.createElement(y.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},o.createElement("div",{className:pn.header},o.createElement("div",{className:pn.headingIcon},o.createElement("img",{src:e.iconSrc,loading:"lazy"})),o.createElement("div",{className:pn.heading},e.heading))),o.createElement(y.Panel,null,e.panel))))),h.length>0&&o.createElement("div",{className:pn.group},o.createElement("div",{className:pn.subTitle},o.createElement("img",{className:pn.subIcon,src:me.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${pn.relatedList}`},null==c?void 0:c.relatedPosts.map((e=>o.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:pn.articleCardLink},o.createElement(mn,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==p?void 0:p.name,avatar:null==p?void 0:p.avatar}}),{isReview:!0}))))))),b.length>0&&o.createElement("div",{className:pn.group},o.createElement("div",{className:pn.subTitle},o.createElement("img",{className:pn.subIcon,src:me.getAssetPath(d?"social-mb.svg":"social.svg"),loading:"lazy"}),s("profilePanel.socialLinks")),o.createElement("div",{className:pn.groupBody},o.createElement(u,null,g.map(((e,t)=>e.url&&o.createElement("div",{className:pn.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m})))))))))};var gn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const vn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=E(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(N),{authActionWrapper:v,authorProps:h,currentPageUrl:b}=i(en),f=`${window.location.origin}${g}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${gn.container} ${t}`},o.createElement("div",{className:gn.header},o.createElement("div",{className:gn.question},p("profilePanel.question")," ",o.createElement(te,{className:gn.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==v||v((()=>window.location.href=f))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:gn.community},null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.name," - ",null==e?void 0:e.createdTime)),o.createElement("div",{className:gn.questionCard},o.createElement(ua,Object.assign({className:"card-author"},h,{role:"user",avatarIcon:o.createElement(Nt,null),subLine:o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null===(s=null===(r=null===(l=null==e?void 0:e.expertAnswer)||void 0===l?void 0:l.answer)||void 0===r?void 0:r[0])||void 0===s?void 0:s.createdTime))})),o.createElement(zo,{className:"post-content-wrapper",description:(null===(m=null===(d=null===(c=null==e?void 0:e.expertAnswer)||void 0===c?void 0:c.answer)||void 0===d?void 0:d[0])||void 0===m?void 0:m.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),o.createElement($,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":b,size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=f:null==v||v((()=>window.location.href=f))}},p("profilePanel.anserwing.viewFull")))};var hn="MrdoES3",bn="_8fd7YMs",fn="DomiQfw",yn="-b2qnfL";const wn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(en);return o.createElement("div",{className:bn},o.createElement("div",{className:fn},o.createElement("img",{src:a||me.getAssetPath(r?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&o.createElement("div",{className:yn},e),t&&o.createElement(Fe,{size:"md",theme:l,color:"secondary",onClick:n},t))},xn=({id:t})=>{const{t:a}=E(),{data:{locale:n}}=i(N),{authorProps:r}=i(en),[c,d]=l(null),[m,p]=l(!1);return s((()=>{t&&e(void 0,void 0,void 0,(function*(){var e;p(!0);const a=yield z(P(I.USER.LIST_ANSWERS,{_locale:n,id:t}),"GET"),o=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.replies)||[]).map(Ae);d(o),p(!1)}))}),[]),o.createElement("div",{className:hn},m?o.createElement(Jo,null):null!==c&&(c.length>0?c.map((e=>o.createElement(vn,{className:"post-card",key:e.id,post:e}))):o.createElement(wn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))};var En="toEutn7",Cn="drdisHs";const kn=e=>{var a,n,l,r,{post:s}=e,c=t(e,["post"]);const{data:{env:{togetherBasePath:d}}}=i(N);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},c,{className:`${En} ${(null==c?void 0:c.className)||""}`}),o.createElement(ua,{className:"card-author",avatar:null===(a=null==s?void 0:s.author)||void 0===a?void 0:a.avatar,name:(null===(n=null==s?void 0:s.author)||void 0===n?void 0:n.name)||(null===(l=null==s?void 0:s.author)||void 0===l?void 0:l.username),isAnonymous:Boolean(null==s?void 0:s.isAnonymous),subLine:o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(te,{href:`${window.location.origin}${d}/${null===(r=null==s?void 0:s.community)||void 0===r?void 0:r.slug}/${null==s?void 0:s.slug}`,className:Cn,rel:"noreferrer"},null==s?void 0:s.title)))};var Nn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const An=()=>{var t,a;const{t:n}=E(),{data:{locale:r,userInfo:c}}=i(N),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(en),[u,g]=l(),[v,h]=l([]),[b,f]=l(!1),w=null==c?void 0:c.id;s((()=>{w&&e(void 0,void 0,void 0,(function*(){var e;f(!0);const t=yield G(P(I.USER.LIST_QUESTION_NEED_REPLY,{_locale:r}),"GET"),a=[],o=Object.create({});((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.communities)||[]).filter((e=>((null==e?void 0:e.question)||[]).length>0)).map((e=>{o[e.id]=e.question.map(Ae),delete e.question,a.push(Pe(e))})),h(a),g(o),f(!1)}))}),[]);const x=({id:e,communityId:t})=>{if(e&&t&&u){const a=Object.assign(Object.assign({},u),{[t]:[...((null==u?void 0:u[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),g(a),p(Object.assign(Object.assign({},m),{total_question:o})),null==d||d(o)}};return o.createElement("div",{className:Nn.container},b?o.createElement(Jo,null):(null==m?void 0:m.total_question)>0?v.length>0&&o.createElement(y,{className:Nn.accordion,defaultValue:String((null===(a=v[null===(t=Object.keys(v))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles: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:o.createElement("div",{className:Nn.chevron},o.createElement(ae,{color:k.colors.gray600,size:20}))},v.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(y.Item,{key:e.id,value:String(e.id)},o.createElement(y.Control,null,o.createElement("div",{className:Nn.header},o.createElement("div",{className:Nn.headingIcon},o.createElement("img",{src:e.thumbnail,loading:"lazy"})),o.createElement("div",{className:Nn.heading},e.name))),o.createElement(y.Panel,null,o.createElement("div",{className:Nn.body},t.map((e=>o.createElement(kn,{className:"question-card",key:e.id,post:e,onSkip:x}))))))}))):o.createElement(wn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:me.getAssetPath("questions.svg")}))};var Tn="GA-zc-O",zn="A18McWD",Pn="IB049vj",In="_8I--vEV";const Sn=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(N),{authActionWrapper:r,authorProps:s}=i(en),c=`${window.location.origin}${l}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${Tn} ${t}`},o.createElement("div",{className:Pn},o.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":c,className:In,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(Rt,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(ua.MainText,{className:zn},null==e?void 0:e.title),o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null==e?void 0:e.createdTime))),o.createElement(zo,{className:"post-content-wrapper",description:null==e?void 0:e.description,mentions:null==e?void 0:e.mentions,maxChars:200,"data-testid":"Content of the Post"})))};var Ln="TSMHoEM";const Mn=()=>{const{t:t}=E(),{data:{locale:a}}=i(N),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(en),[m,p]=l(null),[u,g]=l(!1);return s((()=>{n&&e(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield z(P(I.USER.LIST_POST,{_locale:a,id:n,isAnonymous:0}),"GET"),o=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(Ae);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Ln},u?o.createElement(Jo,null):null!==m&&(m.length>0?m.map((e=>o.createElement(Sn,{className:"post-card",key:e.id,post:e}))):o.createElement(wn,{message:t("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:c&&t("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var jn="_4Vekw96",Bn="DIJdGcB",Fn="aQSt4-Q";const On=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Rn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var Vn,Dn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(Vn||(Vn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Dn||(Dn={}));const Un=a=>{var n,{authorProps:r,selectedTab:c,authActionWrapper:d,onSkipQuestion:m,onCloseFromPost:p,hideQuestionTab:u,hideAnswerTab:g,showSkipQuestionTag:v,rolesToShowQuestionsTab:h=["expert"],currentPageUrl:b}=a,f=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:y,userInfo:w,env:{isMarryBaby:x}}}=i(N),{t:C}=E(),k=null==r?void 0:r.role,A=null==w?void 0:w.role,T=String(null==r?void 0:r.userId),[S,L]=l(),[M,j]=l(!1),[B,F]=l(),O=(null==w?void 0:w._togetherUserId)===(null==r?void 0:r.userId),R=[...-1!==h.indexOf(k)?[{value:Vn.About,text:C("profilePanel.tabs.highlight"),content:o.createElement(un,{id:T,info:B}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:b}]:[],{value:Vn.Posts,text:C("profilePanel.tabs.posts"),content:o.createElement(Mn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...u||-1===h.indexOf(A)||(null==w?void 0:w._togetherUserId)!==(null==r?void 0:r.userId)?[]:[{value:Vn.Care,text:`${C("profilePanel.tabs.care")}`,content:o.createElement(An,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:b}],...g||-1===h.indexOf(k)?[]:[{value:Vn.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:o.createElement(xn,{id:T}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:b}]],[V,D]=l(null),[U,W]=l(null),H={value:String(U),dataList:V,onTabChange:e=>W(Number(e))},Z=null==R?void 0:R.filter((e=>null==e?void 0:e.hasCountResult));s((()=>{e(void 0,void 0,void 0,(function*(){var e,t,a,o,n,i,l,r,s,d;j(!0);const m=yield Promise.all([z(P(I.USER.DETAIL,{_locale:y,id:T}),"GET"),...Z.map((e=>z(P(I.USER.COUNT_TABS,{_locale:y,id:T,[e.keyOfCountApi]:1}),"GET")))]),[p]=m,u={data:null==p?void 0:p.data,experiences:((null===(t=null===(e=null==p?void 0:p.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(On),relatedPosts:((null===(a=null==p?void 0:p.data)||void 0===a?void 0:a.related_post)||[]).map((e=>Ie(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(Rn),awards:(null===(l=null===(i=null==p?void 0:p.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==p?void 0:p.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};1===(null==p?void 0:p.status)&&F(u);const g=(null==u?void 0:u.relatedPosts)||[],v=Object.keys(u.contact).map((e=>{var t;return""!==(null===(t=null==u?void 0:u.contact)||void 0===t?void 0:t[e])})),h=[...(null==u?void 0:u.experiences)||[],...(null==u?void 0:u.educations)||[],...(null==u?void 0:u.awards)||[]],b=g.length>0||v.length>0||h.length>0,f={},w=Z.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=m[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===n?void 0:n[e.keyOfResult])||0;return i>0?(f[e.keyOfResult]=i,e):-1!==[Vn.Care,Vn.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),x=R.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==w.indexOf(t.value)?t:void 0:t.value===Vn.About?b&&t:t})).filter(Boolean);D(x),W(c||(null===(d=null==x?void 0:x[0])||void 0===d?void 0:d.value)),L(f),j(!1)}))}),[]);const q=null==B?void 0:B.data;return o.createElement(en.Provider,{value:{isMarryBaby:x,siteType:x?"marryBaby":"helloSites",authorId:String((null==r?void 0:r.userId)||""),authActionWrapper:d,onSkipQuestion:m,info:B,authorProps:r,onCloseFromPost:p,countValues:S,setCountValues:L,isAuthorLogin:O,showSkipQuestionTag:v,currentPageUrl:b}},o.createElement("div",Object.assign({},f,{className:`${jn} ${(null==f?void 0:f.className)||""}`,"data-is-marrybaby":x}),M?o.createElement(Jo,null):o.createElement(o.Fragment,null,o.createElement(ua,Object.assign({},r,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==r?void 0:r.role)?(null==q?void 0:q.specialty)&&(null==q?void 0:q.organisation)&&o.createElement(ua.SubTextRow,null,(null==q?void 0:q.specialty)&&o.createElement(o.Fragment,null,o.createElement(ua.SubText,null,null==q?void 0:q.specialty),o.createElement(ua.SubDivider,null)),o.createElement(ua.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,C("profilePanel.joined")," ",pe(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===k&&o.createElement("div",{className:Bn,dangerouslySetInnerHTML:{__html:null===(n=null==B?void 0:B.data)||void 0===n?void 0:n.description}}),null!==V&&null!==U&&(V.length>0?o.createElement("div",{className:Fn},o.createElement(oe,Object.assign({},H))):o.createElement(wn,{message:C("profilePanel.emptyPostMess.content",{text:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""})})))))};var Wn=Object.freeze({__proto__:null,get TabName(){return Vn},get UserType(){return Dn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Un}),Hn="KsWg8i6",Zn="_9tS0EUN",qn="kyyRKlb",_n="-Uqqka-";const Gn=a=>{var{post:n,onSkip:r,btnText:s,currentPageUrl:c}=a,p=t(a,["post","onSkip","btnText","currentPageUrl"]);const{t:u}=E(),{data:{locale:g},action:{pushNotifications:v}}=i(N),[h,b]=l(!1),[f,y]=l(!1),x=m(),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;y(!0);const t=yield G(P(I.USER.SKIP_QUESTION,{_locale:g,id:null==n?void 0:n.id}),"PUT");1===(null==t?void 0:t.status)?(null==r||r({id:(null==n?void 0:n.id)||"",communityId:(null===(e=null==n?void 0:n.community)||void 0===e?void 0:e.id)||""}),b(!1),v({title:"",message:"Skip success",type:"success"})):v({title:"",message:null==t?void 0:t.messages,type:"danger"}),y(!1)}))),[]);return o.createElement(w,{width:327,withArrow:!0,shadow:"md",opened:h},o.createElement(w.Target,null,o.createElement("div",Object.assign({className:`${Hn} ${(null==p?void 0:p.className)||""}`,onClick:()=>b(!0)},p),s||u("profilePanel.questionNotClear"))),o.createElement(w.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:Zn},u("profilePanel.skipQuestion.heading")),o.createElement("div",{className:qn},u("profilePanel.skipQuestion.content")),o.createElement("div",{className:_n},o.createElement($,{size:"md",variant:"secondary",leftIcon:o.createElement(ne,{color:x.fn.primaryColor(),size:24}),onClick:()=>b(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement($,{variant:"primary",size:"md",leftIcon:o.createElement(ie,{color:"white",size:24}),onClick:C,loading:f,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":c,styles:()=>({leftIcon:{marginRight:0}})})))))};var Qn="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",Xn="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",Kn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",$n="data:image/svg+xml,%3csvg width='3' height='13' viewBox='0 0 3 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1.58326' cy='6.41663' r='1.25' transform='rotate(89.9997 1.58326 6.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='1.41663' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 1.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='11.4166' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 11.4166)' fill='%23595959'/%3e%3c/svg%3e",Yn="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",Jn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='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 ei=({authorEmail:t,onDeletePost:a,shareUrl:n,post:r,className:s="",popoverClassName:c="",onBookmark:d,onRemoveBookmark:m,onEditPost:p})=>{const{data:{locale:u,userInfo:g,togetherUserId:v,env:{isMarryBaby:h}},action:{pushNotifications:b}}=i(N),{t:f}=E(),[y,w]=l(!1),[x,C]=l(!1),[k,A]=l(!1),{authActionWrapper:T}=Xe(),z=t&&(null==g?void 0:g.email)&&t===String(null==g?void 0:g.email);return o.createElement("div",{className:s,onClick:e=>{e.preventDefault(),e.stopPropagation()}},k&&o.createElement(xo,{url:n,text:null==r?void 0:r.title,onClose:()=>A(!1)}),x&&o.createElement(go,{thumbnail:me.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:f("popup.deletePost.title"),description:f("popup.deletePost.description"),acceptText:f("popup.deletePost.accept"),cancelText:f("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){if((null==r?void 0:r.id)&&!y){w(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield G(P(I.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}w(!1)}})),onClose:()=>C(!1)}),o.createElement(xt,{className:c,toggleButtonContent:o.createElement("img",{src:h?Qn:$n,loading:"lazy"}),position:"bottom",align:"end",buttonProps:{isLoading:y},data:z?{isShowheader:!1,type:"list",list:[{icon:Yn,label:f("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:f("actionPopover.edit"),onClick:p},{icon:Jn,label:f("actionPopover.delete"),onClick:()=>{T((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Yn,label:f("morePopover.share"),onClick:()=>A(!0)},{icon:(null==r?void 0:r.bookmarked)?Xn:Kn,label:(null==r?void 0:r.bookmarked)?f("morePopover.unsavePost"):f("morePopover.savePost"),onClick:()=>{T((()=>e(void 0,void 0,void 0,(function*(){if((null==g?void 0:g.id)&&(null==r?void 0:r.id))if(null==r?void 0:r.bookmarked){const e=yield G(P(I.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(r.id)}});1===(null==e?void 0:e.status)?(b({title:"",message:"Removed saved post",type:"success",displayIcon:Kn}),m&&m()):b({title:"",message:"Remove failed",type:"danger",displayIcon:Kn})}else{const e=yield G(P(I.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:v||g.id,post_id:r.id}});1===(null==e?void 0:e.status)?(b({title:"",message:"Post saved",type:"success",displayIcon:Xn}),d&&d()):b({title:"",message:"Post saved failed",type:"danger",displayIcon:Kn})}}))))}},{icon:ko,label:f("morePopover.report"),subTree:{title:f("morePopover.report.title"),description:f("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(le).map((e=>({label:le[e].label,reason:le[e].reportReasonText,reasonValue:e}))).map((e=>({label:f(e.label),subTree:{title:f("morePopover.reportSubmit.title"),description:f("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>o.createElement(No,{reason:e.reasonValue,reasonText:f(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},ti=ue.div`
2638
2638
  position: relative;
2639
2639
  margin-bottom: 24px;
2640
2640
  background: white;
@@ -2865,7 +2865,7 @@ import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";impor
2865
2865
  width: 100%;
2866
2866
  height: 100%;
2867
2867
  }
2868
- `,gi=({categories:e})=>{const{t:t}=E(),{data:{locale:a,env:{isMarryBaby:n}}}=i(N),l=qe(a,n);return o.createElement(si,null,o.createElement(ci,null,o.createElement(L,{tag:"h6",as:"h5"},t("cardReply.recommentCategories.heading"))),o.createElement(di,null,e.map((e=>o.createElement(mi,{href:l+e.permalink,key:String(e.termId),target:"_blank"},o.createElement(pi,null,o.createElement(ui,null,o.createElement("img",{src:e.featureImage||ce.getAssetPath(n?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),o.createElement(Le,{size:"s3",type:"bold"},e.displayName)),o.createElement(j.ArrowRight,{size:20,color:k.colors.gray400}))))))},vi=ue.a`
2868
+ `,gi=({categories:e})=>{const{t:t}=E(),{data:{locale:a,env:{isMarryBaby:n}}}=i(N),l=qe(a,n);return o.createElement(si,null,o.createElement(ci,null,o.createElement(L,{tag:"h6",as:"h5"},t("cardReply.recommentCategories.heading"))),o.createElement(di,null,e.map((e=>o.createElement(mi,{href:l+e.permalink,key:String(e.termId),target:"_blank"},o.createElement(pi,null,o.createElement(ui,null,o.createElement("img",{src:e.featureImage||me.getAssetPath(n?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),o.createElement(Le,{size:"s3",type:"bold"},e.displayName)),o.createElement(j.ArrowRight,{size:20,color:k.colors.gray400}))))))},vi=ue.a`
2869
2869
  padding: 12px 0;
2870
2870
  display: flex;
2871
2871
  flex-direction: column;
@@ -2876,7 +2876,7 @@ import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";impor
2876
2876
  &:first-child {
2877
2877
  border-top: 0;
2878
2878
  }
2879
- `,hi=ue.div``,bi=({postTitle:e,articleReviewed:t,modifiedTime:a,href:n})=>{const{t:i}=E(),l=(()=>{const{expert:e,editor:a,is_author:o}=t;if(e){const t={name:e.display_name,role:"expert",avatar:e.avatar};return o?Object.assign({title:i("articleAuthor.title.written-by")},t):"expert"===e.role?Object.assign({title:i("articleAuthor.title.expert")},t):Object.assign({title:i("articleAuthor.title.medical")},t)}if(a)return{title:i("articleAuthor.title.fact-check"),name:a.display_name,avatar:a.avatar}})();return o.createElement(vi,{href:n,title:e,target:"_blank"},o.createElement(Le,{size:"s3",as:"h5",type:"bold"},e),o.createElement(hi,null,o.createElement(ua,{avatar:null==l?void 0:l.avatar,avatarProps:{size:32},name:null==l?void 0:l.name,role:null==l?void 0:l.role,hideBackground:!0},o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null==l?void 0:l.title," ",o.createElement("span",{style:{color:k.colors.gray800}},null==l?void 0:l.name)),o.createElement(ua.SubDivider,null),o.createElement(ua.SubText,null,a)))))};var fi="F4mmgSy",yi="A7QrQ7A";const wi=a=>{var{listUrl:n,categorySlug:i,editMode:r,onListChange:c,isMarryBaby:d}=a,m=t(a,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:p}=E(),[u,g]=l(n||[]),[v,h]=l([]),[b,f]=l([]),[w,x]=l(!1);s((()=>{e(void 0,void 0,void 0,(function*(){x(!0);const e=u.map((e=>{const t=new URL(e),a=String(t.pathname).split("/").filter((e=>""!=e));return{isMarrySite:-1!==t.origin.search("marrybaby.vn"),path:a[a.length-1],href:e}})),t=[...e.map((e=>z(e.isMarrySite?re(H.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):W(H.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],a=yield Promise.all(t);h(a.map(((t,a)=>{var o,n;return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.post)&&Object.assign(Object.assign({},Ie(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.post)),{href:e[a].href})})).filter(Boolean)),x(!1)}))}),[]),s((()=>{0===(null==v?void 0:v.length)&&i&&e(void 0,void 0,void 0,(function*(){var e;const t=yield z(d?re(H.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0):W(H.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0),"GET");(null==t?void 0:t.data)&&f([Se(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[v]);return s((()=>{null==c||c(u)}),[u]),o.createElement("div",Object.assign({},m),!r&&o.createElement(ni,null,o.createElement("img",{className:"icon",src:ce.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),o.createElement(Le,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:p("cardReply.disclaimer")}})),w?o.createElement(Ye,null):v.length>0||r?o.createElement(oi,null,o.createElement(y,{defaultValue:"accordion",styles:{control:{border:`1px solid ${k.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${k.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:o.createElement("div",{className:yi},o.createElement(ae,{color:k.colors.gray600,size:20}))},o.createElement(y.Item,{value:"accordion"},o.createElement(y.Control,null,o.createElement("div",{className:fi},o.createElement(L,{as:"h4",tag:"h6"},p("cardReply.source")))),o.createElement(y.Panel,null,o.createElement(li,null,(v||[]).map(((e,t)=>o.createElement(ii,{key:String(t)},"object"==typeof e?o.createElement(bi,Object.assign({},e)):o.createElement(ri,null,o.createElement(Me,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{g((a=>{const o=[...a];return o[t]=e,o})),h((a=>{const o=[...a];return o[t]=e,o}))}})),r&&o.createElement(Fe,{size:"md",color:"transparent",icon:o.createElement(j.Trash,null),onClick:()=>(e=>{g((t=>{const a=[...t];return a.splice(e,1),a})),h((t=>{const a=[...t];return a.splice(e,1),a}))})(t)})))),r&&o.createElement(Fe,{className:"add-link",color:"transparent",size:"md",icon:o.createElement(j.Plus,{color:k.colors.primaryBase,size:18}),onClick:()=>{g((e=>[...e,""])),h((e=>[...e,""]))}},"Add source")))))):o.createElement(gi,{categories:b}))},xi=ue.div`
2879
+ `,hi=ue.div``,bi=({postTitle:e,articleReviewed:t,modifiedTime:a,href:n})=>{const{t:i}=E(),l=(()=>{const{expert:e,editor:a,is_author:o}=t;if(e){const t={name:e.display_name,role:"expert",avatar:e.avatar};return o?Object.assign({title:i("articleAuthor.title.written-by")},t):"expert"===e.role?Object.assign({title:i("articleAuthor.title.expert")},t):Object.assign({title:i("articleAuthor.title.medical")},t)}if(a)return{title:i("articleAuthor.title.fact-check"),name:a.display_name,avatar:a.avatar}})();return o.createElement(vi,{href:n,title:e,target:"_blank"},o.createElement(Le,{size:"s3",as:"h5",type:"bold"},e),o.createElement(hi,null,o.createElement(ua,{avatar:null==l?void 0:l.avatar,avatarProps:{size:32},name:null==l?void 0:l.name,role:null==l?void 0:l.role,hideBackground:!0},o.createElement(ua.SubTextRow,null,o.createElement(ua.SubText,null,null==l?void 0:l.title," ",o.createElement("span",{style:{color:k.colors.gray800}},null==l?void 0:l.name)),o.createElement(ua.SubDivider,null),o.createElement(ua.SubText,null,a)))))};var fi="F4mmgSy",yi="A7QrQ7A";const wi=a=>{var{listUrl:n,categorySlug:i,editMode:r,onListChange:c,isMarryBaby:d}=a,m=t(a,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:p}=E(),[u,g]=l(n||[]),[v,h]=l([]),[b,f]=l([]),[w,x]=l(!1);s((()=>{e(void 0,void 0,void 0,(function*(){x(!0);const e=u.map((e=>{const t=new URL(e),a=String(t.pathname).split("/").filter((e=>""!=e));return{isMarrySite:-1!==t.origin.search("marrybaby.vn"),path:a[a.length-1],href:e}})),t=[...e.map((e=>z(e.isMarrySite?re(H.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):W(H.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],a=yield Promise.all(t);h(a.map(((t,a)=>{var o,n;return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.post)&&Object.assign(Object.assign({},Ie(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.post)),{href:e[a].href})})).filter(Boolean)),x(!1)}))}),[]),s((()=>{0===(null==v?void 0:v.length)&&i&&e(void 0,void 0,void 0,(function*(){var e;const t=yield z(d?re(H.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0):W(H.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0),"GET");(null==t?void 0:t.data)&&f([Se(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[v]);return s((()=>{null==c||c(u)}),[u]),o.createElement("div",Object.assign({},m),!r&&o.createElement(ni,null,o.createElement("img",{className:"icon",src:me.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),o.createElement(Le,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:p("cardReply.disclaimer")}})),w?o.createElement(Ye,null):v.length>0||r?o.createElement(oi,null,o.createElement(y,{defaultValue:"accordion",styles:{control:{border:`1px solid ${k.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${k.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:o.createElement("div",{className:yi},o.createElement(ae,{color:k.colors.gray600,size:20}))},o.createElement(y.Item,{value:"accordion"},o.createElement(y.Control,null,o.createElement("div",{className:fi},o.createElement(L,{as:"h4",tag:"h6"},p("cardReply.source")))),o.createElement(y.Panel,null,o.createElement(li,null,(v||[]).map(((e,t)=>o.createElement(ii,{key:String(t)},"object"==typeof e?o.createElement(bi,Object.assign({},e)):o.createElement(ri,null,o.createElement(Me,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{g((a=>{const o=[...a];return o[t]=e,o})),h((a=>{const o=[...a];return o[t]=e,o}))}})),r&&o.createElement(Fe,{size:"md",color:"transparent",icon:o.createElement(j.Trash,null),onClick:()=>(e=>{g((t=>{const a=[...t];return a.splice(e,1),a})),h((t=>{const a=[...t];return a.splice(e,1),a}))})(t)})))),r&&o.createElement(Fe,{className:"add-link",color:"transparent",size:"md",icon:o.createElement(j.Plus,{color:k.colors.primaryBase,size:18}),onClick:()=>{g((e=>[...e,""])),h((e=>[...e,""]))}},"Add source")))))):o.createElement(gi,{categories:b}))},xi=ue.div`
2880
2880
  position: relative;
2881
2881
  margin-bottom: 0;
2882
2882
  background: white;
@@ -3075,4 +3075,4 @@ import{a as e,_ as t}from"./tslib.es6-fa2b0040.js";import*as a from"react";impor
3075
3075
  `,Ei=ue(wi)`
3076
3076
  margin-top: 12px;
3077
3077
  padding: 0.5rem 1rem 1rem;
3078
- `;var Ci="-dzIuHr";const ki=({userId:e,avatar:t,name:a,role:n,title:i,className:r})=>{const{t:s}=E(),[c,d]=l(!1);return o.createElement(o.Fragment,null,o.createElement(Fe,{className:`${Ci} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(j.Endorse,{isSolid:!0,size:18,color:k.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(ma,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Un,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))};const Ni=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:v,hasQuickBookingEnable:h,handleMakeAppointment:b,cardAuthorProps:f,maxChars:y=600,disableShortenContent:w})=>{var x,C,k,A,T,S,L,M,j,B,F,V,D;const{data:{locale:U,userInfo:W,env:{isMarryBaby:H}}}=i(N),{t:Z}=E(),[q,_]=l(n||null),{id:Q,countLikes:X,content:K,replies:$=[],images:Y=[],author:J,liked:ee,link:te,mentionedUser:ae,mentions:oe}=q,{text:ne,replyingTo:ie}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})(K),{authActionWrapper:le}=Xe({_joinCommunityIds:[null===(x=null==u?void 0:u.community)||void 0===x?void 0:x.id],_joinTopicIds:null===(C=null==u?void 0:u.topics)||void 0===C?void 0:C.map((e=>e.id))}),[re,se]=l(4),ce=!!(null==W?void 0:W.id)&&(null==$?void 0:$.some((e=>e.author.id===W.id))),de=e=>{_((t=>{if(!t.replies.find((t=>t.id===e.id))){t.replies.unshift(e);const a=Object.assign(Object.assign({},t),{replies:t.replies.slice(),countReplies:t.countReplies+1});return v&&v(a),a}return t}))},[pe,ue]=l(!1),ge=c((()=>"comment"===r&&$&&0!=$.length?$.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):$),[r,$]),ve=(null==$?void 0:$.length)||0,he=String(null==J?void 0:J.email)&&(null==W?void 0:W.email)&&String(null==J?void 0:J.email)===String(null==W?void 0:W.email),be=(null==J?void 0:J.name)||(null==J?void 0:J.username)||"",fe=(null==J?void 0:J.username)||(null==J?void 0:J.name)||"",ye=null==J?void 0:J.avatar,we=(null==u?void 0:u.isAnonymous)||null==J?void 0:J.role,xe=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(k=null==u?void 0:u.author)||void 0===k?void 0:k.id)||0,name:Z("cardPost.anonymous")}]:[],...oe||[]],[Ee,Ce]=l(null),[Ne,Ae]=l(null);s((()=>{if(null==J?void 0:J.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:me[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ce(null==a?void 0:a._data.branch)}));t(J.hospitalId)}if(null==J?void 0:J.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_DOCTOR_INFO,{doctorId:t,website_url:me[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Ae(null==a?void 0:a._data.doctor)}));t(J.doctorId)}}),[J.hospitalId,J.doctorId]);const Te=(null==Ne?void 0:Ne.valid_outpatient)||(null==Ne?void 0:Ne.valid_telemedicine),ze=((null==Ee?void 0:Ee.total_available_service)||(null==Ee?void 0:Ee.total_available_doctor))>0,Pe=h&&(Te||ze),Ie="chatbot"===(null===(A=null==q?void 0:q.author)||void 0===A?void 0:A.type);return o.createElement(Qe,{defaultParams:{_joinCommunityIds:[null===(T=null==u?void 0:u.community)||void 0===T?void 0:T.id],_joinTopicIds:null===(S=null==u?void 0:u.topics)||void 0===S?void 0:S.map((e=>e.id))}},o.createElement(xi,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":H,"data-has-booking":Pe},"reply"===r&&o.createElement(ke,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(ua,Object.assign({avatar:ye,name:be,username:fe,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(he?"with-popover":""),type:r,userId:null==J?void 0:J.id,role:we,expertId:null==J?void 0:J.partnerId,title:null==J?void 0:J.title,doctorId:null==J?void 0:J.doctorId,hospitalId:null==J?void 0:J.hospitalId,hasQuickBooking:Pe,handleMakeAppointment:b,isAnonymous:(null==q?void 0:q.isAnonymous)||Boolean(null==u?void 0:u.isAnonymous)&&(null===(L=null==u?void 0:u.author)||void 0===L?void 0:L.username)===(null==J?void 0:J.username),hideBackground:Ie,userType:null==J?void 0:J.type},f)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&o.createElement(ki,{title:null===(M=null==q?void 0:q.userVerify)||void 0===M?void 0:M.title,name:null===(j=null==q?void 0:q.userVerify)||void 0===j?void 0:j.name,userId:null===(B=null==q?void 0:q.userVerify)||void 0===B?void 0:B.id,role:null===(F=null==q?void 0:q.userVerify)||void 0===F?void 0:F.role,avatar:null===(V=null==q?void 0:q.userVerify)||void 0===V?void 0:V.avatar,className:"verify-tag"})),o.createElement(zo,{className:"post-content-wrapper",replyingTo:ie,mentionedUser:ae,description:ne,mentions:xe,maxChars:y,disableShortenContent:w}),o.createElement("span",null),o.createElement("span",null),Y&&Y.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Xo,{images:Y,authorName:null==J?void 0:J.username})):null,Y&&0!==Y.length||!te?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(et,{url:te})),"most-engaging"!==r?o.createElement(o.Fragment,null,Ie&&o.createElement(Ei,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),o.createElement(pt,{type:lt.reply,loveCount:X,replyCount:ve,className:"post-reaction",liked:ee,isReplied:ce,hideCommentIcon:"reply"===r||Ie,hasShare:!1,onCommentClick:()=>le((()=>ue((e=>!e)))),onCommentCountClick:()=>le((()=>{ue(!0)})),onLikeClick:()=>le((()=>e(void 0,void 0,void 0,(function*(){if(Q){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return G(P(a?I.COMMENT.LIKE:I.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:Q,setLike:!ee,locale:U});1===t.status&&_((e=>Object.assign(Object.assign({},e),{liked:!ee,countLikes:e.countLikes+(ee?-1:1)})))}}))))}),pe&&o.createElement(bo,{replyingId:m||q.id,replyToName:be,isReply:!0,onClose:()=>ue(!1),onPostSuccess:e=>{"reply"===r?p&&p(e):de(e)},post:u,replyingUser:J}),"comment"===r&&$&&$.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(D=null==ge?void 0:ge.slice(0,re))||void 0===D?void 0:D.map((e=>o.createElement(Ni,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:Q,onPostCommentSuccess:de,post:u,onDeleteComment:()=>{_((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:b,hasQuickBookingEnable:h}))),ve>re&&o.createElement(o.Fragment,null,o.createElement(ke,{className:"top-divider",type:"solid"}),o.createElement(Fe,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>se((e=>e+4))},Z("comment.seeMoreReplies",{count:ve-re}),o.createElement("img",{className:"chevron-right",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12L10 8L6 4' stroke='%232D87F3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"})))):null):null,he&&o.createElement(ai,{onDeleteComment:g,className:"popover",commentId:q.id})))},Ai=(t,a)=>e(void 0,void 0,void 0,(function*(){var e,o,n;const i=yield se(P(I.COMMENT.LIST,{postId:t,_locale:a,sort:"popularity",perPage:1,withoutReply:1}),"GET");return null===(n=null===(o=null===(e=null==i?void 0:i.data)||void 0===e?void 0:e.comments)||void 0===o?void 0:o.map(ze))||void 0===n?void 0:n[0]})),Ti=({className:t,style:a,hideViewMoreComment:n,showMostEngaging:r,onCommentClick:c,onCommentCountClick:d,onMostEngagingCommentClick:m,onPostCommentSuccess:p,disableCardLink:u,disableShortenContent:g,onDeletePost:v,onEditPost:h,post:b,mostEngagingComment:f,onDeleteComment:y,showInputComment:w,InlineCommentsComponent:x,hasQuickBookingEnable:k,handleMakeAppointment:A,cardAuthorProps:T})=>{const[M,j]=l(b),[F,D]=l(!1),[U,W]=l(f),{community:H,topics:Z,author:q,slug:_,isPin:Q,liked:X,photos:K,mentions:$,title:Y,description:J,previewUrl:ee,likesCount:te,commentsCount:ae,id:oe,commented:ne}=M,{data:{locale:ie,env:{isMarryBaby:le,togetherBasePath:re}},action:{pushNotifications:se}}=i(N),{t:ce}=E(),[de,me]=l(w),pe=`${re}/${(null==H?void 0:H.slug)||"_"}/${_||""}`,ue=`${B(ie)}${pe}`,{authActionWrapper:ge}=Xe((null==H?void 0:H.slug)?{_joinCommunityIds:[H.id],_joinTopicIds:null==Z?void 0:Z.map((e=>e.id))}:void 0),[ve,he]=l(!1);s((()=>{me(w)}),[w]);const be=(null==q?void 0:q.name)||(null==q?void 0:q.username)||"",fe=(null==q?void 0:q.username)||(null==q?void 0:q.name)||"",ye=null==q?void 0:q.avatar,we=(null==M?void 0:M.isAnonymous)||null==q?void 0:q.role,[xe,Ee]=l(null),[Ce,ke]=l(null);s((()=>{if(null==q?void 0:q.hospitalId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:V[ie]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ee(null==a?void 0:a._data.branch)})))(q.hospitalId)}if(null==q?void 0:q.doctorId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_DOCTOR_INFO,{doctorId:t,website_url:V[ie]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&ke(null==a?void 0:a._data.doctor)})))(q.doctorId)}}),[q.hospitalId,q.doctorId]);const Ne=(null==Ce?void 0:Ce.valid_outpatient)||(null==Ce?void 0:Ce.valid_telemedicine),Ae=((null==xe?void 0:xe.total_available_service)||(null==xe?void 0:xe.total_available_doctor))>0,Te=k&&(Ne||Ae);s((()=>{e(void 0,void 0,void 0,(function*(){if(oe&&ae&&r&&!(null==f?void 0:f.id)){const e=yield Ai(oe,ie);W(e)}}))}),[oe,ie,ae,r,null==f?void 0:f.id]),s((()=>{W(f)}),[null==f?void 0:f.id]);const ze=t=>e(void 0,void 0,void 0,(function*(){if(ae>1&&(null==U?void 0:U.id)&&(null==U?void 0:U.id)===(null==t?void 0:t.id)){const e=yield Ai(oe,ie);W(e)}j((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),y&&y(t)}));return o.createElement(Qe,{defaultParams:(null==H?void 0:H.slug)?{_joinCommunityIds:[H.id],_joinTopicIds:null==Z?void 0:Z.map((e=>e.id))}:void 0},F&&o.createElement(xo,{url:ue,avatar:S,text:Y,onClose:()=>D(!1)}),o.createElement(ti,{className:t,style:a,"data-is-marrybaby":le},Q?o.createElement(bt,{className:"post-pin"}):null,o.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},o.createElement(ua,Object.assign({avatar:ye,name:be,username:fe,url:u?void 0:pe,community:H,timeText:null==M?void 0:M.createdTime,className:"post-author",role:we,userId:null==q?void 0:q.id,expertId:null==q?void 0:q.partnerId,doctorId:null==q?void 0:q.doctorId,hospitalId:null==q?void 0:q.hospitalId,title:null==q?void 0:q.title,hasQuickBooking:Te,handleMakeAppointment:A,"data-testid":"name",isAnonymous:!!(null==M?void 0:M.isAnonymous),extendEle:o.createElement(ei,{authorEmail:String(null==q?void 0:q.email),onDeletePost:v,shareUrl:ue,post:M,className:"popover",onEditPost:h})},T))),o.createElement("a",{href:u?void 0:pe,className:"post-content-link-wrapper"},Y&&o.createElement(L,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},C(Y)),o.createElement(zo,{className:"post-content-wrapper",description:J,disableShortenContent:g,mentions:$,"data-testid":"Content of the Post"})),o.createElement("span",null),o.createElement("span",null),o.createElement("div",{key:"tag-topic"},Z&&Z.length>0?o.createElement(gt,{topics:Z,className:"post-topics"}):null),o.createElement("div",{key:"social-preview"},(null==M?void 0:M.introUrl)?o.createElement("div",{className:"social-preview-wrapper "+((null==K?void 0:K.length)?"has-image":"")},o.createElement($o,{url:M.introUrl,image:M.bannerImage})):null),o.createElement("div",{key:"image-preview"},(null==K?void 0:K.length)?o.createElement("div",{className:"image-preview-wrapper"},o.createElement(Xo,{images:K,authorName:null==q?void 0:q.name})):null),o.createElement("div",{key:"link-preview"},(null==M?void 0:M.introUrl)||(null==K?void 0:K.length)||!(null==ee?void 0:ee.url)?null:o.createElement("div",{className:"link-preview-wrapper"},o.createElement(et,{title:ee.title,url:ee.url,image:ee.image}))),o.createElement(pt,{isMarryBaby:le,type:lt.post,loveCount:te,replyCount:ae,className:"post-reaction "+((null==K?void 0:K.length)||(null==ee?void 0:ee.url)?"hide-top-border":""),liked:ve?!X:X,isReplied:ne,onCommentClick:()=>ge((()=>{c?c():me((e=>!e))})),onCommentCountClick:()=>{ge((()=>{le?me(!0):d?d():!u&&(window.location.href=pe)}))},onShareClick:()=>{D(!0)},onLikeClick:()=>e(void 0,void 0,void 0,(function*(){if(oe&&!ve){he(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield G(P(I.POST.LIKE,{id:t,_locale:a}),"GET")})))({id:oe,locale:ie});1!==(null==t?void 0:t.status)?se(ga(ce)):j((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){se(ga(ce))}he(!1)}})),showingMostEngaging:!(!r||!(null==U?void 0:U.id))}),de&&o.createElement(bo,{isMainCmt:!w,onClose:()=>me(!1),onPostSuccess:e=>{0!==ae||(null==U?void 0:U.id)||W(e),j((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount+1,commented:!0}))),p&&p(e)},post:M}),r&&(null==U?void 0:U.id)?o.createElement("div",{className:"most-engaging-wrapper",onClick:e=>{m?(e.stopPropagation(),m()):window.location.href=pe}},o.createElement(Ni,{hasQuickBookingEnable:k,handleMakeAppointment:A,comment:U,post:M,onDeleteComment:()=>{ze&&ze(U)},className:"most-engaging-comment",type:"most-engaging",key:U.id,cardAuthorProps:T}),ae>1&&!n&&o.createElement(Fe,{className:"see-more-comments",color:"ghost",size:"md"},ce("comment.seeMoreComments",{count:ae-1}))):null,x))};var zi=Object.freeze({__proto__:null});export{Vn as A,Gn as B,et as C,Ti as D,ei as E,Ni as F,ai as G,wt as H,bo as I,wi as J,_e as K,Ye as L,go as P,xo as S,Ge as T,ki as V,Qe as a,pt as b,gt as c,ht as d,bt as e,kt as f,ua as g,lo as h,Ja as i,ao as j,ta as k,Gt as l,la as m,no as n,uo as o,No as p,wo as q,zo as r,Fo as s,zi as t,Xe as u,Ho as v,Xo as w,$o as x,ma as y,Un as z};
3078
+ `;var Ci="-dzIuHr";const ki=({userId:e,avatar:t,name:a,role:n,title:i,className:r})=>{const{t:s}=E(),[c,d]=l(!1);return o.createElement(o.Fragment,null,o.createElement(Fe,{className:`${Ci} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(j.Endorse,{isSolid:!0,size:18,color:k.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(ma,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Un,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))};const Ni=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:v,hasQuickBookingEnable:h,handleMakeAppointment:b,cardAuthorProps:f,maxChars:y=600,disableShortenContent:w})=>{var x,C,k,A,T,S,L,M,j,B,F,V,D;const{data:{locale:U,userInfo:W,env:{isMarryBaby:H}}}=i(N),{t:Z}=E(),[q,_]=l(n||null),{id:Q,countLikes:X,content:K,replies:$=[],images:Y=[],author:J,liked:ee,link:te,mentionedUser:ae,mentions:oe}=q,{text:ne,replyingTo:ie}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:a}}catch(e){}return{text:""}})(K),{authActionWrapper:le}=Xe({_joinCommunityIds:[null===(x=null==u?void 0:u.community)||void 0===x?void 0:x.id],_joinTopicIds:null===(C=null==u?void 0:u.topics)||void 0===C?void 0:C.map((e=>e.id))}),[re,se]=l(4),ce=!!(null==W?void 0:W.id)&&(null==$?void 0:$.some((e=>e.author.id===W.id))),me=e=>{_((t=>{if(!t.replies.find((t=>t.id===e.id))){t.replies.unshift(e);const a=Object.assign(Object.assign({},t),{replies:t.replies.slice(),countReplies:t.countReplies+1});return v&&v(a),a}return t}))},[pe,ue]=l(!1),ge=c((()=>"comment"===r&&$&&0!=$.length?$.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):$),[r,$]),ve=(null==$?void 0:$.length)||0,he=String(null==J?void 0:J.email)&&(null==W?void 0:W.email)&&String(null==J?void 0:J.email)===String(null==W?void 0:W.email),be=(null==J?void 0:J.name)||(null==J?void 0:J.username)||"",fe=(null==J?void 0:J.username)||(null==J?void 0:J.name)||"",ye=null==J?void 0:J.avatar,we=(null==u?void 0:u.isAnonymous)||null==J?void 0:J.role,xe=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(k=null==u?void 0:u.author)||void 0===k?void 0:k.id)||0,name:Z("cardPost.anonymous")}]:[],...oe||[]],[Ee,Ce]=l(null),[Ne,Ae]=l(null);s((()=>{if(null==J?void 0:J.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:de[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ce(null==a?void 0:a._data.branch)}));t(J.hospitalId)}if(null==J?void 0:J.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_DOCTOR_INFO,{doctorId:t,website_url:de[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Ae(null==a?void 0:a._data.doctor)}));t(J.doctorId)}}),[J.hospitalId,J.doctorId]);const Te=(null==Ne?void 0:Ne.valid_outpatient)||(null==Ne?void 0:Ne.valid_telemedicine),ze=((null==Ee?void 0:Ee.total_available_service)||(null==Ee?void 0:Ee.total_available_doctor))>0,Pe=h&&(Te||ze),Ie="chatbot"===(null===(A=null==q?void 0:q.author)||void 0===A?void 0:A.type);return o.createElement(Qe,{defaultParams:{_joinCommunityIds:[null===(T=null==u?void 0:u.community)||void 0===T?void 0:T.id],_joinTopicIds:null===(S=null==u?void 0:u.topics)||void 0===S?void 0:S.map((e=>e.id))}},o.createElement(xi,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":H,"data-has-booking":Pe},"reply"===r&&o.createElement(ke,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(ua,Object.assign({avatar:ye,name:be,username:fe,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(he?"with-popover":""),type:r,userId:null==J?void 0:J.id,role:we,expertId:null==J?void 0:J.partnerId,title:null==J?void 0:J.title,doctorId:null==J?void 0:J.doctorId,hospitalId:null==J?void 0:J.hospitalId,hasQuickBooking:Pe,handleMakeAppointment:b,isAnonymous:(null==q?void 0:q.isAnonymous)||Boolean(null==u?void 0:u.isAnonymous)&&(null===(L=null==u?void 0:u.author)||void 0===L?void 0:L.username)===(null==J?void 0:J.username),hideBackground:Ie,userType:null==J?void 0:J.type},f)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&o.createElement(ki,{title:null===(M=null==q?void 0:q.userVerify)||void 0===M?void 0:M.title,name:null===(j=null==q?void 0:q.userVerify)||void 0===j?void 0:j.name,userId:null===(B=null==q?void 0:q.userVerify)||void 0===B?void 0:B.id,role:null===(F=null==q?void 0:q.userVerify)||void 0===F?void 0:F.role,avatar:null===(V=null==q?void 0:q.userVerify)||void 0===V?void 0:V.avatar,className:"verify-tag"})),o.createElement(zo,{className:"post-content-wrapper",replyingTo:ie,mentionedUser:ae,description:ne,mentions:xe,maxChars:y,disableShortenContent:w}),o.createElement("span",null),o.createElement("span",null),Y&&Y.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Xo,{images:Y,authorName:null==J?void 0:J.username})):null,Y&&0!==Y.length||!te?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(et,{url:te})),"most-engaging"!==r?o.createElement(o.Fragment,null,Ie&&o.createElement(Ei,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),o.createElement(pt,{type:lt.reply,loveCount:X,replyCount:ve,className:"post-reaction",liked:ee,isReplied:ce,hideCommentIcon:"reply"===r||Ie,hasShare:!1,onCommentClick:()=>le((()=>ue((e=>!e)))),onCommentCountClick:()=>le((()=>{ue(!0)})),onLikeClick:()=>le((()=>e(void 0,void 0,void 0,(function*(){if(Q){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return G(P(a?I.COMMENT.LIKE:I.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:Q,setLike:!ee,locale:U});1===t.status&&_((e=>Object.assign(Object.assign({},e),{liked:!ee,countLikes:e.countLikes+(ee?-1:1)})))}}))))}),pe&&o.createElement(bo,{replyingId:m||q.id,replyToName:be,isReply:!0,onClose:()=>ue(!1),onPostSuccess:e=>{"reply"===r?p&&p(e):me(e)},post:u,replyingUser:J}),"comment"===r&&$&&$.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(D=null==ge?void 0:ge.slice(0,re))||void 0===D?void 0:D.map((e=>o.createElement(Ni,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:Q,onPostCommentSuccess:me,post:u,onDeleteComment:()=>{_((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:b,hasQuickBookingEnable:h}))),ve>re&&o.createElement(o.Fragment,null,o.createElement(ke,{className:"top-divider",type:"solid"}),o.createElement(Fe,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>se((e=>e+4))},Z("comment.seeMoreReplies",{count:ve-re}),o.createElement("img",{className:"chevron-right",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12L10 8L6 4' stroke='%232D87F3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"})))):null):null,he&&o.createElement(ai,{onDeleteComment:g,className:"popover",commentId:q.id})))},Ai=(t,a)=>e(void 0,void 0,void 0,(function*(){var e,o,n;const i=yield se(P(I.COMMENT.LIST,{postId:t,_locale:a,sort:"popularity",perPage:1,withoutReply:1}),"GET");return null===(n=null===(o=null===(e=null==i?void 0:i.data)||void 0===e?void 0:e.comments)||void 0===o?void 0:o.map(ze))||void 0===n?void 0:n[0]})),Ti=({className:t,style:a,hideViewMoreComment:n,showMostEngaging:r,onCommentClick:c,onCommentCountClick:d,onMostEngagingCommentClick:m,onPostCommentSuccess:p,disableCardLink:u,disableShortenContent:g,onDeletePost:v,onEditPost:h,post:b,mostEngagingComment:f,onDeleteComment:y,showInputComment:w,InlineCommentsComponent:x,hasQuickBookingEnable:k,handleMakeAppointment:A,cardAuthorProps:T})=>{const[M,j]=l(b),[F,D]=l(!1),[U,W]=l(f),{community:H,topics:Z,author:q,slug:_,isPin:Q,liked:X,photos:K,mentions:$,title:Y,description:J,previewUrl:ee,likesCount:te,commentsCount:ae,id:oe,commented:ne}=M,{data:{locale:ie,env:{isMarryBaby:le,togetherBasePath:re}},action:{pushNotifications:se}}=i(N),{t:ce}=E(),[de,me]=l(w),pe=`${re}/${(null==H?void 0:H.slug)||"_"}/${_||""}`,ue=`${B(ie)}${pe}`,{authActionWrapper:ge}=Xe((null==H?void 0:H.slug)?{_joinCommunityIds:[H.id],_joinTopicIds:null==Z?void 0:Z.map((e=>e.id))}:void 0),[ve,he]=l(!1);s((()=>{me(w)}),[w]);const be=(null==q?void 0:q.name)||(null==q?void 0:q.username)||"",fe=(null==q?void 0:q.username)||(null==q?void 0:q.name)||"",ye=null==q?void 0:q.avatar,we=(null==M?void 0:M.isAnonymous)||null==q?void 0:q.role,[xe,Ee]=l(null),[Ce,ke]=l(null);s((()=>{if(null==q?void 0:q.hospitalId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:V[ie]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ee(null==a?void 0:a._data.branch)})))(q.hospitalId)}if(null==q?void 0:q.doctorId){(t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield z(O(R.GET_DOCTOR_INFO,{doctorId:t,website_url:V[ie]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&ke(null==a?void 0:a._data.doctor)})))(q.doctorId)}}),[q.hospitalId,q.doctorId]);const Ne=(null==Ce?void 0:Ce.valid_outpatient)||(null==Ce?void 0:Ce.valid_telemedicine),Ae=((null==xe?void 0:xe.total_available_service)||(null==xe?void 0:xe.total_available_doctor))>0,Te=k&&(Ne||Ae);s((()=>{e(void 0,void 0,void 0,(function*(){if(oe&&ae&&r&&!(null==f?void 0:f.id)){const e=yield Ai(oe,ie);W(e)}}))}),[oe,ie,ae,r,null==f?void 0:f.id]),s((()=>{W(f)}),[null==f?void 0:f.id]);const ze=t=>e(void 0,void 0,void 0,(function*(){if(ae>1&&(null==U?void 0:U.id)&&(null==U?void 0:U.id)===(null==t?void 0:t.id)){const e=yield Ai(oe,ie);W(e)}j((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),y&&y(t)}));return o.createElement(Qe,{defaultParams:(null==H?void 0:H.slug)?{_joinCommunityIds:[H.id],_joinTopicIds:null==Z?void 0:Z.map((e=>e.id))}:void 0},F&&o.createElement(xo,{url:ue,avatar:S,text:Y,onClose:()=>D(!1)}),o.createElement(ti,{className:t,style:a,"data-is-marrybaby":le},Q?o.createElement(bt,{className:"post-pin"}):null,o.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},o.createElement(ua,Object.assign({avatar:ye,name:be,username:fe,url:u?void 0:pe,community:H,timeText:null==M?void 0:M.createdTime,className:"post-author",role:we,userId:null==q?void 0:q.id,expertId:null==q?void 0:q.partnerId,doctorId:null==q?void 0:q.doctorId,hospitalId:null==q?void 0:q.hospitalId,title:null==q?void 0:q.title,hasQuickBooking:Te,handleMakeAppointment:A,"data-testid":"name",isAnonymous:!!(null==M?void 0:M.isAnonymous),extendEle:o.createElement(ei,{authorEmail:String(null==q?void 0:q.email),onDeletePost:v,shareUrl:ue,post:M,className:"popover",onEditPost:h})},T))),o.createElement("a",{href:u?void 0:pe,className:"post-content-link-wrapper"},Y&&o.createElement(L,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},C(Y)),o.createElement(zo,{className:"post-content-wrapper",description:J,disableShortenContent:g,mentions:$,"data-testid":"Content of the Post"})),o.createElement("span",null),o.createElement("span",null),o.createElement("div",{key:"tag-topic"},Z&&Z.length>0?o.createElement(gt,{topics:Z,className:"post-topics"}):null),o.createElement("div",{key:"social-preview"},(null==M?void 0:M.introUrl)?o.createElement("div",{className:"social-preview-wrapper "+((null==K?void 0:K.length)?"has-image":"")},o.createElement($o,{url:M.introUrl,image:M.bannerImage})):null),o.createElement("div",{key:"image-preview"},(null==K?void 0:K.length)?o.createElement("div",{className:"image-preview-wrapper"},o.createElement(Xo,{images:K,authorName:null==q?void 0:q.name})):null),o.createElement("div",{key:"link-preview"},(null==M?void 0:M.introUrl)||(null==K?void 0:K.length)||!(null==ee?void 0:ee.url)?null:o.createElement("div",{className:"link-preview-wrapper"},o.createElement(et,{title:ee.title,url:ee.url,image:ee.image}))),o.createElement(pt,{isMarryBaby:le,type:lt.post,loveCount:te,replyCount:ae,className:"post-reaction "+((null==K?void 0:K.length)||(null==ee?void 0:ee.url)?"hide-top-border":""),liked:ve?!X:X,isReplied:ne,onCommentClick:()=>ge((()=>{c?c():me((e=>!e))})),onCommentCountClick:()=>{ge((()=>{le?me(!0):d?d():!u&&(window.location.href=pe)}))},onShareClick:()=>{D(!0)},onLikeClick:()=>e(void 0,void 0,void 0,(function*(){if(oe&&!ve){he(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield G(P(I.POST.LIKE,{id:t,_locale:a}),"GET")})))({id:oe,locale:ie});1!==(null==t?void 0:t.status)?se(ga(ce)):j((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){se(ga(ce))}he(!1)}})),showingMostEngaging:!(!r||!(null==U?void 0:U.id))}),de&&o.createElement(bo,{isMainCmt:!w,onClose:()=>me(!1),onPostSuccess:e=>{0!==ae||(null==U?void 0:U.id)||W(e),j((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount+1,commented:!0}))),p&&p(e)},post:M}),r&&(null==U?void 0:U.id)?o.createElement("div",{className:"most-engaging-wrapper",onClick:e=>{m?(e.stopPropagation(),m()):window.location.href=pe}},o.createElement(Ni,{hasQuickBookingEnable:k,handleMakeAppointment:A,comment:U,post:M,onDeleteComment:()=>{ze&&ze(U)},className:"most-engaging-comment",type:"most-engaging",key:U.id,cardAuthorProps:T}),ae>1&&!n&&o.createElement(Fe,{className:"see-more-comments",color:"ghost",size:"md"},ce("comment.seeMoreComments",{count:ae-1}))):null,x))};var zi=Object.freeze({__proto__:null});export{Vn as A,Gn as B,et as C,Ti as D,ei as E,Ni as F,ai as G,wt as H,bo as I,wi as J,_e as K,Ye as L,go as P,xo as S,Ge as T,ki as V,Qe as a,pt as b,gt as c,ht as d,bt as e,kt as f,ua as g,lo as h,Ja as i,ao as j,ta as k,Gt as l,la as m,no as n,uo as o,No as p,wo as q,zo as r,Fo as s,zi as t,Xe as u,Ho as v,Xo as w,$o as x,ma as y,Un as z};